ango applies OpenType layout which is more bullet proof than just relaying on the font’s cmap. This especially important for fonts that reply on OpenType layout for showing even the base forms of the glyphs.
Thanks for the patch. I'll incorporate it when I'll have slightly more time to test it. Then I'll probably remove the old method. Do you know when this feature of pango became available?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, sorry for late reply. I had time to test your patch, and for me result does not always look better than without it. Cairo adds circles for combining marks that look bad with DejaVu Sans for example. Also with DejaVu Sans some (historic) characters in Cyrillic range look off-center. I'll probably make this layout selectable as command line option for now.
I can make it an option and send a GitHub pull request. For my fonts the difference between using Freetype and Pango is the difference between not showing glyphs at all and showing them correctly. The dotted cirrcle is a feature for me as well (though it can be disable by putting a space before the marks), as it makes combining from non-compining marks clear and make it easy to see if the mark applies above or below the base.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the patch. I'll incorporate it when I'll have slightly more time to test it. Then I'll probably remove the old method. Do you know when this feature of pango became available?
It was introduced in Pango 1.37, released in May 2015 (based on the git tag).
This seems to have been introduced in 1.37.0 from May 2015 (judging by git log).
Here is an updated version of the patch to check for Pango version explicitely.
Hi, sorry for late reply. I had time to test your patch, and for me result does not always look better than without it. Cairo adds circles for combining marks that look bad with DejaVu Sans for example. Also with DejaVu Sans some (historic) characters in Cyrillic range look off-center. I'll probably make this layout selectable as command line option for now.
BTW I've created a repo on Github where I plan to move the development of this project: https://github.com/eugmes/fntsample
I can make it an option and send a GitHub pull request. For my fonts the difference between using Freetype and Pango is the difference between not showing glyphs at all and showing them correctly. The dotted cirrcle is a feature for me as well (though it can be disable by putting a space before the marks), as it makes combining from non-compining marks clear and make it easy to see if the mark applies above or below the base.
This is commited