|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.font.Font4a
org.foray.font.SystemFont
public final class SystemFont
Handles interface of system (AWT) fonts to the client application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.axsl.font.Font |
---|
org.axsl.font.Font.Baseline, org.axsl.font.Font.Complexity, org.axsl.font.Font.Embedding, org.axsl.font.Font.Format, org.axsl.font.Font.LineHeightAlgorithm, org.axsl.font.Font.SelectionStrategy, org.axsl.font.Font.Stretch, org.axsl.font.Font.Style, org.axsl.font.Font.Variant, org.axsl.font.Font.Weight, org.axsl.font.Font.WritingMode |
Field Summary | |
---|---|
static int |
INITIAL_FONT_SIZE
Standard initial font size used for metric measurements, until the font size is adjusted. |
static String[] |
LOGICAL_FONT_FAMILIES
The logical font families used by AWT Fonts. |
Fields inherited from interface org.axsl.font.Font |
---|
INVALID_STRING, NORMAL_STRING |
Method Summary | |
---|---|
Font |
createFont()
Attempts to create a java.awt.Font from this SystemFont. |
int |
extractBaseline(org.axsl.font.Font.WritingMode writingMode,
org.axsl.font.Font.Baseline baselineType,
int fontSize)
Returns the font's explicit definition of the baseline, if possible. |
FreeStandingFont |
freeStandingFontManifestation()
Returns the free-standing manifestation of this font. |
int |
getAscender(int fontSize)
|
Font |
getAwtFont(int fontSize)
|
int |
getCapHeight(int fontSize)
|
org.axsl.ps.CharSet |
getCharSet()
Returns the character set used by this font. |
int |
getDefaultWidth()
|
int |
getDescender(int fontSize)
|
String |
getFamilyName()
|
org.axsl.font.Font.Complexity |
getFontComplexity()
|
org.axsl.font.Font.Format |
getFontFormat()
|
String |
getFontName()
|
FontServer4a |
getFontServer()
Convenience method returning the font server. |
Graphics2D |
getGraphics()
Convenience method returning the server's graphical environment. |
org.axsl.ps.Encoding |
getInternalEncoding()
|
float |
getItalicAngle()
|
Kerning |
getKerning()
Returns the kerning for this font. |
Font |
getLastAWTFont()
Returns the last AWT font for this System Font. |
int |
getNumGlyphs()
Returns the number of glyphs in this font. |
byte[] |
getPanose()
|
String |
getPostscriptName()
|
protected FontMetrics |
getSizedFont(int fontSize)
Get the FontMetrics instance for this font, scaled to a specific point size. |
int |
getStemV()
|
int |
getUnitsPerTextSpaceUnit()
Returns the units per text-space unit that is used in this font for internal font measurements. |
int |
getXHeight(int fontSize)
|
boolean |
glyphAvailable(int c)
Reports on the availability of a glyph in this font, without regard to encoding issues. |
boolean |
isEmbeddable()
|
boolean |
isPdfStandardFont()
|
boolean |
isSubsettable()
|
boolean |
kerningActive()
Reports whether kerning information should be used for this font. |
static SystemFont |
makeSystemFont(RegisteredFont rf)
Factory method that creates a new SystemFont instance. |
int |
metricIndex(int glyphIndex)
For a given Unicode code point index, returns the metric index. |
int |
overlinePosition(int fontSize)
|
int |
overlineSize(int fontSize)
|
int |
strikeoutPosition(int fontSize)
|
int |
strikeoutSize(int fontSize)
|
boolean |
supportsUnicode()
Indicates whether this font has the ability to map Unicode characters to font glyphs. |
int |
underlinePosition(int fontSize)
|
int |
underlineSize(int fontSize)
|
boolean |
usableInPostScriptOutput()
|
int |
width(int c,
int size)
|
int |
widthUndefinedGlyph(int fontSize)
Returns the width of the undefined or missing glyph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] LOGICAL_FONT_FAMILIES
public static final int INITIAL_FONT_SIZE
Method Detail |
---|
public static SystemFont makeSystemFont(RegisteredFont rf)
rf
- The parent RegisteredFont instance.
public int getAscender(int fontSize)
getAscender
in interface org.axsl.font.Font
getAscender
in class Font4a
public int getDescender(int fontSize)
getDescender
in interface org.axsl.font.Font
getDescender
in class Font4a
public int getCapHeight(int fontSize)
getCapHeight
in interface org.axsl.font.Font
getCapHeight
in class Font4a
public int getXHeight(int fontSize)
getXHeight
in interface org.axsl.font.Font
getXHeight
in class Font4a
public int width(int c, int size)
public Font getAwtFont(int fontSize)
getAwtFont
in interface org.axsl.font.Font
getAwtFont
in class Font4a
public boolean isEmbeddable()
isEmbeddable
in interface org.axsl.font.Font
isEmbeddable
in class Font4a
public boolean isSubsettable()
isSubsettable
in interface org.axsl.font.Font
isSubsettable
in class Font4a
public boolean usableInPostScriptOutput()
usableInPostScriptOutput
in interface org.axsl.font.Font
usableInPostScriptOutput
in class Font4a
public String getFontName()
public String getPostscriptName()
public org.axsl.ps.Encoding getInternalEncoding()
getInternalEncoding
in interface org.axsl.font.Font
getInternalEncoding
in class Font4a
public Kerning getKerning()
Font4a
getKerning
in class Font4a
public org.axsl.font.Font.Format getFontFormat()
getFontFormat
in interface org.axsl.font.Font
getFontFormat
in class Font4a
public String getFamilyName()
public FontServer4a getFontServer()
public Graphics2D getGraphics()
public float getItalicAngle()
getItalicAngle
in interface org.axsl.font.Font
getItalicAngle
in class Font4a
public int getStemV()
getStemV
in interface org.axsl.font.Font
getStemV
in class Font4a
public int getDefaultWidth()
getDefaultWidth
in interface org.axsl.font.Font
getDefaultWidth
in class Font4a
public boolean isPdfStandardFont()
isPdfStandardFont
in interface org.axsl.font.Font
isPdfStandardFont
in class Font4a
public boolean kerningActive()
Font4a
kerningActive
in class Font4a
protected FontMetrics getSizedFont(int fontSize)
fontSize
- The size, in millipoints, of the font.
public Font createFont() throws org.axsl.font.FontException
org.axsl.font.FontException
- If an AWT font cannot be created for this system
font. This usually indicated a font registration error.public Font getLastAWTFont()
public int widthUndefinedGlyph(int fontSize)
Font4a
widthUndefinedGlyph
in class Font4a
fontSize
- The font size at which the width should be computed.
public boolean glyphAvailable(int c)
Font4a
glyphAvailable
in class Font4a
c
- The Unicode code point to be tested.
public FreeStandingFont freeStandingFontManifestation()
public int getNumGlyphs()
Font4a
getNumGlyphs
in class Font4a
public org.axsl.ps.CharSet getCharSet()
Font4a
getCharSet
in class Font4a
public int extractBaseline(org.axsl.font.Font.WritingMode writingMode, org.axsl.font.Font.Baseline baselineType, int fontSize)
Font4a
extractBaseline
in class Font4a
writingMode
- Same as for
Font.baselineOffset(Font.WritingMode, Baseline, int)
.baselineType
- Same as for
Font.baselineOffset(Font.WritingMode, Baseline, int)
.fontSize
- Same as for
Font.baselineOffset(Font.WritingMode, Baseline, int)
.
Font.baselineOffset(Font.WritingMode, Baseline, int)
, if it exists.
Otherwise, returns Integer.MIN_VALUE
.public int strikeoutSize(int fontSize)
public int strikeoutPosition(int fontSize)
public int underlineSize(int fontSize)
public int underlinePosition(int fontSize)
public int overlineSize(int fontSize)
public int overlinePosition(int fontSize)
public byte[] getPanose()
public org.axsl.font.Font.Complexity getFontComplexity()
public int getUnitsPerTextSpaceUnit()
Font4a
getUnitsPerTextSpaceUnit
in class Font4a
public boolean supportsUnicode()
Font4a
supportsUnicode
in class Font4a
public int metricIndex(int glyphIndex)
Font4a
metricIndex
in class Font4a
glyphIndex
- The Unicode code point to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |