125 Commits

Author SHA1 Message Date
Raph Levien
cd31db60ee Update Arabic fonts to remove Rial ligature
This patch fixes bug 7309211 [ar][fa] Riyal ligature mistakenly on in
Android Arabic fonts

It also fixes a number of other problems in the normal (non-system ui)
versions of the Naskh fonts, similar to the changes applied for the fix
to bug 6872613, and makes those fonts more consistent with the system ui
version.

3. Fixed a wrong GSUB substitution for Urdu Seven
4. Fixed shaping of U+06C1 HEH GOAL
5. Fixed shaping of U+06BA NOON GHUNNA
6. Removed the Rial ligature from the GSUB table
7. Tightened the Alef-Lam-Lam-Heh ligature in the GSUB table which was
getting triggered too frequently

Thanks to Roozbeh for the updated font data.

Change-Id: I29aecba2ea62853a8ed3181c023c62a09e800def
2012-10-17 09:47:00 -07:00
Justin Ho
26bf1a7c75 Merge "Revert "Updating Roboto fonts with updated Cyrillic glyphs and fixes to tabular numerals. Bug:7198855,7070912"" into jb-mr1-dev 2012-10-05 12:18:26 -07:00
Justin Ho
3aeeaaf7b7 Revert "Updating Roboto fonts with updated Cyrillic glyphs and fixes to tabular numerals. Bug:7198855,7070912"
This reverts commit 0baa38065a0e3912f03e930fdda2e22f4a1a8c64

Change-Id: I716db7239f21e9b65ab2557135726778768064ba
2012-10-05 10:50:14 -07:00
Justin Ho
f07b5a5a46 Revert "Updated Roboto fonts with correct T comma accent encoding"
This reverts commit 439b85ef9d9248c616ec474662edcd885618977c

Change-Id: I53ce11b21401402f68896cd211d5781414596361
2012-10-05 10:45:01 -07:00
Christian Robertson
439b85ef9d Updated Roboto fonts with correct T comma accent encoding
Updated Roboto fonts fixing issue where Tcommaaccent and Tcedilla
characters were encoded improperly (their values were switched). This
patch addresses bug 7198855 and bug 7070912. Original was mistakenly
submitted to master but should be applied to jb-mr1-dev instead.

Also, this commit reverts the addition of RobotoCondensed-Light and its
italic, for which we don't have any build file or XML metadata support.

Change-Id: If1c592474f1f7199e98bb98edf4de6466b43fa51
2012-10-04 18:01:14 -07:00
Justin Ho
b2eb0282ba Merge "Updating Roboto fonts with updated Cyrillic glyphs and fixes to tabular numerals. Bug:7198855,7070912" into jb-mr1-dev 2012-10-04 14:29:35 -07:00
Christian Robertson
24de605072 Updating AndroidClock font to match the Roboto thin style for time display.
The primary difference between the AndroidClock and Roboto-Thin fonts is that the new clock font defaults to variable width characters for better alignment on the lock screen.

Bug:7206207
Change-Id: I8509324510ce01d0a73ab1bb6b730b5d646a462c
2012-09-27 17:34:22 -07:00
Christian Robertson
0baa38065a Updating Roboto fonts with updated Cyrillic glyphs and fixes to tabular numerals. Bug:7198855,7070912
Change-Id: I652f234918b3f22ec25d120452a48dd1443184d9
2012-09-25 21:35:58 -07: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
Raph Levien
be456f2e81 Add Roboto Thin and Thin Italic fonts, as sans-serif-thin family
This change adds the Roboto Thin and Thin Italic font variants, which
are accessible through, for example, Typeface.create("sans-serif-thin",
Typeface.NORMAL).

The version checked in is Roboto_1.100150 as obtained from Christian.
The other fonts in the family should probably be rev'ed as well, but
that would be a separate change.

I verified that the fonts work, that they're thin, that kerning and
ligatures work, and that the "kern" table (redundant and bulky) is
missing.

This should close bug 7173069: Integrate roboto thin to support jb mr1
time displays

Change-Id: I5c950a1843675668b83c005234b44abbe924d9fe
2012-09-18 15:37:43 -07:00
Raph Levien
2f5bdb06e7 Fix for bug 6872613 Need to revert back to a less hacky Arabic Font
Roozbeh provided an updated Arabic system UI font which does positioning
properly (using the GPOS mechanism, which is now fully supported in text
rendering), as opposed to the old workaround of using GSUB combinations.
It contains the following additional fixes:

1. Removed the new glyphs and relevant table fields created by GPOS2GSUB
2. [Kept empty glyphs for ZWSP, ZWNJ, and ZWJ]
3. Fixed a wrong GSUB substitution for Urdu Seven
4. Fixed shaping of U+06C1 HEH GOAL
5. Fixed shaping of U+06BA NOON GHUNNA
6. Removed the Rial ligature from the GSUB table
7. Tightened the Alef-Lam-Lam-Heh ligature in the GSUB table which was
getting triggered too frequently

This change just checks in the above work. I did a sanity-check
verification that Arabic text still renders reasonably in the system UI,
but did not check the above cases carefully.

Change-Id: Ie5fb9fd78d21bbfcd62b86deb327a5a2ae9321c6
2012-09-12 15:53:26 -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
Justin Ho
6ce20c4d4f am e7c08bcd: am 87f86e64: Merge "Replace AndroidEmoji.ttf for UI optimization" into jb-dev
* commit 'e7c08bcd48b5025370f5858ac0b4bfc22b50980e':
  Replace AndroidEmoji.ttf for UI optimization
2012-07-11 13:34:00 -07:00
Junichi Monma
514bdc3b6e Replace AndroidEmoji.ttf for UI optimization
Bug: 6785630
Change-Id: Ie236c59704138263831930e3682a7ee9ac2f84b1
2012-07-11 10:06:56 +09: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
8325eee0c2 Merge "Workaround for bug 6609605: Hindi rendering regression in WebView" into jb-dev 2012-06-08 12:40:10 -07:00
Raph Levien
13f6e7c819 Workaround for bug 6609605: Hindi rendering regression in WebView
This patch changes the font data so that all anchor points are in
absolute coordinates, rather than relative to outline points. With
the workaround, we don't trigger the bug in the HarfBuzz/Skia
integration that causes incorrect outline point data to be read.

The font was prepared with FontForge. There's some risk of other
problems, but I tested the font fairly carefully and it looks fine.
(With a version prepared in TTX, the substitution of the different
width forms of the ivowelsigndeva got broken, likely due to a TTX
bug, as this seems to happen with roundtrip of unedited original).

Change-Id: I3f6fffce91c3ea0695e6005b051bcf4e9b6f6361
2012-06-08 10:17:23 -07:00
Christian Robertson
b7af8ad8d9 Fix for U+0449 (lowercase shcha) glyph in Roboto Light. Bug: 6609392
Change-Id: Id320c0c73275dfc06282c5c7eec79824d2062665
2012-06-06 17:55:32 -07:00
Keun young Park
087610198e add MINIMAL_FONT_FOOTPRINT configuration for PDK
- all non-latin fonts excluded
- symlink used to create additional fonts

Bug: 6540216

Change-Id: Id0909124dc1d71331bde3c5911c24eee5b1692a2
2012-06-06 14:21:37 -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
f1b0c4e5c8 Merge "Add fallback fonts for Malayalam, Kannada, and Telugu scripts" into jb-dev 2012-05-11 16:52:00 -07:00
Fabrice Di Meglio
f8c1ce7a0d Fix bug #6480486 Zero width non-joiner and zero width joiner rendered weirdly
- add missing ZWS (uni200B), ZWNJ (uni200C), ZWJ (uni200D)

Change-Id: I2e70bbaa855a75e0172c375cfcbc8544325030da
2012-05-11 15:46:27 -07:00
Raph Levien
467ea51617 Add RobotoCondensed family and optimized Roboto Light.
This adds the Roboto Condensed family (with the name
sans-serif-condensed, for consistency with existing family names).

Change-Id: Ied2c509ebbb2b3b8637c659e62c9a821b6941eaa
2012-05-10 17:28:20 -07:00
Raph Levien
289c09aae5 Add Roboto Light and Light italic fonts, as sans-serif-light family
Change-Id: Ibbdd7a74f3731c8e9c9fe60ce04a179c081bc09c
2012-05-09 10:36:26 -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
Steve Block
8a1da40523 Update DroidNashk to version 1.10
This is the latest drop (ver 1.10) of DroidNaskhShiftAlt.ttf from Monotype.

Bug: 5987379
Change-Id: I68a4dc89e3bb98e9d326eb9de196c1017503635b
2012-04-26 13:59:51 +01:00
Bart Sears
b285e83e26 Try out the latest SystemUI version of DroidNaskh
This is the latest drop (ver 1.00) of DroidNaskhShifAlt.ttf
from Monotype.  Checking it in so we can see if there is any
clipping.

Bug: 5987379
Change-Id: I25697e64c1643dc4d36fe4ff6a407549c1165d60
2012-04-17 18:25:16 -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
7b0b897c54 Improved comments for vendor fonts xml
Change-Id: I9dd7c8971df0a2862de316e096c1b6d60658814a
2012-03-22 09:55:54 -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
Bart Sears
07912f876c Update AndroidEmoji to version 1.01
The following four glphys were in version 1.0, but were at the
wrong Unicode points (F1238-A & F1250).  This version moves
these glyphs to the correct Unicode locations (1F238-A & 1F250).

SQUARED CJK UNIFIED IDEOGRAPH-7533: U+F1238 --> U+1F238
SQUARED CJK UNIFIED IDEOGRAPH-5272: U+F1239 --> U+1F239
SQUARED CJK UNIFIED IDEOGRAPH-55B6: U+F123A --> U+1F23A
CIRCLED IDEOGRAPH ADVANTAGE:        U+F1250 --> U+1F250

Change-Id: I20c40ec4c7fbe960bb264985686c0a17ad8d4a5e
2012-02-28 13:05:36 -08:00
Bart Sears
5626a69aab Update DroidNaskh font
Monotype has released a new version of DroidNaskh.  This version
has *no* changes in any of the glyphs.  The change is to remove
the following tables from the .ttf files.  These tables are not
used by Android and are not included in any of our other Droid
font files.  These tables are not part of the TrueType Font file
specification.  Removing these tables reduces the size of the
font files from ~370K to ~93K.  Monotype did not bump the version
because there were no user visible changes.

ASCP and TSI0 through TSI5

Change-Id: I4f9ce63b60353e2c3b6378929fba0ed9ced456e5
2012-02-16 19:26:35 -08:00
Bart Sears
7f9d9d8a96 New version of DroidSansFallback
This version updates U+FE43 and U+FE44 to make them a
bit wider.  No other changes.

Change-Id: I8f3544b42c21b3659520003bf1a81e574a31ad78
2012-02-15 21:37:38 -08:00
Ying Wang
193ec66214 Build all font files as prebuilts.
Bug: 5972956
So that mm/mmm can be used to install all the font files.

Change-Id: I9378e98b3a01d26680613e5738a270077bca0b64
2012-02-13 18:55:41 -08: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
31cef1451e am bcce2a19: am da7b7700: Merge "Update to latest version of Roboto" into ics-mr1
* commit 'bcce2a195390c3f5fc235c3fa551d3d725a7f88a':
  Update to latest version of Roboto
2012-01-13 12:37:53 -08:00
Bart Sears
6c16a58b2c Update to latest version of Roboto
Bug: 5527891

U+0125 (h with Circumflex):  Moved the Circumflex to not stick out
       beyond the left edge of the "h"
U+0300, U+0301, U+0303, U+0309, U+030F, U+0323: Move to the left so
       that they can be composited.
U+047C (Capital Omega with Titlo): Fixed the Titlo accent
U+047D (Small Omega with Titlo): Fixed the Titlo accent
U+048E (Capital ER with tick): Changed the tick to be diagonal
U+2248 (Almost equal to):  Added the glyph

Change-Id: Ibcadcd008a58f42d8bd4238d768101d8bf726ff6
2012-01-13 11:44:23 -08:00
Bart Sears
4b45522304 Add glyphs for Vertical Text
Adds U+FE10-U+FE19, U+2022, U+25C9, U+FE45, U+FE46

Also has an updated version of U+59A9 (this is a bug fix
unrelated to the new Vertical Text glyphs).

This is the second drop from Monotype.  The first drop was
missing U+FE11 and U+FE13 and had a few other minor issues.

Bug: 5472953
Change-Id: I270ae3c88bf8ba227de58cdce7321464ca708308
2012-01-12 16:42:32 -08:00
Bart Sears
eb6397a5eb Add glyphs for Vertical Text
Adds U+FE10-U+FE19, U+2022, U+25C9, U+FE45, U+FE46

Also has an updated version of U+59A9 (this is a bug fix
unrelated to the new Vertical Text glyphs).

Bug: 5472953
Change-Id: Ifbb030ddd86269b883a04eed024a939e507338c8
2011-12-16 18:21:19 -08:00
Bart Sears
e60bae1d1d Emoji characters for Android
Change-Id: I887dca18bb5046a8390bf96c99d983d9c434648f
2011-12-13 20:58:28 -08:00
Russell Brenner
602d6393d4 Update Armenian and Georgian fonts
New versions do not contain BCI hints, which were deleterious to
rendering in TextView with these particular fonts. WebView does not
use hints, and so TextView and WebView now render the same.

Font versions are updated from 1.00 to 1.01.

Bug: 5727604
Change-Id: Ib69318708994324caba36c10ac6159da70426d28
2011-12-07 15:53:21 -08:00
Justin Ho
28b3fd136d Merge "Correctly updating Roboto HHEA table" into ics-mr0 2011-10-27 15:26:42 -07:00
Justin Ho
b5cc0e1d3d Correctly updating Roboto HHEA table
Bug: 5516773

The last change regressed a few glyphs since the wrong file was checked in

Change-Id: I1f42c2ef9d57e840804d431183a07b0ed8640ea4
2011-10-27 14:53:20 -07:00