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 a unsupported property results in an UnsupportedOperationException
.
Modifier and Type | Method and Description |
---|---|
default FontCharset |
getCharset() |
default java.util.List<? extends FontFacet> |
getFacets()
If font facets are embedded in the document, return the list of embedded facets.
|
default FontFamily |
getFamily() |
default java.lang.Integer |
getIndex()
Get the index within the collection of Font objects
|
default byte[] |
getPanose() |
default FontPitch |
getPitch() |
java.lang.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(java.lang.String typeface)
Sets the font name
|
default java.lang.Integer getIndex()
default void setIndex(int index)
index
- the index within the collection of Font objectsjava.lang.UnsupportedOperationException
- if unsupportedjava.lang.String getTypeface()
default void setTypeface(java.lang.String typeface)
typeface
- the full name of the font, when null
removes the font definition -
removal is implementation specificdefault FontCharset getCharset()
default void setCharset(FontCharset charset)
charset
- the charsetdefault FontFamily getFamily()
default void setFamily(FontFamily family)
family
- the font family classdefault FontPitch getPitch()
null
if unsupporteddefault void setPitch(FontPitch pitch)
pitch
- the font pitchjava.lang.UnsupportedOperationException
- if unsupporteddefault byte[] getPanose()
null
if unknowndefault void setPanose(byte[] panose)
panose
- the panose bytesCopyright 2020 The Apache Software Foundation or its licensors, as applicable.