You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found a solution to the issues with labels with Arabic/Berber (Tifinagh) writing-systems (scripts).
Incidentially, it also works with Asian and other scripts.
Problem is, Skia DrawText doesn't handle multi-script text-lines very well.
So you need to tell Skia which font to use (and either clip the additional scripts or for-loop the DawText for each ScriptRun).
I've found a solution to the issues with labels with Arabic/Berber (Tifinagh) writing-systems (scripts).
Incidentially, it also works with Asian and other scripts.
Problem is, Skia DrawText doesn't handle multi-script text-lines very well.
So you need to tell Skia which font to use (and either clip the additional scripts or for-loop the DawText for each ScriptRun).
I've added google noto-fonts, and have written a font-manager, here:
https://github.com/ststeiger/VectorTileRenderer/tree/master/VectorTileRenderer2/FontManager
https://github.com/ststeiger/VectorTileRenderer/blob/master/VectorTileRenderer2/FontManager/FontManager.cs#L180
Then you need to make a few changes in SkiaCanvas.DrawText
https://github.com/ststeiger/VectorTileRenderer/blob/master/VectorTileRenderer2/SkiaCanvas.cs#L438
It's not perfect just yet, but it preliminary works.
The text was updated successfully, but these errors were encountered: