After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613778 - titlebar's border get displaced in Indic locale, when titlebar in ascii text
titlebar's border get displaced in Indic locale, when titlebar in ascii text
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: .General
2.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-03-24 09:09 UTC by Pravin Satpute
Modified: 2010-08-25 05:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
image describing problem when titlebar text in ascii (8.27 KB, image/png)
2010-03-24 09:11 UTC, Pravin Satpute
Details
image showing things work proper when titlebar text in locale script (8.23 KB, image/png)
2010-03-24 09:11 UTC, Pravin Satpute
Details
used for creating above images (1.99 KB, text/plain)
2010-03-24 09:14 UTC, Pravin Satpute
Details

Description Pravin Satpute 2010-03-24 09:09:39 UTC
If we log in any indic or other locale having default language font metrics (ascent/descent) not matching with default ascii fonts then this problem happens

say for example:
log in in kn_IN (kannada) locale

open any application, where titlebar text in kannada script, everything will work fine

but if we open any application having titlebar text in ascii, border gets displaced, it appear as a underline in titlebar

I have try to find where is problem, so i think this is happening since there is difference in fonts properties

kannada locale uses default fonts Lohit Kannada, http://kojipkgs.fedoraproject.org/packages/lohit-kannada-fonts/2.4.4/3.fc13/noarch/lohit-kannada-fonts-2.4.4-3.fc13.noarch.rpm

lohit kannada's ascent= 850 and descent=-702 in hhea table

and default ascii fonts dejavu ascent= 1901, descent= -483 
i think somehow titlebar get scaled as per default locale (kn_IN here) fonts (lohit kannada here) but border get adjusted as per ascii fonts (dejavu here), so thats why this misplacements happen
Comment 1 Pravin Satpute 2010-03-24 09:11:03 UTC
Created attachment 156951 [details]
image describing problem when titlebar text in ascii
Comment 2 Pravin Satpute 2010-03-24 09:11:51 UTC
Created attachment 156952 [details]
image showing things work proper when titlebar text in locale script
Comment 3 Pravin Satpute 2010-03-24 09:14:33 UTC
Created attachment 156953 [details]
used for creating above images
Comment 4 Matthias Clasen 2010-08-25 05:27:06 UTC
Not a gtk problem (and I believe since fixed by changing something in metacity themes)