public final class FontCollection extends RecordContainer
FontCollection ia a container that holds information
about all the fonts in the presentation._children| Modifier | Constructor | Description |
|---|---|---|
protected |
FontCollection(byte[] source,
int start,
int len) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
addFont(java.lang.String name) |
Add font with the specified name to the font collection.
|
int |
addFont(java.lang.String name,
int charset,
int flags,
int type,
int pitch) |
|
int |
getFontIndex(java.lang.String name) |
|
java.lang.String |
getFontWithId(int id) |
Get the name of the font at the given ID, or null if there is
no font at that ID.
|
int |
getNumberOfFonts() |
|
long |
getRecordType() |
Return the type, which is 2005
|
void |
writeOut(java.io.OutputStream out) |
Write the contents of the record back, so it can be written
to disk
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndianaddChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, handleParentAwareRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, removeChild, setChildRecord, writeOutpublic long getRecordType()
getRecordType in class Recordpublic void writeOut(java.io.OutputStream out)
throws java.io.IOException
public int addFont(java.lang.String name)
name - of the fontpublic int addFont(java.lang.String name,
int charset,
int flags,
int type,
int pitch)
public int getFontIndex(java.lang.String name)
public int getNumberOfFonts()
public java.lang.String getFontWithId(int id)
id - Copyright 2018 The Apache Software Foundation or its licensors, as applicable.