Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2901526B2 - Character generator - Google Patents
[go: Go Back, main page]

JP2901526B2 - Character generator - Google Patents

Character generator

Info

Publication number
JP2901526B2
JP2901526B2 JP7220432A JP22043295A JP2901526B2 JP 2901526 B2 JP2901526 B2 JP 2901526B2 JP 7220432 A JP7220432 A JP 7220432A JP 22043295 A JP22043295 A JP 22043295A JP 2901526 B2 JP2901526 B2 JP 2901526B2
Authority
JP
Japan
Prior art keywords
character
data
memory
unit
filling
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.)
Expired - Lifetime
Application number
JP7220432A
Other languages
Japanese (ja)
Other versions
JPH0962244A (en
Inventor
和美 小林
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.)
NIPPON DENKI OFUISU SHISUTEMU KK
Original Assignee
NIPPON DENKI OFUISU SHISUTEMU KK
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 NIPPON DENKI OFUISU SHISUTEMU KK filed Critical NIPPON DENKI OFUISU SHISUTEMU KK
Priority to JP7220432A priority Critical patent/JP2901526B2/en
Publication of JPH0962244A publication Critical patent/JPH0962244A/en
Application granted granted Critical
Publication of JP2901526B2 publication Critical patent/JP2901526B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は文字発生装置に関し、特
にワードプロセッサやパーソナルコンピュータなどの各
種情報処理装置において、ベクトルデータにより形成さ
れるアウトラインフォント文字発生機能を備える文字発
生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generator, and more particularly to a character generator having an outline font character generating function formed by vector data in various information processing apparatuses such as a word processor and a personal computer.

【0002】[0002]

【従来の技術】従来、この種の文字発生装置は、文字の
ドットイメージをデータとして持つドットフォント文字
パターンを発生するものと、文字輪郭パターンをベクト
ルデータとして持つアウトラインフォント文字パターン
を発生するものとがある。最近では、ドット文字フォン
トパターンより文字輪郭パターンの方がデータ量が少な
いことや、ベクトルデータにより滑らかな曲線も表現し
やすいアウトラインフォントによる文字発生装置が多く
使用されている。
2. Description of the Related Art Conventionally, this type of character generating apparatus generates a dot font character pattern having a dot image of a character as data, and an outline font character pattern having a character outline pattern as vector data. There is. Recently, character generators using outline fonts, in which the character outline pattern has a smaller data amount than the dot character font pattern, and an outline font in which a smooth curve can be easily represented by vector data, are widely used.

【0003】図8は、従来のアウトラインフォントによ
る文字発生装置の一例を示す機能ブロック図であり、実
際に日本電気株式会社からN5170トータル印刷シス
テムとしてワークステーション、普通紙プリンタ、フィ
ルムプリンタ等に使用されており、アウトラインフォン
トによる文字発生装置としては一般的なブロック図であ
る。図7は、図8の従来例で扱う文字発生領域を示し、
図7(A)はデザイナーが文字をデザインするサイズで
ある文字デザインサイズを、図7(B)は文字デザイン
サイズの中の文字のまわりに存在する空白を省くための
文字を囲いこむ境界ボックス(以下、B−BOXと略記
する)を示す。図6は、図8の従来例の各処理部で扱う
データを示し、図6(A)はフォントメモリ構成を、図
6(B)は作業メリリを、図6(C)は塗り潰し結果
を、図6(D)は出力イメージを示す。
FIG. 8 is a functional block diagram showing an example of a conventional character generating apparatus using an outline font, which is actually used as a N5170 total printing system by NEC Corporation for workstations, plain paper printers, film printers and the like. This is a general block diagram of a character generator using an outline font. FIG. 7 shows a character generation area handled in the conventional example of FIG.
FIG. 7A shows a character design size which is a size at which a designer designs a character, and FIG. 7B shows a bounding box () surrounding a character for eliminating a blank existing around the character in the character design size. Hereinafter, abbreviated as B-BOX). FIG. 6 shows data handled by each processing unit of the conventional example in FIG. 8, FIG. 6A shows a font memory configuration, FIG. 6B shows work merrily, FIG. FIG. 6D shows an output image.

【0004】次に、図6,図7および図8を用いてこの
従来例の動作を説明する。図7(A)で示すひらがなの
“こ”の文字を発生させる場合を例に説明する。まず、
上位装置1は“こ”の文字コードを文字発生装置16に
入力する。フォントメモリ2は、図6(A)で示すよう
に、各文字の文字コードと、各文字に対応する文字輪郭
を形成するための座標点情報を格納しており、例えば、
“こ”の文字コードを入力すると、文字コード格納領域
に格納されている文字コードを確認した後、次に読み出
す座標点情報格納領域のアドレスを読み、座標点情報格
納領域内の座標点情報を出力する。座標点情報は、
“こ”の文字輪郭を構成するベクトルの変化点である
X,Y座標であって、始点から第2点、第3点・・・と
終点まで順次フォントメモリ2から出力される。
Next, the operation of this conventional example will be described with reference to FIGS. 6, 7 and 8. A case where the character of the "ko" of the hiragana shown in FIG. 7A is generated will be described as an example. First,
The host device 1 inputs the character code of “ko” to the character generator 16. As shown in FIG. 6A, the font memory 2 stores a character code of each character and coordinate point information for forming a character outline corresponding to each character.
When the character code of “ko” is input, the character code stored in the character code storage area is checked, then the address of the coordinate point information storage area to be read next is read, and the coordinate point information in the coordinate point information storage area is read. Output. The coordinate point information is
The X and Y coordinates, which are the changing points of the vector forming the character outline of "ko", are sequentially output from the font memory 2 from the start point to the second point, the third point, ... and the end point.

【0005】輪郭描画制御部12は、フォントメモリ2
から座標点情報を入力し、図6(B)に示すような
“こ”の輪郭を作業メモリ4に描画する。描画処理が終
了した後、輪郭描画制御部12は塗り潰し部13へ塗り
潰し指示を出力する。塗り潰し部13は、作業メモリ4
から文字デザインサイズ内の左側から一定のデータ量
(仮に1ワードとして説明する)のデータを読み出し、
文字の輪郭が存在する場合には、文字輪郭の内側を塗り
潰しながら、図6(C)のような塗り潰し結果を得る。
[0005] The contour drawing control unit 12 has a font memory 2
Then, the coordinate point information is input, and the outline of this “ko” as shown in FIG. After the drawing process is completed, the contour drawing control unit 12 outputs a filling instruction to the filling unit 13. The filling unit 13 includes the working memory 4
From the left side within the character design size, reads out a data of a fixed amount (temporarily described as one word),
If the outline of the character exists, the result of the filling as shown in FIG. 6C is obtained while filling the inside of the character outline.

【0006】転送部10は、ディスプレイやプリンタ等
の出力装置11へ出力するために、図6(D)で示すよ
うな出力装置11の出力位置への転送処理を行う。各文
字ごとにこの処理を繰り返すことでディスプレイの一画
面分、あるいはプリンタの1ページ分を作成する。
The transfer unit 10 performs a transfer process to an output position of the output device 11 as shown in FIG. 6D in order to output to an output device 11 such as a display or a printer. This process is repeated for each character to create one screen of the display or one page of the printer.

【0007】上記のようにして、塗り潰しが完了する
が、この処理は各ラインの1ワードずつ読み出し、判
定、変換等を行うため、塗り潰し工程がこの種のアウト
ラインフォントの処理の問題となっており、その改善、
高速化のため種々工夫されている。その1つとして、文
字デザインサイズ中のB−BOX外側の空白に着目した
次の方法が考えられ、実施されている (Adobe
Systems:POSTSCRIPT リファレンス
マニュアル参照)。
As described above, the filling is completed. However, in this process, since one word of each line is read, determined, converted, and the like, the filling process is a problem of this type of outline font processing. , Its improvements,
Various ideas have been devised for speeding up. As one of the methods, the following method that focuses on the space outside the B-BOX in the character design size has been considered and implemented (Adobe).
Systems: Refer to the POSTSCRIPT reference manual).

【0008】次に、B−BOXを用いた場合について動
作を説明する。B−BOXとは、図7(B)で示すよう
に、文字デザインサイズの中の実際の文字をちょうど囲
いこむ境界ボックスである。この場合、上述した図7
(A)の例と動作はほぼ同様であり、フォントメモリ2
から座標点情報を読み出し、輪郭描画制御部12から作
業メモリ4へ文字の輪郭を描画する。塗り潰し部13は
作業メモリ4からデータを読み出し塗り潰しを行うが、
このときに扱うサイズはB−BOXとなる。塗り潰し後
のデータは出力装置11の出力位置へ転送部14によっ
て転送される。
Next, the operation in the case where the B-BOX is used will be described. The B-BOX is a bounding box that just surrounds the actual character in the character design size, as shown in FIG. In this case, FIG.
The operation is almost the same as the example of FIG.
, The coordinate point information is read out, and the outline of the character is drawn from the outline drawing control unit 12 to the work memory 4. The filling unit 13 reads data from the working memory 4 and performs filling.
The size handled at this time is B-BOX. The data after the filling is transferred to the output position of the output device 11 by the transfer unit 14.

【0009】[0009]

【発明が解決しようとする課題】上述の従来技術におい
ては、文字デザインサイズ内でB−BOX以外に空白部
分があることに着目して、その部分の処理を省くことに
より、塗り潰し処理の効率化を図ったものであるが、そ
の文字の形状によってはさらに空白部分が存在する場合
がある。例えば、図7(B)のようにひらがなの“こ”
の場合、文字デザインサイズ、B−BOXは図に示す通
りで、B−BOX内でも“こ”のa部とb部との間に空
白部分が多く存在する。また、図2(B)のように記号
文字である“●”の場合、文字の中に空白とは逆の黒の
部分が多く存在する。
In the above-described prior art, the efficiency of the filling process is improved by noting the processing of the blank portion other than the B-BOX in the character design size and omitting the processing of the blank portion. However, depending on the shape of the character, there may be a blank portion. For example, as shown in FIG.
In the case of, the character design size and the B-BOX are as shown in the figure, and there are many blank portions between the “a” portion and the “b” portion of “this” in the B-BOX. In addition, in the case of the symbol character "●" as shown in FIG. 2B, there are many black portions opposite to the blank in the character.

【0010】本発明の目的は、文字の形状によってはさ
らに空白部分が存在する場合がある点に着目してアウト
ラインフォント方式による文字発生装置における塗り潰
し処理の一層の効率化を図り、高速度の文字発生装置を
提供することにある。
An object of the present invention is to pay attention to the fact that a blank portion may further exist depending on the shape of a character, and to further improve the efficiency of a filling process in a character generator using an outline font system, thereby achieving a high-speed character. A generator is provided.

【0011】[0011]

【課題を解決するための手段】本発明の文字発生装置
は、上位装置から入力される文字コードに対応する文字
輪郭を形成する座標点情報を格納しているフォントメモ
リと、前記上位装置からの文字発生処理開始指示により
前記フォントメモリから前記座標点情報を読み出し前記
文字輪郭を描画する輪郭描画制御部と、この輪郭描画制
御部からの前記文字輪郭を描画する作業メモリと、この
作業メモリに描画された前記文字輪郭を読み出し前記文
字輪郭の内部を塗り潰す塗り潰し部と、塗り潰した文字
を出力イメージのある位置へ転送する転送部を備える文
字発生装置において、前記輪郭描画制御部から前記作業
メモリへ前記文字輪郭を描画する際1ラインや1ワード
単位のグループの中で輪郭を描画したグループについて
フラグをセットする文字テーブルメモリと、1グループ
分全て塗り潰しを行う場合に1グループ分の黒データを
出力する黒データ発生部と、塗り潰しを行う際前記文字
テーブルメモリからのフラグの内容と前記作業メモリの
内容とを参照して前記塗り潰し部からの塗り潰しデータ
と前記黒データ発生部からの黒データとの切り替えを制
御する塗り潰しデータ制御部と、この塗り潰しデータ制
御部からの指示によりデータの切り替えを行うデータ切
替え部とを備える。
According to the present invention, there is provided a character generating apparatus comprising: a font memory for storing coordinate point information for forming a character outline corresponding to a character code inputted from a host device; A contour drawing control unit for reading the coordinate point information from the font memory in response to a character generation processing start instruction and drawing the character contour; a working memory for drawing the character contour from the contour drawing control unit; A character generation device comprising: a filling unit that reads out the character outline thus formed and fills the inside of the character outline; and a transfer unit that transfers the filled character to a position of an output image. At the time of drawing the character outline, a flag is set for the group in which the outline is drawn among the groups of one line or one word. A character table memory, 1 black data generator for outputting a black data of one group in the case of performing the fill group content all, fill content as the working memory of the flag from the character table memory when performing
A fill data control unit that controls switching between the fill data from the fill unit and the black data from the black data generation unit with reference to the contents; and data that switches data in accordance with an instruction from the fill data control unit. A switching unit.

【0012】[0012]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0013】図1は、本発明の一実施の形態の機能ブロ
ック図、図2,図3および図4は、図1の実施の形態を
説明するための文字発生処理領域を示す作業メモリと文
字テーブルメモリとの内容を示す図、図5は図1の文字
テーブルメモリに書き込むフラグの法則について説明す
る図である。
FIG. 1 is a functional block diagram of an embodiment of the present invention, and FIGS. 2, 3 and 4 are a work memory and a character memory showing a character generation processing area for explaining the embodiment of FIG. FIG. 5 is a diagram showing the contents of the table memory, and FIG. 5 is a diagram for explaining the rule of a flag written in the character table memory of FIG.

【0014】図1を参照すると、この実施の形態の文字
発生装置15は、上位装置1から入力される文字コード
に対応する文字輪郭を形成する座標点情報を格納してい
るフォントメモリ2と、上位装置1からの文字発生処理
開始指示によりフォントメモリ2から座標点情報を読み
出し文字輪郭を描画する輪郭描画制御部3と、この輪郭
描画制御部3からの文字輪郭を描画する作業メモリ4
と、この作業メモリ4に描画された文字輪郭を読み出し
この文字輪郭の内部を塗り潰す塗り潰し部6と、塗り潰
した文字を出力イメージのある位置へ転送する転送部1
0と、輪郭描画制御部3から作業メモリ4へ文字輪郭を
描画する際1ラインや1ワード単位のグループの中で輪
郭を描画したグループについてフラグをセットする文字
テーブルメモリ5と、1グループ分全て塗り潰しを行う
場合に1グループ分の黒データを出力する黒データ発生
部7と、塗り潰しを行う際文字テーブルメモリ5からの
フラグの内容により塗り潰し部6からの塗り潰しデータ
と黒データ発生部7からの黒データとの切り替えを制御
する塗り潰しデータ制御部8と、この塗り潰しデータ制
御部8からの指示によりデータの切り替えを行うデータ
切替え部9とから構成される。
Referring to FIG. 1, a character generator 15 of this embodiment includes a font memory 2 storing coordinate point information forming a character outline corresponding to a character code input from a higher-level device 1, A contour drawing controller 3 for reading coordinate point information from the font memory 2 and drawing a character contour in response to a character generation processing start instruction from the host device 1, and a work memory 4 for drawing a character contour from the contour drawing controller 3
And a filling unit 6 for reading the character outline drawn in the working memory 4 and filling the inside of the character outline, and a transfer unit 1 for transferring the filled character to a position in the output image.
0, a character table memory 5 for setting a flag for a group in which a contour is drawn in a group of one line or one word when a character contour is drawn from the contour drawing control unit 3 to the work memory 4; A black data generation unit 7 that outputs one group of black data when filling is performed, and a filling data from the filling unit 6 and a black data generation unit 7 based on the contents of the flag from the character table memory 5 when performing the filling. It is composed of a filling data control unit 8 for controlling switching to black data, and a data switching unit 9 for switching data in accordance with an instruction from the filling data control unit 8.

【0015】上位装置1は、文字コードをフォントメモ
リ2に入力する。フォントメモリ2は、各文字コードに
対して、文字の輪郭を形成するための座標点情報を格納
している。輪郭描画制御部3は、フォントメモリ2から
読み出した座標点情報を入力とし、文字輪郭を作業メモ
リ4に描画し、文字テーブルメモリ5には各ラインとあ
る一定のデータ長の縦割と横割のグループを作成し、各
グループごとに描画を1度でも行うときにそのグループ
の情報としてフラグをセットする。塗り潰し部6は、作
業メモリ4から文字輪郭データをある一定のデータ長ご
とに読み出し、文字輪郭の内部を塗り潰す。黒データ発
生部7は、ある一定のデータ長のオール黒データ(オー
ル1データ)を出力する。塗り潰しデータ制御部8は、
作業メモリ4から出力された文字輪郭データと文字テー
ブルメモリ5からのフラグの内容により黒データ発生部
7に黒データの出力を指示したり、データ切替え部9に
データの切り替えを指示する。データ切替え部9は、塗
り潰し部6のデータと黒データ発生部7のデータとを切
り替えて出力する。転送部10は、データ切替え部9か
らの文字のデータをディスプレイやプリンタ等の出力装
置11の出力イメージ上へ転送する。
The host device 1 inputs a character code into the font memory 2. The font memory 2 stores coordinate point information for forming a character outline for each character code. The outline drawing control unit 3 receives the coordinate point information read from the font memory 2 as an input, draws a character outline in the work memory 4, and stores, in the character table memory 5, the vertical and horizontal splits of each line and a certain data length. A group is created, and a flag is set as information of the group when drawing is performed at least once for each group. The filling unit 6 reads character outline data from the work memory 4 at a certain data length, and fills the inside of the character outline. The black data generator 7 outputs all black data (all 1 data) having a certain data length. The fill data control unit 8
Based on the character outline data output from the work memory 4 and the contents of the flag from the character table memory 5, the black data generation unit 7 is instructed to output black data, and the data switching unit 9 is instructed to switch data. The data switching unit 9 switches and outputs the data of the filling unit 6 and the data of the black data generation unit 7. The transfer unit 10 transfers the character data from the data switching unit 9 onto an output image of an output device 11 such as a display or a printer.

【0016】次に、図1の動作について図1に併せて図
2,図3,図4,図5,図6および図7を参照して説明
する。まず、第一の実施の形態として図2を参照して、
従来の技術と同様に図7(A)で示すようなひらがな
“こ”の文字を発生させる場合を例に説明する。まず、
上位装置1から“こ”の文字コードを入力する。フォン
トメモリ2には従来の技術と同様に図6(A)で示すよ
うな各文字の文字コードと各文字に対応する文字輪郭を
形成するための座標点情報を格納しているため、“こ”
の文字コードを入力して文字コード格納領域に格納され
ている文字コードから“こ”の文字を形成する座標点情
報を順次読み出す。輪郭描画制御部3は、フォントメモ
リ2から読み出した座標点情報を入力とし、図6(B)
で示すような“こ”の文字輪郭を作業メモリ4に描画す
る。同時に、図2(A)で示すように作業メモリ4上の
X軸方向にある一定のデータ長(仮に1ワードとして説
明する)ずつに縦割にしたグループと、Y軸方向に1ラ
インずつ横割にしたグループとを作り、各グループごと
に一度でも描画が行われる場合に、X軸方向はXテーブ
ル41、Y軸方向はYテーブル42として文字テーブル
メモリ5にフラグをセットする。
Next, the operation of FIG. 1 will be described with reference to FIG. 1, FIG. 2, FIG. 3, FIG. 4, FIG. 5, FIG. First, referring to FIG. 2 as a first embodiment,
An example in which a Hiragana “ko” character as shown in FIG. 7A is generated as in the prior art will be described. First,
The character code of “ko” is input from the host device 1. Since the font memory 2 stores the character code of each character and coordinate point information for forming a character contour corresponding to each character as shown in FIG. "
, And sequentially reads out the coordinate point information forming the “ko” character from the character code stored in the character code storage area. The contour drawing control unit 3 receives the coordinate point information read from the font memory 2 as an input, and inputs the coordinate point information shown in FIG.
The character outline of “ko” as shown by is drawn in the working memory 4. At the same time, as shown in FIG. 2 (A), a group vertically divided by a certain data length (tentatively described as one word) in the X-axis direction on the working memory 4 and a horizontal division by one line in the Y-axis direction. When the drawing is performed even once for each group, a flag is set in the character table memory 5 as the X table 41 in the X axis direction and the Y table 42 in the Y axis direction.

【0017】ここで、図5を参照して文字テーブルメモ
リ5に書き込むフラグの法則について詳しく説明する。
図5(A)に示す作業メモリ4の格子を1ドットとし、
例えば、D1〜D14のドット順に作業メモリ4上にこ
のような形を描画する場合を説明する。X方向のデータ
4ドット分を1グループとして扱い、Y方向のデータ1
ドット分を1グループとして扱い、1ドット描画するご
とにその1ドットを含むグループに対してXテーブル4
1、Yテーブル42にそれぞれフラグを“1”にしてい
く。すなわち、D1に関しては、Xテーブル41dおよ
びYテーブル42nを“1”にする。次に、D2に関し
ては、Xテーブル41cおよびYテーブル42mを
“1”にする。同様にして、D3〜D14まで描画す
る。DDは、Xデーブル41およびYテーブル42のD
1〜D14に関して“1”であるa〜fおよびg〜pを
すべて“1”とし、その他を“0”として描画する。こ
の結果のテーブルDDの内容が次の塗り潰し時に使用さ
れることになる。従って“こ”の文字の場合には、X軸
方向のデータ1ワード分を1グループ、Y軸方向のデー
タ1ドットを1グループとして扱い、図2(A)に示す
ような結果となる。
Here, the rule of the flag written in the character table memory 5 will be described in detail with reference to FIG.
The grid of the working memory 4 shown in FIG.
For example, a case where such a shape is drawn on the work memory 4 in the order of dots D1 to D14 will be described. 4 dots of data in the X direction are treated as one group, and data 1 in the Y direction
Each dot is treated as one group, and each time one dot is drawn, the X table 4
1, the flag is set to "1" in the Y table 42, respectively. That is, for D1, the X table 41d and the Y table 42n are set to "1". Next, for D2, the X table 41c and the Y table 42m are set to "1". Similarly, drawing is performed for D3 to D14. DD is the D of the X table 41 and the Y table 42.
All of a to f and g to p which are "1" for 1 to D14 are rendered as "1", and the others are rendered as "0". The contents of the resulting table DD will be used in the next filling. Therefore, in the case of this character, one word of data in the X-axis direction is treated as one group, and one dot of data in the Y-axis direction is treated as one group, and the result is as shown in FIG.

【0018】次に、塗り潰し部6は、作業メモリ4から
文字輪郭データを1ワードずつ読み出し、図5(B)の
ように文字輪郭の内部を塗り潰す。図5(B)では文字
の輪郭線上と輪郭内部のD2からD13やD4からD1
1等の間を塗り潰すことになるが、まず作業メモリ4の
4ドットを1グループとして左上から順に塗り潰し処理
を進めていく。塗り潰しデータ制御部8は、作業メモリ
4から最初の4ドットを読み、文字テーブルメモリ5か
らはXテーブル41DDaとYテーブル42DDgとを
読み込む。このとき、Yテーブル42DDgは“0”で
あるため、このラインには輪郭が存在しないと判断し、
塗り潰し部6へは次のラインを読み出すことを指示、転
送部10へも1ライン目の塗り潰し処理は省くことを指
示する。2ライン目も同様にして作業メモリ4から最初
の4ドットを読み、文字テーブルメモリ5からXテーブ
ル41DDaとYテーブル42DDhとを読み込む。Y
テーブル42DDhは“1”であるため、このラインに
は輪郭が存在していると判断しXテーブル41を見ると
Xテーブル41DDaは“0”であるため、このグルー
プには輪郭が存在しないと判断し、塗り潰し部6へは2
ライン目の次のグループを読み出すことを指示、転送部
10へもこのグループの塗り潰し処理を省くことを指示
する。続いて作業メモリ4から2ライン目の次の4ドッ
トを読み、文字テーブルメモリ5からXテーブル41D
Dbを読み込む。Xテーブル41DDbは“1”である
ため輪郭が存在すると判断でき、実際の輪郭データの4
ドットを確認すると輪郭が存在するため塗り潰し部6へ
塗り潰し処理を指示し、データ切替え部9へは塗り潰し
部6からのデータを出力することを指示し、転送部10
へは文字を発生するべき位置へ転送を行うことを指示す
る。塗り潰し部6では塗り潰しデータ制御部8と同時に
作業メモリ4から4ドット分の輪郭データを読み出し、
輪郭線上であるD7,D8を塗り潰し出力する。塗り潰
されたデータはデータ切替え部9を通り、転送部10に
より出力装置11へ出力される。2ライン目の3グルー
プ目も同様にして、作業メモリ4からの輪郭データと文
字テーブルメモリ5からのXテーブル41DDcを読み
込む。Xテーブル41DDcは“1”であるが輪郭デー
タには輪郭が存在せず、輪郭の内側でもないため1グル
ープ目と同様塗り潰し処理を行わない指示をする。以降
2ライン目の4グループ目からは同様に塗り潰し処理を
行わない。3ライン目、4ライン目も同様にして塗り潰
し処理を進めていくが、4ライン目の3グループ目で
は、2グループ目内のD11のドットから塗り潰しを行
い、3グループ目は輪郭の内側となることを塗り潰し部
6から入力し、塗り潰し処理を行わないことを指示す
る。同時に黒データ発生部7へ4ビット分の黒データを
発生するこを指示し、データ切替え部9へ黒データ発生
部7よりの黒データを出力することを指示する。このよ
うにして全ラインについて塗り潰し処理を行い、図5
(B)の塗り潰し結果が得られることになる。
Next, the filling unit 6 reads the character outline data word by word from the working memory 4 and fills the inside of the character outline as shown in FIG. 5B. In FIG. 5B, D2 to D13 and D4 to D1 on the outline of the character and inside the outline.
Although the space between 1 and the like is filled, first, the four dots of the working memory 4 are grouped as one group, and the filling process is sequentially performed from the upper left. The filling data control unit 8 reads the first four dots from the working memory 4 and reads the X table 41DDa and the Y table 42DDg from the character table memory 5. At this time, since the Y table 42DDg is "0", it is determined that there is no contour in this line.
It instructs the filling unit 6 to read the next line, and also instructs the transfer unit 10 to omit the first line filling process. Similarly, the first four dots are read from the working memory 4 for the second line, and the X table 41DDa and the Y table 42DDh are read from the character table memory 5. Y
Since the table 42DDh is "1", it is determined that an outline exists in this line, and when the X table 41 is viewed, the X table 41DDa is "0", so that it is determined that no outline exists in this group. And 2 to the painted part 6
It instructs to read the next group in the line, and also instructs the transfer unit 10 to omit the filling process for this group. Subsequently, the next four dots on the second line are read from the working memory 4 and the X table 41D is read from the character table memory 5.
Read Db. Since the X table 41DDb is "1", it can be determined that a contour exists, and 4
When the dot is confirmed, since the contour exists, the filling unit 6 is instructed to perform the filling process, the data switching unit 9 is instructed to output the data from the filling unit 6, and the transfer unit 10 is instructed.
Indicates that the transfer should be made to the position where the character should be generated. The filling unit 6 reads outline data for 4 dots from the working memory 4 at the same time as the filling data control unit 8,
D7 and D8 on the outline are painted out. The filled data passes through the data switching unit 9 and is output to the output device 11 by the transfer unit 10. Similarly, the third group on the second line reads the contour data from the work memory 4 and the X table 41DDc from the character table memory 5. Although the X table 41DDc is "1", there is no contour in the contour data, and it is not inside the contour. Therefore, an instruction is given not to perform the filling process as in the first group. Thereafter, similarly, the filling process is not performed from the fourth group on the second line. The filling process is similarly performed for the third line and the fourth line. However, in the third group of the fourth line, the filling is performed from the dot D11 in the second group, and the third group is inside the outline. This is input from the filling unit 6 to instruct not to perform the filling process. At the same time, it instructs the black data generation unit 7 to generate 4-bit black data, and instructs the data switching unit 9 to output the black data from the black data generation unit 7. In this manner, the filling process is performed for all the lines, and FIG.
The result of the filling in (B) is obtained.

【0019】“こ”の場合にも、図2(A)で示すよう
なXテーブル41、Yテーブル42を使用しながら、作
業メモリ4上の点線で表される部分の塗り潰し処理を省
略して右斜線部分のみ塗り潰し処理を行い、図6(C)
で示すような塗り潰し結果を得、転送部10により出力
装置11の図6(D)で示すような出力イメージとして
転送される。
Also in the case of "ko", the filling process of the portion represented by the dotted line on the working memory 4 is omitted while using the X table 41 and the Y table 42 as shown in FIG. The filling process is performed only on the right oblique lines, and FIG. 6 (C)
Are obtained, and the transfer unit 10 transfers the result as an output image as shown in FIG.

【0020】また、図2(B)で示す記号文字“●”の
場合でも“こ”と同様の処理となるが、文字の中心の右
斜線部と左斜線部の重なりの部分はオール黒となり、塗
り潰しデータ制御部8から塗り潰し部6へ塗り潰し処理
を行わないことを指示し、黒データ発生部7へ1ワード
分の黒データを出力することを指示、データ切替え部9
へは黒データ発生部7からの黒データを出力することを
指示することでオール黒部分の塗り潰し結果を得ること
になる。
In the case of the symbol character "●" shown in FIG. 2 (B), the same processing as "ko" is performed, but the overlapped portion of the right diagonal line and the left diagonal line at the center of the character is all black. From the filling data control unit 8 to the filling unit 6 to instruct not to perform the filling process, to the black data generating unit 7 to output one word of black data, and the data switching unit 9.
The instruction to output black data from the black data generating unit 7 indicates that all black portions are to be filled.

【0021】更に、第二の実施の形態としては、第一の
実施の形態で説明した文字テーブルメモリ5を備えるこ
とと、塗り潰しデータ制御部8内の作業メモリ4から読
み出したデータに輪郭が存在しない場合に塗り潰し処理
を省く機能を備えることのどちらか一方のみを備えた例
を図3および図4を用いて説明する。図3は、文字テー
ブルメモリ5のみを備えた場合の文字発生処理領域を示
す作業メモリと文字テーブルメモリの内容を示した図、
図4は文字テーブルメモリ5を備えない場合の文字発生
処理領域を示す作業メモリの内容を示した図である。特
に、図3(A)はY軸方向のYテーブルのみを備えた場
合であり、第一の実施の形態と異なる点についてのみ説
明すると、まず描画時には、輪郭描画制御部3から作業
メモリ4に輪郭を描画する際、1ラインを1グループと
して1グループ内で描画が行われたときに、Yテーブル
にフラグ1をセットする。描画が全て終了した後、塗り
潰し部6で塗り潰し処理を行うが、塗り潰しデータ制御
部8では文字テーブルメモリ5からYテーブルを読み出
し、Yテーブルa,b,h,o,pのみ1ライン分の塗
り潰し処理を省くことができる。図3(B)はX軸方向
のXテーブルのみを備えた場合である。図3(A)と異
なり、1ワードを1グループとして縦割にして、1グル
ープごとに描画が行われたときに、Xテーブルにフラグ
1をセットする。塗り潰し時にはXテーブルa,eのみ
1ワード分の塗り潰し処理を省くことができる。図3
(C)はX軸方向、Y軸方向共にXテーブル、Yテーブ
ルを備えた場合である。図3(C)の場合、Yテーブル
i,m,w,xについては1ライン分の塗り潰し処理を
省き、残りのラインについては、Xテーブルa,b,
e,hの1ワード分の塗り潰し処理を省くことができ
る。
Further, as a second embodiment, the character table memory 5 described in the first embodiment is provided, and the data read from the work memory 4 in the filling data control unit 8 has an outline. An example of providing only one of the functions of omitting the filling process when not performed will be described with reference to FIGS. 3 and 4. FIG. FIG. 3 is a diagram showing contents of a working memory and a character table memory showing a character generation processing area when only the character table memory 5 is provided,
FIG. 4 is a diagram showing the contents of the working memory indicating the character generation processing area when the character table memory 5 is not provided. In particular, FIG. 3A shows a case where only the Y table in the Y-axis direction is provided. Only points different from the first embodiment will be described. When drawing an outline, when drawing is performed in one group with one line as one group, a flag 1 is set in the Y table. After all the drawing is completed, the filling unit 6 performs the filling process. The filling data control unit 8 reads the Y table from the character table memory 5 and fills only one line of the Y tables a, b, h, o, and p. Processing can be omitted. FIG. 3B shows a case where only the X table in the X-axis direction is provided. Unlike FIG. 3A, when one word is vertically divided into one group and the drawing is performed for each group, the flag 1 is set in the X table. At the time of painting, the painting process for one word only in X tables a and e can be omitted. FIG.
(C) shows a case where an X table and a Y table are provided in both the X-axis direction and the Y-axis direction. In the case of FIG. 3 (C), the filling process for one line is omitted for the Y tables i, m, w, and x, and the X tables a, b, and
The filling process for one word of e and h can be omitted.

【0022】図4は文字テーブルメモリ5を備えず、全
て塗り潰しデータ制御部8で入力される作業メモリ4か
らのデータによって塗り潰し処理の実行を決定する。作
業メモリ4から入力するデータは1ワードずつ読み出さ
れ、輪郭が存在しない場合と、文字の輪郭の内側でもな
い場合のみ塗り潰し処理を省くことになる。作業メモリ
の左上のX軸側aとY軸側i(グループa−iとする)
をまず読み込み、塗り潰し処理を省き、次にグループb
−i,c−i,d−i・・・と1ワードのグループごと
に読み出していき、塗り潰し処理を進め、塗り潰し結果
を得る。
FIG. 4 does not include the character table memory 5 and determines the execution of the filling process based on data from the work memory 4 which is all input by the filling data control unit 8. The data input from the working memory 4 is read out one word at a time, and the filling process is omitted only when there is no outline and when it is not inside the outline of the character. X-axis side a and Y-axis side i at the upper left of working memory (group a-i)
First, skip the filling process, and then group b
-I, c-i, di, ... are read out for each group of one word, the painting process is advanced, and the painting result is obtained.

【0023】以上の説明の中でX軸方向の1グループを
1ワードとして説明してきたが、1ワードに固定する必
要はなく、ある定められるデータの長さとしても同様に
実施できる。
In the above description, one group in the X-axis direction has been described as one word. However, it is not necessary to fix the word to one word, and the present invention can be similarly implemented even with a predetermined data length.

【0024】また本発明の実施の形態の中では、処理前
の作業メモリは必ず0クリアが行われていることを前提
として説明しているため、文字発生処理前に作業メモリ
を0クリアしておくことを条件とする。さらに従来の技
術で説明したB−BOXと組み合わせて使用することも
できる。
Further, in the embodiment of the present invention, the description is made on the assumption that the working memory before processing is always cleared to 0, so that the working memory is cleared to 0 before the character generation processing. Condition. Furthermore, it can also be used in combination with the B-BOX described in the prior art.

【0025】[0025]

【発明の効果】以上説明したように、本発明によれば、
作業メモリへの文字の輪郭を描画する際、1ラインや1
ワード単位のグループの中で輪郭を描画したグループに
ついてだけフラグをセットする文字テーブルメモリと、
1グループ分全て塗り潰しを行う時に1グループ分の黒
データを出力する黒データ発生部と、塗り潰し処理に作
業メモリからのデータや文字テーブルメモリからのデー
タより、塗り潰し処理を省いたり黒データの出力を指示
したりする塗り潰しデータ制御部とを備えることで、文
字デザインの内部に存在する空白部分の処理を省き、記
号文字“●”のような空白とは逆の黒の部分の処理も省
くことで、アウトラインフォント方式により文字発生装
置における塗り潰し処理の一層の効率化を図り、アウト
ラインフォントの文字発生を高速に行うことができる。
As described above, according to the present invention,
When drawing the outline of the character in the working memory, one line or one line
A character table memory for setting a flag only for a group in which an outline is drawn in a group of words,
A black data generating unit that outputs black data for one group when all the data for one group is filled, and eliminates the filling processing or outputs the black data from the data from the working memory or the data from the character table memory for the filling processing. By providing a fill data control unit that gives instructions and the like, it is possible to omit processing of blank parts existing inside the character design, and also eliminate processing of black parts opposite to white space such as the symbol character "●". By using the outline font method, the efficiency of the filling process in the character generator can be further increased, and the generation of outline font characters can be performed at high speed.

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

【図1】本発明の一実施の形態の機能ブロック図であ
る。
FIG. 1 is a functional block diagram of an embodiment of the present invention.

【図2】この実施の形態の文字発生領域を示す作業メモ
リと文字テーブルメモリの内容を示す図である。
FIG. 2 is a diagram showing contents of a working memory and a character table memory indicating a character generation area according to the embodiment.

【図3】他の実施の形態の文字発生領域を示す作業メモ
リと文字テーブルメモリの内容を示す図である。
FIG. 3 is a diagram showing contents of a working memory and a character table memory showing a character generation area according to another embodiment.

【図4】他の実施の形態の文字発生領域を示す作業メモ
リの内容を示す図である。
FIG. 4 is a diagram showing contents of a work memory indicating a character generation area according to another embodiment.

【図5】文字テーブルメモリに書き込むフラグの法則に
ついて説明する図である。
FIG. 5 is a diagram illustrating a rule of a flag written in a character table memory.

【図6】この実施の形態の各処理部で扱うデータを示す
図である。
FIG. 6 is a diagram illustrating data handled by each processing unit according to the embodiment.

【図7】文字発生領域を示す図である。FIG. 7 is a diagram showing a character generation area.

【図8】従来のアウトラインフォントによる文字発生装
置の一例を示すブロック図である。
FIG. 8 is a block diagram showing an example of a conventional character generator using an outline font.

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

1 上位装置 2 フォントメモリ 3 輪郭描画制御部 4 作業メモリ 5 文字テーブルメモリ 6 塗り潰し部 7 黒データ発生部 8 塗り潰しデータ制御部 9 データ切替え部 10 転送部 11 出力装置 DESCRIPTION OF SYMBOLS 1 Upper apparatus 2 Font memory 3 Outline drawing control part 4 Work memory 5 Character table memory 6 Filling part 7 Black data generation part 8 Filling data control part 9 Data switching part 10 Transfer part 11 Output device

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 上位装置から入力される文字コードに対
応する文字輪郭を形成する座標点情報を格納しているフ
ォントメモリと、前記上位装置からの文字発生処理開始
指示により前記フォントメモリから前記座標点情報を読
み出し前記文字輪郭を描画する輪郭描画制御部と、この
輪郭描画制御部からの前記文字輪郭を描画する作業メモ
リと、この作業メモリに描画された前記文字輪郭を読み
出し前記文字輪郭の内部を塗り潰す塗り潰し部と、塗り
潰した文字を出力イメージのある位置へ転送する転送部
を備える文字発生装置において、前記輪郭描画制御部か
ら前記作業メモリへ前記文字輪郭を描画する際1ライン
や1ワード単位のグループの中で輪郭を描画したグルー
プについてフラグをセットする文字テーブルメモリと、
1グループ分全て塗り潰しを行う場合に1グループ分の
黒データを出力する黒データ発生部と、塗り潰しを行う
際前記文字テーブルメモリからのフラグの内容と前記作
業メモリの内容とを参照して前記塗り潰し部からの塗り
潰しデータと前記黒データ発生部からの黒データとの切
り替えを制御する塗り潰しデータ制御部と、この塗り潰
しデータ制御部からの指示によりデータの切り替えを行
うデータ切替え部とを備えることを特徴とする文字発生
装置。
1. A font memory storing coordinate point information for forming a character contour corresponding to a character code input from a host device, and said coordinates from said font memory in response to a character generation process start instruction from said host device. A contour drawing control unit for reading point information and drawing the character contour, a working memory for drawing the character contour from the contour drawing control unit, and reading the character contour drawn in the work memory for reading the character contour inside the character contour A character generation device comprising a filling unit for filling a character and a transfer unit for transferring a filled character to a position of an output image, wherein one line or one word is used when drawing the character outline from the outline drawing control unit to the work memory. A character table memory for setting a flag for a group in which an outline is drawn in a unit group;
A black data generation unit that outputs black data for one group when filling is performed for one group; and the contents of a flag from the character table memory and the operation when performing filling.
A fill data control unit that controls switching between the fill data from the fill unit and the black data from the black data generation unit with reference to the contents of the memory, and data switching by an instruction from the fill data control unit. And a data switching unit for performing the following.
JP7220432A 1995-08-29 1995-08-29 Character generator Expired - Lifetime JP2901526B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7220432A JP2901526B2 (en) 1995-08-29 1995-08-29 Character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7220432A JP2901526B2 (en) 1995-08-29 1995-08-29 Character generator

Publications (2)

Publication Number Publication Date
JPH0962244A JPH0962244A (en) 1997-03-07
JP2901526B2 true JP2901526B2 (en) 1999-06-07

Family

ID=16751023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7220432A Expired - Lifetime JP2901526B2 (en) 1995-08-29 1995-08-29 Character generator

Country Status (1)

Country Link
JP (1) JP2901526B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59132065A (en) * 1983-01-14 1984-07-30 Hitachi Ltd Image data processing method

Also Published As

Publication number Publication date
JPH0962244A (en) 1997-03-07

Similar Documents

Publication Publication Date Title
JP3145509B2 (en) Character generation method and device
JP2964841B2 (en) Data converter
JP2901526B2 (en) Character generator
JP2774653B2 (en) Character processor
JPH04325267A (en) Output method and its device
JPH046554B2 (en)
JP3034140B2 (en) Character generation method and device
JP2985275B2 (en) Character generation method of outline font
JPH0583381B2 (en)
JP3118310B2 (en) Print processing method of page printer
JP3209359B2 (en) Image output device
JPH01191192A (en) High quality character generating device
JP3033152B2 (en) Outline data processing device
JPH05265428A (en) Outline data converting device
JP3039214B2 (en) Data converter
JPH0493994A (en) Character processor
JP2881924B2 (en) Data storage device
JP3040624B2 (en) Pattern generator
JPH06100905B2 (en) Pattern output method
JP3569957B2 (en) Image processing device
JP2861201B2 (en) Data converter
JP2814709B2 (en) Drawing data creation device
JP3087463B2 (en) Character symbol generator
JPH0583382B2 (en)
JPH0747330B2 (en) Character output device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990209