pa: Add more font overlays.

* Inter : v3.19
   Manrope : v4.504
   Urbanist : v1.251

 * A variable font (VF) is a font file that is able
   to store a continuous range of design variants.

 * The fonts are licensed under the Open Font License (OFL).

Change-Id: Id6088b641d227e8f4675ab9ec1350039594c879c
This commit is contained in:
Jyotiraditya Panda 2021-06-19 02:27:48 +05:30 committed by Vishal Cj
parent 25624b5239
commit a4c6f14df3
18 changed files with 467 additions and 0 deletions

View File

@ -43,6 +43,11 @@ PRODUCT_COPY_FILES += \
# Filesystem
TARGET_FS_CONFIG_GEN += vendor/pa/config/config.fs
# Fonts
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,vendor/pa/prebuilt/fonts/,$(TARGET_COPY_OUT_PRODUCT)/fonts) \
vendor/pa/prebuilt/etc/fonts_customization.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/fonts_customization.xml
# GMS
ifneq ($(TARGET_DISABLES_GMS), true)

View File

@ -0,0 +1,20 @@
// Copyright (C) 2021 Paranoid Android
//
// 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.
runtime_resource_overlay {
name: "FontInterOverlay",
product_specific: true,
sdk_version: "current",
theme: "FontInter",
}

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.aospa.theme.font.inter">
<overlay
android:category="android.theme.customization.font"
android:priority="600"
android:targetPackage="android" />
<application android:label="@string/font_inter_overlay">
<meta-data
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
android:value="inter,inter-medium" />
</application>
</manifest>

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<resources>
<!-- Name of a font family to use for body text. -->
<string name="config_bodyFontFamily" translatable="false">inter</string>
<!-- Name of a font family to use for medium body text. -->
<string name="config_bodyFontFamilyMedium" translatable="false">inter-medium</string>
<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
<string name="config_headlineFontFamily" translatable="false">inter</string>
<!-- Name of the font family used for system surfaces where the font should use medium weight -->
<string name="config_headlineFontFamilyMedium" translatable="false">inter-medium</string>
</resources>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<resources>
<!-- Inter overlay -->
<string name="font_inter_overlay" translatable="false">Inter</string>
</resources>

View File

@ -0,0 +1,20 @@
// Copyright (C) 2021 Paranoid Android
//
// 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.
runtime_resource_overlay {
name: "FontManropeOverlay",
product_specific: true,
sdk_version: "current",
theme: "FontManrope",
}

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.aospa.theme.font.manrope">
<overlay
android:category="android.theme.customization.font"
android:priority="600"
android:targetPackage="android" />
<application android:label="@string/font_manrope_overlay">
<meta-data
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
android:value="manrope,manrope-medium" />
</application>
</manifest>

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<resources>
<!-- Name of a font family to use for body text. -->
<string name="config_bodyFontFamily" translatable="false">manrope</string>
<!-- Name of a font family to use for medium body text. -->
<string name="config_bodyFontFamilyMedium" translatable="false">manrope-medium</string>
<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
<string name="config_headlineFontFamily" translatable="false">manrope</string>
<!-- Name of the font family used for system surfaces where the font should use medium weight -->
<string name="config_headlineFontFamilyMedium" translatable="false">manrope-medium</string>
</resources>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<resources>
<!-- Manrope overlay -->
<string name="font_manrope_overlay" translatable="false">Manrope</string>
</resources>

View File

@ -0,0 +1,20 @@
// Copyright (C) 2021 Paranoid Android
//
// 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.
runtime_resource_overlay {
name: "FontUrbanistOverlay",
product_specific: true,
sdk_version: "current",
theme: "FontUrbanist",
}

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.aospa.theme.font.urbanist">
<overlay
android:category="android.theme.customization.font"
android:priority="600"
android:targetPackage="android" />
<application android:label="@string/font_urbanist_overlay">
<meta-data
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
android:value="urbanist,urbanist-medium" />
</application>
</manifest>

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<resources>
<!-- Name of a font family to use for body text. -->
<string name="config_bodyFontFamily" translatable="false">urbanist</string>
<!-- Name of a font family to use for medium body text. -->
<string name="config_bodyFontFamilyMedium" translatable="false">urbanist-medium</string>
<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
<string name="config_headlineFontFamily" translatable="false">urbanist</string>
<!-- Name of the font family used for system surfaces where the font should use medium weight -->
<string name="config_headlineFontFamilyMedium" translatable="false">urbanist-medium</string>
</resources>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2021 Paranoid Android
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.
-->
<resources>
<!-- Urbanist overlay -->
<string name="font_urbanist_overlay" translatable="false">Urbanist</string>
</resources>

View File

@ -36,6 +36,9 @@ PRODUCT_PACKAGES += \
AOSPATelephonyOverlay \
AOSPAThemePickerOverlay \
FontGoogleSansOverlay \
FontInterOverlay \
FontManropeOverlay \
FontUrbanistOverlay \
ParanoidDozeOverlay \
ParanoidHubOverlay \
ParanoidLauncherOverlay

View File

@ -0,0 +1,150 @@
<fonts-modification version="1">
<family customizationType="new-named-family" name="google-sans">
<font weight="400" style="normal">GoogleSans-Regular.ttf</font>
<font weight="400" style="italic">GoogleSans-Italic.ttf</font>
<font weight="500" style="normal">GoogleSans-Medium.ttf</font>
<font weight="500" style="italic">GoogleSans-MediumItalic.ttf</font>
<font weight="700" style="normal">GoogleSans-Bold.ttf</font>
<font weight="700" style="italic">GoogleSans-BoldItalic.ttf</font>
</family>
<alias name="google-sans-medium" to="google-sans" weight="500" />
<family customizationType="new-named-family" name="arbutus-slab">
<font weight="400" style="normal">ArbutusSlab-Regular.ttf</font>
</family>
<family customizationType="new-named-family" name="lato">
<font weight="400" style="normal">Lato-Regular.ttf</font>
<font weight="400" style="italic">Lato-Italic.ttf</font>
<font weight="700" style="normal">Lato-Bold.ttf</font>
<font weight="700" style="italic">Lato-BoldItalic.ttf</font>
</family>
<alias name="lato-bold" to="lato" weight="700" />
<family customizationType="new-named-family" name="rubik">
<font weight="400" style="normal">Rubik-Regular.ttf</font>
<font weight="400" style="italic">Rubik-Italic.ttf</font>
<font weight="500" style="normal">Rubik-Medium.ttf</font>
<font weight="500" style="italic">Rubik-MediumItalic.ttf</font>
<font weight="700" style="normal">Rubik-Bold.ttf</font>
<font weight="700" style="italic">Rubik-BoldItalic.ttf</font>
</family>
<alias name="rubik-medium" to="rubik" weight="500" />
<family customizationType="new-named-family" name="zilla-slab-medium">
<font weight="500" style="normal">ZillaSlab-Medium.ttf</font>
<font weight="500" style="italic">ZillaSlab-MediumItalic.ttf</font>
<font weight="600" style="normal">ZillaSlab-SemiBold.ttf</font>
<font weight="600" style="italic">ZillaSlab-SemiBoldItalic.ttf</font>
</family>
<alias name="zilla-slab-semi-bold" to="zilla-slab-medium" weight="600" />
<family customizationType="new-named-family" name="lustria">-->
<font weight="400" style="normal">Lustria-Regular.ttf</font>
</family>
<alias name="lustria" to="lustria" weight="400"/>
<family customizationType="new-named-family" name="karla">
<font weight="400" style="normal">Karla-Regular.ttf</font>
</family>
<alias name="karla" to="karla" weight="400"/>
<family customizationType="new-named-family" name="fraunces">
<font weight="400" style="normal">Fraunces-Regular.ttf</font>
<font weight="600" style="normal">Fraunces-SemiBold.ttf</font>
</family>
<alias name="fraunces" to="fraunces" weight="400"/>
<alias name="fraunces-semi-bold" to="fraunces" weight="600"/>
<family customizationType="new-named-family" name="big-shoulders-text">
<font weight="700" style="normal">BigShouldersText-Bold.ttf</font>
<font weight="800" style="normal">BigShouldersText-ExtraBold.ttf</font>
</family>
<alias name="big-shoulders-text-bold" to="big-shoulders-text" weight="700"/>
<alias name="big-shoulders-text-extra-bold" to="big-shoulders-text" weight="800"/>
<family customizationType="new-named-family" name="barlow">
<font weight="700" style="normal">Barlow-Bold.ttf</font>
<font weight="500" style="normal">Barlow-Medium.ttf</font>
</family>
<alias name="barlow-bold" to="barlow" weight="700"/>
<alias name="barlow-medium" to="barlow" weight="500"/>
<family customizationType="new-named-family" name="manrope">
<font weight="500" style="normal">Manrope-VF.ttf
<axis tag="wght" stylevalue="500"/>
</font>
<font weight="600" style="normal">Manrope-VF.ttf
<axis tag="wght" stylevalue="600"/>
</font>
<font weight="700" style="normal">Manrope-VF.ttf
<axis tag="wght" stylevalue="700"/>
</font>
<font weight="800" style="normal">Manrope-VF.ttf
<axis tag="wght" stylevalue="800"/>
</font>
</family>
<alias name="manrope-medium" to="manrope" weight="600" />
<family customizationType="new-named-family" name="urbanist">
<font weight="500" style="normal">Urbanist-VF.ttf
<axis tag="wght" stylevalue="500"/>
</font>
<font weight="600" style="normal">Urbanist-VF.ttf
<axis tag="wght" stylevalue="600"/>
</font>
<font weight="700" style="normal">Urbanist-VF.ttf
<axis tag="wght" stylevalue="700"/>
</font>
<font weight="800" style="normal">Urbanist-VF.ttf
<axis tag="wght" stylevalue="800"/>
</font>
</family>
<alias name="urbanist-medium" to="urbanist" weight="600" />
<family customizationType="new-named-family" name="inter">
<font weight="100" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="100"/>
</font>
<font weight="100" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="100"/>
</font>
<font weight="200" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="200"/>
</font>
<font weight="200" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="200"/>
</font>
<font weight="300" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="300"/>
</font>
<font weight="300" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="300"/>
</font>
<font weight="400" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="400"/>
</font>
<font weight="400" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="400"/>
</font>
<font weight="500" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="500"/>
</font>
<font weight="500" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="500"/>
</font>
<font weight="700" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="700"/>
</font>
<font weight="700" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="700"/>
</font>
<font weight="900" style="normal">Inter-VF.ttf
<axis tag="wght" stylevalue="900"/>
</font>
<font weight="900" style="italic">Inter-VF.ttf
<axis tag="wght" stylevalue="900"/>
</font>
</family>
<alias name="inter-medium" to="inter" weight="500" />
</fonts-modification>

BIN
prebuilt/fonts/Inter-VF.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.