diff options
Diffstat (limited to 'font/src/darwin/mod.rs')
-rw-r--r-- | font/src/darwin/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index f7bf6c82..2c8d238e 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -281,7 +281,6 @@ pub struct Font { unsafe impl Send for Font {} - /// Set subpixel anti-aliasing on macOS. /// /// Sub-pixel anti-aliasing has been disabled since macOS Mojave by default. This function allows @@ -294,7 +293,7 @@ pub fn set_font_smoothing(enable: bool) { unsafe { // Check that we're running at least Mojave (10.14.0+). if !NSProcessInfo::processInfo(nil).isOperatingSystemAtLeastVersion(min_macos_version) { - return + return; } let key = NSString::alloc(nil).init_str("CGFontRenderingFontSmoothingDisabled"); |