From 82093d2b0d4ee8510820213cbcd248418528a88c Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 7 Dec 2023 22:54:04 -0800 Subject: [PATCH] ABI changes --- WellspringCS.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/WellspringCS.cs b/WellspringCS.cs index 7aea1fe..5de4f3d 100644 --- a/WellspringCS.cs +++ b/WellspringCS.cs @@ -103,7 +103,8 @@ namespace WellspringCS IntPtr fontBytes, uint fontBytesLength, IntPtr atlasJsonBytes, - uint atlasJsonBytesLength + uint atlasJsonBytesLength, + out float pixelsPerEm ); [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -118,8 +119,7 @@ namespace WellspringCS [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern byte Wellspring_TextBounds( IntPtr font, - float x, - float y, + int pixelSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, IntPtr strBytes, /* UTF-8 bytes */ @@ -132,6 +132,7 @@ namespace WellspringCS IntPtr textBatch, float x, float y, + int pixelSize, float depth, in Color color, HorizontalAlignment horizontalAlignment,