diff options
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) { |