Issues related to SkParagraph

47 views
Skip to first unread message

Cedric

unread,
Jul 1, 2025, 8:42:00 AMJul 1
to skia-discuss
Hello,

I'm trying out SkParagaph to replace SkCanvas::drawSimpleText because it offers additional support which I need. 
However, I'm facing a couple of issues with it. I'm using Milestone 128 at this point.

When you try to build it as a component on Windows, the generated lib file does not contain any exported symbols. This problem has already been reported here: Skparagraph component build (DLL/.so/as a dynamic library) broken on windows [307357528] - Skia. A fix for the issue is also provided there, which is working fine. However, this fix has not yet been integrated in an official release. Is there any plan to do so? 

Second issue is that icudtl.dat need to be present in the executable directory. If it is not present, a crash occurs (see this discussion: Crash in Windows for SkParagraph). Is there a way to fix this and avoid the crash (just don't render anything instead)?

Finally, in the "FontCollection.h" public header, there is an include directive to a file located in the src directory:
SkFontCollection.png
This is annoying because it requires us to also store source files instead of only public header files in our Git. Is there a way to fix this and remove that dependency (move SkTHash in the public headers as well maybe?) ?

Thanks,
Cédric
Reply all
Reply to author
Forward
0 new messages