Skip to content

TextOverlay_CreateCustomFont

function

Delphi
function TextOverlay_CreateCustomFont (Index: LongInt; fHeight: LongInt; fWidth: LongInt; fEscapement: LongInt; fOrientation: LongInt; fWeight: LongInt; fItalic: Boolean; fUnderline: Boolean; fStrikeOut: Boolean; fCharSet: LongWord_; fOutputPrecision: LongWord_; fClipPrecision: LongWord_; fQuality: LongWord_; fPitchAndFamily: LongWord_; FontFacename: string): Boolean;
C++Builder
bool __fastcall TextOverlay_CreateCustomFont(System::LongInt Index, System::LongInt fHeight, System::LongInt fWidth, System::LongInt fEscapement, System::LongInt fOrientation, System::LongInt fWeight, bool fItalic, bool fUnderline, bool fStrikeOut, LongWord_ fCharSet, LongWord_ fOutputPrecision, LongWord_ fClipPrecision, LongWord_ fQuality, LongWord_ fPitchAndFamily, System::UnicodeString FontFacename);
C#
public bool TextOverlay_CreateCustomFont(int Index, int fHeight, int fWidth, int fEscapement, int fOrientation, int fWeight, bool fItalic, bool fUnderline, bool fStrikeOut, uint fCharSet, uint fOutputPrecision, uint fClipPrecision, uint fQuality, uint fPitchAndFamily, string FontFacename);
VB.NET
Public Function TextOverlay_CreateCustomFont(Index As Integer, fHeight As Integer, fWidth As Integer, fEscapement As Integer, fOrientation As Integer, fWeight As Integer, fItalic As Boolean, fUnderline As Boolean, fStrikeOut As Boolean, fCharSet As UInteger, fOutputPrecision As UInteger, fClipPrecision As UInteger, fQuality As UInteger, fPitchAndFamily As UInteger, FontFacename As String) As Boolean
C++/Qt
BOOL TextOverlay_CreateCustomFont (int Index, int fHeight, int fWidth, int fEscapement, int fOrientation, int fWeight, BOOL fItalic, BOOL fUnderline, BOOL fStrikeOut, unsigned int fCharSet, unsigned int fOutputPrecision, unsigned int fClipPrecision, unsigned int fQuality, unsigned int fPitchAndFamily, wchar_t *FontFacename);

Creates a font with the Windows CreateFont function (the parameters after Index are those of CreateFont) and assigns it to the text overlay specified by Index (0 for the 1st text overlay, 1 for the 2nd, etc.). Returns false if the index is out of range or if the font cannot be created.

E.g., Wingdings font for the 1st text overlay (index 0): VideoGrabber.TextOverlay_CreateCustomFont (0, 16, 30, 0, 0, 200, true, false, false, 2, 0, 0, 0, 0, "Wingdings"); VideoGrabber.SetTextOverlay_Enabled (0, true);