|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.font.output.FontOutput4a
public abstract class FontOutput4a
Abstract superclass for all FOray Font output helper classes.
Constructor Summary | |
---|---|
FontOutput4a(FontUse4a fontUse)
Constructor. |
Method Summary | |
---|---|
char[] |
getCharsUsed()
Return an array of all characters that should be embedded with the font when it is embedded. |
byte[] |
getContents()
|
int |
getFirstIndex()
Convenience method equivalent to getFontUse().getEncoding().getFirstIndex() . |
FontConsumer4a |
getFontConsumer()
Returns the related FontConsumer4a . |
org.axsl.font.FontUse |
getFontUse()
|
Font4a |
getFOrayFont()
Returns the related Font4a instance. |
FontUse4a |
getFOrayFontUse()
Returns the FontUse , cast as a FontUse4a . |
FreeStandingFont |
getFreeStandingFont()
Returns the related FreeStandingFont . |
int |
getLastIndex()
Convenience method equivalent to getFontUse().getEncoding().getFirstIndex() . |
org.apache.commons.logging.Log |
getLogger()
Returns the logger. |
short[] |
getWidths()
Returns an array containing the widths of all glyphs in the font that can be encoded by the FontUse instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontOutput4a(FontUse4a fontUse)
fontUse
- The font use for which this output helper is created.Method Detail |
---|
public org.axsl.font.FontUse getFontUse()
getFontUse
in interface org.axsl.font.output.FontOutput
public FontUse4a getFOrayFontUse()
FontUse
, cast as a FontUse4a
.
public Font4a getFOrayFont()
Font4a
instance.
Font4a
instance.public FreeStandingFont getFreeStandingFont()
FreeStandingFont
.
FreeStandingFont
.public FontConsumer4a getFontConsumer()
FontConsumer4a
.
FontConsumer4a
.public org.apache.commons.logging.Log getLogger()
public byte[] getContents()
getContents
in interface org.axsl.font.output.FontOutput
public char[] getCharsUsed()
public short[] getWidths()
FontUse
instance.
FontUse
instance.
Element 0 contains the width for the first encodable glyph index (see
Encoding.getFirstIndex()
).
The last element contains the width for the last encodable glyph index
(see Encoding.getLastIndex()
).
Each element contains the width for the encodable glyph index that is
equal to the element index + Encoding.getFirstIndex()
.
For fonts that have been subsetted, only the characters that are
included in the subset are returned.FontPdf.getWidths()
public int getFirstIndex()
getFontUse().getEncoding().getFirstIndex()
.
This is the glyph index for the first item in the array returned by
getWidths()
.
This is needed when embedding some types of fonts in a PDF file.
FontPdf.getFirstIndex()
public int getLastIndex()
getFontUse().getEncoding().getFirstIndex()
.
This is the glyph index for the last item in the array returned by
getWidths()
.
This is needed when embedding some types of fonts in a PDF file.
FontPdf.getLastIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |