Bug 683122

Summary: [pa_IN] Default font is not lohit punjabi
Product: [Fedora] Fedora Reporter: Caolan McNamara <caolanm>
Component: lohit-punjabi-fontsAssignee: Pravin Satpute <psatpute>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: aalam, behdad, caolanm, dtardon, fonts-bugs, i18n-bugs, jsingh, ltinkl, pnemade, psatpute, tagoh
Target Milestone: ---Keywords: i18n, Triaged
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard:
Fixed In Version: lohit-punjabi-fonts-2.5.0-2.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 682716 Environment:
Last Closed: 2011-12-04 02:44:42 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: 682716    
Bug Blocks:    
Attachments:
Description Flags
implement suggestion none

Description Caolan McNamara 2011-03-08 16:01:15 UTC
Created attachment 482937 [details]
implement suggestion

+++ This bug was initially created as a clone of Bug #682716 +++

fontconfig-2.8.0-3

fc-match on "pa" gives different results than "pa-in".

$ fc-match :lang=pa
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
$ fc-match :lang=pa-in
DroidSansArabic.ttf: "Droid Sans" "Regular"

fontconfig knows about "pa" and "pa-pk", because "pa-in" isn't an exact match it considers the full list of pa + pa-pk fonts and returns one of that set fairly arbitrarily, better would be to return a "pa" more generic version when there's no exact territory match.

Comment 1 Pravin Satpute 2011-03-31 07:23:28 UTC
If i change priority of 66-lohit-punjabi.conf to 65-0 it is giving me proper results.

But dunno even 66-lohit-punjabi.conf should work properly

Comment 2 Akira TAGOH 2011-05-12 05:39:45 UTC
If Lohit Punjabi only support Punjabi (I mean which glyphs they have but not any expects), that may works otherwise simply changing the priority may affects other languages then.

Comment 3 Akira TAGOH 2011-11-28 07:48:32 UTC
this seems working fine with:
fontconfig-2.8.0-4.fc16.x86_64
lohit-punjabi-fonts-2.5.0-1.fc16.noarch
google-droid-sans-fonts-20100409-2.fc15.noarch


$ rpm -V fontconfig lohit-punjabi-fonts google-droid-sans-fonts
$ fc-match :lang=pa
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
$ fc-match :lang=pa-in
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
$ fc-match :lang=pa-pk
DroidSansArabic.ttf: "Droid Sans" "Regular"

Comment 4 Pravin Satpute 2011-11-28 08:17:33 UTC
Its not working on my machine

$fc-query /usr/share/fonts/google-droid/DroidSansArabic.ttf	
lang: ar|az-ir|fa|ks|ug|ur|pa-pk|lah(s)


$fc-query /usr/share/fonts/lohit-punjabi/Lohit-Punjabi.ttf
	lang: pa(s)

$ rpm -V fontconfig lohit-punjabi-fonts google-droid-sans-fonts
$ fc-match :lang=pa
Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"
$ fc-match :lang=pa-in
DroidSansArabic.ttf: "Droid Sans" "Regular"
$ fc-match :lang=pa-pk
DroidSansArabic.ttf: "Droid Sans" "Regular"

version seems same
fontconfig-2.8.0-4.fc16.x86_64
lohit-punjabi-fonts-2.5.0-1.fc16.noarch
google-droid-sans-fonts-20100409-2.fc15.noarch

changing priority of lohit-punjabi to 65-0 gives me correct output

Comment 5 Fedora Update System 2011-11-28 10:19:59 UTC
lohit-punjabi-fonts-2.5.0-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/lohit-punjabi-fonts-2.5.0-2.fc16

Comment 6 Pravin Satpute 2011-11-28 10:22:48 UTC
any improvement with update?

Comment 7 Akira TAGOH 2011-11-28 10:29:06 UTC
false alarm. yes, renaming 65-0 definitely works. I already had tested with it there :) reassigning to lohit-punjabi-fonts then.

Comment 8 Fedora Update System 2011-11-29 00:22:15 UTC
Package lohit-punjabi-fonts-2.5.0-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lohit-punjabi-fonts-2.5.0-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16547/lohit-punjabi-fonts-2.5.0-2.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2011-12-04 02:44:42 UTC
lohit-punjabi-fonts-2.5.0-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.