PRINTER HAVING A FONT MEMORY

Abstract: In a printing apparatus which can specify a font memory irrespective of its mounting position, signals supplied from an external apparatus are received by an interface section (10). A controller section (12) checks whether the received signals are a font specifying command for specifying a font memory or are character data to be printed. When the received signals are character data, character pattern data corresponding thereto is generated using a font memory in a pattern generation section (14) corresponding to a font specifying number currently specified by the controller sec­ tion (12), and is printed by a printer driver section (16). When the received signals are a font specifying command, the controller section (12) temporarily stores a font name speci­ fied by the font specifying command and searches the speci­ fied font memory by sequentially referring the font memo­ ries in a pattern generator section (14) to determine the font specifying number. However, when the specified font mem­ ory is not mounted, an alarm signal is generated from an alarm section (30).

Description: The present invention relates to a printing apparatus which can print using a font memory specified from a plurality of font memories irrespective of mounting position, and a specifying method therefor. Various conventional printing apparatuses can print single documents with several fonts (e.g., gothic, italic, etc.). Such printing apparatuses have a cartridge mounted thereon containing a plurality of font memories which store font data to effect the operation described above. Therefore, when font memories or cartridges are exchanged in accordance with a font to be printed, a document featuring various fonts can be produced. In such a printing apparatus, each font memory is uniquely determined by a font specifying number corresponding to its physical mounting position in the cartridge. More specifically, a printing operation is carried out by a font memory corresponding to the font specifying number specified by a user in a program, and the printing apparatus itself has no determination means for specifying the font memory. For this reason, when a user selects a desired font (i.e., a desired font memory), a printing program must be modified to correspond to a given font specifying memory, or a mounting position of the font memory in the cartridge must be changed. Therefore, a conventional apparatus is very inconvenient to use because erroneously selected fonts can only be found by checking the printed output. Prior art document GB-A-2 106 677 discloses an electronic printer comprising character input means capable of inputting a plurality of characters, a first read-only memory for storing information of the characters of said character input means, first print means capable of printing a first set of characters in response to an output signal from said first read-only memory, a second read-only memory for storing information of a second set of characters not included in said first set of characters, said selection means for selecting said read-only memory when second print means capable of printing at least said second set of characters is used in place of said first print means. It is an object of the present invention to provide a printing apparatus which can select an appropriate font memory from a plurality of font memories irrespective of its mounting position in a cartridge and perform a printing operation using the selected font memory, and to provide a method for specifying a font memory. To solve this object the present invention provides a printing apparatus and a method of specifying a font memory as stated in claims 1 and 11, respectively. According to the printing apparatus of the present invention as described above, if one font name is specified, the desired font memory can be specified from a plurality of font memories irrespective of its mounting position, and a desired printed output can be obtained. As a result, the work load of a user can be reduced, and a printing operation can certainly be performed using the specified font memory. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram of a printing apparatus according to an embodiment of the present invention; Fig. 2 is a view showing a storage content of a font memory in Fig. 1; and Figs. 3A to 3C are flow charts, in which Fig. 3A is a flow chart showing a general operation, Fig. 3B is a flow chart showing a printing operation, and Fig. 3C is a flow chart when a font memory is specified and alarm processing is executed. A printing apparatus according to an embodiment of the present invention will now be described with reference to the accompanying drawings. As shown in Fig. 1, the printing apparatus of the present invention comprises interface section 10, controller section 12, pattern generator section 14, and printer driver section 16. Interface section 10 comprises interface 20 connected to system bus 17, and receives a data signal, a command signal, and control signal from external apparatus (e.g., host computer) 32. In addition, section 10 outputs a control signal necessary for a signal-receiving operation to external apparatus 32. Furthermore, section 10 can include a circuit for generating a signal to apparatus 32. Pattern generator section 14 comprises at least one fixed font memory 24 and at least one detachable cartridge 25 consisting of at least one font memories 26 and/or 27, and is connected to system bus 17. Font memory 24 or 26 stores, for example, a gothic or italic font pattern. Each font memory is constituted by a ROM, and a storage area thereof is divided into two areas, as shown in Fig. 2. One of the storage areas stores a font name of the ROM for identification, and the other stores character pattern data. In this embodiment, the font name is stored in the ROM itself, but can be stored in an external circuit of the ROM. When each font memory is accessed, it outputs the font name and the character pattern data corresponding to the input character code data. Printer driver section 16 is connected to system bus 17, and comprises controller driver 28, mechanism 29, and alarm 30. Controller driver 28 receives an input character pattern data and controls mechanism 29 to print the data, under the control of CPU 21. When CPU 21 detects some abnormality, alarm 30 generates an alarm under the control of controller driver 28. Controller section 12 comprises microprocessor (CPU) 21, ROM 22, and RAM 23, and CPU 21 controls the overall apparatus of this invention in accordance with a program written in ROM 22. RAM 23 stores data and information necessary for the printing operation. The operation of the printing apparatus of the present invention shown in Fig. 1 will now be described with reference to Figs. 3A to 3C. The general operation will first be described with reference to Fig. 3A. Character code data and a font specifying command data for specifying the font memory which are input from external apparatus 32 (e.g., a host computer), are received by interface 20 under the control of CPU 21 (step S1). Interface 20 is controlled by CPU 21 in accordance with a normal communication technique so that data does not overflow RAM 23. CPU 21 checks whether the received data is a font specifying command or character code data (step S2). When the received data is the character code data, normal printing processing is executed (step S3). Fig. 3B shows the printing processing in detail. When the received data is the font specifying command, a font name specified by the input font specifying command is temporarily stored, and the font memories in section 14 are sequentially referred to specify the corresponding font name, i.e., the font memory (step S4). The flow then returns to step S1, and the apparatus awaits the next input data. The printing operation will now be described with reference to Fig. 3B. Received printing data is supplied to a font memory (e.g., memory 24), which is currently specified by a PFN (physical font name) register in CPU 21 (step S31). The currently specified font memory generates character pattern data corresponding to the input character code data. The converted data is then stored in RAM 23 of section 12 (step S32) and is output to driver 28 under the control of CPU 21. Driver 28 drives mechanism 29 under the control of CPU 21 to cause it to print the character pattern data (step S33). In this way, the input character code data from external apparatus 32 is printed. In the above description, the character code data is output to the font memory immediately after it is supplied to interface 20. However, CPU 21 can perform control such that the input character code data from interface 20 is temporarily stored in RAM 23 and the stored data is then supplied to the font memory specified by the PFN register in the printing operation, so as to supply the converted character pattern data from the font memory to driver 28. The operation for searching the font memory in accordance with the font specifying command will now be described with reference to Fig. 3C. When it is determined in step S2 that the data received by interface 20 is a font specifying command, the font name specified by the command is temporarily stored in an LFN (logical font name) register (step S50). The LFN register can be a register allocated in CPU 21 or RAM 23. CPU 21 supplies to external apparatus 32 through interface 20 signals indicating that CPU 21 is currently searching the specified font memory (step S51), so as to temporarily interrupt the receiving operation. Therefore, external apparatus 32 cannot transmit any data, including character code data. CPU 21 then sets a minimum of font numbers i corresponding to physical mounting positions of font memories is section 14 in the PFN register (step S52). Next, CPU 21 checks if a font memory corresponding to font number i is mounted (step S53). In this case, all the output terminals constituting the font memories must be connected to a power source voltage through a pull up resistor to be pulled up. A given address of the font memory is accessed and it is checked if the data read out therefrom is "FF" in hexadecimal notation. When the data is "FF" it is determined that the specified font memory is not mounted. More specifically, when the specified font memory is not mounted, since the output terminals of the memory are pulled up, "FF" is read out as if it is stored in the memory when the given address is accessed. Therefore, it can be determined that the specified font memory is not mounted. It should be noted that no "FF" data must be stored at the given address on the font memory. Thus, if N (NO) in step S53, font number i in the PFN register is incremented by one (step S54), and the flow returns to step S53. However, if Y in step S53, CPU 21 accesses the font memory corresponding to font number i , and loads the font name thereof (step S55). CPU 21 then checks if the loaded font name coincides with that in the LFN register (step S56). When Y in step S56, font number i of the PFN register (i.e., the specified font memory) is determined (step S57). When the font memory is determined, CPU 21 supplies to external apparatus 32 through interface 20 signals indicating that searching of the font memory is completed (step S58). Thereafter, CPU 21 awaits the next input (normally, character code data) from external apparatus 32. When no coincidence is found between the loaded font name and the font name in the LFN register, font number i of the PFN register is again incremented by one (step S54) and the flow returns to step S53. The above operation is repeated in this manner, and the specified font memory is searched. In this case, CPU 21 first searches fixed font ROM 14, and then searches the font memories in the loaded cartridge. After font number i in the PFN register is incremented by one in step S54, CPU 21 checks in step S60 if number i exceeds a maximum physical font number (i.e., a maximum of numbers corresponding to physical mounting positions of font memories). If N in step S60, step S53 is executed again, and the searching operation is continued. However, when Y in step S60, i.e., when the number i exceeds the maximum number, alarm processing is executed (step S61). In step S61, controller driver 28 drives alarm 30 under the control of CPU 21 to signal, by means of one or both of an LED and a buzzer, that the specified font memory is not mounted. This control loop is repeated until the cause of the alarm is removed. At the same time, CPU 21 can supply to external apparatus 32 through interface 20 signals indicating that the specified font memory is not mounted (step S62). The alarm processing is continued until an appropriate cartridge is mounted. When this is accomplished, the alarm processing is cancelled (step S63). More specifically, the LED and the buzzer are disabled, and no alarm signal is supplied to apparatus 32 (step S64). Next, the minimum font specifying number of the font memories in the cartridge is loaded in the PFN register (step S65), and step S53 is executed. In the apparatus of the present invention, when a power source is turned on, default processing can be performed. In default processing, a font number corresponding to a pre-specified font memory (e.g., a minimum of font numbers corresponding to the fixed font memories) is loaded in the PFN register. In this apparatus, transmission of the font specifying command can be requested from external apparatus 32 at the same time the power source is turned on. In this way, processing for searching a font name specified by the external apparatus is executed with respect to the font memories with preset font names. Thereby, a printing operation can be executed based on the font memory with the specified font name. Since the font memories can be accessed irrespective of their mounting positions, their positions in a cartridge need not be changed. In addition, a printing program need not be modified to correspond with a font specifying number of a given font memory in a cartridge, thus preventing the font memory from being erroneously specified. Furthermore, since the alarm processing can be executed, a user can detect a non-mounted state of the specified font memory before the printing operation begins. For this reason, the specified font memory can be effectively chosen or changed, as needed.

Claims: A printing apparatus which can specify a font memory irrespective of a mounting position thereof, comprising: a character pattern memory means (14) comprising at least one font memory storing character pattern data for generating character pattern data corresponding to input character code data using a specified font memory; an output means (12) for outputting character code data to said character pattern memory means (14) in response to a printing instruction; and printing means (16) for printing the character pattern data from said character pattern memory means (14); characterized in that each font memory stores an identification font name, one area of the font memory storing the character pattern data and the other area storing the font name, and a font memory specifying means (12) sequentially searches the font memories in said character pattern memory means to specify the font memory to be used in a printing operation in response to a font specifying instruction. The apparatus according to claim 1, characterized in that said character pattern memory means comprises at least one fixed font memory (24) and at least one detachable cartridge (25) including at least one font memory. The apparatus according to claim 2, characterized in that said each font memory (24, 26, 27) in said character pattern memory means comprises a read only memory, the storage area thereof being divided into said two areas. The apparatus according to claim 2, characterized in that said font memory specifying means (12) comprises: first storage means (12) for temporarily storing the font name specified by the font specifying instruction; second storage means (12) for temporarily storing a minimum font number of the font numbers corresponding to physical mounting positions of the font memories in said character pattern memory means; first determination means (12) for determining if the font memory corresponding to the font number stored in said second storage means is mounted; means (12) for incrementing the font number stored in said second storage means by one to enable said first determination means again when said first determination means determines that the font memory is not mounted; second determination means (12) for reading out the font name from the specified font memory by said second storage means, and checking if the readout font name coincides with the font name stored in said first storage means, when said first determination means determines that the font memory is mounted; means (12) for incrementing the font number stored in said second storage means by one to enable said first determination means when said second determination means determines that no coincidence is detected between the font names; and means (12) for specifying a font memory to be used in the printing operation based on the font number stored in said second storage means when said second determination means determines that a coincidence is detected between the font names. The apparatus according to claim 4, characterized in that said first determination means includes a means for checking if the specified font memory is mounted depending on the response of said character pattern memory means when said character pattern memory means is accessed based on the font specifying number. The apparatus according to claim 4, characterized in that said font memory specifying means further comprises means (12) for generating a search signal indicating that the specified font memory is being searched in response to the font specifying instruction, and for cancelling generation of the search signal when the searching operation is completed, and the apparatus further comprises interface means (10) for inhibiting data input from an external apparatus in response to the search signal supplied from said font memory specifying means. The apparatus according to claim 4, characterized in that said font memory specifying means (12) further includes generation means (12) for generating an alarm indicating that the specified font memory is not mounted when the specified font memory cannot be found after font memories are checked up to a maximum font number of numbers corresponding to physical mounting positions thereof; and alarm means (12) for signalling an external apparatus in response to the alarm generated from said generation means. The apparatus according to claim 7, characterized by further comprising means (10) for supplying, to said external apparatus in response to the alarm, signals indicating that the specified font memory is not mounted. The apparatus according to claim 7, characterized in that said alarm means (30) comprises an LED. The apparatus according to claim 7, characterized in that said alarm means (30) comprises a buzzer. A method of specifying a font memory irrespective of a mounting address thereof, wherein a printing operation is performed using a currently specified font memory characterized by comprising: sequentially inquiring font memories to search the specified font memory, each font memory storing an identification font name and one area of font memory storing character pattern data and the other area storing the font name, and determining the font number corresponding to the physical mounting position of the specified font memory. The method according to claim 11, characterized in that the inquiry (S5) comprises: temporarily storing a specified font name in response to the font specifying instruction; loading a minimum font number of numbers corresponding to physical mounting positions of font memories; first checking if the font memory corresponding to the loaded font specifying number is mounted; incrementing the loaded font specifying number by one to execute the first checking step again when the specified font memory is not mounted; accessing the font memory corresponding to the font specifying number to load a font name therefrom when the specified font memory is mounted; checking if the loaded font name coincides with the stored font name; incrementing the loaded font number by one to execute the first checking step again when no coincidence is found therebetween; and determining the font specifying number and completing a search operation when a coincidence is found therebetween. The method according to claim 12, characterized in that temporarily storing the font name further includes outputting to an external apparatus a search signal indicating that a search operation is being performed in response to the font specifying instruction; and inquiring the font memories further includes cancelling the search signal when the searching operation is completed. The method according to claim 12, characterized in that the first checking step (S53) further comprises outputting an alarm indicating that the specified memory is not mounted when the specified memory is not found after font memories are checked up to a maximum font number of numbers corresponding to the physical mounting positions thereof. The method according to claim 14, characterized in that the alarm step further includes the step (S62) of outputting, to said external apparatus in response to the alarm, a signal indicating that the specified font memory is not mounted.

Inventors: SHIOTA, KEIICHI C/O PATENT DIVISION
Applicants: KABUSHIKI KAISHA TOSHIBA
Application year: 1986
Main classification: B41J5
IPC codes: G06F17, G06K15, B41J25, B41J5, G06F3