toptensoftware / RichTextKit

Rich text rendering for SkiaSharp
Other
367 stars 73 forks source link

making this work with foreign languages #18

Closed eman1986 closed 4 years ago

eman1986 commented 4 years ago

Hi,

I have a situation where I need to render Hebrew and I see if I just use the example code it's all blocks, is there a special font or setting I need to set to render the text correctly?

Thanks.

toptensoftware commented 4 years ago

Hi @eman1986

It should just work, but this is the second report I've had of font fallback not working today. What version of SkiaSharp are you running?

eman1986 commented 4 years ago

2.80.1

Gillibald commented 4 years ago

Not sure how your fallback works. This works for me https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Visuals/Media/TextFormatting/TextCharacters.cs#L56 maybe it helps

toptensoftware commented 4 years ago

Hi @eman1986

This was a bug in SkiaSharp 2.8, but I've made a new build of RichTextKit that fixes the issue by using newer functions instead of older deprecated ones. Give it a go and let me know if problem persists.

https://www.nuget.org/packages/Topten.RichTextKit/

Brad

eman1986 commented 4 years ago

Thank you Brad it is now working :)