Menu

#5 Use Pango for drawing glyph cells

v1.0 (example)
closed-fixed
nobody
None
5
2017-10-18
2016-11-24
No

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.

1 Attachments

Discussion

  • Eugeniy Meshcheryakov

    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?

     
    • Khaled Hosny

      Khaled Hosny - 2016-12-13

      It was introduced in Pango 1.37, released in May 2015 (based on the git tag).

       
  • Khaled Hosny

    Khaled Hosny - 2016-12-13

    This seems to have been introduced in 1.37.0 from May 2015 (judging by git log).

     
  • Khaled Hosny

    Khaled Hosny - 2017-10-14

    Here is an updated version of the patch to check for Pango version explicitely.

     
  • Eugeniy Meshcheryakov

    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

     
  • Khaled Hosny

    Khaled Hosny - 2017-10-18

    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.

     
  • Eugeniy Meshcheryakov

    • status: open --> closed-fixed
     
  • Eugeniy Meshcheryakov

    This is commited

     

Log in to post a comment.

MongoDB Logo MongoDB