Commit Graph

9 Commits (65c4361458d886af188cff71adec3434f8ff29af)

Author SHA1 Message Date
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 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 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 f52446d71b samples: un-submoduling 2016-11-13 18:43:49 -05:00
Andy Meneely 9eb348236d samples: ignore pre-built files 2016-03-15 18:26:24 -04:00
Andy Meneely b560643332 Add submodule gist: _autoscale_font.rb 2015-12-13 21:11:22 -05:00