title: iOS: Draw text on UIView with LineWidth 1px
body: <p>I have a scenario where I will have to draw a text on a UIView. For which my code is</p>
  
  <pre><code>- (void)drawRect:(CGRect)iRect {
      [super drawRect:iRect];
      CGContextRef aContext = UIGraphicsGetCurrentContext();
      CGContextSetFillColorWithColor(aContext, [[UIColor greenColor] CGColor]);
      [@"s" drawInRect:CGRectMake(0, 0, iRect.size.width, iRect.size.height) withFont:[UIFont systemFontOfSize:500] lineBreakMode:NSLineBreakByCharWrapping alignment:NSTextAlignmentCenter];
    }
  </code></pre>
  
  <p>With this code I can achieve: </p>
  
  <p><img src="https://i.stack.imgur.com/drMjf.png" alt="enter image description here"></p>
  
  <p>However, since I'm using a FontSize of 500, the text lineWidth is big.
  I would like to reduce the lineWidth to 1px.</p>
  
  <p>Please advice on how to achieve this. </p>
  
  <ul>
  <li>Is there another method apart from the conventional <code>drawInRect</code>.</li>
  <li>Will CoreText help me get the solution</li>
  </ul>
  
  <p>Thanks.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Using UIBezierPath for the Glyph, I was able to get the Path of the Character. But the path that is achieved is through the border of the character. hence, I get the text as:</p>
  
  <p><img src="https://i.stack.imgur.com/QjOeO.png" alt="enter image description here"></p>
  
  <p><strong><em>Can this be made a single line ?</em></strong></p>