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:

Plain0
Bold1
Italic2
Underline4
Outline8
Shadow16
Condensed32
Extended64

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

MacOSWindows
Font:GenevaMS Sans Serif
Size:912
Style:PlainPlain

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