No longer use gamma correction
Text looks more correct without the gamma correction. With gamma correction text looks too bold in dark mode and too light in light mode. This behavior is a sign that gamma correction is not the right thing to do. The problem is seen with gamma at 1.5 used previously but is even worst if a gamma value of 2.2, the theoretical value, is used.
This commit is contained in:
1 parent
3c3662b3ba
commit
f5ede27e91
3 files changed
+16
-24
No files matched your search
+1
-2
@@ -148,8 +148,7 @@ RenFont* ren_load_font(const char *filename, float size) {
|
||||
font = check_alloc(calloc(1, sizeof(RenFont)));
|
||||
font->size = size;
|
||||
|
||||
const float gamma = 1.5;
|
||||
font->renderer = FR_Renderer_New(FR_HINTING | FR_SUBPIXEL | FR_PRESCALE_X, gamma);
|
||||
font->renderer = FR_Renderer_New(FR_HINTING | FR_SUBPIXEL | FR_PRESCALE_X);
|
||||
if (FR_Load_Font(font->renderer, filename)) {
|
||||
free(font);
|
||||
return NULL;
|
||||
|
||||
Reference in new issue
Block a user