Add initial directwrite to svg conversion.
This commit is contained in:
parent
2c825adc1d
commit
b7f75f903e
15 changed files with 571 additions and 7 deletions
|
@ -104,3 +104,23 @@ void SvgPolyline::setPoints(const std::vector<DiscretePoint>& locs)
|
|||
addAttribute(std::move(points));
|
||||
}
|
||||
|
||||
|
||||
SvgPath::SvgPath()
|
||||
: SvgShapeElement("path")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void SvgPath::setPath(const std::string& mPath)
|
||||
{
|
||||
auto path = std::make_unique<XmlAttribute>("d");
|
||||
path->setValue(mPath);
|
||||
addAttribute(std::move(path));
|
||||
}
|
||||
|
||||
void SvgPath::setFillRule(const std::string& fillRule)
|
||||
{
|
||||
auto rule = std::make_unique<XmlAttribute>("fill-rule");
|
||||
rule->setValue(fillRule);
|
||||
addAttribute(std::move(rule));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue