Package de.intarsys.cwt.font
Class GenericFont
- java.lang.Object
-
- de.intarsys.cwt.font.CommonFont
-
- de.intarsys.cwt.font.GenericFont
-
- All Implemented Interfaces:
IFont
public class GenericFont extends CommonFont
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGenericFont()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GenericFontcreateNew(de.intarsys.tools.locator.ILocator locator, de.intarsys.cwt.freetype.Face face)java.lang.StringgetFontFamilyName()The font family namejava.lang.StringgetFontName()The font name.java.lang.StringgetFontNameCanonical()The canonical font name.java.lang.StringgetFontNamePostScript()The postscript font name.FontStylegetFontStyle()The font style.java.lang.StringgetFontType()The font type.protected voidsetFontFamilyName(java.lang.String familyName)protected voidsetFontName(java.lang.String fontName)protected voidsetFontNamePostScript(java.lang.String fontPSName)protected voidsetFontStyle(FontStyle style)protected voidsetFontType(java.lang.String fontType)-
Methods inherited from class de.intarsys.cwt.font.CommonFont
getFontProgram, setFontProgram
-
-
-
-
Method Detail
-
createNew
public static GenericFont createNew(de.intarsys.tools.locator.ILocator locator, de.intarsys.cwt.freetype.Face face)
-
getFontFamilyName
public java.lang.String getFontFamilyName()
Description copied from interface:IFontThe font family name- Returns:
- The font family name
-
getFontName
public java.lang.String getFontName()
Description copied from interface:IFontThe font name. This may deviate from the postscript font name for TrueType fonts.- Returns:
- The font name.
-
getFontNameCanonical
public java.lang.String getFontNameCanonical()
Description copied from interface:IFontThe canonical font name.- Returns:
- The canonical font name.
-
getFontNamePostScript
public java.lang.String getFontNamePostScript()
Description copied from interface:IFontThe postscript font name.- Returns:
- The postscript font name.
-
getFontStyle
public FontStyle getFontStyle()
Description copied from interface:IFontThe font style.- Returns:
- The font style.
-
getFontType
public java.lang.String getFontType()
Description copied from interface:IFontThe font type. This is for example "TrueType" or "Type1".- Returns:
- The font type.
-
setFontFamilyName
protected void setFontFamilyName(java.lang.String familyName)
-
setFontName
protected void setFontName(java.lang.String fontName)
-
setFontNamePostScript
protected void setFontNamePostScript(java.lang.String fontPSName)
-
setFontStyle
protected void setFontStyle(FontStyle style)
-
setFontType
protected void setFontType(java.lang.String fontType)
-
-