JPH0999595A - Character output system - Google Patents

Character output system

Info

Publication number
JPH0999595A
JPH0999595A JP7256167A JP25616795A JPH0999595A JP H0999595 A JPH0999595 A JP H0999595A JP 7256167 A JP7256167 A JP 7256167A JP 25616795 A JP25616795 A JP 25616795A JP H0999595 A JPH0999595 A JP H0999595A
Authority
JP
Japan
Prior art keywords
character
data
blank
pattern
print
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.)
Withdrawn
Application number
JP7256167A
Other languages
Japanese (ja)
Inventor
Kyoji Sugiyama
恭司 杉山
Yuichi Okano
裕一 岡野
Shintaro Arai
信太郎 新井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP7256167A priority Critical patent/JPH0999595A/en
Publication of JPH0999595A publication Critical patent/JPH0999595A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent a recorder from skipping blank character codes and losing its performance, by providing a character code-data-extracting means, a pattern data-storing means, a print character pattern searching means, a character- recognizing means, a blank character pattern generating means, and a drawing data generating means. SOLUTION: When a target print character pattern is present in a character pattern data memory 23 or a character pattern data storage's external memory 24, a decision is made whether it is a blank character pattern or not. That is, whether pattern data from the character pattern data memory 23 or the character pattern data's external memory 24 are blank characters or normal characters is decided by a blank character pattern judging section 21. If they are blank patterns, a character drawing data generating section 22 generates information for one blank character, and accumulate blank character pattern data which are specified continuously as a blank character width until normal print characters are received.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は文字出力装置に関
し、特に、上位装置から文字コード列を受信し、そのコ
ードに対応した文字をアウトラインフォント等のベクト
ルデータを使用した文字フォントで出力する文字出力装
置に関する。従来、大量、高速、且つ表現力豊かな印刷
を行なう際には、印刷しようとするページ内に存在する
印刷文字数(文字コードデータ数)が多いと、印刷機の
性能が十分に発揮されないという問題点がある。このと
き、通常は印刷を行なわない空白文字も1文字分の文字
データとして送られており、この空白文字による印刷機
の性能の影響を少なくし、且つ、空白文字としての機能
を失わないようにする技術が要求されている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character output device, and more particularly to a character output device for receiving a character code string from a host device and outputting a character corresponding to the code in a character font using vector data such as an outline font. Regarding the device. Conventionally, when printing in large quantities, at high speed, and with rich expressiveness, if the number of print characters (character code data) existing in the page to be printed is large, the performance of the printing machine will not be fully exhibited. There is a point. At this time, a blank character that is not normally printed is also sent as character data for one character, so that the influence of the blank character on the performance of the printing machine is reduced and the function as a blank character is not lost. The technology to do is required.

【0002】[0002]

【従来の技術】上位装置から送られてくる印刷データを
基に、印刷データ中に含まれる文字コードから文字パタ
ーンを検索し、文字パターンデータをビットマップメモ
リ上に展開して印刷を行なう従来の印刷装置では、指定
された空白文字コードはそのまま1文字分の描画データ
に変換され、その他の通常の文字と同様に空白文字を描
画する方法が用いられている。
2. Description of the Related Art Based on print data sent from a host device, a character pattern is searched for from a character code included in the print data, and the character pattern data is expanded on a bit map memory for printing. In the printing apparatus, the designated blank character code is converted into one character of drawing data as it is, and a method of drawing a blank character like other ordinary characters is used.

【0003】書き出し位置の調整、桁揃え等によって、
印刷データ内に含まれる多数の空白文字データは、印刷
されたものからは判別することができない。即ち、印刷
物からは空白データがある部分とない部分とは見た目に
は分からない。ところが、印刷装置内においては、空白
文字は他の通常文字と同様に印刷処理を行なうため、空
白文字が多いと空白文字の処理が通常文字と同等に印刷
装置の性能を低下させてしまう。
By adjusting the writing position, aligning the digits, etc.,
Many blank character data included in the print data cannot be discriminated from the printed data. That is, it is not possible to visually recognize a portion having blank data and a portion having no blank data from the printed matter. However, in the printing apparatus, blank characters are printed in the same manner as other normal characters. Therefore, if there are many blank characters, the processing of blank characters deteriorates the performance of the printing apparatus as much as normal characters.

【0004】そこで、このような問題点の解決策とし
て、空白文字コードを読み飛ばし、次に印刷される文字
データまで座標軸を移動する処理が提案されている。
Therefore, as a solution to such a problem, there has been proposed a process of skipping the blank character code and moving the coordinate axis to the character data to be printed next.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、空白文
字コードを読み飛ばし、次に印刷される文字データまで
座標軸を移動する処理では、図形の上に空白文字を含む
文字列を上書きする場合、空白文字の部分は座標軸のス
キップのみとなるため、下に背景として描画されている
図形が空白文字の部分だけ出力されてしまうという問題
点がある。
However, in the process of skipping the blank character code and moving the coordinate axis to the character data to be printed next, when the character string including the blank character is overwritten on the figure, the blank character is overwritten. There is a problem that the figure drawn as the background below is output only for the blank characters because the part of is only skipped the coordinate axis.

【0006】この問題点について図8を用いて説明す
る。図8(a) はハット型の背景の上の□部に『ABCD
EFGHIJKL』という文字を上書きする場合を説明
するものである。『ABCDEFGHIJKL』がハッ
ト型の背景の上の□部に上書きされると、図8(b) に示
すように、ハット型の背景は上書きされた部分のみが白
抜きになり、その上に文字が描かれる。同様に、ハット
型の背景の上の□部に『ABCD(空白)IJKL』と
いう文字を上書きする場合は、DとIとの間には空白文
字コードがあるので、印刷結果は図8(c) に示すように
なる。
This problem will be described with reference to FIG. Figure 8 (a) shows "ABCD
The case of overwriting the characters "EFGHIJKL" will be described. When "ABCDEFGHIJKL" is overwritten on the □ part on the hat type background, as shown in Fig. 8 (b), only the overwritten part of the hat type background becomes white, and characters are written on it. be painted. Similarly, when the character “ABCD (blank) IJKL” is overwritten on the part □ on the hat-shaped background, there is a blank character code between D and I. ).

【0007】ところが、前述のように、空白文字コード
を読み飛ばし、次に印刷される文字データまで通常文字
の座標軸を移動するように処理すると、ハット型の背景
の上の□部に『ABCD(空白)IJKL』という文字
を上書きする場合は、DとIとの間には空白文字コード
が読み飛ばされる。この結果、印刷結果は図8(d) に示
すように、ハット型の背景の部分が読み飛ばした空白文
字の部分だけ出力されてしまい、意図する印刷結果(図
8(c) )と異なった印刷結果が得られてしまうという問
題点がある。
However, as described above, if the blank character code is skipped and the coordinate axis of the normal character is moved to the character data to be printed next, "ABCD ( When the character "blank) IJKL" is overwritten, the blank character code is skipped between D and I. As a result, the print result is different from the intended print result (Fig. 8 (c)), because only the blank characters that are skipped in the hat type background are output as shown in Fig. 8 (d). There is a problem that a print result is obtained.

【0008】そこで、本発明は、空白文字コードを読み
飛ばすことなく、また、空白文字の数が多くても印刷装
置の性能を低下させることのない文字出力装置を提供す
ることを目的とする。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a character output device which does not skip blank character codes and does not deteriorate the performance of a printing device even if the number of blank characters is large.

【0009】[0009]

【課題を解決するための手段】前記目的を達成する本発
明の文字出力装置の原理構成が図1に示される。本発明
は、上位装置から送られてきた印刷データに基づいて印
刷文字を出力する文字出力装置であって、文字コードデ
ータ抽出手段は送られてきた印刷データから文字コード
データを抽出する。また、文字出力装置には文字コード
データに対応する文字パターンデータを格納するパター
ンデータ記憶手段が備えられており、印刷文字パターン
検索手段は抽出された文字コードデータに対応する印刷
文字パターンを、このパターンデータ記憶手段から検索
する。更に、文字識別手段は検索された印刷文字パター
ンのデータ長情報から、通常文字と空白文字とを識別
し、空白文字パターン作成手段は連続する少なくとも1
つの空白文字パターンをまとめて1つの長方形の空白パ
ターンデータを作成する。そして、描画データ作成手段
は空白文字パターンデータに隣接する1文字の通常文字
パターンデータに、長方形の空白パターンデータを付加
して1文字分の描画データを作成する。
FIG. 1 shows the principle configuration of a character output device of the present invention for achieving the above object. The present invention is a character output device for outputting a print character based on print data sent from a higher-level device, wherein the character code data extraction means extracts character code data from the sent print data. Further, the character output device is provided with a pattern data storage means for storing character pattern data corresponding to the character code data, and the print character pattern search means stores the print character pattern corresponding to the extracted character code data. The pattern data storage means is searched. Further, the character identifying means identifies the normal character and the blank character from the data length information of the retrieved print character pattern, and the blank character pattern creating means makes at least one continuous character.
One blank character pattern is collected to create one rectangular blank pattern data. Then, the drawing data creation means adds rectangular blank pattern data to the normal character pattern data of one character adjacent to the blank character pattern data to create drawing data for one character.

【0010】このような文字出力装置は、1文字分の描
画データに含まれる長方形の空白パターンデータによ
り、長方形の空白パターンを長方形の面塗りとして1文
字の通常文字パターンに隣接させて描画する描画データ
処理手段を更に備えていても良い。また、描画データ処
理手段が、前記長方形の面塗りを行なう場合に、文字に
与えられた重ね書きか上書きかの描画属性で処理するよ
うにしても良い。
Such a character output device draws by drawing the rectangular blank pattern adjacent to the normal character pattern of one character as a surface fill of the rectangle by the rectangular blank pattern data included in the drawing data for one character. Data processing means may be further provided. Further, the drawing data processing means may process the rectangular surface painting with the drawing attribute of overwriting or overwriting given to the character.

【0011】本発明の文字出力装置によれば、上位装置
から送られてきた印刷データから文字コードデータが抽
出され、文字コードデータに対応する文字パターンデー
タがパターンデータ記憶手段から検索される。そして、
検索された印刷文字パターンのデータ長情報から通常文
字と空白文字とが識別され、連続する少なくとも1つの
空白文字パターンがまとめて1つの長方形の空白パター
ンデータとして作成される。この空白パターンデータは
これに隣接する1文字の通常文字パターンデータに付加
されて1文字分の描画データが作成される。一方、描画
時には、1文字分の描画データに含まれる長方形の空白
パターンにより、長方形の空白パターンが長方形の面塗
りとして1文字の通常文字パターンに隣接される。ま
た、長方形の面塗りを行なう場合には、文字に与えられ
た重ね書きか上書きかの描画属性で処理される。
According to the character output device of the present invention, the character code data is extracted from the print data sent from the host device, and the character pattern data corresponding to the character code data is retrieved from the pattern data storage means. And
A normal character and a blank character are identified from the data length information of the retrieved print character pattern, and at least one continuous blank character pattern is created collectively as one rectangular blank pattern data. This blank pattern data is added to the normal character pattern data of one character adjacent to this blank pattern data to create drawing data for one character. On the other hand, at the time of drawing, the rectangular blank pattern included in the drawing data for one character is adjacent to the normal character pattern of one character as a rectangular surface fill. Further, when the rectangular surface is painted, it is processed according to the drawing attribute given to the character, that is, overwriting or overwriting.

【0012】[0012]

【発明の実施の形態】以下添付図面を用いて本発明の実
施形態を詳細に説明する。図2は本発明の印刷装置10
における文字出力装置の一実施形態の構成を示すブロッ
ク構成図である。印刷装置10は上位装置100から転
送されてきた印刷データを用紙に印刷するものであり、
その内部には、データ解析部1、文字データ処理部2、
図形データ処理部3、イメージデータ処理部4、描画デ
ータ格納用共有メモリ5、描画部6、ビットマップメモ
リ7、及び印刷機構8が備えられている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. FIG. 2 shows the printing apparatus 10 of the present invention.
2 is a block configuration diagram showing a configuration of an embodiment of a character output device in FIG. The printing device 10 prints the print data transferred from the higher-level device 100 on a sheet,
Inside the data analysis unit 1, the character data processing unit 2,
The graphic data processing unit 3, the image data processing unit 4, the drawing data storage shared memory 5, the drawing unit 6, the bitmap memory 7, and the printing mechanism 8 are provided.

【0013】上位装置100から転送されてきた印刷デ
ータは、印刷装置10内のデータ解析部1で「文字デー
タ」、「図形データ」、及び「イメージデータ」に振り
分けられ、それぞれ文字データ処理部2、図形データ処
理部3、イメージデータ処理部4に送られる。「図形デ
ータ」は点と線で表される図形を描くデータであり、
「イメージデータ」はスキャナで読み込まれたドットデ
ータである。本発明は文字データの処理に関する発明で
あるので、データ解析部1から図形データ処理部3とイ
メージデータ処理部4に送られたデータについてはその
説明を省略し、文字データ処理部2に送られた「文字デ
ータ」の処理についてのみ説明する。従って、図形デー
タ処理部3とイメージデータ処理部4の内部構成につい
ても図示していない。
The print data transferred from the higher-level device 100 is sorted into "character data", "graphic data", and "image data" by the data analysis unit 1 in the printing device 10, and each is processed by the character data processing unit 2 , The graphic data processing unit 3 and the image data processing unit 4. "Figure data" is the data that draws the figure represented by points and lines,
"Image data" is dot data read by a scanner. Since the present invention relates to the processing of character data, the description of the data sent from the data analysis unit 1 to the graphic data processing unit 3 and the image data processing unit 4 is omitted, and the data is sent to the character data processing unit 2. Only the "character data" processing will be described. Therefore, the internal configurations of the graphic data processing unit 3 and the image data processing unit 4 are not shown.

【0014】文字データ処理部2の内部には、空白文字
パターン判定部21、文字描画データ生成部22、文字
パターンデータ格納メモリ23、および文字パターンデ
ータ格納用外部メモリ23がある。文字パターンデータ
格納メモリ23と文字パターンデータ格納用外部メモリ
23には、文字コードに対応した文字パターン(フォン
ト)が記憶されている。データ解析部1から文字データ
処理部2に送られてくる「文字データ」は文字コードで
あるので、空白文字パターン判定部21はその文字コー
ドから文字パターンデータ格納メモリ23或いは文字パ
ターンデータ格納用外部メモリ23を検索し、その文字
コードに対応する文字フォントを読み出してくる。
Inside the character data processing unit 2, there are a blank character pattern determination unit 21, a character drawing data generation unit 22, a character pattern data storage memory 23, and a character pattern data storage external memory 23. A character pattern (font) corresponding to a character code is stored in the character pattern data storage memory 23 and the character pattern data storage external memory 23. Since the "character data" sent from the data analysis unit 1 to the character data processing unit 2 is a character code, the blank character pattern determination unit 21 uses the character code to store the character pattern data in the memory 23 or the external for storing character pattern data. The memory 23 is searched and the character font corresponding to the character code is read out.

【0015】図5(a) ,(b) は上位装置100から送ら
れてくる印刷データの中の文字に関する印刷データの例
を示すものである。文字の印刷データの中には、文字に
対する属性、即ち、出力方法の指定の情報(図5(a) )
と、出力する文字データの情報(図5(b) )が含まれて
いる。文字に対する属性の指定情報には、データの長
さ、文字の大きさ、及び、文字の描画方法、即ち、背景
の情報に対して文字を重ね書きして背景の上に文字を二
重に印刷するのか、或いは、背景の情報に対して文字を
上書きして背景を消した上に文字だけを印刷するのか、
の情報が含まれている。また、出力する文字データ情報
には、データの長さ、文字の出力位置、及び文字コード
列が含まれている。
FIGS. 5 (a) and 5 (b) show examples of print data relating to characters in the print data sent from the higher-level device 100. As shown in FIG. In the print data of the character, the attribute for the character, that is, the information for specifying the output method (Fig. 5 (a))
And the information of the character data to be output (FIG. 5 (b)) is included. In the attribute designation information for the character, the data length, the character size, and the character drawing method, that is, the character is overwritten on the background information and the character is double printed on the background. Do you want to do it, or do you want to overwrite the information on the background information and erase the background and print only the character?
Information is included. The character data information to be output includes the data length, the character output position, and the character code string.

【0016】また、描画部6の中には文字描画データ処
理部60があり、文字描画データ処理部60の中には、
空白文字描画処理部61がある。ここで、図2のように
構成された文字出力装置の動作を図3と図4に示すフロ
ーチャートを用いて説明する。図3は図2に示す文字出
力装置における印刷装置の処理ルーチンの一部を示す制
御フローチャートである。
The drawing unit 6 includes a character drawing data processing unit 60, and the character drawing data processing unit 60 includes:
There is a blank character drawing processing unit 61. Here, the operation of the character output device configured as shown in FIG. 2 will be described with reference to the flowcharts shown in FIGS. 3 and 4. FIG. 3 is a control flowchart showing a part of a processing routine of the printing device in the character output device shown in FIG.

【0017】最初のステップ301では上位装置100
から受信した印刷データをデータ解析部1で解析し、文
字データを文字データ処理部2に転送する。続くステッ
プ302では、文字データを受信した文字データ処理部
2は、上位装置100から指定された文字データの印刷
属性を描画データ格納用共有メモリ5に転送する。そし
て、ステップ303において、受信した文字データの処
理が終了したか否かを判定し、終了していない場合はス
テップ304以降の処理を行い、終了した場合は後述す
る描画部6に描画を依頼する。
In the first step 301, the host device 100
The print data received from the data analysis unit 1 is analyzed and the character data is transferred to the character data processing unit 2. In subsequent step 302, the character data processing unit 2 that has received the character data transfers the print attribute of the character data designated by the upper level device 100 to the drawing data storage shared memory 5. Then, in step 303, it is determined whether or not the processing of the received character data is completed. If it is not completed, the processing of step 304 and subsequent steps is performed, and if it is completed, the drawing unit 6 described later is requested to draw. .

【0018】次のステップ304では、空白文字パター
ン判定部21が文字データ中の文字コードに対応した印
刷文字パターンを文字パターンデータ格納メモリ23、
又は文字パターンデータ格納用外部メモリ24から検索
する。このとき、続くステップ305において、対象と
なる印刷文字パターンが文字パターンデータ格納メモリ
23、又は文字パターンデータ格納用外部メモリ24内
に存在するか否かを判定し、存在しない場合は未定義文
字の処理を行なう。なお、この未定義文字の処理はここ
では説明しない。
In the next step 304, the blank character pattern determination unit 21 outputs the print character pattern corresponding to the character code in the character data to the character pattern data storage memory 23,
Alternatively, the character pattern data storage external memory 24 is searched. At this time, in the following step 305, it is judged whether or not the target print character pattern exists in the character pattern data storage memory 23 or the character pattern data storage external memory 24. Perform processing. The processing of this undefined character will not be described here.

【0019】対象となる印刷文字パターンが文字パター
ンデータ格納メモリ23、又は文字パターンデータ格納
用外部メモリ24内に存在した場合は、ステップ306
において空白文字パターン判定部21が検索した印刷文
字パターンが空白文字パターンか否かを判定する。即
ち、文字パターンデータ格納メモリ23、又は文字パタ
ーンデータ格納用外部メモリ24から獲得したパターン
データを、空白文字と通常文字に区別する処理を空白文
字パターン判定部21が行なう。
If the target print character pattern exists in the character pattern data storage memory 23 or the character pattern data storage external memory 24, step 306.
At, the blank character pattern determination unit 21 determines whether the print character pattern retrieved is a blank character pattern. That is, the blank character pattern determination unit 21 performs a process of distinguishing the pattern data acquired from the character pattern data storage memory 23 or the character pattern data storage external memory 24 into a blank character and a normal character.

【0020】獲得したパターンデータが空白パターンで
あった場合はステップ307において文字描画データ生
成部22が空白1文字分の情報を作成する。そして、続
くステップ308において、通常印刷文字を受信するま
で、連続して指定されている空白文字パターンデータ
を、文字描画データ生成部22が空白文字幅として累積
していく。ステップ308が終了した後はステップ30
3からの処理を再び実行する。
If the acquired pattern data is a blank pattern, the character drawing data generator 22 creates information for one blank character in step 307. Then, in subsequent step 308, the character drawing data generation unit 22 accumulates the continuously designated blank character pattern data as a blank character width until the normal print character is received. After step 308 ends, step 30
The process from 3 is executed again.

【0021】一方、ステップ306において、獲得した
パターンデータが通常文字のパターンであった場合はス
テップ309において印刷する文字パターンの格納メモ
リ上のアドレス(格納アドレス)を文字描画データ生成
部22が設定する。そして、文字描画データ生成部22
は続くステップ310においてパターンデータを印刷す
る座標値の演算を行なう。この後、文字描画データ生成
部22はステップ311において空白文字幅の取込みを
行い、ステップ312において、作成した文字描画デー
タを描画部6との共有メモリである描画データ格納用共
有メモリ5に転送する。ステップ312が終了した後
は、続くステップ303で受信した文字データの処理が
終了したと判断し、描画部6に描画の依頼を行なう。
On the other hand, if the acquired pattern data is a normal character pattern in step 306, the character drawing data generator 22 sets an address (storage address) on the storage memory of the character pattern to be printed in step 309. . Then, the character drawing data generator 22
In the following step 310, the coordinate value for printing the pattern data is calculated. After that, the character drawing data generation unit 22 takes in the blank character width in step 311, and transfers the created character drawing data to the drawing data storage shared memory 5 which is a shared memory with the drawing unit 6 in step 312. . After the step 312 is finished, it is judged that the processing of the character data received in the following step 303 is finished, and the drawing unit 6 is requested to draw.

【0022】図4は図2に示す文字出力装置における印
刷装置の描画部6の処理ルーチンを示す制御フローチャ
ートである。ステップ401では描画データ格納用共有
メモリ5からの文字の印刷属性と、描画データを描画部
6が獲得する。描画部6は続くステップ402において
描画データは文字描画データか否かを判定し、文字描画
データでない時は文字以外の各処理部を起動し、文字描
画データの時はステップ403において依頼された文字
数分描画処理をしたか否かを判定する。なお、描画デー
タが文字描画データでない時の各処理部の処理について
は説明しない。
FIG. 4 is a control flowchart showing a processing routine of the drawing unit 6 of the printing device in the character output device shown in FIG. In step 401, the drawing unit 6 acquires the print attributes of the character from the drawing data storage shared memory 5 and the drawing data. In the subsequent step 402, the drawing unit 6 determines whether the drawing data is character drawing data. If it is not the character drawing data, each processing unit other than the character is activated, and if it is the character drawing data, the number of characters requested in step 403. It is determined whether the minute drawing processing has been performed. The processing of each processing unit when the drawing data is not the character drawing data will not be described.

【0023】ステップ403において、描画部6が処理
を終了したと判定した場合にはこのルーチンを終了し、
描画処理が終了していない時はステップ404において
空白文字の幅が0か否かを判定する。空白文字幅が0の
時は、通常文字が連続している場合であるので、描画部
6はステップ407において指定されている印刷座標値
を文字印刷座標値に設定する。
If it is determined in step 403 that the drawing unit 6 has completed the processing, this routine is completed,
When the drawing process is not completed, it is determined in step 404 whether the width of the blank character is 0 or not. When the blank character width is 0, it means that normal characters are continuous, so the drawing unit 6 sets the print coordinate value designated in step 407 as the character print coordinate value.

【0024】一方、空白文字幅が0でない時は、ステッ
プ405において描画部6は文字描画データ処理部60
の中の空白文字描画処理部61を起動し、パターンデー
タを印刷する座標値に対して、空白文字幅分の長方形を
描画し、その面塗り処理を、文字の描画属性に従って実
施する。即ち、文字描画の指定が重ね書きであれば、同
一箇所に描画されているものとOR書きし、上書き指定
であれば、同一箇所に描画されているものを長方形で塗
りつぶす処理を行なう。
On the other hand, when the blank character width is not 0, in step 405 the drawing unit 6 causes the character drawing data processing unit 60 to perform the drawing.
The blank character drawing processing unit 61 in is drawn, a rectangle for the blank character width is drawn with respect to the coordinate value at which the pattern data is printed, and the surface painting process is executed according to the drawing attribute of the character. That is, if the character drawing designation is overwriting, OR writing is performed with that drawn at the same location, and if overwriting is designated, processing is performed to fill the rectangle drawn at the same location.

【0025】空白文字の処理が終了した後は、描画部6
はステップ406において文字描画データ処理部60に
より、空白文字幅分だけ通常文字の印刷座標値を更新し
て文字印刷座標値とする処理を行なう。このようにし
て、ステップ406,407において通常文字の印刷座
標値が決められると、ステップ408において描画部6
は、文字印刷座標値に指定されたパターンデータ格納ア
ドレスで示された文字パターンをビットマップメモリ7
に描画する。ビットマップメモリ7に描画された文字パ
ターンは、印刷機構8によって用紙に印刷される。
After the processing of blank characters is completed, the drawing unit 6
In step 406, the character drawing data processing unit 60 updates the print coordinate value of the normal character by the width of the blank character to obtain the character print coordinate value. In this way, when the print coordinate value of the normal character is determined in steps 406 and 407, the drawing unit 6 is executed in step 408.
Is the bit map memory 7 for the character pattern indicated by the pattern data storage address specified in the character print coordinate value.
To draw. The character pattern drawn in the bitmap memory 7 is printed on the paper by the printing mechanism 8.

【0026】以上のように、この実施形態の文字出力装
置によれば、印刷装置10内における印刷データの圧縮
が可能となり、印刷データの受け渡し、及び、描画部6
の描画データの解析量が軽減され、空白文字があった場
合の印刷装置10の性能に対する影響が軽減される。ま
た、文字の属性に従って空白文字に対して長方形の面塗
り処理を行なうため、文字の白黒反転出力や、上書き処
理等に容易に対応することができる。
As described above, according to the character output device of this embodiment, it is possible to compress the print data in the printing device 10, transfer the print data, and draw the drawing unit 6.
The analysis amount of the drawing data is reduced, and the influence of the blank character on the performance of the printing apparatus 10 is reduced. Further, since the rectangular surface painting process is performed on the blank character according to the attribute of the character, it is possible to easily cope with the black and white reverse output of the character, the overwriting process, and the like.

【0027】図6(a) は以上のように構成された文字出
力装置における文字描画の実施例であり、図6(b) は図
6(a) の第1行の10桁までを印刷する場合の描画デー
タの構成を示す図である。図6(a) に示すように、この
実施例では、第1行目の第1桁に縦の罫線があり、第
2、第3桁目は空白文字であり、第4桁目に文字「氏」
があり、第5桁目は空白文字であり、第6桁目に文字
「名」があり、第7〜第9桁目が空白文字であり、第1
0桁目に縦の罫線があり、第11桁目に空白文字があ
る。
FIG. 6 (a) shows an embodiment of character drawing in the character output device configured as described above, and FIG. 6 (b) prints up to 10 digits of the first line of FIG. 6 (a). It is a figure which shows the structure of the drawing data in the case. As shown in FIG. 6 (a), in this embodiment, there is a vertical ruled line at the first digit of the first line, blank characters at the second and third digits, and a character "Mr"
, The fifth digit is a blank character, the sixth digit is the character "name", the seventh to ninth digits are blank characters, the first digit is
There is a vertical ruled line at the 0th digit and a blank character at the 11th digit.

【0028】1桁目は罫線の文字パターンであるため、
文字データ処理部2は、該当するパターンデータが格納
されているアドレスを文字描画データに設定し、指定さ
れた印刷位置の座標値を設定し、1文字分の文字描画デ
ータを作成する。このデータは図6(b) の描画データの
符号Aで示す部分に示すようになる。2桁目の文字コー
ドに対応するパターンデータを判定すると、印刷するデ
ータのない空白パターンである分かる。この時は、文字
データ処理部2は2文字目の描画データには、2桁目に
印刷する空白文字の幅を設定する。また、印刷座標値も
2桁目の位置を設定する。
Since the first digit is a ruled line character pattern,
The character data processing unit 2 sets the address where the corresponding pattern data is stored in the character drawing data, sets the coordinate value of the specified print position, and creates the character drawing data for one character. This data is as shown in the portion indicated by the symbol A of the drawing data in FIG. 6 (b). When the pattern data corresponding to the character code of the second digit is determined, it is known that there is a blank pattern with no data to print. At this time, the character data processing unit 2 sets the width of the blank character to be printed in the second digit in the drawing data of the second character. The print coordinate value also sets the position of the second digit.

【0029】3桁目も判定の結果、空白パターンである
ことが分かると、文字データ処理部2は2文字目の文字
描画データに3桁目に印刷する空白文字の幅を加算す
る。4桁目において、「氏」の文字コードに対応するパ
ターンデータを判定すると、通常文字に印刷するデータ
のある文字であることが分かる。この場合は、文字デー
タ処理部2は2文字目の文字描画データに「氏」のパタ
ーンデータの格納されたアドレスを設定し、2文字目の
文字描画データを完成させる。このデータは図6(b) の
描画データの符号Bで示す部分に示すようになる。
If the third digit is also determined to be a blank pattern as a result of determination, the character data processing unit 2 adds the width of the blank character to be printed at the third digit to the character drawing data for the second character. When the pattern data corresponding to the character code of "Mr." is determined at the fourth digit, it is known that the character has data to be printed as a normal character. In this case, the character data processing unit 2 sets the address where the pattern data of "Mr." is stored in the character drawing data of the second character, and completes the character drawing data of the second character. This data is as shown in the portion indicated by the symbol B of the drawing data in FIG. 6 (b).

【0030】5桁目以降の文字データにおいても同様
に、文字データ処理部2が通常文字と空白文字の判定を
行いながら文字描画データを作成していくと、図6(b)
の描画データに符号C,Dで示すようなデータが得ら
れ、最終的に1行目の文字描画データとしては図6(b)
に符号A〜Dで示す4文字分の文字描画データが作成さ
れる。
Similarly, for the character data of the fifth digit and thereafter, when the character data processing unit 2 creates the character drawing data while determining the normal character and the blank character, FIG.
6B is obtained as the character drawing data of the first line.
Character drawing data for four characters indicated by symbols A to D are created.

【0031】文字描画データの作成が終了した時点で、
文字データ処理部2は描画データ格納用共有メモリ5に
文字描画データを格納する。同時に、描画部6に対して
格納した文字描画データに沿った描画処理を行なうよう
に依頼する。描画依頼を受けた描画部6は、受信した文
字描画データと文字サイズ等の文字属性情報を元にし
て、文字描画データ処理部60によって解析、描画処理
を行なう。
When the character drawing data has been created,
The character data processing unit 2 stores the character drawing data in the drawing data storage shared memory 5. At the same time, the drawing unit 6 is requested to perform drawing processing according to the stored character drawing data. The drawing unit 6 receiving the drawing request causes the character drawing data processing unit 60 to analyze and draw based on the received character drawing data and the character attribute information such as the character size.

【0032】1文字目の描画データは空白文字幅=0で
あるので、ビットマップメモリ7上の指定座標に文字パ
ターンデータ格納メモリ23上の指定アドレスにある文
字パターンを描画する。2文字目の描画データは空白文
字幅≠0であるので、空白文字描画処理部61によっ
て、指定座標の1から、空白文字幅×文字の高さ分の長
方形を、文字の色、文字の描画属性(OR書き、上書き
等)に従って面塗り処理をビットマップメモリ7上に行
なう。この後に、指定座標+空白文字幅の1のビットマ
ップメモリ7上に、文字パターン格納メモリ23上の指
定アドレスの文字を描画する。
Since the blank character width = 0 for the drawing data of the first character, the character pattern at the specified address in the character pattern data storage memory 23 is drawn at the specified coordinates in the bitmap memory 7. Since the blank character width is not equal to 0 in the drawing data of the second character, the blank character drawing processing unit 61 draws a rectangle for the blank character width × the height of the character from the designated coordinate 1 to the character color and the character drawing. Surface painting processing is performed on the bitmap memory 7 according to the attributes (OR writing, overwriting, etc.). After that, the character at the specified address in the character pattern storage memory 23 is drawn on the bitmap memory 7 having the specified coordinate + the blank character width of 1.

【0033】描画部6は、受信した文字描画データを順
次このようにして解析し、全てビットマップメモリ7上
に描画した時点で処理を終了する。図7は、通常文字と
空白文字のパターンデータを示すものであり、(a) が通
常文字のパターンデータ、(b) が空白文字のパターンデ
ータを示している。この図7から分かるように、通常文
字はそのパターンのデータ長が大きく、空白文字はその
パターンのデータ長が0であるので、これらの情報を元
にして、空白文字パターン判定部は読み出された信号か
ら空白文字と通常文字の判定を行なうことができる。
The drawing unit 6 sequentially analyzes the received character drawing data in this way, and terminates the processing when all the drawing data is drawn on the bitmap memory 7. FIG. 7 shows pattern data of normal characters and blank characters. (A) shows pattern data of normal characters and (b) shows pattern data of blank characters. As can be seen from FIG. 7, the data length of the pattern of the normal character is large, and the data length of the pattern of the blank character is 0. Therefore, the blank character pattern determination unit is read based on these information. The blank signal and the normal character can be determined from the signal.

【0034】[0034]

【発明の効果】以上説明したように、本発明の印刷装置
における文字出力装置によれば、(1) 文字パターンデー
タの構成により、通常文字と空白文字の区別を行なうた
め、空白文字が特定の文字コードに限定されなくても印
刷処理を実施できる、(2) 上位装置からの印刷データを
内部処理の描画データに変換する際に、空白文字を通常
文字の付加情報として作成することにより、装置内部の
データの受け渡し処理量が減少するため、印刷装置の処
理性能の向上が図れる、(3) 空白文字を描画する際に、
1文字1文字の空白文字を描画せずに、長方形の面塗り
処理で一度に処理するため、印刷データに含まれる空白
文字の量による印刷装置への影響を低減することができ
る、(4) 長方形の面塗りを文字に与えられた描画属性で
処理するため、他のメディアの印刷の上に重ねて印刷を
行なう場合でも、空白部分の印刷を他の文字と同様に保
証することができる、ため、上位装置から転送されてき
た印刷データ中の空白文字コードを読み飛ばすことな
く、また、空白文字の数が多くても印刷装置の性能を低
下させることがないという効果がある。
As described above, according to the character output device in the printer of the present invention, (1) the normal character and the blank character are distinguished by the structure of the character pattern data, so that the blank character is specified. Print processing can be performed without being limited to character codes. (2) When converting print data from the host device into drawing data for internal processing, a blank character is created as additional information of the normal character Since the internal data transfer processing volume is reduced, the processing performance of the printing device can be improved. (3) When drawing blank characters,
Since blank characters of one character are not drawn and they are processed at once by the rectangular surface painting process, it is possible to reduce the influence on the printing device due to the amount of blank characters included in the print data. (4) Since the rectangular surface painting is processed with the drawing attribute given to the character, even when printing on other media, it is possible to guarantee the printing of the blank part as well as other characters. Therefore, there is an effect that the blank character code in the print data transferred from the host device is not skipped and the performance of the printing device is not deteriorated even if the number of blank characters is large.

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

【図1】本発明の文字出力装置の構成を示す原理構成図
である。
FIG. 1 is a principle configuration diagram showing a configuration of a character output device of the present invention.

【図2】本発明の印刷装置における文字出力装置の一実
施形態の構成を示すブロック構成図である。
FIG. 2 is a block configuration diagram showing a configuration of an embodiment of a character output device in the printing device of the present invention.

【図3】図2に示す文字出力装置における印刷装置の処
理ルーチンの一部を示す制御フローチャートである。
3 is a control flowchart showing a part of a processing routine of a printing device in the character output device shown in FIG.

【図4】図2に示す文字出力装置における印刷装置の描
画部の処理ルーチンを示す制御フローチャートである。
4 is a control flowchart showing a processing routine of a drawing unit of the printing device in the character output device shown in FIG.

【図5】本発明における上位装置からの印刷データ例を
示すものであり、(a) は文字に対する属性を指定するデ
ータ構成を示す図、(b) は出力する文字データの構成を
示す図である。
5A and 5B show examples of print data from a higher-level device according to the present invention, FIG. 5A is a diagram showing a data structure for designating attributes of characters, and FIG. 5B is a diagram showing a structure of output character data. is there.

【図6】(a) は本発明の文字出力装置における文字描画
例を示す図、(b) は(a) の第1行の10桁までを印刷す
る場合の描画データの構成を示す図である。
6A is a diagram showing an example of character drawing in the character output device of the present invention, and FIG. 6B is a diagram showing a structure of drawing data when printing up to 10 digits of the first line of FIG. is there.

【図7】通常文字と空白文字のパターンデータを示すも
のであり、(a) が通常文字のパターンデータ、(b) が空
白文字のパターンデータを説明するものである。
FIG. 7 shows pattern data of normal characters and blank characters, where (a) illustrates pattern data of normal characters and (b) illustrates pattern data of blank characters.

【図8】従来の印刷装置における問題点を説明する図で
ある。
FIG. 8 is a diagram illustrating a problem in a conventional printing apparatus.

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

1…データ解析部 2…文字データ処理部 5…描画データ格納用共有メモリ 6…描画部 7…ビットマップメモリ 8…印刷機構 10…印刷装置 21…空白文字パターン判定部 22…文字描画データ生成部 23…文字パターンデータ格納メモリ 24…文字パターンデータ格納用外部メモリ 60…文字描画データ処理部 61…空白文字描画処理部 DESCRIPTION OF SYMBOLS 1 ... Data analysis part 2 ... Character data processing part 5 ... Shared memory for drawing data storage 6 ... Drawing part 7 ... Bit map memory 8 ... Printing mechanism 10 ... Printing device 21 ... Blank character pattern determination part 22 ... Character drawing data generation part 23 ... Character pattern data storage memory 24 ... External memory for storing character pattern data 60 ... Character drawing data processing unit 61 ... Blank character drawing processing unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 上位装置から送られてきた印刷データに
基づいて印刷文字を出力する文字出力装置であって、 送られてきた印刷データから文字コードデータを抽出す
る文字コードデータ抽出手段と、 文字コードデータに対応する文字パターンデータを格納
するパターンデータ記憶手段と、 抽出された文字コードデータに対応する印刷文字パター
ンを、前記パターンデータ記憶手段から検索する印刷文
字パターン検索手段と、 検索された印刷文字パターンのデータ長情報から、通常
文字と空白文字とを識別する文字識別手段と、 連続する少なくとも1つの空白文字パターンをまとめて
1つの長方形の空白パターンデータを作成する空白文字
パターン作成手段と、 前記空白文字パターンデータに隣接する1文字の通常文
字パターンデータに、前記長方形の空白パターンデータ
を付加して1文字分の描画データを作成する描画データ
作成手段と、 を備えることを特徴とする文字出力装置。
1. A character output device for outputting a print character based on print data sent from a host device, comprising: character code data extracting means for extracting character code data from the sent print data; Pattern data storage means for storing character pattern data corresponding to the code data, print character pattern search means for searching the print character pattern corresponding to the extracted character code data from the pattern data storage means, and searched print A character identifying means for identifying a normal character and a blank character from the data length information of the character pattern; and a blank character pattern creating means for collecting at least one continuous blank character pattern to create one rectangular blank pattern data, The normal character pattern data of one character adjacent to the blank character pattern data A character output device, comprising: drawing data creating means for creating rectangular character blank pattern data to create drawing data for one character.
【請求項2】 前記1文字分の描画データに含まれる前
記長方形の空白パターンデータにより、長方形の空白パ
ターンを長方形の面塗りとして1文字の通常文字パター
ンに隣接させて描画する描画データ処理手段を更に備え
ることを特徴とする請求項1に記載の文字出力装置。
2. A drawing data processing means for drawing the rectangular blank pattern as a surface fill of the rectangle adjacent to a normal character pattern of one character by the rectangular blank pattern data included in the drawing data for one character. The character output device according to claim 1, further comprising: a character output device.
【請求項3】 前記描画データ処理手段が、前記長方形
の面塗りを行なう場合に、文字に与えられた重ね書きか
上書きかの描画属性で処理することを特徴とする請求項
2に記載の文字出力装置。
3. The character according to claim 2, wherein the drawing data processing means, when performing the surface painting of the rectangle, processes with a drawing attribute given to the character, which is overwriting or overwriting. Output device.
JP7256167A 1995-10-03 1995-10-03 Character output system Withdrawn JPH0999595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7256167A JPH0999595A (en) 1995-10-03 1995-10-03 Character output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7256167A JPH0999595A (en) 1995-10-03 1995-10-03 Character output system

Publications (1)

Publication Number Publication Date
JPH0999595A true JPH0999595A (en) 1997-04-15

Family

ID=17288843

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7256167A Withdrawn JPH0999595A (en) 1995-10-03 1995-10-03 Character output system

Country Status (1)

Country Link
JP (1) JPH0999595A (en)

Similar Documents

Publication Publication Date Title
US5729665A (en) Method of utilizing variable data fields with a page description language
JPH08115178A (en) Variable data field in page description language
KR960010410B1 (en) Output method and apparatus
JP2000322417A (en) Device and method for filing image and storage medium
JPH0999595A (en) Character output system
JP3246142B2 (en) Printing control device
JP2580965B2 (en) Printer device
JPH0744687A (en) Picture forming device
JP3260803B2 (en) Image processing device
JPH10154191A (en) Business form identification method and device, and medium recording business form identification program
JP2937508B2 (en) Bitmap expansion method
JP2951809B2 (en) Handwritten font printing method
JP3012269B2 (en) Printing control device
JPH0216068A (en) Image forming device
JP3351231B2 (en) Image forming device
JP3302211B2 (en) Character processing system and its external character pattern registration method
JP3054157B2 (en) Character processing device and character processing method
JP2526004B2 (en) System for incorporating image of graphic system into text processing system and method of incorporating image of graphic system into text processing system
JPH0764969A (en) Device for reproducing outline font data
JPH0991363A (en) Information processor and its method
JPH0477277A (en) Printing device
JP2000112955A (en) Picture display method, picture filing device and record medium
JP2001265317A (en) Bitmap font, method and device for generating bitmap font, method and device for generating document data using dedicated font characters, and method and device for recognizing characters
KR940020207A (en) Method and device for improving storage area of combined fonts
JPH08241308A (en) Method and device for image processing

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20021203