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 71364 - Can't print out correctly for CJK
Can't print out correctly for CJK
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.2.x
Other Linux
: High critical
: ---
Assigned To: Gedit maintainers
Paolo Maggi
Depends on:
Blocks:
 
 
Reported: 2002-02-13 12:42 UTC by Akira TAGOH
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
patch of gedit CVS is here (14.57 KB, patch)
2002-02-13 12:43 UTC, Akira TAGOH
none Details | Review
I have found a bug in a previous patch. if you apply it, please use this. (14.67 KB, patch)
2002-03-23 21:24 UTC, Akira TAGOH
none Details | Review

Description Akira TAGOH 2002-02-13 12:42:32 UTC
gedit is hardcoded the fonts for the printing. so that the characters which
can't handle "Helvetica" and "Courier" isn't printed out.
Comment 1 Akira TAGOH 2002-02-13 12:43:27 UTC
Created attachment 6704 [details] [review]
patch of gedit CVS is here
Comment 2 Luis Villa 2002-02-14 06:21:35 UTC
HIGH because of the patch; please accept/apply or reject it, Paolo. 
Comment 3 Paolo Maggi 2002-02-14 07:57:59 UTC
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?
Comment 4 Akira TAGOH 2002-02-14 12:40:27 UTC
Sure. I will try to test it.
Comment 5 Akira TAGOH 2002-03-06 15:13:18 UTC
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.
Comment 6 Paolo Maggi 2002-03-06 17:31:12 UTC
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?

Comment 7 Akira TAGOH 2002-03-07 16:27:51 UTC
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.
Comment 8 Luis Villa 2002-03-14 18:02:10 UTC
Removing keyword and lowering priority until there is a patch for g2
stuff.
Comment 9 Paolo Maggi 2002-03-18 15:24:14 UTC
Should be fixed now on CVS HEAD (for gnome2).

Akira: could you test it again?

 
Comment 10 Akira TAGOH 2002-03-18 17:27:26 UTC
I have tested it. great!
preview and printing works fine. Thanks!
Comment 11 Paolo Maggi 2002-03-18 17:32:34 UTC
Removed GNOME2 keyword because this bug is now fixed in gedit 1.115.0
Comment 12 Akira TAGOH 2002-03-23 21:24:39 UTC
Created attachment 7336 [details] [review]
I have found a bug in a previous patch. if you apply it, please use this.
Comment 13 Akira TAGOH 2002-03-28 05:19:10 UTC
BTW default printing font is named like Helvetica and Courier. Would
you like to use Sans and Serif instead?
Comment 14 Paolo Maggi 2002-03-28 07:53:55 UTC
No, because I want the default body font to be monospaced
Comment 15 Akira TAGOH 2002-03-28 09:45:14 UTC
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".
Comment 16 Akira TAGOH 2003-02-04 15:37:24 UTC
according to support fontconfig on libgnomeprint, looks like the
printing issue was fixed.
Comment 17 Kjartan Maraas 2003-07-05 23:23:14 UTC
Can we close this then?
Comment 18 Akira TAGOH 2003-07-06 05:43:54 UTC
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.
Comment 19 Paolo Maggi 2003-12-20 09:57:20 UTC
hmm... are you still able to reproduce it in gedit 2.4.x and/or 2.5.x?
Comment 20 Akira TAGOH 2004-02-03 09:46:33 UTC
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?
Comment 21 Paolo Maggi 2004-02-13 18:48:31 UTC
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.