diff --git a/modules/ILL/ILL.moon b/modules/ILL/ILL.moon index 566d4a0..b4c3536 100644 --- a/modules/ILL/ILL.moon +++ b/modules/ILL/ILL.moon @@ -1,4 +1,4 @@ -module_version = "1.5.3" +module_version = "1.5.4" haveDepCtrl, DependencyControl = pcall require, "l0.DependencyControl" diff --git a/modules/ILL/ILL/Font/Font.moon b/modules/ILL/ILL/Font/Font.moon index a24beec..2b49147 100644 --- a/modules/ILL/ILL/Font/Font.moon +++ b/modules/ILL/ILL/Font/Font.moon @@ -19,6 +19,7 @@ -- THE SOFTWARE. -- Font scale values for increased size & later downscaling to produce floating point coordinates +export FONT_LF_FACESIZE = 32 export FONT_UPSCALE = 64 export FONT_DOWNSCALE = 1 / FONT_UPSCALE export IS_UNIX = jit.os != "Windows" diff --git a/modules/ILL/ILL/Font/Win.moon b/modules/ILL/ILL/Font/Win.moon index 9c44f96..4f50940 100644 --- a/modules/ILL/ILL/Font/Win.moon +++ b/modules/ILL/ILL/Font/Win.moon @@ -181,7 +181,7 @@ class WindowsGDI extends Init -- Fix family length lfFaceName = ffi.new "WCHAR[?]", FONT_LF_FACESIZE - familyLen = C.wcslen family + familyLen = tonumber C.wcslen family if familyLen >= FONT_LF_FACESIZE ffi.copy lfFaceName, family, (FONT_LF_FACESIZE-1) * ffi.sizeof "WCHAR" else