Stop bundling roboto font on Android |
||
Issue description
resource_sizes.py shows:
IDR_WEBUI_ROBOTO_ROBOTO_MEDIUM_WOFF2 1 62.31k 0.50%
IDR_WEBUI_ROBOTO_ROBOTO_REGULAR_WOFF2 1 61.94k 0.50%
IDR_WEBUI_ROBOTO_ROBOTO_BOLD_WOFF2 1 60.23k 0.48%
However, starting with Android 4.1 (the first version of JellyBean), Roboto is included by Android OS. It should be safe to just remove these fonts from the .pak.
,
Oct 12 2016
Thanks for the pointers! Should make this easy to fix :). Looks like we never actually define the "android" grit define :(. https://cs.chromium.org/chromium/src/tools/grit/grit_rule.gni
,
Oct 12 2016
,
Oct 12 2016
-t doesn't actually add a define. If you add "-D android", then it works. I'm saying this just by trying it out. I'm not actually sure what "-t" does, or if it's supposed to add a define.
,
Oct 13 2016
,
Oct 13 2016
,
Oct 14 2016
Glad that this was found and fixed. Like dbeam@, I thought Roboto had never been bundled with Android Chrome. |
||
►
Sign in to add a comment |
||
Comment 1 by dbeam@chromium.org
, Oct 12 2016