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

Chinese font not render properly in production environment on vercel #287

Open
bhavinparekh07 opened this issue Jul 23, 2024 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@bhavinparekh07
Copy link

I'm generating pdf for chinese data.so data is in proper format and also works fine in local but not in production .
suggestion highly appreciated !!

@bhavinparekh07 bhavinparekh07 added the enhancement New feature or request label Jul 23, 2024
@cv02040623
Copy link

Hello, I have the same problem, how do you solve it

@bhavinparekh07
Copy link
Author

bhavinparekh07 commented Nov 12, 2024

@cv02040623 @DoveLanLan
vercel is serverless. So kindly refer docs of aws lamda function.It is helpful.
use this code in your Project dir with name : font/fonts.config

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <dir>/var/task/fonts/</dir>
  <cachedir>/tmp/fonts-cache/</cachedir>
  <config></config>
</fontconfig>   

Add require fonts in fonts folder.

@JOYCEQL
Copy link

JOYCEQL commented Nov 27, 2024

Hi, I also met this problem, may I ask how the specific process is done

@JOYCEQL
Copy link

JOYCEQL commented Nov 27, 2024

Hello, I have the same problem, how do you solve it

if you solve it?

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

No branches or pull requests

3 participants