Document in the text method place
parent
518c763131
commit
79ba584c69
|
|
@ -55,9 +55,9 @@ author = u'Andy Meneely'
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = u'v0.15'
|
version = u'v0.16'
|
||||||
# The full version, including alpha/beta/rc tags.
|
# 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
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|
|
||||||
|
|
@ -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``.
|
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
|
Hints
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
@ -113,3 +117,10 @@ Sample: config_text_markup.rb
|
||||||
.. literalinclude:: ../samples/config/config_disable_quotes.yml
|
.. literalinclude:: ../samples/config/config_disable_quotes.yml
|
||||||
:language: ruby
|
:language: ruby
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
|
Sample: _autoscale_font.rb
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
.. literalinclude:: ../samples/autoscale_font/_autoscale_font.rb
|
||||||
|
:language: ruby
|
||||||
|
:linenos:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue