Fix adding supplemental language fonts for GamePrebakedFontHandle

This commit is contained in:
Soreepeong 2023-12-10 15:25:12 +09:00
parent e7c7cdaa29
commit 77536429d6
4 changed files with 55 additions and 13 deletions

View file

@ -31,6 +31,17 @@ public struct SafeFontConfig
this.Raw.FontDataOwnedByAtlas = 1;
}
/// <summary>
/// Initializes a new instance of the <see cref="SafeFontConfig"/> struct,
/// copying applicable values from an existing instance of <see cref="ImFontConfigPtr"/>.
/// </summary>
/// <param name="config">Config to copy from.</param>
public unsafe SafeFontConfig(ImFontConfigPtr config)
{
this.Raw = *config.NativePtr;
this.Raw.GlyphRanges = null;
}
/// <summary>
/// Gets or sets the index of font within a TTF/OTF file.
/// </summary>