mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-24 22:29:47 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
24 lines
534 B
C#
24 lines
534 B
C#
using SkiaSharp;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Topten.RichTextKit
|
|
{
|
|
class DefaultCharacterMatcher : ICharacterMatcher
|
|
{
|
|
public DefaultCharacterMatcher()
|
|
{
|
|
|
|
}
|
|
|
|
SKFontManager _fontManager = SKFontManager.Default;
|
|
|
|
/// <inheritdoc />
|
|
public SKTypeface MatchCharacter( string familyName, int weight, int width, SKFontStyleSlant slant, string[] bcp47, int character )
|
|
{
|
|
return _fontManager.MatchCharacter( familyName, weight, width, slant, bcp47, character );
|
|
}
|
|
}
|
|
}
|