|
||||||||||
| 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.FreeStandingFont
org.foray.font.FSType1Font
public class FSType1Font
Class representing FreeStanding Type 1 fonts.
| 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 | |
|---|---|
FSType1Font(RegisteredFont rf)
This constructor should be used for fonts that are registered before they are created. |
|
| Method Summary | |
|---|---|
int[] |
getFontBBox()
Returns the bounding box for this font. |
org.axsl.font.Font.Format |
getFontFormat()
|
byte[] |
getRawFontFile(FontUse4a fontUse)
Returns the font file contents in a byte array. |
int |
getStemV()
Returns the StemV value for this font, used in a PDF Font Descriptor, as defined in the PDF Reference, Second Edition, Section 5.7. |
Type1Font |
getType1File()
Returns the related Type1File. |
int |
getUnitsPerTextSpaceUnit()
Returns the units per text-space unit that is used in this font for internal font measurements. |
boolean |
glyphAvailable(int c)
Reports on the availability of a glyph in this font, without regard to encoding issues. |
boolean |
isPdfStandardFont()
|
int |
metricIndex(int codePoint)
For a given Unicode code point index, returns the metric index. |
int |
overlinePosition(int fontSize)
|
int |
overlineSize(int fontSize)
|
void |
parseFont()
Parses the font to get needed information. |
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)
|
int |
width(int metricIndex,
int fontSize)
|
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 |
| Constructor Detail |
|---|
public FSType1Font(RegisteredFont rf)
throws org.axsl.font.FontException
rf - The RegisteredFont that should be used to create this font.
org.axsl.font.FontException - For error creating font.| Method Detail |
|---|
public byte[] getRawFontFile(FontUse4a fontUse)
throws IOException,
org.axsl.font.FontException
FreeStandingFont
getRawFontFile in class FreeStandingFontfontUse - The specific font use, which is needed to get encoding and
subsetting information.
IOException - For I/O errors.
org.axsl.font.FontException - For errors parsing the font.
public Type1Font getType1File()
throws org.axsl.font.FontException
org.axsl.font.FontException - For errors parsing the font.
public void parseFont()
throws org.axsl.font.FontException
org.axsl.font.FontException - For errors during font parsing.public int[] getFontBBox()
FreeStandingFont
getFontBBox in class FreeStandingFontpublic int getStemV()
FreeStandingFont
getStemV in interface org.axsl.font.FontgetStemV in class FreeStandingFontpublic org.axsl.font.Font.Format getFontFormat()
getFontFormat in interface org.axsl.font.FontgetFontFormat in class Font4a
public int width(int metricIndex,
int fontSize)
public int widthUndefinedGlyph(int fontSize)
Font4a
widthUndefinedGlyph in class Font4afontSize - The font size at which the width should be computed.
public boolean isPdfStandardFont()
isPdfStandardFont in interface org.axsl.font.FontisPdfStandardFont in class Font4apublic boolean glyphAvailable(int c)
Font4a
glyphAvailable in class Font4ac - The Unicode code point to be tested.
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 int getUnitsPerTextSpaceUnit()
Font4a
getUnitsPerTextSpaceUnit in class Font4apublic boolean supportsUnicode()
Font4a
supportsUnicode in class Font4apublic int metricIndex(int codePoint)
Font4a
metricIndex in class Font4acodePoint - The Unicode code point to be converted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||