Font engine settings file

From DISE KnowledgeBase

Jump to: navigation, search

The font engine in DISE can be controlled by a file called "FontEngine.settings" that is placed in the DISE application directory.

The file is in text format and can be used if you want to force the font engine to include, exclude or substitute fonts.
The file is read when DISE scans the fonts, so after you made changes to the file, you will need to close down all DISE applications, re-start them and re-scan the fonts in the "Composer Preferences" dialog (or "Font Settings" dialog on the player).

Lightbulb.png Note: It is usually a good idea to have the same FontEngine.settings file on both the editor and the players, unless you really know what you want.

Below is a description of the commands you can give the font engine in the file.


Force a specific font file to be loaded

DEFINE Filename;Arial[,Regular]

The Filename can be either the complete path to a file or just a filename. If the complete path is specified, the font engine will look for the file exactly where it was specified even if it is not in the normal font paths. If you only specify a filename, the font engine will look for the file in its font paths. After the filename you must specify which font name you want this font file to have, since the function disables the Auto-detect function Optionally, you can also specify a sub-family name that will appear in the "Style" combo box on the "Font Settings" Dialog.

Lightbulb.png Note: Sub-family names Regular, Bold and Italic are reserved and will not show up.

Fonts that are defined this way will override the automatic detection, so the function can be used to manually change the name of a font if the auto-detected name is not wanted.

The function can also be used to force-load font files that are corrupted and as such would be discarded by the normal detection routine. This can be dangerous though, as a corrupted font file might produce errors that compromise the stability of your system.

Exclude a font

DENY Arial[,Bold Italic]

You specify the name of the font that you don't want to be used in DISE. Optionally you can also specify a Style, in which case, only the selected Style of the font will be excluded.

The function is useful if there are copyrighted typefaces that you don't want to use accidentally, or if the graphic profile of your system don't allow certain fonts.

Only load a list of fonts

First, give the command

DENYALL

This will exclude all fonts except those that you allow to be used in the DISE system

Then specify your font list with the following command

ALLOW Arial[,Italic]

You specify the name of the font that you want to be used in DISE. Optionally you can also specify a Style, in which case, only the selected Style of the font will be allowed.

Substitute one font with another

SUBST Arial[,Bold];MS Sans Serif[,Bold];ALWAYS

The first font name is the font you want to substitute and the second font name is the font you want to use instead.

If you want you can specify a specific style, in which case only that style will be substituted.

At the end you can specify ALWAYS or IFNOTEXIST.

ALWAYS will always substitute the font.

IFNOTEXIST will substitute the font only if it was not found. This option will override the "if font doesn't exist" behavior that you can specify in "Movie Preferences".

Disable Symbolic Fonts

In certain circumstances fonts register as symbolic fonts and there will be problems rendering. To amend this there is an option NOWINGDINGS that when set will disable all symbolic fonts.

Lightbulb.png Note: This means Wingdings and other genuine symbolic fonts will not work.