Small changes.

This commit is contained in:
treeform 2022-03-22 09:45:03 -07:00
parent b876feddc8
commit 2f88f6119a

View file

@ -199,10 +199,10 @@ proc fillText(ctx: Context, image: Image, text: string, at: Vec2) =
case ctx.textBaseline: case ctx.textBaseline:
of TopBaseAlign: of TopBaseAlign:
at.y += 0 discard
of HangingBaseAlign: of HangingBaseAlign:
# TODO: make accurate (Used by Tibetan and other Indic scripts.) # TODO: make accurate (Used by Tibetan and other Indic scripts.)
at.y += 0 discard
of MiddleBaseAlign: of MiddleBaseAlign:
at.y -= round((font.typeface.ascent - font.typeface.descent) / 2 * font.scale) at.y -= round((font.typeface.ascent - font.typeface.descent) / 2 * font.scale)
of AlphabeticBaseAlign: of AlphabeticBaseAlign: