Bug 682716
Summary: | [pa_IN] Default font is not lohit punjabi | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jaswinder Singh <jsingh> | ||||||
Component: | libreoffice | Assignee: | Caolan McNamara <caolanm> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 15 | CC: | aalam, ankit, caolanm, dtardon, i18n-bugs, ltinkl | ||||||
Target Milestone: | --- | Keywords: | i18n, Triaged | ||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | libreoffice-3.3.1.2-6.fc15 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 683122 (view as bug list) | Environment: | |||||||
Last Closed: | 2011-03-16 04:12:23 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 683122 | ||||||||
Attachments: |
|
Description
Jaswinder Singh
2011-03-07 11:36:22 UTC
I suppose you are speaking about pa_IN locale, right? Created attachment 482670 [details]
default font is Lohit Punjabi
works here with libreoffice-writer-3.3.1.2-1.fc15.x86_64
Here I am testing on i686 machine and package version is same. Attaching screen shot also. Created attachment 482685 [details]
pa-IN libreoffice-writer screen shot for fonts
(In reply to comment #1) > I suppose you are speaking about pa_IN locale, right? Yes I am talking about pa_IN locale. Is the locale set correctly, i.e., what is the output of locale ? Does it work if you start writer from cmdline as LC_ALL=pa_IN oowriter ? The first font in VCL.xcu for pa-IN is "Raavi", so we ask fontconfig for that, and use whatever it returns as the best match for Raavi for lang pa-IN. So, what's the output of... fc-match :lang=pa-IN and, for reference, the output of e.g. fc-match :lang=kn_IN I get Droid Sans for fc-match :lang=pa-IN but Lohit Punjabi for fc-match :lang=pa if I hack LibreOffice to substitute pa for pa-IN then I get Lohit Punjabi as the fontconfig suggested font, some investigation into fontconfig here is indicated I guess If I could just get fontconfig to sort fonts that match "pa" before fonts that provide "pa-pk" when looking for "pa-in" then I'd clear the problem which I see here. Though I can't fathom why you get "DejaVu Sans Condensed" See bug 683122 for suggested fix to fontconfig for the problem I see. I'll hack a workaround into LibreOffice as well in the meantime right, I'll try a workaround to sub "pa" for "pa-IN" when we pass that to fontconfig, though I'm still concerned that what I can reproduce isn't exactly what I see in the screenshot. (In reply to comment #7) > The first font in VCL.xcu for pa-IN is "Raavi", so we ask fontconfig for that, > and use whatever it returns as the best match for Raavi for lang pa-IN. > > So, what's the output of... > > fc-match :lang=pa-IN > > and, for reference, the output of e.g. > > fc-match :lang=kn_IN I have concern about "Raavi" here, which is default Punjabi (pa-IN) font in Windows. I faced issue previously, when used OpenOffice in Windows as Lohit font is not there. Is it not possible to add more than one font for language? dtardon->aalam: It is--that is why Caolan said "the first font", not "the font". But, on Linux, we use fontconfig fallback for each font in the list if the font is not found by name and fontconfig always returns a match, so we never get past the first font in the list. And because we match by locale (besides other parameters), this is exactly what we want, because it is fonconfig that knows which font should be used on the system for the locale. If we used the VCL's font table exclusively (or even as primary source), we would have to keep it in sync with current font preferences in Fedora/RHEL and that would just... not be easy :-) (In reply to comment #13) > dtardon->aalam: It is--that is why Caolan said "the first font", not "the Thanks. I got it now. libreoffice-3.3.1.2-5.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/libreoffice-3.3.1.2-5.fc15 libreoffice-3.3.1.2-6.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/libreoffice-3.3.1.2-6.fc15 libreoffice-3.3.1.2-6.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |