Package de.intarsys.cwt.font
Class GenericFont
java.lang.Object
de.intarsys.cwt.font.CommonFont
de.intarsys.cwt.font.GenericFont
- All Implemented Interfaces:
IFont
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericFont
createNew
(de.intarsys.tools.locator.ILocator locator, de.intarsys.cwt.freetype.Face face) The font family nameThe font name.The canonical font name.The postscript font name.The font style.The font type.protected void
setFontFamilyName
(String familyName) protected void
setFontName
(String fontName) protected void
setFontNamePostScript
(String fontPSName) protected void
setFontStyle
(FontStyle style) protected void
setFontType
(String fontType) Methods inherited from class de.intarsys.cwt.font.CommonFont
getFontProgram, setFontProgram
-
Constructor Details
-
GenericFont
protected GenericFont()
-
-
Method Details
-
createNew
public static GenericFont createNew(de.intarsys.tools.locator.ILocator locator, de.intarsys.cwt.freetype.Face face) -
getFontFamilyName
Description copied from interface:IFont
The font family name- Returns:
- The font family name
-
getFontName
Description copied from interface:IFont
The font name. This may deviate from the postscript font name for TrueType fonts.- Returns:
- The font name.
-
getFontNameCanonical
Description copied from interface:IFont
The canonical font name.- Returns:
- The canonical font name.
-
getFontNamePostScript
Description copied from interface:IFont
The postscript font name.- Returns:
- The postscript font name.
-
getFontStyle
Description copied from interface:IFont
The font style.- Returns:
- The font style.
-
getFontType
Description copied from interface:IFont
The font type. This is for example "TrueType" or "Type1".- Returns:
- The font type.
-
setFontFamilyName
-
setFontName
-
setFontNamePostScript
-
setFontStyle
-
setFontType
-