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 upEnhance FontCache to actually cache fonts, hand out lazy refs #77
Labels
Comments
|
I think we've decided that the |
ChrisParis
pushed a commit
to ChrisParis/servo
that referenced
this issue
Sep 7, 2014
Assertions for border attribute and caption-related methods in section 4.9.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
FontCache(née FontLibrary) is a per-task object that knows how to create fonts. It hands outFontobjects, which hold native font refs as well as the font file binary.The font cache should not hand out
Fontobjects; rather, it should hand outFontHandles which lazily cause the loading of fonts, and proxy calls such asmeasureText. This allows theFontCacheto implement any number of caching strategies based on time, number of font requests, etc.