Closed dwarring closed 2 years ago
The same Freetype font is being substituted for different fonts. Distinct Raku Font::Freetype::Face objects are being created so there's something else going on.
Maybe the native freetype library is caching on our behalf?
Seems that the Raku Font::FreeType library can better support threads by directly using the cache as mentioned https://lists.gnu.org/archive/html/freetype-devel/2015-08/msg00046.html Interface described here https://freetype.org/freetype2/docs/reference/ft2-cache_subsystem.html
Over to you, Font::FreeType.
Fixed (or greatly improved in release 0.6.3. Locks added with Font::FreeType 0.4.0. Using this + other tweaks for thread-safe glyph access.
I'm sometimes seeing issues when running
pdf2image.raku
fromPDF::To::Cairo
. For example:Freetype is not thread-safe for concurrent access to
face
objects, which seems to be going on here.Investigation needed,