Font update.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
aminecmi 2022-11-07 22:36:20 +01:00
parent e36189e2e7
commit 87ea44754e
6 changed files with 12 additions and 0 deletions

View File

@ -410,6 +410,7 @@ class ArticleFragment : Fragment(), DIAware {
val fontName = when (font) { val fontName = when (font) {
getString(R.string.open_sans_font_id) -> "Open Sans" getString(R.string.open_sans_font_id) -> "Open Sans"
getString(R.string.roboto_font_id) -> "Roboto" getString(R.string.roboto_font_id) -> "Roboto"
getString(R.string.source_code_pro_font_id) -> "Source Code Pro"
else -> "" else -> ""
} }

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
app:fontProviderAuthority="com.google.android.gms.fonts"
app:fontProviderPackage="com.google.android.gms"
app:fontProviderQuery="name=Source Code Pro&amp;weight=500"
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
</font-family>

View File

@ -3,5 +3,6 @@
<array name="preloaded_fonts" translatable="false"> <array name="preloaded_fonts" translatable="false">
<item>@font/open_sans</item> <item>@font/open_sans</item>
<item>@font/roboto</item> <item>@font/roboto</item>
<item>@font/source_code_pro_medium</item>
</array> </array>
</resources> </resources>

View File

@ -4,5 +4,6 @@
<item></item> <item></item>
<item>@string/open_sans_font_id</item> <item>@string/open_sans_font_id</item>
<item>@string/roboto_font_id</item> <item>@string/roboto_font_id</item>
<item>@string/source_code_pro_font_id</item>
</array> </array>
</resources> </resources>

View File

@ -4,5 +4,6 @@
<item>Systems</item> <item>Systems</item>
<item>Open Sans</item> <item>Open Sans</item>
<item>Roboto</item> <item>Roboto</item>
<item>Source Code Pro</item>
</array> </array>
</resources> </resources>

View File

@ -125,6 +125,7 @@
<string name="reader_text_align_left">Align left</string> <string name="reader_text_align_left">Align left</string>
<string name="reader_text_align_justify">Justify</string> <string name="reader_text_align_justify">Justify</string>
<string name="settings_reader_font">Reader font</string> <string name="settings_reader_font">Reader font</string>
<string name="source_code_pro_font_id" translatable="false">source_code_pro_medium</string>
<string name="open_sans_font_id" translatable="false">open_sans</string> <string name="open_sans_font_id" translatable="false">open_sans</string>
<string name="roboto_font_id" translatable="false">roboto</string> <string name="roboto_font_id" translatable="false">roboto</string>
<string name="reader_static_bar_title">Static bottom bar in the article viewer</string> <string name="reader_static_bar_title">Static bottom bar in the article viewer</string>