-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 #6990 from plotly/font-weight-integer
Add support for numeric font `weight`
- Loading branch information
Showing
36 changed files
with
3,855 additions
and
1,059 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add support for numeric text font `weight` [[#6990](https://github.com/plotly/plotly.js/pull/6990)] |
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
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
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,45 @@ | ||
'use strict'; | ||
|
||
// Must use one of the following fonts as the family, else default to 'Open Sans Regular' | ||
// See https://github.com/openmaptiles/fonts/blob/gh-pages/fontstacks.json | ||
var supportedFonts = [ | ||
'Metropolis Black Italic', | ||
'Metropolis Black', | ||
'Metropolis Bold Italic', | ||
'Metropolis Bold', | ||
'Metropolis Extra Bold Italic', | ||
'Metropolis Extra Bold', | ||
'Metropolis Extra Light Italic', | ||
'Metropolis Extra Light', | ||
'Metropolis Light Italic', | ||
'Metropolis Light', | ||
'Metropolis Medium Italic', | ||
'Metropolis Medium', | ||
'Metropolis Regular Italic', | ||
'Metropolis Regular', | ||
'Metropolis Semi Bold Italic', | ||
'Metropolis Semi Bold', | ||
'Metropolis Thin Italic', | ||
'Metropolis Thin', | ||
'Open Sans Bold Italic', | ||
'Open Sans Bold', | ||
'Open Sans Extrabold Italic', | ||
'Open Sans Extrabold', | ||
'Open Sans Italic', | ||
'Open Sans Light Italic', | ||
'Open Sans Light', | ||
'Open Sans Regular', | ||
'Open Sans Semibold Italic', | ||
'Open Sans Semibold', | ||
'Klokantech Noto Sans Bold', | ||
'Klokantech Noto Sans CJK Bold', | ||
'Klokantech Noto Sans CJK Regular', | ||
'Klokantech Noto Sans Italic', | ||
'Klokantech Noto Sans Regular' | ||
]; | ||
|
||
module.exports = { | ||
isSupportedFont: function(a) { | ||
return supportedFonts.indexOf(a) !== -1; | ||
} | ||
}; |
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
Oops, something went wrong.