June 2009 Archives

用脚本实现字体安装

| No Comments

Windows的“字体文件夹”提供了安装新字体的功能, 具体方法是打开“控制面板”中名为“字体”的文件夹, 选择“文件”菜单中的“安装新字体”选项进行字体安装。如果系统盘是“C”盘,字体文件夹的目录就是 “C:\windows\fonts”,我们也可以直接手动拷贝字体文件到该目录。拷贝完成之后,字体文件夹会自动安装该字体并向系统发送字体更新的消息,所以字体文件夹具有自动安装字体的功能。但是通过指令(比如 copy指令)拷贝字体到字体目录是无法实现自动安装字体的,因为这类指令实现的仅仅是文件复制的过程,无法触发字体文件夹安装字体的功能,如想使新安装的字体有效,必须通过重新启动电脑来识别安装新字体。

About this Archive

This page is an archive of entries from June 2009 listed from newest to oldest.

May 2009 is the previous archive.

July 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.