Skip to content

How to render different fonts with draw_cad.py? #1002

Answered by mozman
ru4ert asked this question in Q&A
Discussion options

You must be logged in to vote

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:

FONT_SYNONYMS = {
    "ariblk.ttf": "Arial Black.ttf",
    "comic.ttf": "Comic Sans MS.ttf",
    "arialuni.ttf": "Arial Unicode.ttf",
    "times.ttf": "Times New Roman.ttf",
    "trebuc.ttf": "Trebuchet MS.ttf",   
}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mozman
Comment options

Answer selected by ru4ert
@ru4ert
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants