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
e18084d963
deck: flush surface upon exit
...
Fixes bug #180
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
d2eae64da2
shapes: rect and ellipse get the angle option
...
Closes #162
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
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
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
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
6c60f21bb0
Refactored drawing to get fill_n_stroke
...
Contributes to #75
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
0185f2dfcf
Fixing up regression tests for release
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
beb46a9e1c
Place embedded icons based on byte offset
...
Fixes #57
11 years ago
Andy Meneely
211e7c13b3
Fix typography replacements with embeds
...
Enable embedded icons tests again
11 years ago
Andy Meneely
a5d1cb60f2
Complete overhaul of smart quotes to "typographer"
...
See README for details
Contributes to #50
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
784a0dcb90
Updating the regression test
11 years ago
Andy Meneely
574b76873e
Updating regression tests, renamed bezier curve params
11 years ago