public interface FontInfo
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 |
|---|---|
default FontCharset |
getCharset() |
default List<? extends FontFacet> |
getFacets()
If font facets are embedded in the document, return the list of embedded facets.
|
default FontFamily |
getFamily() |
default Integer |
getIndex()
Get the index within the collection of Font objects
|
default byte[] |
getPanose() |
default FontPitch |
getPitch() |
String |
getTypeface() |
default void |
setCharset(FontCharset charset)
Sets the charset
|
default void |
setFamily(FontFamily family)
Sets the font family class
|
default void |
setIndex(int index)
Sets the index within the collection of Font objects
|
default void |
setPanose(byte[] panose)
Set the panose in binary form
|
default void |
setPitch(FontPitch pitch)
Set the font pitch
|
default void |
setTypeface(String typeface)
Sets the font name
|
default Integer getIndex()
default void setIndex(int index)
index - the index within the collection of Font objectsUnsupportedOperationException - if unsupportedString getTypeface()
default void setTypeface(String typeface)
typeface - the full name of the font, when null removes the font definition -
removal is implementation specificUnsupportedOperationException - can return UnsupportedOperationException when FontInfo is read-onlydefault FontCharset getCharset()
default void setCharset(FontCharset charset)
charset - the charsetUnsupportedOperationException - can return UnsupportedOperationException when FontInfo is read-onlydefault FontFamily getFamily()
default void setFamily(FontFamily family)
family - the font family classUnsupportedOperationException - can return UnsupportedOperationException when FontInfo is read-onlydefault FontPitch getPitch()
null if unsupporteddefault void setPitch(FontPitch pitch)
pitch - the font pitchUnsupportedOperationException - if unsupporteddefault byte[] getPanose()
null if unknowndefault void setPanose(byte[] panose)
panose - the panose bytesUnsupportedOperationException - can return UnsupportedOperationException when FontInfo is read-only