GNOME Bugzilla – Bug 269430
Print preview of russian names is not working
Last modified: 2013-09-10 13:58:16 UTC
Distribution: Fedora Core release 3 (Heidelberg) Package: Evolution Priority: Normal Version: GNOME2.8.0 unspecified Gnome-Distributor: Red Hat, Inc Synopsis: Print preview of russian names is not working Bugzilla-Product: Evolution Bugzilla-Component: Contacts [was: Addressbook] Bugzilla-Version: unspecified Description: Description of Problem: I have entries in the Contacts both in russian and english. When I try to print them the russian (cyrillic) characters do not print at all. My locale is: [ ]$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Steps to reproduce the problem: 1. Make a russian entry in the Contacts 2. Look at print preview Actual Results: Russian characters do not show Expected Results: Russian characters should show How often does this happen? always Additional Information: Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
What Evolution version is this?
please could you attach some contact which shows the problem? are you able to print appointments and mails with cyrilic characters?
Hi, Bugzilla does not allow me to post my comments there (or I do not know how). Attached is the fake contact in Russian, which I cannot print or print preview. The mail (in Russian) prints fine. If I start evolution in Russian locale, then everything works. I can print preview all entries in Contacts (English and Russian) Artem
OK, looks like gnome print problem then. mailer uses pango interface in newer gnome print and thus it works. => rescheduling for 2.1 as we cannot use newer gnome print for 2.0.3 I think you might be able to print cyrillic chars OK if you will install cyrillic postscript fonts.
adding keywords
Looks like a duplicate of 70210 (or vice versa; the latter was the first I spotted). I'm tracking this downstream here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=138075 and I'm actively working on a fix.
*** bug 270210 has been marked as a duplicate of this bug. ***
Created attachment 44802 [details] [review] Initial version of patch for addressbook printing (with lots of debug logging, and without a ChangeLog entry)
I just attached a first attempt at a patch for this; it's still got some debug logging in it, but I can cleap that up. Please can you try with this patch? It attempts to use Pango for all text handling when printing address books). I'm seeing addressbooks with considerably larger fonts after applying this pacth; it appears that when e_contact_build_style loads "medbook.ecps"; this is parsed to populate the EContactPrintStyle struct; on FC3 when loading the various fonts e.g. header_font it gets "Helvetica Bold 12", which it passes to gnome_font_face_find, which returns NULL, hence the existing code is always simply using the defaults at the top of e_contact_build_style (Sans Bold 8). My version of the code manages to get at "Helvetica Bold 12" etc, so everything is coming out at about 50% bigger (i.e. at 18 point rather than point, allowing for the factor of 1.5 that gets applied)
Created attachment 44828 [details] [review] Updated, cleaned-up version of the patch (requires libgnomeprint >= 2.7.0)
adding patch keyword
setting first patch to "obsolete" as per dave's comments.
Created attachment 52424 [details] [review] Revised Patch The patch was causing a crash in Preview of contacts, when preview is done from Print Configuration Dialog. Attaching the revised patch
reassigning since rodo does not work anymore on evo/gtkhtml
fix committed to cvs head.