XS_​DXF_​FONT_​CONVERSION_​FILE

Tekla Structures
2018
Tekla Structures

XS_​DXF_​FONT_​CONVERSION_​FILE

Category

Printing

Use this advanced option to specify a font conversion file for Tekla Structures drawings’ DWG and DXF export and printing. The font conversion file defines which font file will be connected to the created AutoCAD style, and optional font width and height correction factors. You can use both True Type font files and AutoCAD .SHX font files.

If only the file name of the font conversion file is given, the file is read from the model folder. To use a font conversion file from another location, give the file name with relative or full path. If XS_DXF_FONT_CONVERSION_FILE is not set, Tekla Structures will try to use the default font conversion file ( dxf_fonts.cnv ) from the folder defined by DXK_FONTPATH. DXK_FONTPATH is defined in teklastructures.ini.

If the font conversion file is not found or if it does not contain a mapping for a certain font, the font name used in Tekla Structures is used to form the name of the text style in AutoCAD. Spaces are replaced with underscores and lowercase letters are replaced with uppercase ones. For example, font name Arial Narrow in Tekla Structures will become a style named ARIAL_NARROW in AutoCAD.

In addition to the font-specific width and height correction factors defined in the font conversion file, there are general variables XS_DXF_TEXT_HEIGHT_FACTOR and XS_DXF_TEXT_WIDTH_FACTOR , which apply to all exported texts regardless of the font. If both font specific factors and general variables are used, they are multiplied.

Syntax used in font mapping:

Font name in Tekla Structures = Font file name in AutoCAD [* width correction factor [* height correction factor]]

Examples of font mappings in a .cnv file:

Arial Narrow = ARIALN.TTF

Arial Narrow Bold Italic = ARIALNBI.TTF * 0.5 * 1.0

Note:
  • The names in the font conversion file are case sensitive.

  • The font conversion file is used for drawings in DWG and DXF export and printing only, it does not affect drawings DWG and DXF import or model import or export.

Was this helpful?
Previous
Next