fonts: Add AlbertSans
Change-Id: I5fe59144c29507014e99bc31ef91af0448b8c222 Signed-off-by: Mohammad Hasan Keramat J <ikeramat@protonmail.com>
This commit is contained in:
parent
3bfa209b4b
commit
ccb481eb03
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,25 @@
|
|||
//
|
||||
// Copyright (c) 2024 The LibreMobileOS Foundation
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "FontAlbertSansOverlay",
|
||||
theme: "FontAlbertSans",
|
||||
product_specific: true,
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
<!--
|
||||
Copyright (c) 2024, The LibreMobileOS Foundation
|
||||
|
||||
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="com.libremobileos.overlay.font.albertsans"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
|
||||
<overlay
|
||||
android:targetPackage="android"
|
||||
android:category="android.theme.customization.font"
|
||||
android:priority="1" />
|
||||
|
||||
<application
|
||||
android:hasCode="false"
|
||||
android:label="@string/font_albertsans_overlay">
|
||||
<meta-data
|
||||
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
|
||||
android:value="albertsans,albertsans-medium" />
|
||||
</application>
|
||||
</manifest>
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2024, The LibreMobileOS Foundation
|
||||
*
|
||||
* 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Name of a font family to use for body text. -->
|
||||
<string name="config_bodyFontFamily" translatable="false">albertsans</string>
|
||||
<!-- Name of a font family to use for medium body text. -->
|
||||
<string name="config_bodyFontFamilyMedium" translatable="false">albertsans-medium</string>
|
||||
<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
|
||||
<string name="config_headlineFontFamily" translatable="false">albertsans</string>
|
||||
<!-- Name of the font family used for system surfaces where the font should use medium weight -->
|
||||
<string name="config_headlineFontFamilyMedium" translatable="false">albertsans-medium</string>
|
||||
</resources>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<!--
|
||||
/**
|
||||
* Copyright (c) 2024, The LibreMobileOS Foundation
|
||||
*
|
||||
* 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Headline / Body font Lato overlay -->
|
||||
<string name="font_albertsans_overlay" translatable="false">AlbertSans</string>
|
||||
</resources>
|
|
@ -30,6 +30,7 @@ PRODUCT_PACKAGES += \
|
|||
FontOnePlusSansOverlay \
|
||||
FontOppoSansOverlay \
|
||||
FontUrbanistOverlay \
|
||||
FontAlbertSansOverlay \
|
||||
IconPackCircularAndroidOverlay \
|
||||
IconPackCircularLauncherOverlay \
|
||||
IconPackCircularSettingsOverlay \
|
||||
|
|
|
@ -432,4 +432,14 @@
|
|||
<alias name="linotte-semi-bold" to="linotte" weight="600" />
|
||||
<alias name="linotte-bold" to="linotte" weight="700" />
|
||||
|
||||
<family customizationType="new-named-family" name="albertsans">
|
||||
<font weight="400" style="normal">AlbertSans-Regular.ttf</font>
|
||||
<font weight="400" style="italic">AlbertSans-Italic.ttf</font>
|
||||
<font weight="500" style="normal">AlbertSans-Medium.ttf</font>
|
||||
<font weight="500" style="italic">AlbertSans-MediumItalic.ttf</font>
|
||||
<font weight="700" style="normal">AlbertSans-Bold.ttf</font>
|
||||
<font weight="700" style="italic">AlbertSans-BoldItalic.ttf</font>
|
||||
</family>
|
||||
<alias name="albertsans-medium" to="albertsans" weight="500" />
|
||||
|
||||
</fonts-modification>
|
||||
|
|
Loading…
Reference in New Issue