25 Commits

Author SHA1 Message Date
Raph Levien
ab815a701e Fix for bug 7467609 Bad rendering of Telugu text
This change moves Telugu back before the fallback font. Previously it
had been moved to after it because it contained incorrect mappings of a
number of characters, including U+2212 and U+FFFD. These fonts have now
been fixed. When placed after the Droid Sans Fallback font, the glyph
count for complex script shaping exceeded the 2^16 limit, causing
incorrect rendering.

This patch depends on the fix for the Lohit-Telugu font.

Change-Id: Ib1bc665a246c4ad65a0dea1c261df5696b440344
2012-12-04 14:33:45 -08:00
Bart Sears
562c45cc84 Updated versions of DroidSansFallback
Latest versions of DroidSansFallback from Monotype.

The DroidSansFallback.ttf file has some additional glyphs and
glyph fixes (including a fix for bug 6723057 and will likely fix
bug 6629748).  It continues to cover Korean Hangul but does not
cover CJK Ext A (for space reasons on small system image devices).
The DroidSansFallbackFull.ttf file has the bug fixes listed and
also removes the Korean Hangul because we are now going to use
NanumGothic for Korean (NanumGothic.ttf is added in a separate
CL in the external/naver-fonts directory).

The falback_fonts.xml file has been modified to add NanumGothic.ttf
before DroidSansFallback.

Bug: 4531601
Bug: 6723057
Bug: 6629748
Change-Id: I670d33078b4a97c4eda00fc2323be187696e927a
2012-09-24 00:32:57 -07:00
Billy Hewlett
ac1cbaf2e5 DO NOT MERGE Han Preference
Cherry-pick Ib5dd86950156c5a438f25c289acb839206bb455a from master.

Data: label MTLmr3m with "ja" locale attribute, fallback_fonts-ja.xml removed,
as we only need a single fallback font file
Code: Add locale and variant to TextLayoutCache.  Paint.java sets textLocale as
the language (for example, "ja") rather than the language/locale concatenated
(for example "ja_JP")

This checkin, along with Change-Id: Id8c91ae0be6cad8a7ef77a0cd5803676290986c1,
allows text view objects to set their locale dynamically and skia will use the
correct font for the locale.

Change-Id: Ieb60b0d7a39fcfef4f8ce90cd4f6065d33673710
2012-08-20 08:51:23 -07:00
Victoria Lease
2a41a2d4cc Demoted Lohit-Telugu.ttf in fallback lists.
Lohit-Telugu.ttf provides incorrect glyphs for U+FFBC-10007, masking
fonts later in the fallback chain that provide correct glyphs for
that range. I've temporarily demoted Lohit-Telugu in the fallback
order so that this does not happen, and appended a comment that
explains why. In the future, when we have our own Telugu font, we
can place that with the rest of the Indic fonts in the fallback list.

Bug: 6723057
Change-Id: I15fb06dcb7dd13289e226de01c36058134a1b7cb
2012-07-17 16:41:18 -07:00
Billy Hewlett
973835b264 Revert "Revert "Elegant fonts for Webkit, Compact fonts for Textview (Data)""
This reverts commit f49a19e96b721c89d4fe2f579f201b5c5ae86531
2012-06-21 09:57:57 -07:00
Billy Hewlett
f49a19e96b Revert "Elegant fonts for Webkit, Compact fonts for Textview (Data)"
This reverts commit be97f1458bc90619ad68859dfdd0cb5f74daaa4d
2012-06-21 09:45:05 -07:00
Billy Hewlett
be97f1458b Elegant fonts for Webkit, Compact fonts for Textview (Data)
Font files are marked with elegant or compact in attributes.
This is the data check for the code checkin with a similar title

Bug: 6649136
Change-Id: Ie246ae0cff55c1e76c0f32012a740547274e8221
2012-06-20 09:24:26 -07:00
Raph Levien
d26e18bfe9 Add missing XML close tag. Fixes bug 6488238.
Change-Id: Ic1197d0b8bece1595626a92f025cb7ae7e96163d
2012-05-14 13:11:57 -07:00
Victoria Lease
c24de468ff Add fallback fonts for Malayalam, Kannada, and Telugu scripts
Bug: 6232193
Change-Id: If0ba9fd15560d2e5e91712b3f954f139d8c081b1
2012-05-08 11:01:09 -07:00
Victoria Lease
bd1844d272 Add Droid Devanagari/Tamil fonts.
These fonts are replacements for the Lohit Devanagari/Tamil fonts.
We need to fit Devanagari onto all builds, so we only provide a single,
regular-weight font there, but Tamil is omitted for SMALLER_FONT_FOOTPRINT
builds and gets UI/non-UI and Regular/Bold weight versions. The UI versions
of the fonts are used for UI/system display, and the non-UI versions are
used only by WebView.

Bug: 6318791
Change-Id: I50ff6ec4bb428c0ac30049273f03a94de05b0c4f
2012-05-07 11:50:13 -07:00
Fabrice Di Meglio
cf4284bce1 Update Arabic font for SystemUI
- bug #5987379 Need an Arabic font with metrics "compatible" with Roboto
- use the Alt version with GSUB optimizations

Change-Id: I4d8c62cab37a7b010abab602c39899084d347fdc
2012-05-04 15:14:58 -07:00
Fabrice Di Meglio
276de3e1eb Add new Arabic font for SystemUI
- still work in progress
- bug #5987379

Change-Id: I0a7f7437c9061eab0abc9d5979c947eb5511992a
2012-04-12 16:40:56 -07:00
Russell Brenner
1c097a9c21 Add Japanese to fallback fonts
On devices with adequate space, add MTLmr3m.ttf (Japanese) to the set
of fallback fonts. By default, DroidSansFallback (Chinese) is given
priority over MTLmr3m. If the locale is changed to Japanese, the
priority is reversed.

Bug: 6272763
Change-Id: I785a927d6dff0206aa9a670c51fdad76e219fc97
2012-04-03 10:01:16 -07:00
Russell Brenner
2b4b35c13a Add notes about switching languages
Fallback and vendor font configuration files now describe how to
customize font setup for Han languages (Chinese, Japanese, Korean).

Bug: 5873170
Change-Id: Id27cce9a6ba2b6ce61b221342dabdd1b40962933
2012-03-13 18:03:47 -07:00
Fabrice Di Meglio
a65bc502a4 Fix bug #5968466 system running out of memory during WebView performance test
- there can be only one Arabic "normal" fallback

Change-Id: I07f8123be0988bbb5b2fb23cc3fbf13870ef36c0
2012-02-06 15:33:30 -08:00
Fabrice Di Meglio
9b255cac77 Revert back to DroidSansArabic font for SystemUI
- see bug #5957987 Revert to use DroidSansArabic instead of DroidNaskh font for Arabic Shaping in SystemUI
- DroidNaskh was having FontMetrics not compatible with Roboto

Change-Id: I9f3031c250f907c80f3992f71d929dc91686e1e5
2012-02-02 18:57:19 -08:00
Bart Sears
e60bae1d1d Emoji characters for Android
Change-Id: I887dca18bb5046a8390bf96c99d983d9c434648f
2011-12-13 20:58:28 -08:00
Bart Sears
57e0855456 Add Lohit-Tamil.ttf and Lohit-Bengali.ttf to Fallback list
Bug: 5370370

Lohit-Tamil.ttf and Lohit-Bengali.ttf were added to the system
image in CL 4baaa05f0383bee670a0bebc177b94a1c119eab7 but did not
get added to the fallback_fonts.xml file, so skia will never find
these fonts.  This CL will not increase the sysetm image size, it
will simply let Skia find these fonts.

Change-Id: I85b3c191c278181ee36a88841832dcfba0bab886
2011-10-26 17:06:23 -07:00
Russell Brenner
9d8c7e8242 Replaced Lohit_Hindi with Lohit-Devanagari
Lohit-Devanagari is now provided by external/lohit-fonts, replacing
Lohit_Hindi from here. Removed font from fonts.mk and renamed in
fallback_fonts.xml.

Bug: 5364436
Change-Id: I0b8f65dbfdbec1802fba526209d7f88d2cf64fc4
2011-09-23 15:09:52 -07:00
Russell Brenner
e8a7a72b96 Add Armenian and Georgian fonts
Add Armenian (25K) and Georgian (47K) to all devices.

Bug: 5240378
Change-Id: Ia16c6db54923eb9e27c931dfd2f3c3b052361307
2011-09-02 09:48:47 -07:00
Russell Brenner
36de369b19 Add Lohit-Hindi.ttf as a system fallback font
Bug: 5087744
Change-Id: Iccb695d082a3ad06f61384f097db2518bcb18a63
2011-08-16 13:44:45 -07:00
Russell Brenner
312cae7d39 Replace DroidKufi-Regular with DroidNaskh-Regular
Naskh is a fancier font than Kufi and better for use with web page
content. Until we have more refined support for fallback fonts, only
one can be available at a time. This change switches from Kufi for
the purpose of comparitive testing to see which should be chosen
for ICS.

Change-Id: I081a002b6f72461f7ce18a86b3dec36c7f0f7506
2011-07-19 14:25:32 -07:00
Russell Brenner
b778f56b9a Replace DroidSansArabic with DroidKufi-Regular
Add new Kufi and Naskh fonts with regular and bold styles, replacing
Arabic (regular). Because of memory contraints, only Kufi-Regular is
currently being installed. The rest remain on standby for future use.

Change-Id: I75a3fb5777494e8bcd540d3603ab6390e44c5803
2011-07-19 14:25:32 -07:00
Russell Brenner
359d052a9a Include DroidSansEthiopic-Regular as fallback font
Font file was previously added to source tree with another CL:

    https://android-git.corp.google.com/g/117734

Change-Id: I03d33d1f6af950c57093efaf78f36a12bcf82689
2011-07-19 10:42:46 -07:00
Chet Haase
c8f060c938 Read font info from system config files
This change adds new files in /system/etc: system_fonts.xml and
fallback_fonts.xml. The change also allows a third file to be added
by vendors in /vendor/etc/fallback_fonts.xml. These files, loaded at
boot time, mimic the logic that used to be in code, but which is
now configurable through editing these files, making the system more
flexible and easy to work with for us and vendors as future fonts
are added to the system.

Change-Id: I209f1ef08a5279b376b89a880241906387efd576
2011-07-15 12:06:35 -07:00