Skip to content

Commit

Permalink
fix: Address Review
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Apr 17, 2023
1 parent 46ed691 commit 8148005
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
28 changes: 0 additions & 28 deletions src/Uno.UI/UI/Xaml/Documents/LanguageTagCache.skia.cs

This file was deleted.

3 changes: 1 addition & 2 deletions src/Uno.UI/UI/Xaml/Documents/Run.skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ private List<Segment> GetSegments()
&& char.IsSurrogate(text[i])
&& char.IsSurrogatePair(text[i], text[i + 1]))
{
var lang = LanguageTagCache.GetLanguageTag(this);
var fontManager = SKFontManager.Default;
var codepoint = (int)((text[i] - 0xD800) * 0x400 + (text[i + 1] - 0xDC00) + 0x10000);
symbolTypeface = fontManager
.MatchCharacter(null, SKFontStyle.Normal, lang, codepoint);
.MatchCharacter(codepoint);
surrogate = symbolTypeface is { };
break;
}
Expand Down

0 comments on commit 8148005

Please sign in to comment.