プロジェクトの BaseSDK を 10.6 に変更した後、カスタム描画テキストが異なって見えることに気付きました (画像を見てください: 描画用の同じコード)。
10.5 BaseSDK 未満:
10.6 BaseSDK:
[(NSString *)myString drawInRect:myRect withAttributes:myAttributes] で描画しています。
myAttributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSColor myColor], NSForegroundColorAttributeName,
[NSFont systemFontOfSize:18], NSFontAttributeName,
paragraphStyle, NSParagraphStyleAttributeName,
shadow, NSShadowAttributeName, nil];
そのような違いの理由は何ですか、またはフォントの太さを減らす方法は何ですか? 私は厚さを減らすことを試みました
[NSFontManager convertWeight:NO ofFont:font]
しかし、見た目はあまり良くありません...
前もって感謝します。