|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.font.Font4a
public abstract class Font4a
An implementation of the aXSL Font4a
interface.
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 |
---|
Fields inherited from interface org.axsl.font.Font |
---|
INVALID_STRING, NORMAL_STRING |
Constructor Summary | |
---|---|
protected |
Font4a(RegisteredFont rf)
Constructor. |
Method Summary | |
---|---|
org.axsl.font.Font.Baseline |
baseline(String script)
|
int |
baselineOffset(org.axsl.font.Font.WritingMode writingMode,
org.axsl.font.Font.Baseline baselineType,
int fontSize)
|
int |
estimateBaseline(org.axsl.font.Font.WritingMode writingMode,
org.axsl.font.Font.Baseline baselineType,
int fontSize)
Provides reasonable estimates of the various baseline values for the font, based on other font metrics. |
abstract 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. |
abstract int |
getAscender(int fontSize)
|
abstract Font |
getAwtFont(int fontSize)
|
abstract int |
getCapHeight(int fontSize)
|
abstract org.axsl.ps.CharSet |
getCharSet()
Returns the character set used by this font. |
abstract int |
getDefaultWidth()
|
abstract int |
getDescender(int fontSize)
|
int |
getEstimatedOverlinePosition(int fontSize)
Returns the estimate of the appropriate overline position, in millipoints. |
int |
getEstimatedOverlineSize(int fontSize)
Returns the estimate of the appropriate overline thickness, in millipoints. |
protected int |
getEstimatedStrikeoutPosition(int fontSize)
Returns the estimate of the appropriate strikeout position, in millipoints. |
protected int |
getEstimatedStrikeoutSize(int fontSize)
Returns the estimate of the appropriate strikeout size, in millipoints. |
int |
getEstimatedUnderlinePosition(int fontSize)
Returns the estimate of the appropriate underline position, in millipoints. |
int |
getEstimatedUnderlineSize(int fontSize)
Returns the estimate of the appropriate underline size, in millipoints. |
abstract org.axsl.font.Font.Format |
getFontFormat()
|
abstract org.axsl.ps.Encoding |
getInternalEncoding()
|
abstract float |
getItalicAngle()
|
protected abstract Kerning |
getKerning()
Returns the kerning for this font. |
org.apache.commons.logging.Log |
getLogger()
Return the logger. |
abstract int |
getNumGlyphs()
Returns the number of glyphs in this font. |
RegisteredFont |
getRegisteredFont()
Return the parent registered font. |
abstract int |
getStemV()
|
abstract int |
getUnitsPerTextSpaceUnit()
Returns the units per text-space unit that is used in this font for internal font measurements. |
abstract int |
getXHeight(int fontSize)
|
abstract boolean |
glyphAvailable(int c)
Reports on the availability of a glyph in this font, without regard to encoding issues. |
abstract boolean |
isEmbeddable()
|
abstract boolean |
isPdfStandardFont()
|
abstract boolean |
isSubsettable()
|
int |
kern(int glyphIndex1,
int glyphIndex2)
|
abstract boolean |
kerningActive()
Reports whether kerning information should be used for this font. |
boolean |
kerningAvailable()
Reports whether the font actually contains any kerning information. |
abstract int |
metricIndex(int codePoint)
For a given Unicode code point index, returns the metric index. |
float |
normalLineHeightFactor(org.axsl.font.Font.LineHeightAlgorithm algorithm)
|
int |
subscriptShift(int fontSize)
|
int |
superscriptShift(int fontSize)
|
abstract boolean |
supportsUnicode()
Indicates whether this font has the ability to map Unicode characters to font glyphs. |
abstract boolean |
usableInPostScriptOutput()
|
int |
width(org.axsl.common.IntSequence word,
int offset,
int length,
int fontSize,
int letterSpacing,
int wordSpacing,
org.axsl.font.FontOptions requestedFontOptions,
org.axsl.common.i18n.Orthography orthography)
|
int |
widthEstimate(int c,
int fontSize)
|
abstract 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 |
Methods inherited from interface org.axsl.font.Font |
---|
getFamilyName, getFontComplexity, getFontName, getPanose, getPostscriptName, overlinePosition, overlineSize, strikeoutPosition, strikeoutSize, underlinePosition, underlineSize, width |
Constructor Detail |
---|
protected Font4a(RegisteredFont rf)
rf
- The parent registered font.Method Detail |
---|
public abstract int getAscender(int fontSize)
getAscender
in interface org.axsl.font.Font
public abstract int getDescender(int fontSize)
getDescender
in interface org.axsl.font.Font
public abstract int getCapHeight(int fontSize)
getCapHeight
in interface org.axsl.font.Font
public abstract int getXHeight(int fontSize)
getXHeight
in interface org.axsl.font.Font
public int widthEstimate(int c, int fontSize)
widthEstimate
in interface org.axsl.font.Font
public int width(org.axsl.common.IntSequence word, int offset, int length, int fontSize, int letterSpacing, int wordSpacing, org.axsl.font.FontOptions requestedFontOptions, org.axsl.common.i18n.Orthography orthography)
width
in interface org.axsl.font.Font
public abstract boolean isEmbeddable()
isEmbeddable
in interface org.axsl.font.Font
public abstract boolean isSubsettable()
isSubsettable
in interface org.axsl.font.Font
public abstract Font getAwtFont(int fontSize)
getAwtFont
in interface org.axsl.font.Font
public abstract boolean usableInPostScriptOutput()
usableInPostScriptOutput
in interface org.axsl.font.Font
public abstract org.axsl.ps.Encoding getInternalEncoding()
getInternalEncoding
in interface org.axsl.font.Font
public abstract org.axsl.font.Font.Format getFontFormat()
getFontFormat
in interface org.axsl.font.Font
protected abstract Kerning getKerning()
public boolean kerningAvailable()
public abstract boolean kerningActive()
public int kern(int glyphIndex1, int glyphIndex2)
kern
in interface org.axsl.font.Font
public abstract int widthUndefinedGlyph(int fontSize)
fontSize
- The font size at which the width should be computed.
public abstract boolean glyphAvailable(int c)
c
- The Unicode code point to be tested.
public abstract float getItalicAngle()
getItalicAngle
in interface org.axsl.font.Font
public abstract int getStemV()
getStemV
in interface org.axsl.font.Font
public abstract int getDefaultWidth()
getDefaultWidth
in interface org.axsl.font.Font
public abstract boolean isPdfStandardFont()
isPdfStandardFont
in interface org.axsl.font.Font
public RegisteredFont getRegisteredFont()
public org.apache.commons.logging.Log getLogger()
public abstract int getNumGlyphs()
public abstract org.axsl.ps.CharSet getCharSet()
public float normalLineHeightFactor(org.axsl.font.Font.LineHeightAlgorithm algorithm)
normalLineHeightFactor
in interface org.axsl.font.Font
public int baselineOffset(org.axsl.font.Font.WritingMode writingMode, org.axsl.font.Font.Baseline baselineType, int fontSize)
baselineOffset
in interface org.axsl.font.Font
public abstract int extractBaseline(org.axsl.font.Font.WritingMode writingMode, org.axsl.font.Font.Baseline baselineType, int fontSize)
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 estimateBaseline(org.axsl.font.Font.WritingMode writingMode, org.axsl.font.Font.Baseline baselineType, int fontSize)
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)
.
public org.axsl.font.Font.Baseline baseline(String script)
baseline
in interface org.axsl.font.Font
public int getEstimatedUnderlineSize(int fontSize)
fontSize
- The font size for which the underline size should be computed.
public int getEstimatedUnderlinePosition(int fontSize)
fontSize
- The font size for which the underline position should be computed.
public int getEstimatedOverlineSize(int fontSize)
fontSize
- The font size for which the overline thickness should be computed.
public int getEstimatedOverlinePosition(int fontSize)
fontSize
- The font size for which the overline position should be computed.
protected int getEstimatedStrikeoutSize(int fontSize)
fontSize
- The font size for which the strikeout size should be computed.
protected int getEstimatedStrikeoutPosition(int fontSize)
fontSize
- The font size for which the strikeout position should be computed.
public int subscriptShift(int fontSize)
subscriptShift
in interface org.axsl.font.Font
public int superscriptShift(int fontSize)
superscriptShift
in interface org.axsl.font.Font
public abstract int getUnitsPerTextSpaceUnit()
public abstract boolean supportsUnicode()
public abstract int metricIndex(int codePoint)
codePoint
- The Unicode code point to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |