public WoffGlyph(uint glyphIndex, short numContours, WoffGlyphType glyphType) : this(glyphIndex, glyphType) { // for the composite glyph — the value -1 should be used for composite glyphs. if (numContours < 0) { numContours = -1; } _numContours = numContours; }
public WoffGlyph(uint glyphIndex, WoffGlyphType glyphType) { _glyphIndex = glyphIndex; _glyphType = glyphType; _instructions = DataEmpty; _components = DataEmpty; switch (glyphType) { case WoffGlyphType.None: _contours = ContoursEmpty; break; case WoffGlyphType.Simple: _contours = new List <WoffPoint>(); break; case WoffGlyphType.Composite: _contours = ContoursEmpty; break; } }