Character or graphic processing method

Abstract: By means of the character processing method having a plurality of processing schemes, character patterns are outputted in a plurality of windows using any of the processing schemes. The requirements of each window are discriminated, a processing scheme suited to a particular window is selected from the plurality of processing schemes in response to the requirements, and a character or graphic processed by the processing scheme selected for the window is outputted for each and every window.

Description: This invention relates to a character processing method in a system having a multiwindow display function. When a pattern in the form of a vector is converted into a bit-map format and outputted in a plurality of windows in a multiwindow or multi-task environment, a series of processing operations which include curve generation, dot formation along the generated curve and painting are all performed by software contained in one processing scheme. However, when the processing operations of curve generation, dot formation along the generated curve and painting are all performed by software and by one and the same processing scheme with respect to a plurality of windows, the processing time becomes exorbitant and, as a result, the conversion of the vector-format data into the data of the bit-map format takes too long. When an attempt is made to shorten processing time, the processing for curve generation or the like inevitably becomes too coarse and, hence, there is a decline in output quality. Furthermore, since only one processing scheme is utilized even if the processing requirements for the various screens differ, antoher problem is that processing conforming to the requirements of each window cannot be executed. One aspect of the present invention provides processing apparatus for outputting characters for display in a window, comprising: generating means for generating character patterns for a window on the basis of character font data using one of a plurality of processing schemes; first discriminating means for discriminating a state of a displayed window or an object edited in the window; determining means for determining an output specification required for the window, on the basis of a discrimination by the first discriminating means; and selecting means for selecting, based on the output specification determined by the determining means, one of said processing schemes for said generating means; wherein the determining means is operative to set, as the output specification, a specification in which quick generation of the pattern is regarded as important if the window is active, or if an edited object is text. Another aspect of the present invention provides a processing method for outputting characters for display in a window, comprising the steps of: discriminating a state of a displayed window, or an object edited in the window; determining an output specification required for the window on the basis of a discrimination obtained in the discriminating step; and selecting, based on the output specification obtained in the determining step, one of a plurality of processing schemes for generating character patterns for a window on the basis of character font data; wherein in the determining step the output specification is set as a specification in which quick generation of the pattern is regarded as important if the window is active or if an edited object is text. Embodiments of the present invention will now be described with reference to the accompanying drawings, in which:- Fig. 1 is a block diagram illustrating the basic construction of a character processing system according to an embodiment of the present invention; Fig. 2 is a diagram showing the basic flow of data of a window system having an event-driven structure according to the embodiment; Fig. 3 is a diagram showing a group of typical subroutines used in the system of Fig. 2; Fig. 4 is a flowchart illustrating the basic flow of data up to the point at which data is outputted in a window in the system of Fig. 3; Fig. 5 is a diagram showing a method of forming dots in a plane in the embodiment; Fig. 6 is a diagram showing a method of forming dots in a plane in the embodiment; Fig. 7 is a diagram showing a painting method in the embodiment; Fig. 8 is a diagram showing a painting method in the embodiment; Fig. 9 is a diagram in which the features of the individual processing schemes usable in the system of the embodiment are shown in the form of a table from the point of view of speed and quality; Figs. 10A and 10B are diagrams showing a change in a display when there is a change in the active state of a window in the system of the embodiment; Fig. 11 is a diagram showing a variation in features corresponding to three types of required specifications in the system of the embodiment; Fig. 12 is a table showing correspondence between nine types of required specifications and three processing schemes used in the system of the embodiment; Fig. 13 is a flowchart showing the control procedure of the embodiment; Fig. 14 is a diagram in which the features of the individual processing schemes usable in the system of a first modification are shown in the form of a table from the point of view of data format, size of the developed character, speed and quality; Fig. 15 is a diagram showing a variation in features corresponding to three types of required specifications in the system of the first modification; Fig. 16 is a flowchart showing the control procedure of the first modification; Fig. 17 is a diagram in which the features of the individual processing schemes usable in the system of a second modification are shown in the form of a table from the point of view of data format, required memory capacity, size of the developed character, speed, quality and recommended font; Fig. 18 is a diagram showing a variation in features corresponding to three types of required specifications in the system of the second modification; and Figs. 19 and 20 are flowcharts illustrating the control procedure of the second modification. Fig. 1 is a block diagram illustrating the basic construction of a character processing system to which the present invention is applied. The present character processing system may be a Japanese (or English) word processor, a work station or a computer system. The system shown in Fig. 1 includes a CPU (central processing unit) 1 for controlling the overall system and executing various processing, a ROM (read-only memory) 2, which is a storage area for a system start-up program, character pattern data and the like, wherein the pattern data is used when a window system outputs the characters of a menu or the like, and a RAM (random-access memory) 3, which is used as a storage area for an application queue or system queue shown in Fig. 2 or as a storage area for data of unlimited use, after a window system has been loaded from the ROM or from an external memory device. Corresponding programs (expressed by flowcharts described below) and data are loaded in these areas for each of various kinds of processing operations. The system further includes a KBC (keyboard controller) 4 for accepting key input data from a keyboard KB and transmitting the data to the CPU 1. The inputted data is set in the application queue through the system queue, shown in Fig. 2, in the RAM 3. Also provided are a CRTC (display controller) 6 for presenting a display on a CRT display unit 7 when there is a display request from the window system, and external memory devices 9 such as an FD (floppy disk) or HD (hard disk) in which programs and data are stored in advance, referred to when necessary and loaded in the RAM 3 as required. There are also provided a DKC (disk controller) 8 for controlling a data transfer with the FD (or HD), a PRTC (printer controller) 10, a PRT (printer) 11 and a system bus 12, which forms a data path connecting the foregoing components. The details of the embodiment constructed as set forth above will now be described. The flowchart illustrated in Fig. 2 schematically illustrates the basic data flow of a window system used in the character processing system of Fig. 1. The window system has an event-driven structure. Steps 204 through 206 in Fig. 2 illustrate the flow of processing within the window system in a case where an input is made via hardware, by way of example. Steps 201 through 203 illustrate an application program (e.g., software for a word processor) employed in the window system. The window system may be considered to be an OS. Step 201 calls for initialization of the application program. This is followed by step 202, at which a message is acquired from the application queue area in RAM 3, and then by step 203, at which a subroutine corresponding to the message acquired at step 202 is called. Steps 202 and 203 are repeated until the window system ends. At step 204, data is acquired from hardware such as the keyboard (KB 5 in Fig. 1) or a mouse, etc. The data acquired is stored temporarily in the system queue at step 205. Then, at step 206, the data is converted into a format usable by the application, after which the data is set in the application queue. The processing of steps 204 through 206 is repeated whenever there is an input from the input device. Fig. 3 illustrates a group of typical subroutines corresponding to messages acquired at step 202. In Fig. 3, one corresponding subroutine is started in response to one window making a transition from an active state to an inactive state, by way of example. Processing until character is displayed in window The basic flow of data up to output of a character in a window will be described with reference to Fig. 4. The flowchart of Fig. 4 illustrates the function of a font driver (not shown), which is present on the window-system side. This function is called by the subroutine call at step 203 in Fig. 2. More specifically, until step 401 is executed, the window generating subroutine is called by the subroutine call of steps 202, 203 on the side of the application program in Fig. 2, input parameters are acquired from the application queue (step 206) and the character-output subroutine is called. Control shifts to the font driver (not shown) at step 401. The input parameters are used as input parameters in Figs. 13, 16, 19, 20, described below. Examples of the types of parameters are "character code", "output size", "font", "type of embellishment" and "output format". These parameters include a flag indicating whether text processing is to be performed or not. The flag is used as a criterion for judging required specifications in Figs. 11 and 12. Step 402 in Fig. 4 calls for calculating, from the character code obtained at step 401, the leading address and data length of font data, which is the object of processing, from vector-format font data stored in the read-only memory (ROM) or in the hard disk 9, and for storing the address and the data length in the RAM of the system. The format of the font data at this time is one which includes coordinate data sequence, curve information and hint information. The hint information is auxiliary information which provides an output character with high quality. There are cases where compression is applied to the font data in order to reduce the amount of data. The hint information is analyzed at step 403, whereby the font data is made to include only a coordinate sequence and straight-line/curve information. In a case where data that has been read in is compressed by an expedient such as the run-length technique, it is necessary to apply decompression prior to analysis at step 403. At step 404, magnifications in vertical and horizontal directions in which enlargement or reduction is to be made is determined from the size of the character of interest obtained from step 401 and the size of the external shape of the font data already known. The enlargement/reduction magnifications in the vertical and horizontal directions are used to multiply all of the coordinate values of the coordinate sequence obtained from step 403, thereby creating a coordinate sequence of the size sought on the requesting side. Alternatively, in a case where there is a character embellishment such as an italic/mirror image at step 401, a fine transformation which includes a matrix equation representing the above-mentioned expansion/reduction magnification and the character embellishment is performed to obtain the desired coordinate value. At step 405, font data in a bit-map format is created, for the character to be obtained, from the coordinate sequence and straight-line/curve information generated up to step 403. In a case where the font data is created from the straight-line information in the course of font-data creation, a desired point is obtained from a DDA (digital differential analyzer) generation algorithm and the point is formed in memory as a dot data. With regard to the curve information, a B-spline function is generated from this information and is temporarily converted into a collection of short straight lines, after which a desired point is obtained by a DDA generation algorithm similar to that for the straight lines, and this point is formed in memory as a dot. Alternatively, the points consisting of the B spline in the above-mentioned curve information are converted into points consisting of a three-dimensional bezier, and a three-dimensional bezier function is generated therefrom. After a conversion is made into a collection of short straight lines, just as in the case of the B-spline function, a desired point is obtained from a DDA generation algorithm similar to that for the straight lines, and this point is formed in memory as a dot. As a method of forming the dots in memory, dots are formed in two memory planes by separate methods. A method of forming dots in one plane involves forming the dots in such a manner that two or more dots having the same y coordinate will not be formed, as shown in Fig. 5, in a case where a single line is drawn. According to this method of dot formation, dots are formed by an exclusive-OR (X-OR) operation. More specifically, in a case where a dot to be formed has already been struck (a black dot), this dot vanishes (becomes a white dot). If a dot has not yet been struck (i.e., in case of a white dot), the dot is struck (becomes a black dot). As for the method of forming dots in the other plane, dots are formed in such a manner that dots to not become separated by even one dot, i.e., in such a manner that dots are rendered continuous, as shown in Fig. 6. This method of dot formation relies upon an OR operation. More specifically, regardless of whether or not a dot to be formed has or has not already been struck, the dot is struck. When dot-formation processing has thus been completed for all data, painting processing is then executed. In this processing, the processing is executed only in a plane (of the kind shown in Fig. 5) in which dot formation has been performed by the X-OR operation in the dot-formation processing. According to the painting method, scanning is performed in the y direction (the horizontal direction), and the entirety of the space between the dots formed by a single strike and the dots formed previously are filled with dots, as illustrated in Fig. 7. Further, when a dot is discovered as scanning is performed in the y direction, the space between this dot and the dot discovered next is.filled with dots. When this processing has been performed from the left side to the right side for all of the y coordinates, painting processing is terminated. In Fig. 7, dots formed by the X-OR technique are indicated by the double circles to simplify the description. At step 405, the OR is taken between the plane in which painting has been performed and the plane in which dot formation has been performed by the above-mentioned OR operation, as shown in Fig. 8. In Fig. 8, (a) is a portion of a font pattern obtained by painting described in connection with Fig. 7, and (b) is a portion of a font pattern obtained by the OR method described in connection with Fig. 7. This OR synthesizing processing is terminated to end the processing of step 405. At step 406, the character of an all-black pattern formed at step 405 is subjected to pattern embellishment such as shading or netting in dependence upon the type of embellishment obtained from step 401. At step 407, processing is executed for transferring data to the requesting side. This involves performing processing by applying a scan conversion in dependence upon the scanning format (ROW or COLUMN) on the requesting side. The foregoing is a description of the general flow of character processing in the character processing system shown in Figs. 1 and 2. Character processing for dealing with windows The characterizing operation for a case where this character processing system is applied to a multiwindow system will now be described in greater detail. Fig. 9 is a diagram showing the features (quality and processing speed) of the individual processing schemes provided in advance for this character processing system. In Fig. 9, ○ indicates that the features of quality and processing speed are good, X indicates that these features are no good, and Δ means that the features are tolerable. A characterizing feature of the present system is that any one of the processing schemes can be selected for each window. Processing scheme A is used in application software for word processors or the like and is for making a conversion from data in a vector format to data in a bit-map format by means of software. In processing scheme A, data expressed by a straight line + B-spline function or data expressed by a straight line + three-dimensional Bezier function can be processed as the input-data format. Though this processing scheme excels in terms of quality, it is somewhat slow in speed. The features of this processing scheme are features that, stated in terms of the prior art, are generally generated in a case where it is attempted to realize machine-independent processing. Processing schemes B and C are processing schemes added anew in an attempt to eliminate the drawbacks of processing scheme A, and they simplify the three-dimensional Bezier development processing. The processing schemes B and C are executed by hardware or software. In the processing scheme B, data expressed by a straight line + three-dimensional Bezier function can be processed as the input-data format. Though quality declines since integer arithmetic operation is performed, this scheme has the highest processing speed among the schemes dealt with here. In the processing scheme C, data expressed by a straight line + three-dimensional Bezier function can be processed as the input-data format. Though the quality is not as good as that of processing scheme A, it is better than that of processing scheme B since fixed-point arithmetic is performed, and this scheme is quicker in terms of speed as well. The functions of these processing schemes are functions added to the aforesaid font driver, which is not shown. Window requirement specifications Figs. 10A and 10B illustrate examples of two windows displayed on the CRT 7 of the system shown in Fig. 1. As mentioned above, it is necessary that the window system shown in Fig. 2 be started by the time these windows are displayed. The required specifications of each window to be set for the windows will be described with reference to Figs. 10A, 10B, 11 and 12. In Fig. 10A, a window 1001 is an active window (a window in a state in which it can be edited). In this window, Japanese text comprising a large number of kanji and hiragana characters are displayed. With this window, an input of Japanese text is performed. Internally, inputted character data is processed as text. As for the specifications required in the window 1001, quality will not be a problem so long as the level is such that characters can be easily distinguished. However, processing speed is given the highest priority. A window 1002 is an inactive window (a window in a state in which it cannot be edited). Here processing for modifying the layout is performed. The required specifications of window 1002 are such that since the window is in a state in which it cannot be edited, no problems arise even if there is some reduction in speed. However, since slight positional adjustments are made owing to the fact that processing for modifying the layout is performed, this window will be meaningless unless the quality is good. In Fig. 10B, windows 1003 and 1004 have relationship which is the opposite of that of windows 1001 and 1002. That is, the window 1003 is active and the window 1004 is inactive. In the active window 1003, processing for layout modification is performed and not text processing. Consequently, this is a window in which both quality and speed are given priority; if either suffers, the window will be meaningless. However, since the window 1004 is inactive (in a state in which it cannot be edited), a processing scheme in which quality and speed do not pose particular problems will suffice. Thus, the windows have required specifications conforming to the processing performed internally. In addition, the required specifications for both of these windows change depending upon the state in which the window has been placed. Fig. 11 is a diagram showing three types of such required specifications in the form of a table. Required specification a is one in which quality is given priority but speed is not. For example, this corresponds to the window 1002 in Fig. 10. Required specification b requires that both quality and speed be fairly good and corresponds to the window 1003 in Fig. 10. The specification c gives priority to speed but not to quality and corresponds to the window 1001 in Fig. 10, by way of example. Fig. 12 is a table (referred to as required-specification/processing-scheme correspondence table) which illustrates the correspondence between processing schemes and required specifications for each of nine required specifications each capable of being represented by two factors (each of which has three levels, namely ○, Δ and X), namely quality and speed. This table is stored in the RAM 3 of Fig. 1. The features of each of the processing schemes shown in Fig. 9 and each of the required specifications shown in Fig. 12 are compared in advance, and the processing schemes suited to these required specifications are indicated as "Selected Scheme" in the right-hand column of the table in Fig. 12 for each of the required specifications. It goes without saying that the flag indicative of text processing in the aforementioned parameters is used as a criterion for selecting the processing scheme. In the table of Fig. 12, the processing scheme C satisfies the required specifications 1, 2, 4, 5 and 8. The reason for this is as follows: In processing scheme C, the capabilities of the specifications are quality = Δ and speed = ○, as shown in Fig. 9. However, in the selection of the processing scheme bound by the aforementioned parameters, the operator considers that the processing scheme C, for example, also satisfies the requirements quality, speed = ○○, ○Δ, Δ○, ΔΔ, XΔ, as a result of which the table of Fig. 12 is created. With regard to which processing scheme should be selected when a certain window requires any of the required specifications a, b, c shown in Fig. 11, it should be evident from Fig. 12 that the processing scheme A is selected if this window requires the specification a (= ○X), in conformity with the table shown in Fig. 12. If the specification b (= ΔΔ) is required, then the processing scheme C is selected. If the specification a (= X○) is required, then the processing scheme B is selected. The procedure for making these selections will be described later. Determining required specification and selecting processing scheme The flow of processing up to the decision on the required specifications of a window and the selection of suitable processing schemes in a system having the aforesaid three processing schemes A, B, C will be described taking the flowchart of Fig. 13 as an example. Fig. 13 represents the process in which the window system starts up the font driver and the font driver selects the processing scheme. Fig. 13 is a flowchart showing the manner in which a processing scheme is selected in a case where there are three processing schemes having the capability to make a vector-to-dot conversion in the conversion processing of step 405 (Fig. 4) for converting a vector format to a dot format. Step 1301 in Fig. 13 calls for a determination as to whether a window displayed is active (e.g., a window corresponding to window 1001 or 1003 in Fig. 10). If the window is active, the program proceeds to step 1302; otherwise (in which case the window corresponds to window 1002 or 1004), the program proceeds to step 1305. If the program proceeds to step 1302 because the window has been determined to be active, then it is determined whether the object of editing in this window is text (which corresponds to window 1001). If it is found at step 1302 that text is to be edited, then, at step 1303, a setting is made to the effect that speed should be emphasized and quality de-emphasized as far as the required specifications are concerned. The program then proceeds to step 1308. If it is found at step 1302 that what is to be edited is not text (which corresponds to window 1003), then a setting is made at step 1304 to the effect that both speed and quality should be emphasized as far as the required specifications are concerned. On the other hand, if it is found at step 1301 that the window is not active, the program proceeds to step 1305. Here, if it is decided that text is to be edited (which corresponds to window 1004), as in the case of step 1302, then required specifications are set at step 1306 to the effect that both quality and speed should be de-emphasized. If it is found at step 1305 that what is to be edited is not text (which corresponds to window 1003), then a setting is made at step 1307 to the effect that quality should be emphasized and speed de-emphasized. The required specifications of the particular window are thus decided. This is followed by steps 1308 through 1316, which constitute a procedure for controlling selection of the processing schemes. At step 1308, it is determined whether there is a processing scheme in which the required specifications set at steps 1301 through 1307 above are satisfied in terms of quality. If there is at least one processing scheme which satisfies the required specifications in terms of quality based upon the table of Fig. 12 and the required specifications of the window, then the program proceeds to step 1309. If there is not even one such processing scheme, the program proceeds to step 1313. If there is at least one processing scheme which satisfies the required specifications in terms of quality, it is determined at step 1309 whether there is a processing scheme which satisfies the required specifications in terms of speed. If there is at least one processing scheme which satisfies the required specifications in terms of speed, then the program proceeds to step 1310. If there is not even one processing scheme which satisfies the required specifications, then the program proceeds to step 1312. If, as a result of the foregoing processing, there is at least one processing scheme which satisfies the required specifications in terms of both quality and speed, it is determined at step 1310 whether there are a plurality of such processing schemes. If there is only one, then this single processing scheme is decided upon and the program proceeds to step 1317. If there are two or more processing schemes, then the program proceeds to step 1311. In a case where there are a plurality of processing schemes which satisfy the required specifications, it is decided at step 1311 which of the processing schemes should be selected. Though there are a variety of techniques which can be used to select the processing scheme, it will be assumed here that the first appearing processing scheme that satisfies the required specifications is selected. It goes without saying that the first appearing processing scheme mentioned here may be the processing scheme in which the conditions are satisfied first or a processing scheme in which the conditions are satisfied last when the table shown in Fig. 12 is searched. When it is determined at step 1309 that there is not one processing scheme which satisfies the required specifications in terms of speed, the program proceeds to step 1312. When it is determined that the requirements in terms of quality are satisfied, the processing scheme determined at step 1308 is selected at step 1312 and the program then proceeds to step 1317. If it is found at step 1308 that not a single processing scheme which satisfies the required specifications in terms of quality exists, then it is determined at step 1313 whether there is a processing scheme which satisfies the required specifications in terms of speed. If there is at least one processing scheme which satisfies the required specifications in terms of speed, then the program proceeds to step 1314. If there is not even one processing scheme which satisfies the required specifications, then the program proceeds to step 1316. If a NO answer is obtained at step 1313, i.e., if it is determined that not even a single processing scheme which satisfies the required specifications exists, then the first appearing processing scheme among the processing schemes which exist is selected at step 1316, after which the program proceeds to step 1317. If it is found at step 1313 that there is at least one processing scheme which satisfies the required specifications in terms of speed, then it is determined at step 1314 whether there are a plurality of such processing schemes. If there is only one, then this one processing scheme is decided upon and the program proceeds to step 1317. If there are a plurality of such processing schemes, e.g., if there are a plurality of candidates in which the processing schemes selectable in a case where speed is emphasized are C and B, then the program proceeds to step 1315. In a case where there are a plurality of processing schemes which satisfy the required specifications in terms of speed, it is decided at step 1315 which of the processing schemes should be selected. Here the first appearing processing scheme which satisfies the required specifications is selected, after which the program proceeds to step 1317. Processing similar to that of step 405 in Fig. 4 is performed at step 1317 by the selected processing scheme. It should be noted that no problems are encountered here even if the methods differ slightly depending upon the processing scheme. As set forth above, the processing scheme that is to be selected is determined based upon the required specifications of the window and the features of the processing scheme, whereby development is capable of proceeding in the processing scheme nearest that which satisfies the required specifications and it is possible to output desired data conforming to the output unit in terms of quality and speed. Modification: adding data format and maximum size as required specifications In the technique shown in Figs. 11 through 13, processing schemes are decided based upon the required factors of quality and speed. In the modification described below, an example will be described in which data format and maximum character size are added to the criteria as factors for deciding the processing scheme. The basic flow of processing according to this modification is in line with the foregoing embodiment. Fig. 14 is a diagram showing the features of four types of processing schemes provided in this modification. Here the processing scheme A is capable of processing data expressed by a straight line + B-spline function or data expressed by a straight line + three-dimensional bezier function as the input-data format. This processing scheme excels in terms of quality, is fairly slow in terms of speed and is capable of developing characters to a sufficiently large size. The processing scheme B is capable of processing data expressed by a straight line + three-dimensional bezier function as the input-data format. Quality declines because integer processing is performed, but this processing scheme has the highest speed among the schemes handled here. The size to which characters can be developed is small. The processing scheme C is capable of processing data of a format expressed by a straight line + three-dimensional bezier function as the input-data format. Though this processing scheme does not present quality as good as that of processing scheme A, the quality is better than that of processing scheme B since fixed-point arithmetic is performed, and this scheme is quicker in terms of speed as well. The size to which characters can be developed is small. The processing scheme D is capable of processing data of a format expressed by a straight line + circular-arc function as the input-data format. Though this processing scheme does not present speed as high as that of processing scheme A, its processing speed is high and it is capable of developing characters to a large size. The foregoing is in line with Fig. 11. Fig. 15 is a diagram in which three examples (a, b, c) of required specifications in this embodiment are shown in a table from the viewpoints of input-data format, character size capable of being developed, quality and speed. In this modification also, it goes without saying that there is a table for selection purposes of the kind shown in Fig. 12. As for specification a , the requirement with regard to input-data format is a straight line + three-dimensional bezier function, and the requirement regarding the output unit is that quality have the highest priority. A window which has such requirements is one which requires a high output quality even if some processing speed is sacrificed. In the specification a , outputs up to a large size are made as the output specifications. As for specification b , the requirement with regard to input-data format is a straight line + three-dimensional bezier function. A window of specification b is one which requires that both quality and speed be given priority. An output unit which produces an output from this window is meaningless if either quality or speed is lacking. Outputs only of small size are produced as the output specifications. As for specification c , the input-data format is a straight line + circular arc. With regard to the required specifications of the window, quality does not pose a problem but speed is given the highest priority. Outputs up to a large size are made as the output specifications. The flow of processing in the system of the modification having the foregoing processing schemes will be described taking the flowchart of Fig. 16 as an example. Fig. 16 is a flowchart showing the flow through which a processing scheme is selected in a case where the processing schemes at step 405 in Fig. 4 are four in number. Step 1601 in Fig. 16 calls for a determination as to whether a window displayed is active (e.g., a window which accepts inputs from the user). If the window is active, the program proceeds to step 1602; otherwise, the program proceeds to step 1605. It is determined at step 1602 whether the object of editing in this window is text. If text is to be edited, then, at step 1603, a setting is made to the effect that speed should be emphasized and quality de-emphasized as far as the required specifications are concerned. The program then proceeds to step 1608. If it is found at step 1602 that what is to be edited is not text, then a setting is made at step 1604 to the effect that both speed and quality should be emphasized as far as the required specifications are concerned. On the other hand, if it is found at step 1601 that the window is not active, the program proceeds to step 1605. Here it is determined whether text is to be edited, as in the case of step 1602. If it is determined that text is to be edited, then required specifications are set at step 1606 to the effect that both quality and speed should be de-emphasized. If it is found at step 1605 that what is to be edited is not text, then a setting is made at step 1607 to the effect that quality should be emphasized and speed de-emphasized. At step 1608, it is determined whether the given processing schemes include a processing scheme in which the font-data format of an input agrees with a data format capable of being processed. If there is at least one processing scheme in which agreement is obtained, then the program proceeds to step 1610. If there is not even one such processing scheme, the program proceeds to step 1609. If the program proceeds to step 1609, this represents a case in which the given processing schemes do not contain a single processable data format with respect to the font-data format of the input. However, even if even a single processable data format does not exist, there are cases where processing is made possible by converting the data format. Therefore, it is determined at step 1609 whether there is a processing scheme of a type in which a format conversion is capable of being made from the font-data format of the input to the data format possessed by the processing scheme. If a processing scheme capable of a format conversion exists, then the program proceeds to step 1610. If such a processing scheme does not exist, it is judged that processing is impossible and an error output is produced. If a change in the quality and speed shown in Fig. 15 occur owing to a format conversion in the case where the program proceeds from step 1609 to step 1610, the values in the table are rewritten. If the program proceeds to step 1610, this means that there is at least one processing scheme in which the data in the font-data format of the input is capable of being processed. It is determined at step 1610 whether the above-mentioned processing schemes contain a processing scheme in which the size of a character of interest is capable of being developed. If the character size is capable of being developed, then the program proceeds to step 1612; otherwise, the program proceeds to step 1611. If it is determined at step 1610 that the data size of interest is incapable of being developed, then the program proceeds to step 1611. Here is determined whether the processing schemes of interest contain a processing scheme in which division processing is possible. If at least one such processing scheme exists, the program proceeds to step 1612; otherwise, an error message is produced. At step 1612, it is determined whether there is a processing scheme in which the required specifications set at steps 1601 through 1607 above are satisfied in terms of quality. If there is at least one processing scheme which satisfies the required specifications in terms of quality, then the program proceeds to step 1613. If there is not even one such processing scheme, the program proceeds to step 1617. If it is found at step 1612 that there is a processing scheme which satisfies the required specifications in terms of quality, it is determined at step 1613 whether there is a processing scheme which satisfies the required specifications in terms of speed. If there is at least one processing scheme which satisfies the required specifications in terms of speed, then the program proceeds to step 1614. If there is not even one processing scheme which satisfies the required specifications, then the program proceeds to step 1616. If there is at least one processing scheme which satisfies the required specifications in terms of both quality and speed, it is determined at step 1614 whether there are a plurality of such processing schemes. If there is only one, then this single processing scheme is decided upon and the program proceeds to step 11621. If there are two or more processing schemes, then the program proceeds to step 1615. In a case where there are a plurality of processing schemes which satisfy the required specifications, it is decided at step 1615 which of the processing schemes should be selected. Here the first appearing processing scheme that satisfies the required specifications is selected. When it is determined that there is not one processing scheme which satisfies the required specifications in terms of speed, the processing scheme which satisfies the requirement in terms of quality is selected at step 1616 and the program then proceeds to step 1621. If it is found that not a single processing scheme which satisfies the required specifications in terms of quality exists, then it is determined at step 1617 whether there is a processing scheme which satisfies the required specifications in terms of speed. If there is at least one processing scheme which satisfies the required specifications in terms of speed, then the program proceeds to step 1618. If there is not even one processing scheme which satisfies the required specifications, then the program proceeds to step 1620. If it is determined that not even a single processing scheme which satisfies the required specifications exists, then the first appearing processing scheme among the processing schemes which exist is selected at step 1620, after which the program proceeds to step 1621. If it is found that there is at least one processing scheme which satisfies the required specifications in terms of speed, then it is determined at step 1618 whether there are a plurality of such processing schemes. If there is only one, then this one processing scheme is decided upon and the program proceeds to step 1612. If there are two or more of such processing schemes, then the program proceeds to step 1619. In a case where there are a plurality of processing schemes which satisfy the required specifications in terms of speed, it is decided at step 1619 which of the processing schemes should be selected. Here the first appearing processing scheme which satisfies the required specifications is selected, after which the program proceeds to step 1621. Processing similar to that of step 405 in Fig. 4 is performed at step 1621 by the selected processing scheme. It should be noted that no problems are encountered here even if the methods differ slightly depending upon the processing scheme. As set forth above, the processing scheme that is to be selected is decided based upon the data-input format and input specifications as well as the required specifications and the features of the processing schemes, whereby development is capable of proceeding in the processing scheme nearest that which satisfies the input-data format, input specifications and required specifications, and it is possible to output desired data in terms of quality and speed. Second modification In the first modification set forth above, the method of deciding processing schemes is described in detail with regard to the input-data format, input specifications and the required specifications of the output unit. In the second modification, an example will be described in which the factor of memory capacity capable of being used by a processing scheme in an output unit such as the printer 11 or the RAM 3 of the apparatus proper and the factor of suitability/unsuitability of a processing scheme with regard to the font of the output are added as factors for deciding the processing scheme. Fig. 17 illustrates the feature of each of four processing schemes (A, B, C, D) capable of being used in the second modification. In Fig. 17, the processing scheme A is capable of processing data expressed by a straight line + B-spline function or data expressed by a straight line + three-dimensional bezier function as the input-data format. This processing scheme excels in terms of quality, is fairly slow in terms of speed and is capable of developing characters to a sufficiently large size. In addition, the recommended font of processing scheme A is the Ming style or Gothic style. The processing scheme B is capable of processing data expressed by a straight line + three-dimensional bezier function as the input-data format. Quality declines because integer processing is performed, but this processing scheme has the highest speed among the schemes handled here. The size to which characters can be developed is small. The recommended font of processing scheme B is the Ming style alone. The processing scheme C is capable of processing data of a format expressed by a straight line + three-dimensional bezier function as the input-data format. Though this processing scheme does not present quality as good as that of processing scheme A, the quality is better than that of processing scheme B since fixed-point arithmetic is performed, and this scheme is quicker in terms of speed as well. The size to which characters can be developed is small, and the recommended font of processing scheme C is the Gothic style alone. The processing scheme D is capable of processing data of a format expressed by a straight line + circular-arc function as the input-data format. This processing scheme is excellent in terms of quality but does not present a speed as high as that of processing scheme A. However, its processing speed is high and it is capable of developing characters to a large size. The recommended font of processing scheme D is the brush style alone. Fig. 18 is a diagram showing three examples (a, b, c) of specifications required in the second modification. According to the second modification, the factors of the specifications are six in number, namely input-data format, usable memory capacity, character size capable of being developed, quality and speed. In a system having the four above-mentioned processing schemes and the three types of required specifications and conditions, the flow of control will be described taking the flowchart of Fig. 19 as an example Fig. 19 is a flowchart showing the flow through which a processing scheme is selected in a case where the processing schemes at step 405 in Fig. 4 are four in number. Step 1901 in Fig. 19 calls for a determination as to whether a window displayed is active (e.g., a window which accepts inputs from the user). If the window is active, the program proceeds to step 1902; otherwise, the program proceeds to step 1905. It is determined at step 1902 whether the object of editing in this window is text. If text is to be edited, then, at step 1903, a setting is made to the effect that speed should be emphasized and quality de-emphasized as far as the required specifications of the window are concerned. The program then proceeds to step 1908. If it is found at step 1902 that what is to be edited is not text, then a setting is made at step 1904 to the effect that both speed and quality should be emphasized as the required specifications. On the other hand, if it is found at step 1901 that the window is not active, the program proceeds to step 1905. Here it is determined whether text is to be edited, as in the case of step 1902. If it is determined that text is to be edited, then required specifications are set at step 1906 to the effect that both quality and speed should be de-emphasized. If it is found at step 1905 that what is to be edited is not text, then a setting is made at step 1907 to the effect that quality should be emphasized and speed de-emphasized. At step 1908, it is determined whether the given processing schemes include a processing scheme in which the font-data format of an input agrees with a data format capable of being processed. If there is at least one processing scheme in which agreement is obtained, then the program proceeds to step 1910. If there is not even one such processing scheme, the program proceeds to step 1909. If the program proceeds to step 1909, this represents a case in which the given processing schemes do not contain a single processable data format with respect to the font-data format of the input. However, even if even a single processable data format does not exist, there are cases where processing is made possible by converting the data format. Therefore, it is determined at step 1909 whether there is a processing scheme of a type in which a format conversion is capable of being made from the font-data format of the input to the data format possessed by the processing scheme. If a processing scheme capable of a format conversion exists, then the program proceeds to step 1910. If such a processing scheme does not exist, it is judged that processing is impossible and an error output is produced. If a change in the quality and speed shown in Fig. 17 occur owing to a format conversion in the case where the program proceeds from step 1909 to step 1910, the values in the table are rewritten. If the program proceeds to step 1910, this means that there is at least one processing scheme in which the data in the font-data format of the input is capable of being processed. At step 1910, an inquiry is made into the size of the memory usable for the window system, and it is determined whether the processing scheme that is capable of developing characters at the present time will be capable of developing characters within the allowable capacity of the development memory deemed to be usable. If there is at least one processing scheme capable of developing characters within the allowable limits, then the program proceeds to step 1911. If even one such processing scheme does not exist, it is judged that processing is impossible and a message to this effect is outputted as an error message. If there is at least one processing scheme which processes data in the font-data format of the input and, moreover, the memory capacity is satisfied (YES at steps 1908 and 1910), then it is determined at step 1911 whether the size of interest is capable of being developed in the processing schemes capable of executing processing. If development is possible, the program proceeds to step 1913; otherwise, the program proceeds to step 1912. If it is found at step 1911 that the data size of interest is incapable of being developed, then the program proceeds to step 1912. Here is determined whether the processing schemes of interest at the time of this step contain a processing scheme in which division processing is possible. If at least one such processing scheme exists, the program proceeds to step 1913; otherwise, an error message is produced. At step 1913, it is determined whether there is a processing scheme in which the required specifications set at steps 1901 through 1907 above are satisfied in terms of quality. If there is at least one processing scheme which satisfies the required specifications in terms of quality, then the program proceeds to step 1914. If there is not even one such processing scheme, the program proceeds to step 1924. If it is found at step 1913 that there is a processing scheme which satisfies the required specifications in terms of quality, it is determined at step 1914 whether there is a processing scheme which satisfies the required specifications in terms of speed. If there is at least one processing scheme which satisfies the required specifications in terms of speed, then the program proceeds to step 1915. If there is not even one processing scheme which satisfies the required specifications, then the program proceeds to step 1920. If there is at least one processing scheme which satisfies the required specifications in terms of both quality and speed, it is determined at step 1915 whether there are a plurality of such processing schemes. If there is only one, then this single processing scheme is decided upon and the program proceeds to step 1934. If there are two or more processing schemes, then the program proceeds to step 1916. If there are a plurality of processing schemes capable of performing processing at this time, the suitability/unsuitability of processing based upon the font is judged for each of the processing schemes at step 1916. If there is a processing scheme suited to a font to be outputted by at least one processing scheme, the program proceeds to step 1917. If there is not even one processing scheme suited to the font to be outputted, then the program proceeds to step 1919. If there is at least one processing scheme which satisfies all of the required specifications in terms of quality, speed and font, then it is determined at step 1917 whether there are a plurality of such processing schemes. If there is only one, then this processing scheme is decided upon and the program proceeds to step 1934. If there are two or more of such processing schemes, then the program proceeds to step 1918. In a case where there are a plurality of processing schemes which satisfy the required specifications, it is decided at step 1918 which of the processing schemes should be selected. Here the first appearing processing scheme that satisfies the required specifications is selected. If there are a plurality of processing schemes which satisfy the required specifications in terms of quality and speed, then the first appearing processing scheme that satisfies the required specifications is selected at step 1919 and the program proceeds to step 1934. If it is found at step 1920 that there is a processing scheme suited to the font to be outputted, then the program proceeds to step 1921. If there is not even one processing scheme suited to the font to be outputted, the program proceeds to step 1923. Here the first appearing processing scheme is selected from among the processing schemes which satisfy the required specifications in terms of quality and then the program proceeds to step 1934. If there is at least one processing scheme which satisfies the required specifications in terms of both quality and font, then it is determined at step 1921 whether there are a plurality of such processing schemes. If there is only one, then this processing scheme is decided upon and the program proceeds to step 1934. If there are two or more of such processing schemes, then the program proceeds to step 1922. In a case where there are a plurality of processing schemes which satisfy the required specifications in terms of quality and font, the first appearing processing scheme that satisfies the required specifications is selected at step 1922 and the program proceeds to step 1934. It is determined at step 1924 whether there is a processing scheme which satisfies the required specifications in terms of speed. If there is at least one processing scheme which satisfies the required specifications in terms of speed, then the program proceeds to step 1925. If there is not even one processing scheme which satisfies the required specifications, then the program proceeds to step 1930. If there is at least one processing scheme which satisfies the required specifications in terms of speed, it is determined at step 1925 whether there are a plurality of such processing schemes. If there is only one, then this single processing scheme is decided upon and the program proceeds to step 1934. If there are two or more processing schemes, then the program proceeds to step 1926. If there are a plurality of processing schemes capable of performing processing at this time, the suitability/unsuitability of processing based upon the font is judged for each of the processing schemes at step 1926. If there is a processing scheme suited to a font to be outputted by at least one processing scheme, the program proceeds to step 1927. If there is not even one processing scheme suited to the font to be outputted, then the program proceeds to step 1929. If there is at least one processing scheme which satisfies the required specifications in terms of both speed and font, then it is determined at step 1927 whether there are a plurality of such processing schemes. If there is only one, then this processing scheme is decided upon and the program proceeds to step 1934. If there are two or more of such processing schemes, then the program proceeds to step 1928. In a case where there are a plurality of processing schemes which satisfy the required specifications, it is decided at step 1928 which of the processing schemes should be selected. Here the first appearing processing scheme that satisfies the required specifications is selected. If there are a plurality of processing schemes which satisfy the required specifications in terms of speed, then the first appearing processing scheme that satisfies the required specifications is selected at step 1929 and the program proceeds to step 1934. If it is found at step 1930 that there is a processing scheme suited to the font to be outputted, then the program proceeds to step 1931. If there is not even one processing scheme suited to the font to be outputted, the program proceeds to step 1933. Here the first appearing processing scheme is selected from among the processing schemes which satisfy the required specifications in terms of quality and then the program proceeds to step 1934. If there is at least one processing scheme which satisfies the required specifications in terms of both quality and font, then it is determined at step 1931 whether there are a plurality of such processing schemes. If there is only one, then this processing scheme is decided upon and the program proceeds to step 1934. If there are two or more of such processing schemes, then the program proceeds to step 1932. In a case where there are a plurality of processing schemes which satisfy the required specifications in terms of quality and font, the first appearing processing scheme that satisfies the required specifications is selected at step 1932 and the program proceeds to step 1934. Processing similar to that of step 405 in Fig. 4 is performed at step 1934 by the selected processing scheme. It should be noted that no problems are encountered here even if the methods differ slightly depending upon the processing scheme. Thus, in a case where there are a plurality of processing schemes and a character pattern is outputted in a plurality of windows by using any of the processing schemes, the requirements of each window are judged. Then, in conformity with the requirements, one of the plurality of processing schemes is selected with respect to each window by using quality, speed, input-data format, memory capacity, output size or font as a reference. In addition, as a result, it is possible to output a character for each window under the optimum conditions in conformity with the particular circumstances. Alternatively, it is possible to output a character under optimum conditions in variable fashion depending upon whether each window is active or inactive. The present invention can be modified in various ways within the scope of the claims: For example, in the embodiment and modifications set forth above, the present invention is applied to a system which processes the Japanese language. However, the invention obviously is applicable to systems using other languages (such as English) as well. In such case, the fonts would be Courier, Times, etc. Further, in the foregoing embodiment and modifications, the invention is applied to a system comprising one display unit or printing apparatus. However, the invention may be applied to a system which includes a plurality of display units or printing apparatus. It also goes without saying that the invention is applicable to a case in which the above-mentioned effects are attained by supplying a program to a system or apparatus. As many apparently widely different embodiments of the present invention can be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims.

Claims: Processing apparatus for outputting characters for display in a window, comprising: generating means for generating character patterns for a window on the basis of character font data using one of a plurality of processing schemes; first discriminating means for discriminating a state of a displayed window or an object edited in the window; determining means for determining an output specification required for the window, on the basis of a discrimination by the first discriminating means; and selecting means for selecting, based on the output specification determined by the determining means, one of said processing schemes for said generating means; wherein the determining means is operative to set, as the output specification, a specification in which quick generation of the pattern is regarded as important if the window is active, or if an edited object is text. Processing apparatus according to claim 1, further comprising display means for displaying windows. Processing apparatus according to claim 1 or claim 2, including output means for outputting a character pattern generated by the generating means using the processing scheme selected by the selecting means. Processing apparatus according to any one of claims 1 to 3, wherein the first discriminating means is operative to decide whether or not the window is active. Processing apparatus according to any one of claims 1 to 3, wherein the first discriminating means is operative to decide whether or not an edited object is text. Processing apparatus according to any preceding claim, wherein the determining means is operative to determine the output specification which specifies which is regarded as more important, speed during generation of character pattern using character font data or quality of the generated character pattern. Processing apparatus according to any preceding claim, wherein said generating means is operative to convert characters expressed in a vector format into characters expressed in a dot format using one of a plurality of processing schemes. Processing apparatus according to any preceding claim, further comprising second discriminating means for discriminating an edited object which is to be displayed in the window, wherein the determining means is operative to determine the output specification for the window on the basis of discrimination results provided by the first and the second discrimination means. Processing apparatus according to any one of claims 1 to 5, wherein the selecting means is operative to select one of the processing schemes in consideration of speed of character pattern generation and quality of the generated character pattern. Processing apparatus according to claim 9, wherein the selecting means is operative to select one of the processing schemes in consideration of a format of character font data and a size of character to be generated. Processing apparatus according to claim 10, wherein the selecting means is operative to select one of the processing schemes in consideration of amount of memory required in generating the character pattern and fonts of the character to be generated. A processing method for outputting characters for display in a window, comprising the steps of: discriminating a state of a displayed window, or an object edited in the window; determining an output specification required for the window on the basis of a discrimination obtained in the discriminating step; and selecting, based on the output specification obtained in the determining step, one of a plurality of processing schemes for generating character patterns for a window on the basis of character font data; wherein in the determining step the output specification is set as a specification in which quick generation of the pattern is regarded as important if the window is active or if an edited object is text. A processing method according to claim 12, wherein whether an edited object is a text is discriminated in said discriminating step. A processing method according to claim 12 or claim 13, further comprising the step of displaying windows in a display. A processing method according to any one of claims 12, 13 or 14, further comprising the step of outputting a character pattern using the processing scheme selected in the selecting step. A processing method according to any one of claims 12 to 15, wherein in the discriminating step, a decision is made as to whether or not the window is active. A processing method according to any one of claims 12 to 16, wherein in the discriminating step, a decision is made as to whether or not the edited object is a text. A processing method according to any one of claims 12 to 17, wherein the output specification specifies which is regarded as more important, speed during generation of the character pattern using the character font data or quality of the generated character pattern. A processing method according to any one of claims 12 to 18, wherein one of the processing schemes is selected in the selecting step in consideration of speed of character pattern generation and quality of the generated character pattern. A processing method according to claim 19, wherein one of the processing schemes is selected in the selecting step in consideration of a format of character font data and a size of character to be generated. A processing method according to claim 20, wherein one of the processing schemes is selected in the selecting step in consideration of amount of memory required in generating the character pattern and fonts of the character to be generated. A processing method according to any one of claims 12 to 21 wherein each of the plurality of processing schemes is processed for converting characters expressed in a vector format into characters expressed in a dot format.

Inventors: MATSUMOTO HIROTSUGU, SASAKI YASUHIKO, SASKAI TETSUO, YOSHIDA MASAYUKI, MATSUMOTO, HIROTSUGU, SASAKI, YASUHIKO, SASKAI, TETSUO, YOSHIDA, MASAYUKI, Matsumoto, Hirotsugu, c/o Canon Kabushiki Kaisha, Sasaki, Yasuhiko, c/o Canon Kabushiki Kaisha, Saskai, Tetsuo, c/o Canon Kabushiki Kaisha, YOSHIDA, MASAYUKI, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1992
Main classification: G09G5
IPC codes: G09G5, G06F17