From bb93de6f9876d0c276d56e920fc68b4378d98ddb Mon Sep 17 00:00:00 2001 From: shuixx Date: Sun, 2 Feb 2025 16:09:55 +0800 Subject: [PATCH] update --- config.mk | 5 +-- overlay/fonts/Android.bp | 0 overlay/fonts/Android.mk | 3 ++ overlay/fonts/AndroidManifest.xml | 8 ----- overlay/fonts/FontWenkaiOverlay/Android.bp | 25 +++++++++++++ .../FontWenkaiOverlay/AndroidManifest.xml | 33 ++++++++++++++++++ .../FontWenkaiOverlay/res/values/config.xml | 29 +++++++++++++++ .../FontWenkaiOverlay/res/values/strings.xml | 20 +++++++++++ overlay/fonts/FontWkmonoOverlay/Android.bp | 25 +++++++++++++ .../FontWkmonoOverlay/AndroidManifest.xml | 33 ++++++++++++++++++ .../FontWkmonoOverlay/res/values/config.xml | 29 +++++++++++++++ .../FontWkmonoOverlay/res/values/strings.xml | 20 +++++++++++ overlay/fonts/config/fonts_customization.xml | 18 ++++++++++ .../{res/font => fonts}/LXGWWenKai-Light.ttf | Bin .../{res/font => fonts}/LXGWWenKai-Medium.ttf | Bin .../font => fonts}/LXGWWenKai-Regular.ttf | Bin .../font => fonts}/LXGWWenKaiMono-Light.ttf | Bin .../font => fonts}/LXGWWenKaiMono-Medium.ttf | Bin .../font => fonts}/LXGWWenKaiMono-Regular.ttf | Bin overlay/fonts/res/values/fonts.xml | 10 ------ 20 files changed, 238 insertions(+), 20 deletions(-) create mode 100644 overlay/fonts/Android.bp create mode 100644 overlay/fonts/Android.mk delete mode 100644 overlay/fonts/AndroidManifest.xml create mode 100644 overlay/fonts/FontWenkaiOverlay/Android.bp create mode 100644 overlay/fonts/FontWenkaiOverlay/AndroidManifest.xml create mode 100644 overlay/fonts/FontWenkaiOverlay/res/values/config.xml create mode 100644 overlay/fonts/FontWenkaiOverlay/res/values/strings.xml create mode 100644 overlay/fonts/FontWkmonoOverlay/Android.bp create mode 100644 overlay/fonts/FontWkmonoOverlay/AndroidManifest.xml create mode 100644 overlay/fonts/FontWkmonoOverlay/res/values/config.xml create mode 100644 overlay/fonts/FontWkmonoOverlay/res/values/strings.xml create mode 100644 overlay/fonts/config/fonts_customization.xml rename overlay/fonts/{res/font => fonts}/LXGWWenKai-Light.ttf (100%) rename overlay/fonts/{res/font => fonts}/LXGWWenKai-Medium.ttf (100%) rename overlay/fonts/{res/font => fonts}/LXGWWenKai-Regular.ttf (100%) rename overlay/fonts/{res/font => fonts}/LXGWWenKaiMono-Light.ttf (100%) rename overlay/fonts/{res/font => fonts}/LXGWWenKaiMono-Medium.ttf (100%) rename overlay/fonts/{res/font => fonts}/LXGWWenKaiMono-Regular.ttf (100%) delete mode 100644 overlay/fonts/res/values/fonts.xml diff --git a/config.mk b/config.mk index 878625c..77d5832 100644 --- a/config.mk +++ b/config.mk @@ -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 + diff --git a/overlay/fonts/Android.bp b/overlay/fonts/Android.bp new file mode 100644 index 0000000..e69de29 diff --git a/overlay/fonts/Android.mk b/overlay/fonts/Android.mk new file mode 100644 index 0000000..57599d6 --- /dev/null +++ b/overlay/fonts/Android.mk @@ -0,0 +1,3 @@ +# Fonts +PRODUCT_COPY_FILES += \ + $(call find-copy-subdir-files,*,vendor/custom/fonts/fonts/,$(TARGET_COPY_OUT_PRODUCT)/fonts) diff --git a/overlay/fonts/AndroidManifest.xml b/overlay/fonts/AndroidManifest.xml deleted file mode 100644 index f242ee7..0000000 --- a/overlay/fonts/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/overlay/fonts/FontWenkaiOverlay/Android.bp b/overlay/fonts/FontWenkaiOverlay/Android.bp new file mode 100644 index 0000000..149bc71 --- /dev/null +++ b/overlay/fonts/FontWenkaiOverlay/Android.bp @@ -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, +} diff --git a/overlay/fonts/FontWenkaiOverlay/AndroidManifest.xml b/overlay/fonts/FontWenkaiOverlay/AndroidManifest.xml new file mode 100644 index 0000000..c0e3321 --- /dev/null +++ b/overlay/fonts/FontWenkaiOverlay/AndroidManifest.xml @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/overlay/fonts/FontWenkaiOverlay/res/values/config.xml b/overlay/fonts/FontWenkaiOverlay/res/values/config.xml new file mode 100644 index 0000000..016d102 --- /dev/null +++ b/overlay/fonts/FontWenkaiOverlay/res/values/config.xml @@ -0,0 +1,29 @@ + + + + + wenkai + + wenkai-medium + + wenkai + + wenkai-medium + + diff --git a/overlay/fonts/FontWenkaiOverlay/res/values/strings.xml b/overlay/fonts/FontWenkaiOverlay/res/values/strings.xml new file mode 100644 index 0000000..2527807 --- /dev/null +++ b/overlay/fonts/FontWenkaiOverlay/res/values/strings.xml @@ -0,0 +1,20 @@ + + + WenKai + diff --git a/overlay/fonts/FontWkmonoOverlay/Android.bp b/overlay/fonts/FontWkmonoOverlay/Android.bp new file mode 100644 index 0000000..149bc71 --- /dev/null +++ b/overlay/fonts/FontWkmonoOverlay/Android.bp @@ -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, +} diff --git a/overlay/fonts/FontWkmonoOverlay/AndroidManifest.xml b/overlay/fonts/FontWkmonoOverlay/AndroidManifest.xml new file mode 100644 index 0000000..038a364 --- /dev/null +++ b/overlay/fonts/FontWkmonoOverlay/AndroidManifest.xml @@ -0,0 +1,33 @@ + + + + + + + + + diff --git a/overlay/fonts/FontWkmonoOverlay/res/values/config.xml b/overlay/fonts/FontWkmonoOverlay/res/values/config.xml new file mode 100644 index 0000000..511e829 --- /dev/null +++ b/overlay/fonts/FontWkmonoOverlay/res/values/config.xml @@ -0,0 +1,29 @@ + + + + + wkmono + + wkmono-medium + + wkmono + + wkmono-medium + + diff --git a/overlay/fonts/FontWkmonoOverlay/res/values/strings.xml b/overlay/fonts/FontWkmonoOverlay/res/values/strings.xml new file mode 100644 index 0000000..6cc4b06 --- /dev/null +++ b/overlay/fonts/FontWkmonoOverlay/res/values/strings.xml @@ -0,0 +1,20 @@ + + + Wkmono + diff --git a/overlay/fonts/config/fonts_customization.xml b/overlay/fonts/config/fonts_customization.xml new file mode 100644 index 0000000..ba7f59f --- /dev/null +++ b/overlay/fonts/config/fonts_customization.xml @@ -0,0 +1,18 @@ + + + + LXGWWenKai-Light.ttf + LXGWWenKai-Regular.ttf + LXGWWenKai-Medium.ttf + + + + + + LXGWWenKaiMono-Light.ttf + LXGWWenKaiMono-Regular.ttf + LXGWWenKaiMono-Medium.ttf + + + + diff --git a/overlay/fonts/res/font/LXGWWenKai-Light.ttf b/overlay/fonts/fonts/LXGWWenKai-Light.ttf similarity index 100% rename from overlay/fonts/res/font/LXGWWenKai-Light.ttf rename to overlay/fonts/fonts/LXGWWenKai-Light.ttf diff --git a/overlay/fonts/res/font/LXGWWenKai-Medium.ttf b/overlay/fonts/fonts/LXGWWenKai-Medium.ttf similarity index 100% rename from overlay/fonts/res/font/LXGWWenKai-Medium.ttf rename to overlay/fonts/fonts/LXGWWenKai-Medium.ttf diff --git a/overlay/fonts/res/font/LXGWWenKai-Regular.ttf b/overlay/fonts/fonts/LXGWWenKai-Regular.ttf similarity index 100% rename from overlay/fonts/res/font/LXGWWenKai-Regular.ttf rename to overlay/fonts/fonts/LXGWWenKai-Regular.ttf diff --git a/overlay/fonts/res/font/LXGWWenKaiMono-Light.ttf b/overlay/fonts/fonts/LXGWWenKaiMono-Light.ttf similarity index 100% rename from overlay/fonts/res/font/LXGWWenKaiMono-Light.ttf rename to overlay/fonts/fonts/LXGWWenKaiMono-Light.ttf diff --git a/overlay/fonts/res/font/LXGWWenKaiMono-Medium.ttf b/overlay/fonts/fonts/LXGWWenKaiMono-Medium.ttf similarity index 100% rename from overlay/fonts/res/font/LXGWWenKaiMono-Medium.ttf rename to overlay/fonts/fonts/LXGWWenKaiMono-Medium.ttf diff --git a/overlay/fonts/res/font/LXGWWenKaiMono-Regular.ttf b/overlay/fonts/fonts/LXGWWenKaiMono-Regular.ttf similarity index 100% rename from overlay/fonts/res/font/LXGWWenKaiMono-Regular.ttf rename to overlay/fonts/fonts/LXGWWenKaiMono-Regular.ttf diff --git a/overlay/fonts/res/values/fonts.xml b/overlay/fonts/res/values/fonts.xml deleted file mode 100644 index 053f831..0000000 --- a/overlay/fonts/res/values/fonts.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file