aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/android_fonts
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2015-05-08 08:31:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-08 08:31:54 -0700
commitc0727d117e67844f0c8794cc7eaa49a96a015347 (patch)
tree6c3aeacdf0700ca9b08f33bfff4f6f42e02e368b /resources/android_fonts
parent72c7a60ecfb9519580373b4641be25af97d081e8 (diff)
Trim whitespace from parsed filename in Android v21.
The entire text content of the 'font' element is currently used as the file name. This wasn't an issue in earlier versions, as the 'file' element was dedicated to only containing the file name. The new 'font' element also contains a number of attributes and potentially other tags. This means that a 'font' element can become quite long, making it desireable to be able to split it across multiple lines. However, splitting the 'font' element across multiple lines is currently difficult and awkward as any whitespace outside of tags will be considered part of the file name. This change means that any leading or trailing whitespace will not be considered part of the file name. This only applies to v21 and later files, so while this restricts font file names from beginning and ending with whitespace, it is unlikely to break any users in practice. It is probably also undesireable to have font files with names that begin or end with whitespace in any event. Review URL: https://codereview.chromium.org/1125413003
Diffstat (limited to 'resources/android_fonts')
-rw-r--r--resources/android_fonts/v22/fonts.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/android_fonts/v22/fonts.xml b/resources/android_fonts/v22/fonts.xml
index 180d5f7d9c..b9ea87fc0d 100644
--- a/resources/android_fonts/v22/fonts.xml
+++ b/resources/android_fonts/v22/fonts.xml
@@ -2,7 +2,9 @@
<familyset version="21">
<!-- first font is default -->
<family name="sans-serif">
- <font weight="100" style="normal">Roboto-Thin.ttf</font>
+ <font weight="100" style="normal">
+ Roboto-Thin.ttf
+ </font>
<font weight="100" style="italic">Roboto-ThinItalic.ttf</font>
<font weight="300" style="normal">Roboto-Light.ttf</font>
<font weight="300" style="italic">Roboto-LightItalic.ttf</font>