MCPcopy
hub / github.com/microsoft/SandDance / _registerFontFaceSet

Function _registerFontFaceSet

docs/app/js/sanddance-app.js:27668–27676  ·  view source on GitHub ↗
(baseUrl, fontFamily, cdnFolder, cdnFontName, localFontName)

Source from the content-addressed store, hash-verified

27666 });
27667}
27668function _registerFontFaceSet(baseUrl, fontFamily, cdnFolder, cdnFontName, localFontName) {
27669 if (cdnFontName === void 0) cdnFontName = "segoeui";
27670 var urlBase = baseUrl + "/" + cdnFolder + "/" + cdnFontName;
27671 _registerFontFace(fontFamily, urlBase + "-light", (0, _fluentFonts.FontWeights).light, localFontName && localFontName + " Light");
27672 _registerFontFace(fontFamily, urlBase + "-semilight", (0, _fluentFonts.FontWeights).semilight, localFontName && localFontName + " SemiLight");
27673 _registerFontFace(fontFamily, urlBase + "-regular", (0, _fluentFonts.FontWeights).regular, localFontName);
27674 _registerFontFace(fontFamily, urlBase + "-semibold", (0, _fluentFonts.FontWeights).semibold, localFontName && localFontName + " SemiBold");
27675 _registerFontFace(fontFamily, urlBase + "-bold", (0, _fluentFonts.FontWeights).bold, localFontName && localFontName + " Bold");
27676}
27677function registerDefaultFontFaces(baseUrl) {
27678 if (baseUrl) {
27679 var fontUrl = baseUrl + "/fonts";

Callers 1

registerDefaultFontFacesFunction · 0.85

Calls 1

_registerFontFaceFunction · 0.85

Tested by

no test coverage detected