VideoEdit Gold ActiveX Control

SubTitleSetFont Method

Description

Set the font name, font size, font style of background color of subtitle text.

Syntax

Public Function SubTitleSetFont(
   ByVal strFontName as String, _
   ByVal iFontSize as Integer, _
   ByVal iFontWeight as Integer, _
   ByVal bItalic as bool, _
   ByVal bUnderline as bool, _
   ByVal iCharSet as Integer
}

Parameter
strFontName
    The font name of text.

iFontSize
    The font size of text.

iFontWeight
    The font weight of text. The range from 0 through 1000.

    100 - THIN
    200 - EXTRALIGHT
    300 - LIGHT
    400 - NORMAL
    500 - MEDIUM
    600 - SEMIBOLD
    700 - BOLD
    800 - EXTRABOLD
    900 - HEAVY

bItalic
    true - Italic, false - no Italic.

bUnderline
    true - underline, false - no underline.

iCharSet
    The character set.

    0 - DEFAULT_CHARSET
    1 - ANSI_CHARSET
    2 - SYMBOL_CHARSET
128 - SHIFTJIS_CHARSET
129 - HANGEUL_CHARSET
130 - JOHAB_CHARSET
134 - GB2312_CHARSET
136 - CHINESEBIG5_CHARSET
161 - GREEK_CHARSET
162 - TURKISH_CHARSET
163 - VIETNAMESE_CHARSET
177 - HEBREW_CHARSET
178 - ARABIC_CHARSET
222 - THAI_CHARSET
238 - EASTEUROPE_CHARSET
204 - RUSSIAN_CHARSET

No Return Value
 

Example

Visual Basic Syntax
VideoEdit1.UseOverlay = True
VideoEdit1.OverlayType = 1
VideoEdit1.SubTitleLoadFile "c:\mytest.srt"
VideoEdit1.SubTitleSetBg True
VideoEdit1.SubTitleSetBgColor 0, 0, 255, 255
VideoEdit1.SubTitleSetTextColor 255, 255, 255, 255
VideoEdit1.SubTitleSetFont "Arial", 20, 100, False, False, 0
VideoEdit1.SubTitleSetShadow True
VideoEdit1.SubTitleSetShadowColor 0, 0, 0, 255
VideoEdit1.SubTitleSetTopPos -1
VideoEdit1.InitControl
VideoEdit1.AddVideo "c:\hello.mpg" , 0,10,0
VideoEdit1.AddAudio "c:\hello.mpg" , 0,10
VideoEdit1.Preview