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

don't support Arabic #2760

Closed
ghost opened this issue Jan 23, 2022 · 3 comments
Closed

don't support Arabic #2760

ghost opened this issue Jan 23, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 23, 2022

i change Default font (DejaVu Sans)
and dont support arabic
(https://pasteboard.co/GsgTOHCM1NcP.png)
(pdf file)

code

require_once __DIR__ .'/dompdf/autoload.inc.php';
use Dompdf\Dompdf;

$dompdf = new Dompdf();
$dompdf->loadHtml('
<style>html,body{font-family: "DejaVu Sans";}</style>
السلام عليكم');
$dompdf->setPaper('A4', 'portrait');
$dompdf->render();
$dompdf->stream();
@ghost ghost changed the title Do not support Arabic don't support Arabic Jan 23, 2022
@bsweeney
Copy link
Member

The DejaVu Sans font supports Arabic glyphs. The issue is that Dompdf does not yet fully support the complex layout features (bidi, shaping) required to correctly render Arabic. Follow #2619 for updates.

There are some suggestions in #712 that may help you get the render you want.

@ghost
Copy link
Author

ghost commented Jan 24, 2022

Thank you very much
May Allah save you

I developed the library and made it support Arabic and
With the text direction fixed

@learn05
Copy link

learn05 commented Mar 31, 2022

solution is in this answer https://github.com/dompdf/dompdf/issues/2841#issue-1188595460

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

No branches or pull requests

2 participants