Andy Meneely
10e63c845f
Rollup of v0.13.x fixes
...
See v0.13-fixes branch for individual fixes
Conflicts:
CHANGELOG.md
lib/squib/version.rb
squib.gemspec
9 years ago
Andy Meneely
1cdc9c0d71
samples: reorganize for better sanity
...
Converted to a more consistent organization of each folder for groups of samples
Contributes to #118
9 years ago
Andy Meneely
c267e1dda7
spec: rip out flaky mock object test
9 years ago
Andy Meneely
e18084d963
deck: flush surface upon exit
...
Fixes bug #180
9 years ago
Andy Meneely
2329a069d1
save_pdf: flush to file
...
Fixes #150
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
7de39618fe
Update regression tests for text
11 years ago
Andy Meneely
7c756e468d
Remove dead code
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
f21e9448e1
Warn when text is ellipsized
...
Closes #80
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
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
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
035cd6259e
Fix global hinting logic
...
Fixes #63
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
19cad2cdb8
Using a platform-specific fix for zero-width letters on embedding icons
...
Contributes to #30 and our zero-width letter woes.
11 years ago
Andy Meneely
91ba48f80b
Explicitly saving and restoring the matrix
11 years ago
Andy Meneely
c9f9235be7
Attempting travis fix by saving and restoring the matrix
11 years ago
Andy Meneely
574b76873e
Updating regression tests, renamed bezier curve params
11 years ago
Andy Meneely
3a57380959
Updated and corrected regression tests
11 years ago
Andy Meneely
2caacaeece
Fixing compatibility with linux os
...
Thank you, Travis! Turns out the cairo gem isn't perfectly the same in Linux...
11 years ago
Andy Meneely
f49bff2388
Add antialias config option
...
Closes #41
11 years ago
Andy Meneely
612c042d52
SVG backend: PDF implemented, tests passing
...
Wrapping up the svg backend work
Still some bugs to stamp out, but this is getting close to release ready.
11 years ago
Andy Meneely
8876b27473
Merging in svg back end work. All but save_doc is done.
11 years ago
Andy Meneely
578c3cb6a0
Upgrading rspec, fixing mock objects bug
11 years ago
Andy Meneely
4ecbaa4e31
Implementing format strings for filename counts on multisaves
11 years ago
Andy Meneely
bfbf7a7eba
Added support for linear and radial gradients
...
Closes #29
11 years ago
Andy Meneely
0330937b99
More hex scrubbing for OS X
11 years ago
Andy Meneely
ba54d5c2fa
Fix unit test for stubbing out ImageSurface
11 years ago
Andy Meneely
8050501b15
Sample logs don't need headers anymore
11 years ago
Andy Meneely
550bb80d29
Test stability: scrubbing pango font description differently
11 years ago
Andy Meneely
99ac612b8a
Regression testing: cairo mock object stores graphics calls
...
So the idea behind this is maintain an "expected value" for the sample runs. We store the graphics calls and their arguments as a readable text file. Any change in the samples will break this, but the idea is to make sure this doesn't get broken unexpectedly.
Rearranged the data files in specs
11 years ago