Abdou1283 Member Licensed User Aug 18, 2018 #1 Hi, i need to change the font of my application (menus, toastmessage, actionbar, webview, labels ...) with a custom font, is it possible or not in b4a?? and how can i do it if it is possible?
Hi, i need to change the font of my application (menus, toastmessage, actionbar, webview, labels ...) with a custom font, is it possible or not in b4a?? and how can i do it if it is possible?
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2018 #2 It is not so simple to change it everywhere but it is possible with some work. Change the typeface of all views that are subclasses of labels (Label, Button, EditText, CheckBox and RadioButton): B4X: For Each v As View In Activity.GetAllViewsRecursive If v Is Label Then Dim lbl As Label = v lbl.Typeface = YourTypeface End If Next You can change the font of menus and toast messages with CSBuilder. Upvote 0
It is not so simple to change it everywhere but it is possible with some work. Change the typeface of all views that are subclasses of labels (Label, Button, EditText, CheckBox and RadioButton): B4X: For Each v As View In Activity.GetAllViewsRecursive If v Is Label Then Dim lbl As Label = v lbl.Typeface = YourTypeface End If Next You can change the font of menus and toast messages with CSBuilder.
Jorge M A Well-Known Member Licensed User Aug 19, 2018 #4 Take a look to CustomFonts lib by @NJDude Upvote 0
Brandsum Well-Known Member Licensed User Dec 1, 2018 #5 It is possible. And it is easy. Check this thread: https://www.b4x.com/android/forum/t...-whole-application-without-any-library.99933/ I know this is an old thread. Though I think this info will help someone. Upvote 0
It is possible. And it is easy. Check this thread: https://www.b4x.com/android/forum/t...-whole-application-without-any-library.99933/ I know this is an old thread. Though I think this info will help someone.