Commit Graph

453 Commits (7399946ec25a06d989d3b9873297764821ef1bdf)

Author SHA1 Message Date
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 43cca582a6 Onward and upward 2019-10-17 11:15:22 -04:00
Andy Meneely 28f6cdcbcb I dub thee v0.15.3 2019-10-17 11:11:37 -04:00
Andy Meneely 2eee20c0cc I dub thee v0.15.2 2019-09-26 16:03:19 -04:00
Andy Meneely 6b705ab8fb Onward and upward 2019-08-06 14:09:20 -04:00
Andy Meneely eb0bebe149 I dub thee v0.15.0 2019-08-06 13:36:31 -04:00
Andy Meneely 1accadfc30 Merge in PR #272
Fix sheet size for 1-card-per-sheet PDFs and adjust coordinates when
using trim #272
2019-06-07 15:43:40 -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
Andy Meneely 89c0e6625d xlsx, csv, yaml: explode defaults to "qty" (#262)
Not "Qty"
2019-05-24 11:23:19 -04:00
Andy Meneely 8c4c0e0137 showcase: trim_radius still defaults to 38px
docs reflect that now too
2019-05-24 10:49:55 -04:00
Andy Meneely 9ceb010402 save_pdf: default trim_radius to 0, not 38 (#270) 2019-05-24 10:36:42 -04:00
Felix Wolfsteller a6675b2e60 Fix make_sprue unit_conversion FROM mm to other. (#260)
Before, val_mm resulted in nil which broke execution in evaluation of
division operation ("/").

Fixes #259.
2019-05-22 13:21:24 -04:00
Andy Meneely 5a8b3c5fcd png: check magic bytes for well-formed files
Closes #$250
2018-08-09 13:12:30 -04:00
Andy Meneely 48bb71d1c0 Onward and upward 2018-07-31 21:41:46 -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 4ae06d2e59 Merge remote-tracking branch 'origin/master' into dev 2018-07-31 15:33:24 -04:00
Adam Blinkinsop 46ea8d714a Sprues for DriveThruCards and printplaygames (#247)
* Correct links (duped save_sheet) and grammar.

* Create a sprue for https://www.drivethrucards.com/

* Create a sprue for printplaygames.com poker cards.
2018-07-31 15:32:37 -04:00
Andy Meneely 248eb2fb91 Layout multiple inheritance works with operators
The case of using relative operators and multiple inheritance is handled now.

Fixes #244
2018-07-31 15:07:33 -04:00
Andy Meneely 3d1f1ff989 Fix extra page for PDF sprues
Fixes #246
2018-07-31 13:54:14 -04:00
Andy Meneely 1bc9e3f19e Working on a bug fix release 2018-07-31 13:33:16 -04:00
Andy Meneely aada86a070 Fix extra stroke on circle, fix #248 2018-07-31 13:27:17 -04:00
Andy Meneely 53ba8c6d4d Onward and upward 2018-03-15 14:54:40 -04:00
Andy Meneely faba15766f I dub thee v0.14.1 2018-03-15 14:47:44 -04:00
Andy Meneely cf7ae7fd8b Onward and upward. 2017-11-06 23:44:50 -05:00
Andy Meneely dfb027ac31 I dub thee v0.14 2017-11-06 23:18:04 -05: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 c43538a708 I dub thee v0.14.beta1 2017-10-16 09:54:27 -04:00
Andy Meneely 9ff72b7066 builtin layouts: party 🎉
Based on idea from #7
2017-10-13 15:26:25 -04:00
Andy Meneely 386e65552e Be compatible with Ruby 2.2 and 2.3 2017-10-10 10:41:50 -04:00
Andy Meneely 60ca032d2d cli: unit tests for advanced template 2017-10-10 10:36:06 -04:00
Andy Meneely 1d4de1e2ad cli: create an --advanced layout
[skip ci]

Needs to be documented (new page?) and needs to be updated for unit tests.
2017-10-09 15:16:58 -04:00
Andy Meneely 3b5fdfaf61 move location of built-in layouts 2017-10-06 10:42:33 -04:00
Andy Meneely de4333bcb5 fix require 2017-10-05 23:43:35 -04:00
Andy Meneely 7058689c0b remove unused class 2017-10-05 23:37:58 -04:00
Andy Meneely 2362e189d7 new methods: safe_zone and cut_zone 2017-10-05 23:36:53 -04:00
Andy Meneely 9b3636cf6f Revert "first draft of thegamecrafter templates, missing all the complex ones"
This reverts commit 7f6d70b886.

See https://github.com/andymeneely/squib/pull/214#issuecomment-334627919
2017-10-05 20:30:50 -04:00
Clarence "Sparr" Risher 7f6d70b886 first draft of thegamecrafter templates, missing all the complex ones 2017-10-05 20:26:01 -04:00
Damien Salvador 44b899181a save_pdf: right-to-left support
# Conflicts:
#	CHANGELOG.md
2017-10-05 20:00:21 -04:00
Clarence "Sparr" Risher 8509ab5728 change x= to *=, add unit tests and improve existing tests 2017-10-05 19:41:43 -04:00
Clarence "Sparr" Risher b3bd8f03d8 add x= and /= to extends values 2017-10-05 19:41:43 -04:00
Clarence Sparr Risher 2a86b8f215 fix save_sheet to calculate rows correctly based on range
Based on PR #207
2017-10-05 19:38:50 -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
Andy Meneely 3ccc6432ab sprues: better validation errors 2017-10-05 11:15:33 -04:00
Andy Meneely daff0281fd Merge remote-tracking branch 'origin/master' into dev 2017-10-05 10:34:00 -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
Cory Li 6149023dbb respect `crop_marks` config option when saving PDF 2017-09-01 09:16:25 -04:00
Noah Callaway 7d23ec70f4 Update comment in header
Just a tiny irrelevant change to update the header comment to note the correct genre for this file.
2017-08-14 10:24:47 -04:00