After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347009 - Improve docs about ink and logical extents
Improve docs about ink and logical extents
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: docs
unspecified
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2006-07-08 23:45 UTC by Behdad Esfahbod
Modified: 2018-05-22 12:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First (9.52 KB, image/png)
2006-07-08 23:46 UTC, Behdad Esfahbod
Details
Second (8.79 KB, image/png)
2006-07-08 23:46 UTC, Behdad Esfahbod
Details
extentdemo (5.49 KB, text/x-python)
2006-09-14 17:53 UTC, Behdad Esfahbod
Details
Original test program with public domain boilerplate (4.46 KB, text/x-python)
2006-09-15 04:54 UTC, rhamph
Details
Updated extentdemo (4.91 KB, text/x-python)
2007-01-25 16:00 UTC, rhamph
Details
My version (5.76 KB, text/x-python)
2007-01-25 22:25 UTC, Behdad Esfahbod
Details

Description Behdad Esfahbod 2006-07-08 23:45:43 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.
Comment 1 Behdad Esfahbod 2006-07-08 23:46:11 UTC
Created attachment 68644 [details]
First
Comment 2 Behdad Esfahbod 2006-07-08 23:46:32 UTC
Created attachment 68645 [details]
Second
Comment 3 Behdad Esfahbod 2006-09-14 17:53:47 UTC
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.
Comment 4 Behdad Esfahbod 2006-09-14 18:01:54 UTC
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.
Comment 5 rhamph 2006-09-15 04:54:01 UTC
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.
Comment 6 rhamph 2007-01-25 16:00:30 UTC
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.
Comment 7 Behdad Esfahbod 2007-01-25 22:25:43 UTC
Created attachment 81230 [details]
My version

Merged in your changes.
Comment 8 Behdad Esfahbod 2007-01-25 22:28:35 UTC
Opened bug 400810 agaunst pygtk to include this.  I may put it in pango too.
Comment 9 GNOME Infrastructure Team 2018-05-22 12:20:07 UTC
-- 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.