[en] Automatic Font Replacement

Die offizielle Übersetzung liegt noch nicht vor.

[en] Problem

[en] Using internal printer fonts is mandatory when using printer internal counters, dates, and times.

[en] When you print your labels on a different printer from a different, your selected fonts might not be available on your new printer, especially when the newly selected printer is from a different manufacturer. Your new printer probably supports an entirely different set of internal fonts. The fonts may look alike but are available under a different name.

[en] Similar problems may occur when TrueType fonts you use on your labels are not installed on your target machine where NiceLabel Automation prints labels.

[en] You can configure NiceLabel software and Web Printing clients to automatically replace the fonts used on your labels with compatible fonts. You can configure font mapping based on font names. When your original font is not found, NiceLabel tries to use the first available replacement font defined in your mapping table. If NiceLabel does not find a suitable replacement, Arial Truetype font is used.


[en] If you configure font replacement, your mapping rules execute when you change the printer on your label.

[en] Solution

[en] To configure custom font mapping:

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

    [en] For NiceLabel 10:

    [en] %ProgramData%\NiceLabel\NiceLabel 10

    [en] For NiceLabel 2019:

    [en] %ProgramData%\NiceLabel\NiceLabel 2019

    [en] For NiceLabel Web Client:

    [en] If you installed your web client:

    [en] %userprofile%\AppData\Local\NiceLabel\NiceLabelWeb Client

    [en] If your administrator installed your Web Client with the ALLUSERSINSTALL command-line switch:

    [en] %ProgramData%\NiceLabel \NiceLabelWeb ClientNOTE: Your path may vary depending on your installation.

  2. [en] Copy your fontmapping.def file to fontmapping.local.def.

  3. [en] Open your fontmapping.local.def file in your text XML editor.

  4. [en] Inside the element FontMappings, create a new element with a custom name.

  5. [en] Inside your new element, create at least two elements with the name Mapping.

    • [en] The value of the first Mapping element must contain the name of your original font.

    • [en] The value of the second Mapping element must contain the name of your replacement font.

[en] You can add additional Mapping elements with new font names. If the first replacement font is not available, NiceLabel tries the next. If no replacement fonts are available, NiceLabel uses Arial Truetype instead.

[en] NOTE: Your fontmapping.local.def file is preserved during upgrades while fontmapping.def is overwritten during upgrades. Do not modify fontmapping.def.

[en] Sample Mapping Configuration

[en] This example defines two mappings:

  • [en] The first mapping (see AveryNovexx XML element) converts any Avery font into a matching Novexx font. For example, the font Avery YT100 is replaced with Novexx YT100, and Avery 1 is replaced with Novexx 1. If the Novexx font is not available, NiceLabel uses Arial Truetype.

  • [en] The second mapping (see TextReplacement XML element) converts Avery YT100 into Novexx YT104. If that font is not available, then the Zebra 0 font is used. If that font is also not available, Arial Truetype is used.

  • [en] The second mapping overrides the first one.

<?xml version="1.0" encoding="utf-8"?>
        <Mapping>Avery Dennison</Mapping>
        <Mapping>Avery YT100</Mapping>
        <Mapping>Novexx YT104</Mapping>
        <Mapping>Zebra 0</Mapping>