TypeRip icon indicating copy to clipboard operation
TypeRip copied to clipboard

"Download All" fonts does not always download all fonts.

Open CodeZombie opened this issue 1 year ago • 2 comments

Thanks to @Nickyg001 for raising this issue,

Problem Description

clicking "Download All" on larger font families, specifically https://fonts.adobe.com/fonts/quasimoda will not download all fonts.

This issue does not appear to be present on Firefox, which successfully downloads all fonts, leading me to believe the file-saver npm module TypeRip is using has an existing bug related to chrome.

Notes

There's some mention in file-saver's github issues about this or a similar bug being present and fixed in 2018. I would imagine this fix has made its way up to whatever version I'm using now, but I'll have to do some more poking around to see if a fix is available on any version, or if perhaps this is a regression.

CodeZombie avatar Jan 08 '24 22:01 CodeZombie

Came to report this, myself.

CleanShot 2024-05-23 at 17 26 58

I am working on building this functionality into a more featureful tool. If this is no longer maintained, I will link to my progress when it is ready to consume.

hannahroksanne avatar May 23 '24 22:05 hannahroksanne

In the meantime, try this:

(() => {
    const buttons = $$('.ion-md-arrow-down')

    for (const button of buttons) {
        button.click()
    }
})()

Create a script in devtools. And just run it every time you load fonts into TypeRip.

CleanShot 2024-05-23 at 17 49 42@2x

hannahroksanne avatar May 23 '24 22:05 hannahroksanne