- 22 12月, 2015 4 次提交
-
-
由 Bart Sears 提交于
-
由 Bart Sears 提交于
This reverts commit 5e995fb8. Change-Id: I761e0e41906742fbe3d3ac34170af3101e18042a
-
由 Seigo Nonaka 提交于
-
由 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
-
- 16 12月, 2015 1 次提交
-
-
由 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
-
- 15 12月, 2015 2 次提交
-
-
由 Dan Austin 提交于
am: b9f27a25 * commit 'b9f27a25': Refactored unsigned long negations
-
由 Dan Austin 提交于
am: 1bbe03d2 * commit '1bbe03d2': Refactored unsigned long negations
-
- 12 12月, 2015 1 次提交
-
-
由 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
-
- 11 12月, 2015 1 次提交
-
-
由 Seigo Nonaka 提交于
Removing the extra score of 2 for the script matching from the font fallback score calculation. If the two langauges have different scripts, we should treat them as different languages. Change-Id: Ie0d6f27bd1086248895935a7bd01b5d404044ad0
-
- 10 12月, 2015 1 次提交
-
-
由 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
-
- 09 12月, 2015 9 次提交
-
-
由 Seigo Nonaka 提交于
FontLanguageListCache is an intentionally leaky singleton and its internal cache won't be purged. BUG: 25122318 Change-Id: I272097e979fe44b83fd86822235350e12eda8f51
-
由 Seigo Nonaka 提交于
-
由 Raph Levien 提交于
am: d5690857 * commit 'd5690857': Avoid integer overflows in parsing fonts
-
由 Raph Levien 提交于
am: ffadd191 * commit 'ffadd191': Avoid integer overflows in parsing fonts
-
由 Raph Levien 提交于
am: 998293f9 * commit '998293f9': Avoid integer overflows in parsing fonts
-
由 Raph Levien 提交于
am: 6299a6ba * commit '6299a6ba': Avoid integer overflows in parsing fonts
-
- 08 12月, 2015 2 次提交
-
-
由 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
-
由 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)
-
- 01 12月, 2015 1 次提交
-
-
由 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
-
- 20 11月, 2015 2 次提交
-
-
由 Seigo Nonaka 提交于
-
由 Seigo Nonaka 提交于
-
- 19 11月, 2015 10 次提交
-
-
由 Seigo Nonaka 提交于
To optimize the font family search, mRanges is used for narrowing down the search range. However, mRanges is constructed from format 4 or format 12 entries. So, if the font supports a variation sequence but doesn't support the base character of the sequence, the font may not be listed in mRanges. The proper way to fix this issue is using format 14 subtable information for mRanges construction. However, this is not a trivial work since currently we rely on HarfBuzz for variation sequence lookup and it doesn't provide any API for retrieving coverage information. Thus, as the quick fix, iterate all font families in font fallback chain if the variation sequence is specified. Change-Id: I278da84be8fb8f553590e2e42ed450b7e4a34eca
-
由 Seigo Nonaka 提交于
To implement Paint.hasGlyph(), we need a new method to ask the FontCollection if it has a glyph for the code point and variation selector pair. Bug: 11256006 Change-Id: Ie4185c91bcaa4d01aee6beb97784b1f9d2a88f12
-
由 Raph Levien 提交于
Suppress linebreaks in emoji ZWJ sequences - DO NOT MERGE am: 30fca219 -s ours am: 43772d6e -s ours am: 13c1203c -s ours * commit '13c1203c': Suppress linebreaks in emoji ZWJ sequences - DO NOT MERGE
-
由 Raph Levien 提交于
Accept variation selector in emoji sequences - DO NOT MERGE am: 35e4ebec -s ours am: 562d243a -s ours am: 805f849a -s ours * commit '805f849a': Accept variation selector in emoji sequences - DO NOT MERGE
-
由 Raph Levien 提交于
am: 43772d6e -s ours * commit '43772d6e': Suppress linebreaks in emoji ZWJ sequences - DO NOT MERGE
-
由 Raph Levien 提交于
am: 562d243a -s ours * commit '562d243a': Accept variation selector in emoji sequences - DO NOT MERGE
-
由 Raph Levien 提交于
am: 30fca219 -s ours * commit '30fca219': Suppress linebreaks in emoji ZWJ sequences - DO NOT MERGE
-
由 Raph Levien 提交于
am: 35e4ebec -s ours * commit '35e4ebec': Accept variation selector in emoji sequences - DO NOT MERGE
-
由 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
-
由 Raph Levien 提交于
This patch basically ignores variation selectors for the purpose of itemization into font runs. This allows GSUB to be applied when input sequences contain variation selectors. Bug: 25368653 Change-Id: I9c1d325ae0cd322c21b7e850d0ec4d73551b2372
-
- 13 11月, 2015 1 次提交
-
-
由 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
-
- 04 11月, 2015 1 次提交
-
-
由 Raph Levien 提交于
am: c65e6f1e -s ours * commit 'c65e6f1e': Suppress linebreaks in emoji ZWJ sequences - DO NOT MERGE
-
- 03 11月, 2015 1 次提交
-
-
由 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
-
- 30 10月, 2015 2 次提交
-
-
由 Raph Levien 提交于
am: adaf42f0 -s ours * commit 'adaf42f0': Accept variation selector in emoji sequences - DO NOT MERGE
-
由 Raph Levien 提交于
This patch basically ignores variation selectors for the purpose of itemization into font runs. This allows GSUB to be applied when input sequences contain variation selectors. Bug: 25368653 Change-Id: I9c1d325ae0cd322c21b7e850d0ec4d73551b2372
-
- 28 10月, 2015 1 次提交
-
-
由 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
-