diff options
| author | Ruslan Mustakov | 2018-03-14 19:38:34 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2018-03-14 19:53:44 +0700 |
| commit | aa8561ded403020f0292450e7a7af75eaf001e94 (patch) | |
| tree | 770407401bd19888eff20858b2f119c52551b5b7 /scene/resources/dynamic_font.cpp | |
| parent | a8bbb708a8751e4bcd98de9b1bb94adef5bd4a17 (diff) | |
| download | godot-aa8561ded403020f0292450e7a7af75eaf001e94.tar.gz godot-aa8561ded403020f0292450e7a7af75eaf001e94.tar.zst godot-aa8561ded403020f0292450e7a7af75eaf001e94.zip | |
Diffstat (limited to 'scene/resources/dynamic_font.cpp')
| -rw-r--r-- | scene/resources/dynamic_font.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index 26e29b3cc..3d825b5a2 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -308,6 +308,9 @@ Size2 DynamicFontAtSize::get_char_size(CharType p_char, CharType p_next, const V ret.x += (delta.x >> 6) / oversampling; } } + + // ensures oversampled glyphs will have enough space when this value is used by clipping/wrapping algorithms + ret.x = Math::ceil(ret.x); return ret; } |
