On 09/23/2015 02:02 PM, David C. Rankin wrote:
You will be unhappy to note that this effects both FF and TB. So if you are wonder why file listings like download.opensuse.org/repositories/... are harder to read because they are displayed in some weird windows mono font -- this is the answer.
Wolfgang (oh, mozilla wizard),
How in the heck do we tell both FF and TB to display messages and plain-text pages in the font chosen in:
Options-> Display-> Formatting-> Advanced-> (our font choice)?
It seems no matter what they are set to, if the page, or message, has the *charset=utf-8* included somewhere, then you get the ms default font instead of your chosen font?
cc: Mozilla Wizard
After chasing down a solution to this gift in TB38, the solution isn't that difficult at all. With mozilla no longer honoring the default font faces of 'sans', 'sans-serif' and 'monospace', even though you tell FF or TB to use a specific font (e.g DejaVu Sans Mono), when receiving a page or message with *charset=utf-8*, both FF and TB continue to rely on the system-wide default font. (which makes absolutely no sense whatsoever) Regardless, they can be trained to use the proper font by you setting the system-wide font for 'monospace', etc.. to a specific font. First, check what your system thinks the system-wide font is for that typeface: $ fc-match monospace consola.ttf: "Consolas" "Regular" Yuk! If it is not what you want, then you must set the system-wide default for that typeface in /etc/fonts/local.conf (which is just an empty xml shell for fontconfig by default) Edit the file with your favorite editor and add the following between the <fontconfig> tags. (substitute your chosen font where I have 'DejaVu Sans Mono') <match target="pattern"> <test name="family" qual="any"> <string>monospace</string> </test> <edit binding="strong" mode="prepend" name="family"> <string>DejaVu Sans Mono</string> </edit> </match> Save -- that's it. Not both FF and TB 38 will display the plain-text pages/messages in DejaVu Sans Mono regardless of whether charset=utf-8 or charset=us-ascii <refrain from rant> #%#@$ Works fine :p -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org