Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# Optimizer.TextSettings

extends Object

java.lang.Object
↳ | com.pdftron.pdf.Optimizer.TextSettings

## Class Overview

A class that stores text optimization settings.

## Summary

Public Constructors
| TextSettings() create an TextSettings object with default options

Public Methods
void | embedFonts(boolean embed) Sets whether fonts should be embedded.
void | subsetFonts(boolean subset) Sets whether embedded fonts will be subset.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public TextSettings ()

create an TextSettings object with default options

## Public Methods

#### public void embedFonts (boolean embed)

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.

##### Parameters

embed | if true all fonts will be embedded.

#### public void subsetFonts (boolean subset)

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.

##### Parameters

subset | if true all embedded fonts will be subsetted.