You are not logged in.

#1 2017-09-24 08:12:08

mapi
Member
Registered: 2017-09-23
Posts: 4

urxvt fonts broken after freetype2 2.8.1 update

Hello,

The recent update of freetype2 (2.8-2 -> 2.8.1-1) broke my fonts in urxvt.

Some fonts refuse to load:

urxvt: unable to calculate font width for 'MonacoB2:style=Bold:slant=0:weight=100:pixelsize=21:minspace=True', ignoring.
urxvt: unable to calculate font width for 'Bitstream Vera Sans Mono:slant=0:weight=100:pixelsize=21:antialias=False:autohint=True:minspace=True', ignoring.
urxvt: unable to calculate font width for 'Courier New:slant=0:weight=100:pixelsize=21:antialias=False:autohint=True:minspace=True', ignoring.
urxvt: unable to calculate font width for 'Andale Mono:slant=0:weight=100:pixelsize=21:antialias=False:autohint=False:minspace=True', ignoring.
urxvt: unable to calculate font width for 'FreeMono:slant=0:weight=100:pixelsize=21:autohint=True:minspace=True', ignoring.

And the spacing on the ones that do is different than before.
https
Images: Before, After (The selected character is the 'n' in the hostname.)

Here is the relevant section of my .Xresources:

Xft.lcdfilter: lcddefault
Xft.antialias: true
Xft.autohint: 0
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xft.dpi: 96

...

URxvt.font:xft:Monaco:style=Regular:size=12,\
xft:TakaoPGothic
URxvt.boldFont:xft:MonacoB2-Bold:style=Bold:faceSize=12,\
xft:TakaoPGothic
URxvt.letterSpace: -1

Offline

#2 2017-09-24 08:39:25

seth
Member
Registered: 2012-09-03
Posts: 58,826

Re: urxvt fonts broken after freetype2 2.8.1 update

Seems limited to MonacoB2?
What about more common fonts, like DejaVu Mono, Source Code or Consolas?

Offline

#3 2017-09-24 08:59:35

mapi
Member
Registered: 2017-09-23
Posts: 4

Re: urxvt fonts broken after freetype2 2.8.1 update

It affects more fonts. For example the green dot in the systemd service status on the screenshots is not part of monaco as far as I know. Other symbols like '☆' fail to show correctly too.

Offline

#4 2017-09-24 12:52:23

seth
Member
Registered: 2012-09-03
Posts: 58,826

Re: urxvt fonts broken after freetype2 2.8.1 update

Thing is, about every bold glyph looks bonkers, all other look more or less ok.
You're using a variation of monaco that adds bold glyphs.

I'd try whether the same happens if you replace that particular font in the urxvt settings.

Offline

#5 2017-09-24 13:42:52

mapi
Member
Registered: 2017-09-23
Posts: 4

Re: urxvt fonts broken after freetype2 2.8.1 update

Alright, I have done more testing.

DejaVu Sans Mono loads, but the letter spacing is still smaller - you can even see that the ● symbol gets cut off a bit from the left on the new version.

Screenshots: Before, After

Another thing I noticed is that wine crashes after the update:

wine: Unhandled page fault on read access to 0x00000008 at address 0x7f639130a3a9 (thread 0030), starting debugger...
winedbg: Internal crash at 0x7f553f7c63a9

This leads me to believe that freetype is at fault here.

Offline

#6 2017-09-24 14:25:20

seth
Member
Registered: 2012-09-03
Posts: 58,826

Re: urxvt fonts broken after freetype2 2.8.1 update

cat /etc/profile.d/freetype2.sh

Not sure about wine, but would try whether a "clean" font set prevents this (ie. whether this is due to the handling of specific fonts - it should probably not crash, but that can be the lib or the client and in any case you can report to freetype that "handling of font xyz seems broken after update)

Offline

#7 2017-09-24 17:25:13

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: urxvt fonts broken after freetype2 2.8.1 update

There isn't much new here: https://www.freetype.org/index.html#news

This did cause issues for various projects using skia, e.g. Firefox/Thunderbird, qt5 via webengine... I doubt urxvt has the same problem big_smile but it might have an unrelated problem caused by the same freetype change. Given how urxvt abuses fonts, I wouldn't be surprised.

Last edited by eschwartz (2017-09-24 17:26:12)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2017-09-24 17:30:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,094

Re: urxvt fonts broken after freetype2 2.8.1 update

mapi wrote:

Another thing I noticed is that wine crashes after the update

The Wine issues are separate, caused by Wine relying on undocumented behavior in freetype2 that changed in 2.8.1.

Online

Board footer

Powered by FluxBB