diff --git a/modules/ILL/ILL.moon b/modules/ILL/ILL.moon index 66ae698..566d4a0 100644 --- a/modules/ILL/ILL.moon +++ b/modules/ILL/ILL.moon @@ -1,4 +1,4 @@ -module_version = "1.5.2" +module_version = "1.5.3" haveDepCtrl, DependencyControl = pcall require, "l0.DependencyControl" diff --git a/modules/ILL/ILL/Font/Unx.moon b/modules/ILL/ILL/Font/Unx.moon index 42069ac..de247ca 100644 --- a/modules/ILL/ILL/Font/Unx.moon +++ b/modules/ILL/ILL/Font/Unx.moon @@ -625,7 +625,7 @@ class FreeType extends Init getTextExtents: (text) => face_size, width = @face[0].size.face, 0 @callBackChars text, (ci, char, glyph) -> - width += tonumber(glyph.metrics.horiAdvance) + (ci > 1 and @hspace * FONT_UPSCALE or 0) + width += tonumber(glyph.metrics.horiAdvance) + (@hspace * FONT_UPSCALE) { width: (width / FONT_UPSCALE) * @xscale height: @height * @yscale