Andy Meneely
f7407d4b6c
tweak to samples
2017-11-04 19:54:49 -04:00
Andy Meneely
9a8994c26e
samples: remove unicode
...
Unfortunately too hard to maintain with ever-changing fonts. I might resurrect this in another form another day
2017-11-04 19:42:42 -04:00
Andy Meneely
aee8884a9e
sprues: better handling of trim args
2017-11-03 23:02:18 -04:00
Andy Meneely
3bf5eeb102
sprues: now with trim and trim_radius!!
...
Fixes #235
2017-11-02 23:58:30 -04:00
Andy Meneely
9ff72b7066
builtin layouts: party 🎉
...
Based on idea from #7
2017-10-13 15:26:25 -04:00
Andy Meneely
498a8224e7
samples: fix to be more consistent
2017-10-06 11:00:14 -04:00
Andy Meneely
2362e189d7
new methods: safe_zone and cut_zone
2017-10-05 23:36:53 -04:00
Damien Salvador
44b899181a
save_pdf: right-to-left support
...
# Conflicts:
# CHANGELOG.md
2017-10-05 20:00:21 -04:00
Andy Meneely
d5bf9062a2
sanity: update sanity test expected images for new font size
2017-10-05 17:02:24 -04:00
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
2017-10-05 16:37:46 -04:00
Andy Meneely
06970b77a6
sprues: polishing up the feature
...
Lots of examples, some better checking, lots of documentation, sanity tests. Lots of little stuff.
2017-10-05 15:48:57 -04:00
Dave Schaefer
52920ab8f0
Card - improve error message when reading invalid svg files
...
Add a test file in samples/images - it's a simple 1x1 pixel white png
saved with a 'svg' extension.
Fix for #228
(cherry picked from commit 32fad2460753a72cc2b0100d0a132512b6eeed81)
# Conflicts:
# lib/squib/graphics/image.rb
2017-10-05 10:33:00 -04:00
Andy Meneely
17ecf87385
docs: documenting and sampling sprues
2017-08-02 17:11:52 -04:00
Andy Meneely
07f3c3c14a
sprues: samples for a custom sprue
2017-07-21 15:10:24 -04:00
Andy Meneely
0d076b1e85
sprues: rename "template" to "sprue"
...
Also:
* Move stuff around to a builtin/ folder
* Separate out classes to follow my one-class-per-file convention
* Samples are renamed to the underscore convention
I just like the word "sprue", and it's more descriptive than our original choice of "template". If I had to start Squib all over again, I would probably name it "Sprue" :P
2017-07-17 14:48:43 -04:00
Seh Hui, Leong
25bf0d7a67
Squash @felixleong's pdf-template feature.
...
I will be making revisions based on this, but this is all of his hard work.
Thank you!!!
Conflicts:
squib.gemspec
2017-07-17 11:59:00 -04:00
Adam Blinkinsop
874456e87c
Create sample.yaml
...
To finish up the _yaml.rb sample.
2017-03-20 08:53:49 -04:00
Adam Blinkinsop
04cf7d2c9c
Create _yaml.rb
...
Next up, create sample.yaml
2017-03-20 08:53:49 -04:00
Andy Meneely
824a28c87d
Document and test rtl option
2017-03-11 16:39:19 -05:00
Andy Meneely
a55300f844
more tests for circle arc
...
Also document it in the CHANGELOG.
2017-03-10 22:48:22 -05:00
Andy Meneely
a1cbca68ed
samples: fix gitignore issue
2017-01-04 15:37:51 -05:00
Andy Meneely
f4a9a668c2
docs: cleanup and warning fixes
2017-01-04 15:31:29 -05:00
Andy Meneely
1cdc9c0d71
samples: reorganize for better sanity
...
Converted to a more consistent organization of each folder for groups of samples
Contributes to #118
2017-01-04 15:16:11 -05:00
Andy Meneely
db0bf38ec0
save_pdf: full-length crop marks
...
Implements #184
[skip ci]
2016-12-19 17:02:56 -05:00
Andy Meneely
e53e47dde7
build groups: add convenience methods
2016-11-24 14:00:23 -05:00
Andy Meneely
9aac069c76
docs+samples: documenting a project
2016-11-17 21:14:06 -05:00
Andy Meneely
6807e0bce0
docs: begin writeup of guard
...
While writing this I realized that this really should be part of part_3_workflows.rst, so it'll eventually make it into there. But it's recorded in its unpolished form for now.
2016-11-16 15:04:42 -05:00
Andy Meneely
c9440ec57c
showcase: use correct width&height vars
...
Fixes #179
2016-11-15 20:28:22 -05:00
Andy Meneely
0dcd2a06bc
docs: document units better
2016-11-15 15:25:55 -05:00
Andy Meneely
7c66644955
samples: better units example
2016-11-15 15:22:39 -05:00
Andy Meneely
2835bc4ee2
docs: include samples ranges and colors
2016-11-15 14:35:25 -05:00
Andy Meneely
ae246272ef
samples: tweak the .gitignore
2016-11-14 18:15:41 -05:00
Andy Meneely
4bde295ace
samples: un-submoduling
2016-11-13 18:46:15 -05:00
Andy Meneely
f52446d71b
samples: un-submoduling
2016-11-13 18:43:49 -05:00
Andy Meneely
47292ad0ea
samples: un-submodule saves gist
...
The saves gist is now no longer maintained
2016-11-13 17:21:05 -05:00
Andy Meneely
30395aee56
save_pdf: add crop marks
...
Should satisfy #123
Needs some testing on printers but the functionality is there.
2016-11-01 12:12:03 -04:00
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.
2016-09-15 15:19:56 -04:00
Andy Meneely
d2eae64da2
shapes: rect and ellipse get the angle option
...
Closes #162
2016-09-09 00:10:43 -04:00
Andy Meneely
c8e1daf79d
docs: provide previews of built-in layouts
...
Closes #163
2016-09-08 23:19:35 -04:00
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
2016-04-25 23:36:10 -04:00
Andy Meneely
013a1532f2
Fixes #152
2016-04-25 23:01:18 -04:00
Andy Meneely
305fd55da0
Moving portrait-landscape over, but discovered #152 in the process 😢
2016-04-12 00:23:21 -04:00
Andy Meneely
43ab4b0ae8
samples: gistify colors
2016-04-12 00:04:53 -04:00
Andy Meneely
8cd651d5f1
samples: gistifying excel.rb and csv.rb
2016-04-11 22:30:32 -04:00
Andy Meneely
bd5e6c92f6
samples: gistify saves
2016-04-11 21:33:15 -04:00
Andy Meneely
e3bd7c9503
samples: gistify saves
2016-04-11 21:20:42 -04:00
Andy Meneely
dd32e3bfae
samples: cleanup regression tests
2016-04-11 21:13:34 -04:00
Andy Meneely
c37a1a79bf
samples: gistify shapes
2016-04-11 20:59:28 -04:00
Andy Meneely
fd01e8c4b3
samples: remove boring sample
2016-04-11 20:51:56 -04:00
Andy Meneely
40ac4651f1
samples: documenting a hack related to #136
2016-04-11 20:51:11 -04:00
Andy Meneely
43d44aa944
samples: gists --> backend
2016-04-11 20:42:48 -04:00
Andy Meneely
9418aee3de
samples: start all-sample gist
2016-04-11 20:26:56 -04:00
Andy Meneely
e55c450d16
build_groups: rename to build instead of group
2016-03-20 22:52:04 -04:00
Andy Meneely
dad2ab5ba9
👮 newline at end of file
2016-03-17 23:51:37 -04:00
Andy Meneely
0cbcc0c683
👮 string literals should be single-quoted
2016-03-17 23:49:04 -04:00
Andy Meneely
65a0fdfd47
👮 leading space in comments
2016-03-17 23:47:32 -04:00
Andy Meneely
310030eee4
👮 spaces around operators
2016-03-17 23:40:41 -04:00
Andy Meneely
5e09e0f1e1
👮 fix spacing inside hashes
2016-03-17 23:38:48 -04:00
Andy Meneely
137e3f91cd
👮 fix extra spaces
2016-03-17 23:27:07 -04:00
Andy Meneely
8a9552126c
👮 fix space after comma
2016-03-17 23:22:16 -04:00
Andy Meneely
955d64a01f
feature: add use_layout method to load layouts at runtime
...
Closes #141
2016-03-16 17:05:07 -04:00
Andy Meneely
a90755096a
samples: update expected image
2016-03-15 23:24:50 -04:00
Andy Meneely
ebc8851ae8
samples: demonstrate font strings better
...
Fixes #138
2016-03-15 23:21:54 -04:00
Andy Meneely
864226dff3
samples: fix ignore on built files
2016-03-15 23:09:38 -04:00
Andy Meneely
9cdd3c4d2f
text: fix valign when we only have an embed key
...
Fixes #134
2016-03-15 23:07:23 -04:00
Andy Meneely
9eb348236d
samples: ignore pre-built files
2016-03-15 18:26:24 -04:00
Andy Meneely
f408b7a88f
csv: data option
...
Close #137
2016-03-15 17:45:39 -04:00
Andy Meneely
80cd0b924f
samples: silence the build_group sample
2016-03-15 17:40:08 -04:00
Andy Meneely
61a3d3446b
feature: build groups
...
See docs and changelog for more details on how these work.
2016-03-13 00:38:13 -05:00
Andy Meneely
aae1c0a4c6
samples/text: Rebuild on home machine
2016-01-10 20:31:13 -05:00
Andy Meneely
cf736db067
Maintain coordinate system when using gradients
...
Sample: document this better
spec: test this and update past tests
Fixes #127
2016-01-10 20:30:30 -05:00
Andy Meneely
4c0325aba1
samples/text: update output
2015-12-21 10:56:05 -05:00
Andy Meneely
b560643332
Add submodule gist: _autoscale_font.rb
2015-12-13 21:11:22 -05:00
Andy Meneely
8b0067546f
save_png: add trim and trim_radius options
...
Close #122 .
2015-12-11 23:09:04 -05:00
Andy Meneely
b05e1243f1
samples: use the latest _text.rb sample
2015-12-11 21:22:32 -05:00
Andy Meneely
960ba03137
Samples: add submodule samples/text
2015-11-30 08:50:44 -05:00
Andy Meneely
dc85439350
Samples: new gist for text
2015-11-30 08:50:44 -05:00
Andy Meneely
52f3def03b
Samples: _images output
2015-11-24 00:37:44 -05:00
Andy Meneely
645c9ff061
Samples: new images gist
2015-11-23 23:39:35 -05:00
Andy Meneely
7759eed6f3
Fix expected images after rebuild
2015-11-23 22:55:04 -05:00
Andy Meneely
16015a61a7
Rename sample/intro files to be more gist-friendly
2015-11-23 22:52:06 -05:00
Andy Meneely
f33a74cada
Samples: intro gist
...
Also make the sample regression spec more subdirectory friendly
2015-11-23 22:44:44 -05:00
Andy Meneely
710d28f5a8
Add warning to suppress png scaling warning
...
Close #120
2015-11-02 21:07:14 -05:00
Andy Meneely
b00cc99dd0
Added a grid shape
...
Close #68
2015-10-26 23:59:51 -04:00
Andy Meneely
d99e840ffd
PNG/SVG: flipping is now supported.
...
Fixes #11
2015-10-26 23:31:16 -04:00
Andy Meneely
169f9e4ac4
SVGs: now with more cropping power!
...
Contributes to #11
2015-10-26 22:47:42 -04:00
Andy Meneely
541c8d49ca
Crop PNGs, now with more rounded corners!
...
Contributes to #11
2015-10-26 22:35:56 -04:00
Andy Meneely
08381b86f0
Add quantity explosion to xlsx and csv
...
Closes #78
2015-10-20 18:23:25 -04:00
Andy Meneely
c8e6f9803c
xlsx,csv: trim whitespace, yield to optional block
...
Closes #108 and #79
2015-10-13 10:37:49 -04:00
Andy Meneely
40ac6d2b6b
Expanding the Working With Text section
...
[skip ci]
2015-07-29 12:20:35 -04:00
Andy Meneely
19767c54c4
Implement stroke_strategy option for all drawing operations
...
Fixes #102
2015-07-27 22:55:49 -04:00
Andy Meneely
e03a97ce7e
Add :scale shortcut to width/height of png and svg
...
Allows scaling while keeping the aspect ratio
Closes #91
2015-07-27 13:25:12 -04:00
Andy Meneely
8f977f5956
Update text_options.rb sample, and expected output
2015-07-26 23:25:43 -04:00
Andy Meneely
9d475995e8
Pango scaling of "spacing" in text is done once
...
Spacing also defaults to nil, not zero, as before
Fixes #98
2015-07-26 22:26:42 -04:00
Andy Meneely
d899795f2b
Remove debug line
2015-07-26 21:50:54 -04:00
Andy Meneely
003a26ae68
Two new built-in layouts: fantasy.yml and economy.yml
...
Contributes to #97
2015-07-26 00:59:12 -04:00
Andy Meneely
92d866548c
Cleanup of img_dir and testing of input_file.rb
2015-07-21 21:04:23 -04:00
Andy Meneely
e20c644a9a
Implemented new args design for svg and png
...
As part of that implementation, text_embed now supports singleton expansion. Closes #54
2015-07-21 20:27:15 -04:00
Andy Meneely
ff3d057d49
Add a force_id: true example to load_images
2015-07-21 20:17:08 -04:00
Andy Meneely
2dd3fc3365
Documented a range idiom
...
In reaction to #90
[skip ci]
2015-07-03 16:01:44 -04:00