1. 23 8月, 2014 1 次提交
  2. 22 8月, 2014 5 次提交
    • B
      Allocate font vector on stack · 56c7fb8c
      Behdad Esfahbod 提交于
      This reduces another allocation (last one?) we were doing when
      fulfilling shaping requests from the cache.
      
      Bug: 17111260
      Change-Id: Ieb8ae1ccfcaacedb257e1e9263777f10623aaf98
      56c7fb8c
    • B
      am 6da7796c: Fix Layout initialization in the skipCache path · c01aa1e3
      Behdad Esfahbod 提交于
      * commit '6da7796c':
        Fix Layout initialization in the skipCache path
      c01aa1e3
    • B
      Fix Layout initialization in the skipCache path · 6da7796c
      Behdad Esfahbod 提交于
      C++ local var initialization always tricks me.  Previously, Layout
      didn't have a constructor, which meant that defining it on the stack
      left mAdvance uninitialized.  This was not an issue when we were doing
      "new Layout()", since that invokes zero-initialization, but was an
      issue for the skipCache path that was allocating layout on stack by
      just "Layout l" instead of "Layout l = Layout()".  To avoid surprises,
      add a constructors that clears everything.
      
      Also adds reset() method to reset the layout for reuse.
      
      Change-Id: I3e02f00da9dd7d360abe13f63c310f6882292d0a
      6da7796c
    • B
      am 288c9159: Speed up cache lookup · 338de7c4
      Behdad Esfahbod 提交于
      * commit '288c9159':
        Speed up cache lookup
      338de7c4
    • B
      Speed up cache lookup · 288c9159
      Behdad Esfahbod 提交于
      Avoid copying the string for cache lookup.
      
      Bug: 17111260
      Change-Id: Ic220bfc991fc6b3dada197304aabdf72a8941bd7
      288c9159
  3. 09 8月, 2014 2 次提交
  4. 31 7月, 2014 2 次提交
  5. 30 7月, 2014 6 次提交
  6. 28 7月, 2014 1 次提交
  7. 30 7月, 2014 1 次提交
  8. 24 7月, 2014 1 次提交
  9. 26 7月, 2014 1 次提交
    • B
      Don't get stuck on invalid UTF-16 · b8208bc1
      Behdad Esfahbod 提交于
      Replaces invalid unicode with replacement character U+FFFD and always
      makes forward progress.
      
      Bug: 15849380
      
      Change-Id: Ic59ef6c64b0f5c4450bcae61597adcc269d6e7c5
      b8208bc1
  10. 25 7月, 2014 2 次提交
    • B
      Towards CSS removal · a5bb9119
      Behdad Esfahbod 提交于
      Extract language from FontStyle during shaping.  Don't attach CSS
      to LayoutContext.
      
      Change-Id: Ie621d3415410178d0d15fa7b810eb8e412342ab6
      a5bb9119
    • B
      Remove deprecated API · f0a1e5b2
      Behdad Esfahbod 提交于
      It has been unused outside minikin.
      
      Change-Id: Iaa2237767d81c77f90d0264e633375e601dd72f1
      f0a1e5b2
  11. 24 7月, 2014 1 次提交
  12. 26 7月, 2014 1 次提交
  13. 23 7月, 2014 1 次提交
  14. 11 7月, 2014 4 次提交
  15. 10 7月, 2014 1 次提交
    • R
      Assign non-coverage font runs to base font · 156acb18
      Raph Levien 提交于
      When a run has no cmap coverage in any font, use the base font. Most of
      the time, this will cause rendering of the .notdef glyph, which is
      preferable to displaying nothing. In some cases, Harfbuzz may be able to
      decompose the characters (not in the cmap) to ones that are, in which
      case we'll render those, as long as they're in the base font.
      
      Bug: 6629748
      Bug: 15816880
      Change-Id: Ibb1b9242c83626e0c7db363ad65ce44a967a005e
      156acb18
  16. 07 7月, 2014 1 次提交
  17. 27 6月, 2014 1 次提交
    • R
      Disable "palt" OpenType feature · 67ea671f
      Raph Levien 提交于
      Proper Japanese layout requires sophisticated rules for spacing
      punctuation, not just turning on the "palt" (proportional alternate)
      feature. Until we can support the whole set, roll back palt.
      
      Change-Id: If2359c529b70b1dd45dddc00e5f4aa1c91f8b0e9
      67ea671f
  18. 26 6月, 2014 1 次提交
    • R
      Add purgeCaches() method · 22e41754
      Raph Levien 提交于
      Expose a method to purge caches used for TextLayout, useful for low
      memory conditions.
      
      Change-Id: I92f41afe987b7be4af5ca0a0c50fb51be35a2758
      22e41754
  19. 20 6月, 2014 2 次提交
    • R
      Implement grapheme cluster breaking · 3d28a3fc
      Raph Levien 提交于
      This patch includes an implementation of grapheme cluster breaking,
      which is especially useful for repositioning the cursor for left and
      right arrow key presses. The implementation is closely based on Unicode
      TR29, and uses the ICU grapheme cluster break property, but is tailored
      to more closely match the existing implementation and expected behavior.
      
      Part of a fix for b/15653110 Improve behavior of arrow keys in EditText
      
      Change-Id: I8eb742f77039c9ab7b2838285018cf8a8fc88343
      3d28a3fc
    • R
      Make font runs less sticky · bb601b67
      Raph Levien 提交于
      Fixes b/15734816 In the text "Wi-Fi", "-Fi" appears bolder than "Wi"
      
      The problem was caused by "stickiness" in choosing fonts, where layout
      would prefer using a font used for preceding characters as long as it
      mapped the following characters in a run, in favor of the "best match"
      rules. This patch adds a whitelist for making the stickiness more
      conservative, only applying it for characters necessary for correct
      shaping (ZWJ and ZWNJ in particular) and basic punctuation, where it is
      desirable to match the style of the preceding text.
      
      Change-Id: I1cf116879f074a5a71c351846707bfdd07b0d320
      bb601b67
  20. 13 6月, 2014 4 次提交
  21. 12 6月, 2014 1 次提交