This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
fonts.mk
169 lines (160 loc) · 13.8 KB
/
fonts.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Warning: this is actually a product definition, to be inherited from
# Many of the TrueType files here may be shipped either as-is or compressed in .woff format
# to save space, depending on product requirements.
# Compression is chosen by specifying MOZ_PRODUCT_COMPRESS_FONTS := true in the product.
ifeq ($(MOZ_PRODUCT_COMPRESS_FONTS), true)
TTF_EXT := .woff
else
TTF_EXT := .ttf
endif
# Android fonts, imported from frameworks/base/data/fonts into moztt.
# These may be compressed, as they're largely here for fallback or less-common language needs.
PRODUCT_COPY_FILES += \
external/moztt/AndroidFonts/DroidNaskhUI-Regular$(TTF_EXT):system/fonts/DroidNaskhUI-Regular$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansHebrew-Regular$(TTF_EXT):system/fonts/DroidSansHebrew-Regular$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansHebrew-Bold$(TTF_EXT):system/fonts/DroidSansHebrew-Bold$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansArmenian$(TTF_EXT):system/fonts/DroidSansArmenian$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansEthiopic-Regular$(TTF_EXT):system/fonts/DroidSansEthiopic-Regular$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansEthiopic-Bold$(TTF_EXT):system/fonts/DroidSansEthiopic-Bold$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansFallbackFull$(TTF_EXT):system/fonts/DroidSansFallback$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansGeorgian$(TTF_EXT):system/fonts/DroidSansGeorgian$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSansMono$(TTF_EXT):system/fonts/DroidSansMono$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSerif-Regular$(TTF_EXT):system/fonts/DroidSerif-Regular$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSerif-Bold$(TTF_EXT):system/fonts/DroidSerif-Bold$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSerif-Italic$(TTF_EXT):system/fonts/DroidSerif-Italic$(TTF_EXT) \
external/moztt/AndroidFonts/DroidSerif-BoldItalic$(TTF_EXT):system/fonts/DroidSerif-BoldItalic$(TTF_EXT) \
external/moztt/AndroidFonts/MTLmr3m$(TTF_EXT):system/fonts/MTLmr3m$(TTF_EXT) \
external/moztt/AndroidFonts/MTLc3m$(TTF_EXT):system/fonts/MTLc3m$(TTF_EXT) \
$(NULL)
# MozTT fonts that we don't compress, because there's relatively little gain to be had
# and/or because they're primary UI fonts that we want instantly available.
PRODUCT_COPY_FILES += \
external/moztt/FiraMono-3.206/FiraMono-Bold.otf:system/fonts/FiraMono-Bold.otf \
external/moztt/FiraMono-3.206/FiraMono-Medium.otf:system/fonts/FiraMono-Medium.otf \
external/moztt/FiraMono-3.206/FiraMono-Regular.otf:system/fonts/FiraMono-Regular.otf \
external/moztt/FiraSans-4.107/FiraSans-Bold.otf:system/fonts/FiraSans-Bold.otf \
external/moztt/FiraSans-4.107/FiraSans-BoldItalic.otf:system/fonts/FiraSans-BoldItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-ExtraBold.otf:system/fonts/FiraSans-ExtraBold.otf \
external/moztt/FiraSans-4.107/FiraSans-ExtraBoldItalic.otf:system/fonts/FiraSans-ExtraBoldItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-Hair.otf:system/fonts/FiraSans-Hair.otf \
external/moztt/FiraSans-4.107/FiraSans-HairItalic.otf:system/fonts/FiraSans-HairItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-Heavy.otf:system/fonts/FiraSans-Heavy.otf \
external/moztt/FiraSans-4.107/FiraSans-HeavyItalic.otf:system/fonts/FiraSans-HeavyItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-Italic.otf:system/fonts/FiraSans-Italic.otf \
external/moztt/FiraSans-4.107/FiraSans-Light.otf:system/fonts/FiraSans-Light.otf \
external/moztt/FiraSans-4.107/FiraSans-LightItalic.otf:system/fonts/FiraSans-LightItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-Medium.otf:system/fonts/FiraSans-Medium.otf \
external/moztt/FiraSans-4.107/FiraSans-MediumItalic.otf:system/fonts/FiraSans-MediumItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-Regular.otf:system/fonts/FiraSans-Regular.otf \
external/moztt/FiraSans-4.107/FiraSans-SemiBold.otf:system/fonts/FiraSans-SemiBold.otf \
external/moztt/FiraSans-4.107/FiraSans-SemiBoldItalic.otf:system/fonts/FiraSans-SemiBoldItalic.otf \
external/moztt/FiraSans-4.107/FiraSans-UltraLight.otf:system/fonts/FiraSans-UltraLight.otf \
external/moztt/FiraSans-4.107/FiraSans-UltraLightItalic.otf:system/fonts/FiraSans-UltraLightItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Bold.otf:system/fonts/FiraSansCondensed-Bold.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-BoldItalic.otf:system/fonts/FiraSansCondensed-BoldItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-ExtraBold.otf:system/fonts/FiraSansCondensed-ExtraBold.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-ExtraBoldItalic.otf:system/fonts/FiraSansCondensed-ExtraBoldItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Hair.otf:system/fonts/FiraSansCondensed-Hair.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-HairItalic.otf:system/fonts/FiraSansCondensed-HairItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Heavy.otf:system/fonts/FiraSansCondensed-Heavy.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-HeavyItalic.otf:system/fonts/FiraSansCondensed-HeavyItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Italic.otf:system/fonts/FiraSansCondensed-Italic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Light.otf:system/fonts/FiraSansCondensed-Light.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-LightItalic.otf:system/fonts/FiraSansCondensed-LightItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Medium.otf:system/fonts/FiraSansCondensed-Medium.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-MediumItalic.otf:system/fonts/FiraSansCondensed-MediumItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-Regular.otf:system/fonts/FiraSansCondensed-Regular.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-SemiBold.otf:system/fonts/FiraSansCondensed-SemiBold.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-SemiBoldItalic.otf:system/fonts/FiraSansCondensed-SemiBoldItalic.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-UltraLight.otf:system/fonts/FiraSansCondensed-UltraLight.otf \
external/moztt/FiraSans-4.107/FiraSansCondensed-UltraLightItalic.otf:system/fonts/FiraSansCondensed-UltraLightItalic.otf \
external/moztt/FirefoxEmoji-1.6.7/FirefoxEmoji.ttf:system/fonts/FirefoxEmoji.ttf \
external/moztt/Roboto-20120823/Roboto-Bold.ttf:system/fonts/Roboto-Bold.ttf \
external/moztt/Roboto-20120823/Roboto-BoldItalic.ttf:system/fonts/Roboto-BoldItalic.ttf \
external/moztt/Roboto-20120823/Roboto-Italic.ttf:system/fonts/Roboto-Italic.ttf \
external/moztt/Roboto-20120823/Roboto-Regular.ttf:system/fonts/Roboto-Regular.ttf \
$(NULL)
# FiraSans faces that we omit because they have weights that are not multiples of 100:
#
# external/moztt/FiraSans-4.107/FiraSans-Book.otf:system/fonts/FiraSans-Book.otf \
# external/moztt/FiraSans-4.107/FiraSans-BookItalic.otf:system/fonts/FiraSans-BookItalic.otf \
# external/moztt/FiraSans-4.107/FiraSans-Eight.otf:system/fonts/FiraSans-Eight.otf \
# external/moztt/FiraSans-4.107/FiraSans-EightItalic.otf:system/fonts/FiraSans-EightItalic.otf \
# external/moztt/FiraSans-4.107/FiraSans-ExtraLight.otf:system/fonts/FiraSans-ExtraLight.otf \
# external/moztt/FiraSans-4.107/FiraSans-ExtraLightItalic.otf:system/fonts/FiraSans-ExtraLightItalic.otf \
# external/moztt/FiraSans-4.107/FiraSans-Four.otf:system/fonts/FiraSans-Four.otf \
# external/moztt/FiraSans-4.107/FiraSans-FourItalic.otf:system/fonts/FiraSans-FourItalic.otf \
# external/moztt/FiraSans-4.107/FiraSans-Thin.otf:system/fonts/FiraSans-Thin.otf \
# external/moztt/FiraSans-4.107/FiraSans-ThinItalic.otf:system/fonts/FiraSans-ThinItalic.otf \
# external/moztt/FiraSans-4.107/FiraSans-Two.otf:system/fonts/FiraSans-Two.otf \
# external/moztt/FiraSans-4.107/FiraSans-TwoItalic.otf:system/fonts/FiraSans-TwoItalic.otf \
# external/moztt/FiraSans-4.107/FiraSans-Ultra.otf:system/fonts/FiraSans-Ultra.otf \
# external/moztt/FiraSans-4.107/FiraSans-UltraItalic.otf:system/fonts/FiraSans-UltraItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-Book.otf:system/fonts/FiraSansCondensed-Book.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-BookItalic.otf:system/fonts/FiraSansCondensed-BookItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-Eight.otf:system/fonts/FiraSansCondensed-Eight.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-EightItalic.otf:system/fonts/FiraSansCondensed-EightItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-ExtraLight.otf:system/fonts/FiraSansCondensed-ExtraLight.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-ExtraLightItalic.otf:system/fonts/FiraSansCondensed-ExtraLightItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-Four.otf:system/fonts/FiraSansCondensed-Four.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-FourItalic.otf:system/fonts/FiraSansCondensed-FourItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-Thin.otf:system/fonts/FiraSansCondensed-Thin.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-ThinItalic.otf:system/fonts/FiraSansCondensed-ThinItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-Two.otf:system/fonts/FiraSansCondensed-Two.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-TwoItalic.otf:system/fonts/FiraSansCondensed-TwoItalic.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-Ultra.otf:system/fonts/FiraSansCondensed-Ultra.otf \
# external/moztt/FiraSans-4.107/FiraSansCondensed-UltraItalic.otf:system/fonts/FiraSansCondensed-UltraItalic.otf \
# $(NULL)
# MozTT fonts that we ship in .woff form when ROM size is at a premium.
PRODUCT_COPY_FILES += \
external/moztt/CharisSILCompact-4.114/CharisSILCompact-B$(TTF_EXT):system/fonts/CharisSILCompact-B$(TTF_EXT) \
external/moztt/CharisSILCompact-4.114/CharisSILCompact-BI$(TTF_EXT):system/fonts/CharisSILCompact-BI$(TTF_EXT) \
external/moztt/CharisSILCompact-4.114/CharisSILCompact-I$(TTF_EXT):system/fonts/CharisSILCompact-I$(TTF_EXT) \
external/moztt/CharisSILCompact-4.114/CharisSILCompact-R$(TTF_EXT):system/fonts/CharisSILCompact-R$(TTF_EXT) \
external/moztt/DDCUchen-1.000/DDC_Uchen$(TTF_EXT):system/fonts/DDC_Uchen$(TTF_EXT) \
external/moztt/DroidSans/DroidSansThai$(TTF_EXT):system/fonts/DroidSansThai$(TTF_EXT) \
external/moztt/Lohit/lohit-gujarati-ttf-2.5.3/Lohit-Gujarati$(TTF_EXT):system/fonts/Lohit-Gujarati$(TTF_EXT) \
external/moztt/Lohit/lohit-kannada-ttf-2.5.3/Lohit-Kannada$(TTF_EXT):system/fonts/Lohit-Kannada$(TTF_EXT) \
external/moztt/Lohit/lohit-oriya-ttf-2.5.4.1/Lohit-Oriya$(TTF_EXT):system/fonts/Lohit-Oriya$(TTF_EXT) \
external/moztt/Lohit/lohit-punjabi-ttf-2.5.3/Lohit-Punjabi$(TTF_EXT):system/fonts/Lohit-Punjabi$(TTF_EXT) \
external/moztt/Lohit/lohit-telugu-ttf-2.5.3/Lohit-Telugu$(TTF_EXT):system/fonts/Lohit-Telugu$(TTF_EXT) \
external/moztt/Meera-6.1.1/Meera$(TTF_EXT):system/fonts/Meera$(TTF_EXT) \
external/moztt/Noto/NotoSansBengali-Bold$(TTF_EXT):system/fonts/NotoSansBengali-Bold$(TTF_EXT) \
external/moztt/Noto/NotoSansBengali-Regular$(TTF_EXT):system/fonts/NotoSansBengali-Regular$(TTF_EXT) \
external/moztt/Noto/NotoSansDevanagari-Bold$(TTF_EXT):system/fonts/NotoSansDevanagari-Bold$(TTF_EXT) \
external/moztt/Noto/NotoSansDevanagari-Regular$(TTF_EXT):system/fonts/NotoSansDevanagari-Regular$(TTF_EXT) \
external/moztt/Noto/NotoSansEthiopic-Regular$(TTF_EXT):system/fonts/NotoSansEthiopic-Regular$(TTF_EXT) \
external/moztt/Noto/NotoSansEthiopic-Bold$(TTF_EXT):system/fonts/NotoSansEthiopic-Bold$(TTF_EXT) \
external/moztt/Noto/NotoSansKhmerUI-Bold$(TTF_EXT):system/fonts/NotoSansKhmerUI-Bold$(TTF_EXT) \
external/moztt/Noto/NotoSansKhmerUI-Regular$(TTF_EXT):system/fonts/NotoSansKhmerUI-Regular$(TTF_EXT) \
external/moztt/Noto/NotoSansTamil-Bold$(TTF_EXT):system/fonts/NotoSansTamil-Bold$(TTF_EXT) \
external/moztt/Noto/NotoSansTamil-Regular$(TTF_EXT):system/fonts/NotoSansTamil-Regular$(TTF_EXT) \
external/moztt/Padauk-2.80/Padauk$(TTF_EXT):system/fonts/Padauk$(TTF_EXT) \
external/moztt/Padauk-2.80/Padauk-bold$(TTF_EXT):system/fonts/Padauk-bold$(TTF_EXT) \
$(NULL)
# Replaced by Meera font
# external/moztt/Lohit/lohit-malayalam-ttf-2.5.3/Lohit-Malayalam$(TTF_EXT):system/fonts/Lohit-Malayalam$(TTF_EXT) \
# Replaced by Noto font
# external/moztt/Lohit/lohit-bengali-ttf-2.5.3/Lohit-Bengali.ttf:system/fonts/Lohit-Bengali.ttf \
# external/moztt/Lohit/lohit-devanagari-ttf-2.91.0/Lohit-Devanagari$(TTF_EXT):system/fonts/Lohit-Devanagari$(TTF_EXT) \
# external/moztt/Lohit/lohit-tamil-ttf-2.5.3/Lohit-Tamil$(TTF_EXT):system/fonts/Lohit-Tamil$(TTF_EXT) \
# Lohit fonts not currently included, because they support language-specific variant renderings
# of scripts also supported by other fonts already present above.
# external/moztt/Lohit/lohit-assamese-ttf-2.5.3/Lohit-Assamese.ttf:system/fonts/Lohit-Assamese.ttf \
# external/moztt/Lohit/lohit-marathi-ttf-2.5.3/Lohit-Marathi.ttf:system/fonts/Lohit-Marathi.ttf \
# external/moztt/Lohit/lohit-nepali-ttf-2.5.3/Lohit-Nepali.ttf:system/fonts/Lohit-Nepali.ttf \
# external/moztt/Lohit/lohit-tamil-classical-ttf-2.5.3/Lohit-Tamil-Classical.ttf:system/fonts/Lohit-Tamil-Classical.ttf \
# These may be moved into the build later if localizers explicitly request them via CSS styling.