Outputting apparatus and method

Abstract: An outputting apparatus such as a laser beam printer comprises a memory to store designation information to designate a selection-impossible font from a plurality of fonts and a selector to select a font which is most adaptive from the fonts other than the selection instructed font in accordance with an input of selection instruction information to instruct so as to select the selection-impossible font that is designated by the designation information stored in the memory. The plurality of fonts include internal fonts provided in the apparatus and fonts which are supplied from the outside.

Description: The present invention relates to outputting apparatus and method of a printer, a display (CRT, LCD), or the like in which information supplied from the outside is analyzed and the information is transformed into a visible image form on the basis of the result of the analysis and is outputted. Hitherto, in an outputting apparatus, since a font is selected on the basis of information regarding the font selection supplied from the outside, in the case where the font was newly added without changing the information supplied from the outside, the added font cannot be selected unless the information regarding the font selection in the information supplied from the outside is changed, so that there is a problem such that even when the number of kinds of fonts increases, they cannot be effectively used. It is known from the Hewlett Packard (trade mark) Desk Jet Printer Owner's Manual, Manual Part No. 02276-90039, to provide a printer which selects a font by comparing attributes of available fonts with features desired by a host computer in order to determine the most appropriate font. According to the present invention there is disclosed an outputting apparatus for receiving data and a font designation instruction defining a designated font, and for outputting characters in accordance with a selected font selected from a plurality of fonts; the apparatus comprising: setting means operable to set one of the plurality of fonts as being a selection-impossible font; memory means operable to store information distinguishing the selection-impossible font from one or more selection-possible fonts of the plurality of fonts; and selection means responsive to the font designating instruction and to the information stored in the memory means to select a font such that the selection-impossible font is not selected wherein, if the font which is designated by said font designating instruction is a selection-possible font, said selection means is operable to select the designated font and, if a designated font is a selection-impossible font, said selection means is operable to select as the selected font a selection-possible font whose attributes are nearest to the attributes of the designated font. The above plurality of fonts may include fonts provided in the apparatus and fonts which are supplied from the outside. The font designation instruction may be supplied from a panel or by means of a command from an external device. An advantage of the present invention is that even in the case where the data supplied from the external apparatus such as a host computer or the like cannot select a newly added font, an output image can immediately be outputted by using the newly added font. Preferred embodiments of the present invention will now be described by way of example only and with reference to the accompanying drawings of which:- Fig. 1 is a block diagram showing a fundamental construction of an outputting apparatus; Fig. 2 is a flowchart showing a control procedure in the outputting apparatus of Fig. 1; Fig. 3 is a block diagram showing a further fundamental construction of an outputting apparatus; Fig. 4 is a flowchart showing a control procedure in the outputting apparatus of Fig. 3; Fig. 5 is a block diagram showing a fundamental construction of an outputting apparatus according to the embodiment of the present invention; Fig. 6 is a flowchart showing a control procedure in the outputting apparatus of Fig. 5; Fig. 7 shows an example of a font table; Fig. 8 is a flowchart showing a control procedure in the outputting apparatus of Fig. 5; Fig. 9 is a flowchart showing a control procedure in the outputting apparatus of Fig. 5; Fig. 10 shows an example of an attribute table in the embodiment; and Fig. 11 is a cross sectional view showing an internal structure of an outputting apparatus to which the present invention can be applied. Prior to explaining a construction of the present invention, a construction of a laser beam printer (LBP) which is suitable when an embodiment is applied will be first described with reference to Fig. 11. Fig. 11 is a cross sectional view showing an internal structure of the laser beam printer (hereinafter, abbreviated to LBP). The LBP can receive character pattern data or the like and print on a recording paper. In the diagram, reference numeral 740 denotes an LBP main body which forms an image onto the recording paper as a recording medium on the basis of a character pattern or the like which is supplied; 700 an operation panel on which switches for operations, an LED display, and the like are arranged; and 701 a printer control unit for controlling the whole LBP 740 and analyzing character pattern information or the like. The printer control unit 701 mainly converts the character pattern information into the video signal and supplies to a laser driver 702. The laser driver 702 is a circuit to drive a semiconductor laser 703 and ON/OFF switches a laser beam 704 which is emitted from the semiconductor laser 703 in accordance with an input video signal. The laser beam 704 is deviated to the right and left by a rotary polygon mirror 705 and scans on an electrostatic drum 706, thereby forming an electrostatic latent image of a character pattern onto the drum 706. The latent image is developed by a developing unit 707 around the drum 706 and, after that, the developed image is transferred onto the recording paper. A cut sheet is used as a recording paper. The cut sheet recording papers are enclosed in a sheet cassette 708 attached in the LBP 740. The paper is conveyed into the apparatus by a paper feed roller 709 and conveying rollers 710 and 711 and fed to the drum 706. A control portion in the printer with the above structure will now be described in more detail. The invention is not limited to the printer with the above construction but can be also applied to other printers such as LED printer, ink jet printer, and the like. A display apparatus such as CRT, LCD, or the like can be also used as an outputting apparatus. (First embodiment) Fig. 1 is a block diagram showing a practical construction of the printer control unit 701. In the diagram, reference numeral 2 denotes a host computer which generates print information comprising print data, control code, and the like to the printer control unit 701. Reference numeral 4 denotes an input buffer for receiving the print information from the host computer 2 and storing; 5 a CPU to control the whole printer control unit 701; 5a an ROM in which operation processing procedures (programs regarding flowcharts shown in Figs. 2 and 4 and the like) of the CPU 5 have been stored; 5b an RAM which is used as a work area or the like of the CPU 5; 7 a page buffer memory to store the received data every page; and 8 a bit map memory to store an output image of one page. Each of the input buffer 4, page buffer memory 7, and bit map memory 8 is also constructed by an RAM. Reference numeral 9 denotes a printer engine to actually print the output image and 6 indicates a font memory to store various kinds of information of fonts. The font memory 6 is constructed by an ROM. Reference numeral 3 denotes a recording medium such as a paper or the like to record the result of the printing, and 700 indicates the operation panel which is used for the user to select a desired font or display various kinds of messages or the like to the user. All of the fonts designated on the host computer 2 side are set on the printer 1 side and are substituted to preferential fonts which are preferentially used. The preferential fonts or the like are set by the operation panel 700. A processing procedure in this case will now be described with reference to a flowchart shown in Fig. 2 together with Fig. 1. First, in step 1, the print data is derived from the host computer 2 and stored into the input buffer 4. In step 2, one command is read out from the input buffer 4 and supplied to the CPU 5. After that, in step 3, a check is made to see if the command which has been read in step 2 is a sheet delivery command or not. If NO, step 4 follows and a check is made to see if the command read out in step 2 is a command regarding the font selection or not. If NO in step 4, step 9 follows and a processing according to the command is executed and, after that, the processing routine is returned to step 2. If it is determined in step 4 that the command is the command regarding the font selection, step 5 follows and a check is made to see if a preferential font has been set in the operation panel 700 or not. If NO in step 5, step 8 follows and the font (hereinafter, referred to as a designated font) designated on the host computer 2 side is selected as it is and, after that, the processing routine is again returned to step 2. When it is determined in step 5 that the preferential font has been set, step 6 follows and the designated font is replaced to the preferential font and selected. When the font which has been designated as a preferential font is selected, step 7 follows and a check is made to see if the designated font exists in the font memory 6 or not. When such a font doesn't exist, step 8 follows and the designated font before it is replaced in step 6 is again selected. When it is decided in step 7 that the preferential font exists in the font memory 6, the processing routine is again returned to step 2. When it is decided in step 3 that the command is the sheet delivery command, step 10 follows and an output processing is executed and the output image stored in the bit map memory 8 is printed onto the print sheet 3 in step 11. After that, the above processing routine is finished. The apparatus according to Fig. 3 differs from the apparatus according to Fig. 1 with respect to a point that a registration memory 10 to register and store which font is replaced to which font is added to the construction of Fig. 1, thereby enabling an arbitrary font to be replaced to an arbitrary font (hereinafter, an original font to be replaced is referred to as an original font and a font to which such an original font is replaced is referred to as a preferential font). The original font, the preferential font, and the like are set by the operation panel 700. A processing procedure in this instance will now be described with reference to a flowchart shown in Fig. 4 together with Fig. 3. A processing procedure in steps 1 to 5 in Fig. 4 is similar to that in steps 1 to 5 in Fig. 2 of the forgoing first embodiment. A processing procedure in steps 13 to 18 in Fig. 4 is similar to that in steps 6 to 11 in Fig. 2. When it is decided in step 5 that the preferential font is not set, the font (hereinafter, referred to as a designated font) designated on the host computer 2 side is selected. When it is decided in step 5 that the preferential font is designated, step 12 follows and a check is made to see if the original font which coincides with the designated font exists or not by referring to the registration memory 10. When it is decided in step 12 that the coincident original font doesn't exist, step 15 follows and the designated font is selected. When it is determined in step 12 that the coincident original font exists, step 13 follows and the preferential font corresponding to the coincident original font is selected. A subsequent processing procedure in steps 14 to 18 is similar to that in steps 7 to 11 in Fig. 2. Although each of the above apparatus relates to the fonts stored in the font memory 6 provided in the printer, the invention is not limited to such a case. Instead of referring to the font memory 6, by referring to a font card or font cartridge which is connected to the printer, the fonts other than the fonts provided in the printer can be used or their fonts can be also mixedly used. Although the memory has mechanically been divided, the above construction can be also realized by one memory. On the other hand, the preferential font or the like can be also set by a command from the outside instead of the operation panel. Although the example of the laser beam printer has been shown as an outputting apparatus in each of the above embodiments, the invention is not limited to such a case. Various kinds of printers such as LED printer, ink jet printer, and the like, or displays such as CRT, LCD, and the like can be also used. Fig. 5 is a block diagram showing a practical construction of the printer control unit 701. In the diagram, reference numeral 11 denotes a host computer which supplies print information comprising print data, control codes, and the like to the printer control unit 701; 121 an input buffer for receiving the print information from the host computer 11 and storing; 122 a CPU to control the whole printer control unit 701; 123 an ROM in which operation processing procedures (programs regarding flowcharts in Figs. 6, 8, and 9 and the like) of the CPU 122 have been stored; 124 an RAM which is used as a work area or the like of the CPU 122; 125 a page buffer memory to store the received data every page; and 126 a bit map memory to store an output image of one page. Each of the above input buffer 121, page buffer memory 125, and bit map memory 126 is also constructed by an RAM. Reference numeral 127 denotes a printer engine to actually print the output image; 128 a font memory to store various kinds of information of the fonts; and 129 a font card to store various kinds of information of the added fonts. Each of the font memory 128 and font card 129 is constructed by an ROM. Reference numeral 130 denotes a recording medium such as a paper to record the print result or the like. Reference numeral 700 denotes the operation panel for allowing the user to select a desired font or to display various kinds of messages or the like to the user. According to the embodiment of the invention, the existing font "font A" stored in the font memory 128 in the outputting apparatus is set into a selection-impossible state by the operation panel 700, thereby enabling "font B" in the font card 129 which is newly added to be selected in place of "font A". A processing procedure to set selection-possible/ selection-impossible state of the font by the operation panel 700 will now be described with reference to the flowchart of Fig. 6 and Fig. 7. Fig. 7 shows a font table which is provided in the work area of the RAM 124 in Fig. 5 and stores the information indicating whether a font can be selected or not. A proper font is selected from the fonts registered in the font table as selectable fonts. Not only the internal fonts stored in the font memory 128 but also external memory media such as font card 129 and the like are registered as selectable fonts if such external memory media are attached into the LBP. That is, according to the embodiment, only the fonts provided in the outputting apparatus are set to the target fonts to be set into the selection-impossible state. The selection-possible/selection-impossible state of the font is set from the operation panel 700. In case of setting the selection-impossible font in step S21, step S22 follows. When no selectable font exists, the processing routine is finished. When a selectable font exists, the font which is set into the selection-impossible state is selected in step S23. Information indicating that such a font cannot be selected is registered into a font table in Fig. 7 in step S24. In the case where the font which cannot be selected is not set in step S21, step S25 follows. In the case where the font which has been set into the selection-impossible state is set into the selection-possible state, step S26 follows. If NO in step S25, the processing routine is finished. A check is made in step S26 to see if the number of fonts set into the selection-impossible state is equal to one or more or not. If YES in step S26, the fonts to be set into the selection-impossible state are selected in step S27 and the processing routine advances to step S28. If NO in step S26, the processing routine is finished. In step S28, the information indicating that such a font can be selected is registered into the font table. For instance, the font table of Fig. 7 shows a state in which "font A" is set into the selection-impossible state from the selection-possible state and that "font B" and "font- C" in the font card can be selected. A flow of the whole print data processings will now be described with reference to the flowchart shown in Fig. 8. First, the print data is derived from the host computer 11 and stored into the input buffer 121 (step S41). One command is read out from the input buffer 121 (step S42). A check is made to see if the command is a sheet delivery command or not (step S43). In case of the sheet delivery command, an output processing is executed (step S47) and the print data is printed (step S48). Specifically speaking, the data stored in the page buffer memory 125 every page is developed as a bit map in the bit map memory 126, an output image is formed, and the output image is supplied as a video signal to the printer engine 127. The print result is recorded on the recording medium 130. If NO in step S43, step S44 follows and a check is made to see if the command is a command regarding the font selection or not. If NO in step S44, step S45 follows and the command is analyzed and a processing corresponding to the command is executed. Practically speaking, the data stored in the input buffer 121 is stored into the page buffer memory 125 every page. When it is decided in step S44 that the command is a command regarding the font selection, step S46 follows and a font selection processing is executed. The processing routine is returned to step S42. The font selection processing in step S46 will now be described in detail with reference to Fig. 9. First, the font table formed temporarily in the work area in the RAM 124 is searched in step S51. When it is decided that there is no selectable font, no character can be printed. Therefore, the processing routine advances to step S52 and a warning is generated to the operation panel 700 and the processing routine is finished. When a selectable font exists in step S51, step S53 follows and a check is made to see if the designated font can be selected from the fonts which have been set into the selection-possible state in the font table shown in Fig. 7 or not. If YES in step S53, step S54 follows and a normal selection processing is executed in a manner similar to the conventional method. When the designated font cannot be found out in the selectable fonts, step S55 follows and a check is made to see if the designated font exists in the fonts which have been set into the selection-impossible state or not. If YES in step S55, step S56 follows and the font having the attribute that is nearest to the attribute of the above font is selected from the selectable fonts. For instance, it is now assumed that "font A" in the font memory 128 cannot be selected and "font B" and "font C" in the font card 129 are loaded (namely, can be selectable) as shown in Fig. 7. When "font A" is designated by the operation panel 700, no font can be selected in step S53, so that the processing routine advances to step S55. Since "font A" which has been set in the selection-impossible state is found out in step S55, the processing routine advances to step S56. When it is determined that the font having the attribute that is nearest to the attribute of "font A" in the selectable fonts is "font B", "font B" is selected. For example, it is now assumed that the respective fonts have attributes as shown in Fig. 10. Those attributes have the priorities. The attribute 1 has the highest priority and the attribute 6 has the lowest priority. As for "font A", "font B", and "font C", their attributes 1 to 4 are equal, the attribute 5 of only "font C" differs, and it is now assumed that the attributes 6 are set to the peculiar attributes such as numbers indicative of type styles such as Ming-style type, text-style type, and the like. When the attribute of "font A" and the attributes of "font B" and "font C" are sequentially compared in accordance with the order from the higher priority, they are equal up to the attribute 4, so that the candidate cannot be determined to one attribute. However, when looking at the attributes 5, the attribute of "font C" differs from the attribute of "font A" and is equal to the attribute of "font B", so that "font B" is selected as a font having the attribute that is nearest to the attribute of "font A". When only the font card "font C" is loaded into the apparatus, "font A" is replaced to "font C" and can be outputted. The attribute table shown in Fig. 10 is formed in the work area in the RAM 124 in a manner similar to the font table shown in Fig. 7. When the designated font cannot be found out in step S55, such a font is undefined and cannot be selected. Therefore, the designation of the font is ignored and step S57 follows and the font which has been set just before is used. According to the embodiment as mentioned above, in the outputting apparatus which can set the selection-possible/selection-impossible state of the existing fonts, the existing font having the attribute which is most adaptive to the font selection information supplied from an external apparatus such as a host computer or the like can previously be set into the selection-impossible state. In this case, on the assumption that no selection-impossible font exists, by executing a processing to select the font having the attribute that is nearest to the supplied font selection information from the fonts other than such a selection-impossible font, the newly added font can be selected in place of the existing font which has been set into the selection-impossible state. In the embodiment, the priorities are given to the attributes and the attributes are sequentially compared in accordance with the order from the higher priority. When only one candidate is found out as a font, such a font is defined as a font having the nearest attribute. However, it is also possible to use another defining method such that a font in which the number of coincident attributes is the largest is set to a font having the nearest attribute, or the like. In the embodiment, the font is designated by the operation panel. However, the attribute of the font can be also designated. On the other hand, the font attribute can be also designated by a command. In the above embodiment, no warning is generated at the stage to set the font into the selection-possible/selection-impossible state. However, it will be obviously understood that no correct data can be outputted in the case where in spite of the fact that a font card or the like is not loaded, all of the internal fonts are set into the selection-impossible state or the like. Therefore, a warning can be also generated at such a time point. In the above embodiment, the selection-possible/ selection-impossible state of the font is set by the operation panel. However, such a setting can be also performed by a command. In case of performing a down-loading operation of fonts such as registration of external characters or the like from the host computer, it is also possible to construct in a manner such that the setting of the selection-impossible state is cancelled to thereby enable the down-loading of the font to be executed, and when the font is again set into the selection-possible state, the down-loaded font can be used. In the case where an external character is registered in a certain font and such a font is set into the selection-impossible state, even if only the information of the external character is left, it is meaningless. Therefore, the information of the external character accompanied with such a font can be also erased. The present invention can be also applied to a system comprising a plurality of apparatuses or to an apparatus comprising one equipment. The invention can be also applied to the case where the invention is accomplished by supplying a program to a system or an apparatus.

Claims: An outputting apparatus for receiving data and a font designation instruction defining a designated font, and for outputting characters in accordance with a selected font selected from a plurality of fonts; the apparatus comprising: setting means (S23,700) operable to set one of the plurality of fonts as being a selection-impossible font; memory means (S24,124) operable to store information distinguishing the selection-impossible font from one or more selection-possible fonts of the plurality of fonts; and selection means responsive to the font designating instruction and to the information stored in the memory means to select a font such that the selection-impossible font is not selected wherein, if the font which is designated by said font designating instruction is a selection-possible font, said selection means is operable to select the designated font and, if a designated font is a selection-impossible font, said selection means is operable to select as the selected font a selection-possible font whose attributes are nearest to the attributes of the designated font. An apparatus according to claim 1 wherein said setting means comprises a panel (700). An apparatus according to claim 1 wherein said setting means comprises a command means (122) responsive to a command from an external device (11). An apparatus according to any preceding claim, further comprising output means (127) operable to output characters using the selected font. An apparatus according to claim 4, wherein said output means comprises a printer. An apparatus according to claim 4, wherein said output means comprises a display device. Apparatus as claimed in any preceding claim, comprising font memory means (128) operable to store a plurality of internal fonts and font adding means (129) operable to add an external font whereby said plurality of fonts is constituted by said internal fonts and said external fonts, wherein said setting means is operable to set one of said internal fonts as being said selection-impossible font. Apparatus as claimed in claim 7, wherein said font adding means comprises a font card (129). An outputting method for receiving data and a font designating instruction defining a designated font and for outputting characters in accordance with a selected font selected from a plurality of fonts, the method comprising the steps of: setting (S23) one of the plurality of fonts as being a selection-impossible font; storing (S24) information distinguishing the selection-impossible font from one or more selection-possible fonts of the plurality of fonts; and selecting a font in response to the font designating instruction and to the stored information such that the selection-impossible font is not selected wherein, if the font which is designated by said font designating instruction is a selection-possible font, the designated font is selected and, if the designated font is a selection-impossible font, the selected font is selected to be a selection-possible font whose attributes are nearest to the attributes of the designated font. A method as claimed in claim 9 wherein the setting step comprises inputting setting instructions by means of a panel (700). A method as claimed in claim 9 wherein said setting step comprises inputting a command from an external device (11). A method as claimed in any of claims 9 to 11 including the step of outputting characters using the selected font by operation of an output means (127). A method as claimed in claim 12 wherein the output means comprises a printer. A method as claimed in claim 12 wherein the output means comprises a display device. A method as claimed in any of claims 9 to 14 wherein a plurality of internal fonts are stored in a font memory means (128) and an external font is added, whereby said plurality of fonts is constituted by said internal fonts and said external font and one of said internal fonts is set as being said selection-impossible font. A method as claimed in claim 15 wherein said external font is added by loading a font card (129).

Inventors: WATANABE YOKO, WATANABE, YOKO
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1993
Main classification: G06K15
IPC codes: G06K15