Uninstalled fonts

Feb 16, 2016 at 8:42 AM
When a DXF document defines a text style, it specifies a font file to use (e.g. arvo-regular.ttf).
Although the DXF document can be correct, using it in a computer that hasn't the font installed produces a System.IO.FileNotFoundException when the function TextStyle(...) tries to add the font file to a collection.
Is there any way to use a standard font instead of loss the possibility to load the DXF document?
Thanks in advance!
internal TextStyle(string name, string font, bool checkName)
    if (Path.GetExtension(font).Equals(".ttf", StringComparison.OrdinalIgnoreCase))
        PrivateFontCollection privateFontCollection = new PrivateFontCollection();
Feb 18, 2016 at 5:10 PM
Edited Feb 18, 2016 at 7:34 PM
I am aware of that problem, that piece of code is completely messed up. Comment that whole if block and compile again. This is also related with this other topic.

Feb 19, 2016 at 11:50 AM
Thank you, Daniel
I appreciate your help with this question, and your dedication to a very good library.
I think that I will comment the affected code, or surround it with a try/catch block.
I'm sure that in future updates you will fix this little problem.