# PdfCIDFontType2

## Content

# Class: PdfCIDFontType2

Represents a CID-keyed font containing glyph descriptions based on the TrueType font format.

## Extends

- [`PdfCIDFont`](PdfCIDFont)

## Accessors

### baseFont

#### Get Signature

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

Gets the PostScript name of the CIDFont.

##### Returns

`string`

#### Inherited from

[`PdfCIDFont`](PdfCIDFont).[`baseFont`](PdfCIDFont#basefont)

***

### descriptor

#### Get Signature

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

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

##### Returns

[`PdfFontDescriptor`](PdfFontDescriptor)

#### Inherited from

[`PdfCIDFont`](PdfCIDFont).[`descriptor`](PdfCIDFont#descriptor)

***

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### isEmbedded

#### Get Signature

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

Gets a value indicating whether the font is embedded.

##### Returns

`boolean`

#### Inherited from

[`PdfCIDFont`](PdfCIDFont).[`isEmbedded`](PdfCIDFont#isembedded)

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

## Methods

### free()

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

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

#### Returns

`void`

#### Inherited from

[`PdfCIDFont`](PdfCIDFont).[`free`](PdfCIDFont#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.

#### Inherited from

[`PdfCIDFont`](PdfCIDFont).[`getNativeFont`](PdfCIDFont#getnativefont)

***

### 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

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