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(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
|
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, handleParentAwareRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, removeChild, setChildRecord, writeOutbuildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndianpublic 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 2014 The Apache Software Foundation or its licensors, as applicable.