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.6k
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
0
530
Swift 5.9 と C++ の互換性
hcrane
1
320
Live on iOSDC2023
hcrane
4
1k
自販機で1000円を使い切りたいんじゃ!
hcrane
0
79
Vision.framework - 商品画像からのテキスト検出と並列化実装への試み
hcrane
1
540
DevRel/Japan 2023 - 1つの事業部だけで行う DevRel とは
hcrane
0
790
R2-D2をiOSで動かす
hcrane
2
1.4k
iOSDC2022 - SwiftUI in UIKit で開発する世界
hcrane
6
5.8k
iOSDC2022 - iPadOSDC Japan 2022
hcrane
2
3.3k
Other Decks in Technology
See All in Technology
今日からできる!簡単 .NET 高速化 Tips -2024 edition-
xin9le
6
2.6k
Janus
bkuhlmann
1
490
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
350
チームでロジカルシンキングに改めて向き合っている話 〜学習環境と実践⽅法〜
sansantech
PRO
3
3k
リテール金融(キャッシュレス・ネット銀行・ネット証券)の競争環境と経済圏
8maki
0
1.3k
推しは推せるときに推せ! プロダクトにフィードバックしていこう
nakasho
0
410
サーバー間 GraphQL と webmock-graphql の話 / server-to-server graphql and webmock-graphql
qsona
2
190
ChatworkのSRE部って実は 半分くらいPlatform Engineering部かもしれない
saramune
0
160
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
120
Reducing Cross-Zone Egress at Spotify with Custom gRPC Load Balancing Recap
koh_naga
0
210
【NW X Security JAWS#3】L3-4:AWS環境のIPv6移行に向けて知っておきたいこと
shotashiratori
1
460
Grafana x PagerDuty Better Together
jacopen
1
170
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
19
1.7k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
Product Roadmaps are Hard
iamctodd
44
9.7k
Fontdeck: Realign not Redesign
paulrobertlloyd
76
4.9k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
The Pragmatic Product Professional
lauravandoore
25
5.8k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
79
43k
How GitHub (no longer) Works
holman
304
140k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
Raft: Consensus for Rubyists
vanstee
132
6.3k
Docker and Python
trallard
34
2.7k
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