Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Aug 28, 2024
1 parent 49ddeed commit b4fb3fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,9 @@ LunaSVG supports nearly all graphical features outlined in the SVG 1.1 and SVG 1

`<a>` `<circle>` `<clipPath>` `<defs>` `<ellipse>` `<g>` `<image>` `<line>` `<linearGradient>` `<marker>` `<mask>` `<path>` `<pattern>` `<polygon>` `<polyline>` `<radialGradient>` `<rect>` `<stop>` `<style>` `<svg>` `<symbol>` `<text>` `<tspan>` `<use>`

Here's a more concise version of the installation section:

---

## Installation

Follow the steps below to install lunasvg using either [Meson](https://mesonbuild.com/) or [CMake](https://cmake.org/).
Follow the steps below to install LunaSVG using either [Meson](https://mesonbuild.com/) or [CMake](https://cmake.org/).

### Using Meson

Expand Down
2 changes: 1 addition & 1 deletion examples/svg2png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ int main(int argc, char** argv)
basename.append(".png");

bitmap.writeToPng(basename);
std::cout << "Generated PNG file : " << basename << std::endl;
std::cout << "Generated PNG file: " << basename << std::endl;
return 0;
}
4 changes: 2 additions & 2 deletions source/svgtextelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ void SVGTextElement::render(SVGRenderState& state) const
const auto& fill = fragment.element->fill();
const auto& stroke = fragment.element->stroke();
auto stroke_width = fragment.element->stroke_width();
if(fill.applyPaint(newState)) {
if(fill.applyPaint(newState))
newState->fillText(text, font, origin, transform);
} else if(stroke.applyPaint(newState)) {
if(stroke.applyPaint(newState)) {
newState->strokeText(text, stroke_width, font, origin, transform);
}
}
Expand Down

0 comments on commit b4fb3fe

Please sign in to comment.