From daf6a6bdbf2ff1f66496d6200cb253e2f50759d5 Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Wed, 18 Mar 2015 23:04:28 -0700 Subject: Add hyphenation to line breaking This patch adds hyphenation using the Liang hyphenation algorithm, similar to TeX. It also improves the optimized line breaker so that it works correctly and efficiently even when the line width is not constant (there is a specialization for constant width, which is probably worthwhile, but performance TODOs remain). Still to be done: * hyphenator has many shortcuts, only tested with English * interaction between punctuation and hyphenation is problematic Change-Id: I2d94a1668ebc536398b7c43fcf486333eeb7c6aa --- libs/minikin/Android.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/minikin/Android.mk') diff --git a/libs/minikin/Android.mk b/libs/minikin/Android.mk index 5406824..34b535c 100644 --- a/libs/minikin/Android.mk +++ b/libs/minikin/Android.mk @@ -22,6 +22,7 @@ LOCAL_SRC_FILES := \ FontCollection.cpp \ FontFamily.cpp \ GraphemeBreak.cpp \ + Hyphenator.cpp \ Layout.cpp \ LineBreaker.cpp \ MinikinInternal.cpp \ -- cgit v1.2.3