Commit graph

331 commits

Author SHA1 Message Date
Steven Edwards
a78b24d408 Modify font loading functions to use fontNamer. 2015-08-09 12:47:30 -04:00
Steven Edwards
be5a5617ef Add SetFontNamer func.
SetFontNamer changs draw2d's default font naming convention.  Accepts a
func of type FontFileNamer, which accepts a FontData and returns the
filename as a string.
2015-08-09 12:44:50 -04:00
Steven Edwards
d0cd538261 Add FontFileNamer type, set default fontNamer. 2015-08-09 12:43:37 -04:00
Stani
994e11cd6d Update draw2d.go 2015-07-14 13:53:27 +02:00
Stani
c9398530eb fix typo of draw2dgl in docstring of draw2d.go 2015-07-14 13:04:10 +02:00
Stani
27ca8d66a7 Merge pull request #69 from stanim/master
add transparency support to pdf backend
2015-07-14 12:57:39 +02:00
Stani
64dc974458 geometry: make line continuous in arcs and replace "coucou" with "HugHug" to test better ascent, descent and capheight of font 2015-07-13 00:37:15 +02:00
Stani
b1e17999b6 fix gopher drawing in gopher2 2015-07-13 00:33:03 +02:00
Stani
fcd849f2e4 support different transparencies for fillstroke 2015-07-13 00:31:57 +02:00
Stani
3450d01825 Merge pull request #68 from stanim/fixtext
fix horizontal alignment of text
2015-07-12 21:18:49 +02:00
Stani
6b72c6dec7 fix horizontal alignment of text 2015-07-12 21:17:39 +02:00
Stani
bc823442ba Merge pull request #67 from stanim/text
Fix text alignment
2015-07-12 20:50:14 +02:00
Stani
1f0b304e2e fix string alignment with new gofpdf api 2015-07-12 20:48:52 +02:00
Stani
bbb2a4b372 add extra lines to check baseline 2015-07-12 20:47:35 +02:00
Stani
88ee58870c Merge pull request #66 from stanim/filename
Use filenames in examples of README
2015-07-12 03:07:01 +02:00
Stani
9bd0ecf14e use filenames in examples README 2015-07-12 03:04:30 +02:00
Stani
316bf1b039 Add README to draw2dpdf 2015-07-12 03:03:27 +02:00
Stani
339f012445 Merge pull request #65 from stanim/master
Fixes for text in draw2dpdf
2015-07-12 02:43:32 +02:00
Stani
b4e9f9c266 fix SetFontData for pdf 2015-07-12 02:36:44 +02:00
Stani
da9799659c fix colors for stroke font in helloworld 2015-07-12 02:34:34 +02:00
Stani
5d7c08c52f Merge pull request #64 from stanim/pdf
update readme
2015-07-11 22:54:08 +02:00
Stani
6e58827921 update readme 2015-07-11 22:53:24 +02:00
Stani
ce7f6b422e Update README.md 2015-07-11 22:07:20 +02:00
Stani
8d08b5e816 Update README.md 2015-07-11 19:42:10 +02:00
Stani
a819f6b102 Merge pull request #63 from stanim/samples
Add extra samples, fix arc angle and implement SetLineDash for pdf
2015-07-11 19:36:09 +02:00
Stani
2099d15a26 add readme to output folder 2015-07-11 19:34:48 +02:00
Stani
790eaf6842 add image to README 2015-07-11 19:31:36 +02:00
Stani
d3a9977ae5 Added Stani to authors 2015-07-11 19:21:23 +02:00
Stani
a5918dc963 only regenerate pdf if it has been deleted 2015-07-11 19:19:03 +02:00
Stani
99aee45045 golint fixes 2015-07-11 19:17:24 +02:00
Stani
16a86e7588 remove resource/result 2015-07-11 19:06:10 +02:00
Stani
224b85d99a include geometry sample to show on the frontpage 2015-07-11 19:04:02 +02:00
Stani
99f1fece69 implement SetLineDash for draw2dpdf 2015-07-11 18:58:28 +02:00
Stani
a43544c31d add geometry and gopher2 samples 2015-07-11 18:44:36 +02:00
Stani
6e1b43c32f fix typo 2015-07-11 18:41:38 +02:00
Stani
743e113349 fix arc angle bug 2015-07-11 18:39:51 +02:00
Stani
6a06be3c7c Merge pull request #62 from stanim/fix
Fix pdf bugs and remove gc.Current.Path.Clear()
2015-07-11 01:25:04 +02:00
Stani
08a6c87a0b replace gc.Current.Path.Clear() with gc.Current.Path = draw2d.NewPathStorage(); fixes #61 2015-07-11 01:22:50 +02:00
Stani
781a0defe5 previous fix makes Save and Restore for line caps join unnecessary 2015-07-11 01:13:39 +02:00
Stani
a826fc7216 fix path drawing 2015-07-11 01:12:09 +02:00
Stani
bb523db1f4 Merge pull request #60 from stanim/coverage
get 100% test coverage for draw2dpdf
2015-07-10 21:57:42 +02:00
Stani
f879ad32a7 get 100% test coverage for draw2dpdf 2015-07-10 21:50:07 +02:00
Stani
fbb061ceef Merge pull request #59 from stanim/stani
golint fixes and redirect curve tests results to output.curve folder
2015-07-10 17:23:04 +02:00
Stani
d00980730f redirect curve tests results to output.curve folder 2015-07-10 17:20:23 +02:00
Stani
55b5c931cf golint fixes 2015-07-10 16:58:36 +02:00
Stani
fe06e5046c fix license position in README 2015-07-10 16:57:21 +02:00
Stani
1da2ef6b1e Merge pull request #58 from stanim/raster
redirect results of raster_test to output
2015-07-10 16:21:05 +02:00
Stani
572711ae7e redirect results of raster_test to output 2015-07-10 16:18:49 +02:00
Stani
d4e1581526 Merge pull request #57 from stanim/stani
Fix go vet issues
2015-07-10 16:01:04 +02:00
Stani
bb793d237f go vet fixes 2015-07-10 15:24:23 +02:00