GNOME Bugzilla – Bug 171362
pango_font_description_from_string does not recognize "Luxi Serif Regular 8"
Last modified: 2005-08-15 20:21:41 UTC
Please describe the problem: pango_font_description_from_string can recognize "Luxi Serif 8", "Luxi Serif Bold 8", "Luxi Serif Oblique 8", but not "Luxi Serif Regular 8". fc-list outputs: $ fc-list | grep Luxi Luxi Serif:style=Regular Luxi Serif:style=Bold Luxi Mono:style=Bold Luxi Sans:style=Bold Luxi Sans:style=Regular Luxi Mono:style=Regular Luxi Serif:style=Oblique Luxi Serif:style=Bold Oblique Luxi Mono:style=Oblique Luxi Sans:style=Oblique Luxi Sans:style=Bold Oblique Luxi Mono:style=Bold Oblique So I think pango_font_description_from_string should recognize "Luxi Serif Regular 8", as "Luxi Serif Regular 8" equals to "Luxi Serif 8". In libgnomeprint, GnomeFont uses "Luxi Serif Regular" style font name, so function gnome_font_get_pango_description loads font "Luxi Serif Regular" failed, seems it falls back to "Sans", see libgnomeprint/gnome-font.c. Steps to reproduce: 1. get libgnomeprint source, go to directory libgnomeprint/tests, run test programme pango 2. run ./pango -f "Luxi Serif 18" -p files/test.utf8 -o o1.pdf 3. run ./pango -f "Luxi Serif Regular 18" -p files/test.utf8 -o o2.pdf 4. see what's the difference between o1.pdf and o2.pdf Actual results: Expected results: Does this happen every time? Always. Other information:
Same as part of bug 166709 *** This bug has been marked as a duplicate of 166709 ***
BTW, gnome_font_get_pango_description() is dead API. Use the functionality in gnome-print-pango.h instead.