-
-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support default system fonts for Windows, Macos and web
- Loading branch information
Showing
7 changed files
with
254 additions
and
59 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const defaultSystemFonts = [ | ||
'Roboto', | ||
'notoserif', | ||
'sans-serif-light', | ||
'sans-serif-thin', | ||
'sans-serif-medium' | ||
]; | ||
|
||
export default defaultSystemFonts; |
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,44 @@ | ||
const defaultSystemFonts = [ | ||
'San Francisco', | ||
'Arial', | ||
'ArialHebrew', | ||
'Avenir', | ||
'Baskerville', | ||
'Bodoni 72', | ||
'Bradley Hand', | ||
'Chalkboard SE', | ||
'Cochin', | ||
'Copperplate', | ||
'Courier', | ||
'Courier New', | ||
'Damascus', | ||
'Didot', | ||
'Futura', | ||
'Geeza Pro', | ||
'Georgia', | ||
'Gill Sans', | ||
'Helvetica', | ||
'Helvetica Neue', | ||
'Hiragino Sans', | ||
'Hoefler Text', | ||
'Iowan Old Style', | ||
'Kailasa', | ||
'Khmer Sangam MN', | ||
'Marker Felt', | ||
'Menlo', | ||
'Mishafi', | ||
'Noteworthy', | ||
'Optima', | ||
'Palatino', | ||
'Papyrus', | ||
'Savoye LET', | ||
'Symbol', | ||
'Thonburi', | ||
'Times New Roman', | ||
'Trebuchet MS', | ||
'Verdana', | ||
'Zapf Dingbats', | ||
'Zapfino' | ||
]; | ||
|
||
export default defaultSystemFonts; |
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,128 @@ | ||
const defaultSystemFonts = [ | ||
'Al Bayan', | ||
'American Typewriter', | ||
'Andalé Mono', | ||
'Apple Casual', | ||
'Apple Chancery', | ||
'Apple Garamond', | ||
'Apple Gothic', | ||
'Apple LiGothic', | ||
'Apple LiSung', | ||
'Apple Myungjo', | ||
'Apple Symbols', | ||
'.AquaKana', | ||
'Arial', | ||
'Arial Hebrew', | ||
'Ayuthaya', | ||
'Baghdad', | ||
'Baskerville', | ||
'Beijing', | ||
'BiauKai', | ||
'Big Caslon', | ||
'Browallia New', | ||
'BrowalliaUPC', | ||
'Brush Script', | ||
'Candara', | ||
'Chalkboard', | ||
'Chalkduster', | ||
'Charcoal', | ||
'Charcoal CY', | ||
'Chicago', | ||
'Cochin', | ||
'Comic Sans', | ||
'Consolas', | ||
'Cooper', | ||
'Copperplate', | ||
'Corsiva Hebrew', | ||
'Courier', | ||
'Courier New', | ||
'DecoType Naskh', | ||
'Devanagari', | ||
'Didot', | ||
'Euphemia UCAS', | ||
'Futura', | ||
'Gadget', | ||
'Geeza Pro', | ||
'Geezah', | ||
'Geneva', | ||
'Geneva CY', | ||
'Georgia', | ||
'Gill Sans', | ||
'Gujarati', | ||
'Gung Seoche', | ||
'Gurmukhi', | ||
'Hangangche', | ||
'HeadlineA', | ||
'Hei', | ||
'Helvetica', | ||
'Helvetica CY', | ||
'Helvetica Neue', | ||
'Herculanum', | ||
'Hiragino Kaku Gothic Pro', | ||
'Hiragino Kaku Gothic ProN', | ||
'Hiragino Kaku Gothic Std', | ||
'Hiragino Kaku Gothic StdN', | ||
'Hiragino Maru Gothic Pro', | ||
'Hiragino Maru Gothic ProN', | ||
'Hiragino Mincho Pro', | ||
'Hiragino Mincho ProN', | ||
'Hoefler Text', | ||
'Inai Mathi', | ||
'Impact', | ||
'Jung Gothic', | ||
'Kai', | ||
'Keyboard', | ||
'Krungthep', | ||
'KufiStandard GK', | ||
'Kuenstler Script', | ||
'LastResort', | ||
'LiHei Pro', | ||
'LiSong Pro', | ||
'Lucida Sans', | ||
'Marker Felt', | ||
'Menlo', | ||
'Monaco', | ||
'Monaco CY', | ||
'Mshtakan', | ||
'Nadeem', | ||
'New Peninim', | ||
'New York', | ||
'NISC GB18030', | ||
'Optima', | ||
'Osaka', | ||
'Palatino', | ||
'Papyrus', | ||
'PC Myungjo', | ||
'Pilgiche', | ||
'Plantagenet Cherokee', | ||
'Raanana', | ||
'Sand', | ||
'Sathu', | ||
'Seoul', | ||
'Shin Myungjo Neue', | ||
'Silom', | ||
'Skia', | ||
'Snell Roundhand', | ||
'ST FangSong', | ||
'ST FangSong 2', | ||
'ST Heiti', | ||
'ST Kaiti', | ||
'ST Song', | ||
'Symbol', | ||
'Tae Graphic', | ||
'Tahoma', | ||
'Taipei', | ||
'Techno', | ||
'Textile', | ||
'Thonburi', | ||
'Times', | ||
'Times CY', | ||
'Times New Roman', | ||
'Trebuchet MS', | ||
'Verdana', | ||
'Zapf Chancery', | ||
'Zapf Dingbats', | ||
'Zapfino' | ||
]; | ||
|
||
export default defaultSystemFonts; |
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,7 @@ | ||
/** | ||
* Default system fonts based on current platform. | ||
* | ||
* @remarks If you are using Expo, use `Constants.systemFonts` instead. | ||
*/ | ||
const defaultSystemFonts = ['Arial', 'Courier New', 'Georgia']; | ||
export default defaultSystemFonts; |
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,63 @@ | ||
const defaultSystemFonts = [ | ||
'Arial', | ||
'Arial Black', | ||
'Bahnschrift', | ||
'Calibri', | ||
'Cambria', | ||
'Cambria Math', | ||
'Candara', | ||
'Comic Sans MS', | ||
'Consolas', | ||
'Constantia', | ||
'Corbel', | ||
'Courier New', | ||
'Ebrima', | ||
'Franklin Gothic Medium', | ||
'Gabriola', | ||
'Gadugi', | ||
'Georgia', | ||
'HoloLens MDL2 Assets', | ||
'Impact', | ||
'Ink Free', | ||
'Javanese Text', | ||
'Leelawadee UI', | ||
'Lucida Console', | ||
'Lucida Sans Unicode', | ||
'Malgun Gothic', | ||
'Marlett', | ||
'Microsoft Himalaya', | ||
'Microsoft JhengHei', | ||
'Microsoft New Tai Lue', | ||
'Microsoft PhagsPa', | ||
'Microsoft Sans Serif', | ||
'Microsoft Tai Le', | ||
'Microsoft YaHei', | ||
'Microsoft Yi Baiti', | ||
'MingLiU-ExtB', | ||
'Mongolian Baiti', | ||
'MS Gothic', | ||
'MV Boli', | ||
'Myanmar Text', | ||
'Nirmala UI', | ||
'Palatino Linotype', | ||
'Segoe MDL2 Assets', | ||
'Segoe Print', | ||
'Segoe Script', | ||
'Segoe UI', | ||
'Segoe UI Historic', | ||
'Segoe UI Emoji', | ||
'Segoe UI Symbol', | ||
'SimSun', | ||
'Sitka', | ||
'Sylfaen', | ||
'Symbol', | ||
'Tahoma', | ||
'Times New Roman', | ||
'Trebuchet MS', | ||
'Verdana', | ||
'Webdings', | ||
'Wingdings', | ||
'Yu Gothic' | ||
]; | ||
|
||
export default defaultSystemFonts; |
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