react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

Skia Text doesn't render special characters

Open adithyavis opened this issue 10 months ago • 1 comments

Description

Skia Text doesn't render many special characters, including the following ₪ د.إ"

It instead renders these characters as blank boxes, as shown below Image

React Native Skia Version

1.5.3

React Native Version

0.72.14

Using New Architecture

  • [ ] Enabled

Steps to Reproduce

Render this on a canvas, and it will render the special character properly

         <Text
            x={0}
            y={1}
            text="₪"
            font={font}
          />

Snack, Code Example, Screenshot, or Link to Repository

Image Currencies with special characters are not rendered properly

adithyavis avatar Mar 03 '25 17:03 adithyavis

You can use Paragraph instead. If you still want Text, you would better include a font file which contains your characters.

hxzrx avatar Apr 11 '25 07:04 hxzrx

This issue I think can safely be closed. If you use Text you can only use one font and you need your foot to support that character. If you use the paragraph API, you can fallback between different fonts.

wcandillon avatar Jun 21 '25 14:06 wcandillon