18 Commits

Author SHA1 Message Date
Roozbeh Pournader
e7df4ea6a9 Compress miscellaneous fonts.
The fonts are passed through Noto's identity subsetter at
https://code.google.com/p/noto/source/browse/nototools/subset.py?r=bdd10822706b
which keeps the same functionality, but compresses tables, removes
unreachable glyphs, converts post table to version 3.0, etc.

Additionally, the DroidSansFallback fonts and MotoyaLMaru are passed through
fontcrunch.

The build footprint of the non-extended font profile is reduced by 546KB.

Bug: 15348046
Change-Id: I66777a0efeb98da6007091548a6ee847ecb4ea1f
2014-08-15 18:04:13 -07:00
Roozbeh Pournader
034b20c102 Subset Droid Sans Fallback to remove duplicate coverage.
Removes all characters that are already supported by either Roboto or the
expanded Noto Sans Symbols font.  The Droid Sans Fallback fonts are also
passed through the fonttools subsetter to recompress the tables and convert
the post table to version 3.0.  This change reduces the size of the files by
about 270KB each.

The following characters are removed:
0021..007E, 00A0..00A1, 00A4, 00A7..00A8, 00AA..00AB, 00AD..00B4,
00B6..00BF, 00C6, 00D0, 00D7..00D8, 00DE..00E1, 00E6, 00E8..00EA,
00EC..00ED, 00F0, 00F2..00F3, 00F7..00FA, 00FC, 00FE, 0101, 0111, 0113,
011B, 0126..0127, 012B, 0131..0133, 0138, 013F..0142, 0149..014B, 014D,
0152..0153, 0166..0167, 016B, 01C0..01C3, 01CE, 01D0, 01D2, 01D4, 01D6,
01D8, 01DA, 01DC, 021A..021B, 0250..02B2, 02B4, 02B7, 02BB..02BC,
02C7..02CD, 02D0..02D1, 02D8..02DB, 02DD..02DE, 02E0, 02E4, 0300..0301,
0303..0304, 0306, 0308, 030A..030B, 030F..0334, 0339..033D, 035C, 0361,
0391..03A1, 03A3..03A9, 03B1..03C1, 03C3..03C9, 0401, 0410..044F, 0451,
200C..2011, 2013..2016, 2018..2019, 201C..201D, 2020..2022, 2025..2027,
2030, 2032..2033, 2035, 203B..203C, 203E, 2047..2049, 2074, 207F,
2081..2084, 20A0..20B9, 2103, 2105, 2109, 2111, 2113, 2116, 2118, 211C,
2121..2122, 2126, 212B, 2133, 2135, 2153..2154, 215B..215E, 2160..216B,
2170..2179, 2190..2200, 2202..2203, 2205, 2207..2209, 220B..220C, 220F,
2211, 2215, 2217, 221A, 221D..2220, 2223, 2225, 2227..222C, 222E,
2234..2237, 223C..223D, 2245, 2248, 224C, 2252, 2260..2261, 2264..2267,
226A..226B, 226E..226F, 2282..2287, 2295, 2297, 2299, 22A5, 22BF, 22C5,
2308..230B, 2312, 23AF, 2460..24B5, 24D0..24E9, 2500..254B, 2550..2574,
2581..258F, 2592..2595, 25A0..25A1, 25A3..25AA, 25B2..25B3, 25B6..25B7,
25BA, 25BC..25BD, 25C0..25C1, 25C6..25C9, 25CB, 25CE..25D1, 25E2..25E6,
25EF, 2605..2606, 260E..260F, 261C, 261E, 2640, 2642, 2654..266A,
266C..266D, 266F, 2680..2685, 2701..2704, 2706..2709, 270C..2727,
2729..274B, 274D, 274F..2752, 2756, 2758..275E, 2761..2794, 2798..27AF,
27B1..27BE, 2985..2986, 3008..3009, FFFD

Bug: 15348046
Change-Id: I1d4751b6f79a4c6de23910c983f2f09c9460b160
2014-07-07 19:39:25 +00:00
Roozbeh Pournader
de0fe2daaf Swap the chess king and queen glyphs in Droid Sans Fallback.
Also remove the unused DroidSansFallbackLegacy.ttf.

Based on public bug report
https://code.google.com/p/android/issues/detail?id=71389.
The original glyphs were mistakenly swapped.

Following is the code that was run on the font:

import sys
from fontTools import ttLib
WHITE_KING = 0x2654
WHITE_QUEEN = 0x2655
BLACK_KING = 0x265A
BLACK_QUEEN = 0x265B
font_name = sys.argv[1]
font = ttLib.TTFont(font_name)
for table in font['cmap'].tables:
  cmap = table.cmap
  cmap[WHITE_KING], cmap[WHITE_QUEEN] = cmap[WHITE_QUEEN], cmap[WHITE_KING]
  cmap[BLACK_KING], cmap[BLACK_QUEEN] = cmap[BLACK_QUEEN], cmap[BLACK_KING]
font.save(font_name+'-fixed')

Bug: 15643969
Change-Id: Iacee3d72ef8146016e15828f051822460ae2ff4e
2014-06-18 18:15:22 -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
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
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
669ec352aa Update DroidSansFallback to version 2.52a
Adds
1) Four missing currency symbols (\u20B6-\u20B9)
2) Geometric right arrow: \u25BA

Increase the file size by 2K

Bug: 5239645
Change-Id: Ia7c9f6b7f639e6f8f57e070cd5db56042e8d1578
2011-09-07 15:57:42 -07:00
Bart Sears
b394df9224 Revert to version 2.51 of DroidSansFallback.ttf
Version 2.53 of DroidSansFallback.ttf included:
    1) Currency: \u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u17DB\u20B6-\u20B9
       \uA838\uFDFC
    2) Geometric right arrow: \u25BA
    3) CJK Ext A (about 6000 Simplified Chinese Glyphs)

Item 3 (the ~6000 Simplified Chinese Glyphs) increased the file size by
about 1.6M.  To reduce ROM pressure, we are reverting back to version
2.51.  Version 2.53 has been renamed to DroidSansFallbackFull.ttf and is
available for builds that have enough ROM space.  We are generating a
new version of DroidSansFallback.ttf that has items 1 and 2 and not 3 and
will update DroidSansFallback.ttf once we have that version.

Bug: 5239728
Change-Id: I7467109a9ffec452446a636d35a3befffff09f10
2011-08-30 18:14:15 -07:00
Bart Sears
7703d3c2da Latest drop of DroidSansFallback.ttf from Monotype
Update DroidSansFallback.ttf to ver 2.53.  This version contains
the following additional glyphs:
1) Currency: \u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u17DB\u20B6-\u20B9
   \uA838\uFDFC
2) Geometric right arrow: \u25BA
3) CJK Ext A (about 6000 Simplified Chinese Glyphs)

Bug: 3315583
Bug: 4182541

Change-Id: I6c809626b02ef2fc0f07274b838434fb8cdf2bc2
2011-06-13 18:42:22 -07:00
Bart Sears
573dfc26bc Update Droid Fonts
DroidSans-Bold.ttf
DroidSans.ttf
DroidSansMono.ttf
DroidSerif-Bold.ttf
DroidSerif-BoldItalic.ttf
DroidSerif-Italic.ttf
DroidSerif-Regular.ttf
 - Fix the Tcedilla glyphs

DroidSansFallback
 - Add Dingbat Symbols
 - Add Currency Symbols
 - Add International Phonetic Alphabet (IPA)
 - Add U+02BB Modifier letter turned comma
 - Add U+2011 Non-breaking hyphen

DroidSansArabic.ttf
 - Updated Arabic font
 - Added support for initial and medial forms of Persian (Farsi) yeh (glyphs U+FBFE and U+FBFF)

Bug: 3315583
Change-Id: I7667f9b83fff32a1d97adfbea9a4db5c4dccb160
2011-03-14 17:19:28 -07:00
Bart Sears
e3004e7867 New DroidSansFallback font file from Ascender
Bug: 3315583

1) IPA (U+0250-U+02AF)
2) Currency symbols
3) U+02BB MODIFIER LETTER TURNED COMMA
4) Non-breaking hyphen ("\u2011")
5) Jamo U+11xx mappings

Change-Id: Ie4dfc7677d0f63c89ed0e1f6506cd513ae45ffa9
2011-01-30 19:59:02 -08:00
Mike Reed
97be1549ce misc fixes, including 0xB0B8
Change-Id: I67ec767811e68500de7c5d57dcd1cb814b52f87d
2010-03-15 08:02:47 -04:00
Eugene Koh
5e7a09fe46 Update DroidSansFallback typeface + preserve legacy version
Move the Droid Sans Fallback typeface from Eclair and earlier Android versions
to a new path in the tree, and update the mainline version to add 4,398 Hanzi
characters, which adds approximately ~0.5 MB to the system footprint.

If that additional size is problematic, implementors may elect to build instead
with the legacy version, which supports GB2312 for Simplified Chinese but lacks
the expanded character set.
2010-02-09 12:40:32 -08:00
The Android Open Source Project
9066cfe988 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce auto import from //depot/cupcake/@135843 2009-03-03 18:28:45 -08:00
The Android Open Source Project
f013e1afd1 Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:43 -08:00
The Android Open Source Project
54b6cfa9a9 Initial Contribution 2008-10-21 07:00:00 -07:00