## FontRepository::FindFont(const System::String\&, FontStyles) method


Searches and returns font with specified font name and font style.

```cpp
static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontFamilyName, FontStyles stl)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fontFamilyName | const System::String\& | [Font](../../font/) family name. |
| stl | FontStyles | [Font](../../font/) style value. |

### ReturnValue

[Font](../../font/) object corresponding to search request parameters.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../font/)
* Class [String](../../../system/string/)
* Enum [FontStyles](../../fontstyles/)
* Class [FontRepository](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## FontRepository::FindFont(const System::String\&, FontStyles, bool) method


Searches and returns font with specified font name and font style ignoring or honoring case sensitivity.

```cpp
static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontFamilyName, FontStyles stl, bool ignoreCase)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fontFamilyName | const System::String\& | [Font](../../font/) family name. |
| stl | FontStyles | [Font](../../font/) style value. |
| ignoreCase | bool | case sensitivity |

### ReturnValue

[Font](../../font/) object corresponding to search request parameters.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../font/)
* Class [String](../../../system/string/)
* Enum [FontStyles](../../fontstyles/)
* Class [FontRepository](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## FontRepository::FindFont(const System::String\&) method


Searches and returns font with specified font name.

```cpp
static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fontName | const System::String\& | [Font](../../font/) name. |

### ReturnValue

[Font](../../font/) object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../font/)
* Class [String](../../../system/string/)
* Class [FontRepository](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
## FontRepository::FindFont(const System::String\&, bool) method


Searches and returns font with specified font name ignoring or honoring case sensitivity.

```cpp
static System::SharedPtr<Font> Aspose::Pdf::Text::FontRepository::FindFont(const System::String &fontName, bool ignoreCase)
```


| Parameter | Type | Description |
| --- | --- | --- |
| fontName | const System::String\& | [Font](../../font/) name. |
| ignoreCase | bool | case sensitivity |

### ReturnValue

[Font](../../font/) object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Font](../../font/)
* Class [String](../../../system/string/)
* Class [FontRepository](../)
* Namespace [Aspose::Pdf::Text](../../)
* Library [Aspose.PDF for C++](../../../)
