diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2014-07-25 10:23:47 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2014-07-25 10:23:47 -0700 |
commit | 1b5bd3862e09739a7199866c6092fa5cf8e99c6f (patch) | |
tree | 073d68c6d8222afd5417e24526b581ffa7939b61 /data/fonts | |
parent | c7eb7d555773c7292b513d10a6a9ab4de3a67249 (diff) | |
download | frameworks_base-1b5bd3862e09739a7199866c6092fa5cf8e99c6f.zip frameworks_base-1b5bd3862e09739a7199866c6092fa5cf8e99c6f.tar.gz frameworks_base-1b5bd3862e09739a7199866c6092fa5cf8e99c6f.tar.bz2 |
Fix the glyph for U+3A34 in DroidSansFallbackFull.ttf.
The old glyph had its right part using a wrong component. The right
component was available in the font. The following script was used to fix
the issue:
from fontTools import ttLib
from nototools import subset
font = ttLib.TTFont('DroidSansFallbackFull.ttf', lazy=False)
glyf_table = font['glyf']
glyph = glyf_table['uni3A34']
for component in glyph.components:
if component.glyphName == 'glyph45821':
component.glyphName = 'glyph30895'
glyph.recalcBounds(glyf_table)
font.save('DroidSansFallbackFull.ttf-fixed')
subset.subset_font(
'DroidSansFallbackFull.ttf-fixed', 'DroidSansFallbackFull.ttf-subset')
The font footprint is reduced by 12KB mostly due to removing unneeded glyph
paddings.
Bug: 15149504
Change-Id: I914ec89435caadbeaa321e10fb0848f181fef667
Diffstat (limited to 'data/fonts')
-rw-r--r-- | data/fonts/DroidSansFallbackFull.ttf | bin | 4258596 -> 4246904 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/data/fonts/DroidSansFallbackFull.ttf b/data/fonts/DroidSansFallbackFull.ttf Binary files differindex 135723c..1dfcc33 100644 --- a/data/fonts/DroidSansFallbackFull.ttf +++ b/data/fonts/DroidSansFallbackFull.ttf |