# FontIconSource

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-fonticonsource/

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

```rust
struct FontIconSource
```

The description of a [`FontIcon`](/docs/0.5.0/api/ferroui-controls/struct-fonticon/) (WinUI's `FontIconSource`).

Missing (docs/porting/winui-controls.md, FontIcon): `IsTextScaleFactorEnabled`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L144)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`glyph_property`](#function-glyph_property)
- [`font_family_property`](#function-font_family_property)
- [`font_size_property`](#function-font_size_property)
- [`font_style_property`](#function-font_style_property)
- [`font_weight_property`](#function-font_weight_property)
- [`mirrored_when_right_to_left_property`](#function-mirrored_when_right_to_left_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`glyph`](#function-glyph)
- [`set_glyph`](#function-set_glyph)
- [`font_family`](#function-font_family)
- [`set_font_family`](#function-set_font_family)
- [`font_size`](#function-font_size)
- [`set_font_size`](#function-set_font_size)
- [`font_style`](#function-font_style)
- [`set_font_style`](#function-set_font_style)
- [`font_weight`](#function-font_weight)
- [`set_font_weight`](#function-set_font_weight)
- [`mirrored_when_right_to_left`](#function-mirrored_when_right_to_left)
- [`set_mirrored_when_right_to_left`](#function-set_mirrored_when_right_to_left)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L147)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<FontIconSource>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L147)

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

### glyph_property

```rust
fn glyph_property() -> &'static StyledProperty<String>
```

Defines the `Glyph` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L203)

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

### font_family_property

```rust
fn font_family_property() -> &'static StyledProperty<Option<FontFamily>>
```

Defines the `FontFamily` property: `None` by default, which leaves the icon its own (the
theme's `SymbolThemeFontFamily`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L203)

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

### font_size_property

```rust
fn font_size_property() -> &'static StyledProperty<f64>
```

Defines the `FontSize` property: 20 by default, as `FontIcon`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L203)

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

### font_style_property

```rust
fn font_style_property() -> &'static StyledProperty<FontStyle>
```

Defines the `FontStyle` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L203)

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

### font_weight_property

```rust
fn font_weight_property() -> &'static StyledProperty<FontWeight>
```

Defines the `FontWeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L203)

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

### mirrored_when_right_to_left_property

```rust
fn mirrored_when_right_to_left_property() -> &'static StyledProperty<bool>
```

Defines the `MirroredWhenRightToLeft` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L203)

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

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L235)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L240)

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

### glyph

```rust
fn glyph(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L243)

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

### set_glyph

```rust
fn set_glyph(self: &Self, value: impl Into<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L246)

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

### font_family

```rust
fn font_family(self: &Self) -> Option<FontFamily>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L249)

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

### set_font_family

```rust
fn set_font_family(self: &Self, value: impl Into<Option<FontFamily>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L252)

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

### font_size

```rust
fn font_size(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L255)

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

### set_font_size

```rust
fn set_font_size(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L258)

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

### font_style

```rust
fn font_style(self: &Self) -> FontStyle
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L261)

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

### set_font_style

```rust
fn set_font_style(self: &Self, value: FontStyle)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L264)

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

### font_weight

```rust
fn font_weight(self: &Self) -> FontWeight
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L267)

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

### set_font_weight

```rust
fn set_font_weight(self: &Self, value: FontWeight)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L270)

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

### mirrored_when_right_to_left

```rust
fn mirrored_when_right_to_left(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L273)

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

### set_mirrored_when_right_to_left

```rust
fn set_mirrored_when_right_to_left(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/icon_source.rs#L276)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`IconSourceImplExt`](/docs/0.5.0/api/ferroui-controls/trait-iconsourceimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<FontIconSource>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`IconSourceImpl`](/docs/0.5.0/api/ferroui-controls/trait-iconsourceimpl/)

## Availability

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