iOS Question Problem with Customfonts

D

Deleted member 103

Guest
Hi,

can someone tell me why the example of Erel with my custom font(digirtu_.ttf) does not work?

Does my font have a certain format?
 

Attachments

  • digirtu_.zip
    6.4 KB · Views: 181

Erel

B4X founder
Staff member
Licensed User
Longtime User
Works fine here:
upload_2015-6-30_8-3-32.png


Can you post your code?

It should be:
B4X:
Button1.CustomLabel.Font = Font.CreateNew2("Digital Readout Thick Upright", 20)
 
Upvote 0
D

Deleted member 103

Guest
Hi Erel,

I know that work with other fonts.
The question is why it does not work with my font(digirtu_.ttf). :(
Should my font will be converted? If so, with what?

Can you post your code?
I use exactly your example.
 
Upvote 0
D

Deleted member 103

Guest
I believe I have found the error.
I always write so:
B4X:
Button1.CustomLabel.Font = Font.CreateNew2("digirtu_", 20)
but I should write so: :oops:
B4X:
Button1.CustomLabel.Font = Font.CreateNew2("Digital Readout Thick Upright", 20)
 
Upvote 0
Top