paint in bindings

This commit is contained in:
Ryan Oldenburg 2021-10-12 22:42:08 -05:00
parent 6efd2ea7e9
commit 7c5181efd9
2 changed files with 2 additions and 1 deletions

View file

@ -224,6 +224,7 @@ exportRefObject Font:
size
lineHeight
paints
paint
textCase
underline
strikethrough

View file

@ -183,7 +183,7 @@ proc defaultLineHeight*(font: Font): float32 {.inline, raises: [].} =
font.typeface.ascent - font.typeface.descent + font.typeface.lineGap
round(fontUnits * font.scale)
proc paint*(font: Font): var Paint {.inline, raises: [].} =
proc paint*(font: Font): Paint {.inline, raises: [].} =
font.paints[0]
proc `paint=`*(font: Font, paint: Paint) {.inline, raises: [].} =