Skip to content

Conversation

@jrmuizel
Copy link
Collaborator

No description provided.

Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thread 'font::copy_system_font' panicked at 'assertion failed: `(left == right)`

  left: `Some(file:///System/Library/Fonts/SFNSDisplay-Regular.otf)`,

 right: `Some(file:///System/Library/Fonts/SFNSText-Regular.otf)`', core-text/src/font.rs:672:5

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

test font::copy_system_font ... FAILED

fn copy_system_font() {
let small = unsafe {
CTFont::wrap_under_create_rule(
CTFontCreateUIFontForLanguage(kCTFontSystemDetailFontType, 19., std::ptr::null())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thread 'font::copy_system_font' panicked at 'assertion failed: `(left == right)`

  left: `Some(file:///System/Library/Fonts/SFNSDisplay-Regular.otf)`,

 right: `Some(file:///System/Library/Fonts/SFNSText-Regular.otf)`', core-text/src/font.rs:672:5

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

test font::copy_system_font ... FAILED

This was intentional. I plan to use these tests to help document the semantics of these functions.

@jrmuizel
Copy link
Collaborator Author

apologies for the garbage macos_version() function

@jrmuizel jrmuizel force-pushed the copy-system branch 6 times, most recently from b2f1089 to 524237c Compare November 3, 2020 15:57
@jdm
Copy link
Member

jdm commented Nov 19, 2020

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 11247e3 has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit 11247e3 with merge 7a2ec12...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-travis
Approved by: jdm
Pushing 7a2ec12 to master...

@bors-servo bors-servo merged commit 7a2ec12 into servo:master Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants