paint in bindings
This commit is contained in:
parent
6efd2ea7e9
commit
7c5181efd9
|
@ -224,6 +224,7 @@ exportRefObject Font:
|
|||
size
|
||||
lineHeight
|
||||
paints
|
||||
paint
|
||||
textCase
|
||||
underline
|
||||
strikethrough
|
||||
|
|
|
@ -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: [].} =
|
||||
|
|
Loading…
Reference in a new issue