1. 13 11月, 2015 1 次提交
    • S
      Fix invalid decrement range of KEYCAP handling in itemize. · 3dd8757f
      Seigo Nonaka 提交于
      This issue was introduced by I22ce0e9eadc941f84e3a9b23462f194e51dd7180.
      Need to decrement the two utf16 chars in KEYCAP handling.
      
      To add unit tests, this CL also addresses the Bug: 24184208 by
      introducing self built fonts since there is no good example in system
      installed fonts.
      
      Bug: 24184208
      Change-Id: I23fa008adbaced78a3cb96442a6bc8892ab84ce8
      3dd8757f
  2. 04 11月, 2015 1 次提交
  3. 03 11月, 2015 1 次提交
    • R
      Suppress linebreaks in emoji ZWJ sequences - DO NOT MERGE · c65e6f1e
      Raph Levien 提交于
      Due to the way emoji ZWJ sequences are defined, the ICU line breaking
      algorithm determines that there are valid line breaks inside the
      sequence. This patch suppresses these line breaks.
      
      Bug: 25433289
      Change-Id: I225ebebc0f4186e4b8f48fee399c4a62b3f0218a
      c65e6f1e
  4. 30 10月, 2015 2 次提交
  5. 28 10月, 2015 2 次提交
    • S
      Add -Werror -Wall -Wextra to compiler option. · bae34768
      Seigo Nonaka 提交于
      This is 2nd trial of I30a0914a4633bd93eb60957cdf378770f04d8428
      
      - To suppress noisy unused parameter warnings, comment out unused
        arguments.
      - Add -Werror for suppressing further warning.
      - Add -Wall -Wextra for safety.
      - Use "z" prefix for format string of size_t.
      
      Verified that compile succeeded on all arm,arm64,mips,x86,x86_64.
      
      Change-Id: I7ad208464486b8a35da53929cb1cfe541ed0052f
      bae34768
    • B
      Revert "Add -Werror -Wall -Wextra to compiler option." · b4c79918
      Bart Sears 提交于
      This reverts commit 63635cff.
      
      Change-Id: I2b4b10e8afedc85dbe2d07f3e47315652b65cd14
      b4c79918
  6. 27 10月, 2015 1 次提交
    • S
      Add -Werror -Wall -Wextra to compiler option. · 63635cff
      Seigo Nonaka 提交于
      - To suppress noisy unused parameter warnings, comment out unused
        arguments.
      - Add -Werror for suppressing further warning.
      - Add -Wall -Wextra for safety.
      
      Change-Id: I30a0914a4633bd93eb60957cdf378770f04d8428
      63635cff
  7. 23 10月, 2015 1 次提交
  8. 20 10月, 2015 2 次提交
    • S
      Merge "Support Variation Selector in font selection." · 16da66db
      Seigo Nonaka 提交于
      16da66db
    • S
      Support Variation Selector in font selection. · bbdd73ec
      Seigo Nonaka 提交于
      This CL contains the following changes:
      - Add a variation selector argument into getFamilyForChar to be able to
        select fonts which support variation selector.
      - In case no fonts support the codepoint and variation selector pair,
        add a fallback rule which selects font family with ignoring variation
        selector.
      - Change FontCollection::itemize to not change the font family
        immediately preceding a variation selector.
      - Introduce unit tests for variation selectors.
      
      With this CL, TextView can render the variation selectors correctly.
      
      Bug: 11256006
      Change-Id: I22ce0e9eadc941f84e3a9b23462f194e51dd7180
      bbdd73ec
  9. 19 10月, 2015 1 次提交
  10. 15 10月, 2015 7 次提交
  11. 12 10月, 2015 1 次提交
    • S
      Introduce FontFamily::hasVariationSelector · 0f2a025d
      Seigo Nonaka 提交于
      This CL introduces new method hasVariationSelector into FontFamily but it
      is not used in production code. So no behavior changes are expected.
      
      This CL contains the following changes:
      - Introduce hasVariationSelector which returns true if the corresponding
        font has a glyph for a code point and variation selector pair.
      - Introduce purgeHbFontCache since hb_face_t won't be released by
        keeping hb_font_t.
      - Introduce unit tests with self-built font.
      
      Change-Id: I659a6d03d9ec446b409e1fba2758452abb9f44fa
      0f2a025d
  12. 02 10月, 2015 1 次提交
  13. 01 10月, 2015 4 次提交
  14. 30 9月, 2015 3 次提交
  15. 18 9月, 2015 1 次提交
    • S
      Introduce unit tests for FontCollection::itemize. · 1c2bd209
      Seigo Nonaka 提交于
      Introduced tests depend on installed font list in running device.
      I verified these test passed  on Nexus 5(hammerhead), Nexus 6(shamu)
      and Nexus 9(volantis).
      
      Bug: 11256006
      Bug: 17759267
      Change-Id: I6f806370e17f6c6d3dad8df0cb70bb475a827873
      1c2bd209
  16. 11 9月, 2015 1 次提交
    • S
      Resolve glyph ID by HarfBuzz function. · 2a79f59e
      Seigo Nonaka 提交于
      Currently codepoint to glyph ID resolution is done through MinikinFont
      interface. To support variation selector, use HarfBuzz API instead of
      calling this interface since one of its implementation Skia doesn't
      support variation selector.
      
      On the other hand, we don't want to get glyph horizontal advance values
      by HarfBuzz since HarfBuzz doesn't return correct values when the hinting
      is active.
      
      Thus, use ot_font as a parent font and override
      glyph_h_advance/glyph_h_origin functions as is.
      
      With this change, MinikinFont::GetGlyph is no longer necessary but not
      removing in this CL for easy reverting since removing interface requires
      multi-repository commit.
      
      This is a base work of b/11256006 and this patch doesn't provide any
      user visible changes.
      
      Bug: 11256006
      Change-Id: I061172c0b674bb649ce8bc013ffecf38708bdc41
      2a79f59e
  17. 29 8月, 2015 1 次提交
    • S
      Update word breaker to be aware tone mark and variation selector. · 4e3adc6f
      Seigo Nonaka 提交于
      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
      4e3adc6f
  18. 20 8月, 2015 1 次提交
    • R
      Add basic unit tests for Minikin · d8dd94b8
      Raph Levien 提交于
      Initial unit tests for Minikin functionality. Also fixes an incorrect
      Hangul case (uncovered in testing), and improves handling of broken
      UTF-16.
      
      Change-Id: I69b441d8e3b19ed06abcc56f13271abadf3d1010
      d8dd94b8
  19. 12 8月, 2015 1 次提交
  20. 08 8月, 2015 1 次提交
  21. 07 8月, 2015 1 次提交
    • R
      Gold plate grapheme cluster breaks. · c02138bf
      Roozbeh Pournader 提交于
      This tailors Unicode's Grapheme_Cluster_Break property to better
      classify characters currently with the Control property value.
      
      Also adds support for rule GB9b of UAX #29, needed since there are
      now characters we are tailoring to be Prepend. The rule was
      previously ommited in our implementation because there was no
      characters in the Prepend class.
      
      Bug: 15653110
      Change-Id: If10da88df0980f7d676c8c0b950eda5fb8dbe741
      c02138bf
  22. 30 7月, 2015 1 次提交
    • R
      Improve fallback where explicit variant is not given · 90a09c3f
      Raph Levien 提交于
      In computing scores for which fallback font to choose, a match of a
      variant given explicitly in the xml config file scores higher than a
      family with no explicit variant. One consequence is that U+2010
      HYPHEN is chosen from the Naskh Arabic font in the fallback case.
      
      This patch scores families with no variants as a match (effectively
      the same as if the xml file specified both variants). Thus, it will
      choose the first matching font (Roboto), which is a better choice.
      
      This patch also revises the list of "sticky" characters to include
      various hyphens, so Arabic (and potentially other scripts) text that
      includes hyphens can access the script-specific variants matched to
      the underlying text.
      
      Bug: 22824219
      Change-Id: I6ec1043037f89cad50ca99ac24c473395546bcdf
      90a09c3f
  23. 22 7月, 2015 2 次提交
  24. 21 7月, 2015 1 次提交
    • R
      Consistently apply break opportunities in text spans · e9ec9a1d
      Raph Levien 提交于
      It's essential not to apply a break opportunity within a replacement
      span, otherwise things can happen such as displaying the span twice.
      The old code tested this case based on zero-width characters.
      However, this test was both imprecise, and also in some cases read
      uninitialized values from the mCharWidths array, which in turn led
      to inconsistent line breaking of the same text.
      
      This patch applies all line break opportunities (as identified by
      ICU) within text (as opposed to replacement spans), and also applies
      break opportunities at the beginning and end of replacement spans,
      but avoids breaks within a replacement span.
      
      Bug: 20138621
      Change-Id: I36baeb44d6808356649e1bb69ca57f093fc8c723
      e9ec9a1d
  25. 16 7月, 2015 1 次提交
    • R
      Use ICU to lowercase words to hyphenate. · cdd19dad
      Roozbeh Pournader 提交于
      Previously, the standard C tolower() function was used, which
      didn't support any characters beyond the basic ASCII letters.
      
      Bug: 22506121
      Change-Id: Ibb81121caa29be44fbb59aa98891e9faafc57592
      cdd19dad