Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
section about style for text sizes
  • Loading branch information
jabdoa2 committed Apr 2, 2020
1 parent 00781c9 commit cb9d3d3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions displays/widgets/fonts.rst
Expand Up @@ -27,3 +27,27 @@ widget style and easily applied to new widgets with a single line.
:hidden:

dmd_fonts


How to Set Fonts and Sizes Globally?
------------------------------------

You usually want to use three to five different font + size combinations in
your machine.
However, you often want to adjust them later on without touching all your
slides and widgets.
For that reason it makes sense to define a :doc:`widget_style <styles>` for all
your fonts and sizes:

.. code-block:: mpf-mc-config
widget_styles:
text_small:
font_size: 15
color: red
text_default:
font_size: 21
color: blue
You can then use ``style: text_default`` in your text widgets.
See :doc:`widget_style <styles>` for details.

0 comments on commit cb9d3d3

Please sign in to comment.