Summary: | =media-libs/freetype-2.8: font 'Terminus' renamed to 'xos4 Terminus' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew Petelin <adrianopol> |
Component: | Current packages | Assignee: | Gentoo Fonts Team <fonts> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | alexander, fonts, marien.zwart, nobrowser, polynomial-c, skrattaren, theli.ua |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | `fc-match -v terminus` output |
Description
Andrew Petelin
2017-05-19 10:36:23 UTC
Small edition: on another gentoo system everything was OK (I mean update to freetype-2.8) until recompiling the package media-fonts/terminus-font-4.39-r1. I see: emerging the freetype doesn't invoke fc-cache, unlike emerging the terminus-font. So, here is a temporary solution (for those who have installed terminus-font *after* having installed freetype-2.8): * emerge -1 =freetype-2.7.1-r2 # downgrade * emerge -1 terminus-font * emerge -1 -u freetype # restore Hit it too, but Andrew's workaround didn't work for me. Here's updtream discussion: https://lists.nongnu.org/archive/html/freetype/2017-01/msg00019.html (In reply to Nikolaj Šujskij from comment #4) > Hit it too, but Andrew's workaround didn't work for me. Can you show your `fc-match -v terminus` output after downgrading to freetype-2.7.1-r2? Created attachment 474434 [details]
`fc-match -v terminus` output
(In reply to Andrew Petelin from comment #6) > (In reply to Nikolaj Šujskij from comment #4) > Can you show your `fc-match -v terminus` output after downgrading to > freetype-2.7.1-r2? See attachment. Output doesn't change, I've checked and diff'ed outputs after all three steps. (In reply to Nikolaj Šujskij from comment #8) > See attachment. Output doesn't change, I've checked and diff'ed outputs > after all three steps. Hmm, but it means you have a proper font installation (see line `family: "Terminus"(s)` in your attachment). If the font was installed as 'xos4 Treminus', there would have been something like 'family: "DejaVu Sans"(s)' in the fc-match output (since there was no more 'Terminus' font). Are you sure you are choosing exactly 'Terminus' name in your GUI application after downgrading freetype and reinstalling terminus-font package? (In reply to Andrew Petelin from comment #9) > (In reply to Nikolaj Šujskij from comment #8) > > See attachment. Output doesn't change, I've checked and diff'ed outputs > > after all three steps. > Are you sure you are choosing exactly 'Terminus' name in your GUI > application after downgrading freetype and reinstalling terminus-font > package? Positive. Just tried it again. However, I'm testing it in urxvt: https://bitbucket.org/skrattaren/dotfiles/src/default/Xdefaults#Xdefaults-28, could that be the reason? Just in case: [ebuild R ] media-fonts/terminus-font-4.40::gentoo USE="X center-tilde pcf pcf-unicode-only psf ru-g -a-like-o -distinct-l -quote -raw-font-data -ru-dv -ru-i -ru-k" 0 KiB This is a new feature which got introduced upstream in 2.7.1 and disabled by default in 2.8 (see https://lists.nongnu.org/archive/html/freetype/2017-01/msg00041.html). Gentoo is explicitly enabling it (https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/freetype/freetype-2.8.ebuild#n78). The ebuild mentions it can be disabled through the FREETYPE_PROPERTIES="pcf:no-long-family-names=1" environment variable. This might only work correctly if set at the system level, because the font family gets cached in /var/cache/fontconfig. Those caches get updated whenever you emerge a font, so the variable would probably have to be set at that time. It can also be worked around at the fontconfig level, by dropping something like "<fontconfig><alias><family>Terminus</family><prefer><family>xos4 Terminus</family></prefer></alias></fontconfig>" into ~/.config/fontconfig/conf.d/50-terminus-name.conf (or system-wide in /etc/fonts/conf.d). But that might not fix some unusual applications (it didn't fix Emacs for me). So unless other distros also start enabling this, it's a bit annoying (for me, apparently there are pcf fonts for which this is quite useful as they otherwise have a generic name). (In reply to Andrew Petelin from comment #9) > (In reply to Nikolaj Šujskij from comment #8) > > See attachment. Output doesn't change, I've checked and diff'ed outputs > > after all three steps. > > Hmm, but it means you have a proper font installation (see line `family: > "Terminus"(s)` in your attachment). If the font was installed as 'xos4 > Treminus', there would have been something like 'family: "DejaVu Sans"(s)' > in the fc-match output (since there was no more 'Terminus' font). > > Are you sure you are choosing exactly 'Terminus' name in your GUI > application after downgrading freetype and reinstalling terminus-font > package? Sorry, I confused myself with urxvt/urxvtc. The former behaves just as you described, while the latter seems to use font family that were cached when urxvtd had been started. |