{"id":21043,"date":"2018-04-02T13:15:32","date_gmt":"2018-04-02T17:15:32","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=21043"},"modified":"2021-09-08T11:42:20","modified_gmt":"2021-09-08T15:42:20","slug":"system-fonts-in-css","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2018\/04\/02\/system-fonts-in-css\/","title":{"rendered":"System Fonts in CSS"},"content":{"rendered":"<p><a href=\"https:\/\/furbo.org\/2018\/03\/28\/system-fonts-in-css\/\">Craig Hockenberry<\/a>:<\/p>\n<blockquote cite=\"https:\/\/furbo.org\/2018\/03\/28\/system-fonts-in-css\/\">\n<p>Apple agreed and <a href=\"https:\/\/lists.w3.org\/Archives\/Public\/www-style\/2015Jul\/0169.html\">made a proposal<\/a> on the CSS mailing list. Over the next few months that proposal evolved from being called <a href=\"https:\/\/lists.w3.org\/Archives\/Public\/www-style\/2015Aug\/0051.html\">&ldquo;system&rdquo;<\/a> to <a href=\"https:\/\/www.w3.org\/blog\/CSS\/2015\/11\/19\/minutes-telecon-267\/\">&ldquo;system-ui&rdquo;<\/a>. (Once upon a time, Windows used a font called <a href=\"https:\/\/en.wikipedia.org\/wiki\/System_(typeface)\">&ldquo;System&rdquo;<\/a> that could have caused a conflict.)<\/p>\n<p>At the end of the day <a href=\"https:\/\/drafts.csswg.org\/css-fonts-4\/#system-ui-def\">the CSS Font Module was updated<\/a> and there was an official way to render text just like the operating system.<\/p>\n<p>[&#8230;]<\/p>\n<p>Both <a href=\"https:\/\/www.chromestatus.com\/feature\/5640395337760768\">Chrome<\/a> and <a href=\"https:\/\/bugs.webkit.org\/show_bug.cgi?id=151493\">Safari<\/a> support it fully on a wide variety of platforms. Only Mozilla and Windows <a href=\"https:\/\/caniuse.com\/#search=system-ui\">are lagging behind<\/a>.<\/p>\n\n<\/blockquote>\n<p>Previously: <a href=\"https:\/\/mjtsai.com\/blog\/2015\/07\/11\/css-font-family-for-san-francisco\/\">CSS Font Family for San Francisco<\/a>.<\/p>\n\n<p id=\"system-fonts-in-css-update-2021-09-08\">Update (2021-09-08): <a href=\"https:\/\/stackoverflow.com\/questions\/59578361\/using-apple-system-for-monospace-and-serif\/64133415#64133415\">ayanami<\/a> (via <a href=\"https:\/\/twitter.com\/mb\/status\/1434892546883432452\">Matthew Bischoff<\/a>):<\/p>\n<blockquote cite=\"https:\/\/stackoverflow.com\/questions\/59578361\/using-apple-system-for-monospace-and-serif\/64133415#64133415\">\n<p>Starting from Safari 13.1, they added font family names for system fonts:<\/p>\n<ul>\n<li><code>ui-monospace<\/code> &mdash; SF Mono<\/li>\n<li><code>ui-serif<\/code> &mdash; New York<\/li>\n<li><code>ui-sans-serif<\/code> &mdash; San Francisco (same as <code>system-ui<\/code> and <code>-apple-system<\/code>)<\/li>\n<\/ul>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Craig Hockenberry: Apple agreed and made a proposal on the CSS mailing list. Over the next few months that proposal evolved from being called &ldquo;system&rdquo; to &ldquo;system-ui&rdquo;. (Once upon a time, Windows used a font called &ldquo;System&rdquo; that could have caused a conflict.) At the end of the day the CSS Font Module was updated [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2018-04-12T01:13:23Z","apple_news_api_id":"435ac89a-e367-4cb7-b251-72ea44d9f5b9","apple_news_api_modified_at":"2021-09-08T15:42:24Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AQ1rImuNnTLeyUXLqRNn1uQ","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":[2],"tags":[338,133,31,1472,30,1529,103,96,328],"class_list":["post-21043","post","type-post","status-publish","format-standard","hentry","category-technology","tag-css","tag-font","tag-ios","tag-ios-11","tag-mac","tag-macos-10-13","tag-safari","tag-web","tag-webkit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/21043","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=21043"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/21043\/revisions"}],"predecessor-version":[{"id":33566,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/21043\/revisions\/33566"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=21043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=21043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=21043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}