Skip to content

Commit

Permalink
[ADD] #95 - add apply Noto Sans font
Browse files Browse the repository at this point in the history
  • Loading branch information
4z7l committed Mar 7, 2021
1 parent d240b93 commit 0d8a202
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 1 deletion.
Binary file removed app/src/main/res/font/noto_sans.ttf
Binary file not shown.
51 changes: 51 additions & 0 deletions app/src/main/res/font/notosans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?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"
xmlns:tools="http://schemas.android.com/tools">

<font
android:font="@font/notosans_black"
android:fontWeight="900"
android:fontStyle="normal"
app:font="@font/notosans_black"
app:fontWeight="900"
app:fontStyle="normal"
tools:targetApi="o" />

<font
android:font="@font/notosans_bold"
android:fontWeight="700"
android:fontStyle="normal"
app:font="@font/notosans_bold"
app:fontWeight="700"
app:fontStyle="normal"
tools:targetApi="o" />

<font
android:font="@font/notosans_medium"
android:fontWeight="500"
android:fontStyle="normal"
app:font="@font/notosans_medium"
app:fontWeight="500"
app:fontStyle="normal"
tools:targetApi="o" />

<font
android:font="@font/notosans_regular"
android:fontWeight="400"
android:fontStyle="normal"
app:font="@font/notosans_regular"
app:fontWeight="400"
app:fontStyle="normal"
tools:targetApi="o" />

<font
android:font="@font/notosans_light"
android:fontWeight="300"
android:fontStyle="normal"
app:font="@font/notosans_light"
app:fontWeight="300"
app:fontStyle="normal"
tools:targetApi="o" />

</font-family>
Binary file added app/src/main/res/font/notosans_black.otf
Binary file not shown.
Binary file added app/src/main/res/font/notosans_bold.otf
Binary file not shown.
Binary file added app/src/main/res/font/notosans_light.otf
Binary file not shown.
Binary file added app/src/main/res/font/notosans_medium.otf
Binary file not shown.
Binary file added app/src/main/res/font/notosans_regular.otf
Binary file not shown.
Binary file added app/src/main/res/font/notosans_thin.otf
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<!-- Customize your theme here. -->
<item name="android:textColor">@color/mainBlack</item>
<item name="android:overScrollMode">never</item>
<item name="fontFamily">@font/noto_sans</item>
<item name="fontFamily">@font/notosans</item>
</style>

<style name="MyDailyChipTextStyleAppearance">
Expand Down

0 comments on commit 0d8a202

Please sign in to comment.