Geometry of text placement

From GIMP GUI Redesign
Revision as of 14:19, 28 February 2012 by Domi (talk)
Jump to: navigation, search

General idea: The different modes apply restrictions on the space text can cover. (e.g. Where is it cut? Where are line-breaks)


The boundaries where line breaks are ade by the typesetting engine are:

  • canvas
  • shape
  • path end
  • return key


Idea: 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 do the modes relate to the default?


With these attributes the boundaries are defined on which the above mentioned typesetting and general typography settings (indent, baseline offset,…) take effect

All 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)