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
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!
Yes the download font method works only when you build the apk
Yes, I thought about that but I think it will limit the possibilities of the extension. I have already incorporated JsonExtract block from my GroqText extension that extracts value using field path.
It is a good start, but leaves much to be desired for a user coming to it without any prior knowledge of Google Fonts.
A font viewer is probably an essential, otherwise users would need to go out to "Google Fonts" to see what a font looks like, before returning to app to fetch it.
Some guidance / lniks on how to get the api key would also help
Will write a better guide with instructions for users to learn more about Google Fonts, including those who haven't used it
Actually I thought that most of the users of the extension would be well versed with Google Fonts site and fonts which they want to add, this is interesting, will definitely work for it
BRUH!!! I spent like 4 hours making smth like this with no extensions and like a week later you make an extension! This would have helped so much... bruhhh, anyways cool extension
Dear @S4IL,
this new extension (great job ) allows you to use google fonts without pre-loading them in the asset, but there was already another one that you can find here:
which allowed you to use "custom" fonts, for example .ttf uploaded as resource in the app's asset dir.
MyFont allows you to set fonts from file locations, this means you have to store all the fonts that you are using in the storage.
GFont allows you to select from a world of fonts from Google Font's database and allows you to apply them directly. Thus eliminating the need of storing the fonts in the assets.
Yes, that was what i used, and made my own API to get the ttf file of a font and my website that is the font picked, with costumwebview, and all this complicated process that took 4 hours was for nothing since this was made!
Here is an example call to the API: https://s4api.vercel.app/font_url?font_name=Roboto
My fault, I wanted to say that myfont allows you to set font from most of the file locations while gfont extension fetches fonts from api and applies it at once. Thus eliminating the need to supply the font ttf file.
Dear @techxsarthak, your explanation was already pretty clear at the first post
My comments were just related to @S4IL grumble
Both of you are too clever for an "old" software developer who started more than 40 yeras ago to code, in machine language, embedded software for military aircraft....
Let me anyway tell you one hint: although you spend some hours in making an app working, that time is not wasted but invested. When the going gets tough, the toughs get going !