diff options
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index 7d141217..cf7f5620 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -1199,6 +1199,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) { | |||
1199 | /* When word wrapping, only consider certain places breakable. */ | 1199 | /* When word wrapping, only consider certain places breakable. */ |
1200 | iChar ch = 0; | 1200 | iChar ch = 0; |
1201 | decodeBytes_MultibyteChar(textPos, runText.end, &ch); | 1201 | decodeBytes_MultibyteChar(textPos, runText.end, &ch); |
1202 | /* TODO: Allow some punctuation to wrap words. */ | ||
1202 | if (isSpace_Char(ch)) { | 1203 | if (isSpace_Char(ch)) { |
1203 | safeBreak = textPos; | 1204 | safeBreak = textPos; |
1204 | } | 1205 | } |
@@ -1231,7 +1232,8 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) { | |||
1231 | } | 1232 | } |
1232 | } | 1233 | } |
1233 | } | 1234 | } |
1234 | /* Draw each glyph. */ | 1235 | /* We have determined a possible wrap position inside the text run, so now we can |
1236 | draw the glyphs. */ | ||
1235 | for (unsigned int i = 0; i < glyphCount; i++) { | 1237 | for (unsigned int i = 0; i < glyphCount; i++) { |
1236 | const hb_glyph_info_t *info = &glyphInfo[i]; | 1238 | const hb_glyph_info_t *info = &glyphInfo[i]; |
1237 | const hb_codepoint_t glyphId = info->codepoint; | 1239 | const hb_codepoint_t glyphId = info->codepoint; |