DocumentationMQL5 ReferenceStandard LibraryCustom GraphicsCCanvasTextWidthTextWidthTextWidthReceives the text width.int TextWidth( const string text // text );Parameters text[in] Text for measuring.Return Value text height in pixelsNote The current font is used to measure the text.Last updated on 2026-07-24TextSizeTransparentLevelSet