* 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
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
* 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!
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
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