![](/profiles/wavemetrics/themes/wavemetrics/logo.png)
Calculate the width of a tab in points
![](/sites/default/files/styles/thumbnail/public/default_images/Artboard%201_1.png?itok=jeHOCIXy)
thomas_braun
/// Calculate the width of a tab in points
///
/// Result should be entered into Procedure->Document Settings->Default Tab Width
/// Remember to select "Points" from the units menu in the same dialog.
Function PrintTabWidthInPoints()
string fontName = "Anonymous Pro"
variable fontSize = 11
variable tabWidth = 4
print FontSizeStringWidth(fontName, fontSize, 0, " ") * tabwidth
End
///
/// Result should be entered into Procedure->Document Settings->Default Tab Width
/// Remember to select "Points" from the units menu in the same dialog.
Function PrintTabWidthInPoints()
string fontName = "Anonymous Pro"
variable fontSize = 11
variable tabWidth = 4
print FontSizeStringWidth(fontName, fontSize, 0, " ") * tabwidth
End
![](/sites/default/files/forum.png)
Forum
![](/sites/default/files/support.png)
Support
![](/sites/default/files/gallery.png)
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More