M[UMPS] Functions - $WTF[IT]

Introduced in the 1995 ANSI M[UMPS] Windowing Application Programmer's Interface standard.

This function returns a number that indicates which substring of the value specified as a parameter will fit in the specified space when reproduced in a specific font.

SET TXT="This text needs to be printed."
SET F="COURIER",N="NORMAL",PT="POINT"

Reference   Value
$WTFIT(TXT,100,F,12,N,PT)   14

This means that $EXTRACT(TXT,1,14) will fit in the space of 100 points.


This document is © Ed de Moel, 1995-2005.
It is part of a book by Ed de Moel that is published under the title "M[UMPS] by Example" (ISBN 0-918118-42-5).
Printed copies of the book are no longer available.