If an implementation doesn't provide a property, the getter will return null -
if the value is unset, a default value will be returned.
Setting an unsupported property results in an UnsupportedOperationException.
| Modifier and Type | Method and Description |
|---|---|
| public default FontCharset | |
| public default List | Returns: the list of embedded EOT font dataIf font facets are embedded in the document, return the list of embedded facets. |
| public default FontFamily | |
| public default Integer | Returns: unique index number of the underlying record this Font represents (probably you don't care unless you're comparing which one is which)Get the index within the collection of Font objects |
| public default byte[] | |
| public default FontPitch | |
| public String | |
| public default void | |
| public default void | |
| public default void | setIndex(int
the index within the collection of Font objects index)Sets the index within the collection of Font objects |
| public default void | |
| public default void | |
| public default void | setTypeface(String
the full name of the font, when typeface)null removes the font definition -
removal is implementation specificSets the font name |
| getCharset | back to summary |
|---|---|
public default FontCharset getCharset()
| |
| getFacets | back to summary |
|---|---|
| public default List If font facets are embedded in the document, return the list of embedded facets. The font embedding is experimental, therefore the API can change. | |
| getFamily | back to summary |
|---|---|
public default FontFamily getFamily()
| |
| getIndex | back to summary |
|---|---|
| public default Integer getIndex() Get the index within the collection of Font objects
| |
| getPanose | back to summary |
|---|---|
public default byte[] getPanose()
| |
| getPitch | back to summary |
|---|---|
public default FontPitch getPitch()
| |
| getTypeface | back to summary |
|---|---|
public String getTypeface()
| |
| setCharset | back to summary |
|---|---|
| public default void setCharset(FontCharset charset) Sets the charset
| |
| setFamily | back to summary |
|---|---|
| public default void setFamily(FontFamily family) Sets the font family class
| |
| setIndex | back to summary |
|---|---|
| public default void setIndex(int index) Sets the index within the collection of Font objects
| |
| setPanose | back to summary |
|---|---|
| public default void setPanose(byte[] panose) Set the panose in binary form
| |
| setPitch | back to summary |
|---|---|
| public default void setPitch(FontPitch pitch) Set the font pitch
| |
| setTypeface | back to summary |
|---|---|
| public default void setTypeface(String typeface) Sets the font name
| |