squib/samples/text
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
..
.gitignore samples: fix gitignore issue 2017-01-04 15:37:51 -05:00
README.md samples: un-submoduling 2016-11-13 18:43:49 -05:00
_embed_text.rb Respect DPI settings in text, add pt unit 2017-10-05 16:37:46 -04:00
_text.rb Feat/font autoscale (#288) 2019-10-17 11:29:14 -04:00
_text_00_expected.png Feat/font autoscale (#288) 2019-10-17 11:29:14 -04:00
_text_options.rb Respect DPI settings in text, add pt unit 2017-10-05 16:37:46 -04:00
bug134.rb samples: reorganize for better sanity 2017-01-04 15:16:11 -05:00
config.yml samples: un-submoduling 2016-11-13 18:43:49 -05:00
embed_00_expected.png colors: update sanity tests for new colors 2019-05-22 14:36:08 -04:00
embed_multisheet_00_expected.png sanity: update sanity test expected images for new font size 2017-10-05 17:02:24 -04:00
glass-heart.svg samples: reorganize for better sanity 2017-01-04 15:16:11 -05:00
shiny-purse.png samples: fix gitignore issue 2017-01-04 15:37:51 -05:00
spanner.svg samples: reorganize for better sanity 2017-01-04 15:16:11 -05:00
text_options_00_expected.png colors: update sanity tests for new colors 2019-05-22 14:36:08 -04:00

README.md

Using the text method in Squib