Output apparatus and method

Abstract: Method and apparatus in which a font whose use is intended to be restricted to a particular purpose, such as a specific emulation program, is identified in such manner as to prevent its use otherwise than as intended.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an output apparatus and method capable of specifying at least one useful output mode corresponding to given font data. Related Background Art There are two types of font in a character output apparatus such as a printing apparatus: ordinary fonts, and exclusive fonts for use by emulation programs. Ordinary fonts include internal fonts, provided in the apparatus, and card fonts supplied by a card. These fonts are stored in a table in the apparatus when power is turned on. An exclusive font for emulating is permitted to be used in accordance with a specific emulation program. If the characters of such an exclusive font are the same, or nearly the same, in appearance as those of one of the ordinary fonts in the printer (that is, the two fonts may differ only in, e.g., the range of sizes to which characters can be scaled), the exclusive font is stored in the table with the internal font. If the output apparatus supports an emulation and the exclusive font provided for use with the emulation program is the same, or nearly the same, in appearance as some internal font, that exclusive font may prove to be usable by other emulation programs. In this case, it is difficult to distinguish among these emulation programs, which may give rise to a problem of copyright. Some output apparatus have a function for storing non-internal-font characters which are produced by users, as font patterns, thus rendering such non-internal-font character patterns available for use as a font for printing whenever desired. A font stored in the table can be used by any processing language. In the case of an output apparatus which can store a non-internal character font and which supports many emulation programs, also, a stored non-internal character font for an specific emulation program can, unfortunately, be used for other emulation programs. Font format can affect these problems. If each emulation font has a different format from other such fonts, an exclusive font intended for a specific emulation can be used only for that emulation. SUMMARY OF THE INVENTION The present invention has been made in consideration of the above situation, and has as one of its concerns, to provide an output method and apparatus capable of permitting flexible selection of a font. The invention is set forth in independent claims 1, 9, 17 and 18. Other features and adavantages of the invention will be more fully understood from a consideration of the following detailed description of the preferred embodiments, taken in conjunction with the accompanying drawings, in which like elements are repesented by like reference characters throughout. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a cross-sectional view of a recording apparatus, such as a laser printer. Fig. 2 is a block diagram showing the internal construction of a printing apparatus. Fig. 3 is a schematic diagram illustrating data in an emulation table. Fig. 4 is a schematic diagram illustrating data in a character set table. Fig. 5 is a schematic diagram illustrating data in an exclusive font for an emulation program. Fig. 6 is a flow chart showing a process of taking exclusive font data in a first embodiment. Fig. 7 is a flow chart showing a process of controlling a font selection enabling flag. Fig. 8 is a flow chart showing a process of registering a non-internal-font character in a second embodiment. Fig. 9 is a cross-sectional view of an ink jet printer (IJRA). Fig. 10 is a schematic block diagram of a control unit for controlling such an ink jet printing apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The preferred embodiments according to the present invention will be described with reference to the accompanying drawings. [First Embodiment] Fig. 1 is a cross-sectional view of a recording apparatus, such as a laser beam printer, to which the character processing method of the present invention is applicable. A main body 100 (printer) of the apparatus receives and stores print information (character codes, etc.), from information and macro instructions supplied from an external host computer, generates character patterns (to be generated by the character pattern process of the present invention), forms patterns, and forms an image on a recording sheet serving as a recording medium. There are also shown an operation panel, including switches and LED indicators for various operations, and a printer control unit 101 for controlling the entire printer 100 and analyzing the character information supplied from the host computer. The printer control unit 101 converts the character information into a video signal of corresponding character patterns for supply to a laser driver 102, which drives a semiconductor laser 103 and on-off switches the laser beam 104 emitted from the semiconductor laser 103 according to the input video signal. The laser beam 104 is laterally deflected by a rotary polygonal mirror 105 to scan an electrostatic drum 106, thereby forming an electrostatic latent image of a character pattern thereon. The latent image is developed into a visible image by a developing unit 107 positioned around the electrostatic drum 106, and is transferred onto the recording sheet (a cut sheet stored in a cassette 108 mounted on the main body 100, and supplied therefrom by a feed roller 109, and transport rollers 110 and 111 to the electrostatic drum 106). The image processing apparatus described above exemplifies a laser beam printer. However, the present invention is not limited to this. The present invention is equally applied to an ink-jet printer, as described below. Fig. 9 is a perspective view of an ink-jet recording apparatus IJRA to which the present invention can be applied. Referring to Fig. 9, a carriage HC engages a helical groove 5005 of a lead screw 5004 rotated interlockingly with normal/reverse rotation of a drive motor 5013 through driving force transmission gears 5011 and 5009 having a pin (not shown) and can be reciprocated in the directions indicated by arrows a and b . An ink-jet cartridge IJC is mounted on the carriage HC. A paper press plate 5002 presses the paper in the carriage movement direction through a platen 5000. A photocoupler 5007 and 5008 is a home position detecting means for detecting the presence of a lever 5006 of the carriage within this range to switch the rotational direction of the motor 5013. A member 5016 supports a cap member 5022 for capping the front surface of a recording head. A suction device 5015 draws the ink from the cap to recover the recording head through an opening 5023 in the cap. A cleaning blade 5017 is moved back and forth by a member 5019, and the cleaning blade 5017 and the member 5019 are supported on a main body support plate 5018. The blade need not have the form shown, but can instead have another known form. A lever 5021 starts suction to recover the recording head. The lever 5021 is moved together with a cam 5020 engaged with the carriage. The driving force from the motor 5013 is controlled by a known transmitting means such as clutch switching. Capping, cleaning and suction recovery are performed by desired processes at the corresponding positions in accordance with the behavior of the lead screw 5004 when the carriage reaches the home position. If desired operations are performed at known timings, any scheme can be employed in this embodiment. A control arrangement for executing recording control of the respective components in the apparatus will be described with reference to the block diagram in Fig. 10. A control circuit includes an interface 1700 for inputting a recording signal, an MPU 1701, a program ROM 1702 for storing control programs executed by the MPU 1701, a dynamic RAM 1703 for storing various data (e.g., the recording signal and recording data supplied to the head), a gate array 1704 for controlling and supplying the recording data to a recording head 1708 and performing transfer control of data between the interface 1700, the MPU 1701, and the DRAM 1703, a carriage motor 1710 for moving the recording head 1708, a paperfeed motor 1709 for conveying recording sheets, a head driver 1705 for driving the head, and motor drivers 1706 and 1707 for driving the paperfeed motor 1709 and the carriage motor 1710, respectively. When a recording signal is input to the interface 1700, the recording signal is converted into print recording data by the gate array 1704 and the MPU 1701. The motor drivers 1706 and 1707 are driven to drive the recording head in accordance with the recording data supplied to the head driver 1705, thereby printing the recording information. It is possible to incorporate the constituent components of the present invention in the control arrangement of the ink-jet printer. Fig. 2 is a block diagram showing the control components of a printing apparatus. 100 is the main body of the printing apparatus. 101 is a printer controller. 2 is a host computer, which supplies data to the printer 100. 3 is a CUP which controls each process in the printer 100. 4 is an input interface which receives and stores data from the host computer 2. 5 is a program ROM which stores control programs illustrated in Figs. 6 and 7. 6 is a font ROM which stores a scalable font (one in which a character is described by stroke information, not dot information) in accordance with an input character code. 7 is an internal RAM which stores a emulation table 20 and character set table 30. 8 is an output unit for printing characters on paper. 9 is a card interface which takes card font data and an emulation program from a memory card (not shown) which is installed in the printer 100. Fig. 3 is a schematic block diagram of data of an emulation table. Many kinds of information, described in Fig. 3, are stored in the emulation table 20. The information is supplied internally by the printer or by the card. A table number portion 21 contains a specific register number for each emulation program in the emulation table 20. An emulation program address portion 22 shows the beginning address of each emulation program in, for example, the program ROM 5. The name of each emulation program is stored in an emulation name portion 23. An identifying number for each emulation program is stored in an emulation identifying number portion 24. Any other needed information on each emulation program is stored in an "other information" portion 25. Upon reference to the emulation table 20, the desired emulation program is executed. In Fig. 3, the emulation table 20 shows that five emulation programs A, B, C, D and E, which respectively have emulation identifying numbers 10, 20, 30, 40 and 50, are stored in the emulation, table of the printing apparatus. Figs. 4(a) and 4(b) are schematic diagrams of data of a character set table. In the character set table 30 (Fig. 4(a)), the addresses of internal fonts of the printing apparatus are registered, and information shows in which emulation program each font is usable. A font address 31 shows the head address of each font registered. A font information flag 32 includes two flags. One of them shows whether a font datum denotes "internal font", "card font" or "exclusive font of emulation". The other flag is for distinguishing font data from each other. In producing pattern data process, the distinguishing flag in the character set table 30 is useful for designating a font. A font selection enabling flag 33 shows whether each font datum is usable in the present output mode. A emulation flag 34 shows which emulation cards can use the various font data. Each bit number of the emulation flag 34 corresponds to a table number 21 as shown in Fig. 4(b). For example, if bit 0 of an emulation flag in relation to given font data is "1", emulation program A which corresponds to the table number 21 (number "0") can use the font data. Fig. 5 is a schematic diagram illustrating data of an exclusive font for an emulation program. The exclusive font is installed with the emulation information, or is stored in the ROM 6. An emulation font information unit 41 includes an identifying flag 41a, size information 41b, a relative pointer for exclusive font of emulation 41c, the number of usable emulations 41d, and an identifying emulation number 41e. The identifying flag 41a is for identifying the emulation font information unit 41 from others. The size information 41b shows the size of the information unit 41 and exclusive fonts of emulations A and B. The relative pointer to exclusive font of emulation 41c shows the address of the stored exclusive font of emulation A (reference character 42) or B (reference character 43). The number of usable emulations 41d identifies how many emulations can use the font data. The identifying emulation number 41e indicates the emulation identifying numbers (24 in Fig. 3) designated by the number of usable emulations 41d. In Fig. 5, the number of usable emulations 41d is 3. Thus, there are three identifying emulation numbers, "10", "30" and "40". In the data format shown in Fig. 5, the emulation font information unit 41 of the exclusive font A and B of emulation has been described. Figs. 6 and 7 are flow charts showing steps of the first embodiment of the printer apparatus as described above. Fig. 6 is a flow chart showing a process of taking exclusive font data in the first embodiment. A program of the flow chart is stored in ROM 5. When power is supplied to the printing apparatus 100, an initial process is executed, as are the processes of reading emulation, in step 1, and reading internal and card fonts, in step 2 of Fig. 6. In step 1, information related to a usable emulation program in the printing apparatus 100 is registered in the emulation table 20 of the RAM 7. The CPU 3 executes them. In step 2, information related to the inner font and the card font is registered in the character set table 30 of the internal RAM. The registered information in step 1 or step 2 is related to the normal font data. Therefore, the value of the emulation flag has no meaning. In step 3, the exclusive font of emulation is read and registered in the character set table 30 in Fig. 4. As mentioned above, the exclusive font of emulation handles the emulation font information. Thus, the information shown in Figs. 4(a) and 4(b) is stored. In the emulation font information unit 41, the identifying emulation numbers 41e are stored. The CPU 3 can identify a usable font for each emulation program, in accordance with this information. In this embodiment, when the information of the exclusive font of emulation is registered in the character set table 30, the CPU 3 controls each bit of the emulation flag 34 in Fig. 4(a) in accordance with the information. For example, the CPU 3 understands that the adequate emulation programs which have the identifying emulation numbers 10, 30 and 40 in Fig. 5 can use the registered exclusive emulation font. The CPU 3 reads the table number 21 (0, 2, 3) in Fig. 3 identifying the emulation programs which are applicable. Finally, the CPU 3 sets three bits of the emulation flag 34 in Fig. 4 in accordance with the table numbers 0, 2 and 3. In step 4, the CPU 3 shifts output mode to an output mode designated by the user. There are: a mode which produces a pattern by means of a printer language stored in the printing apparatus 1; and another mode which produces a pattern by means of another printer language which is supplied by an emulation program. The CPU 3 clears (ON→OFF) the font selection enabling flag in character set table 30 in step 5 at every shifting in step 4. A process of setting the font selection enabling flag in character set table 30 is described in Fig. 7, below. The CPU 3 executes the designated output process in step 6 with a suitable font. When selecting a font in each output mode, the CPU 3 always refers to the font selection enabling flag 33. In this way, an emulation program can use the exclusive fonts which are usable with that emulation program, in accordance with the font selection enabling flag 33. The CPU 3 determines whether a command for shifting from one output mode to another has been input or not. If such a command is input, the flow in Fig. 6 returns to step 5. The CPU 3 clears (ON→OFF) the font selection enabling flag in character set table in Fig. 5 again, and the CPU 3 executes a process of each output mode (steps 6 and 7 in Fig. 6). If NO in step 7 in Fig. 6, the flow returns to step 6 and the process is continued. When power is turned off or a command for shifting is input, the flow is out from step 6. Fig. 7 is a flow chart showing a process of controlling a flag which shows whether a font in a character set table is able to be selected or not (step 5 of Fig. 6). In step 11, the CPU 3 sets (ON→OFF) the font selection enabling flag 34 in character set table 30 in Fig. 5 in correspondence to ordinary fonts (internal fonts and card fonts). The CPU 3 can distinguish the internal font from card font by the font information flag 32 in Fig. 4 in step 11. The CPU 3 clears (ON→OFF) the font selection enabling flag 33 in correspondence to the registered exclusive font of emulation. The CPU 3 can distinguish the exclusive font of emulation from others by the font information flag 32 in Fig. 4 in step 12. The CPU 3 gets information about next output mode in step 13. The CPU 3 determines whether the output mode is an emulation mode in step 14. If YES in step 14, the flow advances to step 15. The CPU 3 sets up an emulation font in step 15 - step 19. If NO in step 14, this flow finishes. The CPU 3 gets the number of emulation table number 21 of a emulation program after step 15. The CPU 3 reads the emulation flag 34 of the exclusive font of emulation in the character set table 30 in step 16. The CPU 3 determines whether the bit which corresponds to the table number 21 is set or not in the emulation flag 34. If YES in step 17, the CPU 3 sets (ON→OFF) the font selection enabling flag 33 corresponding to the table number 21. Thus, the CPU 3 enables the exclusive font of the emulation program in question to be used in step 18. If NO in step 17, the CPU 3 understands that the exclusive font in question can't be used in this output mode. As mentioned above, the font selection enabling flag 33 is cleared so that the CPU 3 has this information. The flow advances to step 19. The CPU 3 determines whether there are other emulation programs to be processed. If YES in step 19, the flow returns to step 16. The process as described is repeated for such other emulation program. If NO in step 19, the flag setting process (Fig. 7) is finished. As mentioned above, in this embodiment, the CPU 3 can permit exclusive font data to be used in some common emulation modes or can permit exclusive font data to be used in a specific emulation mode in accordance with the specific information contained in the font information. Furthermore, in this embodiment, the exclusive font information includes the identifying emulation number which shows which emulation program can use it. Thus, the emulation flag can be stored in the character set table in accordance with the identifying emulation number. At each shifting of output mode, the CPU 3 controls the font selection enabling flag in accordance with the emulation flag. In this embodiment 1, the CPU 3 sets the emulation flag 34 in the character set table 30 in accordance with the identifying emulation number 41e registered in the emulation font information unit 41. The CPU 3 also determines whether the exclusive font of emulation can be used or not, with each working emulation program. But this process is not limited to this exact arrangement. For example, the CPU 3 can determine whether the exclusive font of emulation can be used by directly reading the identifying emulation number in the emulation font information unit 41. In any case, this invention affords flexible font selection by including information which specifies an emulation program that can use exclusive font data, in the emulation font information. (Second Embodiment) In the first embodiment, as described above, a process related to a ROM font is used. But in the second embodiment, the emulation flag in the character set table is applied to a non-internal font produced by a user. A registered non-internal font of an emulation program can be kept from use by another emulation program, by applying the emulation flag to the non-internal font. In the second embodiment, the CPU 3 sets a bit of the emulation flag 34 correspond to the emulation table number of a emulation program which is in use when a produced non-internal font cannot be used by another emulation program. This embodiment will be further described with reference to Fig. 8 showing a process of registering a non-internal font. In step 31, a desirable non-internal font is produced in accordance with an indication by the user. In step 32, the CPU 3 registers information such as address and font information about the produced non-internal font in the character set table 30. In step 33, the CPU 3 learns the output mode at present by reading the table number 21 in Fig. 3. If that mode is non-emulation mode, the CPU 3 can so ascertains by reading "-1" from the table number 21. In step 34, the CPU 3 determines whether the output mode at present is an emulation mode or not in accordance with the information in step 33. If YES in step 34, the flow advances to step 35. The CPU 3 sets the emulation flag 34 in accordance with the output mode at present, which is illustrated in step 33, and the process is finished. If NO in step 34, the process is already finished. As mentioned above, the CPU 3 can control the flag of the emulation flag 34 in relation to the non-internal font. After this, the CPU 3 can control the font selection enabling flag 33 of the character table 30 in Fig. 7. This ensures that the non-internal font of an emulation program can't be used for another emulation program. As mentioned above, when a non-internal font which is produced by a user for a emulation program is registered, a flag shows which emulation program can use it is stored in the character table 30. Thus, the non-internal font can be used for the enabled emulation program. Furthermore, this invention can be applied to a host computer if data for printing is converted to dot data in the host computer. The present invention may be applied to a system constituted by a plurality of devices or an apparatus constituted by one device. In addition, the present invention can be achieved by supplying a program to the system or apparatus. As mentioned above, each font datum contains information specifying an emulation program which can use it. So in each output mode, the system determines whether each font can be used or not. The present invention thus supplies a flexible font selection function.

Claims: A character output apparatus for outputting character patterns in response to received instructions, the apparatus having storage means storing font data, and having a plurality of modes including an emulation mode and output means for outputting character data processed by one of said modes, and characterised by storage means (30) adapted to store information indicating which font stored in the apparatus can be utilised by an emulation program in the emulation mode, and means (CPU3) for determining whether or not a font can be used by an emulation program on the basis of the information stored in said storage means. Apparatus according to claim 1, wherein said storage means stores a table containing data relating to each emulation program, and wherein the information includes an emulation flag (34) indicating a usable font for one or more emulation programs. Apparatus according to claim 2 wherein each emulation program has an emulation number (41 e) stored in an emulation font information means (41). Apparatus according to claim 3, wherein said determining means (CPU3) are adapted to judge (S17) for an emulation program whether or not the emulation flag is "on", and to set a font selection enabling flag (33) to "on" in response to a judgement that the emulation flag indicates "on". Apparatus according to claim 4, and having a card font, and wherein said determining means is adapted to set (S11) to "on" a font selection enabling flag in respect of the internal font of the apparatus and/or of the card font. Apparatus according to claim 5 wherein said determining means are adapted to set (S12) to "off" the font selection enabling flag in respect of the emulation font. Apparatus according to any preceding claim including output means (8) for outputting a character generated by utilising an emulation. Apparatus according to claim 7 wherein the output means comprise an ink jet printer or a laser beam printer. A method of outputting character patterns in response to received instructions using an output apparatus having a plurality of modes including an emulation mode the method comprising storing in storage means (30) information indicating which font stored in the apparatus can be utilised by an emulation program in the emulation mode, determining whether or not a font can be used by the emulation program on the basis of the information stored in said storage means, processing input data in a selected one of a plurality of modes to generate character data, and outputting the generated character data. A method according to claim 9, wherein said storage means stores a table containing data relating to each emulation program, and wherein the information includes an emulation flag (34) indicating a usable font for one or more emulation programs. A method according to claim 10 wherein each emulation program has an emulation number (41 e) stored in an emulation font information means (41). A method according to claim 11, including judging (S17) for an emulation program whether or not the emulation flag (34) is "on", and setting a font selection enabling flag (33) to "on" in response to a judgement that the emulation flag indicates "on". A method according to claim 12, wherein the apparatus includes a card font, and setting (S11) to "on" a font selection enabling font flag in respect of the internal font of the apparatus and/or of the card font. A method according to claim 13 including setting (512) to "off" the font selection enabling flag in respect of the emulation font. A method according to any one of claims 9 to 14 including outputting a character generated by utilising an emulation. A method according to claim 15 wherein the character is output by an ink jet printer or a laser beam printer. A storage medium storing processor implementable instructions for controlling a processor to carry out the method of any one of claims 9 to 16. An electrical signal carrying processor implementable instructions for controlling a processor to carry out the method of any one of claims 9 to 16.

Inventors: MOCHIZUKI YASUSHI, MOCHIZUKI, YASUSHI, MOCHIZUKI, YASUSHI, C/O CANON K.K.
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1994
Main classification: G06K15
IPC codes: G09G5, G06F3, G06K15, B41J2, B41J5, B41J29