Open touwtrekker opened 5 years ago
Thank you for the changes. That is a good idea to use System.Drawing. Before I can commit the change we need to do two things
1) MacOS I tested with MacOS and there is a rendering error, the bottom part of the text is missing.
As run TestCard on Mac, iOS and Android devices so this problem will need to be fixed before I can commit the change.
2) iOS and Android We need to test that there is correct functionality in System.Drawing on iOS and Android in Mono.
But it is a great start and a good idea to be able to render more text
I had a quick look at the code. The problem appeared to be that matrix(c,s) has s=16 (so required font size must be 16 pixels heigh)
But on the Mac SizeF size = gr.MeasureString()(c.ToString(), new Font("verdana", s));
returns a height of 25.
Thank you for sharing this ... i used with some changes in the test card so i can use different font style and characters TestCard.zip