Commit Graph

26 Commits

Author SHA1 Message Date
Jakub Valtar
faa22de621 FX: Prevent matrix stack overflow
Matrix stack could overflow in a very special case when beginShape() was
called while strokeWeight=1 and then strokeWeight was changed before
endShape(). This PR makes sure matrix is popped correctly even when user
changes strokeWeight in the beginShape()/endShape() block.

Decided to bug user only when necessary and not show warining when user
changes strokeWeight in the beginShape()/endShape() block, same as in
JAVA2D. Otherwise we could add checks for all the other things which are
mentioned in the docs, but it would be hell to maintain and use.

Fixes #4206
2016-12-29 19:00:24 +01:00
Ben Fry
01c42bddcb repair curveVertex() init logic in FX2D (fixes #3960) 2015-10-05 11:51:31 -04:00
Jakub Valtar
0296e3c02e FX - fix bug where fonts would share a tint cache 2015-09-05 16:06:18 -04:00
Ben Fry
fd1b9f9fb0 a little housekeeping 2015-09-05 08:38:40 -04:00
Jakub Valtar
8ab236564d FX - clean up native lookup, style and comments 2015-09-04 15:48:47 -04:00
Jakub Valtar
c82f61e76a FX - fix AIOOBE in tined glyph cache 2015-09-04 14:57:24 -04:00
Jakub Valtar
8ed2c067d0 FX - don't load fonts which were previously not found 2015-09-04 11:06:13 -04:00
Jakub Valtar
03f2b50f19 FX - fix bug in measuring text 2015-09-04 11:04:23 -04:00
Jakub Valtar
621d064545 Clean up textFont and textSize, add impl 2015-09-04 10:43:01 -04:00
Jakub Valtar
d1ba259469 FX - support for fonts from TTF and OTF lands 2015-09-03 17:51:10 -04:00
Jakub Valtar
710bd7e8e6 FX - image fonts 2015-09-03 16:31:52 -04:00
Jakub Valtar
6aa4c5069e FX - native text rendering 2015-09-02 19:55:03 -04:00
Jakub Valtar
740a794d91 FX - loadPixels, updatePixels, get and set optimizations 2015-08-26 18:42:48 -04:00
Jakub Valtar
8a4b04ec80 FX - paths, contours, curves 2015-08-25 15:19:54 -04:00
Ben Fry
9afbd35dc2 Merge pull request #3713 from JakubValtar/fx-arcs
FX - arc - infamous deg-rad conversion strikes again
2015-08-25 11:29:30 -04:00
Jakub Valtar
04a1f09bd8 FX - arc - infamous deg-rad conversion strikes again 2015-08-25 10:09:39 -04:00
Ben Fry
9ca5e3abab remove warning 2015-08-25 08:57:35 -04:00
Ben Fry
0ff82a52b4 Merge pull request #3712 from JakubValtar/fx-thin-lines
FX - align to pixel grid when drawing 1 px strokes
2015-08-24 18:38:10 -04:00
Ben Fry
6b6a227f2f Merge pull request #3709 from JakubValtar/fx-pixel-ops
FX - basic pixel operations (get, set, load, update)
2015-08-24 18:32:43 -04:00
Ben Fry
931512173b Merge pull request #3711 from JakubValtar/fx-rotate
FX - fix rad-deg conversion in rotate()
2015-08-24 18:31:21 -04:00
Jakub Valtar
5ea3a02fcc FX - align to pixel grid when drawing 1 px strokes 2015-08-24 17:58:48 -04:00
Jakub Valtar
863be6204d FX - fix rad-deg conversion in rotate() 2015-08-24 17:17:29 -04:00
Jakub Valtar
3af532bd95 FX - fix transformation stack NPE 2015-08-24 17:15:26 -04:00
Jakub Valtar
55caf85bb0 FX - basic pixel operations (get, set, load, update) 2015-08-24 16:25:54 -04:00
Jakub Valtar
ca0f78de4c FX - fix rect size 2015-08-18 16:47:38 -04:00
Ben Fry
44c05ee2e3 split out the javafx stuff, clean up misuse of fields 2015-06-21 22:12:39 -04:00