mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-18 01:06:45 +01:00
ImFont: CalcWordWrapPositionA() fixed font scaling with fallback character. (followup to 86666489df97d40edef64196db43963cd0ba335f)
This commit is contained in:
parent
0420ab027e
commit
87d99fce6b
@ -1841,7 +1841,7 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const float char_width = ((int)c < IndexXAdvance.Size) ? IndexXAdvance[(int)c] * scale : FallbackXAdvance;
|
const float char_width = ((int)c < IndexXAdvance.Size ? IndexXAdvance[(int)c] : FallbackXAdvance) * scale;
|
||||||
if (ImCharIsSpace(c))
|
if (ImCharIsSpace(c))
|
||||||
{
|
{
|
||||||
if (inside_word)
|
if (inside_word)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user