Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple font families within an element #499

Open
DuncanMacWeb opened this issue Feb 21, 2019 · 1 comment
Open

Support multiple font families within an element #499

DuncanMacWeb opened this issue Feb 21, 2019 · 1 comment

Comments

@DuncanMacWeb
Copy link
Contributor

DuncanMacWeb commented Feb 21, 2019

Is your feature request related to a problem? Please describe.
Approximately 2,140 characters are used in less than 2% of the content on our pages that we need to render to PDF. The remaining 98% of pages use just 200 characters. We don’t want to send the unneeded characters to render the 98% of PDFs that don’t need them.

Describe the solution you'd like
Improve the font fallback mechanism to pull characters from fallback fonts specified using the CSS font-family: foo, bar, baz syntax (or the equivalent in React Native style objects)

Describe alternatives you've considered
We have considered putting all the characters any of our content could possibly need into a single font file, but it would just be too large and a waste of network bandwidth.

Relates to #377, #402

@SachinRupani
Copy link

Any update on supporting multiple font families / font files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants