Bug 523454

Summary: [ml_IN] Fontconfig settings for Meera font not working properly
Product: [Fedora] Fedora Reporter: Santhosh Thottingal <santhosh.thottingal>
Component: gnome-themesAssignee: Matthias Clasen <mclasen>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: apeter, behdad, b.rahul.pm, fonts-bugs, i18n-bugs, libregeek, mclasen, psatpute, psuresh, rajeeshknambiar, sandmann, smc-discuss
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 574355 (view as bug list) Environment:
Last Closed: 2010-05-14 05:04:18 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: 574355    
Attachments:
Description Flags
OpenOffice document using Meera, rachana and suruma fonts with size 12
none
Desktop with Meera font as default (size 12)
none
Gedit with Meera size 10
none
Gedit with Rachana size 10
none
Screenshot with Meera 10
none
Screenshot with Meera 12
none
Screenshot with Rachana 10
none
Screenshot with Rachana 12
none
Underline issue resolved - screenshot none

Description Santhosh Thottingal 2009-09-15 15:19:42 UTC
Description of problem:
Meera font has a scaling property defined in /etc/fonts/conf.d/90-smc-fonts.conf file. It has a 1.2 times size scaling. But in Fedora 11 this scaling is not working properly. When Meera font is selected with size say, 12 for the applications, window titles etc, the entire desktop get ugly with expanded and overlapped titlebars or strings in application.

How reproducible:
Always

Steps to Reproduce:
1. Open abiword, type two words(english/malayalam), set the font of first word as Meera 12, second as Rachana 12 and compare the size. Meera font is bigger than Rachana font
  
OR

2. System->Preferences->Appearance->Fonts, , select the fonts for all types as Meera 12. Select theme as Clearlooks. See the panel width, window title width, the big close buttons etc. Repeat the same with Rachana 12 and see the difference


Actual results:
Meera font size is big and takes more spaces in application making the application look bad


Expected results:
Setting font size 12 should set the size as 12 and the size should be same as other fonts with same size.

Additional info:
None

Comment 1 libregeek 2009-09-16 06:06:30 UTC
Confirmed this bug in OpenOffice.org. Please find the attached screenshots.

Comment 2 libregeek 2009-09-16 06:08:16 UTC
Created attachment 361191 [details]
OpenOffice document using Meera, rachana and suruma fonts with size 12

Comment 3 libregeek 2009-09-16 06:12:44 UTC
Created attachment 361193 [details]
Desktop with Meera font as default (size 12)

Comment 4 Pravin Satpute 2009-09-29 11:22:57 UTC
It will be nice if you update this bug with version of following packages
fontconfig
smc-meera-fonts and metacity

Comment 5 Rajeesh 2009-09-29 11:38:06 UTC
Versions:
fontconfig-2.7.1-1.fc11.i586
metacity-2.26.0-1.fc11.i586
smc-meera-fonts-04.1-6.fc11.noarch

Comment 6 Pravin Satpute 2009-09-29 15:29:27 UTC
(In reply to comment #0)
> Description of problem:
> Meera font has a scaling property defined in
> /etc/fonts/conf.d/90-smc-fonts.conf file. It has a 1.2 times size scaling. But
> in Fedora 11 this scaling is not working properly. When Meera font is selected
> with size say, 12 for the applications, window titles etc, the entire desktop
> get ugly with expanded and overlapped titlebars or strings in application.


IMHO reason behind this is font metrics of Meera

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

looking at this Meera requires bit more vertical length of title bar for proper rendering as compared to Lohit. With compared to Rachana it requires bit more space below the character.

this Descent values is proper for Meera as there are some ligature required this much below space

see http://pravins.fedorapeople.org/Meera/meera_with_characters_below_base_extending.png

about Panel menus getting overlap is because SPACE character 0x0020, 

Meera : width = 563
Lohit : width = 350
Rachana : width = 466

see http://pravins.fedorapeople.org/Meera/lohit_space.png
http://pravins.fedorapeople.org/Meera/meera_space.png

so obviously Meera required more horizontal space as well, and panel menus getting overlapped, it will be nice if we can reduce its space value little bit

There is problem with OpenOffice, it is somehow not using .conf file, i am looking into it

Comment 7 Rahul Bhalerao 2009-09-30 06:01:48 UTC
Has the ascent-descent values for meera been changed recently? If so, please revert back to last working values if the change was not deliberate.

Comment 8 Pravin Satpute 2009-10-06 08:39:57 UTC
*** Bug 526420 has been marked as a duplicate of this bug. ***

Comment 9 Pravin Satpute 2009-10-06 15:25:00 UTC
about underline presence in the windows title bar..
this is happening with glossy, clearlooks, fedora default theme and curvy looks

while digging more on this problem i found that when we remove 90-smc-fonts.conf
this problem is not coming, even i tried some other combination of scaling matrix of .conf file but still this problem is happening

so changing component to fontconfig

Comment 10 Behdad Esfahbod 2009-10-06 16:02:47 UTC
Has nothing to do with fontconfig.  I have no idea what the problem is, but it's definitely within 90-smc-fonts.conf as you said.

Comment 11 Pravin Satpute 2009-10-06 16:22:12 UTC
thanks behdad for quick comment, yep it looks like that

while chatting with  Matthias Clasen on same issue, we found

as problem is not coming with Crux theme but coming with other themes, he shown difference in crux and clearlooks theme

<mclasen> one thing I notice that might be relevant (not sure)
<mclasen> is that crux seems to have a version-2 metacity theme xml file (metacity-theme-2.xml
<mclasen> clearlooks only has version-1 file

just do move /usr/share/themes/Crux/metacity-1 folder to somewhere temporarily

problem will start occurring with Crux theme as well

so looks like we identified where problem is occurring, moving componant to metacity, might be then need to move to gnome-themese for quick fix

thanks Matthias

but now need to see what will be quick fix for this

Comment 12 Matthias Clasen 2009-10-06 17:16:37 UTC
What I meant was to go into the folder /usr/share/themes/Crux/metacity-1 
and move the file metacity-theme-2.xml to somewhere else, e.g. unused.xml
and see if the problem reproduces with the metacity-theme-1.xml thats in the same folder.

Comment 13 Pravin Satpute 2009-10-07 12:08:07 UTC
just moving metacity-theme-2.xml doesn't make any difference

Comment 14 Pravin Satpute 2009-10-09 08:42:32 UTC
upstream bug id

https://bugzilla.gnome.org/show_bug.cgi?id=597884

Comment 15 Suresh P 2009-10-12 08:11:06 UTC
The issue disappeared when the matrix multiplication directive for Meera font has changed.From the entry for edit matrix directive for the font, the 'times' element and its child 'name' with value 'matrix' are removed. I don't know whether this is the right method because haven't seen any documentation regarding this. I think fontconfig is not well-documented about this entry.

The directive before change => http://pastie.org/651165

The directive after change => http://pastie.org/651160

BTW, strangely, the changes effected thru' fontconfig is not available in OpenOffice or KDE.

suresh

Comment 16 Pravin Satpute 2009-10-12 11:08:56 UTC
thanks suresh for pointer 

http://pravins.fedorapeople.org/smc-meera-fonts-04.2-2.fc11.noarch.rpm

please see if things are better with this rpm, if yes i will build smc-meera package again

rpm should resolve border bug of gnome-theme as well must not affect meera scaling rule in gedit

Comment 17 Santhosh Thottingal 2009-10-12 13:53:49 UTC
I can confirm that the fix mentioned by Suresh works fine in gnome applications. I did not use the RPM, but just edited the configuration file.
But the changes did not work on KDE and openoffice.

I am changing the component to Fontconfig again

Comment 18 Pravin Satpute 2009-10-12 16:35:13 UTC
santhoh can you test rpm as well?, so i can push this package for f12

behdad,
fontconf scaling rules for meera not working in KDE and openoffice, is there anything more need to do other than adding .conf file?

Comment 19 Rajeesh 2009-10-12 18:51:01 UTC
Created attachment 364504 [details]
Gedit with Meera size 10

Comment 20 Rajeesh 2009-10-12 18:51:45 UTC
Created attachment 364505 [details]
Gedit with Rachana size 10

Comment 21 Rajeesh 2009-10-12 18:53:58 UTC
I have tested the RPM, and can confirm that the fontconfig rule doesn't work with OpenOffice. GNOME apps seems to work ok. But it looks like to me that Meera/Rachana size difference is still present. See the previous two screenshots, each with size 10. Window border theme is Glossy.

Comment 22 Nicolas Mailhot 2009-10-12 19:00:06 UTC
(In reply to comment #21)
> I have tested the RPM, and can confirm that the fontconfig rule doesn't work
> with OpenOffice. GNOME apps seems to work ok. But it looks like to me that
> Meera/Rachana size difference is still present. See the previous two
> screenshots, each with size 10. Window border theme is Glossy.  

OO.o is notoriously challenged by non-trivial text rendering; it's probably worth it to open a separate bug on OO.o so the RedHat OO.o maintainers can look at it

(QT is also often challenged, though less so, and I don't think anyone @rh is going to work on it)

Comment 23 Pravin Satpute 2009-10-14 07:44:00 UTC
built smc-fonts-04.2-2.fc12
requested releng for adding same in F12 Final, hope so will get that

as suggested by Nicholas, Better to open new bug for OO.o and QT

Comment 24 Ani Peter 2009-10-29 06:43:03 UTC
Tested latest rawhide (smc-fonts-04.2-2.fc12) and here are the results with Meera 10, Meera 12, comparing with Rachana 10 and Rachana 12 on Fedora default desktop:

Meera 10 -> underline appears on the gui and gedit title bar 
Meera 12 -> underline appears on the gui and gedit title bar and the close buttons become too larger in size. 
(above issues applicable to OO, FF and Qt as mentioned earlier)

Rachana 10 -> works well with no underline
Rachana 12 -> works well with no underline and buttons are normal in size.

Relevant screenshots attached for Meera 10, Meera 12, Rachana 10, Rachana 12.

Comment 25 Ani Peter 2009-10-29 06:45:23 UTC
Created attachment 366559 [details]
Screenshot with Meera 10

Comment 26 Ani Peter 2009-10-29 06:46:19 UTC
Created attachment 366560 [details]
Screenshot with Meera 12

Comment 27 Ani Peter 2009-10-29 06:47:55 UTC
Created attachment 366561 [details]
Screenshot with Rachana 10

Comment 28 Ani Peter 2009-10-29 06:48:49 UTC
Created attachment 366562 [details]
Screenshot with Rachana 12

Comment 29 Bug Zapper 2009-11-16 12:26:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 30 Pravin Satpute 2009-11-20 09:38:25 UTC
(In reply to comment #15)
> The issue disappeared when the matrix multiplication directive for Meera font
> has changed.From the entry for edit matrix directive for the font, the 'times'
> element and its child 'name' with value 'matrix' are removed. I don't know
> whether this is the right method because haven't seen any documentation
> regarding this. I think fontconfig is not well-documented about this entry.
> 
> The directive before change => http://pastie.org/651165
> 
> The directive after change => http://pastie.org/651160

fontconfig rules dont work well if we remove
            <name>matrix</name>
above line from smc-fonts conf file
but yes underline issue go out.


so issue is still present

Comment 31 Ani Peter 2010-04-09 09:56:56 UTC
Created attachment 405501 [details]
Underline issue resolved - screenshot

Tested the updated gnome-themes-2.28.1-3.fc12 on F12. The underline issue has disappeared and all windows (oowriter, gnome-terminal, kwrite, gedit, firefox and evince) appears good to me. 

Screenshot for oowriter, gnome-terminal, kwrite, gedit, firefox attached for confirmation. Thanks Pravin.

Comment 32 Pravin Satpute 2010-05-14 05:04:18 UTC
i think we can close this bug now
I have already given reason's regarding extra title bar space, see comment #6 
if any issue regarding this please reopen bug