def document.camera.fonts
gralha-svg-render@0.1.0.1 · svg.bend:3942
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
3942def document.camera.fonts(+root: XML.Element, +w: F32, +h: F32, matrix: Matrix, book: Font.FontBook) -> List<&2, Scene<Brush>>:
3943 XML.Element{n, a, kids, txt} = root
3944 +kinds = XML.elements.kinds(kids, 0)
3945 +images = U32.is_gt(U32.and(kinds, 1), 0)
3946 +styled = document.styled(images || U32.is_gt(U32.and(kinds, 8), 0), kids, w, h)
3947 +nodes = expand.text(images || U32.is_gt(U32.and(kinds, 4), 0), expand.uses(images || U32.is_gt(U32.and(kinds, 2), 0), expand.images(images, styled, w, h)), book, w, h)
3948 context.scenes(compile(64n, nodes, style.default(), matrix, w, h, resources(nodes, a), True{}, Nil{}, 1.0), context.empty(), identity())