SilverScreen Solid Modeler

pm_font

pm_font

Previous topic Next topic  

pm_font

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

void pm_font ( char *message, char *buf )

 

char *message;    // prompt string

char *buf;        // address of buffer to receive result

 

 




Synopsis

#include "silver.h"

 

The pm_font function adds a font prompt to the current panel, with prompt specified by message . buf can be initialized to an empty string, or can be initialized to a font script. After pm_execute , the resulting font script is returned in buf .

 

 

Parameters

message is a null-terminated string containing the prompt message. buf should be at least 80 characters in length. The font script will specify either a TrueType font or a SilverScreen font. Formats for these two font types are illustrated below:

 

Font Type Syntax

 

 truetype "Arial Black" weight 400 italic disable

 font txt.fnt

 

 

The format of the font script is designed to be used with the text property command (text insertion) and the set command (annotation).

 

 

Return Value

none.

 

 

See Also

pm_execute

 

 

Example

C / C++ Code

 

 char buf[80];

 strcpy(buf, "\"Arial Black\" weight 400 italic disable");

 pm_font ( "Font", buf );