Initialize font style images in job
This commit is contained in:
parent
3772b3d0b5
commit
501f6f021f
6 changed files with 239 additions and 157 deletions
|
@ -105,8 +105,12 @@ public:
|
|||
/// </summary>
|
||||
struct FontFileWithCache
|
||||
{
|
||||
// Pointer on data of the font file
|
||||
std::shared_ptr<const FontFile> font_file;
|
||||
// cache for glyph shape
|
||||
|
||||
// Cache for glyph shape
|
||||
// IMPORTANT: accessible only in plater job thread !!!
|
||||
// main thread only clear cache by set to another shared_ptr
|
||||
std::shared_ptr<Emboss::Glyphs> cache;
|
||||
|
||||
FontFileWithCache() : font_file(nullptr), cache(nullptr) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue