Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more and other characters #48

Open
touwtrekker opened this issue Nov 22, 2018 · 2 comments
Open

more and other characters #48

touwtrekker opened this issue Nov 22, 2018 · 2 comments

Comments

@touwtrekker
Copy link

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

@RogerHardiman
Copy link
Collaborator

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.

image

As run TestCard on Mac, iOS and Android devices so this problem will need to be fixed before I can commit the change.

  1. 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

@RogerHardiman
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants