From owner-freebsd-questions@freebsd.org Wed Dec 27 16:45:31 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7571AEA07E0 for ; Wed, 27 Dec 2017 16:45:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ECBB36CA8E for ; Wed, 27 Dec 2017 16:45:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.18.98]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPA (Nemesis) id 0MabU1-1eEUKi3lJB-00K8sw; Wed, 27 Dec 2017 17:45:26 +0100 Date: Wed, 27 Dec 2017 17:45:25 +0100 From: Polytropon To: Christian Weisgerber Cc: freebsd-questions@freebsd.org Subject: Re: Poor default fonts in Firefox Message-Id: <20171227174525.cc1e9047.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:q8YRgb/aGmAmzfPGYpZtSrId9VxsiWtbQJphOh5Rah2Azd0ywpV HemMjIyGct/LBQjFxmNqxiRCrxTErRMzepvcFblrRde2GKfm2GsrBVjhsZWC7YmOez/sAd5 3CIwcIeIZk8thBvG+dkcGzUBjy4AbeHDRCx5pBTbkPVrjFBYkZN/0q28TrcPvmIgYGiDvPZ ksff5rlNv3K2H6z3x2rtA== X-UI-Out-Filterresults: notjunk:1;V01:K0:ttl8P1a6jck=:pS0kNX0bZY/I+B7x7w0YZO hl5y3oU493sktKE+9Ww33OOv7b6V/EpW3idXQeJHpcp+HM5pNvzidl2roROckEH+16N+yC59X 8JYdm70B590CPtw4mJL2GHEvPp77gUN70z8W0wd+WUqZdBMZWB8eLxQhEDeEyPdxGTBXcanST 5X73liCeeX62e7zrpZ+SDWV9GPMB1DW25tMx24vPMRx0dO/RwPxuCppZk56XL1Ut1TmiZ7Mrj Nk7nw7un1c5UZcB/oVHxU0I2lqcLcjMASTENW1usULu/ULYu8Igxao2yI7F16Ahl2xpfEwbU1 yyqMHu4WgDNTMg8l97gKrNu2U2ZS3RWnhtIpHfb6e3lHh7EHf4UPe/Wt3kYBq3ExGr6GZRzCN whtv3zBYcBZ58YlLDvy7+KgU9fqJDxpuq6e1UCdUR26sZjdbVK4XaTwqJkOoXcVIqXorP4CDc W0pGK4VNaYas8xburjNH05xUBdEIKYcwAaNz7atbCYQhJVfMVqVrrrSaC3bd8r9vqzbHv6GfO a17iKSO4/P4sbXfZHcSFfG0gSN50AM1eGvduM5BcrGgpY5jaarIL81SMUa4K115D4fX5m7mNw /YE+90a9o3G/AJ5v0Cj6CyDZ5p9dN63CnE8e2yti7QB+1yuDPXhAoAG2/CimH0KYpRJbQ7PWj nulcWb5hOQElVkCdUzOLrhHL4sTPhW26hwApeoE1+g9W4LAGNu7GimTRrgxKS8pUNKqsAfA39 tepqyrAe3qiyj9FpGFygYaOz2wQCw2s+sgnrL7S0mzUZOkg86CuWZpMm0EWRdjjwKLPIzGJ9G r2N12yG X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2017 16:45:31 -0000 On Wed, 27 Dec 2017 16:09:34 -0000 (UTC), Christian Weisgerber wrote: > You install a new FreeBSD machine with a graphics display, install > the xorg and firefox ports on it, all default options, start browsing > the web... and you see that some sites (e.g. http://www.bbc.com/news) > are presented with pixelated fonts like something out of the 1990s. > > What do you do? You install the recommended font packages. :-) Yes, xorg itself comes with certain fonts, but thpse aren't really suitable for web browsing. adding the webfonts package improves visual presentation a lot. > This affects approximately everybody who uses FreeBSD on a desktop > or laptop, and it has for years. What's the standard solution, and > why doesn't this work out of the box? As nentioned, installing fonts is the solution. The reason why they aren't there by default is that the web browsers don't define fonts as a dependency. And don't just consider the "everyone speaks and writes in English" mentality. If you visit web pages that have japanese or chinese characters and symbols, you'd additionally need zh-CJKUnifonts installed. There is no automatish that does this - except you visit web pages that download fonts from Google to be used. By the way, the same applies to office suites. Installing additional fonts, either via ports, or manually (TT fonts), is often an improvement. > The underlying problem is that certain popular font names, "Helvetica", > "Times", "Courier", are mapped to ancient bitmap fonts by default, e.g.: > $ fc-match Helvetica > helvR12-ISO8859-1.pcf.gz: "Helvetica" "Regular" Yes, this is the common fallback to at least allow the presentation of the text, but the fonts chosen for this purpose are usually "basic quality" (read: you can read them, but they don't look that nice). And considering the CJK problem again, there is no such mapping, so what you see is just Klotz Klotz Klotz Klotz. :-) > My personal solution for the last few years has been to pinch > OpenBSD's etc/fonts/conf.avail/31-nonmst.conf file... > https://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/dist/fontconfig/conf.d/31-nonmst.conf?rev=1.1&content-type=text/x-cvsweb-markup > ... that maps these font names to DejaVu Sans/Serif/Sans Mono. > Still, that seems hackish and can hardly be expected from your > average user. This isn't needed as soon as the webfonts package has been installed. And even the DejaVu fonts need to be installed manually, if I remember correctly. Depending on what you need, manually installing other font packages is also suggest. Here is a little selection from a typical desktop machine, used for web browsing, office suites, and typesetting: cantarell-fonts cyberbit-ttfonts droid-fonts-ttf ecofont figlet-fonts font-adobe font-adobe font-adobe-utopia font-adobe-utopia font-adobe-utopia-type1 font-alias font-amsfonts font-arabic-misc font-bh font-bh font-bh-lucidatypewriter font-bh-lucidatypewriter font-bh-ttf font-bh-type1 font-bitstream font-bitstream font-bitstream-type1 font-cronyx-cyrillic font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 font-isas-misc font-jis-misc font-micro-misc font-misc-cyrillic font-misc-ethiopic font-misc-meltho font-misc-misc font-mutt-misc font-schumacher-misc font-screen-cyrillic font-sony-misc font-sun-misc font-util font-winitzki-cyrillic font-xfree86-type1 fontcacheproto fontconfig fontsproto freefont-ttf freefonts gsfonts libXfont libXfontcache libfontenc linux-f10-fontconfig mkfontdir mkfontscale urwfonts urwfonts-ttf webfonts <---- important! xf86bigfontproto xfontsel xorg-fonts xorg-fonts xorg-fonts xorg-fonts-cyrillic xorg-fonts-miscbitmaps xorg-fonts-truetype xorg-fonts-type1 zh-CJKUnifonts -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...