Red Hat Bugzilla – Bug 682716
[pa_IN] Default font is not lohit punjabi
Last modified: 2013-03-03 21:19:18 EST
Description of problem: Default fonts are not lohit punjabi
Version-Release number of selected component (if applicable): 184.108.40.206-1
Steps to Reproduce:
1. Run libreoffice-writer, libreoffice-calc, libreoffice-imprees (all three one-by-one)
2. Check in font bar (Default fonts are not lohit punjabi)
Actual results: Default fonts are "DejaVu Sans Condensed"
Expected results: Default fonts should be Lohit Punjabi
I suppose you are speaking about pa_IN locale, right?
Created attachment 482670 [details]
default font is Lohit Punjabi
works here with libreoffice-writer-220.127.116.11-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
? Does it work if you start writer from cmdline as
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...
and, for reference, the output of e.g.
I get Droid Sans for
but Lohit Punjabi for
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-18.104.22.168-5.fc15 has been submitted as an update for Fedora 15.
libreoffice-22.214.171.124-6.fc15 has been submitted as an update for Fedora 15.
libreoffice-126.96.36.199-6.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.