[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init'
From: |
armin |
Subject: |
[ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init' |
Date: |
Thu, 23 Aug 2018 12:07:56 +0200 |
I'm still working on the bitmaps and just ran into an interesting access
violation that happens with using the API exactly (?) as it is intended to:
```
FT_Load_Glyph( face, index, load_flags ); // no load flags (0x0), PCF driver
FT_Get_Glyph( face->glyph, &glyph ); // lazy copy in
`ft_bitmap_glyph_init'
FT_Done_Glyph( glyph ); // frees the bitmap in the face's
// GlyphSlot (due to the lazy
copy)
FT_Get_Glyph( face->glyph, &glyph ); // proper copy in
// `ft_bitmap_glyph_init' and
// `FT_Bitmap_Copy' fails with an
// access violation
'''
I am not quite sure how to fix/tackle the issue and what the exact purpose
of fastpath is but in that case it seems somewhat overly fast (unless I
misunderstand the API usage) :)
Only tested with the PCF driver but the issue might be similar with other
drivers.
- [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init',
armin <=
- Message not available
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', Werner LEMBERG, 2018/08/24
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', armin, 2018/08/24
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', Werner LEMBERG, 2018/08/25
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', armin, 2018/08/25
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', Werner LEMBERG, 2018/08/25
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', Werner LEMBERG, 2018/08/25
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', armin, 2018/08/25
- Re: [ft-devel] PCF: Issues with lazy copy in `ft_bitmap_glyph_init', armin, 2018/08/25