Show / Hide Table of Contents

# Class Optimizer.TextSettings

A class that stores text optimization settings.

##### Inheritance

object
Optimizer.TextSettings

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public class Optimizer.TextSettings

### Constructors

#### TextSettings()

create an TextSettings object with default options

##### Declaration

    public TextSettings()

### Methods

#### EmbedFonts(bool)

Sets whether fonts should be embedded. This will generally increase the size of the file, but will make the file appear the same on different machines.
Font embedding is off by default.

##### Declaration

    public void EmbedFonts(bool embed)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | embed | if true all fonts will be embedded.

#### SubsetFonts(bool)

Sets whether embedded fonts will be subset. This will generally reduce the size of fonts, but will strip font hinting. Subsetting is off by default.

##### Declaration

    public void SubsetFonts(bool subset)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | subset | if true all embedded fonts will be subsetted.