1. 28 12月, 2016 1 次提交
    • M
      minikin: Replace cutils/log.h with android/log.h or log/log.h · 555d84c6
      Mark Salyzyn 提交于
      - replace cutils/log.h with android/log.h (main buffer logging)
      - replace cutils/log.h with log.log.h (+SafetyNet logging)
      - define LOG_TAG before use.
      
      Test: compile
      Bug: 26552300
      Bug: 31289077
      Change-Id: I7a4803dd66f31b7103e09e5ff5b8fa523fa0fd60
      555d84c6
  2. 10 6月, 2016 1 次提交
    • S
      Always use minikin namespace. · 14e2d136
      Seigo Nonaka 提交于
      Here is a new policy of the namespace of minikin.
      - All components should be in minikin namespace.
      - All tests are also in minikin namespace and no anonymous namespace.
      
      Bug: 29233740
      Change-Id: I71a8a35049bb8d624f7a78797231e90fed1e2b8c
      14e2d136
  3. 17 2月, 2016 1 次提交
    • S
      Improve Paint.measureText and Paint.hasGlyph for variation sequences. · 6b1c227d
      Seigo Nonaka 提交于
      Before this patch, the font fallback chain iterated all installed font
      families if a variation selector was specified.
      
      This CL narrows down the range of iteration.
      To decide the font family for the variation sequence, we need to search
      for both the variation sequence and its base code point.
      The new range of the iteration is a union of them.
      
      With this change, the running time of Paint.hasGlyph for the variation
      sequence improves 50% and the running time of Paint.measureText for the
      variation sequence improves 40% for the large text case on Nexus 6
      userdebug.
      
      Bug: 26784699
      Bug: 11750374
      
      Change-Id: Iced1349e3ca750821d8882c551551f65bb569794
      6b1c227d
  4. 13 2月, 2016 2 次提交
  5. 08 1月, 2016 2 次提交
  6. 08 12月, 2015 1 次提交
    • 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
  7. 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
  8. 24 10月, 2014 1 次提交
    • R
      Silently ignore invalid rangeOffset values · 5f11abd3
      Raph Levien 提交于
      Some fonts contain a cmap segment for char 0xffff that contains an
      invalid rangeOffset. This was rejected by the existing code, which
      means the font is considered to have empty Unicode coverage. This patch
      just discards the invalid segment (consistent with OpenType Sanitizer),
      making the custom font display.
      
      Bug: 18106256
      Change-Id: Icc8616a3030f80e62db906332be64d434ae72ea2
      5f11abd3
  9. 26 4月, 2013 1 次提交
    • R
      Initial commit of Minikin library · 9cc9bbe1
      Raph Levien 提交于
      This is the initial draft of Minikin, a library intended to perform text
      layout functions. This version does basic weight selection and font runs
      for scripts, and also has a simple renderer for drawing into bitmaps,
      but is lacking measurement, line breaking, and a number of other
      important features. It also lacks caching and other performance
      refinements.
      
      Change-Id: I789a2e47d11d71202dc84b4751b51a5e2cd9c451
      9cc9bbe1