Initialize font style images in job

This commit is contained in:
Filip Sykala 2022-03-22 21:38:07 +01:00
parent 3772b3d0b5
commit 501f6f021f
6 changed files with 239 additions and 157 deletions

View file

@ -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) {}