Volker Kunert

Results 39 comments of Volker Kunert

What is the result if you use `import com.lowagie.text.pdf.LayoutProcessor; ... LayoutProcessor.enableKernLiga(); ` as explained in https://github.com/LibrePDF/OpenPDF/wiki/Accents,-DIN-91379,-non-Latin-scripts ?

To your question, if the commercial font you used does not support Arabic properly you should open an issue at the producer of the font. There is not much a...

For a third option see https://github.com/LibrePDF/OpenPDF/wiki/Multi-byte-character-language-support-with-TTF-fonts

@asturio, sorry, I am not an expert, but I do have some opinions. There are three variants to layout arabic scripts in OpenPDF: 1. the old itext subtitution method, 2....

@asturio I think, that ArabicLigaturizer should be deprecated, because no one is maintaining it. May be, not deprecated, but not invest effort into maintaining it. With FOP, and Harfbuzz via...

See also https://github.com/LibrePDF/OpenPDF/wiki/Accents,-DIN-91379,-non-Latin-scripts

@wang0331 , could you provide a smaller example only with the incorrect letters? Please compare the output of OpenPdf/LayoutProcessor with the output of HarfBuzz hb-view, see https://github.com/harfbuzz/harfbuzz/releases/tag/8.4.0

The minimal example is rendered as ![image](https://github.com/LibrePDF/OpenPDF/assets/39316085/cad39b2b-dacb-4a58-b829-0cdc5b4de5b7) with OpenPdf /LayoutProcessor (2.0x trunk) This should be correct.

@wang0331, so you are not talking about displaying the characters in PDF, but about the extraction of text from the PDF file using a PDF viewer. This task is quit...

Analysis: Font used: https://fonts.google.com/specimen/Siemreap Using LayoutProcessor the input: '0x17a0', '0x17cd', '0x17d2', '0x179c' is converted by java.awt.Font.layoutGlyphVector to glyph array [68, 111, 165] These glyphs map to the following Unicode characters...