fonts: Add OnePlus Slate

Change-Id: I71c6a76d7458ef0b903af7799f7af2180b2c34fd
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Richard Raya 2022-11-26 17:21:36 -03:00 committed by Fazil Sheik
parent 3810cd4595
commit a36914c104
7 changed files with 36 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
runtime_resource_overlay {
name: "FontOnePlusSlateOverlay",
product_specific: true,
sdk_version: "current",
theme: "FontOnePlusSlate",
}

View File

@ -0,0 +1,14 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.aospa.theme.font.oneplusslate">
<overlay
android:category="android.theme.customization.font"
android:priority="600"
android:targetPackage="android" />
<application android:label="OnePlus Slate">
<meta-data
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
android:value="op-slate" />
</application>
</manifest>

View File

@ -0,0 +1,8 @@
<resources>
<string name="config_bodyFontFamily">op-slate</string>
<string name="config_bodyFontFamilyMedium">op-slate-regular</string>
<string name="config_headlineFontFamily">op-slate</string>
<string name="config_headlineFontFamilyMedium">op-slate-regular</string>
</resources>

View File

@ -28,6 +28,7 @@ PRODUCT_PACKAGES += \
FontLinotteSourceOverlay \
FontManropeOverlay \
FontOnePlusSansOverlay \
FontOnePlusSlateOverlay \
FontOppoSansOverlay \
FontUrbanistOverlay \
FontAlbertSansOverlay \

View File

@ -222,6 +222,13 @@
</family>
<alias name="manrope-medium" to="manrope" weight="600" />
<family customizationType="new-named-family" name="op-slate">
<font weight="300" style="normal">OnePlusSlate-Light.ttf</font>
<font weight="400" style="normal">OnePlusSlate-Regular.ttf</font>
</family>
<alias name="op-slate-light" to="op-slate" weight="300" />
<alias name="op-slate-regular" to="op-slate" weight="400" />
<family customizationType="new-named-family" name="urbanist">
<font weight="500" style="normal">Urbanist-VF.ttf
<axis tag="wght" stylevalue="500"/>