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
true
if this font peer and object
have the
same name and style.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
main
public static void main(String[] args)
- Deprecated. As of PJA version 1.1,
PJAFontPeer
main ()
method moved
to com.eteks.tools.fontcapture.PJAFontCapture
.
- See Also:
PJAFontCapture