From 72f176201ee4bdb2b7057f5b5443cf232debd0c2 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 17 Jun 2020 09:38:36 +0800 Subject: Add FontPreviewFragment. Add some fonts and delete some. --- app/src/main/res/font/bad_script_regular.ttf | Bin 0 -> 50768 bytes app/src/main/res/font/caveat.xml | 12 ++ app/src/main/res/font/caveat_bold.ttf | Bin 0 -> 335416 bytes app/src/main/res/font/caveat_regular.ttf | Bin 0 -> 330800 bytes app/src/main/res/font/inter.xml | 5 - app/src/main/res/font/inter_light.ttf | Bin 288088 -> 0 bytes app/src/main/res/font/manrope.xml | 5 - app/src/main/res/font/manrope_light.ttf | Bin 92412 -> 0 bytes app/src/main/res/font/roboto_condensed.xml | 10 -- app/src/main/res/font/roboto_condensed_light.ttf | Bin 167568 -> 0 bytes .../res/font/roboto_condensed_light_italic.ttf | Bin 174908 -> 0 bytes app/src/main/res/font/rubik.xml | 32 ------ app/src/main/res/font/rubik_bold.ttf | Bin 136068 -> 0 bytes app/src/main/res/font/rubik_bold_italic.ttf | Bin 139280 -> 0 bytes app/src/main/res/font/rubik_italic.ttf | Bin 136160 -> 0 bytes app/src/main/res/font/rubik_light.ttf | Bin 130688 -> 0 bytes app/src/main/res/font/rubik_light_italic.ttf | Bin 133940 -> 0 bytes app/src/main/res/font/rubik_regular.ttf | Bin 133376 -> 0 bytes app/src/main/res/font/selawk.xml | 17 --- app/src/main/res/font/selawk_bold.ttf | Bin 44068 -> 0 bytes app/src/main/res/font/selawk_light.ttf | Bin 44232 -> 0 bytes app/src/main/res/font/selawk_regular.ttf | Bin 44224 -> 0 bytes app/src/main/res/font/sriracha_regular.ttf | Bin 0 -> 309724 bytes app/src/main/res/layout/fragment_font_preview.xml | 128 +++++++++++++++++++++ app/src/main/res/values/arrays.xml | 10 +- app/src/main/res/values/strings.xml | 5 + app/src/main/res/values/styles.xml | 48 +++++--- app/src/main/res/xml/font_preferences.xml | 4 + 28 files changed, 185 insertions(+), 91 deletions(-) create mode 100644 app/src/main/res/font/bad_script_regular.ttf create mode 100644 app/src/main/res/font/caveat.xml create mode 100644 app/src/main/res/font/caveat_bold.ttf create mode 100644 app/src/main/res/font/caveat_regular.ttf delete mode 100644 app/src/main/res/font/inter_light.ttf delete mode 100644 app/src/main/res/font/manrope_light.ttf delete mode 100644 app/src/main/res/font/roboto_condensed_light.ttf delete mode 100644 app/src/main/res/font/roboto_condensed_light_italic.ttf delete mode 100644 app/src/main/res/font/rubik.xml delete mode 100644 app/src/main/res/font/rubik_bold.ttf delete mode 100644 app/src/main/res/font/rubik_bold_italic.ttf delete mode 100644 app/src/main/res/font/rubik_italic.ttf delete mode 100644 app/src/main/res/font/rubik_light.ttf delete mode 100644 app/src/main/res/font/rubik_light_italic.ttf delete mode 100644 app/src/main/res/font/rubik_regular.ttf delete mode 100644 app/src/main/res/font/selawk.xml delete mode 100644 app/src/main/res/font/selawk_bold.ttf delete mode 100644 app/src/main/res/font/selawk_light.ttf delete mode 100644 app/src/main/res/font/selawk_regular.ttf create mode 100644 app/src/main/res/font/sriracha_regular.ttf create mode 100644 app/src/main/res/layout/fragment_font_preview.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/font/bad_script_regular.ttf b/app/src/main/res/font/bad_script_regular.ttf new file mode 100644 index 00000000..7dc02d4a Binary files /dev/null and b/app/src/main/res/font/bad_script_regular.ttf differ diff --git a/app/src/main/res/font/caveat.xml b/app/src/main/res/font/caveat.xml new file mode 100644 index 00000000..57393ffd --- /dev/null +++ b/app/src/main/res/font/caveat.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/font/caveat_bold.ttf b/app/src/main/res/font/caveat_bold.ttf new file mode 100644 index 00000000..e7e6a837 Binary files /dev/null and b/app/src/main/res/font/caveat_bold.ttf differ diff --git a/app/src/main/res/font/caveat_regular.ttf b/app/src/main/res/font/caveat_regular.ttf new file mode 100644 index 00000000..278a61c8 Binary files /dev/null and b/app/src/main/res/font/caveat_regular.ttf differ diff --git a/app/src/main/res/font/inter.xml b/app/src/main/res/font/inter.xml index 3a0d1784..6b7e74f3 100644 --- a/app/src/main/res/font/inter.xml +++ b/app/src/main/res/font/inter.xml @@ -9,9 +9,4 @@ app:fontStyle="normal" app:fontWeight="700" app:font="@font/inter_bold" /> - - \ No newline at end of file diff --git a/app/src/main/res/font/inter_light.ttf b/app/src/main/res/font/inter_light.ttf deleted file mode 100644 index 8a2b98b5..00000000 Binary files a/app/src/main/res/font/inter_light.ttf and /dev/null differ diff --git a/app/src/main/res/font/manrope.xml b/app/src/main/res/font/manrope.xml index 0193f184..d9db58d6 100644 --- a/app/src/main/res/font/manrope.xml +++ b/app/src/main/res/font/manrope.xml @@ -9,9 +9,4 @@ app:fontStyle="normal" app:fontWeight="700" app:font="@font/manrope_bold" /> - - \ No newline at end of file diff --git a/app/src/main/res/font/manrope_light.ttf b/app/src/main/res/font/manrope_light.ttf deleted file mode 100644 index 5a771c80..00000000 Binary files a/app/src/main/res/font/manrope_light.ttf and /dev/null differ diff --git a/app/src/main/res/font/roboto_condensed.xml b/app/src/main/res/font/roboto_condensed.xml index e2a5da42..64811d6e 100644 --- a/app/src/main/res/font/roboto_condensed.xml +++ b/app/src/main/res/font/roboto_condensed.xml @@ -10,16 +10,6 @@ app:fontWeight="700" app:font="@font/roboto_condensed_bold" /> - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/font/rubik_bold.ttf b/app/src/main/res/font/rubik_bold.ttf deleted file mode 100644 index 4e77930f..00000000 Binary files a/app/src/main/res/font/rubik_bold.ttf and /dev/null differ diff --git a/app/src/main/res/font/rubik_bold_italic.ttf b/app/src/main/res/font/rubik_bold_italic.ttf deleted file mode 100644 index f6322472..00000000 Binary files a/app/src/main/res/font/rubik_bold_italic.ttf and /dev/null differ diff --git a/app/src/main/res/font/rubik_italic.ttf b/app/src/main/res/font/rubik_italic.ttf deleted file mode 100644 index 2ddac98e..00000000 Binary files a/app/src/main/res/font/rubik_italic.ttf and /dev/null differ diff --git a/app/src/main/res/font/rubik_light.ttf b/app/src/main/res/font/rubik_light.ttf deleted file mode 100644 index 8189d848..00000000 Binary files a/app/src/main/res/font/rubik_light.ttf and /dev/null differ diff --git a/app/src/main/res/font/rubik_light_italic.ttf b/app/src/main/res/font/rubik_light_italic.ttf deleted file mode 100644 index 8a9ae95a..00000000 Binary files a/app/src/main/res/font/rubik_light_italic.ttf and /dev/null differ diff --git a/app/src/main/res/font/rubik_regular.ttf b/app/src/main/res/font/rubik_regular.ttf deleted file mode 100644 index 52b59ca4..00000000 Binary files a/app/src/main/res/font/rubik_regular.ttf and /dev/null differ diff --git a/app/src/main/res/font/selawk.xml b/app/src/main/res/font/selawk.xml deleted file mode 100644 index 28f46f58..00000000 --- a/app/src/main/res/font/selawk.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/font/selawk_bold.ttf b/app/src/main/res/font/selawk_bold.ttf deleted file mode 100644 index 2134a765..00000000 Binary files a/app/src/main/res/font/selawk_bold.ttf and /dev/null differ diff --git a/app/src/main/res/font/selawk_light.ttf b/app/src/main/res/font/selawk_light.ttf deleted file mode 100644 index cbfaaf99..00000000 Binary files a/app/src/main/res/font/selawk_light.ttf and /dev/null differ diff --git a/app/src/main/res/font/selawk_regular.ttf b/app/src/main/res/font/selawk_regular.ttf deleted file mode 100644 index 736bac3c..00000000 Binary files a/app/src/main/res/font/selawk_regular.ttf and /dev/null differ diff --git a/app/src/main/res/font/sriracha_regular.ttf b/app/src/main/res/font/sriracha_regular.ttf new file mode 100644 index 00000000..cbc699a3 Binary files /dev/null and b/app/src/main/res/font/sriracha_regular.ttf differ diff --git a/app/src/main/res/layout/fragment_font_preview.xml b/app/src/main/res/layout/fragment_font_preview.xml new file mode 100644 index 00000000..4101473e --- /dev/null +++ b/app/src/main/res/layout/fragment_font_preview.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index e5bcf611..768f5d0c 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -129,10 +129,11 @@ Noto Sans Roboto Condensed Harmonia Sans - Selawk Inter Manrope - Rubik + Caveat + Bad Script + Sriracha @@ -141,10 +142,11 @@ NotoSans RobotoCondensed HarmoniaSans - Selawk Inter Manrope - Rubik + Caveat + BadScript + Sriracha diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 032a47eb..7adda6a6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -352,6 +352,7 @@ Swipe Up to Hide Jump to Next Top-level Comment Button Lazy Mode Interval Font + Font Preview Font Title Content @@ -772,4 +773,8 @@ Set to Lock Screen Set to Both + Default + + Hello blank fragment + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 6e46c6cf..770fc6b9 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -254,10 +254,6 @@ @font/harmonia_sans - - @@ -266,8 +262,16 @@ @font/manrope - + + + + - - @@ -304,8 +304,16 @@ @font/manrope - + + + + - - @@ -342,8 +346,16 @@ @font/manrope - + + + +