Chinese Simplified (简体中文)

SetFont Method of the FontStyle Object

This method allows you to set a new font name and font type for the font style. This method affects the IFontStyle::FontName and IFontStyle::FontType properties.

Syntax

C++

HRESULT SetFont(
  BSTR         fontName,
  FontTypeEnum fontType
);
    

C#

void SetFont(
  string       fontName,
  FontTypeEnum fontType
);
    

Visual Basic .NET

Sub SetFont( _
  fontName As String, _
  fontType As FontTypeEnum _
)
    

Parameters

fontName
[in] This variable specifies the name of the new font.
fontType
[in] This variable specifies the type of the new font. It may be set to one of the constants from the FontTypeEnum enumeration.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

FontStyle

FontTypeEnum

9/17/2024 3:14:41 PM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.