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

Tamil character using @font-face Noto-sans-tamil is not rendering properly #958

Open
shengistired opened this issue Dec 7, 2023 · 0 comments

Comments

@shengistired
Copy link

shengistired commented Dec 7, 2023

PDF:
image

ACTUAL DATA:
ஆண் குழந்தை தமிழ் பெயர்கள்

When i tried the copy the tamil text from the pdf and paste it somewhere else, it looks the same as the actual data. I believe this is a similar issue to #925 .

Font: https://fonts.google.com/noto/specimen/Noto+Sans+Tamil

CSS:

@font-face {
     font-family: tamil;
     font-weight: 500;
     font-style: normal;
     src: url('../../fonts/NotoSansTamil-Light.ttf');
     -fs-pdf-font-embed: embed;
     -fs-pdf-font-encoding: Identity-H;
}

Java code:

builder.withHtmlContent(htmlContent, ""); // Provide base URI if needed
                builder.toStream(outputStream);
                builder.run();
                 
try (FileOutputStream fileOutputStream = new FileOutputStream(path)) {
                    fileOutputStream.write(outputStream.toByteArray());
                }
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