Geometry of text placement

From GIMP GUI Redesign
Revision as of 14:15, 28 February 2012 by Domi (talk) (New page: General idea: The different modes apply restrictions on the space text can cover. Where is it cut? the reasons for line breaks are: ? canvas shape path end return key shape, on path and ...)
Jump to: navigation, search

General idea: The different modes apply restrictions on the space text can cover. Where is it cut? the reasons for line breaks are:

? canvas shape path end return key

shape, on path and from path are attributes/links not modes. e.g.: text can be on a path and in a shape

? What is the default? And how does the modes relate to the default?


WIth these attributes the boundaries are defined on which the general typography settings (indent, baseline offset,…) take effect

Also this is formulated in abstract terms. vertical text or right to left writing works in this context too


shape principle: Text in X means nothing is outside!

the line-breaks are defined by taking all this into consideration:

  • actual glyph outline/blackbox/body dimensions
  • shape
  • margins


along path (path is baseline) path refers to a selection of at least two nodes, where the path is defined as being between the outermost ones. Also a path has a direction.

  • from start to end
  • text is placed on the left side of the path
  • the vertical line through the center of the glyph is orthogonal to the baseline (the path)

-single line:

  •  ?text is cut at the end (vertical line at end node)

-multiple lines

  •  ?line breaks are inserted at the end (vertical line at end node)
  • lines are added below


from path (baselines are orthogonal to path)

  • from start (1st node - line-height) to end
  • baselines leave left side of path
  • distances between baselines is line-height (along path)