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 class
This builder allows you to create aFontConfig
instance that can be registered usingFonts#registerFont
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns the name of the font.static FontConfig.Builder
Creates a FontBuilder which can be used to specify more complex fonts.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in 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.
-