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.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityThe 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.
You can find the font information in the "style" column.
Use this information for styling.
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()
prop=settings.dataDefinedProperties()
p=prop.property(QgsPalLayerSettings.Family)
p.setField('style')
settings.dataDefinedProperties().setProperty(QgsPalLayerSettings.Family, p)
labeling.setSettings(settings)
layer.setLabeling(labeling)