|
|
|
@ -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; |
|
|
|
|