YourFont Extension - Opensource

Have you ever wanted to use your own custom font in Appinventor?
Well, you’re in the right place at the right time.

Today I am introducing a new extension exclusively for Appinventor that allows you to use Your own custom Font or “YourFont”.

This Extension was created with AppyBuilder CodeEditor, build your own here:
https://editor.appybuilder.com/
Thanks @Hossein!

Thanks to @uskiara for inspiring this extension.

Special Thanks to my Beta Testers:
@Anke, @Peter & @TIMAI2

Thanks to @Taifun for sharing his “isDevelopment” code with me.
Because of this code, this extension will automatically handle the CustomFonts Asset path.
So there’s no need to specify a different asset path when using the Companion.

Also a Big Thanks to Emil Bertell of FenoType for allowing me to use some of his fonts in my project:
http://www.fenotype.com/font/fontpage.htm

Before YourFont:

After YourFont:


Properties:
Screenshot_20200516-173032_Chrome

All Blocks:
Screenshot_20200516-172133_Chrome

Usage:

SetFont:(Sets the Components Font the your CustomFont)

ResetFont:(Resets the Components Font back to the default Sans Serif Font but preserving it’s Style(Bold/Italics))

CustomFont:(Specify an external path to Your custom Font)

.aia:
YourFont.aia (73.9 KB)

.aix:
The .aix is inside the .aia as an asset.

.java:(changed to .txt so I could upload)
YourFont.txt (3.2 KB)

11 Likes

Great as always, Ken, thank you very much! :+1:

4 Likes

Great work. Loved to betatest this. Another very useful extension from @Ken which opens a lot of possibilities with app inventor apps.

3 Likes

Usually great work by Ken.
Because work only on Appinventor?

thumbsup2

1 Like

@Ken, for your tests you made use of ttf files. I would like to point out that you can also use otf font files.

OTF and TTF are extensions that are used to indicate that the file is a font, which can be used in formatting the documents for printing. TTF stands for TrueType Font, a relatively older font, while OTF stands for OpenType Font, which was based in part on the TrueType standard.

1 Like

(added to FAQ)

1 Like

Hi guys,
thanks a lot to everybody.
I’ve modified one of the “digital cockpits” by using the 7 segment font :grinning:
It looks really “impressive”.
I’ve attached two images of it: before Ken and after Ken.


Really nice, indeed! (and quite easy to use).
I’ve also tried to use it on Draw_Text for canvases, but it rised a runtime error telling that a casting between two different types of objects is not allowed. I can believe that on canvases the texts are not truly texts but drawings, therefore it is reasonable that it cannot work.
Anyway it is really a "…«… one small step for man, one giant leap for mankind (of AI2 users)»

:rofl:
Cheers.

4 Likes

Impressive indeed! It looks great!

2 Likes

Again many thanks to you, Ken, to MITAI2 (his solution is working fine, as well !) and to Taifun, for his powerful extensions.
ATB.

2 Likes

1 Like

Hi nice work , can you add to the extension
Font size? 10,11,12…
Is there an other way to do it?

Font size is already built into the Components:

&

2 Likes

Thanks a lot you are my hero!!!

1 Like

yes,thank you ken :

1 Like