Difference between revisions of "Geometry of text placement"
(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 | + | 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! | principle: Text in X means nothing is outside! | ||
Line 32: | Line 28: | ||
− | + | 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 | |
(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) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
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)