title: coretext custom font vertical draw display not corret
body: <p>When I use coretext, I find that the fonts created with <code>systemfontofsize:</code> and <code>fontWithName: size:</code> have different effects in the vertical direction. I don't know if this is normal.Thanks for any help.</p>
  <p><code>systemfontofsize</code> image:</p>
  <p><a href="https://i.stack.imgur.com/lNuY9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lNuY9.jpg" alt="systemfontofsize" /></a></p>
  <p><code>fontWithName: size:</code> image:</p>
  <p><a href="https://i.stack.imgur.com/7VcfB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7VcfB.jpg" alt="fontWithName: size:" /></a></p>
  <p>label code here:</p>
  <pre><code>@interface TestUILabel: UIView
  
  @end
  
  @implementation TestUILabel
  
  - (void)drawRect:(CGRect)rect {
      CGContextRef context = UIGraphicsGetCurrentContext();
      CGContextSetTextMatrix(context, CGAffineTransformIdentity);
  //    UIFont *font = [UIFont systemFontOfSize:16];
      UIFont *font =  [UIFont fontWithName:@&quot;PingFangSC-Regular&quot; size:16];
      NSAttributedString *attributeStr = [[NSMutableAttributedString alloc] initWithString:@&quot;hello world&quot;
                                                                                attributes:@{NSFontAttributeName: font,
                                                                                             NSForegroundColorAttributeName: UIColor.blackColor,
                                                                                             NSVerticalGlyphFormAttributeName: @(YES)
                                                                                           }];
      
      CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)attributeStr);
      CFRange rangeAll = CFRangeMake(0,attributeStr.length);
      CFRange fitRange = CFRangeMake(0, 0);
      CGSize s = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, rangeAll, nil, rect.size, &amp;fitRange);
      CGContextTranslateCTM(context, 0, rect.size.height);
      CGContextScaleCTM(context, 1, -1);
      CGRect frameRect =CGRectMake((rect.size.width-s.height)/2.0, (rect.size.height-s.width)/2.0, s.height, s.width);
      CGPathRef framePath = CGPathCreateWithRect(frameRect, nil);
      NSDictionary *dic = @{(id)kCTFrameProgressionAttributeName:@(kCTFrameProgressionLeftToRight)};
      CTFrameRef frame = CTFramesetterCreateFrame(framesetter, rangeAll, framePath, (__bridge CFDictionaryRef)dic);
      CTFrameDraw(frame, context);
  }
  
  @end
  </code></pre>