You are not logged in.

#1 2018-08-25 22:10:18

Donatello4620
Member
Registered: 2018-08-25
Posts: 6

Tf2 fonts not rendering correctly?

Hi, I've installed the MS fonts following those instructions:
https://wiki.archlinux.org/index.php/Microsoft_fonts (from ISO)

All went fine but the chat, console and some other fonts dont look identical to the Windows version.

$ fc-match Verdana
verdana.ttf: "Verdana" "Regular"

Other fonts seem to work correctly though.

Offline

#2 2018-08-25 23:03:59

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: Tf2 fonts not rendering correctly?

You will never be able to get your fonts to look identical to Windows because they are rendered by a different program.  Linux uses freetype/opentype and Windows uses cleartype.  So, the best you can do is mess around with fontconfig to enable antialiasing and stuff like that.

Offline

#3 2018-08-25 23:19:45

Donatello4620
Member
Registered: 2018-08-25
Posts: 6

Re: Tf2 fonts not rendering correctly?

circleface wrote:

You will never be able to get your fonts to look identical to Windows because they are rendered by a different program.  Linux uses freetype/opentype and Windows uses cleartype.  So, the best you can do is mess around with fontconfig to enable antialiasing and stuff like that.

Alright, thanks. So that means in theory the fonts are all working correctly, right?

Offline

#4 2018-08-25 23:38:46

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: Tf2 fonts not rendering correctly?

Yes, the fonts are most likely working correctly.  I wish I had better news, but since cleartype is not open source, there is really no way for linux software to render exactly like Windows fonts, even when using the same font.

Offline

#5 2018-08-25 23:42:26

Donatello4620
Member
Registered: 2018-08-25
Posts: 6

Re: Tf2 fonts not rendering correctly?

circleface wrote:

Yes, the fonts are most likely working correctly.  I wish I had better news, but since cleartype is not open source, there is really no way for linux software to render exactly like Windows fonts, even when using the same font.

Thanks again, for clearing up.

Offline

#6 2018-08-26 06:05:02

seth
Member
Registered: 2012-09-03
Posts: 62,203

Re: Tf2 fonts not rendering correctly?

https://wiki.archlinux.org/index.php/Fo … _rendering - though there's quite a debate on whether that's actually an improvement ;-)

Just to be sure: this is a rendering issue, you do not see a completely different, garbled, pixelated, … font? (screenshots?)

Offline

#7 2018-08-26 15:49:57

Donatello4620
Member
Registered: 2018-08-25
Posts: 6

Re: Tf2 fonts not rendering correctly?

https://i.imgur.com/HeU7GIX.png
https://i.imgur.com/wvWXgKH.png
https://i.imgur.com/YDljIuj.png
https://i.imgur.com/mu2RWr7.png

chat looks pretty unclear to me, not sure if the Verdana font is actually being used, though some things look a bit better AFAIK

Moderator edit:  Converted over sized images to url links

Last edited by ewaller (2018-08-26 16:05:22)

Offline

#8 2018-08-26 16:06:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,360

Re: Tf2 fonts not rendering correctly?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2018-08-26 16:12:40

seth
Member
Registered: 2012-09-03
Posts: 62,203

Re: Tf2 fonts not rendering correctly?

That's not Verdana (look at the "a" and the "y") - the console says Nimbus Sans and on a brief check, that fits.
I don't know how to make TF2 use a different font, but you might configure Sans to default to Verdana, if you don't mind. See eg. https://wiki.archlinux.org/index.php/Fo … ault_fonts

Offline

#10 2018-08-26 16:14:14

Donatello4620
Member
Registered: 2018-08-25
Posts: 6

Re: Tf2 fonts not rendering correctly?

seth wrote:

That's not Verdana (look at the "a" and the "y") - the console says Nimbus Sans and on a brief check, that fits.
I don't know how to make TF2 use a different font, but you might configure Sans to default to Verdana, if you don't mind. See eg. https://wiki.archlinux.org/index.php/Fo … ault_fonts

Strange, because in the console it said something about verdana aswell hmm (not in the screenshot)

Offline

#11 2018-08-26 16:19:41

seth
Member
Registered: 2012-09-03
Posts: 62,203

Re: Tf2 fonts not rendering correctly?

Maybe some interesting error message regarding the font? Anyway, the font shown in those screenshots is not Verdana - that's no "misrendering", the glyphs have different shapes (Verdana is straighter)

Offline

#12 2018-08-26 16:29:36

Donatello4620
Member
Registered: 2018-08-25
Posts: 6

Re: Tf2 fonts not rendering correctly?

seth wrote:

Maybe some interesting error message regarding the font? Anyway, the font shown in those screenshots is not Verdana - that's no "misrendering", the glyphs have different shapes (Verdana is straighter)

Well looks like console isn't saying anything about Verdana anymore, yesterday I got the following messages in the console though:

m_face->glyph->bitmap.width is 0 for ch:32 Verdana

Offline

Board footer

Powered by FluxBB