The integrated DXF import didn't use the fonts installed in Windows (for special symbols).

These can be used in QGIS, but the import doesn't use them.

1 Answer 1


You can find the font information in the "style" column. Use this information for styling. enter image description here

Use the following code to adjust all layers:

from qgis.core import QgsProject
for layer in QgsProject.instance().mapLayers().values():
    if layer.geometryType() == 0 and layer.name() == 'texts':
        labeling = layer.labeling().clone()
        settings = labeling.settings()


        settings.dataDefinedProperties().setProperty(QgsPalLayerSettings.Family, p)
  • 1
    Unfortunately, the font information in the Style field is incorrect, instead of "Symbolism 1" "Symbolism 100" is imported. Apparently all fonts do this (always appends a "00". If I change this in the attribute table, it works. The problem could be inside the DXF: symbolism 100 symbolism-1.ttf
    – Martin
    Dec 20, 2022 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.