• 请不要在回答技术问题时复制粘贴 AI 生成的内容
ectotherm
V2EX  ›  程序员

寻找一款Mac上好看的中文等宽字体

  •  
  •   ectotherm ·
    axplus · Feb 9, 2012 · 22302 views
    This topic created in 5206 days ago, the information mentioned may be changed or developed.
    我现在用文泉驿等宽正黑,设置在Sublime Text 2中,问题是这个东西的中文可以接受,英文瘦瘦高高的,太难看了。

    TextMate 1中的那种显示字体的方式我可以接收(这也是为什么中文字会重叠的原因),Windows Visual Studio 2003中使用Courier New 12的样子我也能接受,总之就是英文不要这么瘦。

    Windows的字体宽度算法和Mac不一样,所以Windows上看起来等宽的如Courier等字体到Mac上,中英文就变为不等宽的。自己做字体这事情就算了,有没有现成的?

    求推荐!
    15 replies    2019-12-26 19:41:24 +08:00
    shao
        1
    shao  
       Feb 9, 2012
    恩,关注一下,我也需要这样的字体。
    roamlog
        2
    roamlog  
       Feb 9, 2012
    DejaVu Sans Mono
    ectotherm
        3
    ectotherm  
    OP
       Feb 9, 2012
    @roamlog 果然如我想的,中英文不等宽
    chenluois
        4
    chenluois  
       Feb 9, 2012
    @ectotherm 你想中英文等宽?意思是一个汉字和一个英文字母的宽度一样?
    那么你需要的是一款半宽等宽中文字体,全宽等宽肯定是不行了~
    ectotherm
        5
    ectotherm  
    OP
       Feb 9, 2012
    @chenluois 一个中文=2个英文,在windows上Courier New 12可以做到,TextMate 1那种计算字体宽度的方式,如果加入考虑中文的情况,所以的字体都可以做到。

    现在只有文泉驿正黑可以做到。
    chenluois
        6
    chenluois  
       Feb 9, 2012   ❤️ 1
    @ectotherm 如果是想要“一个汉字=2个英文字母”的宽度, M+ 1M 这个字体就行
    http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index-en.html

    1. 下载
    http://sourceforge.jp/projects/mplus-fonts/downloads/6650/mplus-TESTFLIGHT-046.tar.xz/

    2. 解压 mplus-TESTFLIGHT-046.tar.xz 这个文件(如果不知道怎么解压tar.xz文件,可以用Unarchiver, 是个免费软件 - http://wakaba.c3.cx/s/apps/unarchiver)

    3. 解压后文件夹里有很多字体,有些是非等宽的,有些是等宽的。mplus-1m-regular.ttf 这个是“一个汉字=2个英文字母”的宽度。
    flyingkid
        7
    flyingkid  
       Feb 9, 2012
    @ectotherm 文泉驿等宽正黑吗?
    fireyy
        8
    fireyy  
       Feb 9, 2012
    M+ 1M 不错,我也在用
    yyfearth
        9
    yyfearth  
       Feb 9, 2012
    还从来没碰到这样的问题,我以为中文没有等宽的问题,但是确实,等宽英文和中文一块的话就有问题了。
    从来没碰到,因为我的项目里面还没有中文,有的话,估计会把他/uxxxx编码。
    ectotherm
        10
    ectotherm  
    OP
       Feb 9, 2012
    @yyfearth 我们老板原来也要求注释使用英文,后来发现公司人素质参差不齐,全部用英文也太装13了,所以说注释全部用中文。所以天天都碰到这种情况。以前在windows上好办,mac上就挂了。
    ectotherm
        11
    ectotherm  
    OP
       Feb 9, 2012
    @fireyy @chenluois M+ 1m, M+ 1mn M+ 2m都是等宽的,差别看不太出来,不过字体还算好看,比wenquanyi那个顺眼多了,谢谢
    ectotherm
        12
    ectotherm  
    OP
       Feb 12, 2012
    @chenluois @fireyy 用了几天,M+的英文也是高高瘦瘦的,比文泉驿正黑稍微好一点,但是看久了还是不舒服。有没有款款扁扁的?

    或者有什么方法可以把字体中的所有字符等比拉宽的?
    avenger
        13
    avenger  
       Apr 6, 2012   ❤️ 1
    daimoon
        14
    daimoon  
       Mar 30, 2019
    推荐:ubuntu mono。跟 mac 的 menlo 差不多。而且对于 0、o 区分更好。严格的 1:2 字体
    Qzi
        15
    Qzi  
       Dec 26, 2019
    我试了下 更纱黑体,思源黑体,也是严格 1:2 字体吧

    https://leonvision.online/technology/2019/12/26/中文等宽字体( monospace-chinese-font-family )/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 22:16 · PVG 06:16 · LAX 15:16 · JFK 18:16
    ♥ Do have faith in what you're doing.