1. Field of the Invention
The present invention relates to a program that avoids occurrence of garbage characters at a time of printing a watermark or a fax cover sheet.
2. Description of the Related Art
In a conventional printer driver, as regards print of a watermark, a garbage print result occurs regardless of the user's intention if an input character sequence or a character sequence, which is to be input, cannot be expressed with a selected font.
The input character sequence, or the character sequence that is to be input, is now referred to as “selection character sequence”, and the selected font is referred to as “selection font”.
An example of the case where a selection character sequence cannot be expressed with a selection font is that a 2-byte selection character sequence, “A, I, U, E, O” (Japanese characters), cannot be expressed with a 1-byte font such as “Times New Roman”. This is an obvious phenomenon since a 1-byte font includes no 2-type character information.
If a watermark is generated and printed while mismatch between the selection character sequence and the selection font is not corrected, the problem of occurrence of garbage characters will arise.
Besides, as regards a fax driver, if there is mismatch between a selection character sequence and a selection font, the problem of occurrence of garbage characters will arise in printing.
The object of an aspect of the present invention is to provide a program that enables printing by avoiding occurrence of a garbage character due to mismatching between a selection character sequence and a selection font.
According to an aspect of the present invention, there is provided a program that operates a printing apparatus in a system in which a personal computer and the printing apparatus are connected, the program comprising: confirming, when a print setting is instructed, whether there is mismatch between a selected character sequence and a selected font; switching, if there is mismatch, the font to a system default font; and executing a printing process using the switched system default font and the character sequence.
Additional objects and advantages of an aspect of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of an aspect of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out hereinafter.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate preferred embodiments of the invention, and together with the general description given above and the detailed description of the embodiments given below, serve to explain the principles of an aspect of the invention.
An embodiment of the present invention will now be described with reference to the accompanying drawings.
The printing system comprises a personal computer 1 and a digital multi-function peripheral (MFP) serving as printing means.
The personal computer 1 comprises a CPU 10 that executes an overall control, a ROM 11 that stores a control program, etc., a RAM 12 that stores data, a hard disk drive (HDD) 13, a display unit 14, a keyboard 15, a mouse 16, and an interface (I/F) 17 that is connected to a telephone network (not shown).
The HDD 13 stores a printer driver 13a and a fax driver 13b.
Next, referring to a flow chart of
To start with, the CPU 10 displays a watermark setting button on the display unit 14.
When the watermark setting button is pressed by the user (ST1), the CPU 10 confirms whether there is mismatch between a selection character sequence and a selection font, on the basis of the printer driver 13a that is stored in the HDD 13 (ST2).
If there is mismatch, the CPU 10 switches the font to a system default font on the basis of the printer driver 13a (ST3).
When the font is switched to the system default font in step ST3, the CPU 10 executes a watermark generation process using the printer driver 13a (ST4).
If there is no mismatch in step ST2, the CPU 10 executes the watermark generation process using the printer driver 13a (ST4).
Next, referring to a flow chart of
To start with, the CPU 10 displays a fax cover sheet setting button on the display unit 14.
When the fax cover sheet setting button is pressed by the user (ST11), the CPU 10 confirms whether there is mismatch between a selection character sequence and a selection font, on the basis of the fax driver 13b that is stored in the HDD 13 (ST12).
If there is mismatch, the CPU 10 switches the font to a system default font on the basis of the fax driver 13b (ST13).
When the font is switched to the system default font in step ST13, the CPU 10 executes a fax cover sheet generation process using the fax driver 13b (ST14).
If there is no mismatch in step ST12, the CPU 10 executes the fax cover sheet generation process using the fax driver 13b (ST14).
As has been described above, according to the embodiment of the present invention, occurrence of garbage characters due to mismatch between a font and a character sequence is avoided in connection with a user's request for watermark printing, and a failure in print can be prevented.
In addition, a print error can be prevented without a redoing operation by the user.
Furthermore, since switching is effected to the default font of the operating system that is used by the user, garbage can be avoided in various environments.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.