Bug 590586

Summary: [ml_IN] Title bar and desktop panels are bigger for indic locales
Product: Red Hat Enterprise Linux 6 Reporter: Praveen Arimbrathodiyil <parimbra>
Component: smc-fontsAssignee: Pravin Satpute <psatpute>
Status: CLOSED CURRENTRELEASE QA Contact: QE Internationalization Bugs <qe-i18n-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: aalam, behdad, eng-i18n-bugs, llim, notting
Target Milestone: rcKeywords: i18n
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: smc-fonts-04.2-8.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:38:02 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:
Attachments:
Description Flags
screenshot with en_IN locale
none
screenshot with ml_IN locale
none
ligature describing need for extra space below and above
none
with <times> tag
none
without <times> tag none

Description Praveen Arimbrathodiyil 2010-05-10 08:52:28 UTC
Description of problem:
There is lot of extra spaces above and below text and the user experience is poor compared to english locale.

Version-Release number of selected component (if applicable):

metacity-2.28.0-15.el6.x86_64

How reproducible:

always

Steps to Reproduce:
1. Select any Indic locale from login screen (eg Malayalam)
2. observe size of desktop panel
3. open any window and observe size of title bar
  
Actual results:
title bar and panel size is bigger with lot of spaces above and below text compared to english locale in the same resolution

Expected results:

similar experience like english locale

Additional info:

Comment 1 Praveen Arimbrathodiyil 2010-05-10 08:53:28 UTC
Created attachment 412760 [details]
screenshot with en_IN locale

Comment 2 Praveen Arimbrathodiyil 2010-05-10 08:54:33 UTC
Created attachment 412761 [details]
screenshot with ml_IN locale

Comment 4 RHEL Program Management 2010-05-10 10:48:07 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 5 Pravin Satpute 2010-05-14 04:49:28 UTC
Created attachment 413942 [details]
ligature describing need for extra space below and above

this is not metacity issue, this is problem from fonts

reason behind this is font metrics of Meera

Rachana: Ascent: 1638, Descent: 410
Meera:  Ascent: 1147, Descent: 901
Lohit:  Ascent: 650, Descent: 374

some ligature of Meera requires this space

see bug #523454

Comment 6 Praveen Arimbrathodiyil 2010-05-14 05:55:25 UTC
I don't think it is specific to Meera of  Malayalam, we noticed problems with Panjabi and Telugu as well. Latin characters along with Panjabi was even getting cut at the bottom.

Comment 7 Praveen Arimbrathodiyil 2010-05-14 06:11:29 UTC
Title bar is of expected size with other fonts, but we need to fix it for Meera as well.

We know Ascent and Descent of Meera differs from other fonts, but if you look at the values you have given, even though the Descent is more Ascent is proportionally less. So how would that affect this bug?

Comment 8 fujiwara 2010-05-14 06:25:30 UTC
metacity calculates the text height == pango_font_metrics ascent (metrics) + descent (metrics) and my understanding is the metacity is right.
https://bugzilla.redhat.com/show_bug.cgi?id=530085#c16

Comment 9 Bill Nottingham 2010-05-17 15:10:11 UTC
Should this bug be reassigned?

Comment 10 Praveen Arimbrathodiyil 2010-06-10 08:38:07 UTC
for Meera this can be fixed by changing the fontconfig configuration.

current configuration is,

<match target="font">
        <test name="family">
                <string>Meera</string>
        </test>
        <edit name="matrix" mode="assign">
                <times>
                        <name>matrix</name>
                        <matrix>
                                <double>1.2</double><double>0</double>
                                <double>0</double><double>1.2</double>
                        </matrix>
                </times>
        </edit>
</match>

<times> and </times> should be removed.

Comment 11 Pravin Satpute 2010-06-10 09:12:04 UTC
Praveen can you attach images, showing the difference?

Comment 12 Praveen Arimbrathodiyil 2010-06-10 11:16:45 UTC
Created attachment 422867 [details]
with <times> tag

Comment 13 Praveen Arimbrathodiyil 2010-06-10 11:18:21 UTC
Created attachment 422869 [details]
without <times> tag

Comment 15 Pravin Satpute 2010-06-21 05:54:51 UTC
fixed in smc-fonts-04.2-8.el6

Comment 17 A S Alam 2010-09-06 04:23:43 UTC
tag <times> removed from fonts 
tested Package: smc-meera-fonts-04.2-11.el6.noarch

Comment 18 releng-rhel@redhat.com 2010-11-10 21:38:02 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.