Document in the text method place

dev
Andy Meneely 2019-10-17 12:11:06 -04:00
parent 518c763131
commit 79ba584c69
2 changed files with 13 additions and 2 deletions

View File

@ -55,9 +55,9 @@ author = u'Andy Meneely'
# built documents.
#
# The short X.Y version.
version = u'v0.15'
version = u'v0.16'
# The full version, including alpha/beta/rc tags.
release = u'v0.15.0'
release = u'v0.16.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@ -35,6 +35,10 @@ Width and Height
By default, Pango text boxes will scale the text box to whatever you need, hence the ``:native`` default. However, for most of the other customizations to work (e.g. center-aligned) you'll need to specify the width. If both the width and the height are specified and the text overflows, then the ``ellipsize`` option is consulted to figure out what to do with the overflow. Also, the ``valign`` will only work if ``height`` is also set to something other than ``:native``.
Autoscaling Font Size
---------------------
See our sample below `Sample: _autoscale_font.rb`_
Hints
-----
@ -113,3 +117,10 @@ Sample: config_text_markup.rb
.. literalinclude:: ../samples/config/config_disable_quotes.yml
:language: ruby
:linenos:
Sample: _autoscale_font.rb
^^^^^^^^^^^^^^^^^^^^^^^^^^
.. literalinclude:: ../samples/autoscale_font/_autoscale_font.rb
:language: ruby
:linenos: