Marcos Alves Well-Known Member Licensed User Longtime User Oct 16, 2019 #1 Hello all, is there any way to define a custom standard typeface (loaded is assets as .ttf) for all elements in an app, instead of changing it in run time? (maybe in manifest...) This looks easy... how can I implement it in B4A? (from: https://stackoverflow.com/questions...t-for-a-whole-application-in-android/56573164) "You can do it with the android SDK now, as the Android Developer official youtube channel published in set/2017 here. Requires API Level 26 (Android 8 Oreo) and above. You just need to put your font file in the res/font folder and reference them in your TextView in case you need a specific one with the android:fontFamily attribute. If you want a base font on your whole app, simply put <item name="android:fontFamily">@font/yourfontname</item> in your styles.xml You can download a custom font from Android Studio and on the go if you want as well. All of this you can find with details on the video above." Last edited: Oct 16, 2019
Hello all, is there any way to define a custom standard typeface (loaded is assets as .ttf) for all elements in an app, instead of changing it in run time? (maybe in manifest...) This looks easy... how can I implement it in B4A? (from: https://stackoverflow.com/questions...t-for-a-whole-application-in-android/56573164) "You can do it with the android SDK now, as the Android Developer official youtube channel published in set/2017 here. Requires API Level 26 (Android 8 Oreo) and above. You just need to put your font file in the res/font folder and reference them in your TextView in case you need a specific one with the android:fontFamily attribute. If you want a base font on your whole app, simply put <item name="android:fontFamily">@font/yourfontname</item> in your styles.xml You can download a custom font from Android Studio and on the go if you want as well. All of this you can find with details on the video above."
Erel B4X founder Staff member Licensed User Longtime User Oct 17, 2019 #2 Check this thread and the linked posts: https://www.b4x.com/android/forum/t...a-whole-application-in-android.96308/#content Upvote 0
Check this thread and the linked posts: https://www.b4x.com/android/forum/t...a-whole-application-in-android.96308/#content
Marcos Alves Well-Known Member Licensed User Longtime User Oct 17, 2019 #3 Erel said: Check this thread and the linked posts: https://www.b4x.com/android/forum/t...a-whole-application-in-android.96308/#content Click to expand... Thanks @Erel ! Upvote 0
Erel said: Check this thread and the linked posts: https://www.b4x.com/android/forum/t...a-whole-application-in-android.96308/#content Click to expand... Thanks @Erel !