Interface FontContext
- All Known Implementing Classes:
DefaultFontContext
public interface FontContext
The font context decribes how a certain font will be used. The context influences the font metrics and therefore a
certain metrics object is only valid for a given font context.
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptiondoubleThe requested font size.booleanThis is controlled by the output target and the stylesheet.booleanbooleanThis is defined by the output target.
-
Method Details
-
getEncoding
String getEncoding() -
isEmbedded
boolean isEmbedded() -
isAntiAliased
boolean isAntiAliased()This is controlled by the output target and the stylesheet. If the output target does not support aliasing, it makes no sense to enable it and all such requests are ignored.- Returns:
-
isFractionalMetrics
boolean isFractionalMetrics()This is defined by the output target. This is not controlled by the stylesheet.- Returns:
-
getFontSize
double getFontSize()The requested font size. A font may have a fractional font size (ie. 8.5 point). The font size may be influenced by the output target.- Returns:
- the font size.
-