PageSourceSearch

https://www.hestudio.net/assets/fix-vscode-font-err-on-linux.html-BMrFPwkM.js

js hestudio.net collected 2026-09-24 10:36:20 UTC 5,045 bytes, 1 lines download raw bytes

1import{_ as e,c as i,f as n,o}from"./app-D7CCjthX.js";const a={};function p(r,t){return o(),i("div",null,[...t[0]||(t[0]=[n('<p>部分 Linux 设备上运行 VSCode 时,发现文本编辑器的缩放不明显,终端字体间距过大等。</p><figure><img src="https://img.hestudio.net/i/2023/09/16/6504994ccf087.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>这里以 Kali Linux 为例,其他 Linux 发行版请选择对应的系统内置的<strong>等宽字体</strong></p><p>我们依次打开 设置 -&gt; 外观 -&gt; 字体</p><figure><img src="https://img.hestudio.net/i/2023/09/16/65049a672f45e.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>这里我们可以发现,Kali Linux 默认等宽字体系列是<code>&#39;Fira Code&#39;</code>,后续我们需要在 VSCode 内将字体改为<code>&#39;Fira Code&#39;</code></p><hr><p>打开 VSCode,打开设置,搜索<code>font</code>关键字。</p><figure><img src="https://img.hestudio.net/i/2023/09/16/65049b337f3f4.png" alt="" tabindex="0" loading="lazy"><figcaption></figcaption></figure><p>将 <code>Terminal: Font Family</code>留空,将<code>Editor: Font Family</code>改为对应的等宽字体。 <img src="https://img.hestudio.net/i/2023/09/16/65049b7003013.png" alt="Screenshot_2023-09-16-01-41-55-75.png" loading="lazy"><img src="https://img.hestudio.net/i/2023/09/16/65049b72239a4.png" alt="Screenshot_2023-09-16-01-41-30-95.png" loading="lazy"></p><p>再次使用就可以发现,终端和文本编辑器的字体已经恢复正常了。</p>',11)])])}const g=e(a,[["render",p]]),c=JSON.parse(`{"path":"/posts/fix-vscode-font-err-on-linux.html","title":"VSCode 在部分 Linux 设备上终端和文本编辑器显示文本不正常的解决方法","lang":"zh-CN","frontmatter":{"title":"VSCode 在部分 Linux 设备上终端和文本编辑器显示文本不正常的解决方法","tag":["VSCode","Linux"],"category":["Linux"],"description":"部分 Linux 设备上运行 VSCode 时,发现文本编辑器的缩放不明显,终端字体间距过大等。 这里以 Kali Linux 为例,其他 Linux 发行版请选择对应的系统内置的等宽字体 我们依次打开 设置 -> 外观 -> 字体 这里我们可以发现,Kali Linux 默认等宽字体系列是'Fira Code',后续我们需要在 VSCode 内将字体...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"VSCode 在部分 Linux 设备上终端和文本编辑器显示文本不正常的解决方法\\",\\"image\\":[\\"https://img.hestudio.net/i/2023/09/16/6504994ccf087.png\\",\\"https://img.hestudio.net/i/2023/09/16/65049a672f45e.png\\",\\"https://img.hestudio.net/i/2023/09/16/65049b337f3f4.png\\",\\"https://img.hestudio.net/i/2023/09/16/65049b7003013.png\\",\\"https://img.hestudio.net/i/2023/09/16/65049b72239a4.png\\"],\\"dateModified\\":\\"2024-12-10T14:04:03.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"undefined\\",\\"url\\":\\"https://www.hestudio.net/about/\\",\\"email\\":\\"[email protected]\\"}]}"],["meta",{"property":"og:url","content":"https://www.hestudio.net/posts/fix-vscode-font-err-on-linux.html"}],["meta",{"property":"og:site_name","content":"heStudio"}],["meta",{"property":"og:title","content":"VSCode 在部分 Linux 设备上终端和文本编辑器显示文本不正常的解决方法"}],["meta",{"property":"og:description","content":"部分 Linux 设备上运行 VSCode 时,发现文本编辑器的缩放不明显,终端字体间距过大等。 这里以 Kali Linux 为例,其他 Linux 发行版请选择对应的系统内置的等宽字体 我们依次打开 设置 -> 外观 -> 字体 这里我们可以发现,Kali Linux 默认等宽字体系列是'Fira Code',后续我们需要在 VSCode 内将字体..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"https://img.hestudio.net/i/2023/09/16/6504994ccf087.png"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-12-10T14:04:03.000Z"}],["meta",{"property":"article:tag","content":"Linux"}],["meta",{"property":"article:tag","content":"VSCode"}],["meta",{"property":"article:modified_time","content":"2024-12-10T14:04:03.000Z"}]]}
1,"git":{"createdTime":1694800934000,"updatedTime":1733839443000},"readingTime":{"minutes":0.75,"words":226},"filePathRelative":"posts/fix-vscode-font-err-on-linux.md","excerpt":"<p>部分 Linux 设备上运行 VSCode 时,发现文本编辑器的缩放不明显,终端字体间距过大等。</p>\\n<figure><img src=\\"https://img.hestudio.net/i/2023/09/16/6504994ccf087.png\\" alt=\\"\\" tabindex=\\"0\\" loading=\\"lazy\\"><figcaption></figcaption></figure>\\n<p>这里以 Kali Linux 为例,其他 Linux 发行版请选择对应的系统内置的<strong>等宽字体</strong></p>\\n<p>我们依次打开 设置 -&gt; 外观 -&gt; 字体</p>","autoDesc":true}`);export{g as comp,c as data};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.