Fix kerned font handling unknown characters
This commit is contained in:
parent
5b450d401c
commit
53b706a29b
1 changed files with 2 additions and 3 deletions
|
|
@ -60,11 +60,10 @@ namespace psemek::ui
|
|||
geom::vector<float, 2> pos{0.f, (size_[1] - baseline_offset_) * options.scale};
|
||||
for (char32_t c : util::utf8_range(str))
|
||||
{
|
||||
char32_t cc = c;
|
||||
|
||||
if (!supports_character(c))
|
||||
cc = unknown;
|
||||
c = unknown;
|
||||
|
||||
char32_t cc = c;
|
||||
if (std::isspace(c))
|
||||
cc = ' ';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue