9b0b003dc15c6741ddf164d1aa39965110b79b80 |
|
24-Oct-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Disable NBSP as an stretchable space NBSP has basically two different uses, one of which is justifiable (normal usage) and the other is not (usage as based for combining marks). Since we don't differentiate them properly, disable treating NBSP as stretchable for now. Bug: 68009059 Bug: 68204709 Test: bit FrameworksCoreTests:android.text.TextLineTest Test: adb shell /data/nativetest/minikin_tests/minikin_tests Change-Id: Iae0b9da05845757ec8f3f3d9d9f81e2ba22807e6
/frameworks/minikin/libs/minikin/LayoutUtils.cpp
|
1d461589869ee5b7102f96271b0ef0a776ab513c |
|
20-Oct-2017 |
Seigo Nonaka <nona@google.com> |
Style cleanup. This CL contains following cleanups: - Rename the following classes and corresponding file names: FontLanguage -> Locale FontLanguages -> LocaleList FontLanguageListCache -> LocaleListCache - Remove unnecessary #include lines. - Define the Minikin's header include ordering and follow that style. See doc/minikin_style.md for details. - Always use std::string and std::vector instead of string and vector with using-declaration. - Replace LOG_ALWAYS_FATAL_IF with MINIKIN_ASSERT so that the assertion is removed on build configuration for user. This CL does not change any behavior. Bug: 65024629 Test: make checkbuild Change-Id: If41bb3c3389303053bbe95e349eb2dd4b619257c
/frameworks/minikin/libs/minikin/LayoutUtils.cpp
|
510047d8fd99c960d131c701bdee217d1970987f |
|
14-Jul-2017 |
Roozbeh Pournader <roozbeh@google.com> |
Hyphenate words adjacent to NBSP Previously, a sequence of words separated by NO-BREAK SPACE (U+00A0) were treated as one long non-hyphenatable word. Now each such word is processed separately and can get hyphenated. Also fix an incorrect assumption that it's safe to cache words separated by NBSP since NBSP can be used as a base for a combining character, in which case it should not be separated from the character following it. Change-Id: Ia4351d29098d1f8015f797088d0255ea3a4de9df Fixes: 27250514 Test: Manual (words separated by NBSP now get hyphenated) Test: adb shell /data/nativetest/minikin_tests/minikin_tests
/frameworks/minikin/libs/minikin/LayoutUtils.cpp
|
acd401d02981af51419f4b740abb2c41e4980fdb |
|
15-Nov-2016 |
Seigo Nonaka <nona@google.com> |
Implement word spacing Add a wordSpacing paint parameter, which will be used for justification. Bug: 31707212 Test: ran minikin_tests Change-Id: I91224ab8ef882ac0c87425c28ab731fead283612
/frameworks/minikin/libs/minikin/LayoutUtils.cpp
|
14e2d136aaef271ba131f917cf5f27baa31ae5ad |
|
09-Jun-2016 |
Seigo Nonaka <nona@google.com> |
Always use minikin namespace. Here is a new policy of the namespace of minikin. - All components should be in minikin namespace. - All tests are also in minikin namespace and no anonymous namespace. Bug: 29233740 Change-Id: I71a8a35049bb8d624f7a78797231e90fed1e2b8c
/frameworks/minikin/libs/minikin/LayoutUtils.cpp
|
4e3adc6fb2073d5b466b88b8f5329d281038aba1 |
|
25-Aug-2015 |
Seigo Nonaka <nona@google.com> |
Update word breaker to be aware tone mark and variation selector. This CL does: 1. Move the getNextWordBreak/getPrevWordBreak function to a separate source file. 2. Adding "ForCache" suffix for function name for making clear these function is for layout cache. 3. Introduce unit tests for them. Bug: 11256006 Change-Id: I4138751a4570915f1a0d6c8921f89700f8ec7f35
/frameworks/minikin/libs/minikin/LayoutUtils.cpp
|