@Override public void addToSubset(int codePoint) { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.addToSubset(codePoint); }
public void addGlyphsToSubset(Set<Integer> glyphIds) { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.addGlyphIds(glyphIds); }
@Override public void subset() throws IOException { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.subset(); if (ttf != null) { ttf.close(); ttf = null; } }
Set<Integer> glyphIds = new HashSet<>(); encodedText = encodeForGsub(gsubWorker, glyphIds, pdType0Font, text); if (pdType0Font.willBeSubset())
@Override public void addToSubset(int codePoint) { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.addToSubset(codePoint); }
@Override public void addToSubset(int codePoint) { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.addToSubset(codePoint); }
@Override public void subset() throws IOException { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.subset(); if (ttf != null) { ttf.close(); ttf = null; } }
@Override public void subset() throws IOException { if (!willBeSubset()) { throw new IllegalStateException("This font was created with subsetting disabled"); } embedder.subset(); if (ttf != null) { ttf.close(); ttf = null; } }