From dce7bdf58f70b119da3d4d7673e527923e008c49 Mon Sep 17 00:00:00 2001 From: fish Date: Mon, 9 Feb 2026 01:09:05 -0800 Subject: [PATCH] Fix Font's documentation to say that get_ascent and get_descent return the maximum ascent and descent --- doc/classes/Font.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Font.xml b/doc/classes/Font.xml index df06cde5a0..67b811a7d7 100644 --- a/doc/classes/Font.xml +++ b/doc/classes/Font.xml @@ -133,7 +133,7 @@ - Returns the average font ascent (number of pixels above the baseline). + Returns the maximum font ascent (number of pixels above the baseline) of this font and all fallback fonts. [b]Note:[/b] Real ascent of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the ascent of empty line). @@ -150,7 +150,7 @@ - Returns the average font descent (number of pixels below the baseline). + Returns the maximum font descent (number of pixels below the baseline) of this font and all fallback fonts. [b]Note:[/b] Real descent of the string is context-dependent and can be significantly different from the value returned by this function. Use it only as rough estimate (e.g. as the descent of empty line).