Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFlesh out Font and FontShaper APIs #94
Closed
Comments
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
We need to port some of the font and shaper architecture from Gecko.
Fontobject represents a fixed font face + style combination; it stores any platform-specific blobs; and has an as-neededFontShaperinstance.Shaperobject (which is owned by theFontinstance). 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.GetGlyph/GetGlyphHAdvancecallbacks, in case harfbuzz can't figure it out or there are platform-specific hinted widths available.