SetFont Method of the CharParams Object

This method allows you to set a new font for the symbol. It simultaneously specifies the name of the font and its type, as these are interdependent parameters. This method affects the ICharParams::FontName and ICharParams::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

CharParams

FontTypeEnum

3/24/2023 8:51:52 AM

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.