MCPcopy Create free account
hub / github.com/apache/pdfbox / CFFFont

Class CFFFont

fontbox/src/main/java/org/apache/fontbox/cff/CFFFont.java:34–211  ·  view source on GitHub ↗

An Adobe Compact Font Format (CFF) font. Thread safe. @author Villu Ruusmann @author John Hewson

Source from the content-addressed store, hash-verified

32 * @author John Hewson
33 */
34public abstract class CFFFont implements FontBoxFont
35{
36 private String fontName;
37 private CFFCharset charset;
38 private CFFParser.ByteSource source;
39 protected final Map<String, Object> topDict = new LinkedHashMap<>();
40 protected byte[][] charStrings;
41 protected byte[][] globalSubrIndex;
42
43 /**
44 * The name of the font.
45 *
46 * @return the name of the font
47 */
48 @Override
49 public String getName()
50 {
51 return fontName;
52 }
53
54 /**
55 * Sets the name of the font.
56 *
57 * @param name the name of the font
58 */
59 void setName(String name)
60 {
61 fontName = name;
62 }
63
64 /**
65 * Adds the given key/value pair to the top dictionary.
66 *
67 * @param name the given key
68 * @param value the given value
69 */
70 public void addValueToTopDict(String name, Object value)
71 {
72 if (value != null)
73 {
74 topDict.put(name, value);
75 }
76 }
77
78 /**
79 * Returns the top dictionary.
80 *
81 * @return the dictionary
82 */
83 public Map<String, Object> getTopDict()
84 {
85 return topDict;
86 }
87
88 /**
89 * Returns the FontMatrix.
90 */
91 @Override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…