{"id":32125,"date":"2021-04-14T15:32:11","date_gmt":"2021-04-14T19:32:11","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=32125"},"modified":"2021-04-14T15:32:11","modified_gmt":"2021-04-14T19:32:11","slug":"dynamic-type-and-in-app-font-scaling","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/04\/14\/dynamic-type-and-in-app-font-scaling\/","title":{"rendered":"Dynamic Type and In-App Font Scaling"},"content":{"rendered":"<p><a href=\"https:\/\/lickability.com\/blog\/dynamic-type-and-in-app-font-scaling\/\">Daisy Ramos<\/a>:<\/p>\n<blockquote cite=\"https:\/\/lickability.com\/blog\/dynamic-type-and-in-app-font-scaling\/\"><p>This is all that&rsquo;s needed to scale custom fonts with Dynamic Type. Sometimes in content-driven apps there is a need for web technologies for complex layouts \/ styles. Let&rsquo;s see if we can support Dynamic Type and web-driven content via <a href=\"https:\/\/developer.apple.com\/documentation\/webkit\/wkwebview\"><code>WKWebView<\/code><\/a>.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/featherless\/status\/1382146929736450048\">Jeff Verkoeyen<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/featherless\/status\/1382146929736450048\"><p>For iOS 12 and 13 there&rsquo;s a scattering of iOS bugs and unexpected behavior that result in a windy road toward a swiss cheese of dialed in fonts, but it kind of works for common cases. You can see the different considerations in [<a href=\"https:\/\/gist.github.com\/jverkoey\/e5965b664ab71b1e4eb1a0d1cbbb76ec\">this gist<\/a>].\n<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Daisy Ramos: This is all that&rsquo;s needed to scale custom fonts with Dynamic Type. Sometimes in content-driven apps there is a need for web technologies for complex layouts \/ styles. Let&rsquo;s see if we can support Dynamic Type and web-driven content via WKWebView. Jeff Verkoeyen: For iOS 12 and 13 there&rsquo;s a scattering of iOS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2021-04-14T19:32:16Z","apple_news_api_id":"ac2f89e9-b56a-4759-9bd4-d827a6ff7fd7","apple_news_api_modified_at":"2021-04-14T19:32:16Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/ArC-J6bVqR1mb1Ngnpv9_1w","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[133,31,1610,1667,1837,71,134,1926],"class_list":["post-32125","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-font","tag-ios","tag-ios-12","tag-ios-13","tag-ios-14","tag-programming","tag-typography","tag-wkwebview"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=32125"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32125\/revisions"}],"predecessor-version":[{"id":32126,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32125\/revisions\/32126"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=32125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=32125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=32125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}