Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOS13とフォントのお話
Search
h.crane
November 08, 2019
Technology
6
1.7k
iOS13とフォントのお話
NCMB Study #9「iOS13」での登壇内容になります
https://ncmb.connpass.com/event/149814/
h.crane
November 08, 2019
Tweet
Share
More Decks by h.crane
See All by h.crane
Getting started with controlling LEGO using Swift
hcrane
1
1.3k
Swift 5.9 と C++ の互換性
hcrane
1
850
Live on iOSDC2023
hcrane
4
1.4k
自販機で1000円を使い切りたいんじゃ!
hcrane
0
170
Vision.framework - 商品画像からのテキスト検出と並列化実装への試み
hcrane
1
820
DevRel/Japan 2023 - 1つの事業部だけで行う DevRel とは
hcrane
0
1.1k
R2-D2をiOSで動かす
hcrane
2
4.1k
iOSDC2022 - SwiftUI in UIKit で開発する世界
hcrane
6
7.5k
iOSDC2022 - iPadOSDC Japan 2022
hcrane
2
4.4k
Other Decks in Technology
See All in Technology
S3アクセス制御の設計ポイント
tommy0124
3
200
allow_retry と Arel.sql / allow_retry and Arel.sql
euglena1215
1
170
COVESA VSSによる車両データモデルの標準化とAWS IoT FleetWiseの活用
osawa
1
280
実践!カスタムインストラクション&スラッシュコマンド
puku0x
0
410
新アイテムをどう使っていくか?みんなであーだこーだ言ってみよう / 20250911-rpi-jam-tokyo
akkiesoft
0
270
共有と分離 - Compose Multiplatform "本番導入" の設計指針
error96num
2
540
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
460
20250910_障害注入から効率的復旧へ_カオスエンジニアリング_生成AIで考えるAWS障害対応.pdf
sh_fk2
3
260
roppongirb_20250911
igaiga
1
230
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
9
73k
Automating Web Accessibility Testing with AI Agents
maminami373
0
1.3k
EncryptedSharedPreferences が deprecated になっちゃった!どうしよう! / Oh no! EncryptedSharedPreferences has been deprecated! What should I do?
yanzm
0
360
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.6k
Building Adaptive Systems
keathley
43
2.7k
Balancing Empowerment & Direction
lara
3
620
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
112
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
Transcript
iOS13とフォントのお話 HiromuTsuruta
About me 〈Company〉 - every, inc. / DELISH KITCHEN 〈Role〉
- iOS Developer 〈Account〉 - Twitter: @hcrane14 - Qiita: H_Crane
事前アンケートをとりました
None
https://speakerdeck.com/hcrane/combinedeapikuraiantowozuo-ru
iOS13とフォントのお話
Font Management and Text Scaling 引用: https://developer.apple.com/videos/play/wwdc2019/227/
フォント周りのAPIこんなに増えてる!!
iOS 13 / iPadOS 13 で フォントが管理できるようになった!
今までと何が違うの?
比較 iOS12まで iOS13から CTFontDescriptorMatchFontDescriptorsWithProgressHandler CTFontManagerRegisterGraphicsFont CTFontManagerRegisterFontsWithAssetNames ダウンロード ダウンロード 共有不可 共有可
- フォントを設定から確認する方法がない - 自動的にシステムからフォントが削除されることがある - アプリごとにフォント利用のAPIを呼ぶ必要がある - フォントを設定から管理できる - フォントの保持期間を設定できる - アプリごとにフォント利用のAPIを呼ぶ必要がない
- フォントを確認できる - フォントを削除できる 設定画面
引用: https://japanese.engadget.com/2019/11/02/ios-13-ipados-adobe-1300/ 「iOS 13/iPadOSで無料のAdobeフォント1300種類が利用可能に」
アプリでフォントを使うには?
方法① サクッと使いたい!
None
大人しくソースコード読むか、、、
None
DEMO UIFontPickerViewController 引用: https://github.com/Zedd0202/UIFontPickerViewController_Example
ViewController UIFontPickerViewController Delegate フォントを呼び出す フォントを選ぶ フォントが返ってくる
UIFontPickerViewControllerは Appleが用意したフォントの切り替えしかできない
方法② ダウンロードしたものを使いたい!
インストール済みのフォント一覧を取得 フォント一覧からフォント名を取得 WWDC 2019から
問題が1つ、、、
実はまだ、、、
ダウンロードしたフォントを、、、
他のアプリでは使えない
ダウンロードしたアプリ内でしか使えない!!!
ただし、Appleが出しているアプリでは カスタムフォント(ダウンロードしたもの)に対応している
朗報!
引用:https://lab.hendigi.com/ipad-photoshop-cc/ Apple以外のアプリで カスタムフォントに対応したアプリが出た! Adobe Photoshop for iPad
何かしらシステムのフォントに アクセスする方法があるっぽい? (現状正規のAPIではない)
そのうちAPIが解放されるのでは、との噂?
fin