font
export function injectStyles(rule, id) {
$(`#${id}`).remove();
const div = $("<div />", {
html: `­<style>${rule}</style>`,
})
.attr("id", id)
.css("display", "none")
.appendTo("body");
}
import { injectStyles, getRemoteUrl } from "@/utils";
injectStyles(
` @font-face { font-family: 'Noto Sans'; font-weight: 700; src: local('Noto Sans Bold'), local('Noto Sans Bold'), url('${getRemoteUrl(
"/static/fonts/NotoSans-Bold.woff"
)}') format('woff'); }`
);