Blurry font rendering on non-retina Macs when using NSAttributedString drawing
我在 NSView 中使用 NSAttributedString 的 draw(at:) 函数在我的窗口中以自定义字体呈现一些文本。
但是,在非视网膜 MacBook 上运行时,字体看起来非常模糊和”太重”(都在内部显示器上)
这可能是臭名昭著的”半像素”问题。试试:
1
|
drawableString.draw(at: NSPoint(x: 0.5, y: 0.5))
|
这里有一些关于此的信息(在页面上搜索”点和像素”)。
来源:https://www.codenong.com/55540955/
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10218.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57