Package com.teamten.font
Class FontPack
java.lang.Object
com.teamten.font.FontPack
A collection of fonts for a paragraph.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FontPack
create
(FontManager fontManager, TypefaceVariantSize regularFontDesc, TypefaceVariantSize codeFontDesc) Create a font pack from a description of the regular font and the code font.withScaledFont
(double scale) Return a new font pack with all the fonts scaled by the specified amount.withTracking
(double tracking, double kerning) Returns a new font pack with all the fonts tracked as specified.
-
Method Details
-
create
public static FontPack create(FontManager fontManager, TypefaceVariantSize regularFontDesc, TypefaceVariantSize codeFontDesc) Create a font pack from a description of the regular font and the code font. The other fonts are derived. -
getRegularFont
-
getBoldFont
-
getItalicFont
-
getBoldItalicFont
-
getSmallCapsFont
-
getCodeFont
-
withTracking
Returns a new font pack with all the fonts tracked as specified. SeeTrackingFont
for the parameters. -
withScaledFont
Return a new font pack with all the fonts scaled by the specified amount.
-