|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.font.output.FontOutput4a
org.foray.font.output.FontPdf4a
public class FontPdf4a
Helper class for applications using or embedding fonts in PDF output.
| Field Summary | |
|---|---|
static byte |
FLAG_BIT_ALL_CAP
Font Descriptor Flag bit for "AllCap". |
static byte |
FLAG_BIT_FIXED_PITCH
Font Descriptor Flag bit for "FixedPitch". |
static byte |
FLAG_BIT_FORCE_BOLD
Font Descriptor Flag bit for "ForceBold". |
static byte |
FLAG_BIT_ITALIC
Font Descriptor Flag bit for "Italic". |
static byte |
FLAG_BIT_NONSYMBOLIC
Font Descriptor Flag bit for "Nonsymbolic". |
static byte |
FLAG_BIT_SCRIPT
Font Descriptor Flag bit for "Script". |
static byte |
FLAG_BIT_SERIF
Font Descriptor Flag bit for "Serif". |
static byte |
FLAG_BIT_SMALL_CAP
Font Descriptor Flag bit for "SmallCap". |
static byte |
FLAG_BIT_SYMBOLIC
Font Descriptor Flag bit for "Symbolic". |
| Constructor Summary | |
|---|---|
FontPdf4a(FontUse4a fontUse)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getFlags()
|
int[] |
getFontBoundingBox()
|
String |
getItalicAngleFormatted()
Returns a compactly formatted version of the ItalicAngle value for this font, expressed in degrees counterclockwise from vertical. |
String |
getPdfFontFileStreamAdditional()
Returns the "Additional entries in a FontFile stream dictionary" that is documented in the PDF Reference, Second Edition, Section 5.8, especially Table 5.22. |
int |
getPDFFontFileStreamSize()
Returns the size, in bytes, of the output stream. |
String |
getToUnicodeBf()
|
String |
getUnicodeString(int c)
Convert a char to a multibyte hex representation. |
static String |
padHexString(String input,
int numChars)
Prepends the input string with a sufficient number of "0" characters to get the returned string to be numChars length. |
String |
textToPdf(CharSequence theString,
org.axsl.font.FontOptions fontOptions,
org.axsl.common.i18n.Orthography orthography)
|
protected void |
writeBFCharEntries(StringBuilder p,
char[] charArray)
Writes the BFChar entries. |
protected void |
writeBFRangeEntries(StringBuilder p,
char[] charArray)
Writes the BFChar range entries. |
| Methods inherited from class org.foray.font.output.FontOutput4a |
|---|
getCharsUsed, getContents, getFirstIndex, getFontConsumer, getFontUse, getFOrayFont, getFOrayFontUse, getFreeStandingFont, getLastIndex, getLogger, getWidths |
| 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.output.FontPdf |
|---|
getFirstIndex, getLastIndex, getWidths |
| Methods inherited from interface org.axsl.font.output.FontOutput |
|---|
getContents, getFontUse |
| Field Detail |
|---|
public static final byte FLAG_BIT_FIXED_PITCH
public static final byte FLAG_BIT_SERIF
public static final byte FLAG_BIT_SYMBOLIC
public static final byte FLAG_BIT_SCRIPT
public static final byte FLAG_BIT_NONSYMBOLIC
public static final byte FLAG_BIT_ITALIC
public static final byte FLAG_BIT_ALL_CAP
public static final byte FLAG_BIT_SMALL_CAP
public static final byte FLAG_BIT_FORCE_BOLD
| Constructor Detail |
|---|
public FontPdf4a(FontUse4a fontUse)
fontUse - The FontUse4a instance for which this output
helper is created.| Method Detail |
|---|
public String getPdfFontFileStreamAdditional()
getPdfFontFileStreamAdditional in interface org.axsl.font.output.FontPdfpublic int getPDFFontFileStreamSize()
public int[] getFontBoundingBox()
getFontBoundingBox in interface org.axsl.font.output.FontPdfpublic int getFlags()
getFlags in interface org.axsl.font.output.FontPdfpublic String getItalicAngleFormatted()
getItalicAngleFormatted in interface org.axsl.font.output.FontPdfpublic String getToUnicodeBf()
getToUnicodeBf in interface org.axsl.font.output.FontPdf
protected void writeBFCharEntries(StringBuilder p,
char[] charArray)
p - The buffer to which the entries should be written.charArray - The chars which should be written.
protected void writeBFRangeEntries(StringBuilder p,
char[] charArray)
p - The buffer to which the entries should be written.charArray - The chars which should be written.
public static String padHexString(String input,
int numChars)
input - The input string.numChars - The minimum characters in the output string.
public String textToPdf(CharSequence theString,
org.axsl.font.FontOptions fontOptions,
org.axsl.common.i18n.Orthography orthography)
textToPdf in interface org.axsl.font.output.FontPdfpublic String getUnicodeString(int c)
c - The character to be converted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||