摘要 |
An image data generating device generates image data that have a configuration including two or more text lines, one or more columns contained in each text line, and two or more rows contained in each column, and that are formed of a plurality of image data constituent elements. The image data generating device includes: a first data buffer that retains a first plurality of image data constituent elements contained in an upper text line of two vertically adjacent text lines out of the two or more text lines; a second data buffer that retains a second plurality of image data constituent elements contained in a lower text line of the two vertically adjacent text lines out of the two or more text lines; and a data analysis section that determines whether or not one image data constituent element out of the first plurality of image data constituent elements is present in a lower row of each column contained in the upper text line and whether or not one image data constituent element out of the second plurality of image data constituent elements is present in an upper row of each column contained in the lower text line. The data analysis section decides whether to decrease a spacing between the two vertically adjacent text lines on the basis of the determination result, and determines a decreased width in a case where the spacing is decreased. |