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

[FEATURE] Add font fallback #1078

Closed
kaiquegazola opened this issue Jun 5, 2022 · 0 comments · Fixed by #1079
Closed

[FEATURE] Add font fallback #1078

kaiquegazola opened this issue Jun 5, 2022 · 0 comments · Fixed by #1079
Labels
css Enhancements/issues with css properties enhancement New feature or request

Comments

@kaiquegazola
Copy link
Contributor

Describe your feature request

When rendering data, we may encounter glyphs/chars that are not available in main style font, an example:

Html(
      data: '<span>‟Pessoas que se recuperaram, »’”›⸃⸅⸊⸍⸝⸡ [...]”</span>',
      style: <String, Style>{
        'span': Style(
          fontFamily: 'Lato',
        ),
      },
);

and will render this:

image

Proposal
Flutter TextStyle already solves this with the fontFamilyFallback parameter, just need to expose it to flutter_html Style.

A picture of a cute animal (not mandatory but encouraged)

@kaiquegazola kaiquegazola added the enhancement New feature or request label Jun 5, 2022
@Sub6Resources Sub6Resources added the css Enhancements/issues with css properties label Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css Enhancements/issues with css properties enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants