Character generator

Abstract: A character generator for converting a character code into a corresponding font pattern, includes a memory (100) for storing a character code of a character whose type face modification is inhibited; a discriminator (200) for judging whether or not a character code to be converted into a font pattern is stored in the memory (100); and a pattern generator (300) for converting a character code into a font pattern having a type face externally designated if the judgement by the discriminator (200) is negated, and converting a character code into a predetermined standard font pattern irrespective of a presence/absence of external designation of a type face if the judgement by the discriminator (200) is affirmative.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a character generator, and more particularly to a character generator for converting a character/symbol code into a corresponding dot (font) pattern. Related Background Art In the field of printing, various European type faces are known. A series of characters of the same group is called a family. In printing an article in European languages, a particular family is selectively used from the view point of type face design, and layout of the head and body of the article. A series of characters including upper case letters, lower case letters, numerals, symbols, and punctuation marks have its own type face such as italic face, bold face, condensed face or the like. At first sight, the italic face and condensed face, for example, are considered that they are obtained by modifying a regular face obliquely and lengthwise, respectively. However, the font patterns of a family are designed for each pattern independently, and have specific type faces. A display or printer for outputting European characters of various type faces is therefore required to have font data specific to respective type faces. In recent years, in order to reduce the capacity of font data, a simple printer uses a series of standard font patterns and if another series of font patterns are required, the standard font patterns are modified in a simple manner. Such simple modification is not sufficient for most of European type faces. However, a sans-serif type face having a relatively simple style, typically Helvetica, can be generated by modifying standard font patterns at the sacrifice of design. In a conventional character generator, an oblique modification, lengthwise modification or flattening modification is carried out for all standard font patterns to obtain a desired type face. Therefore, even a character such as an underline which is not desired to be modified, undergoes such modification. In order to solve this problem, the type face of each character may be designated. However, such designating process becomes a burden on a character code generator of, e.g., a word processor handling a large number of characters in writing a document thereby taking a longer time in word processing. SUMMARY OF THE INVENTION The present invention has been made in view of the above problem. It is therefore an object of the present invention to provide a character generator capable of modifying standard font patterns into another series of font patterns without modifying a particular character which is not desired to be modified. According to a first aspect of the present invention there is provided a method of processing characters in which a character generating apparatus is arranged to receive a type face modification instruction to modify the type face of the characters of all the font patterns to be output, said method being characterised in comprising the steps of: discriminating, in response to the type face modification instruction for a pattern, whether type face modification of this pattern is inhibited, using information, stored in a memory means, for distinguishing, from other patterns, a pattern whose type face modification is to be inhibited; and modifying the pattern, in response to the instruction, if type face modification of this pattern is not inhibited, the pattern being not modified in spite of the instruction if type face modification of this pattern is inhibited. It is an object of the present invention to provide a character generator wherein a particular character/symbol code which is not allowed to modify the type face is previously stored in memory means, so that while referring to the contents of memory means, it is possible to automatically determine whether or not a modification of a font pattern into a different type face is allowed. According to this invention, an external device is not requested to designate a character/symbol not to be modified. On the side of the character generator, a type face is designated once for all font patterns without designating a type face for each character. According to a second aspect of the present invention there is provided a character generating apparatus arranged to receive a type face modification instruction to modify the type face of the characters of the all font patterns to be output, characterised in that comprises: memory means for storing information for distinguishing, from other patterns, a pattern whose type face modification is to be inhibited; discriminating means for discriminating, in response to the type face modification instruction for a pattern, whether type face modification of this pattern is inhibited; and modification means for modifying the pattern, in response to the instruction, if type face modification of this pattern is not inhibited, said modification means being arranged not to modify the pattern in spite of the instruction if type face modification of this pattern is inhibited. BRIEF DESCRIPTION OF THE DRAWINGS Fig 1 is a block diagram showing the basic structure of an embodiment of this invention; Fig 2 is a block diagram showing the circuit arrangement of an embodiment of this invention; Figs 3A and 3B show an example of the contents of the font table 4-2 of the embodiment shown in Fig. 2, and the corresponding font pattern, respectively; Fig. 4 shows an example of the contents of the directory table 4-1 of the embodiment shown in Fig. 2; Fig. 5 shows an example of the contents of the modification data memory 5 of the embodiment shown in Fig. 2; and Fig. 6 is a flow chart showing the control procedure to be executed by the modification processing element 2 shown in Fig. 2. DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiments of the present invention will be described with reference to the accompanying drawings. The invention is obviously applicable to a character generator and an output apparatus having the character generator. Fig. 1 shows the fundamental structure of an embodiment according to this invention. Referring to Fig. 1, in a character generator for converting a character code into a corresponding font pattern, reference numeral 100 represents memory means for storing a character code of a character whose type face modification is inhibited. Reference numeral 200 represents discriminator means for judging whether or not a character code to be converted into a font pattern is stored in memory means. Reference numeral 300 represents pattern generator means for converting a character code into a font pattern having a type face externally designated if the judgement by said discriminator means is negated, and converting a character code into a predetermined standard font pattern irrespective of a presence/absence of external designation of a type face if the judgement by said discriminator means is affirmative. Fig. 2 shows the circuit arrangement of an embodiment of this invention. Referring to Fig. 2, reference numeral 1 represents an input element from which entered are a character code of a character to be converted, and a pattern generation instruction for designation the type face of a font pattern. The input element 1 is constructed of a signal holding circuit made of buffers, flip-flops and the like. Reference numeral 2 represents a modification element for converting a character code signal entered from the input element 1 into a font pattern having a predetermined type face. The modification element 2 is constructed of a central processing unit CPU. The modification unit 2 serves as the discrimination means and pattern generator means. Reference numeral 4 represents a pattern memory for previously storing font patterns of a standard type face for respective character codes, and a character code of a character whose type face is inhibited to be modified, respectively at the addresses corresponding to the character codes. The pattern memory 4 is constructed of a non-volatile memory such as a read-only memory. Reference numeral 5 represents a modification data memory for storing modification rules by which the standard type face is modified into various different type faces. The modification data memory 5 is constructed of a non-volatile memory. Reference numeral 3 represents an output element from which a font pattern subjected modification by the modification element 2 is outputted. The output element 3 is constructed of a signal holding circuit and parallel/serial conversion circuit. The input element 1, pattern memory 4, modification data memory 5 and output element 3 are controlled by the modification element 2. Fig. 3A shows an example of the contents of a font table 4-2 in the pattern memory shown in Fig. 2, and Fig. 3B shows the corresponding font pattern. A character "L" as exemplarily shown in Fig. 3B is represented by a plurality of values which are obtained by vector developing the coordinates values of corners of the character starting from the reference point A0. Fig. 4 shows an example of the contents of a directory table 4-1 in the pattern memory 4. Referring to Fig. 4, pattern addresses and modification data numbers are stored in the directory table at the addresses designated by character codes. This pattern address is a memory address of the font table shown in Fig. 3A which stores the corresponding font pattern. The modification data number is a number discriminating between a character code whose character type face is allowed to be modified and a character code whose character type face is not allowed to be modified. In accordance with this modification data number, a standard font pattern or a obliquely modified font pattern is generated. In this embodiment, the standard font pattern stored in the font table 4-2 is modified according to the modification equations to be described below. Fig. 5 shows an example of the contents of the modification data memory 5 shown in Fig. 2. Referring to Fig. 5, the coefficients used with the modification equations corresponding to the modification number are stored in the modification data memory 5. In this embodiment, the coordinates X and Y after font pattern modification are calculated by using X = ax + by Y = cx + dy where a, b, c and d are coefficients stored in the modification data memory 5, and x and y are pixel coordinates of a font pattern stored in the font table 4-2 in the pattern memory 4. The coefficients a, b, c and d of the modification data H1 are determined so as not to perform an oblique modification of a standard font pattern, whereas those of the modification data H2 are determined so as to perform an oblique modification. For example, symbols such as an underline and is not subjected to an oblique modification, and ordinary character are subjected to the oblique modification. The operation of the circuit shown in Fig. 2 will be described with reference to the flow chart shown in Fig. 6. The control procedure shown in Fig. 6 is stored in a ROM of the modification element 2, and executed by CPU. Referring to Fig. 6, at step S102 a character code to be converted is read from the input element 1. Next, at step S103, the corresponding modification data number is read from the directory table 4-1 shown in Fig. 4. If the read modification data number is "1", pattern development for a standard type face is carried out by using the modification data H1 (step S104), whereas if the read modification data number is "2", pattern development for an obliquely modified type face is carried out by using the modification data H2 (step S105). At step S106 the developed character pattern is outputted from the modification element 2 to an output device via the output element 3. The output device may be a printing system, CRT, telephone line or the like to which patterns can be transferred through electric coupling, magnetic coupling or the combined coupling. The control procedure is completed by steps S102 to S106. Various modifications of this invention are possible as in the following. (1) In the above embodiment, font patterns having two types of type faces, i.e., standard and modified type faces, are outputted. The number of modified type faces may be two or more. In this case, the modification data for two or more type faces are stored in the modification memory 5, and the type face to be used is externally designated once for a document to be made. (2) In the above embodiment, there are stored in the directory table 4-1 the pattern address and the modification number which is used to discriminate between a character code with enabled modification and a character code with disabled modification. The modification data number may be detected by decoding a character code read from the input element 1 to send the detected number to the modification element 2. As appreciated from the foregoing description of this invention, a particular character/symbol code which is not allowed to modify the type face is previously stored in memory means, so that while referring to the contents of memory means, it is possible to automatically determine whether or not a modification of a font pattern into a different type face is allowed. An external device is not requested to designate a character/symbol not to be modified. On the side of the character generator, a type face is designated once for all font patterns without designating a type face for each character.

Claims: A method of processing characters in which a character generating apparatus is arranged to receive a type face modification instruction to modify the type face of the characters of all the font patterns to be output, said method being characterised in comprising the steps of: discriminating (S103), in response to the type face modification instruction for a pattern, whether type face modification of this pattern is inhibited, using information, stored in a memory means (100), for distinguishing, from other patterns, a pattern whose type face modification is to be inhibited; and modifying the pattern, in response to the instruction, if type face modification of this pattern is not inhibited, the pattern being not modified in spite of the instruction if type face modification of this pattern is inhibited. A method according to claim 1, further comprising the step (S106) of sending the modified pattern to output means (3). A method according to claim 2, wherein the output means (3) comprises a printer. A method according to claim 2, wherein the output means (3) comprises a display device. A method according to claim 1, wherein the memory means (100) comprises (4) a read only memory. A method according to claim 1, wherein the type face modification is an oblique modification. A method according to claim 1, wherein the memory means (100) stores coordinate data for representing a pattern in correspondence to a character code. A method according to claim 1, wherein the pattern whose type face modification is inhibited is a rule pattern. A method according to claim 7, wherein the type face modification is executed by coordinate converting the stored coordinate data on the basis of a coefficient stored in a modification information memory. A method according to claim 7, wherein the information stored in the memory means (100) distinguishably represents for each character code whether type face modification of a pattern corresponding to the character code is inhibited or allowed. A character generating apparatus arranged to receive a type face modification instruction to modify the type face of the characters of all the font patterns to be output, characterised in that comprises: memory means (100) for storing information for distinguishing, from other patterns, a pattern whose type face modification is to be inhibited; discriminating means (200) for discriminating, in response to the type face modification instruction for a pattern, whether type face modification of this pattern is inhibited; and modification means (2) for modifying the pattern, in response to the instruction, if type face modification of this pattern is not inhibited, said modification means (2) being arranged not to modify the pattern in spite of the instruction if type face modification of this pattern is inhibited. An apparatus according to claim 11, further comprising means for outputting the modified pattern. An apparatus according to claim 12, wherein the output means (3) comprises a printer. An apparatus according to claim 12, wherein the output means (3) comprises a display device. An apparatus according to claim 11, wherein said memory means (4) comprises a read only memory. An apparatus according to claim 11, wherein the type face modification is an oblique modification. An apparatus according to claim 11, wherein said memory means (100) is arranged to store coordinate data for representing a pattern in correspondence to a character code. An apparatus according to claim 11, wherein the pattern whose type face modification is inhibited is a rule pattern. An apparatus according to claim 17, wherein the type face modification is executed by coordinate converting the stored coordinate data on the basis of a coefficient stored in a modification information memory. An apparatus according to claim 17, wherein the information stored in said memory means (100) distinguishably represents for each character code whether type face modification of a pattern corresponding to the character code is inhibited or allowed.

Inventors: WATANABE KIYOSHI, WATANABE, KIYOSHI, WATANABE, KIYOSHI, C/O CANON KABUSHIKI KAISHA
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1990
Main classification: G06K15
IPC codes: G09G5, B41J2, G06T11, G06K15