[Trac #220] Arabic is not rendered correctly in gecko

Zarro Boogs per Child bugtracker at laptop.org
Wed Oct 25 15:43:32 EDT 2006


#220: Arabic is not rendered correctly in gecko
------------------------+---------------------------------------------------
 Reporter:  khassounah  |        Owner:  khassounah
     Type:  defect      |       Status:  new       
 Priority:  high        |    Milestone:  BTest-1   
Component:  sugar       |   Resolution:            
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by marco):

 Replying to [comment:11 khassounah]:

 > That is not totally accurate, if the page was created correctly,
 changing the font used for sans-serif should cause that font to be used in
 rendering the page. The problem with google's page is that it doesn't have
 the lang="ar" property on any of its tags (ar.wikipedia.org does and it
 works in gecko like a charm). Try saving the page locally and add the
 lang="ar" attribute to <html> and you'll be able to configure fonts
 perfectly.
 >

 I see a different behavior here. If I save locally and remove sans-serif
 from the style declaration I can configure my fonts. If I add lang="ar" to
 html I can't configure my fonts at all, with or without sans-serif. I'd
 have expected sans-serif to use the one configured in firefox too, but for
 wathever reason it doesn't seem to work that way here.

 Anyway I should test this on the builds and not on my desktop.

 > Pango does have the logic which causes it to find a font with a
 character map containing the >character being rendered, and it does seem
 to work since arabic text is being rendered. The >problem is that which
 font it chooses is (so far) completely arbitrary to me, and it seems to
 >pick the first font configured in the system.

 Yeah, I failed to figure out pango logic too so far.

 > I am talking to Owen to try to find out how to get Pango to choose the
 right font, but adding the fonts to the distribution would be an excellent
 first step. Recommended font configuration was included in another note.

 John is going to add fonts-arabic to the builds tonight (which includes
 the Kacst fonts).

-- 
Ticket URL: <http://dev.laptop.org/ticket/220#comment:12>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list