title: How to use CGAffineTransformMakeRotation?
body: <p><img src="https://i.stack.imgur.com/cwrQr.png" alt="enter image description here"></p>
  
  <p>I want to draw text use Quartz 2D. The "menu" direction is wrong. I want "Menu" still readable and have 45 degree with X-axis. Below is my code:</p>
  
  <pre><code>CGContextSelectFont(context, "Arial", 12, kCGEncodingMacRoman);
  CGContextSetTextDrawingMode(context, kCGTextFill);
  
  CGContextSetRGBFillColor(context, 0, 0, 0, 1); // 6 
  CGContextSetRGBStrokeColor(context, 0, 0, 0, 1);
  
  CGContextSetTextMatrix(context, CGAffineTransformMake(1.0,0.0, 0.0, -1.0, 0.0, 0.0));   
  CGContextSetTextMatrix(context, CGAffineTransformMakeRotation(45)); 
  CGContextShowTextAtPoint(context,10, 10, "Menu", 4);
  </code></pre>