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 upFontCache should cache font table blobs for harfbuzz #92
Labels
Comments
|
For now, the |
|
Followup issue for caching is #197. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, every time text is drawn we create a new
hb_blob_tfor the font face's font table. This is expensive and unnecessary. We should instead store this data with eachFontobject. Rather than creating new font tables for eachFontobject (which can represent the same font at many sizes--with the same font table data), the tables can be reused when theFontis instantiated several times.See http://dxr.mozilla.org/mozilla-central/gfx/thebes/gfxFont.h.html#l408 for Gecko's solution to this issue.