You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using font files, the OpenGL driver renders the fonts thinner than the SDL one. Is there a setting or some other thing that I can do to get back the boldness? I tried to set bold in the config file after the font names, but that way the fonts are too bold and pixelated.
Version of OpenTTD
20210222-master-mb67245d71e
Expected result
Similar font appearance as with the SDL driver.
Actual result
Thinner font appearance than with the SDL driver.
$ ./openttd -v sdl -d freetype=2,driver=1
dbg: [freetype] Initialized
dbg: [freetype] Requested 'DejaVu Sans', using 'DejaVu Sans Book'
dbg: [freetype] Requested 'Liberation Sans', using 'Liberation Sans Regular'
dbg: [freetype] Requested 'Liberation Serif', using 'Liberation Serif Regular'
dbg: [driver] Successfully loaded blitter '32bpp-anim'
dbg: [driver] SDL2: Mouse is at (707, 645), use display 0 (0, 0, 1920, 1080)
dbg: [driver] SDL2: using mode 1920x1054
dbg: [driver] SDL2: using driver 'x11'
dbg: [driver] Successfully loaded video driver 'sdl'
$ ./openttd -v sdl-opengl -d freetype=2,driver=1
dbg: [freetype] Initialized
dbg: [freetype] Requested 'DejaVu Sans', using 'DejaVu Sans Book'
dbg: [freetype] Requested 'Liberation Sans', using 'Liberation Sans Regular'
dbg: [freetype] Requested 'Liberation Serif', using 'Liberation Serif Regular'
dbg: [driver] Successfully loaded blitter '32bpp-anim'
dbg: [driver] SDL2: Mouse is at (405, 573), use display 0 (0, 0, 1920, 1080)
dbg: [driver] SDL2: using mode 1920x1054
dbg: [driver] SDL2: using driver 'x11'
dbg: [driver] OpenGL driver: NVIDIA Corporation - GeForce GTX 1050 Ti/PCIe/SSE2 (4.6.0 NVIDIA 460.39)
(Btw. the mono font is missing from the debug output. :))
Heh, totally forgot about font anti-aliasing. OpenGL video backend is currently causing the 8bpp blitter to be used if you don't load any 32bpp graphics as it is faster.
Fixing that isn't hard, I just wonder whether to force a 32bpp blitter for enabled anti-alias just with OpenGL or in general.
michicc
added a commit
to michicc/OpenTTD
that referenced
this issue
Feb 23, 2021
If using font files, the OpenGL driver renders the fonts thinner than the SDL one. Is there a setting or some other thing that I can do to get back the boldness? I tried to set bold in the config file after the font names, but that way the fonts are too bold and pixelated.
Version of OpenTTD
20210222-master-mb67245d71e
Expected result
Similar font appearance as with the SDL driver.
Actual result
Thinner font appearance than with the SDL driver.
(Btw. the mono font is missing from the debug output. :))
SDL on the left, SDL-OpenGL on the right:
Config file snippet:
System:
Fedora 33
NVIDIA GeForce GTX 1050 Ti
NVIDIA driver 460.39
Steps to reproduce
-v sdl
-v sdl-opengl
The text was updated successfully, but these errors were encountered: