When enabled, reduces flicker from sharp fine vertical transitions on interlaced displays. Negative numbers are converted to their absolute values.įor more information, see the Microsoft documentation of the function CreateFont().Īdjust the baseline angle of text in degrees anti-clockwise to the nearest 0.1 degree. See example below.Ĭharacter width varies, depending on the font face and size, but "Arial" at size=16 is about 7 units wide if font_width is less than that, (but greater than zero), the text is squeezed, and if it is greater, the text is stretched. Set character width in logical units, to the nearest 0.125 unit. In the unlikely event that you want to output the characters "\n" literally in a multi-line text, you can do this by using " If lsp is less than zero, inter-line spacing is decreased if greater, the spacing is increased, relative to Windows' default spacing. Line Spacing Parameter enables multi-line text (where "\n" enters a line break). See example below.įor more information, see the Microsoft documentation of the function SetTextCharacterExtra(). This is helpful for trying to match typical fonts on the PC to fonts used in film and television credits which are usually wider for the same height or to just fit or fill in a space with a fixed per-character adjustment. Default is 0: use Windows' default spacing. If spc is less than zero, inter-character spacing is decreased if greater, the spacing is increased. Note there is no Y-center alignment setting. If x and/or y are given, text is positioned relative to the (x,y) location. Default yellow, black.ĭefault 7, or top-left. Default 18.Ĭolors for font fill and outline respectively. Height of the text in pixels, and is rounded to the nearest 0.125 pixel. The text will be shown starting from frame first_frame and ending with frame last_frame.įont name can be the name of any installed Windows font. Y = size if align=4,5,6 or none 0 if align=7,8,9 or height-1 if align=1,2,3Ĭaution: Using v2.58 or older, if your script uses Subtitle with Animate and negative x or y values, x or y might momentarily become -1, causing a glitch in the video. Negative values of x and y not equal to -1 can be used to move subtitles partially off the screen. Can be set to -1 to automatically center the text horizontally or vertically, respectively. String font, float size, int text_color, int halo_color, int align, int spc, int lsp,įloat font_width, float font_angle, bool interlaced)įloat font_width, float font_angle, bool interlaced, string font_filename, bool utf8) Subtitle(clip clip, string text, float x, float y, int first_frame, int last_frame,
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |