N
const withFont = (fontName) => {
let font = null;
getFont(fontName).then(f => font = f);
return class Text {
getFont() {
return font;
}
};
};
const RobotoText = withFont('Roboto');
new RobotoText().getFont();



