summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-02 08:10:51 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-02 08:10:51 +0300
commit3fdf121b98d2770ee136ee7e6a03de4384c23eb2 (patch)
treef62fc86030747e55413be4e6dda9d04853f051d3 /src
parentcc3e6add4dff47306ad877ad59cb8f93feb14d0d (diff)
Cleanup
Diffstat (limited to 'src')
-rw-r--r--src/ui/text.c4
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;