mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
NanoDroid-Font: in Sytem Mode only backup original font, if the custom font provided actually exists
This commit is contained in:
parent
43bf24d5e0
commit
db89d9b76c
@ -15,8 +15,9 @@
|
||||
|
||||
### General Changes
|
||||
|
||||
* Full package
|
||||
* NanoDroid-Font (nanodroid-font)
|
||||
* add `Splatoon` and `SuperMarioOdyssey` fonts
|
||||
* in Sytem Mode only backup original font, if the custom font provided actually exists
|
||||
* README
|
||||
* add weblinks in the Credits section
|
||||
|
||||
|
@ -79,9 +79,9 @@ set_font () {
|
||||
error "Font ${1} does not exist"
|
||||
fi
|
||||
else
|
||||
backup_font
|
||||
|
||||
if [ -f /system/fonts/NanoDroid/${1}.ttf ]; then
|
||||
backup_font
|
||||
|
||||
for font in ${FONTFILES}; do
|
||||
ln -sf /system/fonts/NanoDroid/${1}.ttf \
|
||||
/system/fonts/${font} || \
|
||||
|
Loading…
Reference in New Issue
Block a user