Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Google Downloadable Fonts? #57

Open
ashiqursuperfly opened this issue Dec 5, 2020 · 3 comments
Open

Add Support for Google Downloadable Fonts? #57

ashiqursuperfly opened this issue Dec 5, 2020 · 3 comments

Comments

@ashiqursuperfly
Copy link

Been using calligraphy for a while now. However, theres an issue i would like to share. The only way to use calligraphy is via including your own .ttf files. (afaik ;_; correct me if im wrong) Since, .ttf files can get large for most fonts, they contribute heavily to the overall app size. Therefore, Google downloadable fonts are a much light weight alternative for custom fonts in android now.

It would be great if we could set a google downloadable font as the calligraphy global font. I dont know if this is possible in the current implementation (if at all) but will really appreciate this feature.

@chrisjenx
Copy link
Member

Probably unlikely as that would mean we would have to include something like OkHttp in the project and we try to keep things lightweight.

@Pitel
Copy link

Pitel commented Sep 13, 2023

What might be enough is to provide a way to set the Typeface object for the font, and not just the static path. Because the result of getting the downloadable font is the Typeface.

@chrisjenx
Copy link
Member

True, I don't really have time look right now. But between ViewPump and Calligraphy should be possible, happy to look and shape up PR's if you have time to submit one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants