notofonts / devanagari

Noto Devanagari
SIL Open Font License 1.1
1 stars 2 forks source link

Rendering of Noto Sans Devanagari with FOP 2.1 #17

Closed claudius108 closed 4 years ago

claudius108 commented 8 years ago

Hi,

Thank you for this nice initiative!

I tested Noto Sans Devanagari with the attached fo file, and there are some small (but important) differences in the generated PDF. For testing, you will just need to updated the path to the image in fo:external-graphic/@src. noto-devanagari-font

Claudius Teodorescu, University of Heidelberg, Germany

marekjez86 commented 8 years ago

@claudius108 : Claudius, (i) could you provide us with the text (as opposed to the image - I'm not a speaker/reader of the language and I cannot duplicate the text to try to reproduce the problem) and (ii) what should be the right rendering of the "small (but important) differences" (could you take a photo?) and where was the right rendering obtained (which system with which font)? This would help us to define the goal and enable non-speakers to test it.

claudius108 commented 8 years ago

Hi,

The test is in the attached FO file, and I am adding it here, too: कारणत्त्वङ्गवाश्वादीनमपीति चेत् युक्तम्.

I attached an image showing the small vertical lines that are missing in FOP output. To see what is missing, one needs just to convert the attached FO file to PDF with FOP 2.1.

In order to show the correct rendering, I took the correct text from an XML file and simply created a PNG file by using gimp on Ubuntu.

If you need more details, please ask.

noto-devanagari-font-error-marked

marekjez86 commented 8 years ago

thank you

jungshik commented 7 years ago

@claudius108 Given that you can get the correct shaping result with GIMP while you can't with FOP 2.1, it's most likely that it's not a font bug but a bug in FOP (or a PDF viewer). Have you contacted FOP folks about this issue?

Can you also attach a PDF file you generated with FOP with this problem? Do you have the same issue when the target format is PNG instead of PDF?

solirom commented 7 years ago

I filed a FOP issue, indeed, see https://issues.apache.org/jira/browse/FOP-2454.

I attached a PDF file. noto-sans-devanagari.pdf

I attached the output for PNG generation. noto-sans-devanagari

nizarsq commented 4 years ago

Test case created.

Screen Shot 2020-06-09 at 12 13 26 AM
claudius108 commented 4 years ago

It is much better, thanks.

nizarsq commented 4 years ago

Great! Thank you