Commit graph

452 commits

Author SHA1 Message Date
Drahoslav
215a761ccb Use transformations in svg context
also few minor changes in to svg transformation functions
2017-12-26 14:25:28 +01:00
Drahoslav
6d31bfac59 Use fill-rule attribute in svg context 2017-12-24 16:05:15 +01:00
Drahoslav
d297a025cd Do minor refactoring of svg context 2017-12-24 15:31:41 +01:00
Drahoslav
484fe1caef Use dasharray and dashoffset attributes in svg context 2017-12-24 14:46:58 +01:00
Drahoslav
0b3b26d85f Gofmt 2017-12-24 13:45:56 +01:00
Drahoslav
41d8a21ba2 Improve toSvgPathDesc
some toArcs paths still does not work correctly
2017-12-24 13:27:44 +01:00
Drahoslav
6c0a15c624 Use line-{width,cap,join} attributes in svg context 2017-12-24 12:34:36 +01:00
Drahoslav
ca83e24222 Basic path implementation 2017-12-22 22:40:56 +01:00
Drahoslav
bd7567e331 Add samples test - no outputs yet 2017-12-22 09:59:31 +01:00
Drahoslav
cdf301b7be Use encoding/xml to encode svg 2017-12-21 18:18:29 +01:00
Drahoslav
295a8365b3 Remove svgo dependency 2017-12-21 15:52:26 +01:00
Drahoslav
96883adea4 Initial commit for svg context
Satisfy draw2dc.GrapghicContext using empty methods
2017-12-16 19:26:34 +01:00
llgcode
c41aa97d30 fix #136 2017-12-11 17:32:57 +01:00
llgcode
647da9ceaa fix draw2dgl compil' error 2017-12-11 11:02:06 +01:00
llgcode
f3e35015aa synchronize global font cache fixes #131 2017-12-04 18:06:33 +01:00
llgcode
b81f74eb39 Refactor Api using an interface 2017-12-04 16:49:08 +01:00
llgcode
a5f7ac8ebe fix #131 2017-12-04 16:29:40 +01:00
llgcode
8167230c09 go fmt 2017-12-04 09:46:40 +01:00
llgcode
3e4c36c4c9
Merge pull request #126 from gerald1248/sync
test for concurrent text drawing
2017-12-04 09:43:19 +01:00
llgcode
4cdcb11e52 run all tests 2017-11-28 11:12:29 +01:00
llgcode
e4816c5375 fix issue 135
SubdivideQuad and TraceQuad index out of range errors
2017-11-28 10:52:49 +01:00
llgcode
dd69e0c822 Test curve range 2017-10-11 10:25:10 +02:00
llgcode
dcbfbe505d Merge pull request #134 from AndreKR/convert-lineto-to-moveto
Convert LineTo to MoveTo for the first point of a path
2017-05-13 11:26:31 +02:00
André Hänsel
1f71aa3f15 Convert LineTo to MoveTo for the first point of a path
Same for QuadCurveTo and CubicCurveTo.

Closes #133
2017-04-25 07:59:14 +02:00
gerald1248
0cf6b8d61f fixed typo 2017-01-06 22:24:37 +01:00
gerald1248
7c57ea38bb removed all trickery, left only plain draw2d calls 2017-01-06 22:22:34 +01:00
gerald1248
eca7b76ebc fmt 2016-12-13 22:23:50 +01:00
gerald1248
dfbef878aa added test for concurrent text drawing 2016-12-13 22:22:19 +01:00
llgcode
1286d3b203 Merge pull request #120 from redstarcoder/kerning_fix
Factor in kerning when using cached glyphs. fix #119
2016-11-04 09:10:29 +01:00
redstarcoder
c12070824c Factor in kerning when using cached glyphs 2016-10-30 12:41:31 -04:00
llgcode
0d961cd299 Merge pull request #118 from redstarcoder/text_cache_upstream
Seamless Glyph Cache
2016-10-26 10:35:50 +02:00
redstarcoder
7cc6abeee3 Made FetchGlyph and Glyph public, made FillGlyph and StrokeGlyph methods of Glyph, made Glyph.Path private 2016-10-25 21:24:40 -04:00
llgcode
401ee667f2 Merge pull request #113 from redstarcoder/pathbuilder_copypath
Add GetPath to the GraphicContext interface.
2016-10-24 10:08:26 +02:00
redstarcoder
c2920005d6 Moved cache code to draw2dbase 2016-10-22 22:50:11 -04:00
redstarcoder
c2851a6eb6 Improved speed via new gc.GetFontName method 2016-10-22 22:36:52 -04:00
redstarcoder
3a5a1d8830 Implement seamless glyph cache 2016-10-22 22:31:55 -04:00
redstarcoder
b9005c988d Fixed comment 2016-10-19 15:01:45 -04:00
redstarcoder
4a3322e29e CopyPath -> GetPath. Also return Path instead of *Path. 2016-10-19 14:53:36 -04:00
redstarcoder
8380dd9458 Added CopyPath to the GraphicContext interface. 2016-10-17 19:36:31 -04:00
llgcode
51ba099819 fix comment 2016-10-17 10:46:10 +02:00
llgcode
a6ceba03c8 Merge pull request #112 from redstarcoder/draw2dgl_fonts
Draw2dgl Font Support
2016-10-16 20:47:51 +02:00
redstarcoder
475a830567 Cleaned up extra FIXMEs 2016-10-15 16:15:10 -04:00
redstarcoder
105a963210 Copied font functions from draw2dimg to draw2dgl
cursor -> width for certain functions for clarity
Some panics added, some TODOs added
2016-10-15 16:15:10 -04:00
llgcode
13548be874 Merge pull request #106 from kortschak/fix-font-cache
Fix unnecessary filesystem access
2016-07-12 10:12:54 +02:00
kortschak
e0e534f3a5 Fix unnecessary filesystem access
Fixes #105.
2016-07-12 16:24:44 +09:30
llgcode
155ff5c755 Merge pull request #94 from achille-roussel/master
draw2d.FontCache
2016-07-08 10:26:28 +02:00
Laurent Le Goff
3f01cfe277 use parameter op fix #103 2016-06-27 21:46:37 +02:00
llgcode
5e675a3055 Merge pull request #102 from zstyblik/fix-typos
Fix typos and add more comments/documentation
2016-04-28 20:44:47 +02:00
Zdenek Styblik
3bb234e85b Fix typos and add more comments/documentation
Commit fixes couple typos and adds more documentation to
GraphicContext interface in `gc.go`.

Fixes #101
2016-04-27 15:25:21 +02:00
llgcode
0545b30698 Fix #98: Alpha spec has changed
need to update package
2016-02-19 11:05:01 +01:00