Android Question How can I see LED style text on the screen?

Itila Tumer

Active Member
Licensed User
Hi,
I want to make a chronometer, but I want to see like a real screen DİGİTAL
Is there any way of it?
 

JoeR

Member
Licensed User
First: Google Free Led Font to find a suitable font.

Then: Search this website for custom font - I have never tried to use the facility, but there are several posts about using custom fonts with B4A.

Good luck.
 

LucaMs

Expert
Licensed User
You could download download a font file from a site:
http://fonts.goldenweb.it/pan_file/l/it/d2/l/font2/LED.ttf/id/10978/default.html
http://fonts.goldenweb.it/index_file/l/it/d2/a/default.html

"put" it into the Files Tab and then:
B4X:
Sub Globals
    Dim default_font, default_font_bold, default_font_italic As Typeface

Sub Activity_Create
    SetFont("Led.ttf")
    lblAppTitle.TextSize = 34
    lblAppTitle.Typeface = default_font


Private Sub SetFont(FontFileName As String)
    default_font = Typeface.LoadFromAssets(FontFileName)
    default_font_bold =  Typeface.CreateNew(default_font, default_font.STYLE_BOLD)
    default_font_italic = Typeface.CreateNew(default_font, default_font.STYLE_ITALIC)
End Sub
 

MitchBu

Well-Known Member
Licensed User

salim safran

Member
Licensed User
You could download download a font file from a site:
http://fonts.goldenweb.it/pan_file/l/it/d2/l/font2/LED.ttf/id/10978/default.html
http://fonts.goldenweb.it/index_file/l/it/d2/a/default.html

"put" it into the Files Tab and then:
B4X:
Sub Globals
    Dim default_font, default_font_bold, default_font_italic As Typeface

Sub Activity_Create
    SetFont("Led.ttf")
    lblAppTitle.TextSize = 34
    lblAppTitle.Typeface = default_font


Private Sub SetFont(FontFileName As String)
    default_font = Typeface.LoadFromAssets(FontFileName)
    default_font_bold =  Typeface.CreateNew(default_font, default_font.STYLE_BOLD)
    default_font_italic = Typeface.CreateNew(default_font, default_font.STYLE_ITALIC)
End Sub
Thank you for the info.
 
Top