Patent ID: 8035825

Claim:
A document editing device comprising: a data set storage unit that stores a plurality of data sets, each including a character string, an attribute of the character string, and a font size for the attribute; a threshold value storage unit that stores a threshold value indicating an acceptable range for a ratio between font sizes for at least two of a plurality of attributes stored in the data set storage unit; a ratio calculation unit that calculates the ratio between the font sizes for at least two of the plurality of attributes stored in the data set storage unit; a resize unit that changes the font sizes for at least two of the plurality of attributes so as to cause the ratio between the font sizes for at least two of the plurality of attributes to fall within an acceptable range if the ratio calculated by the ratio calculation unit is outside the acceptable range indicated by the threshold value stored in the threshold value storage unit; and a recommended value storage unit that stores a recommended value for the ratio between at least two of the plurality of attributes stored in the data set storage unit, wherein the resize unit is configured to change the font sizes for at least two of the plurality of attributes so that the font sizes fall within the acceptable range and so as to minimize a difference in font size from the recommended value stored in the recommended value storage unit.