diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2014-06-15 09:37:58 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2014-06-18 18:15:22 -0700 |
commit | de0fe2daafb769cc37ca922ffef6dbafb8c6cae2 (patch) | |
tree | 72df3a279f35055d631ab1dd4579d9aef56ddaeb /data | |
parent | 9c46e06478ddd821c9172c77f48fa7f64a870ad0 (diff) | |
download | frameworks_base-de0fe2daafb769cc37ca922ffef6dbafb8c6cae2.zip frameworks_base-de0fe2daafb769cc37ca922ffef6dbafb8c6cae2.tar.gz frameworks_base-de0fe2daafb769cc37ca922ffef6dbafb8c6cae2.tar.bz2 |
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
Diffstat (limited to 'data')
-rw-r--r-- | data/fonts/DroidSansFallback.ttf | bin | 3939852 -> 3939384 bytes |
-rw-r--r-- | data/fonts/DroidSansFallbackFull.ttf | bin | 4529044 -> 4528576 bytes |
-rw-r--r-- | data/fonts/DroidSansFallbackLegacy.ttf | bin | 3081908 -> 0 bytes |
3 files changed, 0 insertions, 0 deletions
diff --git a/data/fonts/DroidSansFallback.ttf b/data/fonts/DroidSansFallback.ttf Binary files differindex 2b75113..8e70e80 100644 --- a/data/fonts/DroidSansFallback.ttf +++ b/data/fonts/DroidSansFallback.ttf diff --git a/data/fonts/DroidSansFallbackFull.ttf b/data/fonts/DroidSansFallbackFull.ttf Binary files differindex a9df005..68d2751 100644 --- a/data/fonts/DroidSansFallbackFull.ttf +++ b/data/fonts/DroidSansFallbackFull.ttf diff --git a/data/fonts/DroidSansFallbackLegacy.ttf b/data/fonts/DroidSansFallbackLegacy.ttf Binary files differdeleted file mode 100644 index 61460b1..0000000 --- a/data/fonts/DroidSansFallbackLegacy.ttf +++ /dev/null |