-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29158 from bernhardoj/fix/27626-md-custom-font
Fix code block font is not a monospace
- Loading branch information
Showing
8 changed files
with
51 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
const bold = 'ExpensifyNeue-Bold'; | ||
const singleBold = 'ExpensifyNeue-Bold'; | ||
const multiBold = 'ExpensifyNeue-Bold'; | ||
|
||
export default bold; | ||
export {singleBold, multiBold}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
const bold = 'ExpensifyNeue-Regular'; | ||
const singleBold = 'ExpensifyNeue-Regular'; | ||
const multiBold = 'ExpensifyNeue-Regular'; | ||
|
||
export default bold; | ||
export {singleBold, multiBold}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
const bold = 'ExpensifyNeue-Regular, Segoe UI Emoji, Noto Color Emoji'; | ||
const singleBold = 'ExpensifyNeue-Regular'; | ||
const multiBold = 'ExpensifyNeue-Regular, Segoe UI Emoji, Noto Color Emoji'; | ||
|
||
export default bold; | ||
export {singleBold, multiBold}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
import bold from './bold'; | ||
import FontFamilyStyles from './types'; | ||
import singleFontFamily from './singleFontFamily'; | ||
|
||
const fontFamily: FontFamilyStyles = { | ||
EXP_NEUE_ITALIC: 'ExpensifyNeue-Italic', | ||
EXP_NEUE_BOLD: bold, | ||
EXP_NEUE: 'ExpensifyNeue-Regular', | ||
EXP_NEW_KANSAS_MEDIUM: 'ExpensifyNewKansas-Medium', | ||
EXP_NEW_KANSAS_MEDIUM_ITALIC: 'ExpensifyNewKansas-MediumItalic', | ||
SYSTEM: 'System', | ||
MONOSPACE: 'ExpensifyMono-Regular', | ||
MONOSPACE_ITALIC: 'ExpensifyMono-Regular', | ||
MONOSPACE_BOLD: 'ExpensifyMono-Bold', | ||
MONOSPACE_BOLD_ITALIC: 'ExpensifyMono-Bold', | ||
}; | ||
|
||
export default fontFamily; | ||
export default singleFontFamily; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
import bold from './bold'; | ||
import FontFamilyStyles from './types'; | ||
import multiFontFamily from './multiFontFamily'; | ||
|
||
// In windows and ubuntu, we need some extra system fonts for emojis to work properly | ||
// otherwise few of them will appear as black and white | ||
const fontFamily: FontFamilyStyles = { | ||
EXP_NEUE_ITALIC: 'ExpensifyNeue-Italic, Segoe UI Emoji, Noto Color Emoji', | ||
EXP_NEUE_BOLD: bold, | ||
EXP_NEUE: 'ExpensifyNeue-Regular, Segoe UI Emoji, Noto Color Emoji', | ||
EXP_NEW_KANSAS_MEDIUM: 'ExpensifyNewKansas-Medium, Segoe UI Emoji, Noto Color Emoji', | ||
EXP_NEW_KANSAS_MEDIUM_ITALIC: 'ExpensifyNewKansas-MediumItalic, Segoe UI Emoji, Noto Color Emoji', | ||
SYSTEM: 'System', | ||
MONOSPACE: 'ExpensifyMono-Regular, Segoe UI Emoji, Noto Color Emoji', | ||
MONOSPACE_ITALIC: 'ExpensifyMono-Regular, Segoe UI Emoji, Noto Color Emoji', | ||
MONOSPACE_BOLD: 'ExpensifyMono-Bold, Segoe UI Emoji, Noto Color Emoji', | ||
MONOSPACE_BOLD_ITALIC: 'ExpensifyMono-Bold, Segoe UI Emoji, Noto Color Emoji', | ||
}; | ||
|
||
export default fontFamily; | ||
export default multiFontFamily; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {multiBold} from './bold'; | ||
import FontFamilyStyles from './types'; | ||
|
||
// In windows and ubuntu, we need some extra system fonts for emojis to work properly | ||
// otherwise few of them will appear as black and white | ||
const fontFamily: FontFamilyStyles = { | ||
EXP_NEUE_ITALIC: 'ExpensifyNeue-Italic, Segoe UI Emoji, Noto Color Emoji', | ||
EXP_NEUE_BOLD: multiBold, | ||
EXP_NEUE: 'ExpensifyNeue-Regular, Segoe UI Emoji, Noto Color Emoji', | ||
EXP_NEW_KANSAS_MEDIUM: 'ExpensifyNewKansas-Medium, Segoe UI Emoji, Noto Color Emoji', | ||
EXP_NEW_KANSAS_MEDIUM_ITALIC: 'ExpensifyNewKansas-MediumItalic, Segoe UI Emoji, Noto Color Emoji', | ||
SYSTEM: 'System', | ||
MONOSPACE: 'ExpensifyMono-Regular, Segoe UI Emoji, Noto Color Emoji', | ||
MONOSPACE_ITALIC: 'ExpensifyMono-Regular, Segoe UI Emoji, Noto Color Emoji', | ||
MONOSPACE_BOLD: 'ExpensifyMono-Bold, Segoe UI Emoji, Noto Color Emoji', | ||
MONOSPACE_BOLD_ITALIC: 'ExpensifyMono-Bold, Segoe UI Emoji, Noto Color Emoji', | ||
}; | ||
|
||
export default fontFamily; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {singleBold} from './bold'; | ||
import FontFamilyStyles from './types'; | ||
|
||
const fontFamily: FontFamilyStyles = { | ||
EXP_NEUE_ITALIC: 'ExpensifyNeue-Italic', | ||
EXP_NEUE_BOLD: singleBold, | ||
EXP_NEUE: 'ExpensifyNeue-Regular', | ||
EXP_NEW_KANSAS_MEDIUM: 'ExpensifyNewKansas-Medium', | ||
EXP_NEW_KANSAS_MEDIUM_ITALIC: 'ExpensifyNewKansas-MediumItalic', | ||
SYSTEM: 'System', | ||
MONOSPACE: 'ExpensifyMono-Regular', | ||
MONOSPACE_ITALIC: 'ExpensifyMono-Regular', | ||
MONOSPACE_BOLD: 'ExpensifyMono-Bold', | ||
MONOSPACE_BOLD_ITALIC: 'ExpensifyMono-Bold', | ||
}; | ||
|
||
export default fontFamily; |