package.dist.config.Fonts.js Maven / Gradle / Ivy
import { getDefaultFontLoading as getConfiguredDefaultFontLoading } from "../InitialConfiguration.js";
let defaultFontLoading;
/**
* Returns if the "defaultFontLoading" configuration is set.
* @public
* @returns { boolean }
*/
const getDefaultFontLoading = () => {
if (defaultFontLoading === undefined) {
defaultFontLoading = getConfiguredDefaultFontLoading();
}
return defaultFontLoading;
};
/**
* Defines the "defaultFontLoading" setting.
*
* - When set to "true" (default), all used font faces are fetched over the network.
* - When set to "false", default font faces are not fetched automatically and must be managed separately.
* @public
* @param { boolean } defaultFontLoadingData
*/
const setDefaultFontLoading = (defaultFontLoadingData) => {
defaultFontLoading = defaultFontLoadingData;
};
export { getDefaultFontLoading, setDefaultFontLoading, };
//# sourceMappingURL=Fonts.js.map