B4J Question B4J Unknown type typeface

Dominik H

Member
Licensed User
Longtime User
I've looked everywhere but I can't seem to find anything to do with B4J typefaces. how do you implement one? It doesn't know what "Typeface" is and asks me if I'm missing a library reference.

Is there a library I need to include or what?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no typeface in B4J.

You can change the font with the designer:
SS-2015-12-23_08.42.19.png


Or code:
B4X:
Button1.Font = fx.DefaultFont(14)
There are other font related methods in jfx.
 
Upvote 0

Dominik H

Member
Licensed User
Longtime User
There is no typeface in B4J.

You can change the font with the designer:
SS-2015-12-23_08.42.19.png


Or code:
B4X:
Button1.Font = fx.DefaultFont(14)
There are other font related methods in jfx.

Would I be able to import my own font and then use the code to set the font that way? Because the the font I imported won't show up in the designer (if that's even meant to happen at all).

Edit: Nevermind, figured it out on my own. Thanks for letting me know that it's a font, not a typeface. I can't believe I didn't see "Font" while scrolling through the suggestions...
 
Upvote 0
Top