Package com.luciad.text
Class FontConfig
java.lang.Object
com.luciad.text.FontConfig
- All Implemented Interfaces:
AutoCloseable
A class holding the configuration of a font.
It must first be registered before it can be used.
- Since:
- 2024.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis builder allows you to create aFontConfiginstance that can be registered usingFonts#registerFont. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()Returns the name of the font.static FontConfig.BuilderCreates a FontBuilder which can be used to specify more complex fonts.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
newBuilder
Creates a FontBuilder which can be used to specify more complex fonts.- Returns:
- A FontBuilder.
-
getFontName
Returns the name of the font.- Returns:
- The name of the font.
-