laws-africa / law-widgets

Web components for Akoma Ntoso documents
GNU General Public License v3.0
0 stars 0 forks source link

Can we embed the fonts file into bundle.js? #29

Closed longhotsummer closed 2 years ago

longhotsummer commented 2 years ago

Can we use webpack to embed external fonts into bundle.js, so that everything is included in that file?

Alternatively, consumers that need everything downloaded statically must explicitly link to the fonts we use (which we should document).

musangowope commented 2 years ago

We are going to have to go with the latter approach: How I led to this decision was a result of following:

So in the case of africanlii rendering from pocketlaw in the iframe, load fonts from africanlii

longhotsummer commented 2 years ago

Ok. Offline fonts is a bit of an edge case anyway.