Issue 104034 - [Indic] better default fonts for pa-IN locale
Summary: [Indic] better default fonts for pa-IN locale
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: i18npool (show other issues)
Version: OOO310m11
Hardware: All Windows 7
: P3 Trivial (vote)
Target Milestone: ---
Assignee: hdu@apache.org
QA Contact: issues@l10n
URL:
Keywords:
: 100392 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-08-05 18:27 UTC by amanpreet.alam
Modified: 2013-08-07 15:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Test Case (11.30 KB, application/vnd.oasis.opendocument.text)
2009-08-05 18:28 UTC, amanpreet.alam
no flags Details
Issue Screenshot (104.05 KB, image/jpeg)
2009-08-05 18:28 UTC, amanpreet.alam
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description amanpreet.alam 2009-08-05 18:27:17 UTC
I am using Punjabi (Gurmukhi) Language for Input Text. While oowriter is
select correct language while input Punjabi Text, it is not select correct default
Windows Fonts. It is also happening with Hindi Text also. Copy Paste also same
result.

Attaching Screenshot for more detail. Also Attching Test Case.

Interface language: en_US
OS Langauge: pa_IN
Comment 1 amanpreet.alam 2009-08-05 18:28:22 UTC
Created attachment 63969 [details]
Test Case
Comment 2 amanpreet.alam 2009-08-05 18:28:55 UTC
Created attachment 63970 [details]
Issue Screenshot
Comment 3 ooo 2009-08-06 10:56:57 UTC
Not sure what this issue is about. Opening the attached document (in OOo310m11
Solaris/x86) I see a slight difference between "incorrect" and "correct", the
alleged incorrect font used is Tahoma, while the fonts said to be correct are
Raavi for Punjabi and Mangal for Hindi. However, all 3 fonts apparently display
correct glyphs and don't show the faults seen in the screenshot at all.

As you're using an en_US UI: make sure that under
Tools->Options->LanguageSettings->Languages the support for CTL is enabled.
Doing so will offer an additional font selection in the character attribution
dialog, not having enabled that could be related to your problem.

Cc'ing 'hdu' as the font expert.
Comment 4 hdu@apache.org 2009-08-07 11:20:37 UTC
The Tools->Options->LanguageSettings->Languages->CTL checkbox doesn't influence rendering, it 
only enables some UI elements like BiDi-controls etc.

Other than that the core problem here seems to be that the defaults for the "pa-IN" are not good 
enough yet for running on Win7. Please review the "pa-IN" node that configures these default fonts in a 
file vcl.xcu 
(http://svn.services.openoffice.org/opengrok/xref/DEV300_m54/officecfg/registry/data/org/openoffic
e/VCL.xcu) and suggest updated lists for that particular locale. E.g. I think instead of the preference for 
pa-IN for the UI fonts,  which is currently set to
  <prop oor:name="UI_SANS" oor:op="replace" oor:type="xs:string">
     <value>Lohit Punjabi;Tahoma</value>
  </prop>
you probably want something like this
  <prop oor:name="UI_SANS" oor:op="replace" oor:type="xs:string">
     <value>Raavi;Mangal;Lohit Punjabi;Tahoma</value>
  </prop>

Is that right? Feel free to experiment with the vcl.xcu configuration file in your OOo installation, 
especially with the defaults for pa-IN and all other locales you are interested in. When changes there 
are useful for the general community please attach your changed vcl.xcu to this issue or even better 
only attach a patch for the original file.
Comment 5 ooo 2009-08-07 12:16:57 UTC
@hdu:
I thought that a disabled CTL or not matching language may select a different
font for CTL glyphs than expected. Is that not the case?

@amanpreetalam:
Could you please check whether changing the entries as described in
<YourOOoPath>/openoffice.org/basis3.1/share/registry/data/org/openoffice/VCL.xcu
yields the expected results?

Looking at http://pa.openoffice.org/ and http://pa.openoffice.org/download.html
the Punjabi community apparently isn't active anymore, the last localized
release was OOo2.0.1

Comment 6 hdu@apache.org 2009-08-07 12:41:59 UTC
> I thought that a disabled CTL or not matching language may select a different
> font for CTL glyphs than expected. Is that not the case?

Now that you mention it I'm not sure anymore whether WriterEngine/EditEngine try do any fancy 
automatism. They wouldn't dare to override a "hard" style setting though, I hope. Anyway, this is getting 
off topic. Short summary: yes, please enable the CTL checkbox to avoid unneeded surprises when working 
on this issue.
Comment 7 amanpreet.alam 2009-08-07 13:44:24 UTC
hi er, hdu
Thanks for quick help. Issue is fixed if I used fonts as following
Raavi;Saab; in VLC.xcu

as Raavi is Default Windows Punjabi Fonts and Saab is another Free Fonts for
Gurmukhi Punjabi.
Comment 8 hdu@apache.org 2009-08-07 14:03:23 UTC
.
Comment 9 hdu@apache.org 2009-08-07 14:05:33 UTC
Added Raavi and Saab as default fonts for pa-IN then in CWS vcl104.
Comment 10 hdu@apache.org 2009-08-07 14:06:30 UTC
Adjusted summary to root cause.
Comment 11 hdu@apache.org 2009-08-07 14:09:24 UTC
*** Issue 100392 has been marked as a duplicate of this issue. ***
Comment 12 hdu@apache.org 2009-08-26 07:10:04 UTC
Still in CWS vcl104
Comment 13 hdu@apache.org 2009-09-17 10:11:12 UTC
Got into DEV300_m58