GNOME Bugzilla – Bug 347009
Improve docs about ink and logical extents
Last modified: 2018-05-22 12:20:07 UTC
Many people are confused by these two concepts. Some graphics in the docs help. I was thinking about using Scriptina to show how ink rect may far outreach the logical extents, but seems like Scriptina has useless ascent/decent. Attaching two shots of normal Latin fonts, trying to show the difference. Red is logical extents, green is ink. Generated by pressing "b" in pango-view with the cairo backend.
Created attachment 68644 [details] First
Created attachment 68645 [details] Second
Created attachment 72803 [details] extentdemo This is a little pygtk app showing ink/logical rect for chars, clusters, runs, and lines. Written by rhamph@gmail.com and modified by me. Bringing discussion here from bug 355782, to use it in docs.
About copyright and license stuff. It will be most useful as an example if you disclaim any copyright on that, such that people can use freely. If you prefer something else, like GPL, that's fine too.
Created attachment 72830 [details] Original test program with public domain boilerplate Note, this is based on my *original* program, not the one patched by Behdad Esfahbod.
Created attachment 81203 [details] Updated extentdemo I've updated extentdemo.py: * The ordering of different modes is more useful. * It displays the position of .get_size(). * Some markup and combining characters are used to show how line vs run handle them differently. It's still not useful for inserting in html docs though.
Created attachment 81230 [details] My version Merged in your changes.
Opened bug 400810 agaunst pygtk to include this. I may put it in pango too.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/52.