Programmer's Interface standard.
This function returns information about the size of text when reproduced in a specific font.
SET C="COURIER",ON="Old Norse"
SET PX="PIXEL",PT="POINT"
SET N="NORMAL",B="BOLD",BI="BOLD,ITALIC"
Reference | Value | |
---|---|---|
$WFONT(C,10,N,PX) | "13,8,8" | |
$WFONT(C,10,N,PT) | "10,6,6" | |
$WFONT(C,10,B,PX) | "13,9,9" | |
$WFONT(C,10,BI,PX) | "13,9,9" | |
$WFONT(C,12,N,PX) | "16,9,9" | |
$WFONT("HELVETICA",18,N,PX) | "19,7,7" | |
$WFONT(ON,10,N,PX) | "" |
(The final example assumes that the font "Old Norse" is not currently implemented.)
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.