Commit graph

781 commits

Author SHA1 Message Date
treeform d37bed2f63 Fix image output diff. 2021-05-11 20:50:06 -07:00
treeform 3538de5ae6
Merge add text support. #185 from guzba/text2
* Simple API for both drawing basic text and complex text layouts with spans.
* Fill and stroke text with a color, gradient or even an image.
* Kerning adjustments with both KERN and GPOS OpenType pair adjustments.
* Text wrapping, horizontal and vertical alignment for simple and rich text.
2021-05-11 20:45:14 -07:00
Ryan Oldenburg e186456788 add filePath to typeface 2021-05-11 22:40:40 -05:00
Ryan Oldenburg 971287ce7e f 2021-05-11 22:40:40 -05:00
Ryan Oldenburg 0234c315af morepretty 2021-05-11 22:40:40 -05:00
Ryan Oldenburg ea84f71027 words 2021-05-11 22:40:40 -05:00
Ryan Oldenburg 9394da10e6 adjust readme 2021-05-11 22:40:40 -05:00
Ryan Oldenburg 28a3c7cfcc tighten example 2021-05-11 22:40:40 -05:00
Ryan Oldenburg c9a62df940 add svg font to table 2021-05-11 22:40:40 -05:00
Ryan Oldenburg e4a01752b6 readme 2021-05-11 22:40:40 -05:00
Ryan Oldenburg c30419c99d text examples 2021-05-11 22:40:40 -05:00
Ryan Oldenburg 7c6a0ab75a f 2021-05-11 22:40:40 -05:00
Ryan Oldenburg e5642dc470 f 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 666746d82e span fixes, more tests 2021-05-11 22:40:39 -05:00
Ryan Oldenburg a34831e52c return early 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f852d33ada add test 2021-05-11 22:40:39 -05:00
Ryan Oldenburg eae3b5e443 spans 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 10311fae70 check for invalid 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f9064af992 test 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f67b17348f feedback improvements 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 11fdc30399 paint on font 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 207608df04 diff img 2021-05-11 22:40:39 -05:00
Ryan Oldenburg ee79db8c88 trailing data test for png 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 4d2d780a51 allow trailing data 2021-05-11 22:40:39 -05:00
Ryan Oldenburg db4913635d andre fixes 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 6a1679fabb f 2021-05-11 22:40:39 -05:00
Ryan Oldenburg f969a04a03 move textCase, kerning flag 2021-05-11 22:40:39 -05:00
Ryan Oldenburg e931bd0319 computeBounds, no iterator 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 85bd786dd0 feedback 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 62c7fcd7ed f 2021-05-11 22:40:39 -05:00
Ryan Oldenburg a7ab10b8bf morepretty 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 43e80a70ab docs 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 84dd01fd00 update benchmark_fonts 2021-05-11 22:40:39 -05:00
Ryan Oldenburg fe59c77230 simpler 2021-05-11 22:40:39 -05:00
Ryan Oldenburg 37a21ac576 zippy output changed 2021-05-11 22:40:35 -05:00
Ryan Oldenburg a97f2171a4 uint32 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 7b2393874b arrangement api 2021-05-11 22:40:25 -05:00
Ryan Oldenburg eb550c0671 text alignments 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 5130651f15 wrap flag 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 20eb1af118 selection rects, better initial y 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 4a670e19df title case fix from andre 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 5c6725c4e3 handle control runes, newline 2021-05-11 22:40:25 -05:00
Ryan Oldenburg e5a463aaa3 names possibility 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 05889d51e4 fixes 2021-05-11 22:40:25 -05:00
Ryan Oldenburg 6a618b9e6b morepretty 2021-05-11 22:40:25 -05:00
Ryan Oldenburg a5f6fa4022 feedback 2021-05-11 22:40:24 -05:00
Ryan Oldenburg a8aef40637 a bit cleaner 2021-05-11 22:40:24 -05:00
Ryan Oldenburg b0e7a1ae56 tests 2021-05-11 22:40:24 -05:00
Ryan Oldenburg 93a854c7b2 improvement? 2021-05-11 22:40:24 -05:00
Ryan Oldenburg eafd18fa7e more tests 2021-05-11 22:40:24 -05:00