Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ PRODUCT_PACKAGES += \
FontArbutus \
FontArvoLato \
FontGoogleSans \
FontInter \
FontKai \
FontManrope \
FontNotoSerifSource \
FontOnePlusSans \
FontPlusJakartaSans \
FontRosemary \
FontRubik \
FontVictor

Expand Down
31 changes: 30 additions & 1 deletion etc/fonts_customization.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,34 @@
<alias name="plus-jakarta-sans-medium" to="plus-jakarta-sans" weight="500" />
<alias name="plus-jakarta-sans-bold" to="plus-jakarta-sans" weight="700" />
<alias name="plus-jakarta-sans-black" to="plus-jakarta-sans" weight="900" />


<!-- Inter -->
<family customizationType="new-named-family" name="inter">
<font weight="100" style="normal">Inter-ExtraLight.ttf</font>
<font weight="100" style="italic">Inter-ExtraLightItalic.ttf</font>
<font weight="300" style="normal">Inter-Light.ttf</font>
<font weight="300" style="italic">Inter-LightItalic.ttf</font>
<font weight="400" style="normal">Inter-Regular.ttf</font>
<font weight="400" style="italic">Inter-Italic.ttf</font>
<font weight="500" style="normal">Inter-Medium.ttf</font>
<font weight="500" style="italic">Inter-MediumItalic.ttf</font>
<font weight="700" style="normal">Inter-Bold.ttf</font>
<font weight="700" style="italic">Inter-BoldItalic.ttf</font>
<font weight="900" style="normal">Inter-ExtraBold.ttf</font>
<font weight="900" style="italic">Inter-ExtraBoldItalic.ttf</font>
</family>
<alias name="inter-thin" to="inter" weight="100" />
<alias name="inter-light" to="inter" weight="300" />
<alias name="inter-regular" to="inter" weight="400" />
<alias name="inter-medium" to="inter" weight="500" />
<alias name="inter-bold" to="inter" weight="700" />
<alias name="inter-black" to="inter" weight="900" />

<!-- Rosemary -->
<family customizationType="new-named-family" name="rosemary">
<font weight="300" style="normal">Rosemary-Regular.ttf</font>
</family>
<alias name="rosemary-semi-bold" to="rosemary" weight="600" />
<alias name="rosemary-bold" to="rosemary" weight="700" />

</fonts-modification>
Binary file added fonts/Inter-Bold.ttf
Binary file not shown.
Binary file added fonts/Inter-BoldItalic.ttf
Binary file not shown.
Binary file added fonts/Inter-ExtraBold.ttf
Binary file not shown.
Binary file added fonts/Inter-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added fonts/Inter-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/Inter-ExtraLightItalic.ttf
Binary file not shown.
Binary file added fonts/Inter-Italic.ttf
Binary file not shown.
Binary file added fonts/Inter-Light.ttf
Binary file not shown.
Binary file added fonts/Inter-LightItalic.ttf
Binary file not shown.
Binary file added fonts/Inter-Medium.ttf
Binary file not shown.
Binary file added fonts/Inter-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Inter-Regular.ttf
Binary file not shown.
Binary file added fonts/Rosemary-Regular.ttf
Binary file not shown.
29 changes: 29 additions & 0 deletions packages/fonts/FontInter/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Copyright 2019, 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.
#

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_RRO_THEME := FontInter

LOCAL_PRODUCT_MODULE := true

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res

LOCAL_PACKAGE_NAME := FontInter
LOCAL_SDK_VERSION := current

include $(BUILD_RRO_PACKAGE)
32 changes: 32 additions & 0 deletions packages/fonts/FontInter/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
/**
* Copyright (c) 2023 Halcyon Project
* (c) 2019-2023 The conquerOS Projecct
*
* 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.android.theme.font.inter"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:category="android.theme.customization.font"
android:priority="1"/>

<application android:label="@string/font_inter_overlay" android:hasCode="false">
<meta-data
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
android:value="inter,inter-regular,inter-medium" />
</application>
</manifest>
34 changes: 34 additions & 0 deletions packages/fonts/FontInter/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
/**
* Copyright (c) 2023 Halcyon Project
* (c) 2019-2023 The conquerOS Projecct
*
* 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">inter-regular</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-regular</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>

24 changes: 24 additions & 0 deletions packages/fonts/FontInter/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
/**
* Copyright (c) 2023 Halcyon Project
* (c) 2019-2023 The conquerOS Projecct
*
* 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">

<!-- Overlay name -->
<string name="font_inter_overlay" translatable="false">Inter</string>

</resources>
29 changes: 29 additions & 0 deletions packages/fonts/FontRosemary/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# Copyright 2019, 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.
#

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_RRO_THEME := FontRosemary

LOCAL_PRODUCT_MODULE := true

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res

LOCAL_PACKAGE_NAME := FontRosemary
LOCAL_SDK_VERSION := current

include $(BUILD_RRO_PACKAGE)
32 changes: 32 additions & 0 deletions packages/fonts/FontRosemary/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
/**
* Copyright (c) 2023 Halcyon Project
* (c) 2019-2023 The conquerOS Projecct
*
* 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.android.theme.font.rosemary"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:category="android.theme.customization.font"
android:priority="1"/>

<application android:label="@string/font_rosemary_overlay" android:hasCode="false">
<meta-data
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
android:value="rosemary,rosemary-semi-bold,rosemary-bold" />
</application>
</manifest>
33 changes: 33 additions & 0 deletions packages/fonts/FontRosemary/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--
/**
* Copyright (c) 2023 Halcyon Project
* (c) 2019-2023 The conquerOS Projecct
*
* 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">rosemary</string>

<!-- Name of a font family to use for medium body text. -->
<string name="config_bodyFontFamilyMedium" translatable="false">rosemary-medium</string>

<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
<string name="config_headlineFontFamily" translatable="false">rosemary-regular</string>

<!-- Name of the font family used for system surfaces where the font should use medium weight -->
<string name="config_headlineFontFamilyMedium" translatable="false">rosemary-medium</string>

</resources>
24 changes: 24 additions & 0 deletions packages/fonts/FontRosemary/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
/**
* Copyright (c) 2023 Halcyon Project
* (c) 2019-2023 The conquerOS Projecct
*
* 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">

<!-- Overlay name -->
<string name="font_rosemary_overlay" translatable="false">Rosemary</string>

</resources>