CGFloat widthValue = -1.0;
CFNumberRef strokeWidth = CFNumberCreate(NULL,kCFNumberFloatType,&widthValue);
//Setup the attributes dictionary with font and color
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
(id)font, (id)kCTFontAttributeName,
_fontColor.CGColor, kCTForegroundColorAttributeName,
strokeWidth,kCTStrokeWidthAttributeName,
nil];
我用上面的代码设置了 kCTStrokeWidthAttributeName,但它仍然是粗体。
我不希望字符串变粗。
我怎么能控制它????