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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
h.crane
November 08, 2019
Technology
1.8k
6
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOS13とフォントのお話
NCMB Study #9「iOS13」での登壇内容になります
https://ncmb.connpass.com/event/149814/
h.crane
November 08, 2019
More Decks by h.crane
See All by h.crane
Personal Voice on iOS26
hcrane
0
210
iOSDJ2025 - Stream Deck Plugin using Swift
hcrane
0
2.1k
Getting started with controlling LEGO using Swift
hcrane
2
1.5k
Swift 5.9 と C++ の互換性
hcrane
1
950
Live on iOSDC2023
hcrane
4
1.6k
自販機で1000円を使い切りたいんじゃ!
hcrane
0
230
Vision.framework - 商品画像からのテキスト検出と並列化実装への試み
hcrane
1
930
DevRel/Japan 2023 - 1つの事業部だけで行う DevRel とは
hcrane
0
1.2k
R2-D2をiOSで動かす
hcrane
2
5.4k
Other Decks in Technology
See All in Technology
AI時代における最適なQA組織の作り方
ymty
3
430
Baseline対応のDOMの型定義を作った
uhyo
3
710
認証認可だけじゃない! ID管理の構成要素と ライフサイクルを意識しよう
ritou
1
520
DMM.com 購入改善推進チーム におけるCodeRabbitを用いた レビューフロー改善の一例
ysknsid25
1
470
美しいコードを書くためにF#を学んでみた話
yud0uhu
1
270
型は壁、Rustでもバグを直すな、表現できなくせよ
nwiizo
12
1.7k
SRE歴2ヶ月でも開発6年の知見を活かして、チームで止まっていた環境改善を前に進めた話
a_ono
1
210
最近評価が難しくなった
maroon8021
0
250
AIと共生する開発者プラットフォーム:バクラクのモノレポ×マイクロサービス基盤
sakajunquality
1
1.7k
Amazon EVS で VCF 9.0 / 9.1 のサポート開始まとめ
mtoyoda
0
270
ZOZOTOWNの進化と信頼性を両立する負荷試験
zozotech
PRO
0
130
AWS Summit の片隅で、体育座りしながらコミュニティがにぎわう理由を考えた
k_adachi_01
2
350
Featured
See All Featured
The Language of Interfaces
destraynor
162
27k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
260
The SEO Collaboration Effect
kristinabergwall1
1
500
For a Future-Friendly Web
brad_frost
183
10k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
330
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
170
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
300
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Building AI with AI
inesmontani
PRO
1
1.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
A better future with KSS
kneath
240
18k
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