Article View: news.software.readers
Article #259868Re: [dialog] Which fallback font is used?
From: Bernd Rose
Date: Sun, 13 Dec 2015 13:03
Date: Sun, 13 Dec 2015 13:03
64 lines
4190 bytes
4190 bytes
On Sun, 13 Dec 2015 10:17:25 +0100, Asger Lund Mikkelsen wrote: > When font fallback occurs in 40tude Dialog, how can I tell which font it > chooses? In one message I am trying to read, the chosen font is tiny, and I > would like to adjust the size for that particular font. There are 2 different font fallbacks, that need to be considered, here: a) OS glyph replacement b) Dialog font fallback a) Chars that are missing in one font will be loaded from another font based on internal replacement tables. Therefore, if you have a common Windows font as your primary Dialog display font (Arial, Courier New,...), the missing glyphs will most likely be loaded from "Cambria Math". This is a special font containing - among others - very huge chars (like integral). Font height / baseline calculations are based on the char with the largest font height. - Therefore all other chars need to be reduced in size for a given font size. That's the most likely cause for you seeing very tiny characters. (All chars that are embedded from the replacement font just appear tiny for normal font sizes.) Thunderbird counteracts these effects of internal OS replacement tables by hard coding character replacement rules. Since those OS replacements were mostly introduced after Dialog development already stopped, Dialog has no such countermeasures... b) Dialog font fallback occurs (separate for variable spaced and monospaced fonts) in the sequence listed under <General settings><Fonts/Colors>, as long as font fallback isn't disabled there. Unfortunately, this only chimes in, /after/ any OS related replacement goes awry. (Usually /never/ for system fonts.) ;------- Solution 1: Use only fonts without OS replacement information for primary font and all fallback font settings. Solution 2: If you usually only use either variable spaced or monospaced fonts for display in Dialog (probably the latter), then set up a universal font containing a huge subset of the OS supported subset of Unicode. (Please note, that every Windows version introduces wider support. You can display chars in Win8.1, for instance, that were impossible to view in WinXP...) Whenever you encounter an article with minuscule chars, just switch to the other display variant (aka toggle the "Monospaced Font" setting from the <Message View> option). Suitable "universal" fonts for Solutions 1 and 2 include FreeSerif and STIX (not STIXMath, which behaves like CambriaMath!): www.gnu.org/software/freefont www.stixfonts.org Theoretically, you can debug Dialog font fallback via Dialog Status Window with log-level set to 0. Unfortunately, this has two "glitches": OS glyph replacement occurs invisible to Dialog. And sometimes, "missing glyphs" information is incorrect; probably because of erroneous system information passed back to Dialog (the Windows character table program shows similar errors). HTH. Bernd
Technical Details
Message-ID:
<e2aj1wgsz8c2$.dlg@b.rose.tmpbox.news.arcor.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<1pqrhczqyznig.1ehmadlk5krv1.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <e2aj1wgsz8c2$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: [dialog] Which fallback font is used? Date: Sun, 13 Dec 2015 14:03:02 +0100 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <1pqrhczqyznig.1ehmadlk5krv1.dlg@40tude.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: albasani.net Lines: 64 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 7nAaFxKMTKPYSRPhbKAMAzzMBFRVjLZSxLXwlSC9dw2R9WgAShcr/UyGWUksEMv4s4+Vfon3tEH1EsBhsmEsIw== NNTP-Posting-Date: Sun, 13 Dec 2015 13:03:01 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="9WXp2NKFbBnM9JgyySXsR6NoNt4Kjuk0BLRatnx7NItFiCQy18EN6/10eNazgBtAAEvYEvZq8vXn4TpFRzjW+mOnRWxgVV23+STu46I+wfOS0pn92nM4wAt5VGHn/2qN"; mail-complaints-to="abuse@albasani.net" User-Agent: 40tude_Dialog/2.0.15.41 (dfb82cf4.141.383) Cancel-Lock: sha1:lMmF+baJDKcfZ+c4Dv1Sp3NI8TI= X-Received-Bytes: 4093 X-Received-Body-CRC: 1943128257