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

Enhance FontCache to actually cache fonts, hand out lazy refs #77

Closed
burg opened this issue Sep 18, 2012 · 1 comment
Closed

Enhance FontCache to actually cache fonts, hand out lazy refs #77

burg opened this issue Sep 18, 2012 · 1 comment

Comments

@burg
Copy link

@burg burg commented Sep 18, 2012

The FontCache (née FontLibrary) is a per-task object that knows how to create fonts. It hands out Font objects, which hold native font refs as well as the font file binary.

The font cache should not hand out Font objects; rather, it should hand out FontHandles which lazily cause the loading of fonts, and proxy calls such as measureText. This allows the FontCache to implement any number of caching strategies based on time, number of font requests, etc.

@burg
Copy link
Author

@burg burg commented Oct 13, 2012

I think we've decided that the FontCache should hand out boxed @Font objects. This API has been implemented (in a very rudimentary way).

@burg burg closed this Oct 13, 2012
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
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.