From 117cbebe810613d4a6de034f02652cdbbfef4cde Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Mon, 25 Aug 2014 13:47:16 -0700 Subject: New weight-aware font config Parse new fonts.xml config file, and resolve weight selection based on the base weight of the font (as defined by a weight alias specified in the config file) and the requested bold flag. This change improves the appearance of bold spans for alternate weights of Roboto. In addition, this patch enables weight selection for fallback fonts. For example, if an additional font with a weight of 100 is added to the Hebrew font family in the fallback list, then requesting "sans-serif-thin" would select that font for Hebrew text. Bug: 14538154 Change-Id: I99a04fad4f7bf01c75726e760d42735dd9003496 --- data/fonts/fallback_fonts.xml | 4 ++++ data/fonts/fonts.xml | 24 ++++++++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'data/fonts') diff --git a/data/fonts/fallback_fonts.xml b/data/fonts/fallback_fonts.xml index 0f0281b..c4a949f 100644 --- a/data/fonts/fallback_fonts.xml +++ b/data/fonts/fallback_fonts.xml @@ -1,5 +1,9 @@ @@ -10,15 +26,16 @@ Roboto-Italic.ttf Roboto-Medium.ttf Roboto-MediumItalic.ttf - Roboto-Bold.ttf - Roboto-BoldItalic.ttf Roboto-Black.ttf Roboto-BlackItalic.ttf + Roboto-Bold.ttf + Roboto-BoldItalic.ttf + @@ -227,6 +244,9 @@ NotoColorEmoji.ttf + + DroidSansFallback.ttf + MTLmr3m.ttf -- cgit v1.1