From 4171ba1fb4ca6efa4a4ff67cd3cfd6f5482dfccd Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 24 Jan 2023 14:35:06 +1300 Subject: [PATCH] Fix display font and static text ref (#2618) --- changelog/2022.4.0.rst | 2 +- components/display/index.rst | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/changelog/2022.4.0.rst b/changelog/2022.4.0.rst index 93b880ad7..55506bb71 100644 --- a/changelog/2022.4.0.rst +++ b/changelog/2022.4.0.rst @@ -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 diff --git a/components/display/index.rst b/components/display/index.rst index 329ddb154..04d8937b9 100644 --- a/components/display/index.rst +++ b/components/display/index.rst @@ -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 ***** @@ -226,6 +226,8 @@ Configuration variables: to install it using ``pip install pillow``. +.. _display-static_text: + Drawing Static Text ******************* @@ -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: