Seh Hui, Leong
f800c131ff
Respect DPI settings in text, add pt unit
...
This has the compatibility impact that all font sizes should be divided by 3 to maintain their same sizes.
Based on PR #225 . Thanks @felixleong!!
Conflicts:
bin/squib
lib/squib/graphics/text.rb
8 years ago
Andy Meneely
d94a3e676b
Fix for latest dep changes
9 years ago
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
4ea30c63e2
units: support mm
...
Closes #161
10 years ago
Andy Meneely
dad2ab5ba9
👮 newline at end of file
10 years ago
Andy Meneely
0cbcc0c683
👮 string literals should be single-quoted
10 years ago
Andy Meneely
65a0fdfd47
👮 leading space in comments
10 years ago
Andy Meneely
0f5b7d0f8e
👮 space inside parens
10 years ago
Andy Meneely
5e09e0f1e1
👮 fix spacing inside hashes
10 years ago
Andy Meneely
137e3f91cd
👮 fix extra spaces
10 years ago
Andy Meneely
cec44f1c57
Shamelessly poach the last few coverage lines.
10 years ago
Andy Meneely
541c8d49ca
Crop PNGs, now with more rounded corners!
...
Contributes to #11
10 years ago
Andy Meneely
47b5f569a4
Rip out old constants from pre args classes
10 years ago
Andy Meneely
e8d7480a63
Range option shouldn't fail on []
...
Fixes #107
10 years ago
Andy Meneely
82a2538180
Removing dependency on ill-fated input_helpers.rb
10 years ago
Andy Meneely
3f2b057466
Convert save_sheet and save_pdf to args classes
10 years ago
Andy Meneely
bcc6d355d2
Convert showcase to args classes
10 years ago
Andy Meneely
f8a18cdbce
Finished porting of save_png over to args classes
10 years ago
Andy Meneely
4aee48dada
Working on save args
10 years ago
Andy Meneely
354a97f100
Add validation to text embed key
10 years ago
Andy Meneely
19767c54c4
Implement stroke_strategy option for all drawing operations
...
Fixes #102
11 years ago
Andy Meneely
5bbde3a259
Fix compatibility with rspec 3.3
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
54185fe9eb
Warn on non-existing layout
...
Fix #99 and refactor args_loader a bit
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
25b13fd592
Better ability to handle per-dsl-method defaults
11 years ago
Andy Meneely
08d0ac2b60
Starting paint args class - not integrated yet.
...
Draw args also now requires custom_colors from Deck. (Can't trust caller to override the default.)
11 years ago
Andy Meneely
37a7210751
New spec for validating line caps
...
Because I'm obsessed with code coverage.
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
6aecdbbb4a
Adding custom colors to the draw arg
11 years ago
Andy Meneely
b5903293d7
Layouts use strings as keys, so that must be realistic
11 years ago
Andy Meneely
c5e00f1877
Employing the new args refactoring on all shapes
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
c1e410fe72
First foray into args class refactoring: rect
...
So far, I really like this approach. It allows us to push validation logic out of the Card class and into its own set of classes that can be more easily tested.
Fixes #75 , but we've got a lot more work to do in getting this full scale
11 years ago
Andy Meneely
063d5156d6
Allow configuration of typographical replacements, e.g. smart quotes
...
If you're living in a non-UTF-8 character set, then you can configure what quotes are smartly changed.
If my regexes are messing things up, you can also turn this off with smart_quotes: false
Also updated docs.
This closes #50
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
674397c005
Smart quotes!
...
Closes #50
11 years ago
Andy Meneely
1896689614
Refactoring out the unit conversion to its own place
11 years ago