# PdfCIDFont

## Content

# Abstract Class: PdfCIDFont

The base abstract class representing a CID-keyed font in a PDF document.

## Extends

- [`ObjectBase`](ObjectBase)

## Extended by

- [`PdfCIDFontType0`](PdfCIDFontType0)
- [`PdfCIDFontType2`](PdfCIDFontType2)
- [`PdfCIDFontUnknown`](PdfCIDFontUnknown)

## Accessors

### baseFont

#### Get Signature

```ts
get baseFont(): string;
```

Gets the PostScript name of the CIDFont.

##### Returns

`string`

***

### descriptor

#### Get Signature

```ts
get descriptor(): PdfFontDescriptor;
```

Gets the [PdfFontDescriptor](PdfFontDescriptor) object describing the CIDFont's default metrics.

##### Returns

[`PdfFontDescriptor`](PdfFontDescriptor)

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ObjectBase`](ObjectBase).[`id`](ObjectBase#id)

***

### isEmbedded

#### Get Signature

```ts
get isEmbedded(): boolean;
```

Gets a value indicating whether the font is embedded.

##### Returns

`boolean`

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ObjectBase`](ObjectBase).[`om`](ObjectBase#om)

## Methods

### free()

```ts
free(): void;
```

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ObjectBase`](ObjectBase).[`free`](ObjectBase#free)

***

### getNativeFont()

```ts
getNativeFont(): Font;
```

Returns the [Font](Font) object created on the base of embedded data.
Note! The method returns null if the font is NOT embedded.

#### Returns

[`Font`](Font)

The [Font](Font) object.

***

### rebind()

```ts
rebind(omTo): void;
```

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ObjectBase`](ObjectBase).[`rebind`](ObjectBase#rebind)
