Updates twemoji.ttf with a new version that is built for twemoji 13 (#664)

* Updates twemoji.ttf with a new version that is built for twemoji 13
* Rename font
This commit is contained in:
mrdrogdrog 2020-10-11 12:57:19 +02:00 committed by GitHub
parent 417a5dc798
commit 02ae83ba5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@
@import 'hints'; @import 'hints';
.CodeMirror { .CodeMirror {
font-family: "Source Code Pro", "twemoji", Consolas, monaco, monospace; font-family: "Source Code Pro", "Twemoji Mozilla", Consolas, monaco, monospace;
letter-spacing: 0.025em; letter-spacing: 0.025em;
line-height: 1.25; line-height: 1.25;
font-size: 18px; font-size: 18px;

View file

@ -36,7 +36,7 @@ export const EmojiPicker: React.FC<EmojiPickerProps> = ({ show, onEmojiSelected,
const twemojiStyle = useMemo(() => { const twemojiStyle = useMemo(() => {
const style = document.createElement('style') const style = document.createElement('style')
style.textContent = 'section.picker { --font-family: "twemoji" !important; }' style.textContent = 'section.picker { --font-family: "Twemoji Mozilla" !important; }'
return style return style
}, []) }, [])

View file

@ -2,7 +2,7 @@
.markdown-body { .markdown-body {
position: relative; position: relative;
font-family: 'Source Sans Pro', "twemoji", sans-serif; font-family: 'Source Sans Pro', "Twemoji Mozilla", sans-serif;
word-break: break-word; word-break: break-word;
.alert > p, .alert > ul { .alert > p, .alert > ul {

View file

@ -24,7 +24,7 @@ export const FlowChart: React.FC<FlowChartProps> = ({ code }) => {
'line-width': 2, 'line-width': 2,
fill: 'none', fill: 'none',
'font-size': '16px', 'font-size': '16px',
'font-family': 'Source Code Pro, twemoji, monospace' 'font-family': 'Source Code Pro, "Twemoji Mozilla", monospace'
}) })
setError(false) setError(false)
} catch (error) { } catch (error) {

View file

@ -1,4 +1,4 @@
@font-face { @font-face {
font-family: "twemoji"; font-family: "Twemoji Mozilla";
src: url("TwemojiMozilla.ttf") format("truetype"); src: url("TwemojiMozilla.ttf") format("truetype");
} }

View file

@ -19,7 +19,7 @@ html {
body { body {
min-height: 100%; min-height: 100%;
font-family: "Source Sans Pro", Helvetica, Arial, twemoji, sans-serif; font-family: "Source Sans Pro", Helvetica, Arial, "Twemoji Mozilla", sans-serif;
} }
*:focus { *:focus {