# IFontCollectionBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/fonts/trait-ifontcollectionbase/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait IFontCollectionBase: IFontCollection
```

A font collection deriving from [`FontCollectionBase`](/docs/0.5.0/api/ferroui-base/media/fonts/struct-fontcollectionbase/), as a trait object:
the `this` of the base class members. Implemented automatically for every
[`FontCollectionBaseImpl`](/docs/0.5.0/api/ferroui-base/media/fonts/trait-fontcollectionbaseimpl/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/font_collection_base.rs#L247)

## Members

- [`base`](#function-base)
- [`try_match_character_from_platform`](#function-try_match_character_from_platform)

<a id="function-base"></a>

### base

```rust
fn base(self: &Self) -> &FontCollectionBase
```

The base class state of the collection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/font_collection_base.rs#L249)

<a id="function-try_match_character_from_platform"></a>

### try_match_character_from_platform

```rust
fn try_match_character_from_platform(self: &Self, codepoint: i32, key: FontCollectionKey, family_name: Option<&str>, culture: Option<&Locale>) -> Option<Rc<GlyphTypeface>>
```

Calls the collection's
`try_match_character_from_platform`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/font_collection_base.rs#L253)

## Trait implementations

- [`IFontCollectionBase`](/docs/0.5.0/api/ferroui-base/media/fonts/trait-ifontcollectionbase/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
