MCPcopy Create free account
hub / github.com/microsoft/SandDance / createFontStyles

Function createFontStyles

docs/app/js/sanddance-app.js:27624–27643  ·  view source on GitHub ↗
(localeCode)

Source from the content-addressed store, hash-verified

27622 };
27623}
27624function createFontStyles(localeCode) {
27625 var localizedFont = _getLocalizedFontFamily(localeCode);
27626 var fontFamilyWithFallback = _fontFamilyWithFallbacks(localizedFont);
27627 var fontStyles = {
27628 tiny: _createFont((0, _fluentFonts.FontSizes).mini, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27629 xSmall: _createFont((0, _fluentFonts.FontSizes).xSmall, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27630 small: _createFont((0, _fluentFonts.FontSizes).small, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27631 smallPlus: _createFont((0, _fluentFonts.FontSizes).smallPlus, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27632 medium: _createFont((0, _fluentFonts.FontSizes).medium, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27633 mediumPlus: _createFont((0, _fluentFonts.FontSizes).mediumPlus, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27634 large: _createFont((0, _fluentFonts.FontSizes).large, (0, _fluentFonts.FontWeights).regular, fontFamilyWithFallback),
27635 xLarge: _createFont((0, _fluentFonts.FontSizes).xLarge, (0, _fluentFonts.FontWeights).semibold, fontFamilyWithFallback),
27636 xLargePlus: _createFont((0, _fluentFonts.FontSizes).xLargePlus, (0, _fluentFonts.FontWeights).semibold, fontFamilyWithFallback),
27637 xxLarge: _createFont((0, _fluentFonts.FontSizes).xxLarge, (0, _fluentFonts.FontWeights).semibold, fontFamilyWithFallback),
27638 xxLargePlus: _createFont((0, _fluentFonts.FontSizes).xxLargePlus, (0, _fluentFonts.FontWeights).semibold, fontFamilyWithFallback),
27639 superLarge: _createFont((0, _fluentFonts.FontSizes).superLarge, (0, _fluentFonts.FontWeights).semibold, fontFamilyWithFallback),
27640 mega: _createFont((0, _fluentFonts.FontSizes).mega, (0, _fluentFonts.FontWeights).semibold, fontFamilyWithFallback)
27641 };
27642 return fontStyles;
27643}
27644
27645},{"./FluentFonts":"ckOmc","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"92iYH":[function(require,module,exports) {
27646var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 3

_getLocalizedFontFamilyFunction · 0.85
_fontFamilyWithFallbacksFunction · 0.85
_createFontFunction · 0.85

Tested by

no test coverage detected