Fonts: word-wrapping code handle ideographic comma & full stop (U+3001, U+3002). (#8540)
This commit is contained in:
@@ -56,6 +56,7 @@ Other changes:
|
|||||||
CTRL+Tab windowing + pressing a keyboard key. (#8525)
|
CTRL+Tab windowing + pressing a keyboard key. (#8525)
|
||||||
- Error Handling: added better error report and recovery for extraneous
|
- Error Handling: added better error report and recovery for extraneous
|
||||||
EndPopup() call. (#1651, #8499)
|
EndPopup() call. (#1651, #8499)
|
||||||
|
- Fonts: word-wrapping code handle ideographic comma & full stop (U+3001, U+3002). (#8540)
|
||||||
- Fonts: fixed CalcWordWrapPositionA() fallback when width is too small to wrap:
|
- Fonts: fixed CalcWordWrapPositionA() fallback when width is too small to wrap:
|
||||||
would use a +1 offset instead of advancing to the next UTF-8 codepoint. (#8540)
|
would use a +1 offset instead of advancing to the next UTF-8 codepoint. (#8540)
|
||||||
- Style, InputText: added ImGuiCol_InputTextCursor to configure color of
|
- Style, InputText: added ImGuiCol_InputTextCursor to configure color of
|
||||||
|
|||||||
+1
-1
@@ -4009,7 +4009,7 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Allow wrapping after punctuation.
|
// Allow wrapping after punctuation.
|
||||||
inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"');
|
inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"' && c != 0x3001 && c != 0x3002);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We ignore blank width at the end of the line (they can be skipped)
|
// We ignore blank width at the end of the line (they can be skipped)
|
||||||
|
|||||||
Reference in New Issue
Block a user