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

Function bounding_box

node-graph/nodes/text/src/to_path.rs:18–20  ·  view source on GitHub ↗
(text: &str, font: &Resource, typesetting: TypesettingConfig, for_clipping_test: bool)

Source from the content-addressed store, hash-verified

16}
17
18pub fn bounding_box(text: &str, font: &Resource, typesetting: TypesettingConfig, for_clipping_test: bool) -> DVec2 {
19 TextContext::with_thread_local(|ctx| ctx.bounding_box(text, font, typesetting, for_clipping_test))
20}
21
22pub fn lines_clipping(text: &str, font: &Resource, typesetting: TypesettingConfig) -> bool {
23 TextContext::with_thread_local(|ctx| ctx.lines_clipping(text, font, typesetting))

Callers 4

transitionMethod · 0.50
text_bounding_boxFunction · 0.50
read_fill_node_gradientFunction · 0.50

Calls 1

bounding_boxMethod · 0.45

Tested by

no test coverage detected