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 parent
4d3693479d
commit
3c3662b3ba
4 files changed
+18
-14
No files matched your search
+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