From a4413710f9418bd5a5ab83ac3ed70b1329cb2492 Mon Sep 17 00:00:00 2001 From: Maganty Rushyendra Date: Wed, 27 May 2020 17:21:35 +0800 Subject: Expose `get_char_size()` from Font instead of BitmapFont `get_char_size()` is a public virtual function defined in the `Font` class. Implementations exist for both `BitmapFont` and `Dynamic Font`. However, it was only exposed to the GDScript API through the Bitmap Font, and not for Dynamic Font. This commit exposes the function through `Font` instead. Fixes #23967 --- doc/classes/BitmapFont.xml | 11 ----------- doc/classes/Font.xml | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/BitmapFont.xml b/doc/classes/BitmapFont.xml index 421b405808..87cffdaca0 100644 --- a/doc/classes/BitmapFont.xml +++ b/doc/classes/BitmapFont.xml @@ -65,17 +65,6 @@ Creates a BitmapFont from the [code]*.fnt[/code] file at [code]path[/code]. - - - - - - - - - Returns the size of a character, optionally taking kerning into account if the next character is provided. - - diff --git a/doc/classes/Font.xml b/doc/classes/Font.xml index 882f819e37..30b8c1fe76 100644 --- a/doc/classes/Font.xml +++ b/doc/classes/Font.xml @@ -54,6 +54,17 @@ Returns the font ascent (number of pixels above the baseline). + + + + + + + + + Returns the size of a character, optionally taking kerning into account if the next character is provided. + + -- cgit v1.2.3