public final class FontCollection extends RecordContainer
FontCollection
ia a container that holds information
about all the fonts in the presentation._children
Modifier | Constructor and Description |
---|---|
protected |
FontCollection(byte[] source,
int start,
int len) |
Modifier and Type | Method and Description |
---|---|
int |
addFont(String name)
Add font with the specified name to the font collection.
|
int |
addFont(String name,
int charset,
int flags,
int type,
int pitch) |
int |
getFontIndex(String name) |
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(OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, handleParentAwareRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, removeChild, setChildRecord, writeOut
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
public long getRecordType()
getRecordType
in class Record
public void writeOut(OutputStream out) throws IOException
writeOut
in class Record
IOException
public int addFont(String name)
name
- of the fontpublic int addFont(String name, int charset, int flags, int type, int pitch)
public int getFontIndex(String name)
public int getNumberOfFonts()
public String getFontWithId(int id)
id
- Copyright © 2020. All rights reserved.