Small changes.
This commit is contained in:
parent
b876feddc8
commit
2f88f6119a
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue