Andy Meneely
b560643332
Add submodule gist: _autoscale_font.rb
10 years ago
Andy Meneely
8b0067546f
save_png: add trim and trim_radius options
...
Close #122 .
10 years ago
Andy Meneely
b05e1243f1
samples: use the latest _text.rb sample
10 years ago
Andy Meneely
960ba03137
Samples: add submodule samples/text
10 years ago
Andy Meneely
dc85439350
Samples: new gist for text
10 years ago
Andy Meneely
52f3def03b
Samples: _images output
10 years ago
Andy Meneely
645c9ff061
Samples: new images gist
10 years ago
Andy Meneely
7759eed6f3
Fix expected images after rebuild
10 years ago
Andy Meneely
16015a61a7
Rename sample/intro files to be more gist-friendly
10 years ago
Andy Meneely
f33a74cada
Samples: intro gist
...
Also make the sample regression spec more subdirectory friendly
10 years ago
Andy Meneely
710d28f5a8
Add warning to suppress png scaling warning
...
Close #120
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
169f9e4ac4
SVGs: now with more cropping power!
...
Contributes to #11
10 years ago
Andy Meneely
541c8d49ca
Crop PNGs, now with more rounded corners!
...
Contributes to #11
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
40ac6d2b6b
Expanding the Working With Text section
...
[skip ci]
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
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
d899795f2b
Remove debug line
11 years ago
Andy Meneely
003a26ae68
Two new built-in layouts: fantasy.yml and economy.yml
...
Contributes to #97
11 years ago
Andy Meneely
92d866548c
Cleanup of img_dir and testing of input_file.rb
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
2dd3fc3365
Documented a range idiom
...
In reaction to #90
[skip ci]
11 years ago
Andy Meneely
79814a43ea
Start migrating text over to new args system
...
Almost there. It's working fine with the sample, but next it's time to write validators to get all this arg logic out of text.rb and make it just about drawing text.
Yes, unit tests aren't updated yet.
[skip ci]
11 years ago
Andy Meneely
78ee185fde
Update sample to use cleaner syntax
11 years ago
Andy Meneely
8a7841d64f
Add dash option to drawing operations
...
Currently only impacts rect, but it will impact others with the new design shortly
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
4b63716dfc
Star feature works, testing is still pending
11 years ago
Andy Meneely
14e04a89c7
Started the star feature
...
Contributes to #72
[skip ci]
11 years ago
Andy Meneely
a86974d5b8
Regression and sanity testing
11 years ago
Andy Meneely
31b583d134
Implementation of hand
11 years ago
Andy Meneely
824e26d2c2
Hacked together a basic example to work from
11 years ago
Andy Meneely
f0f9b7680d
Starting a basic hand command
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
Andy Meneely
e974880e03
Add 'data' field to svg method for loading XML directly
...
Implements #65
11 years ago
Andy Meneely
7c69cad506
Text: outline a string with a color or gradient
...
Fill color is still the same with 'color' (i.e. can be overridden by markup still), but now there's a stroke_width and a stroke_color option that, when stroke_width > 0, will draw an outline below the text. Since this isn't a Pango feature, we can't do markup for outlines. (Maybe make that a feature request to Pango if you want it.)
Implements #51
11 years ago
Andy Meneely
923f346575
Redesigning how config files are read, stored, and delegated
...
With the new design, we take the load off of deck.rb and simply delegate methods over to the new conf.rb. This means that things like `antialias` is now available as a method to the normal Squib scripts for easy checking (without being mutable). Squib::Conf also handles parsing and defaults, and any potential input validation we need to do in the future.
Typographer is also set up now as a deck-wide configuration. This may change in the future if we want typography customization per-command, although that seems like a strange use case.
Lots of tests for this one, and lots of cross-cutting concerns in this commit.
This commit also includes some tweaks to rspec tests, including tagging of slow tests for a `rake spec_fastonly`
Conflicts:
spec/samples/samples_regression_spec.rb
spec/spec_helper.rb
squib.sublime-project
11 years ago
Andy Meneely
838b1fd085
Removing scratch code
11 years ago
Andy Meneely
4a0c5e78b6
Fix PDF scaling issue
...
Properly compute the size of the PDF based on DPI and PDF-specific resolution (i.e. 72dpi).
Closes #62
11 years ago
Andy Meneely
0616512bd6
Set font antialiasing from global antialiasing
...
This is a workaround until we get a proper solution in #59
11 years ago
Andy Meneely
2d9ba40486
Making this work for now
...
Related to #56
11 years ago