1. 13 9月, 2016 1 次提交
  2. 17 8月, 2016 1 次提交
  3. 16 8月, 2016 1 次提交
    • C
      Fix google-explicit-constructor warnings in minikin · 0114c6a1
      Chih-Hung Hsieh 提交于
      * Add explicit keyword to conversion constructors,
        or add NOLINT(implicit) for implicit converters.
      Bug: 28341362
      Test: build with WITH_TIDY=1
      
      Change-Id: I0c7b90f9bb953a9f2e4f0fb2032fa65ac604b9ca
      Merged-In: I0c7b90f9bb953a9f2e4f0fb2032fa65ac604b9ca
      0114c6a1
  4. 26 5月, 2016 2 次提交
  5. 20 4月, 2016 1 次提交
  6. 19 4月, 2016 1 次提交
  7. 15 4月, 2016 2 次提交
  8. 14 4月, 2016 2 次提交
  9. 13 4月, 2016 1 次提交
    • R
      Clear mLineWidths in LineBreaker::finish() · 879e8a3a
      Raph Levien 提交于
      There was the possibility of stale indents from previous invocations
      persisting in the mLineWidths across multiple invocations. This patch
      clears them.
      
      Bug: 28090810
      Change-Id: I3621dfbe983512046289373711709aeade52eab4
      879e8a3a
  10. 12 4月, 2016 2 次提交
    • S
      Fix minikin_unittests · af36413c
      Seigo Nonaka 提交于
      am: 6c60831c
      
      * commit '6c60831c':
        Fix minikin_unittests
      
      Change-Id: I865dd495ed60b0bbace0ba77b2071dac058887e9
      af36413c
    • S
      Fix minikin_unittests · 6c60831c
      Seigo Nonaka 提交于
      This CL fixes following test cases in minikin_tests
      - FontFamilyTest.hasVariationSelectorTest
      - HbFontCacheTest.getHbFontLockedTest
      - HbFontCacheTest.purgeCacheTest
      
      For the fix of FontFamilyTest.hasVariationSelectorTest, removing virtual
      from GetUniqueId() in MinikinFont.  After [1], MinikinFont's destructor
      started calling purgeHbCache() which calls virtual method,
      MinikinFont::GetUniqueId().  Fortunately, the SkTypeface::uniqueID()
      returns just internal value, so we can store it at the construction time
      and use it instead of calling SkTypeface::uniqueID() every time.
      
      This patch also changes purgeHbFont to purgeHbFontLocked, as all uses of
      it were already under global mutex. This change avoids deadlock on
      explicit unref, as when invoked by a Java finalizer from the Java object
      that holds a reference to the font.
      
      Some of the tests needed to change to using the ref counting protocol
      rather than explicitly destructing font objects, as well.
      
      [1] 9afcc6e2
      
      Bug: 28105730
      Bug: 28105688
      Change-Id: Ie5983c4869147dacabdca81af1605066cd680b3f
      6c60831c
  11. 09 4月, 2016 3 次提交
  12. 08 4月, 2016 3 次提交
    • R
      Avoid copying of font table data · aaa4e347
      Raph Levien 提交于
      The hb_font_t object holds on to tables of font data, acquired through
      the MinikinFont::GetTable interface, which is based on copying data
      into caller-owned buffers. Now that we're caching lots of hb_font_t's,
      the cost of these buffers is significant.
      
      This patch moves to a different interface, inspired by HarfBuzz's
      hb_reference_table API, where the font can provide a pointer to the
      actual font data (which will often be mmap'ed, so it doesn't even
      consume physical RAM).
      
      Bug: 27860101
      Change-Id: Id766ab16a8d342bf7322a90e076e801271d527d4
      aaa4e347
    • R
      Purge hb font on Minikin font destruction · aa495426
      Raph Levien 提交于
      am: 9afcc6e2
      
      * commit '9afcc6e2':
        Purge hb font on Minikin font destruction
      
      Change-Id: Idb2034353407e8b390cc07862803f846d5adea0c
      aa495426
    • R
      Purge hb font on Minikin font destruction · 9afcc6e2
      Raph Levien 提交于
      This patch eagerly purges the corresponding hb_font_t object from
      the HbFontCache when the underlying MinikinFont is destroyed. After
      that, the key will no longer be accessed, so having the entry is
      wastes memory.
      
      Bug: 27251075
      Bug: 27860101
      Change-Id: I1b98016133fe3baf6525ac37d970a65ddccadb4f
      9afcc6e2
  13. 05 4月, 2016 1 次提交
  14. 04 4月, 2016 1 次提交
    • S
      Support multiple locales for font language settings. · f3afe92d
      Seigo Nonaka 提交于
      Some fonts support multiple scripts, for example, some fonts for
      Korean supports not only "Kore" but also "Jamo".
      
      To select fonts based on their multiple languages, this CL introduces
      the following changes:
      - Compares all languages of the font family and use the maximum score
        for font selection.
      - Even if each language of the font family doesn't support the requested
        language, the font get score of 2 if the requested font is covered by
        all of the languages of the font family. For example, the font for
        "ko-Hang,ko-Hani" gets score of 2 for the requested language "ko-Kore".
      
      Bug: 26687969
      
      Change-Id: I7f13b51464c9b01982bb573251d77052b9ddbd70
      f3afe92d
  15. 01 4月, 2016 1 次提交
  16. 31 3月, 2016 1 次提交
    • R
      Try putting combining marks in the same font run · 16ed4ef0
      Roozbeh Pournader 提交于
      Indic combining marks, when combined with a common character such as
      a hyphen or a dotted circle, used to get rendered in a different font
      due to the greedy algorithm used in determining runs, which resulted
      in the base character and the combining mark getting rendered in
      separate font runs, resulting in a dotted circle appearing in phrases
      such as "100-ാം" (0031 0030 0030 002D 0D3E 0D02).
      
      This change makes combining marks change the font run of the base
      character if the base character is supported in the same font as the
      combining mark, similar to the support for emoji modifiers and the
      combining keycap.
      
      Bug: 25036888
      Bug: 24535344
      Change-Id: I8e2798e8ecb8efaf723a0fd02c05c6fbdef8b365
      16ed4ef0
  17. 18 3月, 2016 1 次提交
  18. 17 3月, 2016 1 次提交
  19. 08 3月, 2016 1 次提交
  20. 04 3月, 2016 1 次提交
  21. 03 3月, 2016 2 次提交
  22. 27 2月, 2016 4 次提交
  23. 26 2月, 2016 2 次提交
    • S
      Use color font if skin tone is specified. · 77270a50
      Seigo Nonaka 提交于
      am: 0036da16
      
      * commit '0036da16':
        Use color font if skin tone is specified.
      77270a50
    • S
      Use color font if skin tone is specified. · 0036da16
      Seigo Nonaka 提交于
      If skin tone is specified, the base emoji should be emoji style even
      if it is text presentation default emoji.
      
      This patch also removes wrong test case which expects default emoji
      presentation but it is controlled by family order in /etc/fonts.xml
      and there is no special logic for default presentation in minikin.
      Thus the default presentation unit test should not be in minikin.
      
      Bug: 27342346
      
      Change-Id: I74a2b2feab4d559535049e368cfd833063cce81c
      0036da16
  24. 25 2月, 2016 3 次提交
  25. 23 2月, 2016 1 次提交