Calligraphy icon indicating copy to clipboard operation
Calligraphy copied to clipboard

Add Support for Google Downloadable Fonts?

Open ashiqursuperfly opened this issue 5 years ago • 3 comments

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.

ashiqursuperfly avatar Dec 05 '20 22:12 ashiqursuperfly

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

chrisjenx avatar Feb 19 '21 15:02 chrisjenx

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.

Pitel avatar Sep 13 '23 12:09 Pitel

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

chrisjenx avatar Sep 13 '23 16:09 chrisjenx