Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i cant access to font file in my server online #682

Open
woxman opened this issue Jun 6, 2022 · 1 comment
Open

i cant access to font file in my server online #682

woxman opened this issue Jun 6, 2022 · 1 comment

Comments

@woxman
Copy link

woxman commented Jun 6, 2022

what is my problem?

let base = path.resolve('./public') + '/';
base = base.replace(new RegExp(/\/g), '/');

var optionss = {childProcessOptions: { env: { OPENSSL_CONF: '/dev/null' } },format: "Letter",zoomFactor: "1",base: file:///${base},"localUrlAccess": true};

<style> @font-face { font-family: Sans; src: url('fonts/IRANSans-Light-web.ttf'); } <style>
@woxman
Copy link
Author

woxman commented Jun 6, 2022

The problem was elsewhere
This code works properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant