Reduce size for SkParagraph module

133 views
Skip to first unread message

Christian Falch

unread,
Nov 15, 2022, 7:47:52 AM11/15/22
to skia-discuss
Hi,

We've just added the SkParagraph module to React Native Skia to enable advanced text rendering (which looks super awesome by the way!) - but we're noticing that our final library grows with approximately 50%. 

Are there any known ways to configure Skia in a way that reduces this a bit? We're on m108 at the moment.

Christian

jlav...@google.com

unread,
Nov 15, 2022, 9:32:02 AM11/15/22
to skia-discuss
SkParagraph uses harfbuzz and ICU (both add significant amount).
There is a way to build Skia without ICU for Android. Set flag skia_use_runtime_icu=true for SkUnicode (ICU encapsulation).
That should save you something.

Julia

Christian Falch

unread,
Nov 16, 2022, 3:38:32 AM11/16/22
to skia-discuss
Thanks for the suggestion, Julia. 
Reply all
Reply to author
Forward
0 new messages