常用中英文TTF字体包

常用中英文TTF字体包

fonts.rar项目地址:https://gitcode.com/open-source-toolkit/aefeb

描述

本资源文件包含了常用的中英文TTF字体包,涵盖了多种字体风格,包括手写字体。具体字体列表如下:

  • Times New Roman
  • 中山行书百年纪念版
  • Calibri
  • Christopherhand
  • DejaVuSansMono
  • 方正兰亭黑
  • James Fajardo
  • Monaco
  • 微软雅黑
  • 仿宋
  • 黑体
  • 楷体
  • 宋体
  • yahei_mono
  • 仿宋_GB2312
  • 楷体_GB2312
  • 迷你简行楷碑

文件列表

  • bb1550.ttf
  • calibri.ttf
  • calibrib.ttf
  • calibrii.ttf
  • calibriz.ttf
  • comesinhandy.ttf
  • DejaVuSansMono-Bold.ttf
  • DejaVuSansMono-BoldOblique.ttf
  • DejaVuSansMono-Oblique.ttf
  • DejaVuSansMono.ttf
  • DroidSansFallback.ttf
  • James_Fajardo.ttf
  • Monaco.ttf
  • msyh.ttf
  • msyhbd.ttf
  • simfang.ttf
  • simhei.ttf
  • simkai.ttf
  • simsun.ttc
  • times.ttf
  • timesbd.ttf
  • timesbi.ttf
  • timesi.ttf
  • yahei_mono.ttf
  • 仿宋_GB2312.ttf
  • 使用方法.txt
  • 楷体_GB2312.ttf
  • 迷你简行楷碑.TTF

使用方法

Windows

将所有的TTF文件拷贝到系统所在分区的 C:\Windows\Fonts 目录下即可。

Linux

  1. 解压缩下载的字体压缩包:

    tar xvzf utf8.tar.gz
    

    tar xvjf arial.tar.bz2
    
  2. 创建一个新的字体目录:

    mkdir /usr/share/fonts/truetype
    
  3. 将解压缩后的字体文件移动到新创建的字体目录:

    mv *.ttf /usr/share/fonts/truetype
    
  4. 导航到字体目录:

    cd /usr/share/fonts/truetype
    
  5. 创建 fonts.scalefonts.dir 文件:

    mkfontscale && mkfontdir
    fc-cache
    
  6. 将新字体目录添加到X11字体路径:

    chkfontpath --add /usr/share/fonts/truetype
    
  7. 重启X字体服务器:

    /etc/rc.d/init.d/xfs restart
    

    你可以通过运行 chkfontpath 命令或查看 /etc/X11/XF86Config 文件来验证新路径是否成功添加。

    如果没有root权限,可以将 *.ttf 文件复制到 ~/.fonts 目录下。

使X11字体对Java可用

  1. 打开 /etc/profile 文件,并添加一个新的环境变量:

    JAVA_FONTS=/usr/share/fonts/truetype
    export JAVA_FONTS
    
  2. 打开 jre/lib 目录下的 font.properties 文件,取消注释并设置为适当的字体目录:

    appendedfontpath=/usr/share/fonts/truetype
    

注意事项

  • 确保在安装字体时遵循操作系统的权限要求。
  • 对于Linux系统,确保字体路径正确配置,以便应用程序能够正确识别和使用这些字体。

fonts.rar项目地址:https://gitcode.com/open-source-toolkit/aefeb

括:times new roman,中山行书百年纪念版,calibri,Christopherhand,DejaVuSansMono,方正兰亭黑,James Fajardo,Monaco,微软雅黑,仿宋,黑体,楷体,宋体,yahei_mono,仿宋_GB2312,楷体_GB2312,迷你简行楷碑。 文件名列表: bb1550.ttf calibri.ttf calibrib.ttf calibrii.ttf calibriz.ttf comesinhandy.ttf DejaVuSansMono-Bold.ttf DejaVuSansMono-BoldOblique.ttf DejaVuSansMono-Oblique.ttf DejaVuSansMono.ttf DroidSansFallback.ttf James_Fajardo.ttf Monaco.ttf msyh.ttf msyhbd.ttf simfang.ttf simhei.ttf simkai.ttf simsun.ttc times.ttf timesbd.ttf timesbi.ttf timesi.ttf yahei_mono.ttf 仿宋_GB2312.ttf 使用方法.txt 楷体_GB2312.ttf 迷你简行楷碑.TTF 使用方法: ==================================================================================================================== ==================================================================================================================== windows: 将所有的ttf文件拷贝到 系统所在分区的windows\fonts 目录下即可 linux: Install and configure Unicode TrueType fonts in Linux Uncompress the downloaded font archive to a directory and add it to the font path, a list of directories containing fonts: 1. Uncompress the archive # tar xvzf utf8.tar.gz or # tar xvjf arial.tar.bz2 2. Create a directory for new fonts # mkdir /usr/share/fonts/truetype 3. Move the uncompressed font files to the new font directory # mv *.ttf /usr/share/fonts/truetype 4. Navigate to the font directory # cd /usr/share/fonts/truetype 5. Create fonts.scale and fonts.dir # mkfontscale && mkfontdir # fc-cache 6. Add the new font directory to the X11 font path # chkfontpath --add /usr/share/fonts/truetype 7. Restart X font server # /etc/rc.d/init.d/xfs restart You can verify the successful addition of the new path by running chkfontpath command or by listing X font server's /etc/X11/XF86Config file. If you do not have root access, copy the *.ttf to ~/.fonts directory instead. Make X11 fonts available to Java Perform one of the following: 1. Open /etc/profile and add a new environment variable JAVA_FONTS=/usr/share/fonts/truetype export JAVA_FONTS 2. Open font.properties file under jre/lib directory, uncommnent and set to the appropriate font directory appendedfontpath=/usr/share/fonts/truetype
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

乌姗或Jonathan

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值