Make it possible to attach arbitrary game font from delegate font

This commit is contained in:
Soreepeong 2023-12-10 21:08:35 +09:00
parent 3d576a0654
commit d78667900f
8 changed files with 544 additions and 407 deletions

View file

@ -37,9 +37,13 @@ public struct SafeFontConfig
/// </summary>
/// <param name="config">Config to copy from.</param>
public unsafe SafeFontConfig(ImFontConfigPtr config)
: this()
{
this.Raw = *config.NativePtr;
this.Raw.GlyphRanges = null;
if (config.NativePtr is not null)
{
this.Raw = *config.NativePtr;
this.Raw.GlyphRanges = null;
}
}
/// <summary>