TextApi
trait TextApi
- Source:
- GenericText.scala
Type members
Types
type Bounds
The type of additional information that is useful for laying out text.
The type of additional information that is useful for laying out text.
Text layout is complicated. Doodle's layout only cares about the bounding box, with the usual assumption that the origin is the center of the bounding box. However, when we come to actually render the text we usually want additional information. In particular we usually specify the origin where we start rendering as the left-most point on the baseline of the text (and text may descend below the baseline). This is difficult to calculate just from the Doodle bounding box, so we allows methods to return an additional piece of information that can be used to layout the text.
- Source:
- GenericText.scala