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

Function _createFont

docs/app/js/sanddance-app.js:27615–27623  ·  view source on GitHub ↗
(size, weight, fontFamily)

Source from the content-addressed store, hash-verified

27613 return defaultFontFamily;
27614}
27615function _createFont(size, weight, fontFamily) {
27616 return {
27617 fontFamily: fontFamily,
27618 MozOsxFontSmoothing: "grayscale",
27619 WebkitFontSmoothing: "antialiased",
27620 fontSize: size,
27621 fontWeight: weight
27622 };
27623}
27624function createFontStyles(localeCode) {
27625 var localizedFont = _getLocalizedFontFamily(localeCode);
27626 var fontFamilyWithFallback = _fontFamilyWithFallbacks(localizedFont);

Callers 1

createFontStylesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected