aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/arrays.xml2
-rw-r--r--app/src/main/res/values/strings.xml8
-rw-r--r--app/src/main/res/xml/font_preferences.xml15
3 files changed, 25 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index c54e574d..8c5c60aa 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -162,6 +162,7 @@
<item>Manrope (No Italic)</item>
<item>Manrope Bold (No Italic)</item>
<item>Sriracha</item>
+ <item>@string/settings_custom_font_family_title</item>
</string-array>
<string-array name="settings_font_family_values">
@@ -179,6 +180,7 @@
<item>Manrope</item>
<item>ManropeBold</item>
<item>Sriracha</item>
+ <item>Custom</item>
</string-array>
<string-array name="settings_tab_post_type">
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 11f1d66d..a82d844d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -619,6 +619,9 @@
<string name="settings_legacy_autoplay_video_controller_ui_title">Legacy Video Controller UI</string>
<string name="settings_pinch_to_zoom_video_title">Pinch to Zoom Video</string>
<string name="settings_experimental_feature">Experimental feature</string>
+ <string name="settings_custom_font_family_title">Custom Font Family</string>
+ <string name="settings_custom_title_font_family_title">Custom Title Font Family</string>
+ <string name="settings_custom_content_font_family_title">Custom Content Font Family</string>
<string name="no_link_available">Cannot get the link</string>
@@ -1245,4 +1248,9 @@
<string name="message_save_profile_success">Save profile successfully</string>
<string name="message_save_profile_failed">Failed to save profile %s</string>
+ <string name="select_a_ttf_font">Select a ttf font file</string>
+ <string name="unable_to_get_font_file">Unable to get your font</string>
+ <string name="unable_to_load_font">Unable to load custom font</string>
+ <string name="unable_to_copy_font_file">Unable to copy your font</string>
+
</resources>
diff --git a/app/src/main/res/xml/font_preferences.xml b/app/src/main/res/xml/font_preferences.xml
index 24b1febe..14db4bb4 100644
--- a/app/src/main/res/xml/font_preferences.xml
+++ b/app/src/main/res/xml/font_preferences.xml
@@ -17,6 +17,11 @@
app:title="@string/settings_font_family_title"
app:useSimpleSummaryProvider="true" />
+ <ml.docilealligator.infinityforreddit.customviews.CustomFontPreference
+ app:title="@string/settings_custom_font_family_title"
+ app:key="custom_font_family"
+ app:isPreferenceVisible="false" />
+
<ml.docilealligator.infinityforreddit.customviews.CustomFontListPreference
app:defaultValue="Normal"
android:entries="@array/settings_font_size"
@@ -36,6 +41,11 @@
app:title="@string/settings_title_font_family_title"
app:useSimpleSummaryProvider="true" />
+ <ml.docilealligator.infinityforreddit.customviews.CustomFontPreference
+ app:title="@string/settings_custom_title_font_family_title"
+ app:key="custom_title_font_family"
+ app:isPreferenceVisible="false" />
+
<ml.docilealligator.infinityforreddit.customviews.CustomFontListPreference
app:defaultValue="Normal"
android:entries="@array/settings_title_font_size"
@@ -55,6 +65,11 @@
app:title="@string/settings_content_font_family_title"
app:useSimpleSummaryProvider="true" />
+ <ml.docilealligator.infinityforreddit.customviews.CustomFontPreference
+ app:title="@string/settings_custom_content_font_family_title"
+ app:key="custom_content_font_family"
+ app:isPreferenceVisible="false" />
+
<ml.docilealligator.infinityforreddit.customviews.CustomFontListPreference
app:defaultValue="Normal"
android:entries="@array/settings_content_font_size"