QMedia
![]() |
![]() ![]() |
QM_GetTextMediaStyle(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 |
Returns the text style options currently 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 receive the name and size of the font respectively.
Parameter textStyle receives the text style. It is a combination (sum or the result of bitwise "or") of 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
`Get text media style of track ID $trackID C_STRING(255;$fontName) C_LONGINT($fontSize;$style) $err:=QM_GetTextMediaStyle ($movie;$trackID;$fontName;$fontSize;$style) |
Related commands
QM_SetTextMediaStyle | Changes the text style options of new text samples. |