mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Support loading fonts with names longer than 31 characters
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user