JP2896097B2 - Method and apparatus for filling outline font in which characters are configured for each element - Google Patents

Method and apparatus for filling outline font in which characters are configured for each element

Info

Publication number
JP2896097B2
JP2896097B2 JP6309399A JP30939994A JP2896097B2 JP 2896097 B2 JP2896097 B2 JP 2896097B2 JP 6309399 A JP6309399 A JP 6309399A JP 30939994 A JP30939994 A JP 30939994A JP 2896097 B2 JP2896097 B2 JP 2896097B2
Authority
JP
Japan
Prior art keywords
character
contour
vector direction
line
outline font
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
JP6309399A
Other languages
Japanese (ja)
Other versions
JPH08146937A (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.)
NIISU KK
Original Assignee
NIISU 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 NIISU KK filed Critical NIISU KK
Priority to JP6309399A priority Critical patent/JP2896097B2/en
Publication of JPH08146937A publication Critical patent/JPH08146937A/en
Application granted granted Critical
Publication of JP2896097B2 publication Critical patent/JP2896097B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、一つの閉鎖された輪郭
だけで構成される点、縦棒、横棒、ハライ、ハネ等
みからなるエレメントを組み合わせて一つの文字を構成
するエレメント(以下、本明細書でいうエレメントは、
偏、旁(つくり)、ハネを含む棒、あるいは2本の棒か
ら構成されるものと区別され。また、本発明の文字
は、上記エレメントによって構成されるため、内側輪郭
線を持たないアウトラインフォントからなる。)別の文
字情報をデジタル信号で記憶し、このデジタル信号に基
づいて画像表示装置、あるいは印字装置に文字を組み立
てる文字発生器におけるエレメント別アウトラインフォ
ントの塗りつぶし方法および装置に関するものである。
本明細書において、「エレメント」とは、上記記載によ
って定義付けられたものである。
The present invention relates to a closed point that consists only outline, vertical bar, horizontal bar, payment, the wings and the like
Elements that constitute one character by combining elements consisting of
Polarized, parietal (make), Ru is distinguished from those composed of rod or two rods, including wings. Also, the character of the present invention
Is composed of the above elements,
Consists of an outline font with no lines. The present invention relates to a method and an apparatus for filling an outline font for each element in a character generator for assembling characters in an image display device or a printing device based on the digital signal by storing other character information.
In the present specification, “element” is as defined above.
It is defined.

【0002】[0002]

【従来の技術】従来、デジタル方式による文字情報の記
憶方式としては、ドット方式、ランレングス方式、ベク
トル・アウトライン方式がある。文字の高品質性、表示
サイズの拡大あるいは縮小、または変形の自由を重要視
する場合には、一般的にベクトル・アウトライン方式の
文字情報の記憶方式が採用されている。日本語の文字
は、欧米の文字に比べて文字数が多く、複雑であるか
ら、閉鎖された輪郭線からなる点、縦画、横画、ハライ
を組み立てて、一つの文字を構成する。このようにして
構成された文字は、文字全体の輪郭線を一括して構成さ
れたアウトライン方式の文字より、点あるいは画等の移
動、追加、あるいは削除等の修正が簡単である。閉鎖さ
れた輪郭線からなる点、縦画、横画、ハライで一つの文
字を予め構成しておけば、多くの点あるいは画等を共通
に使用することができるという利点がある。
2. Description of the Related Art Conventionally, there are a dot system, a run-length system, and a vector outline system as character information storage systems by a digital system. When emphasis is placed on the high quality of characters, enlargement or reduction of the display size, or freedom of deformation, a vector outline type character information storage method is generally employed. Japanese characters have a greater number of characters and are more complex than Western characters, so a point consisting of closed outlines, a vertical image, a horizontal image, and a halai are assembled to form one character. Characters configured in this manner are easier to modify, such as moving, adding, or deleting points or pictures, than outline-type characters in which the outline of the entire character is collectively configured. If one character is composed in advance of a point consisting of a closed contour, a vertical image, a horizontal image, and a horizontal line, there is an advantage that many points or images can be commonly used.

【0003】一方、輪郭線情報にて構成される文字をド
ット文字として黒く塗りつぶすイーブン・オッド方式
(出願人 日本電子産業株式会社)と、走査線と走査線
に交差する輪郭線のベクトル方向によってドット信号を
出力するノン・ゼロ・ワインディグ方式とがある。イー
ブン・オッド方式では、文字の輪郭線情報を出力するに
先立って、記憶装置内で輪郭線情報をドット信号“1”
に変換し、そのドット信号を走査線上の始めの“1”よ
り次のドット信号“1”までの全部の“0”を“1”に
変換してドット信号による文字を発生する。
On the other hand, an even-odd method (applicant, Nippon Denshi Sangyo Co., Ltd.) in which a character composed of outline information is painted out as a dot character in black, and a dot is formed by a scanning line and a vector direction of the outline crossing the scanning line. There is a non-zero winding system that outputs a signal. In the even-odd method, prior to outputting contour information of a character, the contour information is stored in a storage device as a dot signal "1".
The dot signal is converted to all the "0" from the first "1" on the scanning line to the next dot signal "1" to "1" to generate a character by the dot signal.

【0004】しかし、上記イーブン・オッド方式におい
て、異なる点あるいは画等の輪郭線が交差する可能性の
ある文字の場合、交差部に塗り残し部が生じ、文字とし
て望ましくない。すなわち、点あるいは画等の輪郭線情
報による文字は、異なる点あるいは画等の輪郭線が互い
に接触あるいは交差した場合には、走査線と他の点ある
いは画等の輪郭線との交差を2度目の交差と誤認する。
このため、ドット信号“1”を継続して出力する必要が
あるにもかかわらず、ドット信号は“0”に変わって白
となり、結果的に、塗り残し部分が発生してしまう。
[0004] However, in the above-mentioned even-odd method, in the case of a character in which different points or outlines such as images may intersect, an unpainted portion occurs at the intersection, which is not desirable as a character. In other words, a character based on contour information such as a point or a picture, if the contours of different points or pictures contact or intersect each other, make the intersection of the scanning line with the contour of another point or picture a second time. Mistaken for a crossing.
Therefore, although the dot signal “1” needs to be continuously output, the dot signal changes to “0” and becomes white, and as a result, an unpainted portion occurs.

【0005】また、点あるいは画等の頂点が1点しかな
い場合、ドット信号を“1”に変えるドットだけにな
り、ドット信号を“0”に変える2番目のドットが存在
しないので、正確なドット信号を発生しない。したがっ
て、点あるいは画等に頂点が存在する場合には、無理や
りに文字デザインの観点を無視してドット信号を2つ並
べなければならない。この点に関してイーブン・オッド
方式は、閉鎖された輪郭線からなる点、縦画、横画、ハ
ライで一つの文字を構成して、ドット信号の発生を行な
うには不向きである。
If there is only one vertex such as a point or a picture, there is only a dot for changing the dot signal to "1", and there is no second dot for changing the dot signal to "0". Does not generate dot signals. Therefore, when a vertex exists in a point, a picture, or the like, two dot signals must be arranged by forcefully ignoring the viewpoint of character design. In this regard, the even-odd method is not suitable for generating a dot signal by forming one character from a point having a closed contour, a vertical image, a horizontal image, and a horizontal line.

【0006】ノン・ゼロ・ワインディグ方式では、文字
の外側輪郭線のベクトル方向に対して、文字の内側輪郭
線のベクトル方向は、反対方向に決める。この文字に対
して、任意方向から走査を行ない、走査線と文字の輪郭
線との交差部のベクトル方向を求める。この時の交差部
のベクトル方向が正の方向であれば、レジスタに1を加
算し、交差部のベクトル方向が負の方向であれば、レジ
スタに−1を加算し、レジスタの値が0になるまでドッ
ト信号“1”を発生し続ける。ノン・ゼロ・ワインディ
グ方式によれば、文字の輪郭線どうしが交差していて
も、ドット信号を発生できるので、文字の輪郭線内の塗
り残しが生じない。
In the non-zero winding method, the vector direction of the inner contour of a character is determined to be opposite to the vector direction of the outer contour of the character. The character is scanned from an arbitrary direction, and the vector direction of the intersection between the scanning line and the outline of the character is determined. If the vector direction at the intersection is positive, add 1 to the register. If the vector direction at the intersection is negative, add -1 to the register. Until the dot signal "1" is generated. According to the non-zero winding method, even if character outlines intersect, a dot signal can be generated, so that no unpainting occurs in the character outlines.

【0007】[0007]

【発明が解決しようとする課題】しかし、点、縦画、横
画、ハライからなる単純な輪郭線で構成された文字は、
文字をデザイン的に修正する場合、文字の点あるいはハ
ライを少し移動する必要が生ずる。このような場合、文
字全体のバランスから見て、点あるいは画等の交差また
は接した部分があると、移動する必要がない点あるいは
画等までも修正しなければならないという問題を有し
た。一方の点あるいは画等の移動量が大きい場合には、
接していた他方の点あるいは画等から切り離した後、移
動を行わなければならない。混み入った複雑な日本の漢
字の場合、文字を修正すると、新たな内側輪郭線を発生
したり、あるいは内側輪郭線を消滅してしまい、文字作
成に不都合な点が多いという問題を有した。
However, characters composed of simple outlines consisting of dots, portraits, landscapes, and halves,
When a character is modified in design, it is necessary to slightly move the character point or the horizon. In such a case, in view of the balance of the whole character, if there is an intersecting or touching part such as a point or a picture, there is a problem that a point or a picture which does not need to be moved must be corrected. If the movement amount of one point or image is large,
After being separated from the other point or image, etc., which was in contact, the movement must be performed. In the case of a complicated Japanese kanji, when a character is corrected, a new inner contour line is generated or the inner contour line disappears, so that there is a problem that there are many inconveniences in character creation.

【0008】イーブン・オッド方式の場合、点あるいは
画等の交差部あるいは接触部が塗り残され、また点ある
いは画等の頂点に、1つのドットしか存在しないので、
ドット信号を“0”にするドットを設けて置かなければ
ならないため、デザイン的に優れた文字が得難いという
問題を有した。ノン・ゼロ・ワインディグ方式の場合に
は、点あるいは画等の外側輪郭線と内側輪郭線とのベク
トル方向を逆方向に正しく与えなければならない。しか
し、複雑な形状をした日本語の漢字では、一見しただけ
で、外側輪郭線と内側輪郭線との区別が困難であるとい
う問題があった。
In the case of the even-odd system, the intersection or contact portion of a point or a picture is left unpainted, and only one dot exists at the vertex of a point or a picture.
Since a dot for setting the dot signal to "0" must be provided and placed, there is a problem that it is difficult to obtain a character excellent in design. In the case of the non-zero winding method, the vector directions of the outer contour line and the inner contour line such as a point or a picture must be correctly given in opposite directions. However, in the case of Japanese kanji having a complicated shape, there is a problem that it is difficult to distinguish an outer contour line and an inner contour line at a glance.

【0009】以上のような問題を解決するために、本発
明は、一つの閉鎖された輪郭線だけから構成される点、
縦棒、横棒、ハライ、ハネ等のみからなるエレメントを
組み合わせて一つの文字を構成するエレメント別アウト
ラインフォントの塗りつぶし方法および装置を提供する
ことを目的とする。 本発明は、上記各エレメントを重ね
て複雑な文字を構成した場合においても、簡単でしかも
情報量が少なくてすむエレメント別アウトラインフォン
トの塗りつぶし方法および装置を提供することを目的と
する。本発明は、エレメントの移動あるいは修正が簡単
で、しかも塗り残しがないエレメント別アウトラインフ
ォントの塗りつぶし方法および装置を提供することを目
的とする。
[0009] In order to solve the above problems, the present invention is directed to a point composed of only one closed contour,
Elements consisting only of vertical bars, horizontal bars, hail, splash, etc.
Outs by element that combine to form one character
A method and an apparatus for filling a line font are provided.
The purpose is to: An object of the present invention is to provide a method and apparatus for filling an outline font for each element, which is simple and requires a small amount of information even when a complicated character is formed by overlapping the above elements. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method and an apparatus for filling an outline font for each element, in which the movement or correction of an element is easy and there is no unfilled area.

【0010】[0010]

【課題を解決するための手段】前記目的を達成するため
に、本発明のエレメント別アウトラインフォントの塗り
つぶし方法は、一つの閉鎖された輪郭線だけで構成され
点、縦棒、横棒、ハライ、ハネ等のみからなるエレメ
ントを組み合わせて一つの文字を構成するエレメント別
アウトラインフォントを塗りつぶす方法であって、上記
エレメント別アウトラインフォント情報を記憶するアウ
トラインフォント情報記憶手段から1文字を読み出し、
上記文字を構成するエレメントの輪郭線を全て同一のベ
クトル方向とし、上記エレメントの輪郭線を任意方向か
ら走査し、上記輪郭線と走査線との交差部における輪郭
線のベクトル方向の正負を分析し、ベクトル方向が正の
場合1を出力し、ベクトル方向が負の場合−1を出力
し、前記出力を加算器により加算した結果が、0になら
ない限りドット信号“1”を出力し、0の場合にはドッ
ト信号“0”を出力し、この操作を1文字あるいはエレ
メント全てについて繰り返し処理を行うことを特徴とす
る。
According to the present invention, there is provided a method for filling an outline font by element according to the present invention, which comprises only one closed outline.
That point, Ereme consisting of a vertical bar, horizontal bar, pay, only from the wings, etc.
A method of filling an outline font for each element that constitutes one character by combining
One character is read from an outline font information storage unit that stores outline font information for each element ,
And all the same vector direction contour line of the elements constituting the character, the outline of the element is scanned from any direction, to analyze the positive and negative vector direction of the contour at the intersection of the contour line and the scan line , Outputs 1 when the vector direction is positive, outputs −1 when the vector direction is negative, and outputs a dot signal “1” unless the result of adding the outputs by the adder becomes 0. In this case, a dot signal “0” is output, and this operation is repeated for one character or all elements.

【0011】本発明のエレメント別アウトラインフォン
トの塗りつぶし装置は、一つの閉鎖された輪郭線だけで
構成される点、縦棒、横棒、ハライ、ハネ等のみからな
るエレメントを組み合わせて一つの文字を構成するエレ
メント別アウトラインフォントを塗りつぶすものであ
り、一つの閉鎖された輪郭線だけで構成される点、縦
棒、横棒、ハライ、ハネ等のみからなるエレメントを組
み合わせて一つの文字を構成するエレメント別アウトラ
インフォントの座標点データを任意の同一ベクトル方向
として記憶する文字記憶装置3と、上記文字を構成する
エレメントの輪郭線を任意方向から走査する走査線と
一つの輪郭線との交差部のベクトル方向が、正方向かあ
るいは負方向かを判定すると共に、正方向の場合1を、
負方向の場合−1を出力する輪郭線のベクトル方向判定
器21と、前記輪郭線のベクトル方向判定器21の出力
である1または−1を加算する加算器22と、前記加算
器22の加算結果を0と比較する比較器23と、前記比
較器23の比較結果が0でない限り、ドット信号“1”
を出力し、0の場合にはドット信号“0”を出力するド
ット信号発生器24とを備えていることを特徴とする。
The device for filling outline fonts by element according to the present invention uses only one closed outline .
Consisting point, vertical bar, horizontal bar, pay, only the wings, etc. Tona
The outline font for each element that composes one character by combining elements
Group consisting of points consisting of only one closed contour line, vertical bars, horizontal bars,
A character storage unit 3 for storing coordinate point data of element-based outline font constituting one character combined viewed as any identical vector direction, constituting the character
A scanning line for scanning the contour of the element from an arbitrary direction ,
It is determined whether the vector direction of the intersection with one contour line is the positive direction or the negative direction, and 1 is set in the positive direction,
Contour vector direction determiner 21 that outputs -1 in the case of negative direction, and output of contour vector direction determiner 21
An adder 22 that adds 1 or −1 , a comparator 23 that compares the addition result of the adder 22 with 0, and a dot signal “1” unless the comparison result of the comparator 23 is 0.
And a dot signal generator 24 for outputting a dot signal “0” when the value is 0.

【0012】[0012]

【作 用】本発明のエレメントは、一つの閉鎖された
輪郭線だけで構成される点、縦棒、横棒、ハライ、ハネ
等のみからなるエレメントを組み合わせて一つの文字を
構成して文字あるいはエレメントに内側輪郭線が発生
しないようにしたものである。そして、本出願人は、上
記のようなエレメントを重ねて文字にすると、複雑な文
字に対しても文字の情報量を少なくできることを発見し
た。一つの閉鎖された輪郭線だけで構成される点、縦
棒、横棒、ハライ、ハネ等のみからなるエレメントを組
み合わせて一つの文字を構成するエレメント別アウトラ
インフォントがアウトラインフォント情報記憶手段に記
憶されている。キーボードで打ち込まれた文字あるいは
上記エレメントは、そのコードにしたがってアドレス発
生回路により、文字あるいは上記エレメントの輪郭線を
構成する座標点データを発生する。この座標点データ
、予め、アウトラインフォント情報記憶手段に記憶さ
れている文字あるいは上記エレメント1文字分がバッ
ファメモリ、あるいは1エレメント分のバッファメモリ
に格納される。
[Operation] The element of the present invention has one closed
Combine elements consisting of points consisting only of outlines , vertical bars, horizontal bars, halves, splashes, etc. to create one character
Configuration to the inner contour occurs in the character or element
It is something that was not done . Then, the present applicant has found that the character information can be reduced even for complicated characters by overlapping the above elements to form a character . Combining elements consisting of points, vertical bars, horizontal bars, harais, splashes, etc. consisting of only one closed contour
An outline font for each element which constitutes one character in combination is stored in the outline font information storage means. Characters typed on the keyboard or
The above elements, the address generating circuit in accordance with the code, generates a coordinate point data constituting the outline of the character or the element. This coordinate point data
In advance, one character of the character or the elements stored in the outline font data storage means Ru stored in the buffer memory or one element worth of buffer memory.

【0013】前記バッファメモリに格納された文字ある
いは一つの閉鎖された輪郭線だけで構成される点、縦
棒、横棒、ハライ、ハネ等のみからなるエレメントは、
上記輪郭線ベクトル方向判定器によって、文字あるい
はエレメントの輪郭線と走査線との交差部におけるベク
トル方向正負判定される。そして、上記輪郭線のベ
クトル方向判定器は、ベクトル方向が正の場合+1を、
ベクトル方向が負の場合−1を出力する。加算器は、前
記出力の値を加算する。加算された結果は、比較器によ
って0と比較する。比較された結果は、0でない限り、
ドット信号“1”を出力して、文字あるいはエレメント
の輪郭線内を黒く塗りつぶす。比較された結果、0の場
合は、ドット信号“0”を出力して文字あるいはエレメ
ントの輪郭線外を白く塗りつぶす。
An element consisting of only characters stored in the buffer memory or a point composed of only one closed contour, a vertical bar, a horizontal bar, a hail, a splash, etc.
The vector direction determiner the contour vector <br/> Torr direction of positive and negative Ru is determined at the intersection of the contour line of a character or element and the scanning line. Then, the vector direction determiner for the contour line calculates +1 when the vector direction is positive,
If the vector direction is negative, -1 is output. The adder adds the output values. The added result is compared with 0 by a comparator. The result of the comparison is
The dot signal “1” is output, and the inside of the outline of the character or element is painted black. If the result of the comparison is 0, a dot signal “0” is output and the outside of the outline of the character or element is painted out in white.

【0014】[0014]

【実 施 例】図1は、本発明の原理を説明するための
ブロック構成図である。1はキーボードで、所望の文字
を入力して、文字を画像表示装置に表示するか、あるい
はプリンタに印字するかの指示を与えるものである。2
はアドレス発生回路で、キーボード1の入力に基づいた
入力コードから、1文字の各エレメントごとにアドレス
信号を出力する。3は文字記憶装置で、前記アドレス発
生回路2におけるアドレス信号により1文字あるいは1
エレメントを出力する。4は1文字分のバッファメモリ
で、前記文字記憶装置3から出力した1文字を記憶す
る。5は1エレメント分のバッファメモリで、前記文字
記憶装置3から出力した1エレメントを記憶する。
FIG. 1 is a block diagram for explaining the principle of the present invention. Reference numeral 1 denotes a keyboard for inputting desired characters and giving an instruction on whether to display the characters on an image display device or to print the characters on a printer. 2
Is an address generation circuit for outputting an address signal for each element of one character from an input code based on an input of the keyboard 1. Reference numeral 3 denotes a character storage device, which stores one character or one character according to an address signal in the address generation circuit 2.
Output the element. Reference numeral 4 denotes a buffer memory for one character, which stores one character output from the character storage device 3. Reference numeral 5 denotes a buffer memory for one element, which stores one element output from the character storage device 3.

【0015】6は演算回路で、前記1文字あるいは1エ
レメントをドット信号で塗りつぶす。この時演算回路6
は、文字あるいはエレメントの輪郭線と走査線との交差
部のベクトル方向が正か、負かを判定する機能、加算機
能、比較機能、ドット信号発生機能等を有する。7は1
文字分のバッファメモリで、演算回路6で塗りつぶされ
た1文字あるいは1エレメントを記憶する。キーボード
1で打ち込まれた文字あるいはエレメントは、そのコー
ドにしたがってアドレス発生回路2により、文字あるい
はエレメントの輪郭線を構成する座標点データを発生す
る。この座標点データに基づいて、予め文字記憶装置3
に記憶されている文字あるいはエレメントを1文字分の
バッファメモリ4、あるいは1エレメント分のバッファ
メモリ5に格納する。
An arithmetic circuit 6 paints the one character or one element with a dot signal. At this time, the arithmetic circuit 6
Has a function of determining whether the vector direction at the intersection of the outline of a character or an element and a scanning line is positive or negative, an addition function, a comparison function, a dot signal generation function, and the like. 7 is 1
A buffer memory for characters stores one character or one element painted by the arithmetic circuit 6. A character or an element entered by the keyboard 1 generates coordinate point data constituting an outline of the character or the element by an address generation circuit 2 according to the code. Based on the coordinate point data, the character storage device 3
Are stored in the buffer memory 4 for one character or the buffer memory 5 for one element.

【0016】本発明は、このように1文字分のバッファ
メモリ4、と1エレメント分のバッファメモリ5とを備
えているので、1文字分を一挙にドット文字とすること
ができると共に、教育的な見地から、運筆の順(書き
順)通りに、1エレメントずつドット文字を表示するこ
ともできる。前記バッファメモリ4、5に格納された文
字あるいはエレメントは、演算回路6の機能により次の
ように処理される。すなわち、文字あるいはエレメント
の輪郭線と走査線との交差部のベクトル方向が正か負か
を判定する。8は出力装置、たとえば、画像表示装置あ
るいはプリンタで、前記1文字分バッファメモリ7の出
力によって、1文字が画像表示装置に表示、あるいはプ
リンタに印字される。
Since the present invention includes the buffer memory 4 for one character and the buffer memory 5 for one element as described above, one character can be converted into a dot character at a time, and educational data can be obtained. From a simple point of view, dot characters can be displayed element by element in the order of handwriting (writing order). The characters or elements stored in the buffer memories 4 and 5 are processed by the function of the arithmetic circuit 6 as follows. That is, it is determined whether the vector direction at the intersection of the outline of the character or element and the scanning line is positive or negative. Reference numeral 8 denotes an output device, for example, an image display device or a printer. One character is displayed on the image display device or printed on the printer by the output of the buffer memory 7 for one character.

【0017】本発明の一実施例を図2ないし図5を参照
しつつ説明する。図2は図1における演算回路を詳細に
説明するためのブロック図である。図3は輪郭線を4倍
した場合のドット信号を説明するための図である。図4
は輪郭線のベクトル方向を説明するための図である。図
5は輪郭線のベクトル方向を説明図するための他の図で
ある。図2において、21は輪郭線のベクトル方向判定
器で、輪郭線のベクトル方向が正か負かを判定し、文字
あるいはエレメントの輪郭線と走査線との交差部におけ
るベクトル方向が正の場合、+1を出力し、前記交差部
におけるベクトル方向が負の場合、−1を出力する。
One embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a block diagram for explaining the arithmetic circuit in FIG. 1 in detail. FIG. 3 is a diagram for explaining a dot signal when the outline is quadrupled. FIG.
FIG. 4 is a diagram for explaining a vector direction of a contour line. FIG. 5 is another diagram for explaining the vector direction of the contour line. In FIG. 2, reference numeral 21 denotes a contour vector direction determiner which determines whether the vector direction of the contour is positive or negative. If the vector direction at the intersection between the contour of the character or element and the scanning line is positive, +1 is output, and if the vector direction at the intersection is negative, -1 is output.

【0018】22は加算器で、輪郭線のベクトル方向判
定器21において、出力した+1あるいは−1を加算す
る。23は比較器で、前記加算器22における図示され
ていないレジスタに格納された加算結果を0と比較す
る。24はドット信号発生器で、前記比較器23で比較
した結果が0以外は、ドット信号“1”を出力して、文
字あるいはエレメントの輪郭線内を黒く塗りつぶす。ま
た、前記比較器23の値が0の場合には、ドット信号
“0”を出力して、文字あるいはエレメントの輪郭線外
を白く塗る。
Reference numeral 22 denotes an adder, which adds the output +1 or -1 in the contour vector direction determiner 21. A comparator 23 compares the addition result stored in a register (not shown) of the adder 22 with 0. Reference numeral 24 denotes a dot signal generator which outputs a dot signal "1" when the result of comparison by the comparator 23 is other than 0 to black out the outline of a character or element. When the value of the comparator 23 is 0, a dot signal "0" is output, and the outside of the outline of the character or element is painted white.

【0019】図3図示のごとく、たとえば、頂点あるい
は走査線と平行な線を有する輪郭線Xは、そのベクトル
方向の正負を判定することができない。そこで、輪郭線
の4倍化処理器25は、上記輪郭線Xの走査線を4倍し
て、図3図示の輪郭線Yを得る。26および27は4n
±1番目の走査線選択器で、4倍した輪郭線の4n±1
番目の走査線上のものだけを選択する。すなわち、図3
の例では、3番目、5番目、7番目、9番目、11番
目、13番目の走査線を選択する。以後、この走査線上
のものについてだけ、ドット信号を出力するための処理
を行なう。そして、ドット信号を出力するために、輪郭
線のベクトル方向判定器21、加算器22、比較器2
3、ドット信号発生器24によって、前記輪郭線の走査
線を4倍する前と全く同じ処理を行なう。28はドット
信号合成器で、前記4n+1番目の走査線と4n−1番
目の走査線とで得られたドット信号の論理和を取り輪郭
線を塗りつぶす。
As shown in FIG. 3, for example, a contour line X having a vertex or a line parallel to a scanning line cannot be determined to be positive or negative in the vector direction. Thus, the contour quadrupling processor 25 quadruples the scanning line of the contour X to obtain the contour Y shown in FIG. 26 and 27 are 4n
± 1st scan line selector, 4n ± 1 of quadrupled outline
Select only those on the th scan line. That is, FIG.
In the example, the third, fifth, seventh, ninth, eleventh, and thirteenth scanning lines are selected. Thereafter, a process for outputting a dot signal is performed only on the scanning line. Then, in order to output a dot signal, a vector direction determiner 21 for an outline, an adder 22, a comparator 2
3. The dot signal generator 24 performs exactly the same processing as before the quadratic scanning line of the contour line. Reference numeral 28 denotes a dot signal synthesizer which takes the logical sum of the dot signals obtained by the 4n + 1-th scanning line and the 4n-1-th scanning line and paints the outline.

【0020】すなわち、図3図示のごとく、3番目の走
査線と5番目の走査線とのドット信号の論理和を取る。
しかし、3番目の走査線には、ドット信号が発生しない
ので、ドット信号合成器28から5番目の走査線のドッ
ト信号が出力する。そして、このドット信号を輪郭線X
の1番目の走査線のドット信号とする。次に、7番目と
9番目との走査線によって発生したドット信号の論理和
を取る。そして、このドット信号を輪郭線Xの2番目の
走査線のドット信号とする。11番目と13番目との走
査線についても同様に行い、これを輪郭線Xの3番目の
走査線のドット信号とする。
That is, as shown in FIG. 3, the logical sum of the dot signals of the third scanning line and the fifth scanning line is calculated.
However, since a dot signal is not generated on the third scanning line, the dot signal of the fifth scanning line is output from the dot signal synthesizer 28. Then, the dot signal is transferred to the contour line X
Is the dot signal of the first scanning line. Next, the logical sum of the dot signals generated by the seventh and ninth scanning lines is calculated. Then, this dot signal is used as the dot signal of the second scanning line of the contour line X. The same is performed for the eleventh and thirteenth scanning lines, and this is used as the dot signal of the third scanning line of the contour line X.

【0021】以上のように、頂点あるいは平行線を有す
る輪郭線を4倍して、この部分における正確なドット信
号を得るようにしたが、4倍は単なる一例に過ぎず、3
倍以上であれば可能であることはいうまでもないことで
ある。しかし、3倍の処理を行なう場合、掛算器が必要
であるが、2のn乗の場合、レジスタをn桁ずらすだけ
ですむので、4倍する場合が一番簡単である。また、文
字あるいはエレメントの輪郭線を初めから4倍して、ド
ット信号を得るための処理を行なうこともできる。さら
に、ソフトによって全ての処理を行なうこともできる。
As described above, a contour line having a vertex or a parallel line is quadrupled to obtain an accurate dot signal in this portion. However, quadrupling is merely an example and is not a simple example.
Needless to say, it is possible if the number is twice or more. However, a multiplier is required to perform the processing of three times, but in the case of 2 n, the register is simply shifted by n digits. Further, a process for obtaining a dot signal by multiplying the outline of a character or an element by four from the beginning can also be performed. Further, all the processing can be performed by software.

【0022】次に、上記装置を使用して具体的文字につ
いて説明する。図4は文字「資」のエレメント別の輪郭
線を示している。この「資」は、人の手によって書く場
合とは異なり、から〇15のエレメントで構成されて
いる。エレメントないし〇15の輪郭線は、全て外側
輪郭線のみであり、内側輪郭線を持たない。そして、エ
レメントないし〇15の輪郭線の全てに、右回りある
いは左回りのベクトル方向を設定する。図4に示された
「資」は、ベクトル方向が左回りに設定されている。先
ず、エレメントを塗りつぶす場合について、図2およ
び図4を参照しつつ説明する。
Next, specific characters will be described using the above device. FIG. 4 shows a contour line for each element of the character "shi". This “fun” is different from the case where it is written by hand, and is composed of elements from $ 15 to $ 15. The outlines of the elements or # 15 are all outer outlines only, and do not have inner outlines. Then, a clockwise or counterclockwise vector direction is set for all the contour lines of the element or # 15. The vector direction of “shi” shown in FIG. 4 is set to the counterclockwise direction. First, the case of filling an element will be described with reference to FIGS.

【0023】エレメントを走査線Aにより走査する
と、輪郭線のベクトル方向判定器21は、走査線Aと輪
郭線との交差部41のベクトル方向を正方向と判定し、
+1を出力して、加算器22の図示されていないレジス
タに入力する。次に、走査線Aと輪郭線との交差部42
のベクトル方向は逆となるので、輪郭線のベクトル方向
判定器21は、交差部42のベクトル方向を負と判定
し、−1を出力して加算器22のレジスタに入力する。
加算器22に入力されたレジスタの結果を比較器23で
比較し、0でないと判定された場合には、エレメント
の交差部41から42までをドット信号“1”に変えて
黒とする。比較器23で、0と判定された場合には、エ
レメントの交差部42以降をドット信号“0”に変え
て白とする。
When the element is scanned by the scanning line A, the contour vector direction judging unit 21 judges that the vector direction of the intersection 41 between the scanning line A and the contour is the forward direction.
+1 is output and input to a register (not shown) of the adder 22. Next, the intersection 42 between the scanning line A and the contour line
Are reversed, the vector direction determiner 21 of the contour determines that the vector direction of the intersection 42 is negative, outputs −1, and inputs it to the register of the adder 22.
The result of the register input to the adder 22 is compared by the comparator 23, and when it is determined that the result is not 0, the intersections 41 to 42 of the element are changed to dot signals "1" to be black. If the comparator 23 determines that the value is 0, the dot signal "0" is changed to white after the intersection 42 of the element.

【0024】さらに、走査線を順次繰下げて同様な処理
を行い、結果的には輪郭線内がドット信号化されて、黒
く塗りつぶされる。また、エレメント、〇12および
〇10を通過する走査線Bについて説明する。走査線B
とエレメントの輪郭線との交差部43のベクトル方向
は、正方向であるから、加算器22により図示されてい
ないレジスタに1を加算する。この時レジスタの内容は
1である。走査線Bとエレメント〇12の輪郭線との交
差部44のベクトル方向は、同じく正方向であるから、
加算器22により図示されていないレジスタに1を加算
し、レジスタの内容を2とする。
Further, the same processing is performed by sequentially lowering the scanning lines, and as a result, the inside of the outline is converted into a dot signal and is painted black. The scanning line B passing through the elements # 12 and # 10 will be described. Scan line B
Since the vector direction of the intersection 43 between the element and the contour of the element is the positive direction, the adder 22 adds 1 to a register (not shown). At this time, the content of the register is 1. Since the vector direction of the intersection 44 between the scanning line B and the contour of the element # 12 is also the positive direction,
The adder 22 adds 1 to a register (not shown) to set the contents of the register to 2.

【0025】走査線Bとエレメントの輪郭線との交差
部45のベクトル方向は、逆の負方向になるから、加算
器22により図示されていないレジスタに−1を加算
し、レジスタの内容を1とする。走査線Bとエレメント
〇10の輪郭線との交差部46のベクトル方向は、正方
向になるから、加算器22により図示されていないレジ
スタに1を加算し、レジスタの内容を2とする。走査線
Bとエレメント〇12の輪郭線との交差部47のベクト
ル方向は、逆の負方向になるから、加算器22により図
示されていないレジスタに−1を加算し、レジスタの内
容を1とする。
Since the vector direction of the intersection 45 between the scanning line B and the contour of the element is in the opposite negative direction, -1 is added to a register (not shown) by the adder 22, and the content of the register is set to 1 And Since the vector direction of the intersection 46 between the scanning line B and the contour line of the element # 10 becomes the positive direction, 1 is added to a register (not shown) by the adder 22, and the register content is set to 2. Since the vector direction of the intersection 47 between the scanning line B and the contour line of the element # 12 is in the opposite negative direction, -1 is added to a register (not shown) by the adder 22, and the contents of the register are set to 1 I do.

【0026】走査線Bとエレメント〇10の輪郭線との
交差部48のベクトル方向は、負方向になるから、加算
器22により図示されていないレジスタに−1を加算
し、レジスタの内容を0とする。比較器23が比較器2
3の0とレジスタの内容とを比較して、レジスタの内容
が0以外の時、すなわち交差部43から交差部48まで
は、ドット信号発生器24によりドット信号“1”を発
生し、この間を黒く塗りつぶす。 また、レジスタの内
容が0となる交差部43以前と交差部48以降は、ドッ
ト信号発生器24によりドット信号“0”を発生してこ
の間を白く塗りつぶす。走査線がCの位置にある場合
で、エレメント、、およびのように複雑に重なり
合っていても、各エレメントの輪郭線のベクトル方向を
一定に決めておけば、前記と同様にエレメント内をドッ
ト信号化して、黒く塗りつぶすことができる。
Since the vector direction at the intersection 48 between the scanning line B and the contour line of the element # 10 is in the negative direction, the adder 22 adds -1 to a register (not shown) and sets the contents of the register to 0. And The comparator 23 is the comparator 2
The dot signal "1" is generated by the dot signal generator 24 when the contents of the register are other than 0, that is, from the intersection 43 to the intersection 48. Fill it black. The dot signal generator 24 generates a dot signal "0" before the intersection 43 and after the intersection 48 where the contents of the register become "0", and fills the area with white. Even if the scanning line is located at the position C and the elements overlap each other in a complicated manner, if the vector direction of the contour line of each element is determined to be constant, the dot signal is generated in the element in the same manner as described above. And can be painted black.

【0027】さらに、本発明における他の実施例とし
て、文字「あ」の事例を図5に示す。図5に示す文字
「あ」は、輪郭線〇23が自らの輪郭線の内側に食い込
んでいる。このような場合でも、走査線Dと各輪郭線〇
22、〇23との交差部のベクトル方向は、図示のごと
くなるので、レジスタの内容は、交差部51で1、交差
部52で2、交差部53で1、交差部54で2、交差部
55で1、交差部56で0となり、この間をドット信号
化して黒く塗りつぶすことができる。
Further, as another embodiment of the present invention, the case of the character "A" is shown in FIG. In the character "A" shown in FIG. 5, the contour line # 23 bites inside its own contour line. Even in such a case, since the vector direction of the intersection between the scanning line D and each of the contour lines # 22 and # 23 is as shown in the figure, the contents of the register are 1 at the intersection 51 and 2 at the intersection 52. It becomes 1 at the intersection 53, 2 at the intersection 54, 1 at the intersection 55, and 0 at the intersection 56. The dot signal can be converted into a dot signal and blacked out.

【0028】[0028]

【発明の効果】本発明によれば、一つの閉鎖された輪郭
だけで構成される点、縦棒、横棒、ハライ、ハネ等の
エレメントのみを組み合わせて一つの文字を構成するた
、偏、旁(つくり)、画(かく)を使用して文字を構
成しないので、文字の情報量を少なくできると共に、複
雑な文字においても内側輪郭線がなく、外側輪郭線のみ
の簡単な文字にすることができる。本発明によれば、
つの閉鎖された輪郭線だけで構成される点、縦棒、横
棒、ハライ、ハネ等のエレメントのみを組み合わせて
つの文字を構成するため、文字を制作する場合に、エレ
メントを修正、追加、あるいは削除しても、輪郭線情報
が変わることがない。そのため、複雑な文字において
も、内側輪郭線が発生しないので、文字の修正、追加、
あるいは削除が容易にできる。本発明によれば、一つの
閉鎖された輪郭線だけで構成される点、縦棒、横棒、ハ
ライ、ハネ等のエレメントのみを組み合わせて一つの
字を構成したので、全てのエレメントのベクトル方向を
同一方向にして、正確なドット信号を得ることができ
る。
According to the present invention, it is possible to form a character by combining only elements such as a point, a vertical bar, a horizontal bar, a horizontal line, a vertical line, etc., which are constituted only by one closed contour .
Because, polarized, parietal (make), does not constitute a character using the image (write), it is possible to reduce the information amount of characters, without any inner contour, only simple outer contours in complex characters Can be characters. According to the present invention, one
To compose a single character by combining only elements such as point, vertical bar, horizontal bar, horizon, splash, etc. consisting of only one closed contour line, modify, add, Or, even if it is deleted, the outline information does not change. Therefore, even for complex characters, there is no inner contour, so you can correct, add,
Alternatively, it can be easily deleted. According to the present invention, a single character is configured by combining only elements such as a point, a vertical bar, a horizontal bar, a horizontal line, a vertical line, and the like, which are formed only by one closed contour line. Therefore, it is possible to obtain an accurate dot signal by setting the vector directions of all the elements to the same direction.

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

【図1】本発明の原理を説明するためのブロック構成図
である。
FIG. 1 is a block diagram illustrating the principle of the present invention.

【図2】図1における演算回路を詳細に説明するための
ブロック図である。
FIG. 2 is a block diagram for explaining an arithmetic circuit in FIG. 1 in detail;

【図3】輪郭線を4倍した場合のドット信号を説明する
ための図である。
FIG. 3 is a diagram for explaining a dot signal when a contour line is quadrupled.

【図4】輪郭線のベクトル方向を説明するための図であ
る。
FIG. 4 is a diagram for explaining a vector direction of a contour line.

【図5】輪郭線のベクトル方向を説明図するための他の
図である。
FIG. 5 is another diagram for explaining the vector direction of the contour line.

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

1・・・キーボード 2・・・アドレス発生回路 3・・・文字記憶装置 4・・・1文字分のバッファメモリ 5・・・1エレメント分のバッファメモリ 6・・・演算回路 7・・・1文字分のバッファメモリ 8・・・出力装置 21・・・輪郭線のベクトル方向判定器 22・・・加算器 23・・・比較器 24・・・ドット信号発生器 25・・・輪郭線の4倍化処理器 26・・・4n+1番目の走査線選択器 27・・・4n−1番目の走査線選択器 28・・・ドット信号合成器 DESCRIPTION OF SYMBOLS 1 ... Keyboard 2 ... Address generation circuit 3 ... Character storage device 4 ... Buffer memory for one character 5 ... Buffer memory for one element 6 ... Operation circuit 7 ... 1 Character buffer memory 8 Output device 21 Outline vector direction determiner 22 Adder 23 Comparator 24 Dot signal generator 25 Outline 4 Doubler 26... 4n + 1th scanning line selector 27... 4n−1th scanning line selector 28... Dot signal combiner

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G09G 5/24 G06T 11/20 G06T 11/40 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G09G 5/24 G06T 11/20 G06T 11/40

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 一つの閉鎖された輪郭線だけで構成され
点、縦棒、横棒、ハライ、ハネ等のみからなるエレメ
ントを組み合わせて一つの文字を構成するエレメント別
アウトラインフォントの塗りつぶし方法において、 上記エレメント別アウトラインフォント 情報を記憶する
アウトラインフォント情報記憶手段から1文字を読み出
し、上記 文字を構成するエレメントの輪郭線を全て同一のベ
クトル方向とし、上記エレメント の輪郭線を任意方向から走査し、上記
郭線と走査線との交差部における輪郭線のベクトル方向
の正負を分析し、ベクトル方向が正の場合1を出力し、
ベクトル方向が負の場合−1を出力し、 前記出力を加算器により加算した結果が、0にならない
限りドット信号“1”を出力し、0の場合にはドット信
号“0”を出力し、 この操作を1文字あるいはエレメント全てについて繰り
返し処理を行うことを特徴とするエレメント別アウトラ
インフォントの塗りつぶし方法。
2. The method according to claim 1, wherein the closed contour comprises only one closed contour.
That point, Ereme consisting of a vertical bar, horizontal bar, pay, only from the wings, etc.
The method Fill element-based outline font constituting one character by combining cement, reads one character from the outline font data storage means for storing the element-outline font information, all contours of the elements constituting the character the same vector direction, the contour of the element scanned from any direction, to analyze the positive and negative vector direction of the contour at the intersection between the scanning line and the wheel <br/> Guo line, the vector direction positive In case 1, output
If the vector direction is negative, -1 is output. If the result of adding the output by the adder does not become 0, a dot signal "1" is output. If the result is 0, a dot signal "0" is output. A method of painting an outline font for each element, wherein this operation is repeated for one character or all elements.
【請求項2】 一つの閉鎖された輪郭線だけで構成され
点、縦棒、横棒、ハライ、ハネ等のみからなるエレメ
ントを組み合わせて一つの文字を構成するエレメント別
アウトラインフォントの塗りつぶし装置において、 一つの 閉鎖された輪郭線だけで構成される点、縦棒、横
棒、ハライ、ハネ等のみからなるエレメントを組み合わ
せて一つの文字を構成するエレメント別アウトラインフ
ォントの座標点データを任意の同一ベクトル方向として
記憶する文字記憶装置と、上記文字を構成するエレメントの輪郭線を任意方向から
走査する 走査線と、一つの輪郭線との交差部のベクトル
方向が、正方向かあるいは負方向かを判定すると共に、
正方向の場合1を、負方向の場合−1を出力する輪郭線
のベクトル方向判定器と、 前記輪郭線のベクトル方向判定器の出力である1または
−1を加算する加算器と、 前記加算器の加算結果を0と比較する比較器と、 前記比較器の比較結果が0でない限り、ドット信号
“1”を出力し、0の場合にはドット信号“0”を出力
するドット信号発生器と、 を備えていることを特徴とするエレメント別アウトライ
ンフォントの塗りつぶし装置。
2. The method according to claim 2, wherein the closed contour is composed of only one closed contour.
That point, Ereme consisting of a vertical bar, horizontal bar, pay, only from the wings, etc.
In filling device elements by outline font constituting one character by combining cement, combined single closed contour line just constructed point, Column, bars, pay, the element consisting of only splashes and the like
Was a character storage unit for storing coordinate point data of element-based outline font constituting one character as any of the same vector direction, the outline of the elements constituting the characters from any direction
A scan line to be scanned and a vector direction at an intersection of one contour line are determined whether the direction is positive or negative, and
A contour vector direction determiner that outputs 1 in the positive direction and −1 in the negative direction, and 1 or
An adder for adding -1 ; a comparator for comparing the addition result of the adder with 0; a dot signal "1" unless the comparison result of the comparator is 0; signal "0" fill device element-based outline font, characterized in that it comprises a and a dot signal generator for outputting.
JP6309399A 1994-11-21 1994-11-21 Method and apparatus for filling outline font in which characters are configured for each element Expired - Lifetime JP2896097B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6309399A JP2896097B2 (en) 1994-11-21 1994-11-21 Method and apparatus for filling outline font in which characters are configured for each element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6309399A JP2896097B2 (en) 1994-11-21 1994-11-21 Method and apparatus for filling outline font in which characters are configured for each element

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP63314966A Division JPH0754552B2 (en) 1988-12-15 1988-12-15 Method and apparatus for filling outline font composed of characters by element

Publications (2)

Publication Number Publication Date
JPH08146937A JPH08146937A (en) 1996-06-07
JP2896097B2 true JP2896097B2 (en) 1999-05-31

Family

ID=17992555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6309399A Expired - Lifetime JP2896097B2 (en) 1994-11-21 1994-11-21 Method and apparatus for filling outline font in which characters are configured for each element

Country Status (1)

Country Link
JP (1) JP2896097B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6029780A (en) * 1983-07-28 1985-02-15 日本電気オフィスシステム株式会社 Generator for character signal or the like
JPS6356693A (en) * 1986-08-27 1988-03-11 シャープ株式会社 Character dot conversion system

Also Published As

Publication number Publication date
JPH08146937A (en) 1996-06-07

Similar Documents

Publication Publication Date Title
US5016001A (en) Pattern data generating system
EP0471482B1 (en) Character processing method
JP3009525B2 (en) Vector image drawing equipment
JP2634851B2 (en) Image processing device
JP2896097B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
EP0062669A1 (en) Graphic and textual image generator for a raster scan display.
JP2794446B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
JPS6346429B2 (en)
JPH0754552B2 (en) Method and apparatus for filling outline font composed of characters by element
JP3129717B2 (en) Image processing apparatus and image processing method
JPH10240221A (en) Method and device for painting out outline font constituting character by element classifications and storage medium
JP2806679B2 (en) Character generator
JP3493745B2 (en) Drawing device
KR940001106B1 (en) Image processing method and apparatus therefor
JP2858443B2 (en) High density image forming method and its output device
JP2861201B2 (en) Data converter
JP2737845B2 (en) Character processing method and apparatus
JP3072756B2 (en) Drawing equipment
JP2664948B2 (en) Image processing apparatus and image processing method
JPH0450896A (en) Plotting circuit
JPH01100590A (en) Display control system
JPH0573693A (en) Outline paint out system
JPH07141336A (en) Character producing device
JPH06301369A (en) Character pattern generator
JPH03163495A (en) Outline character developing device