Custom font in msgbox

gjoisa

Active Member
Licensed User
Longtime User
Is it possible to use custom font in msgbox any way ? Or a custom message box is possible with custom font facility ?
 

pluton

Active Member
Licensed User
Longtime User
You can add custom font in Custom Dialog. Just add one label in Custom Dialog

Example:
B4X:
Dim Sonda As Typeface
Sonda = Typeface.LoadFromAssets("wurm.ttf")
Dim dialog As CustomDialog
Dim lb As Label
lb.Initialize(dialog)
lb.Typeface = Sonda
lb.TextSize = 16
lb.Text = "This is my text what I write for B4A forum." _
&CRLF& "Ho Ho Ho Ho" _
&CRLF& CRLF& _
"Today is a beautiful day here in Croatia :)"

dialog.AddView(lb, 0dip, 0dip, 100%x, 100%y)
dialog.Show("My Title", "OK", "Cancel", "No", LoadBitmap(File.DirAssets, "nfo.png"))

Look at screenshot:
 
Upvote 0
U

unba1300

Guest
So it's okay to include these types of files in our applications? What about copyrights and licenses?
 
Upvote 0

ardhuru

Member
Licensed User
Longtime User
Hi, please excuse if this is a stupid question.

I have a rooted LG Optimus one one which I'm trying to develop a small app. I would like to use a certain font I've extracted from another phone ('SJlover.ttf')

I included this font file in the assets, and compiled (with no errors), and yet, no joy.

The text is being seen as the original default font.

Could this be bacause of the fact that The Optimus One does not have a font select option in the settings?

Thanks and Regards.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…