summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-10 10:13:22 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-02-12 19:55:52 +0200
commit29199579f780f4f66350e1962926c08b2ddcf65b (patch)
tree4e722851ab0cdd71401e87c4b34c92d1c2630324 /scene/gui/line_edit.cpp
parentd3a6b6daaab4c8dfb7bdf35cc2fe2145ae6c22a1 (diff)
downloadredot-engine-29199579f780f4f66350e1962926c08b2ddcf65b.tar.gz
Add sub-pixel glyph positioning support.
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 3aae3377bc..0e2cbfea48 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -1606,7 +1606,7 @@ Size2 LineEdit::get_minimum_size() const {
Size2 min_size;
// Minimum size of text.
- int em_space_size = font->get_char_size('M', 0, font_size).x;
+ float em_space_size = font->get_char_size('M', 0, font_size).x;
min_size.width = get_theme_constant(SNAME("minimum_character_width")) * em_space_size;
if (expand_to_text_length) {