Re: FT_New_Face called many time for same font.




On Oct 6, 2009, at 4:15 PM, Behdad Esfahbod wrote:

I'm not sure what that is, but pangocairo definitely doesn't have the problem you originally mentioned.


You were absolutely right. I changed the backend and Cairo only loads a font once. I wish I had known that pangoft was broken before. I noticed that when building libpangoft2 is still linked however. I there a small dependency left? I've tried doing a ldd on Firefox (which uses PangoCairo too, right?) and Firefox alse links with libpangotft2.


As you said, those were very old postings. It's faster than anything else you find around now.


I think I'm seeing a slight decrease in speed, but I have to investigate that. I am unsing the same method as the example 'cairoshape.c' coming with Pango is using. Maybe I could introduce a 'dirty' bit, and only layout the PangoLayout once instead of twice?


--
Jesper L. Nielsen
Senior Software Engineer @ 2M-Locatel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]