You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The arabic characters not being rendered properly in the PDF when using below font with FOP. If I do not use the FOP, the characters appears properly.
For getting the correct output I have updated the else block of method "convertToBytes" in class com.lowagie.text.pdf.FontDetails.java . New method else block will look like below. Once I use below updated FontDetails class, the above test case results in correct output.
Describe the bug
The arabic characters not being rendered properly in the PDF when using below font with FOP. If I do not use the FOP, the characters appears properly.
Same issue is coming with Arial and Noto as well.
To Reproduce
Code to reproduce the issue
public class MultipleDirTest2 {
For getting the correct output I have updated the else block of method "convertToBytes" in class com.lowagie.text.pdf.FontDetails.java . New method else block will look like below. Once I use below updated FontDetails class, the above test case results in correct output.
else { /*String fileName = ((TrueTypeFontUnicode)getBaseFont()).fileName; if (FopGlyphProcessor.isFopSupported() && (fileName!=null && fileName.length()>0 &&( fileName.contains(".ttf") || fileName.contains(".TTF")))){ return FopGlyphProcessor.convertToBytesWithGlyphs(ttu,text,fileName,longTag); }else { return convertToBytesWithGlyphs(text); }*/ return convertToBytesWithGlyphs(text); }
Actual Output
Expected behavior
Screenshots
screenshots added above.
System (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: