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 @font-face #374

Merged
merged 28 commits into from
Nov 3, 2016
Merged

Support @font-face #374

merged 28 commits into from
Nov 3, 2016

Conversation

liZe
Copy link
Member

@liZe liZe commented Oct 27, 2016

Based on Behdad's blog entry.

Known limitations:

  • doesn't work on Windows and MacOS,
  • doesn't work with Pango < 1.38 (we at least need pango_fc_font_map_set_config),
  • fonts and configs are temporary stored on disk (because of fontconfig bugs #78450 and #78452) but cleaned once the document is rendered,
  • the unicode-range descriptor is not supported,
  • the font matching algorithm for @font-face is pretty bad,
  • local fonts matching the @font-face fonts are not hidden,
  • the font-variant values related to font-variant-alternates other than normal and historical-forms are not supported.

Comments and tests welcome!

@liZe liZe added the feature New feature that should be supported label Oct 27, 2016
@liZe liZe mentioned this pull request Oct 27, 2016
@liZe liZe added this to the v0.32 milestone Oct 27, 2016
@liZe liZe self-assigned this Oct 27, 2016
liZe added 2 commits October 30, 2016 21:17
Cache Pango font-features attributes to avoid leaking too many of them.
@liZe liZe merged commit cca09db into master Nov 3, 2016
@liZe liZe deleted the font-face branch November 3, 2016 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants