summaryrefslogtreecommitdiffstats
path: root/scene/resources/font.cpp
diff options
context:
space:
mode:
authorFireForge <67974470+fire-forge@users.noreply.github.com>2022-05-20 00:24:41 -0500
committerFireForge <67974470+fire-forge@users.noreply.github.com>2022-06-11 09:41:05 -0500
commit4678736a3958392362b805129aad1c41c36896c8 (patch)
tree5989c525a71166a1da7fc960bbc4bd2e0a90550c /scene/resources/font.cpp
parent126e4d0a5b182a2eea4e49e21344e376acdbba8c (diff)
downloadredot-engine-4678736a3958392362b805129aad1c41c36896c8.tar.gz
Add suffixes to all nodes and resources
Diffstat (limited to 'scene/resources/font.cpp')
-rw-r--r--scene/resources/font.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp
index d586abac14..7aaeb424ac 100644
--- a/scene/resources/font.cpp
+++ b/scene/resources/font.cpp
@@ -1923,8 +1923,8 @@ void Font::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_spacing", "spacing"), &Font::get_spacing);
ADD_GROUP("Extra Spacing", "spacing");
- ADD_PROPERTYI(PropertyInfo(Variant::INT, "spacing_top"), "set_spacing", "get_spacing", TextServer::SPACING_TOP);
- ADD_PROPERTYI(PropertyInfo(Variant::INT, "spacing_bottom"), "set_spacing", "get_spacing", TextServer::SPACING_BOTTOM);
+ ADD_PROPERTYI(PropertyInfo(Variant::INT, "spacing_top", PROPERTY_HINT_NONE, "suffix:px"), "set_spacing", "get_spacing", TextServer::SPACING_TOP);
+ ADD_PROPERTYI(PropertyInfo(Variant::INT, "spacing_bottom", PROPERTY_HINT_NONE, "suffix:px"), "set_spacing", "get_spacing", TextServer::SPACING_BOTTOM);
ClassDB::bind_method(D_METHOD("get_height", "size"), &Font::get_height, DEFVAL(DEFAULT_FONT_SIZE));
ClassDB::bind_method(D_METHOD("get_ascent", "size"), &Font::get_ascent, DEFVAL(DEFAULT_FONT_SIZE));