File tree 3 files changed +3
-2
lines changed 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- module_version = " 1.5.3 "
1
+ module_version = " 1.5.4 "
2
2
3
3
haveDepCtrl, DependencyControl = pcall require , " l0.DependencyControl"
4
4
Original file line number Diff line number Diff line change 19
19
-- THE SOFTWARE.
20
20
21
21
-- Font scale values for increased size & later downscaling to produce floating point coordinates
22
+ export FONT_LF_FACESIZE = 32
22
23
export FONT_UPSCALE = 64
23
24
export FONT_DOWNSCALE = 1 / FONT_UPSCALE
24
25
export IS_UNIX = jit. os != " Windows"
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ class WindowsGDI extends Init
181
181
182
182
-- Fix family length
183
183
lfFaceName = ffi. new " WCHAR[?]" , FONT_LF_FACESIZE
184
- familyLen = C . wcslen family
184
+ familyLen = tonumber C . wcslen family
185
185
if familyLen >= FONT_LF_FACESIZE
186
186
ffi. copy lfFaceName, family, ( FONT_LF_FACESIZE - 1 ) * ffi. sizeof " WCHAR"
187
187
else
You can’t perform that action at this time.
0 commit comments