> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetFont Method

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](/fine-reader/engine/api-reference/text-related-objects/charparams#fontname) and [ICharParams::FontType](/fine-reader/engine/api-reference/text-related-objects/charparams#fonttype) properties.

## Syntax

### C++

```cpp theme={null}
HRESULT SetFont(
  BSTR         FontName,
  FontTypeEnum FontType
);
```

### C\#

```csharp theme={null}
void SetFont(
  string       FontName,
  FontTypeEnum FontType
);
```

### Visual Basic .NET

```vb theme={null}
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](/fine-reader/engine/api-reference/enumerations/fonttypeenum) enumeration.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams)

[FontTypeEnum](/fine-reader/engine/api-reference/enumerations/fonttypeenum)
