Skiasharp: Method DrawText does'nt support not english letters on IOS 12

Created on 20 Sep 2018  路  2Comments  路  Source: mono/SkiaSharp

Description

Method DrawText does'nt support not english letters on IOS 12

Code

canvas.DrawText("SkiaSharp 袪褍褋褋泻懈泄", coord, paint);

Expected Behavior

Draw text with russian letters

Actual Behavior

Draw text with english letters and cubes instead of russian ones.

Basic Information

  • Version with issue: v1.60.3
  • IDE: Visual Studio
  • Platform Target Frameworks: Xamarin, Xamarin.Forms, .Net Framework 4.6

    • iOS: 12

  • Target Devices:

    • iPhone 6s

Screenshots

image

Most helpful comment

Thank you very much!
I change typeface and everything is worknig fine now!

All 2 comments

Hello! Are you setting the Typeface property in your SKPaint?

You might need to call SKFontManager.MatchCharacter with a Cyrillic character, and use the returned SKTypeface.

Thank you very much!
I change typeface and everything is worknig fine now!

Was this page helpful?
0 / 5 - 0 ratings