MyFonts โ†’ use your own custom fonts (a modified version of @Ken's YourFont extension)

Here is a modified version of @Ken's extension "YourFont".
YourFont doesn't work with Companion (on devices with Android > 9) since the AI2 nb184 release.

See also here: Error in YourFont Extension - #20 by Anke

Example - blocks

Update v1.2, June 8, 2021
Recompiled version to avoid that a service is removed from the Manifest with another extension (so better use this):
EDIT: de.bodymindpower.MyFonts.aix (aix removed)
Details on this issue can be found here.

Update v2, Oct 4, 2021
MyFonts.aix (5.8 KB)

Update v3, March 11, 2022
Here is a new version that does not add READ permission to the Manifest.
If you use this version the fonts must be stored in the assets.
MyFonts_3.aix (5.9 KB)

grafik

19 Likes

@Anke Danke dir, danach habe ich gesucht!
Thank you so much, just what I was looking for!

3 Likes

Update v1.2, June 8, 2021
Recompiled version to avoid that a service is removed from the Manifest with another extension.

de.bodymindpower.MyFonts.aix (7.7 KB)

Details on this issue can be found here:

2 Likes

Nice extension, :slightly_smiling_face:

1 Like

would be helpful if you could provide permission to use in appathon

MyFonts is allowed to be redistributed by MIT as part of the competition.

5 Likes

The path to the assets for devices with Android < 10 has changed (since the nb187 release) from:
/storage/emulated/0/AppInventor/assets/
to:
/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/AppInventor/assets/

Therefore, the extension no longer worked under Android <10 with Companion.
Here is the update that fixes this problem:
MyFonts.aix (5.8 KB)

7 Likes

Hallo @Anke,
once again, one really awesome extension !!!
You're a Square(Power-User)
:+1: :+1: :+1:
Cheers, Ugo.

4 Likes

@Anke Can you please make one modified version for me that doesn't adds storage permission requirement in manifest PLEASE /\

Here is a new version that does not add READ permission to the Manifest.

If you use this version the fonts must be stored in the assets.
MyFonts_3.aix (5.9 KB)

(WRITE permission was never declared before anyway.)

2 Likes

Thank you so much you are too good I was thinking that I have to compromise with it but you have done the work for me thanks a lot it really means a lot.

Hello this is returning error in companion

Which error? Post a screenshot.

It isn't even working in companion no error.
image

@Anke It started working after reconnecting companion.

Sometimes you need to delete Companion's assets folder.

1 Like

Ok thanks for the tip next time I will keep in mind.

1 Like

hi
i have problem , when the number of character is lenght too i see barcode in two line!!!
can u help me?

I tink you have to set the weidth of the label/text box to "fill container"
Here a screen of the interface :
image

PS IN ITALIAN "RIEMPI CONTENITORE" IS "FILL PARENT/CONTAINER"
sorry for my english but i'm italian.
:slight_smile:

:question: