Andy Meneely
30395aee56
save_pdf: add crop marks
...
Should satisfy #123
Needs some testing on printers but the functionality is there.
9 years ago
Andy Meneely
ee2ed28550
text: rewrite embedding to use set_shape_renderer
...
No more arcane unicode magic!
Closes #177
Related to #170 , #171 , #158 , #103 , and #153 too.
9 years ago
Andy Meneely
0501a94bac
test: update regression test for rotated ellipse
9 years ago
Andy Meneely
d2eae64da2
shapes: rect and ellipse get the angle option
...
Closes #162
9 years ago
Andy Meneely
4ec1a33cfd
layouts: support unit conversion in extends
...
fixes bug #173
Also: LayoutParser is now a proper class, as God intended.
9 years ago
Andy Meneely
ee0d232478
text: rewrite how image space is carved
...
Embedded images avoid zero-sized fonts by using non-printable characters instead.
This is for #153 and #103
10 years ago
Andy Meneely
bdcd7d94ad
save_png: update regression tests
10 years ago
Andy Meneely
87fd3b7b6f
samples: update regression test
10 years ago
Andy Meneely
43ab4b0ae8
samples: gistify colors
10 years ago
Andy Meneely
8cd651d5f1
samples: gistifying excel.rb and csv.rb
10 years ago
Andy Meneely
bd5e6c92f6
samples: gistify saves
10 years ago
Andy Meneely
dd32e3bfae
samples: cleanup regression tests
10 years ago
Andy Meneely
795b4e4478
csv: yield to block on each cell
...
Closes #151
Related to #145
10 years ago
Andy Meneely
2329a069d1
save_pdf: flush to file
...
Fixes #150
10 years ago
Andy Meneely
d7943da750
csv: allow all Ruby csv parsing options
...
Closes #149
Generalization on PR #146 by Qgel. Thanks for the contribution!
10 years ago
Andy Meneely
38e3d669c5
tests: show how CSVs can include newlines
...
Sanity check for #145
10 years ago
Andy Meneely
8b0067546f
save_png: add trim and trim_radius options
...
Close #122 .
10 years ago
Andy Meneely
b00cc99dd0
Added a grid shape
...
Close #68
10 years ago
Andy Meneely
d99e840ffd
PNG/SVG: flipping is now supported.
...
Fixes #11
10 years ago
Andy Meneely
8ea553eb95
Updating specs for image cropping
...
Ripped out graphics_images_spec.rb for being annoyingly useless. Too many mock objects!
10 years ago
Andy Meneely
541c8d49ca
Crop PNGs, now with more rounded corners!
...
Contributes to #11
10 years ago
Andy Meneely
7126afbc9c
Warn on conf when an option is not recognized
10 years ago
Andy Meneely
88686fd9ea
Testing exploding quantities on xlsx
10 years ago
Andy Meneely
08381b86f0
Add quantity explosion to xlsx and csv
...
Closes #78
10 years ago
Andy Meneely
c8e6f9803c
xlsx,csv: trim whitespace, yield to optional block
...
Closes #108 and #79
10 years ago
Andy Meneely
4d1661ac0b
Convert hand method to args classes
10 years ago
Andy Meneely
bcc6d355d2
Convert showcase to args classes
10 years ago
Andy Meneely
40ac6d2b6b
Expanding the Working With Text section
...
[skip ci]
11 years ago
Andy Meneely
7de39618fe
Update regression tests for text
11 years ago
Andy Meneely
19767c54c4
Implement stroke_strategy option for all drawing operations
...
Fixes #102
11 years ago
Andy Meneely
e03a97ce7e
Add :scale shortcut to width/height of png and svg
...
Allows scaling while keeping the aspect ratio
Closes #91
11 years ago
Andy Meneely
7c756e468d
Remove dead code
11 years ago
Andy Meneely
8f977f5956
Update text_options.rb sample, and expected output
11 years ago
Andy Meneely
9d475995e8
Pango scaling of "spacing" in text is done once
...
Spacing also defaults to nil, not zero, as before
Fixes #98
11 years ago
Andy Meneely
cddea47ba5
Upgrade Roo to 2.1.x
...
Looks like the main difference is that xlsm is now supported, so I added test for it.
11 years ago
Andy Meneely
f21e9448e1
Warn when text is ellipsized
...
Closes #80
11 years ago
Andy Meneely
e20c644a9a
Implemented new args design for svg and png
...
As part of that implementation, text_embed now supports singleton expansion. Closes #54
11 years ago
Andy Meneely
ff3d057d49
Add a force_id: true example to load_images
11 years ago
Andy Meneely
e43f68d323
Ported text command over to the new args classes
...
* Involved a big rewrite of arg_loader to accomodate nil and false better. Sadly this meant dumping ||= for if-statements. Blech, but works.
* Updates to regression tests are pretty trivial.
* Removed graphics_text_spec because, even though it looks useful, with rake sanity it really isn't.
* Exposed font on deck as well
Cleaned up graphics/text.rb too!
11 years ago
Andy Meneely
cc5c540be8
Updated regression specs
...
Mostly from changing colorify to always converting to a string
New ranges example for the idiom
New text options example for dotted
[skip ci]
11 years ago
Andy Meneely
6aecdbbb4a
Adding custom colors to the draw arg
11 years ago
Andy Meneely
c5e00f1877
Employing the new args refactoring on all shapes
11 years ago
Andy Meneely
12c5cd675b
Added line cap and join settings for rect and curve
...
More forthcoming - these are proof-of-concept
11 years ago
Andy Meneely
6c60f21bb0
Refactored drawing to get fill_n_stroke
...
Contributes to #75
11 years ago
Andy Meneely
3bbc787025
Add polygon method to dsl
...
Testing and documentation too.
Closes #67
11 years ago
Andy Meneely
0853b6a708
Finish regression testing of star
11 years ago
Andy Meneely
a86974d5b8
Regression and sanity testing
11 years ago
Andy Meneely
dab544a53b
Add ellipse method
...
Also experimenting with using stroke_preserve, which in turn may make the other methods less repetitive.
Closes #66
11 years ago
Andy Meneely
ac7769237c
Fix the csv_import.rb sample to function properly
11 years ago
Andy Meneely
71defb9e33
Fix color handling with text outline stroking
...
Needed to set squibcolor prior to translating the coordinate system so that gradients are relative to the card (as is documented). This also means stroking is done AFTER drawing the text, which looks better anyway.
11 years ago