Font update.
This commit is contained in:
parent
e36189e2e7
commit
87ea44754e
@ -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 -> ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
7
androidApp/src/main/res/font/source_code_pro_medium.xml
Normal file
7
androidApp/src/main/res/font/source_code_pro_medium.xml
Normal 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&weight=500"
|
||||||
|
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
|
||||||
|
</font-family>
|
@ -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>
|
||||||
|
@ -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>
|
@ -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>
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user