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) -> Double

Parameters

NameTypeSwift / C#
textStringtext
faceStampFaceface
boldboolbold
sizef64size

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.