Apache OpenOffice (AOO) Bugzilla – Issue 104034
[Indic] better default fonts for pa-IN locale
Last modified: 2013-08-07 15:02:13 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
Created attachment 63969 [details] Test Case
Created attachment 63970 [details] Issue Screenshot
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.
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.
@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
> 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.
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.
.
Added Raavi and Saab as default fonts for pa-IN then in CWS vcl104.
Adjusted summary to root cause.
*** Issue 100392 has been marked as a duplicate of this issue. ***
Still in CWS vcl104
Got into DEV300_m58