- 31 1月, 2017 1 次提交
-
-
由 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
-
- 20 1月, 2017 4 次提交
-
-
由 Seigo Nonaka 提交于
This is 2nd attempt of 41e02e96 The difference is adding clearElementsEithLock to Font class which is necessary to delete Fonts object outside of minikin. This method should be removed once http://b/28119474 is fixed. Here is original commit message of reverted change. This lays the groundwork for making SparseBitSet serializable. FontFamily.addFont is only used when the FontFamily is constructed. Thus, instead of calling FontFamily.addFont multiple time, passes Font list to the constructor. By this change, FontFamily can be immutable now. By making FontFamily immutable, We can create FontFamily with pre-calculated SparseBitSet. Bug: 34042446 Bug: 28119474 Bug: 34378805 Test: minikin_tests has passed Change-Id: Ice433931196f5ae79a1a7ee0c98020f914aeb5f2
-
由 Siyamed Sinir 提交于
This reverts commit 41e02e96. Bug: 34378805 Change-Id: I8f1ee00b365c8b17c6140e9e286fbea082e31364
-
由 Siyamed Sinir 提交于
-
由 Siyamed Sinir 提交于
This reverts commit 90e6b188. Bug: 34378805 Change-Id: I22b683f774813724f220b1b8584ab188f3cf4fa7
-
- 13 1月, 2017 3 次提交
-
-
由 Siyamed Sinir 提交于
-
由 Siyamed Sinir 提交于
This reverts commit c4b989fc. Test: Manually tested Bug: 34247671 Change-Id: I0510009b2deac784770f26059681b1980800abc8
-
由 TreeHugger Robot 提交于
-
- 12 1月, 2017 7 次提交
-
-
由 Seigo Nonaka 提交于
We should override the advance function only when the glyph is came from color bitmap. This was introduced by Ia88cb670ca9e0bb352bccef22c5ea3a789bcc1da. Bug: 21705974 Test: ran minikin_tests Change-Id: I3489d75ace8bffdd9035a5986a2641313feef04d
-
由 Seigo Nonaka 提交于
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: I08e9b74192f8af1d045f1276498fa4e60d73863e
-
由 Seigo Nonaka 提交于
-
由 Seigo Nonaka 提交于
-
由 TreeHugger Robot 提交于
-
由 Seigo Nonaka 提交于
-
由 Seigo Nonaka 提交于
This lays the groundwork for making SparseBitSet serializable. FontFamily.addFont is only used when the FontFamily is constructed. Thus, instead of calling FontFamily.addFont multiple time, passes Font list to the constructor. By this change, FontFamily can be immutable now. By making FontFamily immutable, We can create FontFamily with pre-calculated SparseBitSet. Bug: 34042446 Test: minikin_tests has passed Change-Id: I2576789fba6cb27687e920e2488e8bedbcf7d36f
-
- 11 1月, 2017 6 次提交
-
-
由 Seigo Nonaka 提交于
GraphemeBreak.tailoring/GraphemeBreak.genderBalancedEmoji start failing after ICU update to 58. The failure is around Rule GB9 in Unicode Standard Annex #29. GB9 forbids breaks before extending characters and before ZWJ. However the implementation in minikin only checks for extending characters. It used to work with Unicode 8.0 since ZWJ had the Grapheme_Cluster_Break property of Extend in Unicode 8.0 but it no longer has that property in Uniocde 9.0. Thus, we need to check for ZWJ explicitly. At the same time, this removes manually added PREPEND characters case from tailoredGraphemeClusterBreak which is already supported in ICU 58. Test: minikin_tests passes Bug: 34117643 Change-Id: Ib46d48bebe4a866208e050d7defc715c61fcbeb1
-
由 Seigo Nonaka 提交于
-
由 Seigo Nonaka 提交于
To avoid lock contention in Skia, use HarfBuzz implementation for retrieving boundary box and advance information from font. Bug: 21705974 Test: Manually done Change-Id: Ia88cb670ca9e0bb352bccef22c5ea3a789bcc1da
-
由 Mark Salyzyn 提交于
Test: compile Bug: 30465923 Change-Id: I9bcbf910e90a9160ed2fd2f75c5d72dba6ad6fcf
-
由 Mark Salyzyn 提交于
am: cefa7dfd Change-Id: Ia4f4b30a4466a007c15f7606485611db9b168056
-
由 Mark Salyzyn 提交于
am: 585b3720 Change-Id: I228e76e2fffcab14996e38f19687e393985e2da0
-
- 10 1月, 2017 2 次提交
-
-
由 Mark Salyzyn 提交于
am: 39ab4011 Change-Id: Ia5fd49e48b3223a708739782d6694d63d2932e48
-
由 Mark Salyzyn 提交于
Use log/log.h to harden code against liblog changes. Test: compile Bug: 30465923 Change-Id: I3dea82e76d28d9ef52d7c0f11e038c4298863eb9
-
- 06 1月, 2017 1 次提交
-
-
由 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
-
- 02 1月, 2017 1 次提交
-
-
由 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
-
- 29 12月, 2016 4 次提交
-
-
由 Mark Salyzyn 提交于
Test: build Bug: 26552300 Bug: 31289077 Change-Id: I6181ae7e84f9bdcbed50841c70d07f6906a10eb7
-
由 Mark Salyzyn 提交于
am: debbbc81 Change-Id: I97e1031fbf52cac46997e55444918d7c43abeb75
-
由 Mark Salyzyn 提交于
am: c95a4089 Change-Id: Ie77d0b3e90aeafeef05b427750c04d5589a340dc
-
由 Mark Salyzyn 提交于
am: 555d84c6 Change-Id: I9bb9b1afaa27c1d5924c6d3888861dea1ff3c18b
-
- 28 12月, 2016 1 次提交
-
-
由 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
-
- 16 12月, 2016 6 次提交
-
-
由 Dan Willemsen 提交于
am: 512defc2 -s ours Change-Id: I802c851e0518533a0c845483dc94b603c60c328a
-
由 Dan Willemsen 提交于
am: 3aca9aee Change-Id: I3d7dd7c58c544e90176f25cac568c10facce726b
-
由 Dan Willemsen 提交于
am: 2344eecf Change-Id: Ie02fbdc89e59707c899175dadb9700a4873f8010
-
由 Dan Willemsen 提交于
am: 068eab8f Change-Id: I09c27394d95417a0bb8b0ee8a48580e6e88dc8c6
-
由 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 Merged-In: Iafd31fa119e7c4d92937ca8ae8346e268a6c1f38
-
由 Dan Willemsen 提交于
-
- 14 12月, 2016 2 次提交
-
-
由 Yirui Huang 提交于
-
由 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
-
- 09 12月, 2016 2 次提交
-
-
由 Colin Cross 提交于
am: 50fbc9db Change-Id: I0d13d864021b47eed3ee730fb09783044423ecd4
-
由 Colin Cross 提交于
am: 03a64791 Change-Id: I5bd69940f0e495119dd6154fb9e1efe34fa9a062
-