字体文件由系统进程保存

时间:2022-12-15 22:39:38

In my environment, a TTF file(font file) is being held by system.exe process.
I can't understand why it's happening.
I've tried to unregister(uninstall) the font and still the system process is holding it.
My problem is when when i update the package with th ttf file, it requires system restart since the file is replaced while being held.
Does anyone have any suggestion why it is being used by system process and what can be done?
Thanks

在我的环境中,system.exe进程正在保存TTF文件(字体文件)。我无法理解为什么会这样。我试图取消注册(卸载)字体,但系统进程仍然持有它。我的问题是,当我用ttf文件更新软件包时,它需要重新启动系统,因为文件在被保存时被替换。有没有人有任何建议为什么它被系统进程使用,可以做些什么?谢谢

1 个解决方案

#1


5  

This behaviour was introduced with a security update released in August 2014 (refer to security bulletin MS14-045 for details) and applies to any font file that is not installed in the default fonts directory.

此行为是在2014年8月发布的安全更新中引入的(有关详细信息,请参阅安全公告MS14-045),并适用于未安装在默认字体目录中的任何字体文件。

Although the KB article for MS14-045 lists this as a "known issue" it is now documented as the expected behaviour. See Font Installation and Deletion in MSDN:

虽然MS14-045的知识库文章将此列为“已知问题”,但现在将其记录为预期行为。请参阅MSDN中的字体安装和删除:

A font installed from a location other than the %windir%\fonts folder cannot be modified when loaded in any active session, including session 0. [...]

从%windir%\ fonts文件夹以外的位置安装的字体在任何活动会话(包括会话0)中加载时都无法修改。[...]

Permanent fonts remain installed after reboot and are loaded by all created sessions.

永久字体在重新启动后仍然安装,并由所有创建的会话加载。

This means that if it is not acceptable to have to reboot the machine when upgrading the font, the font file must be installed in the default fonts directory. (I believe this has always been the recommended practice in any case.)

这意味着如果在升级字体时不得不重新启动计算机,则必须将字体文件安装在默认字体目录中。 (我相信无论如何这一直都是推荐的做法。)

#1


5  

This behaviour was introduced with a security update released in August 2014 (refer to security bulletin MS14-045 for details) and applies to any font file that is not installed in the default fonts directory.

此行为是在2014年8月发布的安全更新中引入的(有关详细信息,请参阅安全公告MS14-045),并适用于未安装在默认字体目录中的任何字体文件。

Although the KB article for MS14-045 lists this as a "known issue" it is now documented as the expected behaviour. See Font Installation and Deletion in MSDN:

虽然MS14-045的知识库文章将此列为“已知问题”,但现在将其记录为预期行为。请参阅MSDN中的字体安装和删除:

A font installed from a location other than the %windir%\fonts folder cannot be modified when loaded in any active session, including session 0. [...]

从%windir%\ fonts文件夹以外的位置安装的字体在任何活动会话(包括会话0)中加载时都无法修改。[...]

Permanent fonts remain installed after reboot and are loaded by all created sessions.

永久字体在重新启动后仍然安装,并由所有创建的会话加载。

This means that if it is not acceptable to have to reboot the machine when upgrading the font, the font file must be installed in the default fonts directory. (I believe this has always been the recommended practice in any case.)

这意味着如果在升级字体时不得不重新启动计算机,则必须将字体文件安装在默认字体目录中。 (我相信无论如何这一直都是推荐的做法。)