@Override public Type1CharString getType1CharString(String name) throws IOException { return CFFCIDFont.this.getType2CharString(0); // .notdef } }
/** * Returns the Type 2 charstring for the given CID, or null if the substituted font does not * contain Type 2 charstrings. * * @param cid CID * @throws IOException if the charstring could not be read */ public Type2CharString getType2CharString(int cid) throws IOException { if (cidFont != null) { return cidFont.getType2CharString(cid); } else if (t1Font instanceof CFFType1Font) { return ((CFFType1Font)t1Font).getType2CharString(cid); } else { return null; } }
@Override public GeneralPath getPath(String selector) throws IOException { int cid = selectorToCID(selector); return getType2CharString(cid).getPath(); }
@Override public float getWidth(String selector) throws IOException { int cid = selectorToCID(selector); return getType2CharString(cid).getWidth(); }
@Override public Type1CharString getType1CharString(String name) throws IOException { return CFFCIDFont.this.getType2CharString(0); // .notdef } }
@Override public Type1CharString getType1CharString(String name) throws IOException { return CFFCIDFont.this.getType2CharString(0); // .notdef } }
/** * Returns the Type 2 charstring for the given CID, or null if the substituted font does not * contain Type 2 charstrings. * * @param cid CID * @throws IOException if the charstring could not be read */ public Type2CharString getType2CharString(int cid) throws IOException { if (cidFont != null) { return cidFont.getType2CharString(cid); } else if (t1Font instanceof CFFType1Font) { return ((CFFType1Font)t1Font).getType2CharString(cid); } else { return null; } }
/** * Returns the Type 2 charstring for the given CID, or null if the substituted font does not * contain Type 2 charstrings. * * @param cid CID * @throws IOException if the charstring could not be read */ public Type2CharString getType2CharString(int cid) throws IOException { if (cidFont != null) { return cidFont.getType2CharString(cid); } else if (t1Font instanceof CFFType1Font) { return ((CFFType1Font)t1Font).getType2CharString(cid); } else { return null; } }
@Override public GeneralPath getPath(String selector) throws IOException { int cid = selectorToCID(selector); return getType2CharString(cid).getPath(); }
@Override public float getWidth(String selector) throws IOException { int cid = selectorToCID(selector); return getType2CharString(cid).getWidth(); }
@Override public float getWidth(String selector) throws IOException { int cid = selectorToCID(selector); return getType2CharString(cid).getWidth(); }
@Override public GeneralPath getPath(String selector) throws IOException { int cid = selectorToCID(selector); return getType2CharString(cid).getPath(); }