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