Skip to content

Commit 3d72fd8

Browse files
committed
Fix text extents width for unix
1 parent bc79905 commit 3d72fd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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.2"
1+
module_version = "1.5.3"
22

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

modules/ILL/ILL/Font/Unx.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ class FreeType extends Init
625625
getTextExtents: (text) =>
626626
face_size, width = @face[0].size.face, 0
627627
@callBackChars text, (ci, char, glyph) ->
628-
width += tonumber(glyph.metrics.horiAdvance) + (ci > 1 and @hspace * FONT_UPSCALE or 0)
628+
width += tonumber(glyph.metrics.horiAdvance) + (@hspace * FONT_UPSCALE)
629629
{
630630
width: (width / FONT_UPSCALE) * @xscale
631631
height: @height * @yscale

0 commit comments

Comments
 (0)