From 022d32c63d60dba74b786bfcfa11de4740619815 Mon Sep 17 00:00:00 2001 From: Luis Peralta Date: Wed, 25 Oct 2023 16:50:32 +0200 Subject: [PATCH] display font: document using gfonts:// for icons (#2883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added example showing how to use gfonts to download icons. It seems it is not widely known. Co-authored-by: H. Árkosi Róbert --- components/display/index.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/display/index.rst b/components/display/index.rst index f6a8535af..5e8bfd2b6 100644 --- a/components/display/index.rst +++ b/components/display/index.rst @@ -184,6 +184,11 @@ Next, create a ``font:`` section in your configuration: - file: "fonts/tom-thumb.bdf" id: tomthumb + + - file: 'gfonts://Material+Symbols+Outlined' + id: icon_font_50 + size: 50 + glyphs: ["\U0000e425"] # mdi-timer display: # ... @@ -197,7 +202,8 @@ Configuration variables: **Google Fonts**: - Each Google Font will be downloaded once and cached for future use. + Each Google Font will be downloaded once and cached for future use. This can also be used to download Material + Symbols or Icons as in the example above. - **family** (**Required**, string): The name of the Google Font family. - **weight** (*Optional*, enum): The weight of the font. Can be either the text name or the integer value: