[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
copy advance after FT_Done_Glyph
From: |
Ryan Martindale |
Subject: |
copy advance after FT_Done_Glyph |
Date: |
Wed, 1 Nov 2000 17:51:57 -0700 |
I haven't tried it, but just looking at the code in src/base/ftglyph.c, at
line 829, it would seem that calling FT_Done_Glyph(glyph) before copying the
advance as shown below would be bad (freeing memory, then using it again).
if ( destroy )
FT_Done_Glyph( glyph );
/* copy advance - thanks Karsten ;-) */
bitmap->root.advance = glyph->advance;
Thanks,
Ryan Martindale
- copy advance after FT_Done_Glyph,
Ryan Martindale <=