]> git.lyx.org Git - features.git/commit
Always prefer breaking at word boundaries
authorGuillaume Munch <gm@lyx.org>
Sun, 6 Nov 2016 14:14:29 +0000 (15:14 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 6 Nov 2016 14:51:22 +0000 (15:51 +0100)
commit50ccbd2eab8cb01ff9f7c80d3fe726297dca6fae
tree5637a1ee0af9b7c793433fd2d17977de5e6bfc73
parentb30f8d3c4bffd04bbef16adfc0a5e59e32b160e0
Always prefer breaking at word boundaries

An overlong word containing a hyphen could be broken anywhere, instead of after
the hyphen.

Example: compare the line breaking of

   aaaaa-aaaaa-aaaaa-aaaaa

with

   aaa aaaaa-aaaaa-aaaaa-aaaaa

(with a very narrow window)

This also improves Chinese text in some situations (#10299)
src/frontends/qt4/GuiFontMetrics.cpp