alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.01k stars 774 forks source link

Add Google Noto font to support as many glyphs as possible #121

Closed rofreg closed 4 years ago

rofreg commented 4 years ago

In theory this should support just about every glyph that it is possible to support 🙂

For languages outside of the base Noto font, in general I've elected only to include the "regular" font weight (e.g. no italics, no bold, etc). My hope is that that will be acceptable, as including font weight variations for all the glyphs would add several hundred MB to the repo. I did include bold variants for CJK (at an expense of 70MB).

Overall, the noto directly now adds 225MB to the repo size. I'm hopeful that will be acceptable on Heroku – if not, we can look into trimming some rare languages and/or trimming the bold weights for CJK.

rofreg commented 4 years ago

Whoops, sorry! Meant to open this just on our own fork.