summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-30 09:20:27 +0200
committerGitHub <noreply@github.com>2022-07-30 09:20:27 +0200
commitf7c22756e16cbab7db03e4e41de52711a1a7ff6c (patch)
treed2424589e27fb6450e8ea6650399dfaad3877f12
parent9094262a6b9f3d7fc5aa8a8dd582ec1058bfce71 (diff)
parent18aad2807e20cf648e77b8055c41ccd1437146b1 (diff)
Merge pull request #63654 from bruvzg/font_prev_scale
Fix font preview plugin not using editor scale.
-rw-r--r--editor/plugins/font_config_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/font_config_plugin.cpp b/editor/plugins/font_config_plugin.cpp
index 383921f06a..cadb974345 100644
--- a/editor/plugins/font_config_plugin.cpp
+++ b/editor/plugins/font_config_plugin.cpp
@@ -926,7 +926,7 @@ void FontPreview::_notification(int p_what) {
if (sample.is_empty()) {
prev_ok = false;
} else {
- prev_font->draw_string(get_canvas_item(), Point2(0, font->get_height(font_size) + prev_font->get_height(50)), sample, HORIZONTAL_ALIGNMENT_CENTER, get_size().x, 50, text_color);
+ prev_font->draw_string(get_canvas_item(), Point2(0, font->get_height(font_size) + prev_font->get_height(25 * EDSCALE)), sample, HORIZONTAL_ALIGNMENT_CENTER, get_size().x, 25 * EDSCALE, text_color);
}
}
}