diff options
author | Sebastian Geerken <devnull@localhost> | 2012-11-26 23:00:11 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-11-26 23:00:11 +0100 |
commit | bccc6503f4677953a8cd2bbac2c962dc432577d9 (patch) | |
tree | 345656d8a7954c4ef702b9e443a4d4cf83bdad85 /dw/textblock_linebreaking.cc | |
parent | d9bccd6d15eb017964fbdfc3aba428dfbc4764b2 (diff) |
Draw unconditional hyphens instead of soft hyphens.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 81cab950..a203f5a4 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -691,8 +691,9 @@ int Textblock::hyphenateWord (int wordIndex) if (i < numBreaks) { // TODO There should be a method fillHyphen. w->badnessAndPenalty.setPenalty (HYPHEN_BREAK); + // "\xe2\x80\x90" is an unconditional hyphen. w->hyphenWidth = - layout->textWidth (origWord.style->font, "\xc2\xad", 2); + layout->textWidth (origWord.style->font, "\xe2\x80\x90", 3); PRINTF (" [%d] + hyphen\n", wordIndex + i); } else { if (origWord.content.space) { |