# IPretextTextMeasurerFactory

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-pretext-contracts/trait-ipretexttextmeasurerfactory/

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

```rust
trait IPretextTextMeasurerFactory
```

An explicitly registered, platform-independent measurement backend.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_measurement_contracts.rs#L11)

## Members

- [`name`](#function-name)
- [`is_supported`](#function-is_supported)
- [`priority`](#function-priority)
- [`create`](#function-create)
- [`shaper_factory`](#function-shaper_factory)

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

### name

```rust
fn name(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_measurement_contracts.rs#L12)

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

### is_supported

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_measurement_contracts.rs#L14)

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

### priority

```rust
fn priority(self: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_measurement_contracts.rs#L18)

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

### create

```rust
fn create(self: &Self, font: &str) -> Result<Rc<dyn IPretextTextMeasurer>, PretextError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_measurement_contracts.rs#L22)

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

### shaper_factory

```rust
fn shaper_factory(self: &Self) -> Option<Rc<dyn IPretextTextShaperFactory>>
```

A combined backend can supply shaping without a second registration.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_measurement_contracts.rs#L25)

## Trait implementations

- [`IPretextTextMeasurerFactory`](/docs/0.5.0/api/ferroui-pretext-contracts/trait-ipretexttextmeasurerfactory/)

## Availability

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