macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

UIFontクラス

INDEX>UIKit>

フォントのクラスです。

apple

継承 NSObject
準拠 NSCopying
NSObject (NSObject)
フレームワーク /System/Library/Frameworks/UIKit.framework
使用可能 iOS2.0
定義 UIFont.h
UIInterface.h

概要

参照

タスク

任意のフォントを作成

+ fontWithName:size
– fontWithSize

任意のフォント名を得る

+ familyNames
+ fontNamesForFamilyName

フォント名で属性を得る

familyName property
fontName property

フォントメトリクスを得る

pointSize property
ascender property
descender property
leading property
capHeight property
xHeight property