Coder Social home page Coder Social logo

Comments (9)

umairali avatar umairali commented on June 22, 2024 17

To fix this issue with just add 2 new parameters in Arabic fonts array

'useOTL' => 0xFF,
'useKashida' => 75,
 'arabic-font' => [
     'R'  => 'arabic-font.ttf',    // regular font
     'B'  => 'arabic-font.ttf',          // optional: bold font
     'I'  => 'arabic-font-Light.ttf',    // optional: italic font
     'BI' => 'arabic-font.ttf',           // optional: bold-italic font
     'useOTL' => 0xFF,
     'useKashida' => 75,
]

from mpdf.

cvaida avatar cvaida commented on June 22, 2024 2

After a few hours of debugging, I believe I may have found what is the cause of this issue.

Basically in the applyOTL function from the otl class, there are a bunch of include_once that load the font data. These should actually be include so that at the next iteration the font data files are actually loaded and the variables otl uses from them are properly defined.

from mpdf.

pradeepnew avatar pradeepnew commented on June 22, 2024 2

Its not working in magento2.3.0
If I have added this 'useOTL' => 0xFF then its showing error.

from mpdf.

finwe avatar finwe commented on June 22, 2024

@cvaida Thanks for the debugging! I've fixed the issue in 60d6dee for the upcoming 7.0 release, I will probably backport it to 6.1 branch some time later.

from mpdf.

umairali avatar umairali commented on June 22, 2024

I am using the new mpdf version but it's showing separate Arabic characters
Currently showing
captdddure

the correct word is
الإسم

from mpdf.

finwe avatar finwe commented on June 22, 2024

@umairali Were you using a custom font? Can this be closed?

from mpdf.

finwe avatar finwe commented on June 22, 2024

Closing this as example files render same result as version 6.x

from mpdf.

 avatar commented on June 22, 2024

Hello
I use it but i have another problem.
My font name is byekan.ttf in 'ttfonts' folder. I use 'useOTL' parameters but i have this errors:

Capture

When i remove 'useOTL' this error fixed but it wrote س ؤال for me!
It should be: سؤال

from mpdf.

finwe avatar finwe commented on June 22, 2024

@zantium Please do not abuse this thread with unrelated topics. also please note that the Issue tracker serves mainly as a place to report bugs and request new features as noted in Contributing guidelines. Please do not abuse it as a general questions or troubleshooting location.

Use the the mpdf tag at Stack Overflow.

from mpdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.