Gary Qian
b44e28c2fd
Add Getters for intrinsic widths and implement MaxInstrinsicWidth. Update tests.
...
Change-Id: I210fac9d47f55f8317ca77bca64cfcfd438a246a
2017-06-16 12:13:47 -07:00
Gary Qian
63fd514583
Restructure Building of tests and FontCollection
...
Change-Id: Ifd7d9cd505b119684ccb42c998204d41ee7ef93e
2017-06-15 12:17:29 -07:00
Gary Qian
28a9c9e3db
Now supporting initial integration with Flutter.
...
Change-Id: Id71461bd96e08eae0e24ab35a040874d960af8e0
2017-06-13 17:09:43 -07:00
Gary Qian
bb28fb38ed
Fix Minikin to allow proper compilation in Hyphenator.
...
Change-Id: I2aeb3d5e494ce941dcc8baec2f0bacd15c163094
2017-06-09 12:27:25 -07:00
Gary Qian
1575733949
Restructure Building and new features for Flutter support.
...
Change-Id: Ia0454fabcd89806cfb0e07148696e9ae66c351b6
2017-06-09 12:27:25 -07:00
Gary Qian
aab11d6991
Add TextStyle properties to better support Flutter API
...
Change-Id: I13174dafa497328c80aada02fe144bd1b3d7f396
2017-06-08 15:38:46 -07:00
Gary Qian
393c016b21
Add more testing for Paragraph and FontCollection.
...
Change-Id: Idec0077f44225f0af8bbcd6464d226555f79beae
2017-06-07 15:09:27 -07:00
Gary Qian
7180655203
Add additional test framework and tests for Italics. Overloaded paragraph text entry methods.
...
Change-Id: I0ae9abd6130edd276b1144a0092e03e47373427d
2017-06-07 13:55:28 -07:00
Gary Qian
0fb120fe87
Support for 'fake bold' text and additional tests
...
Change-Id: Ic9863052365316ea188fcf79b15378be90f440f6
2017-06-06 16:23:59 -07:00
Gary Qian
4b4afc53e5
Add fonts to Paragraph and additional tests.
...
Change-Id: I023cc9bc413975dabc770f6b59d4ffd1fc842ab2
2017-06-05 18:13:01 -07:00
Gary Qian
5b25eb426a
Add command line option to supply --font-directory=<dir>
...
Change-Id: If3036a32a82249c9c95d2c5722bdb5ab097c20a1
2017-06-05 15:22:07 -07:00
Chinmay Garde
2fe2767f0a
Update libTXT sources and tests from initial prototype.
...
This separates libTXT tests and Minikin tests and accounts for building
with an older version of ICU. Once ICU has been updated, the workarounds
for emoji handling will be removed.
Change-Id: Ic184e653a2561629b01f98aeb4f6fb88aebbfa88
2017-06-02 14:45:16 -07:00
Adam Barth
aa77a17585
Add example program from prototype
...
Change-Id: Ia6f6c442db57abe484a3efe33ecbc7553743bbb3
2017-05-11 09:38:03 -07:00
Adam Barth
4185e932d1
Add Paragraph class from prototype
...
Change-Id: Id38e4261c4d6f8fa99f405d9b21bdd9e259a9384
2017-05-11 09:25:35 -07:00
Adam Barth
3ff068f789
Import more code from the prototype
...
Change-Id: Ic5656c3ffcc3c3da8ed1fb4a44355b16c21c2f1e
2017-05-11 09:13:07 -07:00
Adam Barth
b1acb45bc9
Remove libxml2 dependency
2017-05-10 20:58:52 -07:00
Adam Barth
5c7e24ff5e
Add SkFontMgr backend for FontCollection
...
Change-Id: Ic58127bb696f87254633b01706c26c4ae862f9be
2017-05-10 11:52:41 -07:00
Adam Barth
1bee6b2604
Disable failing tests
...
After this CL, txt_unittests run and pass.
Change-Id: Ia3fbb8f4a68bd09c6b7484edd3a8cae3e95b45ab
2017-05-10 09:02:18 -07:00
Adam Barth
b38ec59b63
Build txt_unittests
...
Many of these fail because they assume they're being executed on Android, but
at least they build.
Change-Id: I5d86e3d2632a0d6fa4219d3f5182f2683c9dd314
2017-05-08 12:40:16 -07:00
Adam Barth
dae9b7cebf
Add BUILD.gn and make the library build
...
Change-Id: Ie2c3d6f97987e8a9938af8f02b093bb74dd22a18
2017-05-08 12:17:19 -07:00
Colin Cross
4d06fe21c8
Convert frameworks/minikin/tests to Android.bp am: 84bd31a702 am: 41aba62fed am: 55a0697542 -s ours
...
am: d2fd2c8a5b
Change-Id: Iae1a33dd72a84addda69b7143ceab58cffdb588b
2017-05-04 15:26:40 +00:00
Colin Cross
dd6507852d
Convert frameworks/minikin/tests to Android.bp
...
am: e6ac0e7c3c -s ours
Change-Id: I2f6b99043828bb6757836fe66ce7822cf28320a1
2017-05-04 15:26:25 +00:00
Colin Cross
d2fd2c8a5b
Convert frameworks/minikin/tests to Android.bp am: 84bd31a702 am: 41aba62fed
...
am: 55a0697542 -s ours
Change-Id: Ibb26e4f858efc8314b46f4c67b75013b4e098fc2
2017-05-04 15:24:32 +00:00
Colin Cross
e6ac0e7c3c
Convert frameworks/minikin/tests to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I930debdd129da7f61ac4b764980f73dfd487785d
Merged-In: I930debdd129da7f61ac4b764980f73dfd487785d
(cherry picked from commit 2bfc56ad2fcd0f65551a9c2ed8a9c2350f2e0cd1)
2017-05-04 08:14:50 -07:00
Colin Cross
55a0697542
Convert frameworks/minikin/tests to Android.bp am: 84bd31a702
...
am: 41aba62fed
Change-Id: I19bdd07630b420505b05c04f3734a6c6ca4919e4
2017-05-04 14:59:34 +00:00
Colin Cross
41aba62fed
Convert frameworks/minikin/tests to Android.bp
...
am: 84bd31a702
Change-Id: Id510518f6fc534de65caa28bd10f8376b5234d68
2017-05-04 14:56:05 +00:00
Colin Cross
84bd31a702
Convert frameworks/minikin/tests to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I930debdd129da7f61ac4b764980f73dfd487785d
Merged-In: I930debdd129da7f61ac4b764980f73dfd487785d
(cherry picked from commit 2bfc56ad2fcd0f65551a9c2ed8a9c2350f2e0cd1)
2017-05-03 14:45:52 -07:00
TreeHugger Robot
ca0028d503
Merge "Convert frameworks/minikin/tests to Android.bp"
2017-05-03 21:35:27 +00:00
Colin Cross
533a030f8f
Export libicuuc headers from libminikin am: 4cab55f535 am: ddd4ea4639 am: ae2d121878
...
am: 1e31920c7d
Change-Id: Ic2d0faa137d935bba4bfc9c82de92edcef0def1e
2017-05-03 02:45:43 +00:00
Colin Cross
1e31920c7d
Export libicuuc headers from libminikin am: 4cab55f535 am: ddd4ea4639
...
am: ae2d121878
Change-Id: Ied63cff24c4aaf0a2e99f8d55704350855ae6720
2017-05-03 02:43:13 +00:00
Colin Cross
ae2d121878
Export libicuuc headers from libminikin am: 4cab55f535
...
am: ddd4ea4639
Change-Id: I64f9ef06af9b995cb87c832b8bf8d666a723f012
2017-05-03 02:40:43 +00:00
Colin Cross
ddd4ea4639
Export libicuuc headers from libminikin
...
am: 4cab55f535
Change-Id: Iaf283ac61f0985bea25d0109918a05f0b8600045
2017-05-03 02:38:43 +00:00
Colin Cross
4cab55f535
Export libicuuc headers from libminikin
...
Test: m -j checkbuild
Change-Id: Ibecebc8a1bd4028c083424476dd379c0ce0149a1
2017-05-02 17:18:48 -07:00
Fredrik Roubert
70bbc1f73a
Let mk_hyb_file.py replace SS in .chr.txt files with . am: a3e5cd344d am: 3aca045a63 am: 347fd0da6a
...
am: f76cd8e3ec
Change-Id: I55d3bf17902b122321d1d8093eb9277102f026d7
2017-04-27 15:01:19 +00:00
Fredrik Roubert
f76cd8e3ec
Let mk_hyb_file.py replace SS in .chr.txt files with . am: a3e5cd344d am: 3aca045a63
...
am: 347fd0da6a
Change-Id: Ic360ebf8bc82e7ff9fd6d76d84a0257fda9ed136
2017-04-27 14:55:29 +00:00
Fredrik Roubert
347fd0da6a
Let mk_hyb_file.py replace SS in .chr.txt files with . am: a3e5cd344d
...
am: 3aca045a63
Change-Id: Ibdd3ccabf5dd4d8f5d0fe0f119027835bfd72443
2017-04-27 14:52:58 +00:00
Fredrik Roubert
3aca045a63
Let mk_hyb_file.py replace SS in .chr.txt files with .
...
am: a3e5cd344d
Change-Id: I1c15bc7734bb78d1b5042d7080dfaf3b2cd3e6d8
2017-04-27 14:50:28 +00:00
Fredrik Roubert
a3e5cd344d
Let mk_hyb_file.py replace ßSS in .chr.txt files with ßẞ.
...
Here these mappings are used to convert from uppercase to lowercase,
and mk_hyb_file.py doesn't handle multi-character uppercase sequences.
Therefore, in case the sequence ßSS is encountered in a .chr.txt,
replace it internally with ßẞ.
Test: make -j
Change-Id: I8f678aad9298784f70645c453ec07da5bf43cb66
2017-04-27 15:18:56 +02:00
Colin Cross
5e6092310e
Convert frameworks/minikin to Android.bp
...
am: 6491d60fbb
Change-Id: Ib00b77742afae4de02699035982f8b1f81e625ab
2017-04-25 18:24:23 +00:00
Colin Cross
6491d60fbb
Convert frameworks/minikin to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I71d3406054b35dd4e8ae30f46eec6cef77eef160
(cherry picked from commit f938933830a43aa6d99b9c7c0610f541e636d0d9)
2017-04-25 18:04:46 +00:00
Colin Cross
2bfc56ad2f
Convert frameworks/minikin/tests to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I930debdd129da7f61ac4b764980f73dfd487785d
2017-04-25 10:53:34 -07:00
Colin Cross
2e08f5d20b
Convert frameworks/minikin to Android.bp am: 415ff26d87 am: 640a047ec8 am: ca7d98a9ee -s ours
...
am: 9129b42b71 -s ours
Change-Id: I659eedfece0e33967b04b944dbea4eb7807fde2c
2017-04-25 02:00:30 +00:00
Colin Cross
9129b42b71
Convert frameworks/minikin to Android.bp am: 415ff26d87 am: 640a047ec8
...
am: ca7d98a9ee -s ours
Change-Id: I7bf4d9aed6132ff9073a7e6efe5b726958581575
2017-04-25 01:42:28 +00:00
Colin Cross
ca7d98a9ee
Convert frameworks/minikin to Android.bp am: 415ff26d87
...
am: 640a047ec8
Change-Id: I21dd4bc68c78649974497a6b14b1d89fc4e1bf77
2017-04-25 01:26:51 +00:00
Colin Cross
640a047ec8
Convert frameworks/minikin to Android.bp
...
am: 415ff26d87
Change-Id: I622bfc09bab45aaaa7e621b1c10ff0ed5bd499a9
2017-04-25 01:24:56 +00:00
Colin Cross
415ff26d87
Convert frameworks/minikin to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I71d3406054b35dd4e8ae30f46eec6cef77eef160
Merged-In: I71d3406054b35dd4e8ae30f46eec6cef77eef160
2017-04-24 17:10:04 -07:00
Colin Cross
f938933830
Convert frameworks/minikin to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I71d3406054b35dd4e8ae30f46eec6cef77eef160
2017-04-20 12:44:52 -07:00
Seigo Nonaka
d612c57d3b
Reduce heap memory in minikin. am: 818fbee83a
...
am: c2e7357cd6
Change-Id: I0d3c390915f9eef90afd2c655295929e5de0534c
2017-04-15 01:36:15 +00:00
Seigo Nonaka
c2e7357cd6
Reduce heap memory in minikin.
...
am: 818fbee83a
Change-Id: Ifb5bbba4ce7d452d844693409ac0ecad3168ed29
2017-04-15 00:59:39 +00:00
Seigo Nonaka
818fbee83a
Reduce heap memory in minikin.
...
This patch reduces about 73 kB memory.
The original SparseBitSet could contain full 32bit integers, but all of
that is not necessary for Unicode code points. By reducing the supported
range to up to Unicode maximum, U+10FFFF, we can save extra memory.
SparseBitSet holds 256-bit sliced pages and indices of them.
Previously, we needed to hold up to 2^24-1 pages for keeping 32-bit
integers.
This CL limits the number of pages to 2^16-1 (65535), so that
SparseBitSet only supports 24-bit integers now, but this is sufficient
for keeping all Unicode code points. With this change, we can change the
index integer type from uint32_t to uint16_t.
Bug: 37357593
Test: minikin_tests passes
Change-Id: I462cc27927752c942ac5da0bf303a5afb81b87a3
2017-04-14 22:54:27 +00:00