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