From 193fe8144142196690ef39a78931ffcdaf35153a Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 5 Dec 2024 14:18:19 +0000 Subject: [PATCH] picographics: update text docs --- libraries/pico_graphics/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/pico_graphics/README.md b/libraries/pico_graphics/README.md index 633ef8cd..273e534b 100644 --- a/libraries/pico_graphics/README.md +++ b/libraries/pico_graphics/README.md @@ -304,14 +304,14 @@ PicoGraphics::circle(const Point &p, int32_t radius) ### Text ```c++ -void PicoGraphics::text(const std::string &t, const Point &p, int32_t wrap, uint8_t scale); +void PicoGraphics::text(const std::string_view &t, const Point &p, int32_t wrap, float s, float a, uint8_t letter_spacing, bool fixed_width); ``` `text` allows you to draw a string at `Point p`, with a maximum line-width of `int32_t wrap`. The 6x6 and 6x8 pixel font characters are encoded in `font6_data.hpp` and `font8_data.hpp` along with their character widths so that text can be drawn variable-width. -You can scale text with `uint8_t scale` for 12x12, 18x18, etc character sizes. +You can scale text with `float s` for 12x12, 18x18, etc character sizes. You can also rotate text with `float a` (in degrees). ### Change Font