#6644 NORM Never A: Hardcoded font name in sugar.graphics.style
Zarro Boogs per Child
bugtracker at laptop.org
Wed Mar 5 15:31:06 EST 2008
#6644: Hardcoded font name in sugar.graphics.style
--------------------+-------------------------------------------------------
Reporter: khaled | Owner: marco
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: sugar | Version:
Keywords: | Verified: 0
Blocking: | Blockedby:
--------------------+-------------------------------------------------------
Font name is hardcoded in sugar.graphics.style module as 'Bitstream Vera
Sans', making it necessary to change the source to use another font (we
don't even have "Bitstream Vera" in the builds). It should get font name
from gtk settings instead.
The attached patch fixes this, and fixes a (introduced?) bug when the
result of "zoom(36) - FONT_NORMAL_H - _FOCUS_LINE_WIDTH" is a negative
value (some fonts, especially Arabic fonts, have higher font hight value),
I don't know why "36", so I made it "FONT_NORMAL_H+12" which equals 36 for
the default sugar font.
--
Ticket URL: <http://dev.laptop.org/ticket/6644>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list