// No size is here, sprite atlas already keeps that info, and we need to lookup that data anyway to get UV rectangles. public sGlyphData(int baselinePosition, ref sGlyphInfo glyph) { advance = glyph.advance; lsbDelta = glyph.lsbDelta; rsbDelta = glyph.rsbDelta; left = (short)glyph.rect.left; top = (short)(glyph.rect.top + baselinePosition); spriteIndex = -1; }
public sGlyphData(int baselinePosition, ref sGlyphInfo glyph, int idxSprite) : this(baselinePosition, ref glyph) { spriteIndex = idxSprite; }