Hi all,
Working on my first app and Ive noticed that when I draw text containing an
apostrophe it draws that character in some strange encoding, like '.Ao'. Im
assuming Im doing something wrong when selecting the font on the context but
there are only 2 options, MacRoman and FontSpecific.
Any
Can you post some code? either inline, in a git gist or on pastebin?
On Mon, Sep 5, 2011 at 17:19, JohnnyNoMates m...@johnhair.com wrote:
Hi all,
Working on my first app and Ive noticed that when I draw text containing an
apostrophe it draws that character in some strange encoding, like '.Ao'.
Sure. I have a UIView descendant and Im overriding the Draw method. I get the
context and set the font;
CGContext ctx = UIGraphics.GetCurrentContext ();
ctx.TranslateCTM(0.0F, Bounds.Height);
Wow, turns out its not every EKEvent title that contains an apostrophe
appears this way, just some.
Gets stranger and stranger...
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Drawing-text-containing-an-apostrophe-tp3791636p3792101.html
Sent from the MonoTouch mailing
Hello,
I think you're simply running into encoding issues. Some quotes
characters are not 'basic' (the old 7bits ;-) ASCII and might not be
defined in MacRoman.
See
http://stackoverflow.com/questions/7280002/coregraphics-special-characters-not-drawn-correctly
about how to use UIKit instead of
Thank you, that works I can see the text is now correctly being drawn with
the apostrophe.
Now though the text is being painted inverted. I have already transformed
with ScaleCTM(1f, -1f) which is why my DrawTextAtPoint calls were correct.
Now with UIKit its wrong again. Its a little confusing