Skip to content

Commit

Permalink
Fix display font and static text ref (esphome#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Jan 24, 2023
1 parent f858439 commit 4171ba1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog/2022.4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Google Fonts

:ghuser:`OttoWinter` has given everyone a way to use Google Fonts in their YAML and displays without having to manually download
TTF font files. The example below will automatically download and cache the Roboto TTF font file required so you can utilise it.
See the :ref:`display-static_text` documentation for more details.
See the :ref:`display-fonts` documentation for more details.

.. code-block:: yaml
Expand Down
6 changes: 4 additions & 2 deletions components/display/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Additionally, you have access to two helper methods which will fetch the width a
You can view the full API documentation for the rendering engine in the "API Reference" in the See Also section.

.. _display-static_text:
.. _display-fonts:

Fonts
*****
Expand Down Expand Up @@ -226,6 +226,8 @@ Configuration variables:
to install it using
``pip install pillow``.

.. _display-static_text:

Drawing Static Text
*******************

Expand Down Expand Up @@ -415,7 +417,7 @@ RGB displays use red, green, and blue, while grayscale displays may use white.
Graph Component
***************

You can display a graph of a sensor value(s) using this component. The states used for the graph are stored in
You can display a graph of a sensor value(s) using this component. The states used for the graph are stored in
memory at the time the sensor updates and will be lost when the device reboots.

Examples:
Expand Down

0 comments on commit 4171ba1

Please sign in to comment.