Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Nov 22, 2024
1 parent 7a73e9e commit b92efee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MonoGame.Framework.Content.Pipeline/Utilities/FreeTypeAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Runtime.CompilerServices;

using FT_Long = System.IntPtr;
using FT_ULong = System.UIntPtr;

namespace FreeTypeAPI
{
Expand Down Expand Up @@ -241,15 +242,15 @@ 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)])]
public static partial int FT_Done_Face(FT_Face* aface);

[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)])]
Expand All @@ -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);
}
}

0 comments on commit b92efee

Please sign in to comment.