From b92efeeefce844204fb44bb2702a177da5421c99 Mon Sep 17 00:00:00 2001 From: "harry.cpp" Date: Fri, 22 Nov 2024 12:49:43 +0100 Subject: [PATCH] test 2 --- .../Utilities/FreeTypeAPI.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs b/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs index 715bb20d816..7a8c50e7f04 100644 --- a/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs +++ b/MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs @@ -6,6 +6,7 @@ using System.Runtime.CompilerServices; using FT_Long = System.IntPtr; +using FT_ULong = System.UIntPtr; namespace FreeTypeAPI { @@ -241,7 +242,7 @@ unsafe partial class FreeType [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf8)] [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] - public static partial int FT_New_Face(FT_Library* library, string filepathname, long face_index, out FT_Face* aface); + public static partial int FT_New_Face(FT_Library* library, string filepathname, FT_Long face_index, out FT_Face* aface); [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf8)] [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] @@ -249,7 +250,7 @@ unsafe partial class FreeType [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf8)] [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] - public static partial uint FT_Get_Char_Index(FT_Face* face, ulong charcode); + public static partial uint FT_Get_Char_Index(FT_Face* face, FT_ULong charcode); [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf8)] [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] @@ -261,6 +262,6 @@ unsafe partial class FreeType [LibraryImport(Library, StringMarshalling = StringMarshalling.Utf8)] [UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])] - public static partial int FT_Set_Char_Size(FT_Face* face, long char_width, long char_height, uint horz_resolution, uint vert_resolution); + public static partial int FT_Set_Char_Size(FT_Face* face, FT_Long char_width, FT_Long char_height, uint horz_resolution, uint vert_resolution); } }