private void initDescriptions() { for (GlyfCompositeComp component : components) { try { int index = component.getGlyphIndex(); GlyphData glyph = glyphTable.getGlyph(index); if (glyph != null) { descriptions.put(index, glyph.getDescription()); } } catch (IOException e) { LOG.error(e); } } } }
private GlyphData getGlyphData(int gid) throws IOException { GlyphData glyph = new GlyphData(); HorizontalMetricsTable hmt = font.getHorizontalMetrics(); int leftSideBearing = hmt == null ? 0 : hmt.getLeftSideBearing(gid); glyph.initData(this, data, leftSideBearing); // resolve composite glyph if (glyph.getDescription().isComposite()) { glyph.getDescription().resolve(); } return glyph; } }
private void initDescriptions() { for (GlyfCompositeComp component : components) { try { int index = component.getGlyphIndex(); GlyphData glyph = glyphTable.getGlyph(index); if (glyph != null) { descriptions.put(index, glyph.getDescription()); } } catch (IOException e) { LOG.error(e); } } } }
private void initDescriptions() { for (GlyfCompositeComp component : components) { try { int index = component.getGlyphIndex(); GlyphData glyph = glyphTable.getGlyph(index); if (glyph != null) { descriptions.put(index, glyph.getDescription()); } } catch (IOException e) { LOG.error(e); } } } }
private GlyphData getGlyphData(int gid) throws IOException { GlyphData glyph = new GlyphData(); HorizontalMetricsTable hmt = font.getHorizontalMetrics(); int leftSideBearing = hmt == null ? 0 : hmt.getLeftSideBearing(gid); glyph.initData(this, data, leftSideBearing); // resolve composite glyph if (glyph.getDescription().isComposite()) { glyph.getDescription().resolve(); } return glyph; } }
private GlyphData getGlyphData(int gid) throws IOException { GlyphData glyph = new GlyphData(); HorizontalMetricsTable hmt = font.getHorizontalMetrics(); int leftSideBearing = hmt == null ? 0 : hmt.getLeftSideBearing(gid); glyph.initData(this, data, leftSideBearing); // resolve composite glyph if (glyph.getDescription().isComposite()) { glyph.getDescription().resolve(); } return glyph; } }