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 upDebugging information for mac fonts #23375
Conversation
highfive
commented
May 13, 2019
|
@bors-servo try=wpt-mac |
Debugging information for mac fonts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23375) <!-- Reviewable:end -->
|
|
ghost
commented
May 13, 2019
Submitting the task to Taskcluster failed. DetailsInterpreterError at template.tasks.payload.env["NON_MERGE_GIT_SHA"]: object has no property commits |
defd2f5
to
7cd5609
|
|
48fddd3
to
fda980d
|
@bors-servo try=wpt-mac |
Debugging information for mac fonts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23375) <!-- Reviewable:end -->
|
@bors-servo try=wpt-mac |
Debugging information for mac fonts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23375) <!-- Reviewable:end -->
|
|
|
@bors-servo try=wpt-mac |
Debugging information for mac fonts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23375) <!-- Reviewable:end -->
|
|
Debugging information for mac fonts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23375) <!-- Reviewable:end -->
|
|
|
@bors-servo try=wpt-mac |
Debugging information for mac fonts <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23375) <!-- Reviewable:end -->
|
Here's where the behaviour goes off the rails:
Bad:
That originates from this code: self.descriptor = Some(FontTemplateDescriptor::new(
handle.boldness(),
handle.stretchiness(),
handle.style(),
));
info!("successfully instantiated {:?} with {:?}", self.identifier, self.descriptor);where handle comes from FontHandleMethods::new_from_template. Boldness comes from getting the traits of the underlying CTFont, so this is super weird. |
|
|
|
Apparently this is a problem that pcwalton has run into in the past, and he pointed me at: https://github.com/pcwalton/font-kit/blob/1d4bc46089e9f1d707a54b233a317890e8910b9a/src/sources/core_text.rs#L67-L98 |
|
|
|
No longer necessary. |
jdm commentedMay 13, 2019
•
edited by SimonSapin
This change is