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

Flesh out Font and FontShaper APIs #94

Closed
burg opened this issue Oct 5, 2012 · 0 comments
Closed

Flesh out Font and FontShaper APIs #94

burg opened this issue Oct 5, 2012 · 0 comments

Comments

@burg
Copy link

@burg burg commented Oct 5, 2012

We need to port some of the font and shaper architecture from Gecko.

  • Each Font object represents a fixed font face + style combination; it stores any platform-specific blobs; and has an as-needed FontShaper instance.
  • All harfbuzz blobs should be reused across shaping calls, and owned by a Shaper object (which is owned by the Font instance). Right now, all shaping functions are static (in src/servo/text/shaper.rs), and create/destroy harfbuzz blobs and buffers per every single draw command.
  • Native fonts can optionally provide GetGlyph/GetGlyphHAdvance callbacks, in case harfbuzz can't figure it out or there are platform-specific hinted widths available.
@burg burg closed this Oct 29, 2012
ChrisParis pushed a commit to ChrisParis/servo that referenced this issue Sep 7, 2014
Rename directories to match their /tr counterpart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.