Add option to disable X axis font's pre-scaling

If used pre-scaling along X null the effect of the font's hinting.
This commit is contained in:
Francesco Abbate
2020-06-12 16:06:39 +02:00
parent 4d3693479d
commit 3c3662b3ba
4 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ RenFont* ren_load_font(const char *filename, float size) {
font->size = size;
const float gamma = 1.5;
font->renderer = FR_Renderer_New(FR_HINTING | FR_SUBPIXEL, gamma);
font->renderer = FR_Renderer_New(FR_HINTING | FR_SUBPIXEL | FR_PRESCALE_X, gamma);
if (FR_Load_Font(font->renderer, filename)) {
free(font);
return NULL;