Unicode Character Not Showing

后端 未结 4 1768
长发绾君心
长发绾君心 2020-12-17 00:59

I want to display the \"infinity\" symbol using

CGContextSelectFont(context, \"HelveticaNeue\", textSize, kCGEncodingMacRoman);    
CGContextShowTextAtPoint         


        
4条回答
  •  不思量自难忘°
    2020-12-17 01:20

    Here's the MonoTouch answer:

    UIGraphics.PushContext (mBmpContext);
    mBmpContext.SetRGBFillColor(1f,1f,1f,1f);
    var font = UIFont.FromName ("Arial", 30);
    using (var nsstr = new NSString ("äöü ÜÖÄ")){
       nsstr.DrawString (new PointF (10, 400), font);
    }
    UIGraphics.PopContext ()
    

提交回复
热议问题