Skip to content

Commit

Permalink
Load the Tewmoji font to not fall-back to the OS defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenneke committed Sep 19, 2023
1 parent a9687b0 commit 34126d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Binary file added src/Twemoji.Mozilla.woff
Binary file not shown.
Binary file added src/Twemoji.Mozilla.woff2
Binary file not shown.
8 changes: 8 additions & 0 deletions src/emoji.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@font-face {
font-family: 'Twemoji';
font-style: normal;
font-display: var(--fontsource-display, swap);
font-weight: 400;
src: url(./Twemoji.Mozilla.woff2) format('woff2'),
url(./Twemoji.Mozilla.woff) format('woff');
}
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import log from 'loglevel';
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from './AppContainer';
import './emoji.css';
import './i18n';
import './logger';
import { createWhiteboardManager } from './state';
Expand Down

2 comments on commit 34126d3

@HarHarLinks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Element now uses the system emoji font by default, with an option to enable Twemoji
matrix-org/matrix-react-sdk#11925

@HarHarLinks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Element now defaults to Twemoji again, keeping the option to disable them
matrix-org/matrix-react-sdk#11935

Please sign in to comment.