summaryrefslogtreecommitdiff
path: root/scene/resources/dynamic_font_stb.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-05-08 15:37:00 +0200
committerGitHub <noreply@github.com>2018-05-08 15:37:00 +0200
commit9dbfe5dc615f398577a926d400086b38de37051e (patch)
treebeead4f986bab97f869740ce56cd1a6a4d603381 /scene/resources/dynamic_font_stb.h
parent47db64ac007878904a6ccf23304502765174a8ca (diff)
parent863dd9aa46aff502f7425ea6045de93bf09b76a3 (diff)
Merge pull request #17578 from endragor/ft-outlines
Perfect FreeType-based outlines for DynamicFonts
Diffstat (limited to 'scene/resources/dynamic_font_stb.h')
-rw-r--r--scene/resources/dynamic_font_stb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/dynamic_font_stb.h b/scene/resources/dynamic_font_stb.h
index 4c1097d28b..feae29c0c2 100644
--- a/scene/resources/dynamic_font_stb.h
+++ b/scene/resources/dynamic_font_stb.h
@@ -136,7 +136,7 @@ public:
Size2 get_char_size(CharType p_char, CharType p_next = 0) const;
- float draw_char(RID p_canvas_item, const Point2 &p_pos, CharType p_char, CharType p_next = 0, const Color &p_modulate = Color(1, 1, 1)) const;
+ float draw_char(RID p_canvas_item, const Point2 &p_pos, CharType p_char, CharType p_next = 0, const Color &p_modulate = Color(1, 1, 1), bool p_outline = false) const;
DynamicFontAtSize();
~DynamicFontAtSize();
@@ -171,7 +171,7 @@ public:
virtual bool is_distance_field_hint() const;
- virtual float draw_char(RID p_canvas_item, const Point2 &p_pos, CharType p_char, CharType p_next = 0, const Color &p_modulate = Color(1, 1, 1)) const;
+ virtual float draw_char(RID p_canvas_item, const Point2 &p_pos, CharType p_char, CharType p_next = 0, const Color &p_modulate = Color(1, 1, 1), bool p_outline = false) const;
DynamicFont();
~DynamicFont();