ranbuch / accessibility

add accessibility to your website
MIT License
287 stars 35 forks source link

Replace google fonts with Bunny #38 #59

Closed mustafauysal closed 4 months ago

mustafauysal commented 4 months ago

Switching to Bunny Fonts for material icons may be more suitable for GDPR compliance.

https://fonts.bunny.net/about

ranbuch commented 4 months ago

Hi @mustafauysal, thank you for your contribution.

You can change the fontFaceSrc by passing it through the options:

const options = {
    icon: {
        fontFaceSrc: ['https://fonts.bunny.net/icon?family=Material+Icons']
    }
};
new Accessibility(options);

I would rather not change the CDN for all developers.

mustafauysal commented 4 months ago

Hi @ranbuch

You can change the fontFaceSrc by passing it through the options:

Yes, I realized that later.

I would rather not change the CDN for all developers.

Utilizing a GDPR-compliant CDN could still be advantageous. However, the decision is yours. (Closing the PR.)