Attila Szarvas
6be90eeeaa
Improve SVG text parsing capabilities
Prior to this change all <tspan> elements without x, and y attributes would
just inherit the parent elements such attributes and be placed in the same
location. This didn't respect whether these attributes were consumed already
by the parent.
Having multiple x and y elements, or having a different number of x and y
elements was also not handled in line with the rules for SVG.
1 year ago
attila
aee5a3a45e
SVGParser: Add support for multiple coords per text element
2 years ago
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible
2 years ago
attila
a99422efee
Drawable: Add setDrawableTransform() and use it in SVGParser
Using this new function a previous bug is avoided where transforms
were applied differently to drawable paths and text elements.
3 years ago
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
3 years ago
Tom Poole
dea3fe60e4
Update copyright banners
3 years ago
reuk
ebac835673
Fix some deprecation warnings
3 years ago
reuk
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace
4 years ago
reuk
3baaad8b5b
XmlElement: Update loops to use new iterators
4 years ago
jules
0ded1ccc5f
Made the SVG parser catch "NaN" string values rather than passing them into the Path class
5 years ago
ed
009d685179
Updated all license headers
5 years ago
ed
48acdf58ef
Added HSL support to Colour and use Colour::fromHSL() when parsing SVG HSL colours
5 years ago
ed
7553b8dc1b
Added HSL support to Colour and use Colour::fromHSL() when parsing SVG HSL colours
5 years ago
ed
26901c6106
SVG: Added support for RGBA, HSL and HSLA colours
5 years ago
ed
49361b4775
SVG: Added support for RGBA, HSL and HSLA colours
5 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
26c9468dc5
Deprecated AffineTransform::getScaleFactor() as it was producing incorrect values for transforms containing rotations. Added getDeterminant() method for getting the determinant of the transform
5 years ago
reuk
5af01b9b16
Demos: Convey proper ownership semantics
5 years ago
ed
d498575976
Fixed some SVG parsing bugs
6 years ago
Tom Poole
e88228a036
SVG: Fixed a couple of parsing bugs
6 years ago
jules
0fb8c8e82a
Added handy new function parseXMLIfTagMatches(), and refactored a lot of old code that was parsing XML in a more clunky way
6 years ago
jules
a97c4a9139
More std::unique_ptr modernisation - changed functions that used to return raw Drawable* pointers to use it
6 years ago
ed
594e09b250
SVG: Rescale image before transforming to ensure that it is the correct size
7 years ago
ed
b8b77df0ed
SVG: Ensure that transformed images are positioned correctly
7 years ago
ed
4d4fd5ea3f
SVG: Avoid double transforming gradients
7 years ago
ed
121b42d507
SVG: Set the bounding box of images to ensure they are positioned correctly
7 years ago
Tom Poole
ab863a6dc2
Replaced all usage of ScopedPointer with std::unique_ptr
7 years ago
jules
8d09eaadb6
Removed some defunct code from the C++1 feature detection macros, and simplified code which no longer needs to test for feature availability
7 years ago
jules
1a60fa9765
More ScopedPointer/unique_ptr compatibility work
7 years ago
jules
48a5fbd333
Another batch of ScopedPointer cleanups
7 years ago
jules
3300e71e17
Removal of RelativeCoordinate classes from the Drawables
7 years ago
jules
65ba5128c7
Small fix to the SVG parser
7 years ago
jules
d727f2a35a
Added MathConstants::halfPi to improve readability
8 years ago
jules
d0111a4f96
Began phasing out double_Pi and float_Pi in favour of MathConstants::pi. Also added MathConstants::twoPi
8 years ago
jules
f0ef700e46
Modernised a bunch of code mainly relating to character/string iteration
8 years ago
jules
eda613c6db
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
8 years ago
jules
5e4fd94b8f
SVG parser: if font-size is unspecified for text, a non-zero default size is used
8 years ago
jules
39cb22cf5e
Fixed a problem with the SVG parser
8 years ago
jules
a1b55a4025
Fixed a problem with the SVG parser handling group element transforms
8 years ago
jules
cb7ecfd77b
Added method Drawable::getOutlineAsPath(), and used this for parsing SVG clip regions
8 years ago
jules
e281bc3fed
SVG parser: changed font heights to work in points rather than pixels, to match behaviour of other parsers
8 years ago
jules
f5b92421f9
Fixed an SVG parser problem with elements marked display:none
8 years ago
jules
4397cc3701
Made SVG parser cope with quoted font names
8 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
jules
bf94ab0e4c
Made a few minor tweaks to reduce the number of pedantic -Wfloat-equals warnings
8 years ago
tpoole
37e21e9cb1
Fixed VS2013 compiler warning in SVGParser
8 years ago
jules
5b6c82b59c
Improved some SVG CSS parsing, and did some minor internal cleanup on the parser.
8 years ago
jules
8ed41ed14b
Fixed some whitespace style and cleaned up some code using C++11
8 years ago