Re: FT_New_Face called many time for same font.



On 10/13/2009 05:43 AM, Jesper L. Nielsen wrote:

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.

libpangoft2.so provides two things: the pangoft2 backend (which is obsolete), and the pangofc abstract backend, that is also used by pangocairo. That's why it's still linked.

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?

That should work.  Let us know.

behdad


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