font family

demo
taha12322 3 years ago
parent e5adef5f51
commit 3b2737b38e
  1. 4
      src/containers/Reader.tsx

@ -85,11 +85,11 @@ const Reader = ({ url, loadingView }: Props) => {
const new_style_element = document.createElement("style");
new_style_element.textContent = `@font-face {
font-family: "Nazanin";
src: url(/react-epub-viewer/css/Nazanin.woff);
src: url(%PUBLIC_URL%/css/Nazanin.woff);
}
@font-face {
font-family: "Sans";
src: url(/react-epub-viewer/css/IRANSansWebFaNum.woff);
src: url(%PUBLIC_URL%/css/IRANSansWebFaNum.woff);
}`;
const node =
iframe && iframe.contentWindow && iframe.contentWindow.document;

Loading…
Cancel
Save