Attempt to change Lix's font by adding a tff with the same name - weird results

Started by Silken Healer, March 29, 2025, 07:17:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Silken Healer

Lix version: 0.10.30 64-bit (not the compile yourself version) ((thought perhaps I should also mention just in case it matters (doubt it will) that I'm on the unlimited titled build Simon sent me, but that should be exactly the same as normal 0.10.30 except for that))
Operating System version: Windows 10 LTSC 2021 64-bit English-United Kingdom, Version 21H2 OS Build 19044.5608
Description: Rcecently, I wanted to change Lix's deafult font to a font named "Tahoma" to try and get the old Lix look back. So, I had the idea to try and find the font in the game's files, and download a .tff file online, and replacing it. The .tff file is from here https://font.download/dl/font/tahoma.zip. Now this looks okay but it doesn't look exactly the same as what I wanted. I wanted the font too look like this video https://youtu.be/e35LjKmwRUE As you can see in this video the font looks more pixelated. At least this version of the Tahmoa font is the correct size no matter the resolution, and is readable. By the way, Simon told me that old Lix (featured in that video) rendered at 640x480 in an IRC conversation we had, so I assume that hardware fullscreen 640x480 on modern Lix does the same thing? That's the only reason I can think off why it would look different and not be a Lix bug

I then tried a different version of that font from this link on GitHub https://github.com/wine-mirror/wine/raw/refs/heads/master/fonts/tahoma.ttf and the results look completley awful. At first I thought it was in some weird hieroglyphs, however I then realized you could actually technically make out what it was trying to say, barely. In addition to this, the results do not scale. The size at 640x480 hardware fullscreen, are the exact same at 1920x1080 software fullscreen. So at 1920x1080 software fullscreen, the text is way too small for the buttons.

Steps to reproduce:
  • Navigate to ../lix-0.10.30/data/fonts
  • Move the djvusans.tff file out and keep it safe
  • Obtain another font you want to use in tff format, and paste in that directory
  • Rename the font you want to use to djvusans.tff
  • Run Lix
  • (Optionally) Change Lix to hardware fullscreen 680x480 and software fullscreen 1920x1080
Screenshots/Recordings:
font.download Tahmoa font in modern Lix vs. old lix video comparison


Demonstration of the text being the correct size for the buttons with the font.download Tahoma font for different resolution settings


Hardware fullscreen 640x480, GitHub Tahoma font


Software fullscreen 1920x1080, GitHub Tahoma font


Demonstration on the GitHub Tahoma font - you can sort of make out some letters


Demonstration of the text being too small for the buttons with the GitHub Tahoma font for different resolution settings


Old Lix video that demonstrates the Tahoma font look that I want
https://pomf2.lain.la/f/sjka8m8e.mp4

Expected behaviour: Putting the Tahmoa font in the Lix fonts directory renamed to "djvusans.tff" makes it look like the old Lix in that video I sent.