intarsys CWT library

de.intarsys.cwt.font
Class GenericFont

java.lang.Object
  extended by de.intarsys.cwt.font.CommonFont
      extended by de.intarsys.cwt.font.GenericFont
All Implemented Interfaces:
IFont

public class GenericFont
extends CommonFont


Method Summary
static GenericFont createNew(de.intarsys.tools.locator.ILocator locator, de.intarsys.cwt.freetype.Face face)
           
 String getFontFamilyName()
          The font family name
 String getFontName()
          The font name.
 String getFontNameCanonical()
          The canonical font name.
 String getFontNamePostScript()
          The postscript font name.
 FontStyle getFontStyle()
          The font style.
 String getFontType()
          The font type.
 
Methods inherited from class de.intarsys.cwt.font.CommonFont
getFontProgram
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNew

public static GenericFont createNew(de.intarsys.tools.locator.ILocator locator,
                                    de.intarsys.cwt.freetype.Face face)

getFontFamilyName

public String getFontFamilyName()
Description copied from interface: IFont
The font family name

Returns:
The font family name

getFontName

public String 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

public String getFontNameCanonical()
Description copied from interface: IFont
The canonical font name.

Returns:
The canonical font name.

getFontNamePostScript

public String getFontNamePostScript()
Description copied from interface: IFont
The postscript font name.

Returns:
The postscript font name.

getFontStyle

public FontStyle getFontStyle()
Description copied from interface: IFont
The font style.

Returns:
The font style.

getFontType

public String getFontType()
Description copied from interface: IFont
The font type. This is for example "TrueType" or "Type1".

Returns:
The font type.

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.