-
When i exe but it should be: T1704180658.dxf file: https://gist.githubusercontent.com/ru4ert/0f099e0ad5133b36547b5cb6663ed4c5/raw/e7b1c1e1ccba7b7004d6c21c8dcecc04814f0c51/gistfile1.txt ezdxf 1.1.4 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
First always rebuild the font-manager cache: https://ezdxf.mozman.at/docs/howto/fonts.html# I guess this DXF file was created on macOS. Because the TTF fonts in the DXF file are named differently than on Windows:
DWG TrueView (AutoCAD) does an auto-translation for this font names on Windows: BricsCAD doesn't do this: and If you open this DXF file on a mac the fonts should be rendered as expected - except the fonts are not stored where This is the only location on macOS: MACOS_FONT_DIRS = ["/Library/Fonts/"] You can add more font directories to the config file at key [core]
default_dimension_text_style = OpenSansCondensed-Light
test_files = C:\Source\dxftest
support_dirs =
C:\Source\ezdxf.git\fonts\shapefiles\
"another font directory"
"and so on" ... and rebuild the font-manager cache. More about config files: https://ezdxf.mozman.at/docs/options.html#config-files Please post other default font folders if there some and I will add them to the default search locations for macOS. FYI: you can attach DXF files to a post in a zip-archive |
Beta Was this translation helpful? Give feedback.
-
@mozman thank you. I created a PR for an additional font dir on mac. #1004 |
Beta Was this translation helpful? Give feedback.
-
Good to know, the dxf was created on mac as well the dxf to image is also on mac |
Beta Was this translation helpful? Give feedback.
I added support for font-name synonyms.
The DXF file with macOS font-names on Windows:
I don't have a Mac and never will. Therefore this feature is only as good as users contribute to the font_synonyms.py file, which contains only the font-names of your sample file yet: