{"id":27486,"date":"2019-12-03T16:55:53","date_gmt":"2019-12-03T21:55:53","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=27486"},"modified":"2019-12-03T16:55:53","modified_gmt":"2019-12-03T21:55:53","slug":"ordering-the-typefaces-in-a-font","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/12\/03\/ordering-the-typefaces-in-a-font\/","title":{"rendered":"Ordering the Typefaces in a Font"},"content":{"rendered":"<p><a href=\"https:\/\/shapeof.com\/archives\/2019\/12\/what_order_to_list_typefaces_in_a_font.html\">Gus Mueller<\/a>:<\/p>\n<blockquote cite=\"https:\/\/shapeof.com\/archives\/2019\/12\/what_order_to_list_typefaces_in_a_font.html\"><p>The docs for <code>-[NSFontManager availableMembersOfFontFamily:]<\/code> say:<\/p><blockquote><p>&ldquo;The members of the family are arranged in the font panel order (narrowest to widest, lightest to boldest, plain to italic)&rdquo;<\/p><\/blockquote><p>Unfortunately, it looks like this is broken on MacOS 10.15.1. Running Acorn on 10.14 produces the order as described (and as seen below with Helvetica Neue).<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/jjgod\/status\/1201678292228534272\">Jiang Jiang<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/jjgod\/status\/1201678292228534272\">\n<p>As a workaround, calling <code>CTFontDescriptorCreateMatchingFontDescriptors()<\/code> with a font descriptor created from <code>@{ kCTFontFamilyNameAttribute: familyName }<\/code> should give you descriptors in the right order. Then you can get localized style names out of the descriptors.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Gus Mueller: The docs for -[NSFontManager availableMembersOfFontFamily:] say:&ldquo;The members of the family are arranged in the font panel order (narrowest to widest, lightest to boldest, plain to italic)&rdquo;Unfortunately, it looks like this is broken on MacOS 10.15.1. Running Acorn on 10.14 produces the order as described (and as seen below with Helvetica Neue). Jiang Jiang: [&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-12-03T21:55:59Z","apple_news_api_id":"e57ffe6d-38e4-4a6e-bd83-4aeb875199d7","apple_news_api_modified_at":"2019-12-03T21:55:59Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/A5X_-bTjkSm69g0rrh1GZ1w","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":[76,131,69,133,30,1666,71],"class_list":["post-27486","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-acorn","tag-bug","tag-cocoa","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\/27486","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=27486"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27486\/revisions"}],"predecessor-version":[{"id":27488,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/27486\/revisions\/27488"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=27486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=27486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=27486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}