🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Asger Lund Mikkelsen Sun, 13 Dec 2015 09:17
[dialog] Which fallback font is used?
#259875
Author: Asger Lund Mikkelsen
Date: Sun, 13 Dec 2015 09:17
3 lines
1129 bytes
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.
Re: [dialog] Which fallback font is used?
#259867
Author: mechanic
Date: Sun, 13 Dec 2015 12:44
8 lines
1393 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.

Take a look at (menu) Settings -> General Settings -> Fonts/Colors
-> font fallbacks section and try a few changes, any help?
Re: [dialog] Which fallback font is used?
#259868
Author: Bernd Rose
Date: Sun, 13 Dec 2015 13:03
64 lines
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
Re: [dialog] Which fallback font is used?
#259869
Author: Asger Lund Mikkelsen
Date: Sun, 13 Dec 2015 14:31
32 lines
2517 bytes
On Sun, 13 Dec 2015 14:03:02 +0100, Bernd Rose wrote:

> 
> [big snip] 
> 
> 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).
> 
Thank you for an exhaustive reply. I believe that (b) applies here, since
my normal font is Arial and it gets replaced with a serif font with some
embedded Thai (I think) script. Anyway toggling the Monospaced Font did the
trick.

> [another big snip] 
> 
> 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

That sounds interesting. How can I set the log-level to 0 ?
Re: [dialog] Which fallback font is used?
#259870
Author: Bernd Rose
Date: Sun, 13 Dec 2015 18:22
43 lines
3153 bytes
On Sun, 13 Dec 2015 15:31:39 +0100, Asger Lund Mikkelsen wrote:

> Thank you for an exhaustive reply. 

You're welcome  :-)

| There are 2 different font fallbacks, that need to be considered, here:
| a) OS glyph replacement
| b) Dialog font fallback
>
> I believe that (b) applies here, since my normal font is Arial and it gets
> replaced with a serif font with some embedded Thai (I think) script. 

Could also be a combination of b) and a), i.e. you've first got Dialog
internal font fallback, because there are still glyphs missing from your
normal font Arial. (Even when OS glyph replacement occurs.) And in the
next step the fallback font may also be filled up following OS glyph
replacement rules.

> Anyway toggling the Monospaced Font did the trick.

Just toggling to/from Monospaced may still not be the best solution in 
itself, as long as you don't have any "semi-complete" font selected in
one of these two slot, which is /not/ included in OS glyph replacement.
I noticed, that I missed writing part of my thought in the "Solution 2"
text in my previous posting. Therefore to clarify: If you usually use
"variable spaced font" display setting, then install STIX or FreeSerif
as first Monospaced font. If you use "monospaced font" as primary font
for text display, then install one of them as first Variable_spaced font.

Continue using the font you're used to and only toggle (temporarily), 
when it is really necessary.

> How can I set the log-level to 0 ?

<Settings><Show Status Window> -> <Right Click inside the Status Window>
-> <Log Level: 0>

Be sure to reverse this setting to <Log Level: 3> (or sth. around that
number) after your tests are complete. Else, your Dialog will run very 
slow and you'll create *huge* *.log files inside "Logs" subdirectory.

Bernd
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads