Many years ago I wrote a PCBCAD software package.
The printer output was done using usual draw line, draw ellipse etc commands.
I found for some reason the text was a bit distorted but had never been able to find out why.
Yesterday someone asked me to add sheets (A1 - A6) on the schematic.
So I added this in and again wasnt terribly happy with the print output.
I found the output was being reduced in width by a factor of 10 somewhere in Microsoft kernel.
So I dug into the internet to see if I had missed something and probably spent a day on it.
I eventually spotted a command e.Graphics.ScaleTransform(100f / 1000, 100f / 1000);
This scales the graphic resolution of 1000 pixels per inch into 100 pixels per inch but doesnt lose detail.
This works better by a factor of 10.
So the problem has been there for 10+ years. Strangely no one who bought the software complained about the text.
The printer output was done using usual draw line, draw ellipse etc commands.
I found for some reason the text was a bit distorted but had never been able to find out why.
Yesterday someone asked me to add sheets (A1 - A6) on the schematic.
So I added this in and again wasnt terribly happy with the print output.
I found the output was being reduced in width by a factor of 10 somewhere in Microsoft kernel.
So I dug into the internet to see if I had missed something and probably spent a day on it.
I eventually spotted a command e.Graphics.ScaleTransform(100f / 1000, 100f / 1000);
This scales the graphic resolution of 1000 pixels per inch into 100 pixels per inch but doesnt lose detail.
This works better by a factor of 10.
So the problem has been there for 10+ years. Strangely no one who bought the software complained about the text.
Yes it was quite an easy fix once I found the graphics command to rescale.
One line of code added.
One line of code added.