Andy Meneely
0d4c8b5de0
clean out some out of date sanity tests
2020-10-03 01:33:54 -04:00
Andy Meneely
ca96a0e857
Merge branch 'dev' into args-refactor-forrealsies
2020-10-02 09:06:55 -04:00
Andy Meneely
2f08200403
cleanup test
2020-09-29 11:41:27 -04:00
Andy Meneely
272892d358
text method migrated!
2020-05-16 20:00:45 -04:00
Andy Meneely
9ef4afc2e6
converted the rest!
2020-03-20 23:07:14 -04:00
Andy Meneely
76ef45cfa4
documentation specs, beginning cleaner conversion
2020-03-13 10:38:34 -04:00
Andy Meneely
c473e07c2e
don't need this anymore
2020-03-11 17:15:55 -04:00
Andy Meneely
871674c909
built a nifty, useful error message thingy
2020-03-09 09:52:22 -04:00
Andy Meneely
518c763131
Rewritten autoscale sample
2019-10-17 12:04:46 -04:00
Andy Meneely
d00b881913
don't need this
2019-10-17 12:01:02 -04:00
Mirko K
6d57b3e8c1
Feat/font autoscale ( #288 )
...
* PoC font autosize feature
* Take enumerables or 'auto' keyword for autoscaling
* Allo enumerables of font_size per card, where the largest font size that does not ellipsize is chosen
* Use ellipsize: :autoscale keyword to determine font autosizing
* Use binary search to find the correct font size
* Consider new ellipsize option in testcase
* Document ellipsize: :autoscale option
* Add ellipsize: :autoscale sample to text sample
* Fix double multiplication with Pango::SCALE
* Scale embedded images with text when autoscaling
* Remove stray semicolon
* Return dummy value for FontDescription.size in mock_cairo
* Update regression test data for autoscale feature.
* Add ellipsize: :autoscale example to existing font_autoscale sample
* Add missing :autoscale to list of options in documentation
2019-10-17 11:29:14 -04:00
Andy Meneely
4db85cb134
update sanity expectation
2019-08-06 12:47:00 -04:00
Andy Meneely
cb66d7c31d
Flip options for sprues ( #251 ) ( #277 )
...
* Flipping works, now just need new argument
* Finishing up
* New test data
2019-06-07 15:23:15 -04:00
Andy Meneely
a40c4d7dc4
Cleaner handling of SVG ID
2019-05-29 14:20:03 -04:00
Karneades and Andy Meneely
d96cf71457
Add sample for color switch in colors docs ( #274 )
...
One of the things I used for a current project was a switch to change the color schemes quickly. I added the snippet in [Specifying Colors & Gradients](https://squib.readthedocs.io/en/latest/colors.html ) and in the wiki: https://github.com/andymeneely/squib/wiki/Switch-card-background-or-invert-theme .
* Add sample for color switch in colors docs
* Update docs/colors.rst
Co-Authored-By: Andy Meneely <andy.meneely@gmail.com >
* Update docs/colors.rst
Co-Authored-By: Andy Meneely <andy.meneely@gmail.com >
* Update docs/colors.rst
Co-Authored-By: Andy Meneely <andy.meneely@gmail.com >
* Update docs/colors.rst
Co-Authored-By: Andy Meneely <andy.meneely@gmail.com >
* Update docs/colors.rst
Co-Authored-By: Andy Meneely <andy.meneely@gmail.com >
* Update docs/colors.rst
Co-Authored-By: Andy Meneely <andy.meneely@gmail.com >
* Add color switch sample and update docs
* Add color switch sample and update docs
2019-05-29 09:47:29 -04:00
Andy Meneely
827f998564
Merge branch 'master' into dev
2019-05-27 09:18:14 -04:00
Karneades
1fb9548637
Improve rakefile example to match docs
...
Improve example to match the example in the docs [1] and fix the test task name.
[1] https://squib.readthedocs.io/en/latest/build_groups.html
2019-05-27 09:16:06 -04:00
Andy Meneely
89c0e6625d
xlsx, csv, yaml: explode defaults to "qty" ( #262 )
...
Not "Qty"
2019-05-24 11:23:19 -04:00
Andy Meneely
8938aa350a
samples: document ways of using prefix
2019-05-22 16:01:48 -04:00
Andy Meneely
e3950267dc
colors: update sanity tests for new colors
2019-05-22 14:36:08 -04:00
Andy Meneely
9b98163608
docs: add sprues for #247
...
Also correct word_char for #237
2018-07-31 16:14:11 -04:00
Andy Meneely
3d1f1ff989
Fix extra page for PDF sprues
...
Fixes #246
2018-07-31 13:54:14 -04:00
Andy Meneely
aada86a070
Fix extra stroke on circle, fix #248
2018-07-31 13:27:17 -04:00
Andy Meneely
2020b5a67a
sanity: fixing lots of tests
...
apparently i totally borked a lot of sanity tests. should be fixed now.
BORK BORK BORK
2017-11-06 23:09:48 -05:00
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