QMedia Text media commands |

### QM_SetTextMediaStyle

QM_SetTextMediaStyle(movieRef; trackID; textFont; textSize; textStyle):error
| movieRef | Longint | Movie reference
| trackID | Longint | Track ID
| textFont | String255 | Text font
| textSize | Longint | Text size
| textStyle | Longint | Text style
| error | Longint | Error result

Changes the text style options that are used when adding samples to a text track.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile.

Parameter trackID is the ID of the track.

Parameter textFont and textSize are the font name and size respectively.

Parameter textStyle is the text style and it can be specified by combining (with addition or bitwise "or") the following 4D constants:

Plain | 0
Bold | 1
Italic | 2
Underline | 4
Outline | 8
Shadow | 16
Condensed | 32
Extended | 64

QMedia sets the default text style options to the following values:

| MacOS | Windows
Font: | Geneva | MS Sans Serif
Size: | 9 | 12
Style: | Plain | Plain

Example

``Set text media style for track ID $trackID` `` `C_STRING(255;$fontName)` `C_LONGINT($fontSize;$style)` `` `$fontName:="Palatino"` `$fontSize:=12` `$style:=Bold` `` `$err:=QM_SetTextMediaStyle ($movie;$trackID;$fontName;$fontSize;$style)` ``

Related commands

QM_GetTextMediaStyle | Returns the text style options of new text samples.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:42:53