| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final COSDictionary | |
| private final COSDictionary | |
| private final PDDocument | |
| private static final Log | |
| private final PDType0Font | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | PDCIDFontType2Embedder(PDDocument
parent document document, COSDictionary font dictionary dict, TrueTypeFont True Type Font ttf, boolean embedSubset, PDType0Font parent Type 0 font parent, boolean vertical)Creates a new TrueType font embedder for the given TTF as a PDCIDFontType2. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| protected void | buildSubset(InputStream ttfSubset, String tag, Map<Integer, Integer> gidToCid)
Implements abstract org. Rebuild a font subset. |
| private void | |
| private boolean | |
| private void | buildVerticalMetrics(TreeMap<Integer, Integer> cidToGid)
Builds vertical metrics with a custom CIDToGIDMap (for embedding font subset). |
| private void | buildVerticalMetrics(COSDictionary cidFont)
Build vertical metrics with Identity CIDToGIDMap (for embedding full font). |
| private void | buildWidths(TreeMap<Integer, Integer> cidToGid)
Builds widths with a custom CIDToGIDMap (for embedding font subset). |
| private void | |
| private COSDictionary | |
| public PDCIDFont | |
| private COSArray | |
| private COSArray | |
| private COSDictionary |
| cidFont | back to summary |
|---|---|
| private final COSDictionary cidFont | |
| dict | back to summary |
|---|---|
| private final COSDictionary dict | |
| document | back to summary |
|---|---|
| private final PDDocument document Hides org. | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| parent | back to summary |
|---|---|
| private final PDType0Font parent | |
| vertical | back to summary |
|---|---|
| private final boolean vertical | |
| PDCIDFontType2Embedder | back to summary |
|---|---|
| pack-priv PDCIDFontType2Embedder(PDDocument document, COSDictionary dict, TrueTypeFont ttf, boolean embedSubset, PDType0Font parent, boolean vertical) throws IOException Creates a new TrueType font embedder for the given TTF as a PDCIDFontType2.
| |
| addNameTag | back to summary |
|---|---|
| private void addNameTag(String tag) | |
| buildCIDSet | back to summary |
|---|---|
| private void buildCIDSet(TreeMap<Integer, Integer> cidToGid) throws IOException Builds the CIDSet entry, required by PDF/A. This lists all CIDs in the font, including those that don't have a GID. | |
| buildCIDToGIDMap | back to summary |
|---|---|
| private void buildCIDToGIDMap(TreeMap<Integer, Integer> cidToGid) throws IOException | |
| buildSubset | back to summary |
|---|---|
| protected void buildSubset(InputStream ttfSubset, String tag, Map<Integer, Integer> gidToCid) throws IOException Implements abstract org. Rebuild a font subset.
| |
| buildToUnicodeCMap | back to summary |
|---|---|
| private void buildToUnicodeCMap(Map<Integer, Integer> newGIDToOldCID) throws IOException | |
| buildVerticalHeader | back to summary |
|---|---|
| private boolean buildVerticalHeader(COSDictionary cidFont) throws IOException | |
| buildVerticalMetrics | back to summary |
|---|---|
| private void buildVerticalMetrics(TreeMap<Integer, Integer> cidToGid) throws IOException Builds vertical metrics with a custom CIDToGIDMap (for embedding font subset). | |
| buildVerticalMetrics | back to summary |
|---|---|
| private void buildVerticalMetrics(COSDictionary cidFont) throws IOException Build vertical metrics with Identity CIDToGIDMap (for embedding full font). | |
| buildWidths | back to summary |
|---|---|
| private void buildWidths(TreeMap<Integer, Integer> cidToGid) throws IOException Builds widths with a custom CIDToGIDMap (for embedding font subset). | |
| buildWidths | back to summary |
|---|---|
| private void buildWidths(COSDictionary cidFont) throws IOException Build widths with Identity CIDToGIDMap (for embedding full font). | |
| createCIDFont | back to summary |
|---|---|
| private COSDictionary createCIDFont() throws IOException | |
| getCIDFont | back to summary |
|---|---|
| public PDCIDFont getCIDFont() throws IOException Returns the descendant CIDFont. | |
| getVerticalMetrics | back to summary |
|---|---|
| private COSArray getVerticalMetrics(int[] values) throws IOException | |
| getWidths | back to summary |
|---|---|
| private COSArray getWidths(int[] widths) throws IOException | |
| toCIDSystemInfo | back to summary |
|---|---|
| private COSDictionary toCIDSystemInfo(String registry, String ordering, int supplement) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PDCIDFontType2Embedder. | |
| public static final PDCIDFontType2Embedder. | |
| public static final PDCIDFontType2Embedder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PDCIDFontType2Embedder. | |
| public static PDCIDFontType2Embedder. |
| BRACKET | back to summary |
|---|---|
| public static final PDCIDFontType2Embedder. | |
| FIRST | back to summary |
|---|---|
| public static final PDCIDFontType2Embedder. | |
| SERIAL | back to summary |
|---|---|
| public static final PDCIDFontType2Embedder. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static PDCIDFontType2Embedder. | |
| values | back to summary |
|---|---|
| public static PDCIDFontType2Embedder. | |