Reference · Rules and helpers · rules.rs
stamp_text_width Function
How wide the stamp will set text (points), for previews that must match.
func stampTextWidth(text: String, face: StampFace, bold: Bool, size: Double) -> Doublepublic static double StampTextWidth(string text, StampFace face, bool bold, double size)pub fn stamp_text_width(text: String, face: StampFace, bold: bool, size: f64) -> f64Parameters
| Name | Type | Swift / C# |
|---|---|---|
text | String | text |
face | StampFace | face |
bold | bool | bold |
size | f64 | size |
Returns
f64
Errors
Does not throw.
Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.