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

gfx: Map CSS `normal` font weight to Regular font weight on the Mac. #11103

Merged
merged 4 commits into from May 10, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

gfx: Implement `Debug` for `FontTemplate` instances.

  • Loading branch information
pcwalton committed May 10, 2016
commit 376c6b34ce55aa3c55c1599aac3567702366e892
@@ -6,6 +6,7 @@ use font::FontHandleMethods;
use platform::font::FontHandle;
use platform::font_context::FontContextHandle;
use platform::font_template::FontTemplateData;
use std::fmt::{Debug, Error, Formatter};
use std::sync::{Arc, Weak};
use std::u32;
use string_cache::Atom;
@@ -66,6 +67,12 @@ pub struct FontTemplate {
is_valid: bool,
}

impl Debug for FontTemplate {
fn fmt(&self, f: &mut Formatter) -> Result<(), Error> {
self.identifier.fmt(f)
}
}

/// Holds all of the template information for a font that
/// is common, regardless of the number of instances of
/// this font handle per thread.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.