-
Notifications
You must be signed in to change notification settings - Fork 240
Test that copying system fonts doesn't change the url #421
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
Conversation
jdm
left a comment
There was a problem hiding this 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
core-text/src/font.rs
Outdated
| fn copy_system_font() { | ||
| let small = unsafe { | ||
| CTFont::wrap_under_create_rule( | ||
| CTFontCreateUIFontForLanguage(kCTFontSystemDetailFontType, 19., std::ptr::null()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: indentation.
There was a problem hiding this 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
This was intentional. I plan to use these tests to help document the semantics of these functions.
|
apologies for the garbage macos_version() function |
b2f1089 to
524237c
Compare
|
@bors-servo r+ |
|
📌 Commit 11247e3 has been approved by |
|
☀️ Test successful - checks-travis |
No description provided.