Difference between revisions of "Geometry of text placement"

From GIMP GUI Redesign
Jump to: navigation, search
(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 ...)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
General idea:
 
General idea:
The different modes apply restrictions on the space text can cover. (e.g. Where is it cut? Where are line-breaks)
+
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
  
The boundaries where line breaks are ade by the typesetting engine are:
+
shape, on path and from path are attributes/links not modes. e.g.: text can be on a path and in a shape
  
*canvas
+
? What is the default? And how does the modes relate to the default?
*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.
+
WIth these attributes the boundaries are defined on which the general typography settings (indent, baseline offset,…) take effect
  
? What is the default?
+
Also this is formulated in abstract terms. vertical text or right to left writing works in this context too
? 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
+
shape
 
 
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!
 
principle: Text in X means nothing is outside!
  
Line 32: Line 28:
  
  
=== along path ===
+
along path
 
(path is baseline)
 
(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.
 
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.
Line 47: Line 43:
  
  
=== from path ===
+
from path
 
(baselines are orthogonal to path)
 
(baselines are orthogonal to path)
  
Line 53: Line 49:
 
* baselines leave left side of path
 
* baselines leave left side of path
 
* distances between baselines is line-height (along path)
 
* distances between baselines is line-height (along path)
 
 
=== sketch ===
 
 
 
example of text along/from path
 
[[Image:Text_geometry.jpg]]
 

Revision as of 14:15, 28 February 2012

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)