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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user