Skip to content

Commit

Permalink
Add DU font package
Browse files Browse the repository at this point in the history
Fonts taken from dafont.com and free to use for personal use and not
commercial use.

https://www.dafont.com/

According to 18 USCS § 31, term "used for commercial purposes" means the
carriage of persons or property for any fare, fee, rate, charge or other
consideration, or directly or indirectly in connection with any business,
or other undertaking intended for profit.

https://definitions.uslegal.com/u/used-for-commercial-purposes/

Since DU is not and will never be a for profit, we're in the clear :-)

- Fonts xml files generated for these font zips thanks to @USA-RedDragon

Change-Id: I1440d6c51ee25c7e465e83b2f4ec5099f03e741d
  • Loading branch information
Alex Cruz committed Mar 16, 2018
1 parent 2b60546 commit c5b22c8
Show file tree
Hide file tree
Showing 23 changed files with 73 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/packages.mk
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ PRODUCT_PACKAGES += \
YellowAccent \ YellowAccent \
WhiteAccent WhiteAccent


# Fonts
PRODUCT_PACKAGES += \
DU-Fonts

# Extra tools # Extra tools
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
openvpn \ openvpn \
Expand Down
4 changes: 4 additions & 0 deletions overlay/common/frameworks/base/core/res/res/values/config.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@
--> -->
<bool name="config_enableWifiDisplay">true</bool> <bool name="config_enableWifiDisplay">true</bool>


<!-- System font packages (overlay in vendor) -->
<string-array name="config_fontPackages" translatable="false">
<item>com.dirtyunicorns.fonts</item>
</string-array>
</resources> </resources>
11 changes: 11 additions & 0 deletions themes/Fonts/Android.mk
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_PACKAGE_NAME := DU-Fonts
LOCAL_SDK_VERSION := current
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := false

include $(BUILD_PACKAGE)
8 changes: 8 additions & 0 deletions themes/Fonts/AndroidManifest.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dirtyunicorns.fonts">

<application android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:hasCode="false"/>

</manifest>
Binary file added themes/Fonts/assets/fonts/Alpaca.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Atma.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Big_River_Script.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Caviar_Dreams.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Google_Sans.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Quick.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Rounded_Elegance.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Sony_Sketch.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Storopia.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Ubuntu.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Unicorn.zip
Binary file not shown.
Binary file added themes/Fonts/assets/fonts/Walkway.zip
Binary file not shown.
Binary file added themes/Fonts/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/Fonts/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions themes/Fonts/res/values/bools.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2017, 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>

<bool name="custom_rom_font_provider">true</bool>

</resources>
23 changes: 23 additions & 0 deletions themes/Fonts/res/values/strings.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2017, 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="app_name">DU Fonts</string>

</resources>

0 comments on commit c5b22c8

Please sign in to comment.