kienerj / pycdxml

Tools to automatically convert and proccess cdx and cdxml files in python
GNU General Public License v3.0
35 stars 5 forks source link

Fix LabelFont to a named font instead of a fonttable index #2

Closed kienerj closed 2 years ago

kienerj commented 3 years ago

LabelFontis an index (integer) to the according font in the font table. So the actual font used will depend on the input documents font table. This should be improved so that a font name can be used and if not present it's added to the font table. Currently if style source is a cdxmlfile the LabelFont index is taken and applied to the input document. If the source has a different font at that index in the font table, then the output is unexpected.

kienerj commented 2 years ago

fixed by 7946d6fe903ea2804d4156ca9cb64603e517df64