New fonts: Atkinson Hyperlegible and Atkinson Hyperlegible Bold.

This commit is contained in:
Docile-Alligator 2022-02-25 18:23:40 +08:00
parent 679820b96e
commit 5e0b2662d7
11 changed files with 70 additions and 0 deletions

View File

@ -17,6 +17,8 @@ public enum ContentFontFamily {
Manrope(R.style.ContentFontFamily_Manrope, "Manrope"),
ManropeBold(R.style.ContentFontFamily_ManropeBold, "ManropeBold"),
Sriracha(R.style.ContentFontFamily_Sriracha, "Sriracha"),
AtkinsonHyperlegible(R.style.ContentFontFamily_AtkinsonHyperlegible, "AtkinsonHyperlegible"),
AtkinsonHyperlegibleBold(R.style.ContentFontFamily_AtkinsonHyperlegibleBold, "AtkinsonHyperlegibleBold"),
Custom(R.style.ContentFontFamily, "Custom");
private int resId;

View File

@ -17,6 +17,8 @@ public enum FontFamily {
Manrope(R.style.FontFamily_Manrope, "Manrope"),
ManropeBold(R.style.FontFamily_ManropeBold, "ManropeBold"),
Sriracha(R.style.FontFamily_Sriracha, "Sriracha"),
AtkinsonHyperlegible(R.style.FontFamily_AtkinsonHyperlegible, "AtkinsonHyperlegible"),
AtkinsonHyperlegibleBold(R.style.FontFamily_AtkinsonHyperlegibleBold, "AtkinsonHyperlegibleBold"),
Custom(R.style.FontFamily, "Custom");
private int resId;

View File

@ -17,6 +17,8 @@ public enum TitleFontFamily {
Manrope(R.style.TitleFontFamily_Manrope, "Manrope"),
ManropeBold(R.style.TitleFontFamily_ManropeBold, "ManropeBold"),
Sriracha(R.style.TitleFontFamily_Sriracha, "Sriracha"),
AtkinsonHyperlegible(R.style.TitleFontFamily_AtkinsonHyperlegible, "AtkinsonHyperlegible"),
AtkinsonHyperlegibleBold(R.style.TitleFontFamily_AtkinsonHyperlegibleBold, "AtkinsonHyperlegibleBold"),
Custom(R.style.TitleFontFamily, "Custom");
private int resId;

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<font
app:fontStyle="normal"
app:fontWeight="400"
app:font="@font/atkinson_hyperlegible_regular" />
<font
app:fontStyle="normal"
app:fontWeight="700"
app:font="@font/atkinson_hyperlegible_bold" />
<font
app:fontStyle="italic"
app:fontWeight="400"
app:font="@font/atkinson_hyperlegible_bold" />
<font
app:fontStyle="italic"
app:fontWeight="700"
app:font="@font/atkinson_hyperlegible_bold_italic" />
</font-family>

Binary file not shown.

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<font
app:fontStyle="normal"
app:fontWeight="700"
app:font="@font/atkinson_hyperlegible_bold" />
<font
app:fontStyle="italic"
app:fontWeight="700"
app:font="@font/atkinson_hyperlegible_bold_italic" />
</font-family>

Binary file not shown.

View File

@ -162,6 +162,8 @@
<item>Manrope (No Italic)</item>
<item>Manrope Bold (No Italic)</item>
<item>Sriracha</item>
<item>Atkinson Hyperlegible</item>
<item>Atkinson Hyperlegible Bold</item>
<item>@string/settings_custom_font_family_title</item>
</string-array>
@ -180,6 +182,8 @@
<item>Manrope</item>
<item>ManropeBold</item>
<item>Sriracha</item>
<item>AtkinsonHyperlegible</item>
<item>AtkinsonHyperlegibleBold</item>
<item>Custom</item>
</string-array>

View File

@ -313,6 +313,14 @@
<item name="font_family">@font/sriracha_regular</item>
</style>
<style name="FontFamily.AtkinsonHyperlegible">
<item name="font_family">@font/atkinson_hyperlegible</item>
</style>
<style name="FontFamily.AtkinsonHyperlegibleBold">
<item name="font_family">@font/atkinson_hyperlegible_bold_version</item>
</style>
<style name="TitleFontFamily" />
<style name="TitleFontFamily.Default">
@ -371,6 +379,14 @@
<item name="title_font_family">@font/sriracha_regular</item>
</style>
<style name="TitleFontFamily.AtkinsonHyperlegible">
<item name="title_font_family">@font/atkinson_hyperlegible</item>
</style>
<style name="TitleFontFamily.AtkinsonHyperlegibleBold">
<item name="title_font_family">@font/atkinson_hyperlegible_bold_version</item>
</style>
<style name="ContentFontFamily" />
<style name="ContentFontFamily.Default">
@ -429,6 +445,14 @@
<item name="content_font_family">@font/sriracha_regular</item>
</style>
<style name="ContentFontFamily.AtkinsonHyperlegible">
<item name="content_font_family">@font/atkinson_hyperlegible</item>
</style>
<style name="ContentFontFamily.AtkinsonHyperlegibleBold">
<item name="content_font_family">@font/atkinson_hyperlegible_bold_version</item>
</style>
<style name="Theme" />
<style name="Theme.Normal">