From 846892d3660e3fdb326283049f8b3e68a7223065 Mon Sep 17 00:00:00 2001 From: Dalton Date: Sat, 17 Feb 2024 10:00:01 -0600 Subject: [PATCH] Fix function description for Font.get_char_size() Removed description implying you can pass a second char in order to account for kerning (cherry picked from commit c9bc54637b1d755ab0bef588996fafcd108ed1b4) --- doc/classes/Font.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Font.xml b/doc/classes/Font.xml index 5d34e38b137..88edc963d4f 100644 --- a/doc/classes/Font.xml +++ b/doc/classes/Font.xml @@ -131,7 +131,7 @@ - Returns the size of a character, optionally taking kerning into account if the next character is provided. + Returns the size of a character. Does not take kerning into account. [b]Note:[/b] Do not use this function to calculate width of the string character by character, use [method get_string_size] or [TextLine] instead. The height returned is the font height (see also [method get_height]) and has no relation to the glyph height.