Font

  

"l·l" Ligature in "Source Code Pro" incorrectly invoked when render whitespace is enabled · Issue #106583 · microsoft/vscode · GitHub

Cascadia Code

Windows 终端 Cascadia Code | Microsoft Docs 

Fira Code

Releases · tonsky/FiraCode · GitHub 

DejaVu Fonts

https://dejavu-fonts.github.io/Download.html 

Liberation Mono

https://www.fontsquirrel.com/fonts/liberation-mono 

Source Code Pro

https://github.com/adobe-fonts/source-code-pro/releases

 

安装字体:

Windows:

打开TTF文件夹,将后缀名为.ttf的文件copy到C:\Windows\Fonts目录下,copy完成后,下面会出现Source Code,双击打开,会发现windows字体已经归类,这就表示安装完成了。


Linux: 
dnf install fontconfig

 

Ubuntu:

 

 Fedora:

 

查看中文字体:

fc-list :lang=zh-cn

 

安装Source Code Pro

mkdir -pv /usr/share/fonts/truetype
cp -r source-code-pro-2.030R-ro-1.050R-it/TTF/* /usr/share/fonts/truetype/source-code-pro
fc-cache -fv

 

安装Windows字体

  1. 进到 C:\Windows\Fonts 找到字体
     

      

  2. mkdir -pv /usr/share/fonts/zh-cn

    复制 STXINGKA.TTF 至上面目录

    fc-cache -fv

    字体名字 使用 'STXingKai' OR '华文行楷' 建议使用前者

    效果图

     

Linux 修改终端字体:

RHEL:

dnf install terminus-fonts-console
# /usr/lib/kbd/console-fonts/
# setfont ter-v18b 
# systemd-vconsole-setup.service /etc/vconsole.conf  man vconsole.conf
KEYMAP="us"
FONT="ter-v18b"
# grub
GRUB_CMDLINE_LINUX="vconsole.keymap=us vconsole.font=ter-v18b rhgb quiet"

Ubuntu:

# /etc/default/console-setup
# /usr/share/consolefonts
# showconsolefont setupcon
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="guess"
FONTFACE="TerminusBold"
FONTSIZE="10x20"

  

otf ttf

TTF(TrueType) 

Windows和Mac系统最常用的字体格式,其最大的特点就是它是由一种数学模式来进行定义的基于轮廓技术的字体,这使得它们比基于矢量的字体更容易处理,保证了屏幕与打印输出的一致性。同时,这类字体和矢量字体一样可以随意缩放、旋转而不必担心会出现锯齿。 

OTF(OpenType)

OpenType是微软和Adobe共同开发的字体,微软的IE浏览器全部采用这种字体。致力于替代TrueType字体。 

 

 

posted @ 2021-10-09 13:41  ascertain  阅读(234)  评论(0编辑  收藏  举报