MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / last_line_correction

Method last_line_correction

node-graph/nodes/text/src/lib.rs:69–76  ·  view source on GitHub ↗

What `parley::Alignment` to apply as a post-correction to the last line of a paragraph, or `None` if parley's default already handles it. `JustifyLeft` returns `None` because parley already left-aligns the last line of a `Justify` layout. The other justify modes need the last line shifted (`Center`/`Right`) or its inter-word spaces redistributed (`Justify` / `JustifyAll`).

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected