# RtfFont

Font entry used by an RTF document. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Rtf API Reference.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfFont.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L10)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

Font entry used by an RTF document.

## Inheritance

- object
- RtfFont

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [RtfDocument.Fonts](/api/rtf/officeimo-rtf-rtfdocument/#property-fonts)

### Accepted by parameters 1

- Method [RtfLosslessEditor.SetFont](/api/rtf/officeimo-rtf-rtflosslesseditor/#method-setfont-officeimo-rtf-rtffont) parameter `font`

Filter members 

Show inherited

## Constructors

`public RtfFont(int id, string name)` [#](#constructor-ctor-int32-string)

[RtfFont.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L10)

Initializes a font.

Parameters

**id int required**

**name string required**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int Id { get; }` [#](#property-id)

[RtfFont.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L16)

RTF font identifier.

`public string Name { get; }` [#](#property-name)

[RtfFont.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L19)

Font display name.

`public RtfFontFamily? Family { get; set; }` [#](#property-family)

[RtfFont.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L22)

Optional RTF font family classification.

`public int? Charset { get; set; }` [#](#property-charset)

[RtfFont.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L25)

Optional character set from \fcharset.

`public int? Pitch { get; set; }` [#](#property-pitch)

[RtfFont.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L28)

Optional pitch request from \fprq.

`public int? CodePage { get; set; }` [#](#property-codepage)

[RtfFont.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L31)

Optional code page from \cpg.

`public int? Bias { get; set; }` [#](#property-bias)

[RtfFont.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L34)

Optional font bias from \fbias.

`public string? AlternateName { get; set; }` [#](#property-alternatename)

[RtfFont.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L37)

Optional alternate font name from the {\*\falt ...} destination.

`public string? Panose { get; set; }` [#](#property-panose)

[RtfFont.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L40)

Optional raw PANOSE classification from the {\*\panose ...} destination.

`public string? NonTaggedName { get; set; }` [#](#property-nontaggedname)

[RtfFont.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L43)

Optional non-tagged font name from the {\*\fname ...} destination.

`public RtfFontEmbedding? Embedding { get; set; }` [#](#property-embedding)

[RtfFont.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfFont.cs#L46)

Optional embedded font metadata from the {\*\fontemb ...} destination.

<!-- PowerForge markdown artifact sha256:854EB859CD2DAFB19EB4FC7A57C77C5301294921794A046DE4749EDD2CC00E65 -->
