bohoomil / fontconfig-ultimate

freetype2-infinality run-time settings => infinality compatible fontconfig => infinality-bundle
453 stars 38 forks source link

Issue with a single font in Thunderbird message #72

Closed orschiro closed 9 years ago

orschiro commented 9 years ago

Dear @bohoomil,

I encounter a very specific issue with an email sent by a particular contact. I don't know from where to get more information about the particular font in use. The email message looks as follows:

image

For me personally, the email font is very inconvenient to read due to its narrow letter spacing.

What might I be doing with it?

cairo-infinality-ultimate 1.14.0-2
fontconfig-infinality-ultimate 2.11.1-24
freetype2-infinality-ultimate 2.5.5-2
lib32-cairo-infinality-ultimate 1.14.0-2
lib32-fontconfig-infinality-ultimate 2.11.1-3
lib32-freetype2-infinality-ultimate 2.5.5-2
❯ fc-presets check
 [ combi ] is not set 
 :: Run <fc-presets help> for more information.

 5 symlinks found.
 The active preset seems to be [ free ].
 Checking symlinks now...

30-metric-aliases-free.conf is OK
37-repl-global-free.conf is OK
60-latin-free.conf is OK
65-non-latin-free.conf is OK
66-aliases-wine-free.conf is OK

Thankfully,

Robert

bohoomil commented 9 years ago

Hello Robert,

Did you try changing the font in Preferences -> Display -> Formatting -> Advanced -> Western => <your_fonts>? You can do the same with other language scripts.

orschiro commented 9 years ago

Yes, I did:

image

I could force all messages to use that font (uncheck Allow messages to use other fonts) but then I am losing a lot of proper formatting of HTML mails.

bohoomil commented 9 years ago

Nope, I didn't mean unchecking this option... Simply tell your pen-pal to change the font. ;-)

What I think we can try doing anyway: display the message as a source code and check which font it actually is. Then we can set a replacement rule for it.

orschiro commented 9 years ago

Found it!

 <body bgcolor="#FFFFFF" text="#000000">
    <font face="Arial Narrow">Hallo Robert,<br>
      <br>
bohoomil commented 9 years ago

Thanks. The default substitution for Arial Narrow in the free preset is this (37-repl-global-free.conf):

  <!-- Arial Narrow => Liberation Sans Narrow -->
  <match target="font">
    <test name="family">
      <string>Arial Narrow</string>
    </test>
    <edit name="family" mode="assign">
      <string>Liberation Sans Narrow</string>
    </edit>
  </match>
  <match target="pattern">
    <test name="family">
      <string>Arial Narrow</string>
    </test>
    <edit name="family" mode="prepend" binding="strong" >
      <string>Liberation Sans Narrow</string>
    </edit>
  </match>

Now simply copy the snippet, paste it to 35-repl-custom.conf and change Liberation Sans Narrow to anything you wish (you can simply stick with Liberation Sans).

By the way, the problem isn't really your settings, but hers -- she should set a proper font for the body text, and the one shouldn't be narrow...

orschiro commented 9 years ago

@bohoomil

Thank you for the snippet!

By the way, the problem isn't really your settings, but hers -- she should set a proper font for the body text, and the one shouldn't be narrow...

I will let her know subtly. ;)