public final class TextFont extends Object
TextFont
can be used to define the display font in the
TextReaderSettings
. To get an appropriate instance of this class use one of the factory
methods createTextFont(FontAttributeSet, float)
. Alternatively
getDefaultTextFont()
returns the default monospaced, plain font.Modifier and Type | Method and Description |
---|---|
static TextFont |
createTextFont(FontAttributeSet fontAttributeSet,
float size)
Creates a new
TextFont from the specified FontAttributeSet definition and
point size. |
static TextFont |
getDefaultTextFont()
Returns the default
TextFont which is monospaced, plain and has a size of 12pt. |
FontAttributeSet |
getFontAttributeSet()
Returns requested font definition.
|
float |
getSize()
Returns the point size of the
TextFont |
public static final TextFont getDefaultTextFont()
TextFont
which is monospaced, plain and has a size of 12pt.TextFont
public static final TextFont createTextFont(FontAttributeSet fontAttributeSet, float size)
TextFont
from the specified FontAttributeSet
definition and
point size.
The font will be used to display textual contents. Font name and style attributes must be
defined using FontAttributeSet
class.
fontAttributeSet
- FontAttributeSet
instance describing requested fontsize
- the point size of the TextFont
TextFont
created with the specified FontAttributeSet
definition and size.public FontAttributeSet getFontAttributeSet()
public float getSize()
TextFont
Copyright © 2024 levigo holding gmbh. All rights reserved.