title: Drawing rotated text on iOS creates jumping characters
body: <p>I am trying to draw slightly rotated text with Core Graphics on the iOS platform. Text renders fine when not rotating but the rendering system tries to lock onto pixels for rotated text.</p>
  
  <p>For example: If you rotate a Core Graphics context by some small amount (like 2 degrees) and then draw text the individual characters will appear to jump up and down as Core Graphics locks the characters to the pixels (font hinting). I know that the text may become blurry if it would not lock onto the pixel grid but that's acceptable. Jumping characters are not. So how can I disable vertical font hinting? Hinting horizontal would be ok, but turning it all off is ok too.</p>
  
  <hr>
  
  <p><strong>Code for custom UIView:</strong></p>
  
  <pre><code>- (void)drawRect:(CGRect)rect {
      CGContextRef context = UIGraphicsGetCurrentContext();
      [self.backgroundColor setFill];
      CGContextFillRect(context, rect);
      CGContextSaveGState(context);
      // rotate context
      CGContextTranslateCTM(context, self.bounds.size.width / 2.0, self.bounds.size.width / 2.0);
      CGContextRotateCTM(context, 2.0 * M_PI / 180.0);
      CGContextTranslateCTM(context, -self.bounds.size.width / 2.0, -self.bounds.size.width / 2.0);
  
      [[UIColor blackColor] setFill];
      [self.title drawInRect:[self bounds] withFont:[UIFont systemFontOfSize:15.0]];
      CGContextRestoreGState(context);
  }
  </code></pre>
  
  <hr>
  
  <p><strong>Result (not exactly of this code but similar, red lines inserted to guide to the "error"):</strong></p>
  
  <p><img src="https://i.stack.imgur.com/yE1Sm.png" alt="Image of the jumping characters"></p>