This post is the answer @alwaysbusy gave me to my question about how to implement a label to look like a clock:
Make a new css file and put it in /css/custom) In my case, 'Digital-7.css'
In BuildPage(), load this css file:
Where you set the text of something, use the {ST} tags:
The font file was saved on "\Objects\www\font\digital7" inside my project.
Hope this help anyone.
Make a new css file and put it in /css/custom) In my case, 'Digital-7.css'
B4X:
@font-face {
font-family:"Digital-7";
src:url("../../font/digital-7/Digital-7.ttf") format("truetype");
}
B4X:
page.AddExtraCSSFile("custom/Digital-7.css")
B4X:
Dim lblClock As ABMLabel
lblClock.
lblClock.Initialize(page,"lblClock","{ST:font-family:Digital-7;}"&"20:00{/ST}",ABM.SIZE_H1,False,"")
The font file was saved on "\Objects\www\font\digital7" inside my project.
Hope this help anyone.