GNOME Bugzilla – Bug 71364
Can't print out correctly for CJK
Last modified: 2004-12-22 21:47:04 UTC
gedit is hardcoded the fonts for the printing. so that the characters which can't handle "Helvetica" and "Courier" isn't printed out.
Created attachment 6704 [details] [review] patch of gedit CVS is here
HIGH because of the patch; please accept/apply or reject it, Paolo.
Removed GNOME2 keyword. The patch is related to gedit 0.9.7. Now, I have no time to give a more in depth view to the patch. It looks good so, for the moment, I accept it... but I will apply it in the future (when I will have time to restart to hack on gedit 0.9.x) Akira: could you try to test print support for CJK in gedit2?
Sure. I will try to test it.
I have tested gedit2 for CJK printing. but it doesn't work. gedit2 seems that the fonts for the printing is saved to GConf. However we can't change it. So that this problem is related to GNOME2.
For gedit2 ========== - Is it only a problem with fonts? - Have you tried to change the font using gconftool-2? - Does it work if you set the right fonts?
Hmm, it seems that there is fundamental matter on libgnomeprint side. but gedit2 specify a font as real font name for the printing. it's not abstract as "Sans" and "Serif". I'm not sure whether libgnomeprint is handling that correctly. However it can't print CJK characters out with current font at least. so that a selector is needed.
Removing keyword and lowering priority until there is a patch for g2 stuff.
Should be fixed now on CVS HEAD (for gnome2). Akira: could you test it again?
I have tested it. great! preview and printing works fine. Thanks!
Removed GNOME2 keyword because this bug is now fixed in gedit 1.115.0
Created attachment 7336 [details] [review] I have found a bug in a previous patch. if you apply it, please use this.
BTW default printing font is named like Helvetica and Courier. Would you like to use Sans and Serif instead?
No, because I want the default body font to be monospaced
Anyway don't use specific-fontname. you should know several languages that it can't print out using those fonts, shouldn't you? I thought Pango contains a framework for that, but am I wrong? I hope gedit will be able to print out for all by default. so that if you like Monospaced font, gedit will uses "Monospace" instead of "Helvetica" and "Courier" would be ok. my request is "gedit should support all languages by default. of course without gettextize. we got the Pango. so we should be able to do that now".
according to support fontconfig on libgnomeprint, looks like the printing issue was fixed.
Can we close this then?
Hmm, I've tried this issue again with gedit-2.2.1 and libgnomeprint-2.2.1.3 and libgnomeprintui-2.2.1.3. it seems to be broken again. presumably it might be libgnomeprint bug, because the font for the printing was selected first entry as default.
hmm... are you still able to reproduce it in gedit 2.4.x and/or 2.5.x?
I apologize to not reply earlier. Well, I can reproduce this on 2.4.0 and libgnomeprint 2.4.0 and libgnomeprintui 2.4.0. but 2.5.3 and libgnomeprint 2.5.1 and libgnomeprintui 2.5.1 looks fine. so need to backport it?
I don't think because I have not touched the gedit printing code passing from 2.4 to 2.5. Probably it was a libgnomeprint/ui bug. BTW, I closing it as (magically) FIXED since, as you told, it seems to be fixed in gedit 2.5.x Feel free to reopen it, if you will see it again.