From 1e1829a6d9e29ff41004f090d5df357c3457f7f3 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 18 Jun 2015 11:35:33 -0700 Subject: [PATCH] fix(bold-emoji): Render bold emoji-range characters with standard weight font --- static/variables/ui-variables.less | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/variables/ui-variables.less b/static/variables/ui-variables.less index e652ecb5c..4b375ae52 100644 --- a/static/variables/ui-variables.less +++ b/static/variables/ui-variables.less @@ -114,6 +114,16 @@ src: url('fonts/Fakt/Nylas-FaktPro-SemiBold.otf'), local('Comic Sans MS'); } +// FaktPro-SemiBold doesn't render emoji properly. Override the emjoi unicode +// block so that it uses the "Normal" weight even at font-weight:600. +@font-face { + font-family: 'Nylas-FaktPro'; + font-style: normal; + font-weight: 600; + src: url('fonts/Fakt/Nylas-FaktPro-Normal.otf'), local('Comic Sans MS'); + unicode-range: U+1F300-1F5FF, U+1F600-1F64F, U+1F680-1F6FF, U+2600-26FF; +} + @font-family-sans-serif: "Nylas-FaktPro", "Helvetica", 'Lucida Grande', 'Segoe UI', sans-serif; @font-family-smallcap: "Proxima Nova Regular Small Cap", "sans-serif"; @font-family-serif: Georgia, "Times New Roman", Times, serif;