def expand.text

gralha-svg-render@0.1.0.1 · svg.bend:3930

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-xml-doc@0.1.0.1/xml.bend as XML
import gralha-truetype@0.1.0.1/font.bend as Font

3930def expand.text(has: Bool, +xs: List<&2, XML.Element>, book: Font.FontBook, +w: F32, +h: F32) -> List<&2, XML.Element>:
3931  match has:
3932    case True{}: text.paint.group(text.expand(text.path.resolve(xs, xs, w, h, True{}), text.font.default(book), w, h, True{}))
3933    case False{}: xs

Uses (9)

Used by (1)