Implement subpixel font positioning

Subpixel positioning is only by 1/3 of pixel
This commit is contained in:
Francesco Abbate
2021-03-03 18:36:09 +01:00
parent 8883685eea
commit 294f3f14fb
3 changed files with 22 additions and 12 deletions
+3
View File
@@ -49,6 +49,9 @@ void FR_Blend_Glyph(FR_Renderer *font_renderer,
uint8_t *dst, int dst_width,
const FR_Bitmap *glyphs_bitmap,
const FR_Bitmap_Glyph_Metrics *glyph, FR_Color color);
int FR_Subpixel_Scale(FR_Renderer *);
#define FR_XADVANCE_TO_PIXELS(x, scale) (((x) + (scale) / 2) / (scale))
#ifdef __cplusplus
}