macOS/iOS API解説

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

目次

NSFontManagerクラス

INDEX>AppKit> NSFontManager

**

継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/AppKit.framework
使用可能 OS X 10.0以降
定義
インポート文 @import AppKit;

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSFontManager_Class/index.html#//apple_ref/doc/uid/TP40004043

概要

メソッドとプロパティ

Getting the Shared Font Manager

+ sharedFontManager

Changing the Default Font Conversion Classes

+ setFontManagerFactory:
+ setFontPanelFactory:

Getting Available Fonts

- availableFonts
- availableFontFamilies
- availableFontNamesWithTraits:
- availableMembersOfFontFamily:

Setting and Examining the Selected Font

- setSelectedFont:isMultiple:
- selectedFont
- isMultiple
Available in OS X v10.0 through OS X v10.9
- sendAction
- localizedNameForFamily:face:

Sending Action Methods

- addFontTrait:
- removeFontTrait:
- modifyFont:
- modifyFontViaPanel:
- orderFrontStylesPanel:
- orderFrontFontPanel:

Converting Fonts Automatically

- convertFont:
changeFont:

Converting Fonts Manually

- convertFont:toFace:
- convertFont:toFamily:
- convertFont:toHaveTrait:
- convertFont:toNotHaveTrait:
- convertFont:toSize:
- convertWeight:ofFont:
- currentFontAction
- convertFontTraits:

Getting a Particular Font

- fontWithFamily:traits:weight:size:

Examining Fonts

- traitsOfFont:
- fontNamed:hasTraits:
- weightOfFont:

Managing the Font Panel and Font Menu

- enabled
- isEnabled
Available in OS X v10.0 through OS X v10.9
fontManager:willIncludeFont:
(OS X v10.11)
- fontPanel:
- setFontMenu:
- fontMenu:

Setting the Delegate

- delegate
(OS X v10.11)
- delegate
(OS X v10.11)

Accessing the Action Method

- action
- action
- target
- target

Setting Attributes

- setSelectedAttributes:isMultiple:
- convertAttributes:

Working with Font Descriptors

- availableFontNamesMatchingFontDescriptor:
(OS X v10.11)
- collectionNames
(OS X v10.11)
- fontDescriptorsInCollection:
(OS X v10.11)
- addCollection:options:
(OS X v10.11)
- removeCollection:
(OS X v10.11)
- addFontDescriptors:toCollection:
(OS X v10.11)
- removeFontDescriptor:fromCollection:
(OS X v10.11)

Data Types

NSFontTraitMask
NSFontAction

Constants

Font Collection Mask
Font traits



定数

参照

更新時バージョン

OS X 10.11