GFont: Apply Google Fonts to components dynamically
Introduction
Hello Everyone! Today I am presenting my GFont extension. The extension enables you to apply google fonts directly to components without adding them in the app assets while coding
Blocks
Events:
GotFonts
Triggered when fonts are fetched
FontDownloadSuccess
Triggered when font download is successful
FontDownloadFail
Triggered when font download fails
GotFontUrl
Triggered when the font URL is retrieved
FontAppliedSuccessfully
Triggered when the font is successfully applied to the component.
FontApplyFailed
Triggered when there is an error applying the font.
Methods:
QueryFonts
Fetches fonts based on given parameters
DownloadFont
Downloads a font from the given URL and saves it automatically
ExtractJSONValue
Extract a specific value from the JSON response
GetFontUrl
Fetches the font URL for a specific weight
ApplyFont
Applies the font from the specified file path to the given component.
Example Block arrangement
Support the Development
I'm a 16 year old high school student, I like to create and maintain many extensions. I research a lot daily to bring something new to App Inventor
While my primary goal and perspective on App Inventor is not to earn money, it really helps and motivates me a lot if you could spare some donations.
It takes a lot of effort to build one such extension. If you
it for being Free
Please support the development by making a contribution here. It will make my day!
Download the Extension
Latest version
io.gfont.aix v1.1(108.2 KB) - Added Font Selector Menu
Past Releases
io.gfont.aix v1 (104.9 KB) - Initial Release of the extension
You can find my other extensions at
Subscribe to my free newsletter
https://newsletter.sarthakdev.in
Rate the extension
Reply with any doubt and I will be happy to answer
Regards
Sarthak Gupta (@techxsarthak)