Calculate the width of a tab in points

/// 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

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More