Lines Matching refs:text

73 static Box _boundingBox(const Text* text)  in _boundingBox()  argument
76 text->bounds(&x, &y, &w, &h, false); in _boundingBox()
776 static void _applyTextFill(SvgStyleProperty* style, Text* text, const Box& vBox) in _applyTextFill() argument
783 if (!style->fill.paint.gradient->userSpace) bBox = _boundingBox(text); in _applyTextFill()
787 text->fill(std::move(linear)); in _applyTextFill()
790 text->fill(std::move(radial)); in _applyTextFill()
797 text->fill(style->color.r, style->color.g, style->color.b); in _applyTextFill()
798 text->opacity(style->fill.opacity); in _applyTextFill()
801 text->fill(style->fill.paint.color.r, style->fill.paint.color.g, style->fill.paint.color.b); in _applyTextFill()
802 text->opacity(style->fill.opacity); in _applyTextFill()
809 auto textNode = &node->node.text; in _textBuildHelper()
810 if (!textNode->text) return nullptr; in _textBuildHelper()
811 auto text = Text::gen(); in _textBuildHelper() local
815 translateR(&textTransform, node->node.text.x, node->node.text.y - textNode->fontSize); in _textBuildHelper()
816 text->transform(textTransform); in _textBuildHelper()
821 if (textNode->fontFamily) text->font(textNode->fontFamily, fontSizePt); in _textBuildHelper()
822 text->text(textNode->text); in _textBuildHelper()
824 _applyTextFill(node->style, text.get(), vBox); in _textBuildHelper()
825 _applyComposition(loaderData, text.get(), node, vBox, svgPath); in _textBuildHelper()
827 return text; in _textBuildHelper()
860 auto text = _textBuildHelper(loaderData, *child, vBox, svgPath); in _sceneBuildHelper() local
861 if (text) scene->push(std::move(text)); in _sceneBuildHelper()