Marcin ''Qrczak'' Kowalczyk
2005-Nov-21 08:50 UTC
[Fontconfig] possible font selection/rendering problem in mozilla and konqueror
On Sunday 20 of April 2003 09:24, Philippe A wrote:> - In Konqueror, a string rendered with ''sans'' uses ''Comic Sans MS'' rather > than ''Luxi Sans''.Konqueror has its own font settings which should default to KDE-wide settings for some fonts and have some builtin defaults for others. They can be changed independently in Konqueror''s settings. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/
Keith Packard
2005-Nov-21 08:50 UTC
[Fontconfig] Re: [Freetype] possible font selection/rendering problem in mozilla and konqueror
Around 7 o''clock on Apr 20, "Philippe A" wrote: (I removed freetype@freetype.org as this is almost certainly a fontconfig issue).> I wrote a simple html file to compare the font selected when specifying a > general family name versus the result when specifying my prefered font for > the same family. For example, I expect the the following strings to render > identically:I cannot reproduce the mismatches that you''ve found, it may well be that recent fontconfig versions have fixed a bug. Please give fontconfig 2.1.94 a try and see if you still have problems of this nature. If so, please include your .fonts.conf file (and local.conf file if any) so that any missteps in the configuration file can be sorted out. Here''s what I added to my ~/.fonts.conf file to select the fonts you mentioned: <alias> <family>serif</family> <prefer> <family>Nimbus Roman No9 L</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>Luxi Sans</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Luxi Mono</family> </prefer> </alias> One additional question is what your LANG or LC_ALL environment variables are set to -- fontconfig uses the local language to help direct font selection to fonts that can support that language. Explicitly using the family name overrides that part of the match. -keith
Philippe A
2005-Nov-21 08:50 UTC
[Fontconfig] possible font selection/rendering problem in mozilla and konqueror
Hello everybody, This message is being sent to fontconfig@fontconfig.org and freetype@freetype.org. I hope I''m not doing something heretic. I''m not very familiar with mailing lists. I wrote a simple html file to compare the font selected when specifying a general family name versus the result when specifying my prefered font for the same family. For example, I expect the the following strings to render identically: <font face=''serif'' size=''+3''>SERIF : Default</font> <p> <font face=''Nimbus Roman No9 L'' size=''+3''>SERIF : Nimbus Roman No9 L</font> I have found cases in Mozilla 1.3 and Konqueror 3.1-12 where this simple assumption isn''t met. My prefered fonts for each family are: Nimbus Roman No9 L Luxi Sans Luxi Mono - In Konqueror, a string rendered with ''sans'' uses ''Comic Sans MS'' rather than ''Luxi Sans''. - In Konqueror, a string rendered with ''mono'' uses ''Andale Mono'' rather than ''Luxi Mono''. ''Andale Mono'' is my 3rd prefered font in the monotype family. - In Konqueror, the aliasing is different for strings rendered with the same font but obtained differently. For example, the initial S in my short html example above receives different aliasing. xmag confirmed my eyes didn''t play a trick on me. - In Mozilla, a string rendered with ''monospace'' has a different size than the same string rendered with ''Luxi Mono''. ''Luxi Mono'' and ''mono'' yield the same result. - A quick test on aliasing in Mozilla doesn''t reveal any difference. I removed the msttcorefonts package and reloaded xfs and still obtained strange results. - In Konqueror, a string rendered with ''serif'' used my ''sans-serif'' font. - In Konqueror, the aliasing now seems to be the same. - In Mozilla, the result stayed the same. Software I''m using: - Base distribution is a fresh RedHat9 install - I first saw the problem with FreeType 2.1.3-6 (RH9 default). Then I upgraded to 2.1.4 and still had the same results (restarted X and xfs in the move). - corefonts.sourceforge.net package - Default RH9 OpenOffice, from which I am using ''Andale Mono'' as the 3rd prefered font in the monotype family - Mozilla 1.3 I installed to replace Mozilla 1.2.1 shipped with RedHat9. - Default XFree in RedHat9: 4.3.0-2 Here''s the html I used for this little test: <html> <head> <title></title> <meta content=""> <style></style> </head> <body> <font face=''serif'' size=''+3''>SERIF : Default</font> <p> <font face=''Nimbus Roman No9 L'' size=''+3''>SERIF : Nimbus Roman No9 L</font> <p> <font face=''sans-serif'' size=''+3''>SANS-SERIF : Default</font> <p> <font face=''Luxi Sans'' size=''+3''>SANS-SERIF : Luxi Sans</font> <p> <font face=''sans'' size=''+3''>SANS : Default</font> <p> <font face=''Luxi Sans'' size=''+3''>SANS : Luxi Sans</font> <p> <font face=''mono'' size=''+3''>MONO : Default</font> <p> <font face=''Luxi Mono'' size=''+3''>MONO : Luxi Mono</font> <p> <font face=''monospace'' size=''+3''>MONOSPACE : Default</font> <p> <font face=''Luxi Mono'' size=''+3''>MONOSPACE : Luxi Mono</font> </body> </html> _________________________________________________________________ MSN Search, le moteur de recherche qui pense comme vous ! http://fr.ca.search.msn.com/