update
This commit is contained in:
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>
|
Reference in New Issue
Block a user