Support loading fonts with names longer than 31 characters

This commit is contained in:
Yoshi Askharoun
2025-08-04 12:56:47 -05:00
parent a2b3addfc1
commit f3461ac81b
5 changed files with 12 additions and 15 deletions
+3 -2
View File
@@ -35,7 +35,8 @@ namespace Microsoft.Iris.Drawing
public unsafe bool CanMeasure(string content, TextStyle textStyle)
{
bool fPossible;
fixed (char* chPtr = textStyle.FontFace)
fixed (char* chPtr = textStyle.TruncatedFontFace)
{
var style = new TextStyle.MarshalledData(textStyle)
{
@@ -70,7 +71,7 @@ namespace Microsoft.Iris.Drawing
}
IntPtr hGlyphRunInfo;
NativeApi.RasterizeRunPacket rasterizeRunPacket;
fixed (char* chPtr = textStyle.FontFace)
fixed (char* chPtr = textStyle.TruncatedFontFace)
{
var style = new TextStyle.MarshalledData(textStyle)
{