Comments (9)
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.
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.
Its not working in magento2.3.0
If I have added this 'useOTL' => 0xFF then its showing error.
from mpdf.
@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.
I am using the new mpdf version but it's showing separate Arabic characters
Currently showing
the correct word is
الإسم
from mpdf.
@umairali Were you using a custom font? Can this be closed?
from mpdf.
Closing this as example files render same result as version 6.x
from mpdf.
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:
When i remove 'useOTL' this error fixed but it wrote س ؤال for me!
It should be: سؤال
from mpdf.
@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)
- Quickfix for color containing CSS variable is bad
- Hyphenation of words with hyphens not as expected HOT 3
- Add security reporting feature to the repo HOT 1
- There are some bugs related to border-collapse and padding and border with tables HOT 3
- Mpdf.php (#16141): Trying to access array offset on value of type null HOT 10
- Adding text to existing PDF file, can not move pdf file
- converting a .xlsx file to .pdf not retain the specified print area
- Undefined array key "VALUE" HOT 1
- htmlpagefooter element does not respect z-index HOT 4
- Error in pdf generation - Invalid argument supplied for foreach()
- Document structure is invalid or damaged HOT 6
- Getting Fatal error sometimes with the ColorConverter HOT 2
- Attribute value truncated when containing double quote character and using single quote delimiter
- Warning: Undefined array key "s" HOT 6
- Nesting a table inside a tfoot element results in "Trying to access array offset on null"
- PDF/A : endobj is missing EOL-Marker
- ArrayAccess::offsetSet()" might add "void" as a native return type
- Error while trying to save pdf to a folder. HOT 1
- Write HTML - NOTICE Uninitialized string offset - XXXX on Otl.php HOT 1
- Subsequent calls to Output() of pdf with images are missing images in 2++ data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdf.