After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 171362 - pango_font_description_from_string does not recognize "Luxi Serif Regular 8"
pango_font_description_from_string does not recognize "Luxi Serif Regular 8"
Status: RESOLVED DUPLICATE of bug 166709
Product: pango
Classification: Platform
Component: general
0.23
Other All
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2005-03-23 14:28 UTC by Huang, Zhangrong
Modified: 2005-08-15 20:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Huang, Zhangrong 2005-03-23 14:28:00 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:
Comment 1 Owen Taylor 2005-06-14 22:34:02 UTC
Same as part of bug 166709

*** This bug has been marked as a duplicate of 166709 ***
Comment 2 Owen Taylor 2005-08-15 20:21:41 UTC
BTW, gnome_font_get_pango_description() is dead API. Use the functionality
in gnome-print-pango.h instead.