-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
text-align: right doesn't work #2103
Comments
@maziyaryosofi Please add a minimal example of your problem. Issue added also to laravel plugin: barryvdh/laravel-dompdf#664 |
hi my controller code is: $pdf = PDF::loadView('printpdf', $data)->setPaper('a4', 'landscape'); and my printpdf.balde.php is: |
Works in the newest version of dompdf. Extracted HTML document:
Don't you use the newest version of barryvdh/laravel-dompdf ? |
i downloaded it 5 days ago. i get this pdf when run it and all of text and line doesn't have text-align:right; |
No this is not how it looks like. Either it is a problem of your font (I used this to test; http://fontsfree.net/iransans-font-download.html), or of the laravel wrpapper (it shouldnt do something special I hope) or you aren't using the newest release of dompdf together with laravel-dompdf. You should check your version. |
hi from miladhamzelou/dompdf-persian package i add this code to the root dompdf/dompdf. and then go to the dompdf/dompdf/src/renderer/Text.php and above after do this word text-align right not working as well. |
We can't provide this kind of support here. If you provide an actual html which is then rendered incorrectly by dompdf i kindly help you. |
thanks alot. |
Your reporting style doesn't help much. You state something does not work without saying what and what you expect. Right to left languages are indeed not really supported right now. I am interested to open dompdf to everyone and have a look at it in the nearer future but right now you have to use what's available. EDIT: |
how can i add printing to my code to see where is the problem? |
Simply adding for example:
to see if it has any impact. From this point you can debug into the utf8Glyphys method later. One guess for example is an encoding problem. But as written before I can't provide more support here. There will be some progress regarding RTL language support soon though. |
@maziyaryosofi Please have a try of #2107 and let me know how it works for you |
I think we're going to have to push implementation of this one while we work out some issues with initial support. |
Closing this issue as insufficiently instructive of the problem. Alignment should be working as expected with the current release. Complex text layout (bidi, shaping, ordering) is still under development. Follow #2619 for updates. |
hi
when i use text-align: right on a div not working correctly.
just lastest line of text work correctly and all of top line not set text-align:right.
how can i solve this? anyone ever found this problem too?
The text was updated successfully, but these errors were encountered: