Font path
Dror
1/5/2015 10:43 AM
|
---|
Hi
After loading DWG I see that I have aroung 20 files in FileDependencies attribute ( all are shx or ttf files).
I need to grammatically resolve its locations so I do something like this:
foreach (FileDependency f in model.FileDependencies.Values)
{
f.FoundPath = resolveFontPath(f.FullFilename);
}
But after exporting the file to pdf or image fonts are wrong. Note: all fonts are in Hebrew.
BUT
when I'm putting all the fonts on the same directory of my exe everything works fine.
So I guess my question is how to set the font file location on runtime?
Dror
|
rammi
1/5/2015 12:23 PM
|
---|
Hi Dror,
TT fonts can only be accessed if they are installed in your Windows system during conversion.
SHX fonts are always looked for in the directory of the DWG/DXF file and in the path of the executable, or somewhere in a global SHX font lookup path collection. You can modify and access this collection via static methods and properties
C# Code: / C# Code: / |