Bug 527719

Summary: [pa_IN] English Characters are bad in shape with Punjabi
Product: [Fedora] Fedora Reporter: A S Alam <aalam>
Component: openoffice.orgAssignee: Caolan McNamara <caolanm>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: caolanm, dtardon, i18n-bugs, mshao
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-10 10:00:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Image with en-US and pa-IN rendering
none
what I see
none
gedit font pref screenshot
none
fc-list output
none
standalone fontconfig demo none

Description A S Alam 2009-10-07 13:28:12 UTC
Created attachment 363967 [details]
Image with en-US and pa-IN rendering

Description of problem
English Characters are Bad shape, while using localized Interface with langpack

Version-Release number of selected component (if applicable):
openoffice.org-langpack-pa_IN-3.1.1-19.10.fc12.x86_64

How reproducible:
Evertime

Steps to Reproduce:
1. in gnome-terminal, export LANG=pa_IN.UTF-8 (yum groupinstall punjabi-support)
2. run oowriter
3. check the Menu/Submenu
  
Actual results:
English Characters are in Bad Shape

Expected results:
Good shape

Additional info:
There is bug for windows, may it effected
http://www.openoffice.org/issues/show_bug.cgi?id=104034
Please check above issue

Comment 1 Caolan McNamara 2009-10-07 14:20:51 UTC
Created attachment 363974 [details]
what I see

Looks to me that the UI font doesn't have English characters to another font is glyph-substituted in to get them, and that a handwriting font is being used.

So

a) does e.g. gedit look ok ?
b) whats the output of fc-list ? so that I can match my installed fonts to yours

Comment 2 A S Alam 2009-10-07 16:50:37 UTC
a) yes Gedit is ok (screenshot attach after comment)
b) attaching fc-list.txt file

Comment 3 A S Alam 2009-10-07 16:51:32 UTC
Created attachment 364003 [details]
gedit font pref screenshot

Comment 4 A S Alam 2009-10-07 16:52:41 UTC
Created attachment 364004 [details]
fc-list output

I tried with fresh install rawhide, which has same issue (may helpful)

Comment 5 David Tardon 2009-10-08 06:17:45 UTC
reproduced with 3.1.1-19.10.fc12.x86_64

Comment 6 Caolan McNamara 2009-10-08 11:09:37 UTC
basically I'd say we have a UI font of "Sans", we resolve this correctly to "Lohit Punjabi" and probably throw away somewhere the "Sans", so when we find the westen chars missing we ask fontconfig for something like "Lohit Punjabi" that has the missing glyphs, and we get PakTypeNaqsh. Ideally we'd ask for something like "Sans" which has the missing glyphs.

Comment 7 Caolan McNamara 2009-10-08 11:36:08 UTC
Created attachment 364090 [details]
standalone fontconfig demo

Comment 8 Caolan McNamara 2009-10-08 12:36:39 UTC
So, looking at the standalone case, and digging around. I reckon the best thing to do is to provide an extra hint to fontconfig as to what language the missing characters are in when we don't initially have this information by in psprint/source/fontmanager/fontconfig.cxx using an example language for the script used by say the first missing glyph. 

I got something here that works in this vein and it solves this problem. I just need to extend it to a silly number of scripts for completeness.

Comment 9 Caolan McNamara 2009-10-08 12:57:17 UTC
lets give this a go, I'll build this as 3.1.1-19.11.

Comment 10 Caolan McNamara 2009-10-09 08:10:20 UTC
available for testing from http://kojipkgs.fedoraproject.org/packages/openoffice.org/3.1.1/19.11.fc12/

This works for me, can you guys check this out and see if its ok for you too, and if so I can propose it for F-12

Comment 11 David Tardon 2009-10-09 08:36:45 UTC
works here

Comment 12 A S Alam 2009-10-09 09:32:06 UTC
Thanks Caolan, it is working for me with above version.

Comment 13 Caolan McNamara 2009-10-10 10:00:41 UTC
pushed into F-12