{"id":27000,"date":"2019-10-21T15:55:07","date_gmt":"2019-10-21T19:55:07","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=27000"},"modified":"2019-10-21T15:55:07","modified_gmt":"2019-10-21T19:55:07","slug":"font-substitution-and-missing-text","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/10\/21\/font-substitution-and-missing-text\/","title":{"rendered":"Font Substitution and Missing Text"},"content":{"rendered":"<p><a href=\"https:\/\/michelf.ca\/blog\/2019\/font-substitution-missing-text\/\">Michel Fortin<\/a>:<\/p>\n<blockquote cite=\"https:\/\/michelf.ca\/blog\/2019\/font-substitution-missing-text\/\">\n<p>I recently found a bug in my work-in-progress-next-major-version of Counterparts Lite where text in certain languages was not showing up in the text editor.<\/p>\n<p>[&#8230;]<\/p>\n<p>It is important to know however that there&rsquo;s a crucial difference between changing the font in <code>willProcessEdting<\/code> and in <code>didProcessEditing<\/code>:<\/p>\n<ul>\n<li><p><code>willProcessEditing<\/code> is called before font substitution. Any font you set while in <code>willProcessEditing<\/code> will get substituted with an appropriate font for characters not available in the font you choose.<\/p><\/li>\n<li><p><code>didProcessEditing<\/code> is called after font substitution. If you change the font while in <code>didProcessEditing<\/code> there will be no further font substitution, and thus you should make sure the font you set can display all the characters.<\/p><\/li>\n<\/ul>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Michel Fortin: I recently found a bug in my work-in-progress-next-major-version of Counterparts Lite where text in certain languages was not showing up in the text editor. [&#8230;] It is important to know however that there&rsquo;s a crucial difference between changing the font in willProcessEdting and in didProcessEditing: willProcessEditing is called before font substitution. Any font [&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":"2019-10-21T19:55:10Z","apple_news_api_id":"6f87b1c6-9811-4f44-a5df-6949b3ae06e1","apple_news_api_modified_at":"2019-10-21T19:55:11Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/Ab4exxpgRT0Sl32lJs64G4Q","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":[69,1548,133,30,1666,71],"class_list":["post-27000","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-counterparts-lite","tag-font","tag-mac","tag-macos-10-15","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27000","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=27000"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27000\/revisions"}],"predecessor-version":[{"id":27001,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27000\/revisions\/27001"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=27000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=27000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=27000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}