跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Apple] 修改 Mac 备忘录的段落行高值

发表于

一、问题: 众所周知,Mac 备忘录的段落,在中文时默认行高很小,使文字堆在了一起,相当难看,不知道大家是怎么忍受下去的,即便 MacOS12 后有所改善,但段落行高仍然很小。

二、分析: 修改备忘录程序的默认行高值,打开如下目录: /System/Applications/Notes.app/Contents/Resources/pad.css

我们可以找到 pad.css 这个文件,内部包含了行高的设置项:

body { margin: var(--margin-top) 14px var(--margin-bottom) 19px; padding: 0; font: @[FONT_SIZE]px @[FONT_NAME]; word-wrap: break-word; line-height:1.35; height: 100%; color: -apple-system-label; background: rgba(0,0,0,0) !important; }

这一行:line-height:1.35;

默认的行高值为 1.35 ,如果我们将该值修改为 1.5 就会好很多。但是,备忘录作为默认的 Mac 程序,所有用户都没有权限更改文件,无论是用管理员命令,还是关闭 SIP 后,都无法更改。

三、问题: 请问是否有其他途径可以修改该 css 文件,以优化行高问题。

四、其他说明: 虽然可以通过修改备忘录笔记的字体的问题,缓解行高问题,但,为每篇笔记设置字体过于繁琐,不是长期之举;再,如果 Mac 端设置了字体,会导致同步到 iOS 端的字体显得过小,总之,Mac 端和 iOS 端在设置字体问题上,很难找到一个平衡的、互相都舒服的字体大小。目前评估下来,唯一解法只能是修改 Mac 默认 css 文件的行高值,以完美解决该问题。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.