/** * {@inheritDoc} */ @Override public int getContourCount() { if (!resolved) { LOG.error("getContourCount called on unresolved GlyfCompositeDescript"); } if (contourCount < 0) { GlyfCompositeComp c = components.get(components.size() - 1); contourCount = c.getFirstContour() + descriptions.get(c.getGlyphIndex()).getContourCount(); } return contourCount; }
private GlyfCompositeComp getCompositeCompEndPt(int i) { for (GlyfCompositeComp c : components) { GlyphDescription gd = descriptions.get(c.getGlyphIndex()); if (c.getFirstContour() <= i && gd != null && i < (c.getFirstContour() + gd.getContourCount())) { return c; } } return null; }
firstContour += desc.getContourCount();
/** * {@inheritDoc} */ @Override public int getContourCount() { if (!resolved) { LOG.error("getContourCount called on unresolved GlyfCompositeDescript"); } if (contourCount < 0) { GlyfCompositeComp c = components.get(components.size() - 1); contourCount = c.getFirstContour() + descriptions.get(c.getGlyphIndex()).getContourCount(); } return contourCount; }
/** * {@inheritDoc} */ @Override public int getContourCount() { if (!resolved) { LOG.error("getContourCount called on unresolved GlyfCompositeDescript"); } if (contourCount < 0) { GlyfCompositeComp c = components.get(components.size() - 1); contourCount = c.getFirstContour() + descriptions.get(c.getGlyphIndex()).getContourCount(); } return contourCount; }
private GlyfCompositeComp getCompositeCompEndPt(int i) { for (GlyfCompositeComp c : components) { GlyphDescription gd = descriptions.get(c.getGlyphIndex()); if (c.getFirstContour() <= i && gd != null && i < (c.getFirstContour() + gd.getContourCount())) { return c; } } return null; }
private GlyfCompositeComp getCompositeCompEndPt(int i) { for (GlyfCompositeComp c : components) { GlyphDescription gd = descriptions.get(c.getGlyphIndex()); if (c.getFirstContour() <= i && gd != null && i < (c.getFirstContour() + gd.getContourCount())) { return c; } } return null; }
firstContour += desc.getContourCount();
firstContour += desc.getContourCount();