Ticket #6644 (new defect)
Hardcoded font name in sugar.graphics.style
|Reported by:||khaled||Owned by:||marco|
|Deployments affected:||Blocked By:|
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.