-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add doom emacs support hidpi setting
- Loading branch information
1 parent
9e5557d
commit 9dd2582
Showing
22 changed files
with
68 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#+TITLE: Doom Emacs 字体 HiDPI 设置 | ||
#+DATE: 2024-07-14 | ||
#+DRAFT: false | ||
#+CATEGORYS: Emacs | ||
#+TAGS[]: emacs font doomemacs | ||
|
||
我使用的是 =4K= 显示器,其分辨率为 =3840x2160= | ||
|
||
在我的 linux 操作环境系统中,我已经将系统层面的整体缩放调整为 =1.5= 倍, 使其整体界面的实际效果以 =2560x1440= 进行显示。用以获得相较于 =1080p= 整数倍缩放获得更宽裕的空间使用,兼顾矢量字体的清晰度。 | ||
|
||
但是除了在 =emacs -nw= 下运行的时候,例如直接启动 emacs ,我的整体文字仍然按照设定的字体大小,就像固定的像素大小进行渲染和显示。 | ||
|
||
这在 =4K= 下导致我的文字异常的小,于是在网上寻求解决办法。 | ||
|
||
幸运的是,我很快的在 =doomemacs= 的 issue 中找到了解决办法。 | ||
|
||
具体解决办法如下: | ||
|
||
#+begin_src elisp | ||
(setq doom-font (font-spec :family "Terminess Nerd Font" :size 16.0 )) | ||
#+end_src | ||
|
||
是的,你没有看错,这就是和默认的设置方式一模一样。 | ||
|
||
但是重点就是 =size= 不是一个整数,而是一个浮点数。 | ||
|
||
然后我的 emacs 显示效果就完美的应用上了系统设置的 =DPI= 系数 |
3 changes: 3 additions & 0 deletions
3
resources/_gen/assets/css/style.scss_26962b449d539ee5c1301a7879e5bb0e.content
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/css/style.scss_26962b449d539ee5c1301a7879e5bb0e.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/style.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/2444e9.scss_8ed8b7e7c2cc8bdca02cba9cfbcb19e6.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-1{width:50%} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/2444e9.scss_8ed8b7e7c2cc8bdca02cba9cfbcb19e6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/2444e9.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/4a7949.scss_3b247c0de8c6fa66fa9e07fa3fca5776.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-1{height:120px} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/4a7949.scss_3b247c0de8c6fa66fa9e07fa3fca5776.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/4a7949.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/5b98dd.scss_f91bdb5bd81a533b12c4396004379c12.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-1{max-height:120px} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/5b98dd.scss_f91bdb5bd81a533b12c4396004379c12.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/5b98dd.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/726bc0.scss_5584155530149c8dea233556eedd1ecb.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-2{text-align:center}#id-4{background:#292a2d30}#id-5{background:#292a2d30}#id-6{background:#292a2d30}#id-7{display:flex;justify-content:center} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/726bc0.scss_5584155530149c8dea233556eedd1ecb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/726bc0.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/8aea00.scss_975b18fcc4e362abfaf31c321e08dd54.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-1{width:75%;justify-content:center} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/8aea00.scss_975b18fcc4e362abfaf31c321e08dd54.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/8aea00.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/a7c26b.scss_bfa3db54e056b308663add99b791763b.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-1{width:75%;text-align:center} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/a7c26b.scss_bfa3db54e056b308663add99b791763b.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/a7c26b.min.css","MediaType":"text/css","Data":{}} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/d8d1a4.scss_35ca6ed3cbb8d12cab9e55527308ad12.content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#id-1{text-align:center} |
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/d8d1a4.scss_35ca6ed3cbb8d12cab9e55527308ad12.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/d8d1a4.min.css","MediaType":"text/css","Data":{}} |
Empty file.
1 change: 1 addition & 0 deletions
1
resources/_gen/assets/scss/css/e2eb86.scss_0a26ff472cf8e437a1bd81973ec8ecec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"Target":"css/e2eb86.min.css","MediaType":"text/css","Data":{}} |
2 changes: 1 addition & 1 deletion
2
resources/_gen/assets/scss/css/style.scss_d75fd08668b4bae707167bbce4d8ca46.content
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters