osx - CoreGraphics - Special characters not drawn correctly -
I am drawing a picture using core graphics and displaying correctly "â € ¢ can not sign in. .
The dollar sign works fine, though. I tried to use it different fonts but there is only one problem, my guess is that there is some kind of encoding problem, but I'm still not working it correctly.
Here is my code that draws:
context. Selection Font (Font Family Name, Font Page Size, CGTextEncoding.MacRoman); Context.SetFillColorWithColor (color.CGColor); Context.SetTextDrawingMode (CGTextDrawingMode.Fill); Context.SetShouldAntialias (anti-aliases); Context.ShowTextAtPoint (position .x, position.y, text); I can point in the right direction, whatever is appreciated.
The "euro" symbol is slightly smaller than the other characters, but is also defined in matron , So I could not display it correctly with CoreGraphics ShowTextAtPoint (I suspect an encoding problem).
Although this works fine, if you use UIKit instead of choreographics, see Q & A for sample code:
Comments
Post a Comment