| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private static final String | |
| protected final CmapLookup | |
| private final PDDocument | |
| private final boolean | |
| protected PDFontDescriptor | |
| private static final int | |
| private static final int | |
| private final Set | |
| protected TrueTypeFont |
| Access | Constructor and Description |
|---|---|
| pack-priv | TrueTypeEmbedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset)
Creates a new TrueType font for embedding. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addToSubset(int
Unicode code point codePoint)Implements org. Adds the given Unicode code point to this subset. |
| public final void | |
| protected abstract void | buildSubset(InputStream ttfSubset, String tag, Map<Integer, Integer> gidToCid)
Rebuild a font subset. |
| private PDFontDescriptor | |
| public PDFontDescriptor | |
| public String | |
| pack-priv final boolean | isEmbeddingPermitted(TrueTypeFont ttf)
Returns true if the fsType in the OS/2 table permits embedding. |
| private boolean | isSubsettingPermitted(TrueTypeFont ttf)
Returns true if the fsType in the OS/2 table permits subsetting. |
| public boolean | |
| public void |
| allGlyphIds | back to summary |
|---|---|
| private final Set<Integer> allGlyphIds | |
| BASE25 | back to summary |
|---|---|
| private static final String BASE25 | |
| cmapLookup | back to summary |
|---|---|
| protected final CmapLookup cmapLookup | |
| document | back to summary |
|---|---|
| private final PDDocument document | |
| embedSubset | back to summary |
|---|---|
| private final boolean embedSubset | |
| fontDescriptor | back to summary |
|---|---|
| protected PDFontDescriptor fontDescriptor | |
| ITALIC | back to summary |
|---|---|
| private static final int ITALIC | |
| OBLIQUE | back to summary |
|---|---|
| private static final int OBLIQUE | |
| subsetCodePoints | back to summary |
|---|---|
| private final Set<Integer> subsetCodePoints | |
| ttf | back to summary |
|---|---|
| protected TrueTypeFont ttf | |
| TrueTypeEmbedder | back to summary |
|---|---|
| pack-priv TrueTypeEmbedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset) throws IOException Creates a new TrueType font for embedding. | |
| addGlyphIds | back to summary |
|---|---|
| public void addGlyphIds(Set<Integer> glyphIds) | |
| addToSubset | back to summary |
|---|---|
| public void addToSubset(int codePoint) Implements org. Doc from org. Adds the given Unicode code point to this subset.
| |
| buildFontFile2 | back to summary |
|---|---|
| public final void buildFontFile2(InputStream ttfStream) throws IOException | |
| buildSubset | back to summary |
|---|---|
| protected abstract void buildSubset(InputStream ttfSubset, String tag, Map<Integer, Integer> gidToCid) throws IOException Rebuild a font subset. | |
| createFontDescriptor | back to summary |
|---|---|
| private PDFontDescriptor createFontDescriptor(TrueTypeFont ttf) throws IOException Creates a new font descriptor dictionary for the given TTF. | |
| getFontDescriptor | back to summary |
|---|---|
| public PDFontDescriptor getFontDescriptor() Returns the font descriptor. | |
| getTag | back to summary |
|---|---|
| public String getTag(Map<Integer, Integer> gidToCid) Returns an uppercase 6-character unique tag for the given subset. | |
| isEmbeddingPermitted | back to summary |
|---|---|
| pack-priv final boolean isEmbeddingPermitted(TrueTypeFont ttf) throws IOException Returns true if the fsType in the OS/2 table permits embedding. | |
| isSubsettingPermitted | back to summary |
|---|---|
| private boolean isSubsettingPermitted(TrueTypeFont ttf) throws IOException Returns true if the fsType in the OS/2 table permits subsetting. | |
| needsSubset | back to summary |
|---|---|
| public boolean needsSubset() Returns true if the font needs to be subset. | |
| subset | back to summary |
|---|---|
| public void subset() throws IOException Implements org. Doc from org. Subset this font now.
| |