update
This commit is contained in:
parent
ad73a80ef0
commit
bb93de6f98
@ -1,11 +1,12 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(call all-subdir-makefiles,$(LOCAL_PATH))
|
||||
|
||||
# Include prebuilts packages
|
||||
include vendor/custom/prebuilts/prebuilts.mk
|
||||
RELAX_USES_LIBRARY_CHECK=true
|
||||
|
||||
PRODUCT_REMOVE_PACKAGES += \
|
||||
# LOCAL_OVERRIDES_PACKAGES PRODUCT_REMOVE_PACKAGES
|
||||
LOCAL_OVERRIDES_PACKAGES += \
|
||||
Seedvault \
|
||||
XiaomiEuicc \
|
||||
Jelly
|
||||
|
||||
|
0
overlay/fonts/Android.bp
Normal file
0
overlay/fonts/Android.bp
Normal file
3
overlay/fonts/Android.mk
Normal file
3
overlay/fonts/Android.mk
Normal file
@ -0,0 +1,3 @@
|
||||
# Fonts
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(call find-copy-subdir-files,*,vendor/custom/fonts/fonts/,$(TARGET_COPY_OUT_PRODUCT)/fonts)
|
@ -1,8 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.custom.fonts">
|
||||
<application android:hasCode="false">
|
||||
<overlay android:targetPackage="android"
|
||||
android:priority="1"
|
||||
android:isStatic="true" />
|
||||
</application>
|
||||
</manifest>
|
25
overlay/fonts/FontWenkaiOverlay/Android.bp
Normal file
25
overlay/fonts/FontWenkaiOverlay/Android.bp
Normal file
@ -0,0 +1,25 @@
|
||||
//
|
||||
// Copyright (c) 2020,2022 The LineageOS 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.
|
||||
//
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "FontWenkaiOverlay",
|
||||
theme: "FontWenkai",
|
||||
product_specific: true,
|
||||
}
|
33
overlay/fonts/FontWenkaiOverlay/AndroidManifest.xml
Normal file
33
overlay/fonts/FontWenkaiOverlay/AndroidManifest.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<!--
|
||||
Copyright (c) 2020, The LineageOS 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.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.overlay.font.wenkai"
|
||||
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_wenkai_overlay">
|
||||
<meta-data
|
||||
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
|
||||
android:value="wenkai,wenkai-medium" />
|
||||
</application>
|
||||
</manifest>
|
29
overlay/fonts/FontWenkaiOverlay/res/values/config.xml
Normal file
29
overlay/fonts/FontWenkaiOverlay/res/values/config.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2020, The LineageOS 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.
|
||||
*/
|
||||
-->
|
||||
<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">wenkai</string>
|
||||
<!-- Name of a font family to use for medium body text. -->
|
||||
<string name="config_bodyFontFamilyMedium" translatable="false">wenkai-medium</string>
|
||||
<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
|
||||
<string name="config_headlineFontFamily" translatable="false">wenkai</string>
|
||||
<!-- Name of the font family used for system surfaces where the font should use medium weight -->
|
||||
<string name="config_headlineFontFamilyMedium" translatable="false">wenkai-medium</string>
|
||||
</resources>
|
||||
|
20
overlay/fonts/FontWenkaiOverlay/res/values/strings.xml
Normal file
20
overlay/fonts/FontWenkaiOverlay/res/values/strings.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2020, 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.
|
||||
*/
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string name="font_wenkai_overlay" translatable="false">WenKai</string>
|
||||
</resources>
|
25
overlay/fonts/FontWkmonoOverlay/Android.bp
Normal file
25
overlay/fonts/FontWkmonoOverlay/Android.bp
Normal file
@ -0,0 +1,25 @@
|
||||
//
|
||||
// Copyright (c) 2020,2022 The LineageOS 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.
|
||||
//
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "FontWenkaiOverlay",
|
||||
theme: "FontWenkai",
|
||||
product_specific: true,
|
||||
}
|
33
overlay/fonts/FontWkmonoOverlay/AndroidManifest.xml
Normal file
33
overlay/fonts/FontWkmonoOverlay/AndroidManifest.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<!--
|
||||
Copyright (c) 2020, The LineageOS 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.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.overlay.font.wkmono"
|
||||
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_wkmono_overlay">
|
||||
<meta-data
|
||||
android:name="android.theme.customization.REQUIRED_SYSTEM_FONTS"
|
||||
android:value="wkmono,wkmono-medium" />
|
||||
</application>
|
||||
</manifest>
|
29
overlay/fonts/FontWkmonoOverlay/res/values/config.xml
Normal file
29
overlay/fonts/FontWkmonoOverlay/res/values/config.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2020, The LineageOS 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.
|
||||
*/
|
||||
-->
|
||||
<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">wkmono</string>
|
||||
<!-- Name of a font family to use for medium body text. -->
|
||||
<string name="config_bodyFontFamilyMedium" translatable="false">wkmono-medium</string>
|
||||
<!-- Name of a font family to use for headlines. If empty, falls back to platform default -->
|
||||
<string name="config_headlineFontFamily" translatable="false">wkmono</string>
|
||||
<!-- Name of the font family used for system surfaces where the font should use medium weight -->
|
||||
<string name="config_headlineFontFamilyMedium" translatable="false">wkmono-medium</string>
|
||||
</resources>
|
||||
|
20
overlay/fonts/FontWkmonoOverlay/res/values/strings.xml
Normal file
20
overlay/fonts/FontWkmonoOverlay/res/values/strings.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2020, 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.
|
||||
*/
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<string name="font_wkmono_overlay" translatable="false">Wkmono</string>
|
||||
</resources>
|
18
overlay/fonts/config/fonts_customization.xml
Normal file
18
overlay/fonts/config/fonts_customization.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<fonts-modification version="1">
|
||||
<family customizationType="new-named-family" name="wenkai">
|
||||
<font weight="400" style="normal">LXGWWenKai-Light.ttf</font>
|
||||
<font weight="500" style="normal">LXGWWenKai-Regular.ttf</font>
|
||||
<font weight="700" style="normal">LXGWWenKai-Medium.ttf</font>
|
||||
</family>
|
||||
<alias name="wenkai-medium" to="wenkai" weight="500" />
|
||||
<alias name="wenkai-bold" to="wenkai" weight="700" />
|
||||
|
||||
<family customizationType="new-named-family" name="wkmono">
|
||||
<font weight="400" style="normal">LXGWWenKaiMono-Light.ttf</font>
|
||||
<font weight="500" style="normal">LXGWWenKaiMono-Regular.ttf</font>
|
||||
<font weight="700" style="normal">LXGWWenKaiMono-Medium.ttf</font>
|
||||
</family>
|
||||
<alias name="wkmono-medium" to="wkmono" weight="500" />
|
||||
<alias name="wkmono-bold" to="wkmono" weight="700" />
|
||||
</fonts-modification>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<font-family>
|
||||
<font android:fontFamily="@font/>LXGWWenKai-Light.ttf" android:weight="300" android:style="normal" />
|
||||
<font android:fontFamily="@font/>LXGWWenKai-Regular.ttf" android:weight="400" android:style="normal" />
|
||||
<font android:fontFamily="@font/LXGWWenKai-Medium.ttf" android:weight="700" android:style="normal" />
|
||||
|
||||
<font android:fontFamily="@font/LXGWWenKaiMono-Light.ttf" android:weight="300" android:style="normal" />
|
||||
<font android:fontFamily="@font/LXGWWenKaiMono-Regular.ttf" android:weight="400" android:style="normal" />
|
||||
<font android:fontFamily="@font/LXGWWenKaiMono-Medium.ttf" android:weight="700" android:style="normal" />
|
||||
</font-family>
|
Loading…
x
Reference in New Issue
Block a user