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

Bangla language font break problem #2627

Closed
junayedmahmud opened this issue Nov 1, 2021 · 1 comment
Closed

Bangla language font break problem #2627

junayedmahmud opened this issue Nov 1, 2021 · 1 comment
Labels

Comments

@junayedmahmud
Copy link

junayedmahmud commented Nov 1, 2021

Recently I tried to generate pdf with Dompdf. I see bangla language not loading with font face but it works with load_font.php.

After that i realized that fonts are broken in whole PDF .
image

face font dont load fonts

image

I also tried with niklasravnsborg but CSS dont work like as dompdf. But fonts are okey. I think use OTL dont work in DomPDF thats why complex word dont show correctly. Have any way to fix that? I just want correct form with DomPDF.
Here is correct generated PDF.
image

I just want it with dompdf. Please Help

@bsweeney bsweeney added the i18n label Nov 1, 2021
@bsweeney
Copy link
Member

bsweeney commented Nov 1, 2021

We'd need to see a sample of your usage to provide guidance on what's going wrong using CSS to load the font.

As for specific support for Bangali/Bengla, in addition to a supporting font the text would need to be run through a shaping engine prior to rendering. Text shaping is not yet supported by Dompdf and so you would have to do this prior to rendering your document.

The shaping issue is covered by #2619 so please follow that issue for updates.

@bsweeney bsweeney closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants