Skip to content

Commit

Permalink
Fix font family
Browse files Browse the repository at this point in the history
klsruan committed Dec 1, 2024
1 parent 38a2c1b commit 57f0e9f
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/ILL/ILL.moon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module_version = "1.5.3"
module_version = "1.5.4"

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

1 change: 1 addition & 0 deletions modules/ILL/ILL/Font/Font.moon
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion modules/ILL/ILL/Font/Win.moon
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 57f0e9f

Please sign in to comment.