From e5b35e52da155a6ee02fd89c4f73385b8e6e3659 Mon Sep 17 00:00:00 2001 From: artem pecheny Date: Tue, 5 Apr 2022 03:42:14 +0300 Subject: [PATCH 1/2] Fix sign of xoffset. --- src/FntFile.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FntFile.hx b/src/FntFile.hx index 307218e..1246c3e 100644 --- a/src/FntFile.hx +++ b/src/FntFile.hx @@ -59,7 +59,7 @@ class FntFile { 'chars count=${chars.length}' ]; for (char in chars) { - lines.push('char id=${char.id} x=${char.x} y=${char.y} width=${char.w} height=${char.h} xoffset=${char.xo} yoffset=${char.yo} xadvance=${char.xa} page=0 chnl=15'); + lines.push('char id=${char.id} x=${char.x} y=${char.y} width=${char.w} height=${char.h} xoffset=${-char.xo} yoffset=${char.yo} xadvance=${char.xa} page=0 chnl=15'); } lines.push('kernings count=${kernings.length}'); for (kern in kernings) { From 01039cd3c12b553840baa9e86a462d9b57e3c58c Mon Sep 17 00:00:00 2001 From: Eric Ng Date: Thu, 7 Dec 2023 22:04:56 +0800 Subject: [PATCH 2/2] upgrade msdf --- native/msdfgen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/msdfgen b/native/msdfgen index d07fa1d..99559ac 160000 --- a/native/msdfgen +++ b/native/msdfgen @@ -1 +1 @@ -Subproject commit d07fa1d2c8088f87463182a05cab9bee29844e70 +Subproject commit 99559ac1db43dd53a1f93a766bd27cbd975a1713