both possible

This commit is contained in:
Ryan Oldenburg 2021-05-31 20:44:04 -05:00
parent 7ea0a37013
commit 1022fdcbe2

View file

@ -463,7 +463,7 @@ proc fillText*(
arrangement.selectionRects[runeIndex].w, arrangement.selectionRects[runeIndex].w,
underlineThickness underlineThickness
) )
elif font.strikethrough: if font.strikethrough:
path.rect( path.rect(
arrangement.selectionRects[runeIndex].x, arrangement.selectionRects[runeIndex].x,
position.y - strikeoutPosition, position.y - strikeoutPosition,
@ -535,7 +535,7 @@ proc strokeText*(
arrangement.selectionRects[runeIndex].w, arrangement.selectionRects[runeIndex].w,
underlineThickness underlineThickness
) )
elif font.strikethrough: if font.strikethrough:
path.rect( path.rect(
arrangement.selectionRects[runeIndex].x, arrangement.selectionRects[runeIndex].x,
position.y - strikeoutPosition, position.y - strikeoutPosition,