Automatic Font Replacement

Problem

You might design your label templates to print text objects formatted as built-in printer fonts. However, when printing such label to a different kind or printer, the selected fonts might not be available on the new printer. The new printer probably supports an entirely different set of internal fonts. The fonts might look alike, but are available under a different name.

The similar problem might occur when the Truetype font that is used in the label is not installed on the target machine, where NiceLabel Automation will print labels.

NiceLabel software can be configured to automatically replace the fonts used on the label with compatible fonts. You can configure the font mapping based the font names. When the original font is not found, NiceLabel will try to use the first available replacement font as defined in the mapping table. If no suitable replacement font is found, Arial Truetype font will be used.

NOTE: If you configure the font replacement feature, the mapping rules will execute when the printer on the label is changed.

Solution

Configuring the Font Mapping for NiceLabel Automation

To configure the custom font mapping, do the following:

  1. Open File Explorer and navigate to the following folder:

    %ProgramData%\EuroPlus\NiceLabel Automation\system.net

  2. Open the file fontmapping.def in your favorite text XML editor.
  3. Inside the element FontMappings, create a new element with a custom name.
  4. Inside the new element, create at least two elements with name Mapping.
    1. Value of the first element Mapping must contain name of the original font.
    2. Value of the second element Mapping must contain name of the replacement font.

NOTE: There can be additional Mapping elements with new font names. If the first replacement font is not available, NiceLabel Automation will try the next. If no replacement fonts are available, Arial Truetype will be used instead.

Sample Mapping Configuration

In this example, two mappings are defined.

  • The first mapping will convert any Avery font into matching Novexx font. For example font Avery YT100 will be replaced with Novexx YT100, font Avery 1 will be replaced with Novexx 1. If the Novexx font is not available, Arial Truetype will be used.
  • The second mapping will convert Avery YT100 into Novexx YT104. If that font is not available, then font Zebra 0 will be used. If that font is also not available Arial Truetype will be used.
  • The second mapping will override the first one.
<?xml version="1.0" encoding="utf-8"?>
<FontMappings>
    <AveryNovexx>
       <Mapping>Avery</Mapping>
        <Mapping>Novexx</Mapping>
    </AveryNovexx>
    <TextReplacement>
        <Mapping>Avery YT100</Mapping>
        <Mapping>Novexx YT104</Mapping>
        <Mapping>Zebra 0</Mapping>
    </TextReplacement>
</FontMappings>

Configuring the Font Mapping for NiceLabel Pro

To configure the custom font mapping, do the following:

  1. Open File Explorer and navigate to the following folder:

    %ProgramData%\EuroPlus\NiceLabel 6\system

  2. Open the file fontmapping.def in your favorite text editor.
  3. Inside the section FontMappings, create a new item with a custom name.
  4. The value of the item must contain at least two comma-delimited names.
    1. The first name must contain name of the original font.
    2. The second name must contain name of the replacement font.

NOTE: There can be additional Mapping elements with new font names. If the first replacement font is not available, NiceLabel Pro will try the next. If no replacement fonts are available, Arial Truetype will be used instead.

Sample Mapping Configuration

In this example, two mappings are defined.

  • The first mapping will convert any Avery font into matching Novexx font. For example font Avery YT100 will be replaced with Novexx YT100, font Avery 1 will be replaced with Novexx 1. If the Novexx font is not available, Arial Truetype will be used.
  • The second mapping will convert Avery YT100 into Novexx YT104. If that font is not available, then font Zebra 0 will be used. If that font is also not available Arial Truetype will be used.
  • The second mapping will override the first one.
[FontMappings]
AveryNovexx="Avery, Novexx"
TextReplacement="Avery YT100, Novexx YT104, Zebra 0"

Print document   Email document

Feedback

Did this article help you? *