paint in bindings
This commit is contained in:
parent
6efd2ea7e9
commit
7c5181efd9
2 changed files with 2 additions and 1 deletions
|
@ -224,6 +224,7 @@ exportRefObject Font:
|
||||||
size
|
size
|
||||||
lineHeight
|
lineHeight
|
||||||
paints
|
paints
|
||||||
|
paint
|
||||||
textCase
|
textCase
|
||||||
underline
|
underline
|
||||||
strikethrough
|
strikethrough
|
||||||
|
|
|
@ -183,7 +183,7 @@ proc defaultLineHeight*(font: Font): float32 {.inline, raises: [].} =
|
||||||
font.typeface.ascent - font.typeface.descent + font.typeface.lineGap
|
font.typeface.ascent - font.typeface.descent + font.typeface.lineGap
|
||||||
round(fontUnits * font.scale)
|
round(fontUnits * font.scale)
|
||||||
|
|
||||||
proc paint*(font: Font): var Paint {.inline, raises: [].} =
|
proc paint*(font: Font): Paint {.inline, raises: [].} =
|
||||||
font.paints[0]
|
font.paints[0]
|
||||||
|
|
||||||
proc `paint=`*(font: Font, paint: Paint) {.inline, raises: [].} =
|
proc `paint=`*(font: Font, paint: Paint) {.inline, raises: [].} =
|
||||||
|
|
Loading…
Reference in a new issue