Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to disable urw fonts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 93

PostPosted: Sun Nov 12, 2017 2:05 pm    Post subject: How to disable urw fonts? Reply with quote

They look terrible in my browser, but they somehow shove themselves to the front. I tried unmerging, but ghostscript-gpl depends on them, so I can't easily get rid of the package.

What do I need to do to disable them? I removed `30-urw-aliases.con` from `/etc/fonts/conf.d` to no avail. Fonts generally seem to be beyond my understanding, so any help is appreciated. I looked at the fontconfig wiki entry, but saw no mention of disabling certain fonts.

Thanks for any help :)
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 212
Location: Frankfurt, Germany

PostPosted: Sun Nov 12, 2017 2:57 pm    Post subject: Reply with quote

Hi Pyrates,

Quote:
I removed `30-urw-aliases.con` from `/etc/fonts/conf.d` to no avail.

I just looked at 30-urw-aliases.conf. 30-urw-aliases.conf maps Symbol fonts to URW fonts. Since you were probably looking at normal text and not at symbols, nothing changed when you removed the file.

Quote:
What do I need to do to disable them?

Do you see the "terrible URW fonts" only in your browser? Or do you see them also in other applications?

If you see them only in your browser: which browser do you use? Can you change default fonts in your browser? I use Firefox and I changed default fonts in Edit -> Preferences -> Content to "Noto".

Mike
Back to top
View user's profile Send private message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 93

PostPosted: Sun Nov 12, 2017 3:45 pm    Post subject: Reply with quote

Hey mike155, thanks for your answer :)

Quote:
Do you see the "terrible URW fonts" only in your browser? Or do you see them also in other applications?


Only browser (firefox), but almost everything else is a terminal application.

I changed them in the browser (I'm using the DejaVu fonts), but I also have enabled (and use) 'Let websites use their own fonts', which somehow seems to result in the urw fonts being used (I don't understand the mechanisms of that in any way, I just inspected the html element to see what font it uses).
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 212
Location: Frankfurt, Germany

PostPosted: Sun Nov 12, 2017 4:30 pm    Post subject: Reply with quote

Please post version and USE flags of the packages below:
  • fontconfig
  • freetype
  • firefox or firefox-bin
Output of "eix fontconfig", "eix freetype" and "eix firefox" would be nice.
Back to top
View user's profile Send private message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 93

PostPosted: Sun Nov 12, 2017 6:13 pm    Post subject: Reply with quote

Sure thing:

Quote:
Rambazamba /home/pips # equery uses fontconfig
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-libs/fontconfig-2.12.4:
U I
+ + abi_x86_32 : 32-bit (x86) libraries
- - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
- - static-libs : Build static versions of dynamic libraries as well

Rambazamba /home/pips # equery uses freetype
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-libs/freetype-2.8:
U I
+ + X : Add support for X11
+ + abi_x86_32 : 32-bit (x86) libraries
+ + adobe-cff : Use Adobe CFF as default font-renderer
- - bindist : Disable ClearType support (see http://freetype.org/patents.html)
+ + bzip2 : Support bzip2 compressed PCF fonts.
+ + cleartype_hinting : New bytecode hinting mode for TrueType fonts that activates subpixel hinting (a.k.a. ClearType hinting) by default
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
- - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
- - fontforge : Install internal headers required for TrueType debugger in media-gfx/fontforge (built with USE=truetype-debugger)
- - harfbuzz : Use media-libs/harfbuzz for auto-hinting OpenType fonts. WARNING: may trigger circular dependencies!
- - infinality : Enable infinality options for improved LCD filtering
+ + png : Add support for libpng (PNG images)
- - static-libs : Build static versions of dynamic libraries as well
- - utils : Install utilities and examples from ft2demos

Rambazamba /home/pips # equery uses firefox
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for www-client/firefox-52.4.0:
U I
- - bindist : Disable official Firefox branding (icons, name) which are not binary-redistributable according to upstream.
- - custom-cflags : Build with user-specified CFLAGS (unsupported)
- - custom-optimization : Build with user-specified compiler optimizations (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)
+ + dbus : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
- - eme-free : Disable EME (DRM plugin) cabability at build time
+ + gmp-autoupdate : Allow Gecko Media Plugins (binary blobs) to be automatically downloaded and kept up-to-date in user profiles
- - gtk2 : Use the cairo-gtk2 rendering engine
- - hardened : Activate default security enhancements for toolchain (gcc, glibc, binutils)
- - hwaccel : Force-enable hardware-accelerated rendering (Mozilla bug 594876)
- - jack : Add support for the JACK Audio Connection Kit
+ + jemalloc : Enable or disable jemalloc
- - l10n_ach : Acoli
- - l10n_af : Afrikaans
- - l10n_an : Aragonese
- - l10n_ar : Arabic
- - l10n_as : Assamese
- - l10n_ast : Asturian
- - l10n_az : Azerbaijani
- - l10n_bg : Bulgarian
- - l10n_bn-BD : Bengali (Bangladesh)
- - l10n_bn-IN : Bengali (India)
- - l10n_br : Breton
- - l10n_bs : Bosnian
- - l10n_ca : Catalan
- - l10n_cak : Kaqchikel
- - l10n_cs : Czech
- - l10n_cy : Welsh
- - l10n_da : Danish
+ + l10n_de : German
- - l10n_dsb : Lower Sorbian
- - l10n_el : Modern Greek
- - l10n_en-GB : English (United Kingdom)
- - l10n_en-ZA : English (South Africa)
- - l10n_eo : Esperanto
- - l10n_es-
4 TrefferAR : Spanish (Argentina)
- - l10n_es-CL : Spanish (Chile)
- - l10n_es-ES : Spanish (Spain)
- - l10n_es-MX : Spanish (Mexico)
- - l10n_et : Estonian
- - l10n_eu : Basque
- - l10n_fa : Persian
- - l10n_ff : Fulah
- - l10n_fi : Finnish
- - l10n_fr : French
- - l10n_fy : Western Frisian
- - l10n_ga : Irish
- - l10n_gd : Scottish Gaelic
- - l10n_gl : Galician
- - l10n_gn : Guarani
- - l10n_gu : Gujarati
- - l10n_he : Hebrew
- - l10n_hi : Hindi
- - l10n_hr : Croatian
- - l10n_hsb : Upper Sorbian
- - l10n_hu : Hungarian
- - l10n_hy : Armenian
- - l10n_id : Indonesian
- - l10n_is : Icelandic
- - l10n_it : Italian
- - l10n_ja : Japanese
- - l10n_ka : Georgian
- - l10n_kab : Kabyle
- - l10n_kk : Kazakh
- - l10n_km : Central Khmer
- - l10n_kn : Kannada
- - l10n_ko : Korean
- - l10n_lij : Ligurian
- - l10n_lt : Lithuanian
- - l10n_lv : Latvian
- - l10n_mai : Maithili
- - l10n_mk : Macedonian
- - l10n_ml : Malayalam
- - l10n_mr : Marathi
- - l10n_ms : Malay (macrolanguage)
- - l10n_nb : Norwegian Bokmål
- - l10n_nl : Dutch
- - l10n_nn : Norwegian Nynorsk
- - l10n_or : Oriya (macrolanguage)
- - l10n_pa : Punjabi
- - l10n_pl : Polish
- - l10n_pt-BR : Portuguese (Brazil)
- - l10n_pt-PT : Portuguese (Portugal)
- - l10n_rm : Romansh
- - l10n_ro : Romanian
- - l10n_ru : Russian
- - l10n_si
4 Treffer : Sinhala
- - l10n_sk : Slovak
- - l10n_sl : Slovenian
- - l10n_son : Songhai languages
- - l10n_sq : Albanian
- - l10n_sr : Serbian
- - l10n_sv : Swedish
- - l10n_ta : Tamil
- - l10n_te : Telugu
- - l10n_th : Thai
- - l10n_tr : Turkish
- - l10n_uk : Ukrainian
- - l10n_uz : Uzbek
- - l10n_vi : Vietnamese
- - l10n_xh : Xhosa
- - l10n_zh-CN : Chinese (China)
- - l10n_zh-TW : Chinese (Taiwan)
- - pgo : Add support for profile-guided optimization using gcc-4.5, for faster binaries. This option will double the compile time.
- - pulseaudio : Add support for PulseAudio sound server
+ + startup-notification : Enable application startup event feedback mechanism
- - system-harfbuzz : Use the system-wide media-libs/harfbuzz and media-gfx/graphite2 instead of bundled.
- - system-icu : Use the system-wide dev-libs/icu instead of bundled.
- - system-jpeg : Use the system-wide media-libs/libjpeg-turbo instead of bundled.
- - system-libevent : Use the system-wide dev-libs/libevent instead of bundled.
- - system-libvpx : Use the system-wide media-libs/libvpx instead of bundled.
- - system-sqlite : Use the system-wide dev-db/sqlite installation with secure-delete enabled
- - test : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
- - wifi : Enable wireless network functions

Rambazamba /home/pips # eix fontconfig
[I] app-eselect/eselect-fontconfig
Verfügbare Versionen: 1.0 1.1 ~1.1-r1
Installierte Versionen: 1.1(10:48:45 11.07.2017)
Startseite: https://www.gentoo.org
Beschreibung: An eselect module to manage /etc/fonts/conf.d symlinks

[?] media-libs/fontconfig
Verfügbare Versionen: (1.0) 2.11.1-r2 ~2.12.1-r1 ~2.12.3-r1
{doc static-libs ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installierte Versionen: 2.12.4(1.0)(08:37:46 02.09.2017)(-doc -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
Startseite: http://fontconfig.org/
Beschreibung: A library for configuring and customizing font access

* media-libs/fontconfig-infinality
Verfügbare Versionen: 20120619 20130404 {+nyx}
Startseite: http://www
4 Treffer.infinality.net/blog/infinality-freetype-patches/
Beschreibung: Configuration to be used in conjunction with the freetype-infinality subpixel hinting

* media-libs/fontconfig-ultimate
Verfügbare Versionen: ~2015.04 ~2015.08.01
Startseite: http://bohoomil.com/
Beschreibung: A set of font rendering and replacement rules for fontconfig-infinality

4 Treffer

Rambazamba /home/pips # eix freetype
[I] media-libs/freetype
Verfügbare Versionen: (2) 2.7.1-r2^d 2.8^d **9999^d
{X +adobe-cff bindist bzip2 +cleartype_hinting debug doc fontforge harfbuzz infinality png static-libs utils ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installierte Versionen: 2.8(2)^d(11:02:30 11.07.2017)(X adobe-cff bzip2 cleartype_hinting png -bindist -debug -doc -fontforge -harfbuzz -infinality -static-libs -utils ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
Startseite: http://www.freetype.org/
Beschreibung: A high-quality and portable font engine

Rambazamba /home/pips # eix firefox
[?] www-client/firefox
Verfügbare Versionen: 45.8.0^d 52.1.0-r1^d 52.2.0^d ~53.0.3^d ~54.0.1^d {bindist custom-cflags custom-optimization dbus debug ffmpeg +gmp-autoupdate +gstreamer gtk2 hardened hwaccel jack +jemalloc +jemalloc3 +jit neon nsplugin pgo pulseaudio rust selinux startup-notification system-cairo system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite test wifi L10N="ach af an ar as ast az be bg bn-BD bn-IN br bs ca cak cs cy da de dsb el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy ga gd gl gn gu he hi hr hsb hu hy id is it ja ka kab kk km kn ko lij lt lv mai mk ml mr ms nb nl nn or pa pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv ta te th tr uk uz vi xh zh-CN zh-TW"}
Installierte Versionen: 52.4.0^d(22:56:28 09.10.2017)(dbus gmp-autoupdate jemalloc startup-notification -bindist -custom-cflags -custom-optimization -debug -eme-free -gtk2 -hardened -hwaccel -jack -neon -pgo -pulseaudio -rust -selinux -system-cairo -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi L10N="de -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW")
Startseite: http://www.mozilla.com/firefox
Beschreibung: Firefox Web Browser

* www-client/firefox-bin
Verfügbare Versionen: 52.2.0^ms ~54.0.1^ms {+ffmpeg +pulseaudio selinux startup-notification L10N="ach af an ar as ast az bg bn-BD bn-IN br bs ca cs cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy ga gd gl gu he hi hr hsb hu hy id is it ja kk km kn ko lt lv mai mk ml mr ms nb nl nn or pa pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv ta te th tr uk uz vi xh zh-CN zh-TW"}
Startseite: http://www.mozilla.com/firefox
Beschreibung: Firefox Web Browser

_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 212
Location: Frankfurt, Germany

PostPosted: Sun Nov 12, 2017 11:35 pm    Post subject: Reply with quote

Thanks for the data. Everything seems to be OK...

Please look at the output of "eselect fontconfig list".

If "57-dejavu-sans-mono.conf", "57-dejavu-sans.conf" and "57-dejavu-serif.conf" are disabled: enable them using "eselect fontconfig enable <number>". Restart your browser and see if the problems are gone.

If they were already enabled, please post the output of:
Code:
eselect fontconfig list
fc-match serif
fc-match sans-serif
fc-match monospace
fc-match Helvetica
fc-match Arial
fc-match Verdana

Explanation: You should try to find out which fonts are mapped to URW fonts. After that, you can try to map those fonts to Deja Vu (or something else). The fontconfig files /etc/fonts/conf.avail/57-dejavu-sans* already do this for many fonts - just look into them to see how it works...
Back to top
View user's profile Send private message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 93

PostPosted: Mon Nov 13, 2017 7:17 pm    Post subject: Reply with quote

I rechecked, and the fonts I'm using are the liberation fonts. Therefore, I enabled `60-liberation.conf`, to no avail. Here's the additional output:

Quote:
Rambazamba /usr/share/fonts # eselect fontconfig list
Available fontconfig .conf files (* is enabled):
[1] 09-texlive.conf
[2] 10-autohint.conf
[3] 10-hinting-full.conf
[4] 10-hinting-medium.conf
[5] 10-hinting-none.conf
[6] 10-hinting-slight.conf *
[7] 10-no-sub-pixel.conf
[8] 10-scale-bitmap-fonts.conf *
[9] 10-sub-pixel-bgr.conf
[10] 10-sub-pixel-rgb.conf *
[11] 10-sub-pixel-vbgr.conf
[12] 10-sub-pixel-vrgb.conf
[13] 10-unhinted.conf
[14] 11-lcdfilter-default.conf *
[15] 11-lcdfilter-legacy.conf
[16] 11-lcdfilter-light.conf
[17] 20-unhint-small-dejavu-sans-mono.conf
[18] 20-unhint-small-dejavu-sans.conf
[19] 20-unhint-small-dejavu-serif.conf
[20] 20-unhint-small-vera.conf *
[21] 25-unhint-nonlatin.conf
[22] 30-metric-aliases.conf *
[23] 30-urw-aliases.conf
[24] 40-nonlatin.conf *
[25] 42-luxi-mono.conf *
[26] 45-latin.conf *
[27] 49-sansserif.conf *
[28] 50-user.conf *
[29] 51-local.conf *
[30] 57-dejavu-sans-mono.conf
[31] 57-dejavu-sans.conf
[32] 57-dejavu-serif.conf
[33] 60-latin.conf *
[34] 60-liberation.conf *
[35] 61-stix.conf
[36] 65-fonts-persian.conf *
[37] 65-khmer.conf
[38] 65-nonlatin.conf *
[39] 69-unifont.conf *
[40] 70-no-bitmaps.conf *
[41] 70-yes-bitmaps.conf
[42] 75-yes-terminus.conf
[43] 80-delicious.conf *
[44] 90-synthetic.conf *
[45] 99pdftoopvp.conf
Rambazamba /usr/share/fonts # fc-match serif
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
Rambazamba /usr/share/fonts # fc-match sans-serif
LiberationSans-Regular.ttf: "Liberatfc-match Verdanaion Sans" "Regular"
Rambazamba /usr/share/fonts # fc-match monospace
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
Rambazamba /usr/share/fonts # fc-match Helvetica
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
Rambazamba /usr/share/fonts # fc-match Arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
Rambazamba /usr/share/fonts # fc-match Verdana
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"


If it helps, a website where I'm seein this behavior is https://doc.rust-lang.org/book/. If the urw fonts are present, the fonts are "NimbusRoman9L" (serif/sans etc.), while if I remove them from `/usr/share/fonts`, the liberation fonts take over.
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 212
Location: Frankfurt, Germany

PostPosted: Mon Nov 13, 2017 8:48 pm    Post subject: Reply with quote

Quote:
https://doc.rust-lang.org/book/.

OK, this site is helpful - it's good to have an example. The CSS of this site defines:
Code:
font-family: "Source Serif Pro",Georgia,Times,"Times New Roman",serif;

Firefox uses the first font that is available. This seems to be "NimbusRoman9L" (I don't know why yet - but we'll find out). If you remove that font, Firefox chooses the next one, which seems to be Liberation.

Please post the output of:
Code:
fc-match "Source Serif Pro"
fc-match Georgia
fc-match Times
fc-match "Times New Roman"
fc-match serif

I you like, you could install "media-fonts/source-pro". The package contains "Source Serif Pro", among other fonts. I especially like then monospaced font "Source Code Pro": much better than Courier & friends. But this wouldn't solve the mapping problem - it would just display the page with the font the web site designers prefer...
Back to top
View user's profile Send private message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 93

PostPosted: Mon Nov 13, 2017 9:30 pm    Post subject: Reply with quote

I'm really thankfull for your patient help, you know? Thanks :)

Here's the output:

Quote:
Rambazamba /home/pips # fc-match "Source Serif Pro"
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"

Rambazamba /home/pips # fc-match Georgia
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"

Rambazamba /home/pips # fc-match Times
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"

Rambazamba /home/pips # fc-match "Times New Roman"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"

Rambazamba /home/pips # fc-match serif
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"


I was under the impression the site also delivers the Source fonts, although I don't know how to verify that. I can't remember where else I had that problem, but I'll think on it, maybe it'll give some hints.
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 212
Location: Frankfurt, Germany

PostPosted: Mon Nov 13, 2017 10:09 pm    Post subject: Reply with quote

Hi Pyrates,

I'm a bit surprised that fc-match didn't show any mapping to URW fonts. On the other hand: that's good! As far as I can see, your font system (fontconfig, freetype, etc) is fine. I guess there's something wrong with the configuration of your browser.

First of all: you are right - https://doc.rust-lang.org/book/ offers web fonts - but they don't work. See next post.

Please look at the font settings of Firefox: Preference -> Contents -> Advanced: there are TWO pages in which you must define default fonts: "Latin" AND "Other Writing Systems".

If this doesn't help, you could start Firefox with an empty configuration file and see if the problem disappears. Either rename ~/.mozilla/firefox to something else before starting Firefox or create a new user and start Firefox from this user.

I'm afraid I don't have any more ideas...

Good luck!

Mike


Last edited by mike155 on Tue Nov 14, 2017 2:09 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 212
Location: Frankfurt, Germany

PostPosted: Mon Nov 13, 2017 11:39 pm    Post subject: Reply with quote

I tried to understand why web fonts at https://doc.rust-lang.org/book/ don't work.

The reason is simple: the @font definitions in the CSS file are wrong. A leading slash is missing. They have:
Code:
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');

But it should be:
Code:
src: local('Fira Sans'), url("/FiraSans-Regular.woff") format('woff');

The same is true for all web font URLs on this page.

So there's nothing wrong with Firefox :-) - it's the CSS file that is faulty.

@Pyrates: please try https://doc.rust-lang.org/. Web fonts seem to work on this page. Do you see the web fonts?
Back to top
View user's profile Send private message
lord_khelben
n00b
n00b


Joined: 22 Jan 2017
Posts: 3

PostPosted: Tue Nov 14, 2017 12:19 pm    Post subject: Reply with quote

mike155 wrote:
Hi Pyrates,

I'm a bit surprised that fc-match didn't show any mapping to URW fonts. On the other hand: that's good! As far as I can see, your font system (fontconfig, freetype, etc) is fine. I guess there's something wrong with the configuration of your browser.

I'm afraid I don't have any more ideas...

Good luck!

Mike


I had the same problem with firefox. Without messing with its preferences (especially the font preferences which i have never changed), suddenly (i guess after some upgrade) the fonts were terrible.

Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Reject URW fonts -->
   <selectfont>
      <rejectfont>
         <glob>/usr/share/fonts/urw-fonts</glob>
      </rejectfont>
   </selectfont>
</fontconfig>

I changed /etc/fonts/local.conf (or maybe created it, i don't remember) to look like above. You can also use other matches like font family but i just rejected the whole directory.
Back to top
View user's profile Send private message
Pyrates
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 93

PostPosted: Tue Nov 14, 2017 7:43 pm    Post subject: Reply with quote

mike155 wrote:
I tried to understand why web fonts at https://doc.rust-lang.org/book/ don't work.


Thanks for investigating, I opened an issue and will submit a PR if feasible.

Quote:
@Pyrates: please try https://doc.rust-lang.org/. Web fonts seem to work on this page. Do you see the web fonts?


Yep, those are the source fonts alright. Quite nice actually, I might indeed install them.

lord_khelben wrote:
I changed /etc/fonts/local.conf (or maybe created it, i don't remember) to look like above


That worked, thanks a lot! If someone else comes by, note that you'll have to enable `51-local.conf` from `eselect fontconfig`.

Thanks everyone, very nice and helpfull :)
_________________
" ... and the Vogon will do things to you that you wish you'd never been born, or, if you're a clearer minded thinker, that the Vogon had never been born."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum