From 3a2980d3b90df37c8608dfaf520ea419e7f617ed Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 24 Apr 2020 12:07:18 +0200 Subject: [PATCH] doc/media: remove emphasis on font config Bright colored boxes are reserved for things that deserve extra emphasis like warnings. They should not be used for extras like tips and footnotes, especially if aimed at a very small percentage of users. --- doc/api/media.rst | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/doc/api/media.rst b/doc/api/media.rst index 6671b78..a093405 100644 --- a/doc/api/media.rst +++ b/doc/api/media.rst @@ -1446,22 +1446,23 @@ Fonts .. automethod:: pybricks.media.ev3dev.Font.text_height + **Exploring more fonts** -.. tip:: Behind the scenes, Pybricks uses Fontconfig_ for fonts. The Fontconfig - command line tools can be used to explore available fonts in more - detail. + Behind the scenes, Pybricks uses Fontconfig_ for fonts. The Fontconfig + command line tools can be used to explore available fonts in more + detail. - Example:: + Example:: - # List available font families. - fc-list :scalable=false:dpi=119 family - # Perform lookup similar to Font.DEFAULT - fc-match :scalable=false:dpi=119:family=Lucida:size=12 - # Perform lookup similar to Font(size=24,lang=zh-cn) - fc-match :scalable=false:dpi=119:size=24:lang=zh-cn + # List available font families. + fc-list :scalable=false:dpi=119 family + # Perform lookup similar to Font.DEFAULT + fc-match :scalable=false:dpi=119:family=Lucida:size=12 + # Perform lookup similar to Font(size=24,lang=zh-cn) + fc-match :scalable=false:dpi=119:size=24:lang=zh-cn - Pybricks only allows the use of bitmap fonts (``scalable=false``) - and the screen on the EV3 has 119 pixels per inch (``dpi=119``). + Pybricks only allows the use of bitmap fonts (``scalable=false``) + and the screen on the EV3 has 119 pixels per inch (``dpi=119``). .. _FontConfig: https://www.freedesktop.org/wiki/Software/fontconfig/