1. 31 1月, 2017 1 次提交
    • S
      Introduce createCollectionWithVariation. · 065c46a6
      Seigo Nonaka 提交于
      This is 2nd attempt of I08e9b74192f8af1d045f1276498fa4e60d73863e.
      The original CL was reverted due to conflicting with another CL submitted
      before.
      
      Here is the original commit message of reverted change.
      
      This lays the groundwork for variation settings support.
      Since we should regard different variations of a font as different fonts, we
      need to create new typefaces. To reuse the same instance of MinikinFont, as
      much as possible, FontFamily::createFamilyWithVariation now reuses an
      existence instance, while incrementing the reference count.
      
      Test: minikin_tests
      Bug: 33062398
      Change-Id: Ib25bf1bb5a5191e15a6523954146521464c91906
      065c46a6
  2. 20 1月, 2017 4 次提交
  3. 13 1月, 2017 3 次提交
  4. 12 1月, 2017 7 次提交
  5. 11 1月, 2017 6 次提交
  6. 10 1月, 2017 2 次提交
  7. 06 1月, 2017 1 次提交
    • S
      Reduce memory usage of FontCollection. · c4b989fc
      Seigo Nonaka 提交于
      Since switching to 64-bit devices, size_t is now a 64-bit integer.
      FontCollection::Range uses two size_t integers but they just point to an index
      in mFamilies. To reduce the memory usage, this CL changes the size_t integers to
      uint8_t.
      
      The maximum size of each integer in Range is the size of FontCollection::mFamilies.
      The largest this can go is the system font list plus a user defined family, which
      has 91 families. So an 8-bit integer should be enough.
      
      With this change, about 84 KiB of memory will be saved per font collection. Since
      eight font collections are created during bootstrap, about 670 KiB of memory will
      be saved with this CL.
      
      Bug: 33562608
      Test: Ran FontCollection.collectionAllocationSizeTest on a 64-bit device.
            On my Nexus 5X, it changed from 327358 to 241342.
      
      Change-Id: I9e01d237c9adcb05e200932401cb1a4780049f86
      c4b989fc
  8. 02 1月, 2017 1 次提交
    • S
      Tune line breaking for justification · 3a74bcd0
      Seigo Nonaka 提交于
      Add an "mJustified" for justification, and tune the line breaking to
      produce good results. Major differences for fully justified text include:
      - Space can be shrunk in justified text.
      - Hyphenation should be more aggressive in justified text.
      
      Also adds a penalty for the last line being very short. This is tuned
      to be more aggressive for ragged right than for justified text.
      
      This is based on a patch by Raph Levien (raph@google.com).
      
      Bug: 31707212
      Test: Manually tested with Icbfab2faa11a6a0b52e6f0a77a9c9b5ef6e191da
      Change-Id: If366f82800831ccc247ec07b7bc28ca4c6ae0ed6
      3a74bcd0
  9. 29 12月, 2016 4 次提交
  10. 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
  11. 16 12月, 2016 6 次提交
  12. 14 12月, 2016 2 次提交
    • Y
      Merge "Change language score calculation" · b2158605
      Yirui Huang 提交于
      b2158605
    • D
      Use LOCAL_TEST_DATA to install test data · 549e2315
      Dan Willemsen 提交于
      This will handle installation for local builds as well as for the test
      bundles.
      
      Test: m -j minikin_tests; ls $OUT/data/nativetest*/minikin_tests
      Test: m -j continous_native_tests dist; zipinfo -1 out/dist/*continuous_native_tests*.zip
      Test: /data/nativetest{,64}/minikin_tests/minikin_tests
      Change-Id: Iafd31fa119e7c4d92937ca8ae8346e268a6c1f38
      549e2315
  13. 09 12月, 2016 2 次提交