virtual Image Make() const { LTIMING("Render glyph"); Point at(font[chr], font.GetLineHeight()); if(IsNull(yy)) { int n = 2 * (at.x + at.y); return AutoCrop(WithHotSpot(draw->RenderGlyph(at, angle, chr, font, color, Size(n, n)), at.x, at.y), RGBAZero()); } else { int n = at.x + at.y; Size bandsz(2 * n, 32); return AutoCrop(WithHotSpot(draw->RenderGlyph(Point(0, -yy), angle, chr, font, color, bandsz), 0, 0), RGBAZero()); } }
virtual Image Make() const { LTIMING("Render glyph"); Point at(font[chr], font.GetLineHeight()); int n = 2 * (at.x + at.y); return AutoCrop(WithHotSpot(draw->RenderGlyph(at, angle, chr, font, color, Size(n, n)), at.x, at.y), RGBAZero()); }