com.eteks.awt
Class  PJAFontPeer
java.lang.Object
  |
  +--com.eteks.awt.PJAFontPeer
- All Implemented Interfaces: 
- java.awt.peer.FontPeer, Serializable
- public class PJAFontPeer- extends Object- implements java.awt.peer.FontPeer, Serializable
Pure Java AWT Font Peer.
 From version 1.1, com.eteks.tools.fontcapture.PJAFontCapture is used to capture the fonts.
 PJA 1.0 .pjaf font files are not compatible with PJA 1.1, please use font capture utility to produce
 PJA 1.1 font files.
 This class keeps all the data of a font in PJAFontData instances
 to avoid using PJAFontMetrics which extends java.awt.FontMetrics
 (java.awt.FontMetrics requires awt library to be loaded).
- Since: 
- PJA1.0
- Author: 
- Emmanuel Puybaret
- See Also: 
- PJAGraphicsManager,- PJAFontCapture, Serialized Form
 
 
 
PJAFontPeer
protected PJAFontPeer(String name,
                      int style)
getName
public String getName()
- Returns the name of this font.- 
 
getStyle
public int getStyle()
- Returns the style of this font.- 
 
addFontData
protected void addFontData(PJAFontData newFontData)
- 
 
getFontData
protected PJAFontData getFontData(int fontSize)
- 
 
getFontMetrics
protected FontMetrics getFontMetrics(Font font)
- 
 
getFontMetrics
protected FontMetrics getFontMetrics(int fontSize)
- 
 
equals
public boolean equals(Object object)
- Returns trueif this font peer andobjecthave the
 same name and style.
- 
- Overrides:
- equalsin class- Object
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
main
public static void main(String[] args)
- Deprecated. As of PJA version 1.1, PJAFontPeermain ()method moved
               tocom.eteks.tools.fontcapture.PJAFontCapture.
 
- 
 
- 
- See Also: 
- PJAFontCapture