[go: nahoru, domu]

History log of /frameworks/minikin/libs/minikin/Measurement.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ea408fc18e8e78d984ebdf63703da668a15720de 18-Feb-2016 Keisuke Kuroyanagi <ksk@google.com> Optimize: Use measureText instead of doLayout.

With this CL, measureText is used for getRunAdvance,
getOffsetForAdvance and line breaking.

Bug: 24505153
Change-Id: Ib699f6b1391b46537736fc274cdb41686586b550
/frameworks/minikin/libs/minikin/Measurement.cpp
542572394dfb35b6b78b73837ec13c8e3170385a 21-Jul-2015 Raph Levien <raph@google.com> Revert "Allow clusters to start with zero-width characters"

This reverts commit 3e0fc64da064b8c4156daf53242b8eeb47830f64.

Bug: 22589743
Bug: 22121742
Change-Id: I7b482ffb8a0ee174ddc804aa890de45bdbd758e3
/frameworks/minikin/libs/minikin/Measurement.cpp
3e0fc64da064b8c4156daf53242b8eeb47830f64 30-Jun-2015 Raph Levien <raph@google.com> Allow clusters to start with zero-width characters

The logic in getRunAdvance() assumed that any zero-width character was
part of the preceding cluster, which is valid most of the time. However,
characters such as ZWNBSP (U+FEFF) renders as a zero width glyph
and is also a grapheme cluster boundary. This patch adds a clause to
handle that case.

Bug: 22121742
Change-Id: Iad79a7d988bded1ef05f0fd7905d20669ea22051
/frameworks/minikin/libs/minikin/Measurement.cpp
4ea1cc82b0e8170d6ab6a7e9ee274c81315cd59e 10-Jun-2015 Keisuke Kuroyanagi <ksk@google.com> Fix: getOffsetForAdvance can return worng offset.

searchStart was passed to getRunAdvance, but it can be
different from the start that has been used to initialize
Layout object. As a result, wrong index could be used in
getRunAdvance.

Bug: 21744454
Change-Id: Ibe83cc50ed6f0da2a1532318bc224502be350699
/frameworks/minikin/libs/minikin/Measurement.cpp
95af01c57b60130ba4c098340ba6ea4b4ebfee3f 01-Jun-2015 Raph Levien <raph@google.com> Use context start correctly in getRunAdvance

We were not taking context start into account when deciding whether
to split a ligature, which was causing inconsistent behavior. This
patch consistently references the widths array relative to the start
of the context.

Bug: 21549197
Change-Id: I7c71e10c1af84354fefe782fc0b87120016e6555
/frameworks/minikin/libs/minikin/Measurement.cpp
40beb7744a61248de82a6077996c83c14e0122c2 07-Apr-2015 Raph Levien <raph@google.com> Add functions for measuring cursor positioning

New functions for computing the correspondence between cursor
position and advance, respecting grapheme boundaries.

Change-Id: I620378d5f64cd74300cd43db522adeb555825dff
/frameworks/minikin/libs/minikin/Measurement.cpp