Skip to content

Commit

Permalink
Merge commit 'a13b7fd97f35d42d121170270d56bce3e6ecc84e' into fix/30840
Browse files Browse the repository at this point in the history
* commit 'a13b7fd97f35d42d121170270d56bce3e6ecc84e':
  Prettier wanted import order changed?
  Update import order
  Make lint happy
  fix: remove underscore
  feat: new emoji font for Windows
  • Loading branch information
sarious committed Nov 6, 2023
2 parents 46f24ef + a13b7fd commit db310a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
src: url('/fonts/ExpensifyNewKansas-MediumItalic.woff2') format('woff2'), url('/fonts/ExpensifyNewKansas-MediumItalic.woff') format('woff');
}

@font-face {
font-family: Windows Segoe UI Emoji;
src: url('/fonts/seguiemj.ttf');
}

* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down
Binary file added assets/fonts/web/seguiemj.ttf
Binary file not shown.
8 changes: 8 additions & 0 deletions src/styles/fontFamily/multiFontFamily.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import getOperatingSystem from '@libs/getOperatingSystem';
import CONST from '@src/CONST';
import {multiBold} from './bold';
import FontFamilyStyles from './types';

Expand All @@ -16,4 +18,10 @@ const fontFamily: FontFamilyStyles = {
MONOSPACE_BOLD_ITALIC: 'ExpensifyMono-Bold, Segoe UI Emoji, Noto Color Emoji',
};

if (getOperatingSystem() === CONST.OS.WINDOWS) {
Object.keys(fontFamily).forEach((key) => {
fontFamily[key as keyof FontFamilyStyles] = fontFamily[key as keyof FontFamilyStyles].replace('Segoe UI Emoji', 'Windows Segoe UI Emoji');
});
}

export default fontFamily;

0 comments on commit db310a7

Please sign in to comment.