Skip to content

Solved issue with labels #25

@ststeiger

Description

@ststeiger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions