DwgList 2021 DLL TechDocs

Font References

Information on Fonts

DwgList DLL can easily provide information about Fonts used in the DWG file. The DWG file must be opened using the dwglist_ProcessFile command(see Initialization). Processing Fonts is very simple. You call dwglist_getNumberOfFonts to get the number of Fonts in the file, then you loop through each Font to get the information about it. Currently you can only get the Font file name and path using the dwglist_getFontName and dwglist_getFontPath command respectively, but if you need more information like path, status, etc., let us know and we can easily add it.

int numFonts = dwglist_getNumberOfFonts();
if (numFonts > 0)
	cout << endl << "      Fonts" << endl << "===================" << endl;
	for (int i = 0; i < numFonts; i++)
		string fontName = dwglist_getFontName(i);
		string fontPath = dwglist_getFontPath(i);
		cout << fontName << "    " << fontPath << endl;
	cout << endl << "No Fonts in DWG file" << endl;

Last updated on 16 Feb 2021
Published on 15 Feb 2021