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

Azure should re-use CGFont stored by QuartzFontHandle #184

Closed
burg opened this issue Nov 9, 2012 · 0 comments
Closed

Azure should re-use CGFont stored by QuartzFontHandle #184

burg opened this issue Nov 9, 2012 · 0 comments
Labels

Comments

@burg
Copy link

@burg burg commented Nov 9, 2012

When making an azure scaled font, we currently use a CTFont wrapper to make a new CGFont instance. It would be better to re-use servo's existing CGFont reference. We'd have to add a trait to prevent circular dependencies, i.e.:

trait CGFontProvider {
   pure fn get_CGFont_ref() -> CGFontRef;
}

And then pass the font handle (as the trait type) to ScaledFont::new() instead of CTFont.

@burg burg closed this in 7fbba0b Nov 16, 2012
glennw added a commit to glennw/servo that referenced this issue Jan 16, 2017
Add a render target texture cache, and cache VAOs.
glennw pushed a commit to glennw/servo that referenced this issue Jan 16, 2017
Fix render target cache.

Ensure that the render target cache doesn't return a render target that was allocated on this frame.

Fixes servo#184.
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.