Skip to content

Commit 57f0e9f

Browse files
committed
Fix font family
1 parent 38a2c1b commit 57f0e9f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

modules/ILL/ILL.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module_version = "1.5.3"
1+
module_version = "1.5.4"
22

33
haveDepCtrl, DependencyControl = pcall require, "l0.DependencyControl"
44

modules/ILL/ILL/Font/Font.moon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-- THE SOFTWARE.
2020

2121
-- Font scale values for increased size & later downscaling to produce floating point coordinates
22+
export FONT_LF_FACESIZE = 32
2223
export FONT_UPSCALE = 64
2324
export FONT_DOWNSCALE = 1 / FONT_UPSCALE
2425
export IS_UNIX = jit.os != "Windows"

modules/ILL/ILL/Font/Win.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class WindowsGDI extends Init
181181

182182
-- Fix family length
183183
lfFaceName = ffi.new "WCHAR[?]", FONT_LF_FACESIZE
184-
familyLen = C.wcslen family
184+
familyLen = tonumber C.wcslen family
185185
if familyLen >= FONT_LF_FACESIZE
186186
ffi.copy lfFaceName, family, (FONT_LF_FACESIZE-1) * ffi.sizeof "WCHAR"
187187
else

0 commit comments

Comments
 (0)