JPH0752462A - Character pattern generating device - Google Patents

Character pattern generating device

Info

Publication number
JPH0752462A
JPH0752462A JP5206115A JP20611593A JPH0752462A JP H0752462 A JPH0752462 A JP H0752462A JP 5206115 A JP5206115 A JP 5206115A JP 20611593 A JP20611593 A JP 20611593A JP H0752462 A JPH0752462 A JP H0752462A
Authority
JP
Japan
Prior art keywords
character
data
character pattern
shape data
outline
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5206115A
Other languages
Japanese (ja)
Inventor
Norihiko Asai
紀彦 浅井
Kazuma Aoki
一磨 青木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP5206115A priority Critical patent/JPH0752462A/en
Publication of JPH0752462A publication Critical patent/JPH0752462A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To store the shape data of a required character efficiently by a small capacity by generating a character pattern by selecting a memory means and character pattern generating means out of 2 kinds of memory means and 2 kinds of character pattern generating means, based on the discriminating result of a discriminating means. CONSTITUTION:After inputting 21 a character code of a character which needs to be output, the size of the character which needs to be output is input 22, and then, shape data corresponding to the character code is read 23 from a character ROM. In addition, it is discriminated 24 that the shape data is by an outline method or element method, and when the shape data is by the outline method, the motion moves to S25, and when the shape data is by the element method, the motion moves to s26. At S25, a scaling process of the character or a coordinate transformation to meet the designation of a rotation or inversion, etc., is executed, and the outline data is transformed to coordinate values corresponding to a picture element screen for which the size of one dot is taken as 1. At S26, various types of elements are composed into a stroke to constitute the character, and the outline of the character is generated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、文字、記号等を任意の
サイズにスケーリングして、高品質なドットデータに変
換して文字パターンを生成する文字パターン生成装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character pattern generator for scaling characters, symbols, etc. to an arbitrary size and converting them into high quality dot data to generate a character pattern.

【0002】[0002]

【従来の技術】従来、文字、記号等のキャラクタを生成
する方式として、それらの輪郭データ(以下、アウトラ
インデータと称する。)を用いる方式がある。この方式
では、文字の形状データは、1つ以上のアウトラインデ
ータから構成され、さらにアウトラインデータは直線部
分と曲線部分との組合せからなる閉曲線として与えられ
ている。そして、このアウトラインデータを指定された
任意の文字サイズに拡大、または縮小した後、出力装置
の解像度に応じて複数行×複数列の画素を有する画素ス
クリーンに重ね合わせ、アウトラインデータとの関係が
一定基準を満たす画素をオンとすることでドットデータ
を生成する。
2. Description of the Related Art Conventionally, as a method of generating characters such as characters and symbols, there is a method of using their contour data (hereinafter referred to as outline data). In this method, the character shape data is composed of one or more outline data, and the outline data is given as a closed curve composed of a combination of a straight line portion and a curved line portion. Then, after enlarging or reducing this outline data to a specified arbitrary character size, it is superimposed on a pixel screen having pixels of multiple rows x multiple columns according to the resolution of the output device, and the relationship with the outline data is constant. Dot data is generated by turning on pixels that satisfy the standard.

【0003】また、他の従来技術として、例えば、菊池
他2名の「字体へのパラメトリック基本エレメント張付
け方式による高品質漢字フォント生成方式」(情報処理
学会第28回全国大会1984、p1435〜p143
6)(以下、エレメント方式と称する。)の報告があ
る。これによると、文字や記号を構成するストロークを
十数種類のエレメントに分類し、各エレメントを品質よ
く組み合わせることにより文字パターンを生成すること
ができる。
As another conventional technique, for example, Kikuchi et al.'S "High quality Kanji font generation method by applying parametric basic elements to fonts" (Information Processing Society of Japan 28th National Convention 1984, p1435-p143).
6) (hereinafter referred to as element method). According to this, it is possible to generate a character pattern by classifying strokes forming a character or a symbol into a dozen or more kinds of elements and combining the elements with good quality.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
たような従来のアウトライン方式では、任意の文字サイ
ズにおいて比較的高品質の文字パターンを生成すること
が可能であるが、数千文字を要する日本語文字セットの
場合、そのデータ容量は膨大なものとなり、文字の形状
データを格納するROM容量の増大につながる。また、
近年のレーザープリンタ等の出力装置の低価格化を考慮
すると、できるだけROM容量は低く抑えることが望ま
しい。
However, in the conventional outline method as described above, it is possible to generate a relatively high quality character pattern in an arbitrary character size, but it requires thousands of characters. In the case of a character set, its data capacity becomes enormous, which leads to an increase in the ROM capacity for storing character shape data. Also,
Considering the cost reduction of output devices such as laser printers in recent years, it is desirable to keep the ROM capacity as low as possible.

【0005】また、上述のエレメント方式では、漢字の
ように比較的単純なエレメントの組合せで表現できる文
字の場合、各文字においてエレメントを多数共有化でき
るため、ROM容量を低く抑えることができるが、仮名
文字のように複雑な曲線を多数有する文字の場合には、
十数種類の限られたエレメントだけで全ての文字パター
ンを生成することは極めて困難であった。その結果、生
成できる文字数の割にエレメントの種類が著しく増えて
しまうため、この方法でも限られたROM容量を効率的
に使うことができなかった。
In addition, in the above-mentioned element system, in the case of a character that can be expressed by a relatively simple combination of elements such as Chinese characters, a large number of elements can be shared for each character, so that the ROM capacity can be kept low. For characters with many complicated curves, such as kana characters,
It was extremely difficult to generate all character patterns with only a dozen or so limited elements. As a result, since the number of types of elements increases remarkably for the number of characters that can be generated, this method cannot efficiently use the limited ROM capacity.

【0006】本発明は、上述した問題点を解決するため
になされたものであり、文字パターンの生成に必要な文
字の形状データを少ない容量で効率よく格納することが
可能な文字パターン生成装置を提供することを目的とし
ている。
The present invention has been made to solve the above-mentioned problems, and provides a character pattern generation device capable of efficiently storing character shape data required for generating a character pattern with a small capacity. It is intended to be provided.

【0007】[0007]

【課題を解決するための手段】この目的を達成するため
に本発明の文字パターン生成装置は、入力された文字コ
ードに対応する文字の形状データを複数行×複数列のド
ットデータに変換して文字パターンを生成するものであ
り、更には或る文字の形状データの少なくとも一部分を
アウトラインデータとして記憶する第1の記憶手段と、
その第1の記憶手段に記憶されたアウトラインデータ
を、ドットデータに変換して文字パターンを生成する第
1の文字パターン生成手段と、前記第1の記憶手段に記
憶される文字、あるいはそれ以外の文字の形状データの
少なくとも一部分を、文字の骨格を表すストロークデー
タと、数種類に分類された文字形状を表すエレメントデ
ータとで記憶する第2の記憶手段と、その第2の記憶手
段に記憶されたストロークデータとエレメントデータと
から文字パターンを生成する第2の文字パターン生成手
段と、前記入力された文字コードに対応する文字の形状
データの各部分が、前記第1、第2の記憶手段の内どち
らに記憶されているかを判別する判別手段とを備え、そ
の判別手段の判別結果に基いて、前記第1、第2の記憶
手段および前記第1、第2の文字パターン生成手段を選
択的に用いて文字パターンを生成する。
In order to achieve this object, a character pattern generator of the present invention converts character shape data corresponding to an input character code into dot data of a plurality of rows × a plurality of columns. First storage means for generating a character pattern, and further storing at least a part of shape data of a certain character as outline data;
A first character pattern generating means for converting the outline data stored in the first storing means into dot data to generate a character pattern, and a character stored in the first storing means, or other characters. Second storage means for storing at least a part of the character shape data by stroke data representing the skeleton of the character and element data representing the character shapes classified into several types, and the second storage means. Second character pattern generation means for generating a character pattern from stroke data and element data, and each portion of the character shape data corresponding to the input character code are stored in the first and second storage means. Determination means for determining which is stored, and based on the determination result of the determination means, the first and second storage means and the first storage means. Generating a character pattern by using the second character pattern generating means selectively.

【0008】[0008]

【作用】上記の構成を有する本発明の文字パターン生成
装置は、入力された文字コードに対応する文字の形状デ
ータを複数行×複数列のドットデータに変換して文字パ
ターンを生成する。その際、判別手段は前記入力された
文字コードに対応する文字の形状データの各部分が、第
1、第2の記憶手段の内どちらに記憶されているかを判
別し、その判別手段の判別結果に基いて、前記第1、第
2の記憶手段および前記第1、第2の文字パターン生成
手段を選択的に用いて文字パターンを生成する。
The character pattern generating apparatus of the present invention having the above-described structure converts the shape data of the character corresponding to the input character code into dot data of a plurality of rows and a plurality of columns to generate a character pattern. At that time, the determination means determines which of the first and second storage means each portion of the character shape data corresponding to the input character code is stored, and the determination result of the determination means. Based on the above, the character pattern is generated by selectively using the first and second storage means and the first and second character pattern generation means.

【0009】[0009]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0010】図1は、本発明を適用したレーザプリンタ
の制御回路のうち、主として文字パターンを生成する部
分を示すブロック図である。制御装置の主体を成すマイ
クロコンピュータ部20は、CPU1、プログラムRO
M2、テキストメモリ3、ワーキングメモリ4、ドット
データメモリ5、キャラクタROM6を備えている。
FIG. 1 is a block diagram showing a portion that mainly generates a character pattern in a control circuit of a laser printer to which the present invention is applied. The microcomputer unit 20, which is the main body of the control device, includes a CPU 1 and a program RO.
An M2, a text memory 3, a working memory 4, a dot data memory 5, and a character ROM 6 are provided.

【0011】そして、これらCPU1等はバス7を介し
て相互に接続されており、バス7には入力部8、印字部
9が接続されている。入力部8は文字コード等の必要な
データをマイクロコンピュータ部20に入力するもので
あり、印字部9はマイクロコンピュータ部20からの指
令に基いて、文字を印刷する部分である。
The CPU 1 and the like are connected to each other via a bus 7, and an input unit 8 and a printing unit 9 are connected to the bus 7. The input unit 8 inputs necessary data such as a character code to the microcomputer unit 20, and the printing unit 9 is a unit for printing a character based on a command from the microcomputer unit 20.

【0012】プログラムROM2には、図2のフローチ
ャートに示す文字パターン生成処理プログラムの他、印
字に必要な種々のプログラムが記憶されている。テキス
トメモリ3は、入力された文字コードや文字サイズ等の
情報を記憶しておくためのメモリである。キャラクタR
OM6は、エレメント方式で与えられた漢字と、アウト
ライン方式で与えられた非漢字(仮名、英数記号等)の
形状データが記憶された読み出し専用メモリである。ワ
ーキングメモリ4は、CPU1がプログラムを実行する
時に必要なデータを一時的に記憶するものであり、ドッ
トデータメモリ5は、アウトラインデータまたはストロ
ークデータおよびエレメントデータから変換されたドッ
トデータを記憶するものである。
The program ROM 2 stores various programs necessary for printing in addition to the character pattern generation processing program shown in the flowchart of FIG. The text memory 3 is a memory for storing information such as an input character code and character size. Character R
The OM 6 is a read-only memory that stores shape data of Chinese characters given by the element method and non-Kanji characters (kana, alphanumeric symbols, etc.) given by the outline method. The working memory 4 temporarily stores data required when the CPU 1 executes a program, and the dot data memory 5 stores dot data converted from outline data or stroke data and element data. is there.

【0013】そして、上記構成により印字部9は、電子
写真方式によりドットデータメモリ5から読み出したド
ットイメージデータを印字し得るようになっている。
With the above arrangement, the printing section 9 can print the dot image data read from the dot data memory 5 by the electrophotographic method.

【0014】次に、実際の文字パターン生成処理につい
て図2のフローチャートを参照して説明する。まず始め
に、ステップS21で、出力したい文字の文字コードを
入力し、次にステップS22に進んで出力したい文字サ
イズを入力する。そして次に、ステップS23で、文字
コードに対応する形状データをキャラクタROM6から
読み込む。その後ステップS24に進み、その形状デー
タがアウトライン方式であるかエレメント方式であるか
を判別し、アウトライン方式であればステップS25
へ、エレメント方式であればステップS26へ進む。
Next, the actual character pattern generation processing will be described with reference to the flowchart of FIG. First, in step S21, the character code of the character to be output is input, and then in step S22, the character size to be output is input. Then, in step S23, the shape data corresponding to the character code is read from the character ROM 6. After that, the process proceeds to step S24, and it is determined whether the shape data is the outline method or the element method. If the shape data is the outline method, the step S25 is performed.
If the element method, the process proceeds to step S26.

【0015】ここにおいて、ステップS24の判別方法
としては様々な方法が考えられるが、例えば各文字の形
状データの先頭に判別フラグを設定し、このフラグがオ
フであればエレメント方式として処理し、フラグがオン
であればアウトライン方式として処理を実行すればよ
い。ステップS25では、文字のスケーリング処理や、
回転、反転などの指定に合わせた座標変換を行い、アウ
トラインデータはドット1つの大きさを1とする画素ス
クリーンに対応した座標値に変換される。
Here, various methods can be considered as the determination method in step S24. For example, a determination flag is set at the beginning of the shape data of each character, and if this flag is off, it is processed as an element method and the flag is set. If is on, the process may be executed as an outline method. In step S25, character scaling processing,
Coordinate conversion is performed according to designation such as rotation and inversion, and the outline data is converted into coordinate values corresponding to a pixel screen in which the size of one dot is 1.

【0016】次に、最終的に得られたアウトラインデー
タを、ラスタスキャン方式にて塗りつぶし、ドットデー
タに変換する。尚、ラスタスキャン方式は既に公知の技
術であり、また本発明の主たる部分ではないため詳細な
説明は省略する。
Next, the finally obtained outline data is filled in by the raster scan method and converted into dot data. The raster scan method is a well-known technique and is not a main part of the present invention, so a detailed description thereof will be omitted.

【0017】また、ステップS26では、文字を構成す
るストロークに各種のエレメントを合成し、文字のアウ
トラインを生成する。以下、アウトライン方式と同様に
ドットデータに変換する。エレメント方式は前記従来技
術に記載したように、公知の技術であり、また本発明の
主たる部分ではないため、詳細な説明は省略する。そし
て、ステップS27により、CPU1からの印刷命令に
より印字部9がドットイメージデータを読み出し、印刷
する。
Further, in step S26, various elements are combined with the strokes forming the character to generate an outline of the character. Hereinafter, like the outline method, the dot data is converted. The element method is a known technology as described in the above-mentioned prior art, and is not a main part of the present invention, and thus detailed description thereof will be omitted. Then, in step S27, the printing unit 9 reads the dot image data and prints it according to the print command from the CPU 1.

【0018】なお、本実施例では漢字はエレメント方式
で与え、非漢字はアウトライン方式で与えたが、漢字、
非漢字にとらわれず、エレメントの分類が容易な文字は
エレメント方式で与え、分類が困難な文字はアウトライ
ン方式で与えても、本発明の趣旨を逸脱するものではな
い。
In this embodiment, the kanji is given by the element method and the non-kanji is given by the outline method.
It does not depart from the gist of the present invention to give a character whose element is easy to classify without being restricted to a non-Kanji character by the element method and a character which is difficult to classify with an outline method.

【0019】さらに、本実施例では各文字の形状データ
がアウトライン方式またはエレメント方式のいづれか一
方のみのデータ形式で与えたが、1文字の形状データ中
に2つのデータ形式を混在させることも可能である。例
えば、ぱ、ぴ、ぷ、ぺ、ぽ、の[°]の形状は、各文字
で共通化できるためエレメント方式で与え、それ以外の
部分の形状は、複雑な曲線が多いのでアウトライン方式
で与えればよい。このように各文字毎に最適なデータ形
式で形状データを与えるのみに留まらず、各文字のパー
ツ毎に最適なデータ形式で形状データを与えることによ
り、更に大幅にROM容量を削減することが可能とな
る。
Further, in the present embodiment, the shape data of each character is given in the data format of only one of the outline method and the element method, but it is also possible to mix two data formats in the shape data of one character. is there. For example, the shape of [°] of pat, pi, pu, pu, pe, po, is given by the element method because it can be shared by each character, and the shape of other parts is given by the outline method because there are many complicated curves. Good. In this way, not only giving shape data in the optimum data format for each character, but also giving shape data in the optimum data format for each character part can further reduce the ROM capacity significantly. Becomes

【0020】[0020]

【発明の効果】以上説明したことから明らかなように、
本発明の文字パターン生成装置によれば、比較的エレメ
ントの分類が容易な文字は、エレメント方式で文字の形
状データを記憶し、汎用的なエレメントだけでは分類が
困難な文字は、アウトライン方式で文字の形状データを
記憶することにより、文字パターンの生成に必要な文字
の形状データを少ない容量で効率よく格納することが可
能となる。
As is apparent from the above description,
According to the character pattern generation device of the present invention, a character whose element is relatively easy to classify stores character shape data by the element method, and a character which is difficult to classify by only a general-purpose element is a character by the outline method. By storing the shape data of, it is possible to efficiently store the shape data of the character required for generating the character pattern with a small capacity.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の文字パターン生成装置を適用したレー
ザプリンタの要部の電気的構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing an electrical configuration of a main part of a laser printer to which a character pattern generation device of the present invention is applied.

【図2】文字パターン生成処理を表すフローチャートで
ある。
FIG. 2 is a flowchart showing a character pattern generation process.

【符号の説明】[Explanation of symbols]

1 CPU 2 プログラムROM 3 テキストメモリ 4 ワーキングメモリ 5 ドットデータメモリ 6 キャラクタROM 7 バス 8 入力部 9 印字部 20 マイクロコンピュータ部 1 CPU 2 Program ROM 3 Text memory 4 Working memory 5 Dot data memory 6 Character ROM 7 Bus 8 Input section 9 Printing section 20 Microcomputer section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力された文字コードに対応する文字の
形状データを複数行×複数列のドットデータに変換して
文字パターンを生成する文字パターン生成装置におい
て、 或る文字の形状データの少なくとも一部分をアウトライ
ンデータとして記憶する第1の記憶手段と、 その第1の記憶手段に記憶されたアウトラインデータ
を、ドットデータに変換して文字パターンを生成する第
1の文字パターン生成手段と、 前記第1の記憶手段に記憶される文字、あるいはそれ以
外の文字の形状データの少なくとも一部分を、文字の骨
格を表すストロークデータと、数種類に分類された文字
形状を表すエレメントデータとで記憶する第2の記憶手
段と、 その第2の記憶手段に記憶されたストロークデータとエ
レメントデータとから文字パターンを生成する第2の文
字パターン生成手段と、 前記入力された文字コードに対応する文字の形状データ
の各部分が、前記第1、第2の記憶手段の内どちらに記
憶されているかを判別する判別手段とを備え、その判別
手段の判別結果に基いて、前記第1、第2の記憶手段お
よび前記第1、第2の文字パターン生成手段を選択的に
用いて文字パターンを生成することを特徴とする文字パ
ターン生成装置。
1. A character pattern generation device for converting character shape data corresponding to an input character code into dot data of a plurality of rows × a plurality of columns to generate a character pattern, wherein at least a part of the shape data of a certain character. And a first character pattern generation unit for converting the outline data stored in the first storage unit into dot data to generate a character pattern, Second storage for storing at least a part of the shape data of the character stored in the storage means of the above or other characters by the stroke data representing the skeleton of the character and the element data representing the character shapes classified into several types. And a character pattern from the stroke data and the element data stored in the second storage means. A second character pattern generating means, and a determining means for determining in which of the first and second storage means each portion of the character shape data corresponding to the input character code is stored. And a character pattern is generated by selectively using the first and second storage means and the first and second character pattern generation means based on the determination result of the determination means. Character pattern generator.
JP5206115A 1993-08-20 1993-08-20 Character pattern generating device Pending JPH0752462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5206115A JPH0752462A (en) 1993-08-20 1993-08-20 Character pattern generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5206115A JPH0752462A (en) 1993-08-20 1993-08-20 Character pattern generating device

Publications (1)

Publication Number Publication Date
JPH0752462A true JPH0752462A (en) 1995-02-28

Family

ID=16518052

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5206115A Pending JPH0752462A (en) 1993-08-20 1993-08-20 Character pattern generating device

Country Status (1)

Country Link
JP (1) JPH0752462A (en)

Similar Documents

Publication Publication Date Title
JPH031193A (en) Data converter
US5562350A (en) Output apparatus that selects a vector font based on character size
JPH0752462A (en) Character pattern generating device
JPH0934434A (en) Character generating device
JP2650324B2 (en) Multi-value character font generation system
JPH03213367A (en) Multicolor printer
JPH0443396A (en) Character pattern generating device
US6259535B1 (en) Print image-forming method and device
JPS6370890A (en) Graphic processor
JP3320566B2 (en) Character symbol conversion device and printer
JP3082236B2 (en) Character drawing device
JPH06297779A (en) Printing apparatus
JP2910183B2 (en) Character processor
JP2881924B2 (en) Data storage device
JPH0216068A (en) Image forming device
JP3254657B2 (en) Data converter
JPH0661960B2 (en) Dot interpolation control device
JPH01229649A (en) Printing method using vector font data
JPH11190990A (en) Outline font displaying and printing method
JPH03112668A (en) Printer
JPH08123393A (en) Character storage device
JPH08118745A (en) Character output device
JPH0784739A (en) Data converter
JPH01100590A (en) Display control system
JPH04269798A (en) Character data generation device