字体表Font Table

Font 表包含用于向系统注册字体文件的信息。The Font table contains the information for registering font files with the system.

字体表包含以下列。The Font table has the following columns.

Column 类型Type Key NullableNullable
文件_File_ 标识符Identifier YY NN
FontTitleFontTitle 文本Text NN YY

Columns

文件_File_

外部键输入到字体文件的 文件表 中。External key into the File table entry for the font file. 建议包含字体文件的组件具有 _ component 表的 "目录" 列中指定的 FontsFolder。It is recommended that the component containing the font file have the FontsFolder specified in the Directory_ column of the Component table.

FontTitleFontTitle

字体名称。Font name. 建议你将此列留空以用于 TrueType 字体和 TrueType 集合,因为安装程序可以在从字体文件中读取正确的字体标题之后注册字体。It is recommended that you leave this column null for TrueType Fonts and TrueType Collections because the installer can register the font after reading the correct font title from the font file. 如果输入的是字体名称,则它必须与字体文件中的字体标题完全相同。If the font name is entered, it must be identical to font title from the font file. 您必须为不具有嵌入名称的字体指定标题,如 fon 文件。You must specify a title for fonts that do not have embedded names, such as .fon files.

备注Remarks

执行 RegisterFonts 操作UnregisterFonts 操作 时,将引用此表。This table is referred to when the RegisterFonts action or the UnregisterFonts action is executed.

如果 FontTitle 字段为空,则直接从指定的字体文件读取字体名称。If the FontTitle field is left Null, the Font name is read directly from the font file specified. 如果记录到 FontTitle 字段中的字体名称不同于字体文件中记录的内部字体名称,则 RegisterFonts 操作会将字体注册两次。If the font name recorded into the FontTitle field differs from the internal font name recorded in the font file, the font is registered twice by the RegisterFonts action.

字体文件不应使用语言 ID 创作,因为字体没有嵌入的语言 ID 资源。因此,对于字体文件, 文件表 的语言列应保留为 null。Font files should not be authored with a language ID, as fonts do not have an embedded language ID resource.Thus the Language column of the File table should be left null for font files.

由于安装程序在默认情况下不引用计数字体文件,因此,在卸载应用程序时,可能会随组件一起删除预先存在的字体文件。Because the installer does not refcount font files by default, preexisting font files may be removed with their component when uninstalling an application. 为了确保不会删除字体文件,作者可以在组件表 "msi 组件" 表的 "属性" 列中设置 msidbComponentAttributesSharedDllRefCountmsidbComponentAttributesPermanent 位标志, _ _ _ 其中包含该字体文件。To ensure that a font file is not removed, authors may set the msidbComponentAttributesSharedDllRefCount or msidbComponentAttributesPermanent bit flags in the Attributes column of the Component Table_msi_Component_Table for the component containing the font file.

验证Validation

ICE03ICE03
ICE06ICE06
ICE07ICE07
ICE32ICE32
ICE51ICE51
ICE60ICE60