1. 22 12月, 2015 4 次提交
    • B
      bba7b1b4
    • B
      Revert "Save all kind of script tags into FontLanguage." · 6c4c098c
      Bart Sears 提交于
      This reverts commit 5e995fb8.
      
      Change-Id: I761e0e41906742fbe3d3ac34170af3101e18042a
      6c4c098c
    • S
      96233efe
    • S
      Save all kind of script tags into FontLanguage. · 5e995fb8
      Seigo Nonaka 提交于
      The main purpose of this CL is expanding FontLanguage to be able to
      save full script tag. Previously, FontLangauge kept only limited script
      tags. With this CL, FontLanguage keeps all script tags.
      
      This CL contains the following changes:
      - FontLanguage changes:
      -- Moved to private directory not to be instantiated outside of Minikin.
      -- Removed bool(), bits(), FontLanguage(uint32_t) methods which are no
         longer used.
      -- Change the FontLanguage internal data structure.
      -- Introduces script match logic.
      
      - FontLanguages changes:
      -- Moved to private directory not to be instantiated outside of Minikin.
      -- This is now std::vector<FontLanguage>
      
      - FontLanguageListCache changes:
      -- Now FontLanguageListCache::getId through
         FontStyle::registerLanguageList is the only way to instantiate the
         FontLanguage.
      -- Normalize input to be BCP47 compliant identifier by ICU.
      
      Bug: 26168983
      Change-Id: I8df992a6851021903478972601a9a5c9424b100c
      5e995fb8
  2. 16 12月, 2015 1 次提交
    • S
      No op build should not build minikin_tests · c5ec243b
      Seigo Nonaka 提交于
      Previous CL[1] adds module names into LOCAL_ADDITIONAL_DEPENDENCIES, but
      it was wrong. LOCAL_ADDITIONAL_DEPENDENCIES only accepts file path.
      
      However, BUILD_PREBUILT doesn't provide a file path of the installed
      font. So use custom tool and LOCAL_GENERATED_SOURCES instead.
      
      Confirmed no-op build doesn't built minikin_tests and
      continuous_native_tests.zip contains all necessary files.
      
      [1]: I7d83abc077bce4e38fd93c7d607bc7e1f7871e6b
      
      BUG: 26197092
      Change-Id: I90e80036248ae72e0e0f9c6144a259f5f96ec9ce
      c5ec243b
  3. 15 12月, 2015 2 次提交
  4. 12 12月, 2015 1 次提交
    • D
      Refactored unsigned long negations · 1bbe03d2
      Dan Austin 提交于
      Replaced two instances of negating an unsigned long, which was
      resulting in aborts from unsigned integer sanitization with the
      equivalent logical not-add 1.
      
      Bug: 25884483
      Change-Id: Ic7498e0af638dcd438ce69803021d3cdc3acd4f6
      1bbe03d2
  5. 11 12月, 2015 1 次提交
  6. 10 12月, 2015 1 次提交
    • S
      Copy test font files into data directory. · efaf02ea
      Seigo Nonaka 提交于
      To work native tests with additional font related files, copy
      the files into /data/nativetest/minikin_tests/.
      This copy only happens when the minikin_tests is built.
      It is not an expected to copy the font files into the product image.
      
      Change-Id: I7d83abc077bce4e38fd93c7d607bc7e1f7871e6b
      efaf02ea
  7. 09 12月, 2015 9 次提交
  8. 08 12月, 2015 2 次提交
    • S
      Select emoji font based on variation selectors. · 369d2d44
      Seigo Nonaka 提交于
      If U+FE0E is appended to the emoji code point, the glyph should have a
      text presentation.
      On the other hand, if U+FE0F is appended to the emoji code point, the
      glyph should have an emoji presentation.
      
      Bug: 11256006
      Change-Id: I5187d44500b13a138e7ffbcf2c72e2da06374c8c
      369d2d44
    • R
      Avoid integer overflows in parsing fonts · 6299a6ba
      Raph Levien 提交于
      A malformed TTF can cause size calculations to overflow. This patch
      checks the maximum reasonable value so that the total size fits in 32
      bits. It also adds some explicit casting to avoid possible technical
      undefined behavior when parsing sized unsigned values.
      
      Bug: 25645298
      Change-Id: Id4716132041a6f4f1fbb73ec4e445391cf7d9616
      (cherry picked from commit 183c9ec2)
      6299a6ba
  9. 01 12月, 2015 1 次提交
    • R
      Avoid integer overflows in parsing fonts · 183c9ec2
      Raph Levien 提交于
      A malformed TTF can cause size calculations to overflow. This patch
      checks the maximum reasonable value so that the total size fits in 32
      bits. It also adds some explicit casting to avoid possible technical
      undefined behavior when parsing sized unsigned values.
      
      Bug: 25645298
      Change-Id: Id4716132041a6f4f1fbb73ec4e445391cf7d9616
      183c9ec2
  10. 20 11月, 2015 2 次提交
  11. 19 11月, 2015 10 次提交
  12. 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
  13. 04 11月, 2015 1 次提交
  14. 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
  15. 30 10月, 2015 2 次提交
  16. 28 10月, 2015 1 次提交
    • 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