Reformatting a previously formatted document. A unique interface allows
preview and selection of both a color set and a font set. A color set comprises
a plurality of colors defining a color scheme. The font set comprises a plurality
of fonts defining a font theme. A format set is defined by the selection of a color
set and a font set. A format set comprises a plurality of formats, each format
comprising a format font name, a format font size, a format font color, and other
properties. Once a format set is determined, the document is reformatted in such
a way as to largely maintain the proportionality and integrity of its previous
formatting. In so doing, each discrete portion of text in the document is analyzed
to determine its format properties. Each format in the format set is then compared
to the text format. Points are added to a match quality value associated with the
format when it is determined that a property of the format matches a property of
the existing text format. The match quality values for each format in the format
set are compared and the format having the greatest associated match quality value
is applied to the discrete portion of text.