Re: [ft] FT_Face_Copy()?

2009-05-04 Thread Werner LEMBERG
> Their recommended solution was to not use the FT cache. :P > [Apparently, Pango doesn't use the cache, and they've never seen > anyone else use it either...] Hmm. I suppose Cairo has a cache of own... Otherwise, you have a loss of efficiency and you should file a bug report. >> Adding an `F

Re: [ft] FT_Face_Copy()?

2009-05-04 Thread Ian Britten
Werner LEMBERG wrote: In our code, we use FTC_Manager_New()/etc to cache the various faces, glyphs, cmaps, etc. [...] I've recently added Cairo (http://cairographics.org/) support to our code, for exporting to PDF/etc. In order to get Cairo to render our text correctly, I use their FT-specific

Re: [ft] FT_Face_Copy()?

2009-05-03 Thread David Turner
2009/5/2 Werner LEMBERG > > > Adding an `FT_Face_Copy' shouldn't be very hard, but I'm not sure it > is the right solution to this problem. > Actually this is not trivial, since the FT_Face could be using a custom FT_Stream to access the font file, and there is no easy way to clone these objects

Re: [ft] FT_Face_Copy()?

2009-05-01 Thread Werner LEMBERG
> In our code, we use FTC_Manager_New()/etc to cache the various > faces, glyphs, cmaps, etc. [...] > > I've recently added Cairo (http://cairographics.org/) support to our > code, for exporting to PDF/etc. In order to get Cairo to render our > text correctly, I use their FT-specific rendering

Re: [ft] FT_Face_Copy()?

2009-05-01 Thread Ian Britten
Werner LEMBERG wrote: I didn't see any sort of way to copy an allocated FT_Face (analogous to the existing FT_Glyph_Copy()). - Could this be added to a future version? - In the meantime, could someone suggest a safe/efficient work-around? Currently, I'm having to go through FT_Open_Face() a

Re: [ft] FT_Face_Copy()?

2009-04-30 Thread Werner LEMBERG
> I didn't see any sort of way to copy an allocated FT_Face (analogous > to the existing FT_Glyph_Copy()). > > - Could this be added to a future version? > - In the meantime, could someone suggest a safe/efficient > work-around? Currently, I'm having to go through FT_Open_Face() > again, but

[ft] FT_Face_Copy()?

2009-04-28 Thread Ian Britten
Hi all, I didn't see any sort of way to copy an allocated FT_Face (analogous to the existing FT_Glyph_Copy()). - Could this be added to a future version? - In the meantime, could someone suggest a safe/efficient work-around? Currently, I'm having to go through FT_Open_Face() again, but re-ope