Description of problem: gedit does not have default printer font anymore - especially to CJK, as it require a specific font for printing Version-Release number of selected component (if applicable): How reproducible: everytime Steps to Reproduce: 1. gedit 2. edit -> preference -> printer -> fonts Actual results: first font on the font list Expected results: default font, or specific default font for CJK Additional info: It pops with warning messages. ie: ... (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for LucidaTypewriter-Regular because the extension could not be recognized (.pcf) (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for LucidaTypewriter-Regular because the extension could not be recognized (.pcf) (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for LucidaTypewriter-Regular because the extension could not be recognized (.pcf) (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for LucidaTypewriter-Regular because the extension could not be recognized (.pcf) (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for LucidaTypewriter-Regular because the extension could not be recognized (.pcf) (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for LucidaTypewriter-Regular because the extension could not be recognized (.pcf) (gedit:3594): GnomePrint-WARNING **: Can't create GPFontEntry for AR PL Mingti2L Big5-Reguler because the extension could not be recognized (font) ...
The defaults are bad in the .schemas file: <default>Mononospace 9</default> <default>Sans Normal 11</default> <default>Sans Normal 8</default> Mononospace is definitely nonexistent, and not sure "Sans normal 11" is the right syntax. It may be. This should be fixed upstream. Also, if we want to localize the default printer fonts we need the <default> line in gedit.schemas.in moved inside the <locale name="C"> element. However it may be wrong to localize, as "monospace" and "sans-serif" aliases should always map to something that works in all languages. If we need a different default for printing, maybe we need to address that on the fontconfig layer. fontconfig is supposed to fix the annoying need to localize default fonts all over the place, let's not go back to the bad old days. If a program specifies "sans-serif" it needs to always work, on screen and in print. Filed as http://bugzilla.gnome.org/show_bug.cgi?id=101892 (Marking bug public) Keeping bug open so we can be sure we fix it by release, but I'm expecting to see us fix it (especially the translation part, if any) on cvs.gnome.org, not in a Red Hat patch.
Another problem that catch in eyes is that in printer's font dialog it does not have any entries for those aliases (Monospace, Sans, Serif). It will not be intentional wouldn't it?
I don't know if it's intentional, should perhaps file a bug against libgnomeprintui (on bugzilla.gnome.org) and CC owen and myself.
Done. Filed as http://bugzilla.gnome.org/show_bug.cgi?id=102400
Upstream
It is fixed on gedit 2.2. It would be great if you can build the new package for libgnomeprint*22 2.2 and gedit 2.2.
No, Leon. it's not fixed in gedit/libgnomeprint[ui] 2.2 yet. Right now three patches are needed. For two patches, see http://lists.gnome.org/archives/gnome-print-list/2003-January/msg00038.html threads. Basically above two patches just works. but style selections for Sans, Serif and Monospace doesn't work. last patch is that. (these patches are included in libgnomeprint you've tested.) I will submit it to the upstream, though.
With those upgraded packages, I am able to preview and print from gedit. ie. zh_CN.GB18030 is using ZYSong18030 from default. Is there something I missed in sight? Actually look like libgnomeprint 2.2 can able to get the desired font for alias like Monospace (by look at the output of 'fonts' test util. Of course again, I may missed something.
Right I might understand now. It works because I used the package you have with the 'patches'. ;-) Thanks for clearing it up for me.