From 433b33c436451b0c19c88fd1c56d5fae83ddab02 Mon Sep 17 00:00:00 2001 From: "harry.cpp" Date: Thu, 21 Nov 2024 15:14:01 +0100 Subject: [PATCH] try something dumb :D --- MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs b/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs index abc19c708d1..26a5d23f7f6 100644 --- a/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs +++ b/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs @@ -150,7 +150,7 @@ struct FT_SubGlyph public ushort flags; public int arg1; public int arg2; - FT_Matrix transform; + FT_Matrix transform; } unsafe struct FT_Face @@ -250,7 +250,7 @@ unsafe partial class FreeType [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] public static partial int FT_Done_FreeType(FT_Library* library); - [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf8)] + [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf16)] [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] public static partial int FT_New_Face(FT_Library* library, string filepathname, long face_index, out FT_Face* aface);