macos mojave_如何修复macOS Mojave上的模糊字体(使用亚像素抗锯齿)

macos mojave

macos mojave

Apple’s macOS Mojave disables subpixel antialiasing, also known as font smoothing, by default. On a MacBook Air or a desktop Mac hooked up to a non-Retina display, upgrading will make your fonts look worse.

苹果的macOS Mojave默认情况下禁用子像素抗锯齿,也称为字体平滑。 在连接到非Retina显示器的MacBook Air或台式Mac上,升级将使字体看起来更糟。

Update: We’ve found a better method that will actually re-enable subpixel antialiasing rather than just relying on font smoothing. Open a Terminal and run the following command:

更新:我们发现了一种更好的方法,该方法实际上将重新启用亚像素抗锯齿功能,而不仅仅是依靠字体平滑。 打开终端并运行以下命令:

defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO

Log out and log back in for your changes to take effect. Thanks to Dean Herbert for reporting this to us.

注销并重新登录,以使更改生效。 感谢Dean Herbert向我们报告此事。

这是区别 (Here’s the Difference)

Subpixel antialiasing is a trick designed to make fonts look better on lower-resolution displays. Without this feature enabled by default, macOS Mojave makes text look thinner and more blurry on non-Retina displays.

亚像素抗锯齿是一种技巧,旨在使字体在较低分辨率的显示器上看起来更好。 如果没有默认启用此功能,则macOS Mojave会使非Retina显示屏上的文本看起来更细,更模糊。

(As some eagle-eyed readers have noticed, the below trick doesn’t technically enable subpixel antialiasing. However, this does increase font weight, which makes fonts look less jagged and all-around better on the MacBook Air and other low-resolution displays.)

(正如一些老鹰眼的读者所注意到的那样,以下技巧从技术上讲并未启用亚像素抗锯齿。但是,这确实增加了字体粗细,这使得字体在MacBook Air和其他低分辨率显示器上看起来不那么锯齿,并且全方位更好。 )

While subpixel font smoothing is disabled by default, you can re-enable it with a terminal command. There are four possible settings: 0 (disabled), 1 (light smoothing), 2 (medium smoothing), and 3 (heavy smoothing).

默认情况下,禁用子像素字体平滑功能时,可以使用终端命令重新启用它。 共有四种可能的设置:0(禁用),1(轻度平滑),2(中度平滑)和3(重度平滑)。

Here’s what they look like:

它们是这样的:

We don’t recommend enabling subpixel antialiasing if you have Mac with a Retina display. Fonts should look nice and readable on a Retina display even without subpixel antialiasing. But, if you have a non-Retina display, we recommend re-enabling this feature.

如果您的Mac配备Retina显示器,我们不建议启用亚像素抗锯齿功能。 即使没有亚像素抗锯齿,字体也应该在Retina显示屏上看起来不错并且可读。 但是,如果您使用的不是Retina显示屏,建议您重新启用此功能。

如何启用亚像素抗锯齿 (How to Enable Subpixel Antialiasing)

You must run a terminal command to change your subpixel antialiasing settings. To open a Terminal window, press Command+Space to open Spotlight search, type “Terminal,” and press Enter. You can also open a Finder window and head to Applications > Utilities > Terminal.

您必须运行终端命令来更改子像素抗锯齿设置。 要打开终端窗口,请按Command + Space打开Spotlight搜索,键入“ Terminal”,然后按Enter。 您也可以打开Finder窗口并转到“应用程序”>“实用程序”>“终端”。

Copy and paste one of the following commands into the Terminal window and press Enter.

将以下命令之一复制并粘贴到“终端”窗口中,然后按Enter。

Light font smoothing (1):

轻字体平滑(1):

defaults -currentHost write -globalDomain AppleFontSmoothing -int 1

Medium font smoothing (2):

中字体平滑处理(2):

defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

Heavy font smoothing (3):

重字体平滑处理(3):

defaults -currentHost write -globalDomain AppleFontSmoothing -int 3

No font smoothing (0):

没有字体平滑处理(0):

defaults -currentHost write -globalDomain AppleFontSmoothing -int 0

Sign out of your Mac and sign back in. Your changes won’t fully take effect until you do.

退出Mac,然后重新登录。您所做的更改将完全生效。

Feel free to try different font smoothing levels. You’ll just have to sign out and sign back in before you can see your changes after running each command.

随意尝试不同的字体平滑级别。 您只需注销并重新登录,即可在运行每个命令后看到所做的更改。

This process was tested on macOS Mojave developer beta 3, also known as macOS Mojave public beta 2.

此过程已在macOS Mojave开发人员beta 3(也称为macOS Mojave公共beta 2)上进行了测试。

翻译自: https://www.howtogeek.com/358596/how-to-fix-blurry-fonts-on-macos-mojave-with-subpixel-antialiasing/

macos mojave

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/280439.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

为什么我要写博客

原因在这啦 一、我觉得分享是一种精神,分享是我的乐趣所在,不是说我觉得我讲得一定是对的,我讲得可能很多是不对的,但是我希望我讲的东西是我人生的体验和思考,是给很多人反思,也许给你一秒钟、半秒钟&…

一个变量命名神器:支持中文转变量名

变量命名的规范,对于我们编程,大家都知道是非常重要的,上次给大家推荐过一个命名辅助工具《程序员还在为变量取名苦恼,那是因为你不知道,这个变量命名神器》,但大家一致反馈存在2个问题:1、网速…

rest_framework05:GenericAPIView用法/扩展类5个/子类9个/ViewSetMixin 自定义方法名字

GenericAPIView 1.视图层类使用GenericAPIView继承,能简化类里的方法code。 2.简化后的方法code格式基本通用,简单修改即可应用到其他类。 一、class开始加入 queryset Book.objectsserializer_class BookModelSerializer 二、方法里获取对象 a.查…

1.操作系统概述

2019独角兽企业重金招聘Python工程师标准>>> 操作系统的发展过程 无操作系统的计算机系统单道批处理系统(50年代,系统资源利用率低)多道批处理系统(60年代)分时系统(70年代)实时系统…

测听hl和nhl的区别_播放NHL曲棍球的最便宜方法(无电缆)

测听hl和nhl的区别If you’re like me, you watch hockey, and…basically no other sports. You also, like me, would like to skip the cable subscription. So what’s the cheapest way to watch NHL hockey online so you can cut the cord? 如果您像我一样,…

制作一个让客户满意的软件

我看了《构建之法》的第八章“需求分析”我对如何制作一个让客户满意的软件有了一点儿头绪,的但是还是有一些迷惑。我通过看书总结和百度查找有了一点儿总结:我们在制作软件的过程中应该及时与用户沟通交流,交换意见,并及时实现用…

rest_framework06:自动生成路由\action使用\认证

自动生成路由 # 1.导入routers模块 from rest_framework import routers# 2.实例化类 routerrouters.SimpleRouter()# 3.注册 # (前缀,继承自ModelViewSet视图类,别名) router.register(books7,views.BooksView) # 不要加斜杠# 4.加入 urlpatternsrouter.urls action使用 装…

char data[0]在struct末尾的用法

在实际的编程中,我们经常需要使用变长数组,但是C语言并不支持变长的数组。此时,我们可以使用结构体的方法实现C语言变长数组。 struct MyData { int nLen; char data[0];}; 在结构中,data是一个数组名;但该数组没有元素…

使用Java实现K-Means聚类算法

2019独角兽企业重金招聘Python工程师标准>>> 关于K-Means介绍很多,还不清楚可以查一些相关资料。 个人对其实现步骤简单总结为4步: 1.选出k值,随机出k个起始质心点。 2.分别计算每个点和k个起始质点之间的距离,就近归类。 3.最终中心点集可以划分为…

在PowerShell中显示高级进度条

如果你需要编写一些PowerShell脚本,尤其在处理一些相对复杂的任务时,你可能希望添加进度条的功能,以便随时可以了解进展情况。Write-Progress 这个命令可以帮助你完成简单的需求,请参考官方文档即可,但下图一个示例&am…

当检测到运动时如何自动打开门灯

If it’s dark out and someone comes to your door, you probably can’t see them unless your porch light is on. Furthermore, if a potential burglar approaches your front door, a motion light can help scare them away. 如果天黑了,有人进了您的门&…

分布式系统的那些事儿(六) - SOA架构体系

有十来天没发文了,实在抱歉!最近忙着录视频,同时也做了个开源的后台管理系统LeeCX,目前比较简单,但是后续会把各类技术完善。具体可以点击“原文链接”。 那么今天继续说分布式系统的那些事。 我们现在动不动就讲分布式…

rest_framework07:权限/频率/过滤组件/排序/异常处理封装Response对象

权限 写一个类,继承BasePermission,如果通过返回True,否则False 这里需要配合认证使用,否则没有user_type属性。 from rest_framework.permissions import BasePermissionclass UserPermission(BasePermission):def has_permis…

在阿里,我们如何管理测试环境

为什么80%的码农都做不了架构师?>>> 作者:林帆(花名金戟),阿里巴巴研发效能部技术专家 相关阅读:在阿里,我们如何管理代码分支 前言 阿里的许多实践看似简单,背后却蕴涵…

数据库_7_SQL基本操作——表操作

SQL基本操作——表操作 建表的过程就是声明列的过程。 表与字段是密不可分的。 一、新增数据表 create table [if not exists] 表名( 字段名字 数据类型, 字段名字 数据类型 -- 最后一行不需要逗号 )[表选项];if not exists:如果表名不存在,那么就创建,…

EXT.NET 更改lable和Text的颜色

2019独角兽企业重金招聘Python工程师标准>>> &#xfeff;&#xfeff; <ext:TextField ID"TextField1" " runat"server" FieldLabel"编号" LabelWidth"60" LabelAlign"Left" LabelStyle"color:red…

rest_framework08:分页器/根据ip进行频率限制

分页器 # 查询所有&#xff0c;才需要分页 from rest_framework.generics import ListAPIView# 内置三种分页方式 from rest_framework.pagination import PageNumberPagination,LimitOffsetPagination,CursorPaginationPageNumberPaginationclass MyPageNumberPagination(Pag…

NYOJ746 整数划分

该题是一道区间DP的题目&#xff0c;做了几道区间DP&#xff0c;说起来高大上&#xff0c;也就是DP在区间内的形式而已&#xff0c;核心思想还是要想到转移->规划。 题意是在n位数中间加m个称号&#xff0c;使得最终乘积最大。 状态转移方程如下&#xff1a; dp[ i ][ j ]ma…

Spring MVC实现文件下载

方法一&#xff1a; RequestMapping("/testHttpMessageDown")public ResponseEntity<byte[]> download(HttpServletRequest request) throws IOException {File file new File(request.getSession().getServletContext().getClassLoader().getResource("…

[MobX State Tree数据组件化开发][3]:选择正确的types.xxx

?系列文章目录? 定义Model时&#xff0c;需要正确地定义props中各字段的类型。本文将对MST提供的各种类型以及类型的工厂方法进行简单的介绍&#xff0c;方便同学们在定义props时挑选正确的类型。 前提 定义props之前&#xff0c;有一个前提是&#xff0c;你已经明确地知道这…