JPH09325749A - Device and method for generating character pattern - Google Patents

Device and method for generating character pattern

Info

Publication number
JPH09325749A
JPH09325749A JP8140329A JP14032996A JPH09325749A JP H09325749 A JPH09325749 A JP H09325749A JP 8140329 A JP8140329 A JP 8140329A JP 14032996 A JP14032996 A JP 14032996A JP H09325749 A JPH09325749 A JP H09325749A
Authority
JP
Japan
Prior art keywords
character pattern
filling
outline
intermediate memory
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8140329A
Other languages
Japanese (ja)
Inventor
Hideo Ariga
英雄 有賀
Fumitaka Sato
文孝 佐藤
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.)
Toshiba Corp
Toshiba Computer Engineering Corp
Original Assignee
Toshiba Corp
Toshiba Computer Engineering Corp
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 Toshiba Corp, Toshiba Computer Engineering Corp filed Critical Toshiba Corp
Priority to JP8140329A priority Critical patent/JPH09325749A/en
Publication of JPH09325749A publication Critical patent/JPH09325749A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To decrease a frequency of access to an intermediate memory and shorten time needed to draw a character pattern, and generate the character pattern fast by omitting redundant outline information and writing the character pattern outline when drawing the character pattern outline. SOLUTION: Font data are read out of a font ROM 41, stroke by stroke, and an outline scaling circuit 42 restores and scales control point information wherein the outline of the character pattern is described. An outline drawing circuit 43 draws the outline of the character pattern in the intermediate memory 44. An outline drawing circuit 43 draws the outline of the character pattern in the intermediate memory 44. At this time, horizontal line strokes are drawn by using pieces of code information indicating the start and end of a painting- out process. A painting-out circuit 45 performs the painting-out process by decreasing access to the intermediate memory 44 by referring to difference values of W numbers of the horizontal strokes held in HRM 46.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、日本語ワードプロ
セッサ等の文書作成装置に用いられ、線図形により定義
される文字パターンを形成する方式であって、線図形に
基づいて描画された輪郭を塗り潰す方式としてノンゼロ
・ワインディング・ナンバ(non−zerowind
ing number)方式を用いた文字パターン形成
装置及び文字パターン形成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for forming a character pattern defined by a line figure, which is used in a document creating apparatus such as a Japanese word processor, and which paints a contour drawn based on the line figure. Non-zero winding number as a crushing method
The present invention relates to a character pattern forming device and a character pattern forming method using an ing number) method.

【0002】[0002]

【従来の技術】従来、日本語ワードプロセッサ等の文書
作成装置では、文字をディスプレイに表示したり、プリ
ンタにより印刷するために、文字パターンを形成する文
字パターン形成装置が設けられている。文字パターン形
成装置は、高品質の文字パターンを生成できるアウトラ
イン・フォント方式を採用したものが一般的である。ア
ウトライン・フォント方式は、基本的には文字パターン
毎の文字輪郭情報を用意し、この文字輪郭情報に基づい
て線図形情報をビットマップメモリ上に展開し、この線
図形を塗り潰して文字パターンを形成する。
2. Description of the Related Art Conventionally, a document creating apparatus such as a Japanese word processor is provided with a character pattern forming apparatus for forming a character pattern in order to display characters on a display or print with a printer. A character pattern forming apparatus generally employs an outline font method capable of generating a high quality character pattern. The outline font method basically prepares character contour information for each character pattern, develops line figure information on a bitmap memory based on this character contour information, and fills this line figure to form a character pattern. To do.

【0003】1.文字パターンの形成方法 文字パターンを、互いに重なることを許された複数のス
トローク部品に分解してフォントROMに記憶してお
き、このフォントROMを用いて文字パターンを生成す
る際には、(1)まず、文字パターンの各ストローク部
品の輪郭を中間メモリ(文字パターンに対応するビット
マップメモリ、または、それに対応した内容を記憶する
ソフトウェア的な配列)に描画し、全ストローク部品を
描画した後、(2)中間メモリから輪郭情報を読み出し
て、塗り潰しを行って文字パターンを生成し出力する、
といった方法が広く知られている。
1. Method of Forming Character Pattern When a character pattern is decomposed into a plurality of stroke parts which are allowed to overlap each other and stored in a font ROM and a character pattern is generated using this font ROM, (1) First, the outline of each stroke part of the character pattern is drawn in an intermediate memory (a bitmap memory corresponding to the character pattern, or a software-like array that stores the corresponding contents), and after drawing all stroke parts, ( 2) Read the contour information from the intermediate memory, fill it, generate a character pattern, and output it.
Such a method is widely known.

【0004】このように線図形により定義された領域
(パターン)を塗り潰す方式として、イーブン・オッド
方式(even−odd)とノンゼロ・ワインディング
・ナンバ(non−zerowinding numb
er)方式が周知である。
As a method of filling the area (pattern) defined by the line figure in this way, an even-odd method and a non-zero winding number (non-zero winding number).
er) method is well known.

【0005】イーブン・オッド方式は、線図形が描画さ
れたビットマップメモリを所定方向(塗り潰し方向)に
走査して、例えば「奇数番目」の点から次の「偶数番
目」の点までを順次塗り潰す方式である。このイーブン
・オッド方式では、図17(b)に示すように、輪郭線
データを塗り潰したときに、重なり合った図形を塗り潰
すことができないという問題がある。
The even-odd method scans a bit map memory in which a line figure is drawn in a predetermined direction (filling direction) and sequentially paints, for example, from an "odd number" point to a next "even number" point. It is a crushing method. In the even-odd method, as shown in FIG. 17B, there is a problem that when the contour line data is filled, the overlapping figure cannot be filled.

【0006】一方、ノンゼロ・ワインディング・ナンバ
方式は、米国Adobe Systems社の開発した
ページ記述言語PostScriptに採用されて広く
知られている方式であって、図17(a)に示すよう
に、輪郭線の進行方向に対して、例えば左側を塗り潰す
方式である(ワインディング番号に“+1”を加え、時
計回り閉曲線によって囲まれた領域では、ワインディン
グ番号に“−1”を加え、その結果ワインディング番号
がゼロ以外の値となった領域を塗り潰す)。このノンゼ
ロ・ワインディング・ナンバ方式は、例えば特開平2−
136890号公報に開示されているように、輪郭線を
1ドットずつビットマップメモリ上に展開する。
On the other hand, the non-zero winding number system is a widely known system adopted in PostScript, a page description language developed by Adobe Systems, Inc. in the United States, and as shown in FIG. Is a method of filling the left side with respect to the traveling direction of (for example, "+1" is added to the winding number, "-1" is added to the winding number in the area surrounded by the clockwise closed curve, and as a result, the winding number is Fill areas that have a non-zero value). This non-zero winding number system is disclosed in, for example, Japanese Unexamined Patent Publication No.
As disclosed in Japanese Patent No. 136890, a contour line is developed dot by dot on a bitmap memory.

【0007】ここで、ビットマップメモリは、1ドット
(1画素)に対して記憶領域を1対1に対応させてあ
り、1ドットに対応するビット数を複数用意したもので
ある。この場合、ビットマップメモリに記憶される情報
は、輪郭線のベクトル方向情報と輪郭線重なり回数情報
とを合わせたwinding number差分情報
(以下、Wナンバ差分情報と称する)である。塗り潰す
ときには、先のビットマップメモリを走査線方向からス
キャンしていき、各ドットについてそこに記憶されてい
る先の情報を得て、その情報を累計することによりWナ
ンバを求める。このWナンバが零でない(non−ze
ro)区間にあるドット位置を塗り潰す。この方式であ
れば、図17(c)に示すように、重なり合った図形を
塗り潰すことも可能となる。
Here, the bit map memory is such that one dot (one pixel) has a one-to-one storage area, and a plurality of bits corresponding to one dot are prepared. In this case, the information stored in the bitmap memory is the winding number difference information (hereinafter, referred to as W number difference information) which is the combination of the vector direction information of the contour line and the contour line overlap count information. At the time of filling, the previous bitmap memory is scanned from the scanning line direction, the previous information stored therein for each dot is obtained, and the information is accumulated to obtain the W number. This W number is not zero (non-ze
ro) Fill the dot positions in the section. With this method, it is possible to paint overlapping figures as shown in FIG. 17 (c).

【0008】このようなノンゼロ・ワインディング・ナ
ンバ方式(NZWN方式)を用いた文字パターン描画方
式としては、例えば特開平2−266480号公報、特
開平02−270019号公報などがある。また、中間
メモリとしてビットマップメモリの代わりに配列を用い
る方式として、特願平5−135794号公報がある。
Character pattern drawing methods using such a non-zero winding number method (NZWN method) include, for example, JP-A-2-266480 and JP-A-02-270019. Japanese Patent Application No. 5-135794 discloses a method of using an array as an intermediate memory instead of a bitmap memory.

【0009】これらの方式においては、文字パターンを
塗り潰し方向に走査したときに、Wナンバが変化する点
の位置と変化量を中間メモリに記憶する。特開平2−2
66480号公報の場合は、中間メモリとして、文字パ
ターンの各ドットに対応したアドレスに複数ビットを持
つWNPM(ワインディング・ナンバ・パターン・メモ
リ)を用い、Wナンバの変化する点(すなわち、文字パ
ターンの輪郭を構成する点の一部)の位置は、WNPM
のアドレスによって示し、WNPMの内容としては、W
ナンバの変化量を記憶する。
In these methods, the position of the point where the W number changes and the amount of change when the character pattern is scanned in the filling direction are stored in the intermediate memory. Japanese Patent Laid-Open No. 2-2
In the case of Japanese Patent No. 66480, a WNPM (winding number pattern memory) having a plurality of bits at an address corresponding to each dot of a character pattern is used as an intermediate memory, and a point where the W number changes (that is, a character number of the character pattern is changed). The position of part of the points that make up the contour) is WNPM
The address of WNPM is W
The change amount of the number is stored.

【0010】特願平5−135794号公報の場合は、
塗り潰し方向の座標値とWナンバの変化量を記憶する1
次元配列の配列を中間メモリとして持つ。この1次元配
列は、文字パターンの塗り潰しと直角の方向のドット数
だけ用意され、点の位置情報のうち、塗り潰しと直角方
向の成分は、この1次元配列の識別情報に対応する。
In the case of Japanese Patent Application No. 5-135794,
Stores the coordinate value in the filling direction and the change amount of the W number 1
It has an array of a dimensional array as an intermediate memory. This one-dimensional array is prepared by the number of dots in the direction perpendicular to the filling of the character pattern, and among the position information of the points, the components in the direction perpendicular to the filling correspond to the identification information of this one-dimensional array.

【0011】図2に中間メモリとしてWNPMを用いる
場合について従来の塗り潰し技術を、「土」の字を例に
とって図示する。ただし、ここでは簡潔に要点を示すた
め、全体の大きさは、20ドット×20ドットに縮小し
ているが、横線の線幅は一般的な動作例となるように3
ドット幅に設定している。この例では、塗り潰しをY軸
方向(上から下方向)へ行う。これは、縦方向に並んだ
ドット印刷機構を持つヘッドを横方向へ移動させつつ、
文字パターンを印字するOA機器用プリンタの文字パタ
ーンデータ転送方向と一致させて、全体を最適化してい
るためである。
FIG. 2 illustrates a conventional filling technique in the case of using WNPM as an intermediate memory, taking the character of "earth" as an example. However, the overall size is reduced to 20 dots × 20 dots for the sake of simplicity, but the horizontal line width is set to 3 as a general operation example.
The dot width is set. In this example, the filling is performed in the Y-axis direction (from top to bottom). This is moving the head with the dot printing mechanism lined up in the vertical direction in the horizontal direction,
This is because the whole is optimized by matching the character pattern data transfer direction of the OA device printer that prints the character pattern.

【0012】「土」の字は、第1画の横棒、第2画の縦
棒、第3画の横棒の3つのストローク部品から成る。そ
れらが順次描画されて、文字パターンの輪郭(実際の輪
郭とは異なる)がWNPMに記憶された状態が図2であ
る。特開平2−266480号公報では、WNPMの内
容(各ドットのWナンバを示すコード情報)は、最大の
重なり回数(3回)に従って、“−3”〜“+3”およ
び“±”で表記することになっているが、この例では、
“+1”、“−1”、“±”の3つの値しか出現しない
ので、それらを“+”、“−”、“±”で表現してい
る。
The letter "Sat" consists of three stroke parts, a horizontal bar of the first stroke, a vertical bar of the second stroke, and a horizontal bar of the third stroke. FIG. 2 shows a state in which they are sequentially drawn and the outline of the character pattern (different from the actual outline) is stored in WNPM. In Japanese Patent Laid-Open No. 2-266480, the content of WNPM (code information indicating the W number of each dot) is represented by "-3" to "+3" and "±" according to the maximum number of overlaps (3 times). As expected, in this example,
Since only three values "+1", "-1", and "±" appear, they are represented by "+", "-", and "±".

【0013】“+”の印は、注目点のWナンバが、その
直前(塗り潰し方向の直前であり、ここでは注目点の上
隣)の点のWナンバと比べて1だけ大きくことを示すも
のである。したがって、注目点が“+”の場合には、そ
のWナンバの変化量として1だけ加算することになる。
The "+" mark indicates that the W number of the point of interest is larger by 1 than the W number of the point immediately before it (immediately before the filling point, which is above the point of interest here). Is. Therefore, when the attention point is "+", only 1 is added as the change amount of the W number.

【0014】“−”の印は、注目点のWナンバが、その
直前の点のWナンバと比べて1だけ小さいことを示すも
のである。したがって、注目点が“−”の場合には、そ
のWナンバの変化量として1だけ減算することになる。
The "-" mark indicates that the W number of the point of interest is smaller by 1 than the W number of the point immediately before it. Therefore, when the point of interest is "-", 1 is subtracted as the change amount of the W number.

【0015】“±”の印は、“+”と“−”の重なった
点であり、その点の直前と直後の点のWナンバに差はな
いが、この点は黒く印字すべきことを示す(特開平2−
266480号公報の第7ページ参照)。
The mark "±" is a point where "+" and "-" overlap, and there is no difference in the W numbers immediately before and after that point, but this point should be printed in black. Shown (JP-A-2-
(See page 7 of 266480).

【0016】また、「土」の字の第2画の縦棒の左右の
輪郭は“●”の印で示されているが、これは実際にはW
NPMには描画されない。この“●”印は、図の上で文
字パターンを見やすくするために付けた印であり、実際
は何も印をつけていないドットと全く同じ状態にある。
例えば縦棒の左側輪郭は、(7,0)の点の“+”印か
ら(7,17)の点の“−”印までが塗り潰され、
(8,0)の点の“+”印から(8,17)の点の
“−”印までが塗り潰されることにより、その左側の塗
り潰されないで白地として残った点との対比として、自
然に輪郭として現れる。すなわち、塗り潰し方向に沿っ
た輪郭はWNPMに記憶される必要がない。
Also, the left and right contours of the vertical bar of the second stroke of the letter "Sat" are shown by "●", but this is actually W.
Not drawn in NPM. The "●" mark is a mark that is added to the character pattern to make it easier to see, and is actually in the same state as a dot with no mark.
For example, the left side contour of the vertical bar is filled from the "+" mark at the point (7,0) to the "-" mark at the point (7,17),
By filling in from the "+" mark at the point (8,0) to the "-" mark at the point (8,17), it is natural to compare it with the left unfilled white background. Appears as a contour in. That is, the contours along the fill direction need not be stored in WNPM.

【0017】また、横棒と縦棒の重なった部分、例えば
(8,16)の点は、塗り潰しの処理でWナンバを累計
すると“+2”になるが、文字パターンとしては、この
点も“+1”の点と同様に黒ドットにされる。
Further, the overlapping portion of the horizontal and vertical bars, for example, the point (8,16) becomes "+2" when the W numbers are added up by the filling process, but this point is also a character pattern. A black dot is formed like the point of +1 ".

【0018】2.ファクシミリ用画像符号化方式 後述する本発明の実施形態に類似する従来技術を説明す
る。
2. Facsimile Image Coding Method A conventional technique similar to the embodiment of the present invention described later will be described.

【0019】ファクシミリでは、送信する画像を横方向
に走査して、白か黒の点を列と見なす。その点列の中
で、白から黒へ、あるいは黒から白へと変化した点の位
置を逐次送信することによって、受信側で送信側と同じ
画像を復元できるようにしている。その変化点の位置を
表現する方法の1つとして、垂直モードの符号化方式が
ある。
In a facsimile, the image to be transmitted is scanned in the horizontal direction, and white or black dots are regarded as columns. In the point sequence, the positions of the points that have changed from white to black or from black to white are sequentially transmitted, so that the receiving side can restore the same image as the transmitting side. As one of the methods of expressing the position of the change point, there is a vertical mode coding method.

【0020】これは、図16に示すように、現在符号化
中の走査ラインの直前のライン(これを参照ラインとい
う)のパターンを送信側でも受信側でも記憶しておき、
参照ラインの変化点を基準点として、符号化ラインの変
化点が基準点の真下にあるとき、コード“V”、基準点
より1ドット右にあるときコード“VR(1)”などと表
す。VL(3)からVR(3)までのコードを使うことができ
る。
This is because, as shown in FIG. 16, the pattern of the line immediately before the scan line currently being encoded (referred to as a reference line) is stored on both the transmitting side and the receiving side.
When the change point of the reference line is a reference point, the change point of the coding line is represented by a code "V" when it is directly below the reference point, and by a code "VR (1)" when it is one dot right from the reference point. Codes from VL (3) to VR (3) can be used.

【0021】点の位置をそのまま数値として表現した
り、ラン長コードを用いるよりも、このコードを用いた
方がコードが短くて済むケースが多いことが知られてい
る。
It is known that there are many cases in which the code can be made shorter than when the position of the point is expressed as a numeric value as it is or when the run length code is used.

【0022】[0022]

【発明が解決しようとする課題】上述したようなノンゼ
ロ・ワインディング・ナンバ方式を用いた文字パターン
描画方式において、従来、図2に示すように、水平線の
上側と出力側の輪郭線を構成するドットは、すべて中間
メモリに記憶させる必要があった。なお、水平線ストロ
ークの輪郭であっても、そのうちの縦線部分は中間メモ
リに記憶させる必要がないことは当然である。例えば、
図2の(19,17)の点である。
In the character pattern drawing method using the non-zero winding number method as described above, conventionally, as shown in FIG. 2, the dots forming the upper side of the horizontal line and the contour line on the output side are formed. Had to be stored in intermediate memory. It should be noted that it is not necessary to store the vertical line portion of the outline of the horizontal line stroke in the intermediate memory. For example,
This is the point (19, 17) in FIG.

【0023】一般に、文字パターン描画処理全体に要す
る時間のうち、文字パターンの輪郭を中間メモリに描画
するのに要する時間の比率は大きく、その比率が1/2
を越えるケースも多い。その輪郭描画時間を左右する重
大な要因が中間メモリへのアクセス回数である。
Generally, of the time required for the entire character pattern drawing process, the ratio of the time required for drawing the outline of the character pattern in the intermediate memory is large, and the ratio is 1/2.
There are many cases that exceed. An important factor that influences the contour drawing time is the number of accesses to the intermediate memory.

【0024】図2を参照すると、“+”あるいは“−”
の変化値を示すWナンバのコード情報が、同じY座標値
を持つ連続した位置に一様に書かれている部分が多い。
例えば、(3,7)、(4,7)〜(15,7)の各点
である。したがって、冗長な情報を中間メモリに書き込
むために、多数のメモリサイクルを消費していることが
分かる。
Referring to FIG. 2, "+" or "-"
In many cases, the code information of the W number indicating the change value of is uniformly written at consecutive positions having the same Y coordinate value.
For example, the points are (3, 7) and (4, 7) to (15, 7). Therefore, it can be seen that a large number of memory cycles are consumed to write the redundant information in the intermediate memory.

【0025】本発明は上記のような点に鑑みなされたも
ので、冗長な情報を中間メモリに書き込むことなく文字
パターンの輪郭を描くことにより、中間メモリへのアク
セス回数を減らして文字パターンの描画に要する時間を
短縮化して、文字パターンを高速に形成可能な文字パタ
ーン形成装置及び文字パターン形成方法を提供すること
を目的とする。
The present invention has been made in view of the above points, and draws the outline of a character pattern without writing redundant information in the intermediate memory, thereby reducing the number of accesses to the intermediate memory and drawing the character pattern. An object of the present invention is to provide a character pattern forming apparatus and a character pattern forming method capable of forming a character pattern at high speed by shortening the time required for.

【0026】特に、本発明は、上記目的を解決するに当
たり、単純水平線セグメントが互いに重なるまで文字パ
ターンを縮小でき、また、ストロークパターンを単純水
平線セグメントとそれ以外とに分割する必要のない方式
を提供することを目的とする。
In particular, in order to solve the above-mentioned object, the present invention provides a method in which a character pattern can be reduced until simple horizontal line segments overlap each other, and a stroke pattern does not need to be divided into simple horizontal line segments and others. The purpose is to do.

【0027】[0027]

【課題を解決するための手段】[Means for Solving the Problems]

(1)本発明の文字パターン形成装置は、文字パターン
を複数の部品に分けて記述したフォントデータに基づい
て、上記文字パターンの第1の座標軸方向への塗り潰し
処理を上記第1の座標軸方向とは直角な方向である第2
の座標軸方向へ繰返すことによって上記文字パターンを
形成する文字パターン形成装置であって、上記第1の座
標軸方向への塗り潰し処理の開始および終了を示す制御
情報を記憶する記憶手段と、この記憶手段に記憶された
上記制御情報と同等の機能を有する信号を当該塗り潰し
処理の上記第2の座標軸方向への繰返し毎に発生する発
生手段とを具備し、この発生手段によって得られる上記
信号に基づいて塗り潰し処理を行うことを特徴とする文
字パターン形成装置。
(1) The character pattern forming apparatus according to the present invention performs the filling process in the first coordinate axis direction of the character pattern based on the font data in which the character pattern is divided into a plurality of parts and described. Is the right angle second
Is a character pattern forming device for forming the character pattern by repeating in the direction of the coordinate axis, and storing means for storing control information indicating the start and end of the filling processing in the direction of the first coordinate axis; A generator having a function having the same function as the stored control information is generated each time the filling process is repeated in the direction of the second coordinate axis, and the filling is performed based on the signal obtained by the generator. A character pattern forming device characterized by performing processing.

【0028】このような構成によれば、中間メモリ(記
憶手段)に塗り潰し処理のための情報を書き込み、読み
出す回数を大幅に減らすことができ、処理を高速化でき
る。また、中間メモリとしての記憶容量を少なくするこ
とができる。
With such a configuration, the number of times information for filling processing is written in and read from the intermediate memory (storage means) can be greatly reduced, and the processing speed can be increased. In addition, the storage capacity of the intermediate memory can be reduced.

【0029】(2)また、本発明の文字パターン形成方
法は、文字パターンを複数の部品に分けて記述したフォ
ントデータに基づいて、上記文字パターンの第1の座標
軸方向への塗り潰し処理を上記第1の座標軸方向とは直
角な方向である第2の座標軸方向へ繰返すことによって
上記文字パターンを形成する文字パターン形成方法であ
って、上記第1の座標軸方向への塗り潰し処理の開始お
よび終了を示す制御情報をメモリに記憶させておき、こ
のメモリに記憶された上記制御情報と同等の機能を有す
る信号を当該塗り潰し処理の上記第2の座標軸方向への
繰返し毎に発生させることにより、その発生した信号に
基づいて塗り潰し処理を行うことを特徴とする。
(2) Further, in the character pattern forming method of the present invention, the filling processing in the first coordinate axis direction of the character pattern is performed based on the font data in which the character pattern is divided into a plurality of parts and described. A character pattern forming method for forming the character pattern by repeating in the second coordinate axis direction, which is a direction perpendicular to the first coordinate axis direction, and showing the start and end of the filling processing in the first coordinate axis direction. The control information is stored in a memory, and a signal having a function equivalent to that of the control information stored in the memory is generated by repeating the filling process in the second coordinate axis direction. The feature is that the filling processing is performed based on the signal.

【0030】このような方法によれば、マイクロプロセ
ッサシステムの処理能力が、要求される文字パターン形
成速度に対して十分高い場合には、すべてをソフトウェ
アで実現することによってコストを安くできる。
According to such a method, when the processing capability of the microprocessor system is sufficiently high with respect to the required character pattern forming speed, the cost can be reduced by implementing all the functions by software.

【0031】[0031]

【発明の実施の形態】以下、図面を参照しながら本発明
の実施形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0032】まず、図1を参照して本発明の原理を説明
する。図1は、図2(従来)に対応する本発明の塗り潰
し方式を説明するための概念図である。なお、本発明を
好適に実現するためには、中間メモリとしてWNPMを
用いる方式によりは配列を用いる方式をベースにする方
が望ましい(後述)。しかし、説明を簡単にするため、
まずはWNPMを用いる方式をベースにして本発明の原
理を説明する。
First, the principle of the present invention will be described with reference to FIG. FIG. 1 is a conceptual diagram for explaining the filling method of the present invention corresponding to FIG. 2 (conventional). It should be noted that, in order to preferably implement the present invention, it is preferable to use a method using an array as a base depending on a method using WNPM as an intermediate memory (described later). But for the sake of simplicity,
First, the principle of the present invention will be described based on the method using WNPM.

【0033】図1では、WNPM(中間メモリ)に何も
書かれていないが、文字パターンの輪郭となる点が、
“●”と“○”の印で示されている。“●”の印は、図
2の場合と同じ意味である。すなわち、実際にはWNP
Mには描画されない点であり、この図の上で文字パター
ンを見やすくするために付けた印である。
In FIG. 1, although nothing is written in the WNPM (intermediate memory), the point that is the outline of the character pattern is
It is indicated by the marks "●" and "○". The mark "●" has the same meaning as in FIG. That is, in practice WNP
It is a point that is not drawn on M, and is a mark added to make the character pattern easy to see in this figure.

【0034】“○”の印は、図2で“+”または“−”
であった点であり、本実施形態では何も書かれなくなっ
た点を示す。すなわち、“○”印の数だけWNPMへの
アクセスが減ったことを示す。図1の例では、“+”、
“−”、“±”印の数よりも“○”印の数の方が多いか
ら、本発明を実施することにより、WNPMのアクセス
回数が半分以下に減ったことを示している。これは、と
りもなおさず、文字パターン描画が大幅に高速化される
ことを意味している。
The mark "○" is indicated by "+" or "-" in FIG.
This means that nothing is written in this embodiment. That is, it indicates that the access to the WNPM is reduced by the number of “◯” marks. In the example of FIG. 1, “+”,
Since the number of “◯” marks is larger than the number of “−” and “±” marks, it is shown that the number of WNPM accesses is reduced to half or less by implementing the present invention. This means that the speed of character pattern drawing is greatly increased.

【0035】また、図1において、“+s”と“−s”
の印は、図2の“+”、“−”と同じ働きを持つ他に、
その効力が右へ繰り返し有効となることを示す。すなわ
ち、“+s”と“−s”の印がある位置よりはX軸の右
方向では、同じY軸位置で同じWナンバの差分値が繰り
返し発生する。こうして指定された繰り返しは同じY軸
位置に“+e”と“−e”の印が出現するまで続く。
Further, in FIG. 1, "+ s" and "-s"
Mark has the same function as "+" and "-" in FIG.
It shows that the effect is repeatedly effective to the right. That is, the difference value of the same W number is repeatedly generated at the same Y-axis position in the right direction of the X-axis from the position where “+ s” and “−s” marks are present. The repetition thus designated continues until the "+ e" and "-e" marks appear at the same Y-axis position.

【0036】この場合、“+s”がWナンバにおける+
成分のスタート位置を示すコード情報であり、“+e”
がそのエンド位置を示すコード情報である。同様に、
“−s”がWナンバにおける−成分のスタート位置を示
すコード情報であり、“−e”がそのエンド位置を示す
コード情報である。ここで、塗り潰しの方向はY軸方向
(上から下方向)であり、左から順に1列ずつ塗り潰す
ものと想定している。“+s”と“−s”で指定される
Wナンバの差分値が各列の塗り潰し処理毎に“+e”と
““−e””まで繰り返されることにより、“○”印の
点は自然に文字パターンの輪郭となる。
In this case, "+ s" is + in the W number.
Code information indicating the start position of the component, "+ e"
Is code information indicating the end position. Similarly,
“-S” is code information indicating the start position of the − component in the W number, and “-e” is code information indicating the end position. Here, it is assumed that the filling direction is the Y-axis direction (from the top to the bottom), and the filling is performed one column at a time from the left. By repeating the difference value of the W numbers designated by "+ s" and "-s" up to "+ e" and "-e" for each filling process of each column, the points marked with "○" naturally. It becomes the outline of the character pattern.

【0037】本発明を適用した文字パターン形成装置の
ブロック図を図4に示す。図4において、HRM(水平
繰返しメモリ)46は、本発明を実現するためのメモリ
である。
A block diagram of a character pattern forming apparatus to which the present invention is applied is shown in FIG. In FIG. 4, an HRM (horizontal repeat memory) 46 is a memory for implementing the present invention.

【0038】フォントROM41は、文字パターンをデ
ータ圧縮して記憶している。輪郭スケーリング回路42
は、文字パターンの輪郭線を記述する制御点情報を復元
し、所定の文字サイズとなるように座標値や線幅情報を
スケーリングする。輪郭描画回路43は、文字パターン
の輪郭を中間メモリ44に描画する。塗り潰し回路45
は、中間メモリ44にセットされた内容に基づいて文字
パターンの各列を上から下方向に塗り潰すものである。
出力イメージメモリ47は、塗り潰し後の文字パターン
を最終的に出力する文字パターンとして記憶する。
The font ROM 41 stores character patterns after data compression. Contour scaling circuit 42
The control point information describing the contour line of the character pattern is restored, and the coordinate value and line width information are scaled so that the character size becomes a predetermined character size. The contour drawing circuit 43 draws the contour of the character pattern in the intermediate memory 44. Filling circuit 45
Is to fill each row of the character pattern from top to bottom based on the contents set in the intermediate memory 44.
The output image memory 47 stores the filled character pattern as a finally output character pattern.

【0039】ここで、HRM(水平パターンメモリ)4
6は、塗り潰し処理中の列の直前(すぐ左)の列に含ま
れる水平線ストロークのWナンバ差分値を保持するもの
である。そのために、HRM46は、出力文字パターン
の塗り潰し処理の方向の長さ(ドット数)と同じ語数
(バイト数)を持つ。各語は少なくとも、“−3”〜
“+3”および“±0”の8つの値を表すだけのビット
数(つまり、3ピット以上)を持つ必要がある。
Here, HRM (horizontal pattern memory) 4
Reference numeral 6 holds the W number difference value of the horizontal stroke included in the column immediately before (immediately left) the column being filled. Therefore, the HRM 46 has the same number of words (the number of bytes) as the length (the number of dots) of the output character pattern in the filling process direction. Each word is at least "-3"
It is necessary to have the number of bits (that is, 3 pits or more) enough to represent eight values of "+3" and "± 0".

【0040】このような構成にあっては、フォントRO
M41から、指定された文字のフォントデータ(線図形
を構成するための文字輪郭情報)を読み出し、輪郭スケ
ーリング回路42にて文字パターンの輪郭線を記述する
制御点情報を復元し、所定の文字サイズとなるように座
標値や線幅情報をスケーリングする。そして、輪郭描画
回路43にて、文字パターンの輪郭を中間メモリ44に
対し、“+”、“−”のコード情報と共に、水平線トロ
ークに対しては“+s”、“−s”、“+e”、“−
e”のコード情報(塗り潰し処理の開始および終了を示
す制御情報)を用いて描画する。
In such a structure, the font RO
The font data of the designated character (character contour information for forming the line figure) is read from M41, and the control point information describing the contour line of the character pattern is restored by the contour scaling circuit 42 to obtain a predetermined character size. The coordinate values and line width information are scaled so that Then, in the contour drawing circuit 43, the contour of the character pattern is stored in the intermediate memory 44 along with the code information of "+" and "-", and "+ s", "-s", "+ e" for the horizontal line trooke. , "-
Drawing is performed using the code information of e ″ (control information indicating the start and end of the filling process).

【0041】文字を構成する全てのストロークの情報を
中間メモリ44へ記憶したら、次は、塗り潰し回路45
にて、中間メモリ44にセットされた文字パターンの輪
郭を1列毎に上から下に塗り潰し、これを最終的な文字
パターンとして出力イメージメモリ47に出力する。そ
の際に、HRM46にて保持された水平線ストロークの
Wナンバの差分値(図1の“+s”、“−s”、“+
e”、“−e”で指定される)を参照することにより、
同じ差分値を示す信号を当該塗り潰し処理の繰返し毎に
発生することにより、塗り潰し処理を行う。これによ
り、中間メモリ44へのアクセスを減らして塗り潰しを
行うことができる。この塗り潰しと文字パターン出力
は、最も左側の列から始めて順に右へと繰り返す。
After the information of all the strokes forming the character is stored in the intermediate memory 44, the next step is the filling circuit 45.
At, the contours of the character patterns set in the intermediate memory 44 are filled from the top to the bottom for each column, and the final character patterns are output to the output image memory 47. At that time, the difference value of the W number of the horizontal stroke held by the HRM 46 (“+ s”, “−s”, “+” in FIG. 1).
e "and" -e ")
The filling process is performed by generating a signal indicating the same difference value every time the filling process is repeated. As a result, it is possible to reduce the access to the intermediate memory 44 and perform the filling. The filling and the character pattern output are repeated from the leftmost column to the right.

【0042】図1に対応するHRM(水平繰返しメモ
リ)と、その内容が塗り潰し処理の進行につれて変化す
る様子を図3に示す。図3のHRMは、図1の文字パタ
ーンの塗り潰し方向(上から下方向)の長さと同じく、
20ドット分を持つ。その詳細については後述する。塗
り潰し開始時点ではその内容はすべて0(本明細書で
は、以下、白を0で、黒を1で表現する)にクリアされ
る(図示せず)。
FIG. 3 shows the HRM (horizontal repeat memory) corresponding to FIG. 1 and the manner in which its contents change as the filling process progresses. The HRM in FIG. 3 is the same as the length in the filling direction (from top to bottom) of the character pattern in FIG.
Has 20 dots. The details will be described later. At the start of filling, all the contents are cleared to 0 (herein, white is represented by 0 and black is represented by 1) (not shown).

【0043】塗り潰し処理が図1の列1まで進んだとき
のHRMの状態を図3(a)に示す。HRMには、図1
の(0,16)点の“+s”によって指定されたY座標
16の位置のWナンバ差分値+1が記憶されている。こ
のHRMの値は、中間メモリと同期して読み出され、共
にWナンバ塗り潰しの入力となる。すなわち、列1の例
では、HRMからY座標値16で+1のWナンバ差分値
が読み出され、Y座標値17で中間メモリの(1,1
7)の“−”が読み出される。その結果、Y座標16の
ドットからY座標17のドットまでが、黒色になる。
FIG. 3A shows the state of the HRM when the filling process has proceeded to column 1 in FIG. Figure 1 for HRM
The W number difference value +1 at the position of the Y coordinate 16 designated by “+ s” at the point (0, 16) is stored. The value of this HRM is read in synchronization with the intermediate memory, and both are input for W number filling. That is, in the example of column 1, the W number difference value of +1 is read from the HRM at the Y coordinate value 16 and the Y coordinate value 17 is read as (1, 1 in the intermediate memory).
"-" Of 7) is read. As a result, the dots from the Y coordinate 16 to the Y coordinate 17 become black.

【0044】中間メモリから従来通りに読み出されたW
ナンバの差分値とHRMから読み出された差分値の区別
はなく、従来通りにWN差分値をy=0からy=19へ
順次加えていき、累計値がゼロ以外の点(累計値がゼロ
以外からゼロへ変化した点を含む)を黒色にするのは従
来と同様である。
W read from the intermediate memory as usual
There is no distinction between the difference value of the number and the difference value read from the HRM, and the WN difference value is sequentially added from y = 0 to y = 19 as usual, and the points where the accumulated value is not zero (the accumulated value is zero) It is the same as the conventional method to make black) (including points changed from other than zero).

【0045】第7列の塗り潰し処理を行った後、第12
列の塗り潰しを始める前までのHRMの内容を図3
(b)に示す。図1の(2,7)点の“+s”、(4,
9)点の“−s”、(0,16)点の“+s”、(7,
17)点の“−s”、(2,18)点の“−s”で示さ
れるWナンバ差分値が、それぞれのY座標位置に記憶さ
れていることがわかる。
After performing the filling processing in the seventh row, the twelfth row
Figure 3 shows the contents of the HRM before starting to fill the columns.
(B). “+ S” at point (2, 7), (4,
9) point “-s”, (0, 16) point “+ s”, (7,
It can be seen that the W number difference values indicated by "-s" at point 17) and "-s" at point (2,18) are stored at the respective Y coordinate positions.

【0046】第18列の塗り潰し処理中のHRMの内容
を図3(c)に示す。図1の(12,17)点の“−
e”、(15,7)点と(15,16)点の“+e”に
よって、それぞれに対応するY座標のところに記憶され
ているWナンバ差分値が取り消されて、y=18の位置
の差分値だけが残っていることがわかる。このようにし
て、「土」の文字パターンが、図1のような内容を持つ
中間メモリと、HRMの働きで作成される。
The contents of the HRM during the filling processing in the 18th column are shown in FIG. 3 (c). The "-" at the (12,17) point in FIG.
By e +, “+ e” at the (15,7) point and the (15,16) point, the W number difference value stored at the corresponding Y coordinate is canceled, and the position of y = 18 It can be seen that only the difference value remains.In this way, the character pattern of "Sat" is created by the action of the intermediate memory and the HRM having the contents as shown in FIG.

【0047】なお、図1で、(7,17)点から(1
2,17)点に至る部分が、“−s”と“−e”の対で
表現されているのに、(7,0)点から(9,0)点の
部分は、“+s”と“+e”の対で表現するのでなく、
従来通りの単純な“+”のつながりで表現されている理
由を以下に説明する。
In FIG. 1, from the (7,17) point to (1
The part up to the 2,17) point is expressed as a pair of "-s" and "-e", but the part from the (7,0) point to the (9,0) point is "+ s". Instead of expressing it as a pair of "+ e",
The reason why it is expressed by the conventional simple "+" connection will be described below.

【0048】(7,17)点から(12,17)点に至
る部分(縦棒ストロークの終端切り落と飾り)は、フォ
ントデータ上、水平線となる輪郭であるので、HRMを
用いて描画される“−s”と“−e”の対として表現さ
れている。これに対し、(7,0)点から(9,0)点
に至る部分は、本来曲線であり、たまたま、その曲線を
表す点をドット格子に乗せた場合に、同じ水平線上に並
んだだけであり、そうであるため、従来通りに描画され
ている。
The portion from the (7,17) point to the (12,17) point (the end cut-off and decoration of the vertical bar stroke) is the outline that is a horizontal line in the font data, and is therefore drawn using HRM. It is expressed as a pair of "-s" and "-e". On the other hand, the part from the (7,0) point to the (9,0) point is originally a curve, and when the points representing the curve happen to be placed on the dot grid, they are lined up on the same horizontal line. And, because it is, it is rendered as usual.

【0049】また、図1の(0,16)点、(2,7)
点は、“+s”コードと“−”コードが併せて記憶され
る。この点が、上述したようにWNPMを用いる塗り潰
し方式をベースにして本発明を実施することが難しい原
因である。
Further, points (0, 16) and (2, 7) in FIG.
The points are stored together with the "+ s" code and the "-" code. This is the reason why it is difficult to carry out the present invention based on the filling method using WNPM as described above.

【0050】すなわち、従来のWNPMの場合には、そ
の中に記憶されているのが単純なWナンバ差分値である
ので、同じ位置に2つ以上のWナンバ差分値を記憶する
必要がある場合には、それらの差分値の和を加えて1つ
の差分値として記憶すればよかった。しかし、本発明の
sフラグ、eフラグ付きの差分値と従来の単純な差分値
とは、直接加え合せることができない。したがって、以
下には、中間メモリに配列を用いる方式をベースとして
本発明を実施する例を説明する。
That is, in the case of the conventional WNPM, since a simple W number difference value is stored therein, it is necessary to store two or more W number difference values at the same position. In addition, the sum of those difference values should be added and stored as one difference value. However, the difference value with the s flag and the e flag of the present invention cannot be directly added to the conventional simple difference value. Therefore, in the following, an example of implementing the present invention on the basis of a method using an array for the intermediate memory will be described.

【0051】図5に本発明の一実施形態としてのハード
ウェアブロック図を示す。図5において、51は全体の
制御を行うCPUである。52は各種情報を記憶した主
メモリである。54はフォントデータを圧縮した形で記
憶しているフォントROMである。56は水平繰返しパ
ターンを格納しておくためのHRMであり、ごく小規模
なメモリである。57はバスである。
FIG. 5 shows a hardware block diagram as an embodiment of the present invention. In FIG. 5, reference numeral 51 is a CPU that performs overall control. A main memory 52 stores various information. A font ROM 54 stores font data in a compressed form. Reference numeral 56 denotes an HRM for storing the horizontal repeating pattern, which is a very small memory. 57 is a bus.

【0052】53は文字パターンの塗り潰し処理を行う
ための塗り潰し回路である。この塗り潰し回路53は、
ノンゼロワインディング番号による塗り潰しを実現する
ための従来回路と類似の回路であり、その詳細は後で述
べる。なお、塗り潰し回路の実現方法は、目標性能、コ
ストなどに応じて種々ものもが従来から存在する。本発
明は、原理に関するものであるので、最も簡明な実現方
法であるドット直列処理形のものだけを説明する。塗り
潰し処理に用いる前述の中間メモリ(配列)55は、主
メモリ52の中に記憶される。
Reference numeral 53 is a painting circuit for performing painting processing of the character pattern. This filling circuit 53
This circuit is similar to the conventional circuit for realizing the filling with the non-zero winding number, and the details will be described later. There are various conventional methods for realizing the filling circuit depending on the target performance, cost, and the like. Since the present invention relates to the principle, only the dot serial processing type, which is the simplest implementation method, will be described. The above-mentioned intermediate memory (array) 55 used for the filling processing is stored in the main memory 52.

【0053】図6に配列として実現した中間メモリの構
成を示す。また、この場合の配列の各要素のデータ形式
を図7に示す。図6の配列と図1の概念図との対応は、
従来のノンゼロワインディング番号塗り潰しを配列によ
って実現する場合(例えば特願平5−135794号公
報)と全く同じである。
FIG. 6 shows the structure of the intermediate memory realized as an array. The data format of each element of the array in this case is shown in FIG. The correspondence between the arrangement of FIG. 6 and the conceptual diagram of FIG.
This is exactly the same as the case where the conventional non-zero winding number filling is realized by an array (for example, Japanese Patent Application No. 5-135794).

【0054】すなわち、塗り潰し処理の方向と直角の方
向(図の例では横方向)に、目的の文字サイズのドット
数と同数の1次元配列を持つ。各1次元配列には、順
次、文字パターンの輪郭の塗り潰し方向座標値とその点
でのWナンバ差分値を組合せて記憶する。図6の配列の
状態は図1と対応している。図1の(0,16)点に2
つのコードが割り当てられているが、それは、図6では
0列の配列に2つの要素を割り当て、共に同じY軸座標
値16を記憶させることにより実現するためである。
That is, a one-dimensional array having the same number as the number of dots of the target character size is provided in the direction (horizontal direction in the example of the drawing) perpendicular to the direction of the filling process. In each one-dimensional array, the coordinate values in the filling direction of the outline of the character pattern and the W number difference value at that point are sequentially combined and stored. The state of the arrangement of FIG. 6 corresponds to that of FIG. 2 at point (0,16) in Figure 1
Although one code is assigned, it is realized by assigning two elements to the array of column 0 in FIG. 6 and storing the same Y-axis coordinate value 16 together.

【0055】図7は配列要素のデータ形式を示す図であ
る。中間メモリとして、配列を用いる場合には、各点の
X座標に対応するY座標テーブルを個々に用意する。こ
の場合、1つの点が図7に示すように16ビットのデー
タで表現される。そのうち、下位の0〜9ビットまでが
従来使用されていた部分であり、残りの10〜16ビッ
トは空であった。今回、その空いている部分のうちの2
ビット分をsフラグとeフラグに利用している。
FIG. 7 is a diagram showing the data format of array elements. When an array is used as the intermediate memory, a Y coordinate table corresponding to the X coordinate of each point is prepared individually. In this case, one point is represented by 16-bit data as shown in FIG. Of these, the lower 0 to 9 bits are the portions that have been conventionally used, and the remaining 10 to 16 bits are empty. This time, 2 of the vacant parts
Bits are used for the s flag and e flag.

【0056】R=00の場合は、従来と全く同じであ
る。つまり、ビット7−0にY座標値を持ち、ビット9
−8にWナンバの差分値を持つ。D=+は、その点を含
め、その点より後(この例では下)の各点のWナンバ
が、直前の点のWナンバより1つ増えることを示す。D
=−は、同様に、1だけ減ることを示す。D=±は、W
ナンバは変化させないで、そのドットを黒とすべきこと
を示す。D=±は、D=+とD=−が同一ドットにおい
て重なったことを示す。極度に細い黒線が消えてしまう
ことがないように、D=±をこのように取扱う。これ
は、従来から行われている通りである。
When R = 00, it is exactly the same as the conventional one. In other words, bit 7-0 has the Y coordinate value, and bit 9
It has a difference value of W number at -8. D = + indicates that, including that point, the W number of each point after that point (below in this example) is incremented by 1 from the W number of the immediately preceding point. D
= -In the same way indicates that it is decremented by 1. D = ± is W
The number does not change and indicates that the dot should be black. D = ± indicates that D = + and D = − overlap in the same dot. Handle D = ± in this way so that the extremely thin black line does not disappear. This is as has been done conventionally.

【0057】ここで、R=s、R=eのコードと、D=
+またはD=−との組合せによって本発明を実現する。
これが図1で“+s”、“+e”、“−s”、“−e”
として表現されているコード情報に対応する。R=sの
場合は、そのWナンバ差分値が同じY座標値において以
後(すなわち右へ)繰り返されるべきことを示す。R=
eは、その繰り返しが、その列で終了すべきことを示
す。
Here, the code of R = s and R = e, and D =
The invention is realized by a combination with + or D =-.
This is "+ s", "+ e", "-s", "-e" in FIG.
Corresponds to the code information expressed as. R = s indicates that the W number difference value should be repeated thereafter (ie to the right) at the same Y coordinate value. R =
The e indicates that the iteration should end at that column.

【0058】なお、本実施形態では、R=sまたはR=
eをD=±と組み合せて用いることはしない。1ドット
幅の水平線が頻繁に出現する場合には、D=±とR=s
またはR=eを組合せたコードも用いると配列に記憶す
るデータ量が少なくなる。本実施形態では、例えばD=
+、R=sとD=−、R=sの2つのコードを、同じY
座標値に対して記憶することによって、このような場合
を実現する。
In this embodiment, R = s or R =
Do not use e in combination with D = ±. If a horizontal line with a width of 1 dot frequently appears, D = ± and R = s
Alternatively, if a code combining R = e is also used, the amount of data stored in the array is reduced. In the present embodiment, for example, D =
Two codes of +, R = s and D =-, R = s are set to the same Y
Such a case is realized by storing the coordinate values.

【0059】次に、主メモリ中の配列として実現された
HRMの構成を図8に示す。HRMは、目的の文字パタ
ーンの塗り潰し方向のドット数と同じ大きさの1次元配
列である。HRMの各要素は、ここでは6ビットであ
り、それを3ビットずつのフィールドHCとRWに分け
て用いる。
Next, FIG. 8 shows the configuration of the HRM realized as an array in the main memory. The HRM is a one-dimensional array having the same size as the number of dots in the filling direction of the target character pattern. Here, each element of HRM has 6 bits, and it is used by dividing it into fields HC and RW of 3 bits each.

【0060】フィールドRWが図3に対応し、水平方向
に繰り返されるWナンバ差分値rwを記憶する。rwの
値の範囲は“−3”〜“+3”である。フィールドHC
は、その位置での文字パターンの水平輪郭線数hcを記
憶する。hcの値の範囲は、ここでは“0”〜“7”で
ある。これは、7本の水平輪郭線が同じドット位置に集
まるまで文字を縮小できることを示す。
The field RW corresponds to FIG. 3 and stores the W number difference value rw repeated in the horizontal direction. The range of the value of rw is "-3" to "+3". Field HC
Stores the number hc of horizontal contour lines of the character pattern at that position. The range of the value of hc is “0” to “7” here. This indicates that the characters can be reduced until the seven horizontal contours are gathered at the same dot position.

【0061】なお、HCを設けている理由は、極度に水
平線が細くなり、1ドット幅になってしまった場合にも
その水平線が消えないようにするためのものであり、そ
の詳細については後に図11を参照して述べる。
The reason why the HC is provided is to prevent the horizontal line from disappearing even if the horizontal line becomes extremely thin and has a width of 1 dot. Details thereof will be described later. This will be described with reference to FIG.

【0062】図8のHRMの状態は図3(b)の状態に
対応する。HRMは、塗り潰し処理がy=0から順に下
へ進むのに応じて、対応するY座標位置の要素が更新さ
れる。その更新のしかたを図9に示す。
The state of the HRM of FIG. 8 corresponds to the state of FIG. 3 (b). In the HRM, the element at the corresponding Y coordinate position is updated as the filling process proceeds downward from y = 0. The updating method is shown in FIG.

【0063】図9はHRMの更新状態を示す図である。
この図の左側のコードは、塗り潰し処理中のドット位置
に対応する中間メモリから読み出されたコード(図7の
RとDの組合せ)を示す。hc、rwは、それぞれH
C、RWの内容を示す。
FIG. 9 is a diagram showing an updated state of the HRM.
The code on the left side of this figure shows the code (combination of R and D in FIG. 7) read from the intermediate memory corresponding to the dot position during the filling process. hc and rw are H
The contents of C and RW are shown.

【0064】なお、図5において、フォントROM54
を順次読みながら文字パターンの輪郭を復元し、中間メ
モリの配列55に書き込む段階(図4の42に対応する
プログラム処理の段階)では、配列は出現順に記憶され
る。文字パターン全体の情報を配列55に記憶した後
で、その配列55の内容を各列毎にY座標値でソートす
る。塗り潰し処理の段階(図4の43に対応)では、配
列55の列からY座標値が塗り潰し処理中のドットと同
じものをすべて読み出して処理する。これは、従来と同
じであり、特願平5−135794号公報に詳述されて
いる。
In FIG. 5, the font ROM 54
In the step of restoring the contour of the character pattern while sequentially reading and writing it in the array 55 of the intermediate memory (the step of the program processing corresponding to 42 in FIG. 4), the arrays are stored in the order of appearance. After the information of the entire character pattern is stored in the array 55, the contents of the array 55 are sorted by the Y coordinate value for each column. At the stage of the filling process (corresponding to 43 in FIG. 4), all the dots having the same Y coordinate value as the dot being filled are read from the column of the array 55 and processed. This is the same as the conventional one and is described in detail in Japanese Patent Application No. 5-135794.

【0065】図9に示すように、中間メモリの配列の内
容に応じて、右方向の各列で繰り返し適用すべきWナン
バ差分値をRWの中に記憶させる。HCの内容は、Wナ
ンバの差分値に関係なく、その位置で繰り返されている
差分コードの合計数、つまり水平輪郭線の数を記憶す
る。更新されたHRMの内容は、対応するドット塗り潰
し処理が完了したときにHRMの同じ位置に書き込まれ
る。
As shown in FIG. 9, the W number difference value to be repeatedly applied to each column in the right direction is stored in RW according to the contents of the array of the intermediate memory. The content of HC stores the total number of difference codes repeated at that position, that is, the number of horizontal contour lines, regardless of the difference value of the W number. The updated contents of the HRM are written to the same position of the HRM when the corresponding dot filling process is completed.

【0066】次に、塗り潰し回路(図5の53)につい
て説明する。
Next, the filling circuit (53 in FIG. 5) will be described.

【0067】まず、図10を参照して従来の塗り潰し回
路を説明する。中間メモリから読み出されたWナンバ差
分値は累算器101に加えられ、次のドット位置のWナ
ンバが累算器101から出力される。累算器101の出
力は、ゼロ判定回路102に加えられる。ゼロ判定回路
102は、Wナンバがゼロ以外の場合に論理値“1”を
OR回路103へ送る。当該ドットのY座標値と同じY
座標値が、中間メモリから読み出したデータの中にある
ときは、図示されていない回路から論理値“1”が送ら
れてくる。OR回路103の出力が“1”になるとき、
つまり、Wナンバがゼロ以外の値を持つか、または、そ
のドット位置の差分値変化情報が配列内にある場合に
は、該当ドットの塗り潰し結果を黒にする。
First, a conventional filling circuit will be described with reference to FIG. The W number difference value read from the intermediate memory is added to the accumulator 101, and the W number at the next dot position is output from the accumulator 101. The output of accumulator 101 is applied to zero decision circuit 102. The zero determination circuit 102 sends a logical value “1” to the OR circuit 103 when the W number is other than zero. Y that is the same as the Y coordinate value of the dot
When the coordinate value is in the data read from the intermediate memory, a logic value "1" is sent from a circuit (not shown). When the output of the OR circuit 103 becomes “1”,
That is, when the W number has a value other than zero or when the difference value change information of the dot position is in the array, the filling result of the corresponding dot is made black.

【0068】なお、「データあり」の信号は、“±”の
コードが与えられたドットを黒にする働きを持つ。実施
形態として用いられる累算器は、累算結果が次のドット
に対応するタイミングで得られるタイプのものであるの
で、塗り潰し開始点のドットを黒くする働きも、この
「データあり」が持っている。
The signal "with data" has a function of blackening the dots given the code of "±". Since the accumulator used as an embodiment is of a type in which the accumulation result is obtained at the timing corresponding to the next dot, this “with data” also has the function of blackening the dot at the filling start point. There is.

【0069】図11に本発明の塗り潰し回路を示す。基
本的には、図10の従来回路にHRMに記憶されている
Wナンバ差分値も合わせて加えて累算して、各ドットの
Wナンバを求める回路である。デコーダ111の内容を
図12に示す。
FIG. 11 shows the filling circuit of the present invention. Basically, it is a circuit for calculating the W number of each dot by adding the W number difference value stored in the HRM to the conventional circuit of FIG. The contents of the decoder 111 are shown in FIG.

【0070】すなわち、配列中にRフラグなし、また
は、R=sフラグ付きで記憶されているWナンバ差分値
が、デコーダ出力となる。HRMから読み出されたWナ
ンバ差分値rwと加えられて、従来の単純なWナンバ差
分値と同じ値が加算回路112の出力となる。
That is, the W number difference value stored without the R flag or with the R = s flag in the array becomes the decoder output. The same value as the conventional simple W number difference value is added to the W number difference value rw read from the HRM, and becomes the output of the adding circuit 112.

【0071】累算器113以降のゼロ判定回路114、
OR回路115の動作は従来例とほぼ同じであるが、こ
こではHRMのhcの値がゼロでない時にも出力ドット
を黒にするためのゼロ判定回路116が追加されてい
る。
Zero decision circuit 114 after accumulator 113,
The operation of the OR circuit 115 is almost the same as that of the conventional example, but here, a zero determination circuit 116 is added to make the output dot black even when the value of hc of HRM is not zero.

【0072】このゼロ判定回路116の目的は、1ドッ
ト幅の水平線を正しく出力するためのものである。すな
わち、図11において、rwは本来のノンゼロワインデ
ィング方式でのWナンバ差分値を示しているのに対し、
hcは“s”の数つまり水平輪郭線の数を示している。
Wナンバでは、“+”と“−”が重なると“0”にな
る。その際、Wナンバでは“0”だが、輪郭がある場合
には黒にしなければならない。それを見るためにhcが
ある。もし、重なることを考えなければ、このような回
路は必要ない。
The purpose of the zero decision circuit 116 is to correctly output a horizontal line having a width of 1 dot. That is, in FIG. 11, rw represents the W number difference value in the original non-zero winding method, while
hc indicates the number of "s", that is, the number of horizontal contour lines.
In the W number, it becomes "0" when "+" and "-" overlap. At that time, the W number is "0", but if there is a contour, it must be black. There is hc to see it. If you don't consider overlapping, you don't need such a circuit.

【0073】具体的に説明すると、例えば図1の「土」
の第1ストロークの線幅が細くなり、上側の輪郭も下側
の輪郭も共にy=8となって重なった場合を考える。列
5、列6ではデータもなく、Wナンバもゼロであるの
で、このhcのゼロ判定回路116がないと、結局、横
棒が切れてしまうことになる。ここでは、列5、列6の
y=8でのhcが2になることによって、この部分が、
黒ドットで正しく印刷される。また、列18、列19で
はhcも戻っているので、y=8のドットは正しく白ド
ットになる。
More specifically, for example, "soil" in FIG.
Consider the case where the line width of the first stroke becomes thin and both the upper contour and the lower contour become y = 8 and overlap. Since there is no data in the columns 5 and 6 and the W number is also zero, the horizontal bar will be cut after all without the zero determination circuit 116 of hc. Here, since hc at column 5 and column 6 at y = 8 becomes 2, this part becomes
Printed correctly with black dots. In addition, since hc is also returned in the columns 18 and 19, the dot of y = 8 is correctly a white dot.

【0074】次に、中間メモリの配列に前述のようなR
フラグ付きのWナンバ差分値を書き込む方法を説明す
る。
Next, the above-mentioned R is added to the array of the intermediate memory.
A method for writing the W number difference value with a flag will be described.

【0075】そのための方法としては、フォントデータ
の一部として、図4のフォントROMに記憶しておくの
が単純である。これは、自明であり、説明を要さない。
フォントROMの内容は従来のままとして、図4の輪郭
の復元・スケーリング部分(輪郭スケーリング回路4
2)を変更して対応できることが望ましい場合も多い。
これは、一般にフォントROMは、種々の製品に共通に
利用することも多いからである。
As a method therefor, it is simple to store it as a part of the font data in the font ROM of FIG. This is self-explanatory and requires no explanation.
The contents of the font ROM remain unchanged, and the contour restoration / scaling portion (contour scaling circuit 4 in FIG.
In many cases, it is desirable to be able to respond by changing 2).
This is because, in general, the font ROM is often used in common for various products.

【0076】次に、本発明を芯線フォントに適用した場
合について説明する。ここでは、図13(a)に示すよ
うに文字ストロークを芯線Mの形状およびその芯線Mか
らストローク輪郭までの幅Wを基にして記述する従来例
に対して本発明を適用する場合を例にとって説明する。
Next, a case where the present invention is applied to a core font will be described. Here, as an example, a case where the present invention is applied to a conventional example in which a character stroke is described based on the shape of the core line M and the width W from the core line M to the stroke contour as shown in FIG. explain.

【0077】従来例のフォントデータの基本データ構造
を図13(b)に示す。ストロークはセグメントのつな
がりとして表現されるが、図13(b)は1つのセグメ
ントのデータ構造を示す。図13(a)の横棒のような
単純なストロークは1個のセグメントとして表現され
る。セグメント種別のフィールドには、水平線、垂直
線、斜線、曲線の別を示す部分を持つ。このデータ構造
には、芯線形状と線幅を示すフィールドの他に、クリッ
ピングと飾りを示すフィールドがある。芯線Mと線幅W
から決まるストローク輪郭線の端点、つまり、図9
(a)に示すCrs,Cre,Cls,Cleの4点の位置をク
リッピング・フィールドで示し、その先の部分の形状を
飾りのフィールドで示している。
The basic data structure of conventional font data is shown in FIG. 13 (b). A stroke is expressed as a connection of segments, and FIG. 13B shows the data structure of one segment. A simple stroke such as the horizontal bar in FIG. 13A is expressed as one segment. The segment type field has a portion indicating horizontal line, vertical line, diagonal line, or curved line. In this data structure, in addition to the fields showing the core line shape and line width, there are fields showing clipping and decoration. Core wire M and wire width W
End point of the stroke contour line determined from
The positions of the four points of Crs, Cre, Cls, and Cle shown in (a) are indicated by clipping fields, and the shape of the portion beyond that is indicated by decoration fields.

【0078】従来は、輪郭復元部でCrsからCreまでと
ClsからCleまでの2本の直線と、ClsからCrsまでと
CreからCleまでの2つの飾り輪郭の記述に変換し、こ
れを目的文字サイズにスケーリングして輪郭描画部へ渡
していた。
Conventionally, in the contour restoring unit, two straight lines from Crs to Cre and Cls to Cle and two decorative contours from Cls to Cres and Cre to Cle are converted and the target character is converted. It was scaled to the size and passed to the contour drawing section.

【0079】ここで、本発明を芯線フォントに適用する
基本的な考え方を述べる。なお、類似する方式として、
ストロークパターンを塗り潰し方向に平行な輪郭と塗り
潰し方向に直角な輪郭とで囲まれた矩形部分(水平線パ
ターン)と、それ以外の部分とに分割する方式(水平線
パターンを記憶する方式)があるが、本方式では、この
ようなストロークの分割を必要としない。
Here, the basic idea of applying the present invention to a core font will be described. As a similar method,
There is a method of dividing a stroke pattern into a rectangular portion (horizontal line pattern) surrounded by a contour parallel to the filling direction and a contour orthogonal to the filling direction and a portion (a method of storing the horizontal line pattern), This method does not require such division of strokes.

【0080】本方式では、ClsからCleまでの輪郭線は
水平線となることは自明であるので、単純にClsに相当
する位置に“+s”のコード情報を、Cleに相当する位
置に“+e”のコード情報を書き込む。この場合、この
間の輪郭線の各ドットに相当する位置には何も書き込ま
なくてよい。これにより、配列へのアクセス回数が大幅
に減り、従って高速に処理できる。同様に、Crsに相当
する位置に“−s”のコード情報を、また、Creに相当
する位置に“−e”のコード情報を書き込み、この間の
輪郭線の各ドットに相当する位置には何も書き込まな
い。
In this method, it is obvious that the contour line from Cls to Cle is a horizontal line, so that simply "+ s" code information is provided at a position corresponding to Cls and "+ e" is provided at a position corresponding to Cle. Write the code information of. In this case, it is not necessary to write anything in the position corresponding to each dot of the contour line between them. This greatly reduces the number of times the array is accessed, and therefore allows faster processing. Similarly, the code information of "-s" is written in the position corresponding to Crs, the code information of "-e" is written in the position corresponding to Cre, and what is written in the position corresponding to each dot of the contour line in the meantime. Also do not write.

【0081】横棒ストローク本体の輪郭情報を配列に記
憶する処理は、こうして文字のサイズに関係なく、4回
の配列書き込みで完了する。ClsからCrsまで、および
CreからCleまでの輪郭、すなわち、横棒ストロークの
飾り部分の輪郭は従来と同様に処理する。縦棒ストロー
クや曲線ストロークも従来と同様に処理する。本実施形
態では、飾り部分の輪郭を構成する水平線セグメントも
Rフラグ付きの差分コードを用いて配列に記憶させる
(図1の(7,17)から(12,17)の部分)。
The process of storing the contour information of the horizontal bar stroke body in the array is completed in this way, regardless of the character size, by writing the array four times. The contours from Cls to Crs and from Cre to Cle, that is, the contours of the decorative portion of the horizontal bar stroke are processed in the same manner as in the conventional case. Vertical bar strokes and curved strokes are processed in the same manner as in the past. In the present embodiment, the horizontal line segment forming the outline of the decorative portion is also stored in the array using the difference code with the R flag (portions (7, 17) to (12, 17) in FIG. 1).

【0082】本発明の一実施形態における文字パターン
形成処理全体のフローチャートを図14に示す。ここで
は、文字のフォントデータをROMから読んで伸長する
処理をまとめて行っているが(ステップA11、A1
2)、図14の点線で示すようにストローク毎に読込み
と伸長を行ってもよい。
FIG. 14 shows a flowchart of the entire character pattern forming process according to the embodiment of the present invention. Here, the process of reading the character font data from the ROM and expanding the data is collectively performed (steps A11 and A1).
2), reading and extension may be performed for each stroke as shown by the dotted line in FIG.

【0083】データ圧縮されたフォントデータを伸張す
ると、ストロークの輪郭を復元、目的の文字サイズへ座
標値をスケーリングした後、その輪郭を中間メモリに書
き込む(ステップA13)。その際に、上述したように
“+”、“−”のコード情報と共に、水平線ストローク
に対しては“+s”、“−s”、“+e”、“−e”の
コード情報を用いて描画する。
When the compressed font data is expanded, the outline of the stroke is restored, the coordinate value is scaled to the target character size, and then the outline is written in the intermediate memory (step A13). At that time, as described above, drawing is performed using the code information of “+” and “−” and the code information of “+ s”, “-s”, “+ e”, and “-e” for the horizontal stroke. To do.

【0084】文字パターンを構成する全てのストローク
に対する処理を終えると(ステップA14)、中間メモ
リ(配列)の1列分の情報を座標値でソートし(ステッ
プA15)、ハードウェアとしての塗り潰し回路を起動
し、その際に配列ポインタを初期化する(ステップA1
6)。そして、配列ポインタが指し示す要素を順次塗り
潰し回路に送ることにより、塗り潰しを行う(ステップ
A17、A18)。これを全ての列について繰り返し行
う(ステップA19)。この場合、“+s”あるいは
“−s”を見付けると、次に“+e”あるいは“−e”
が出現するまで、同じWナンバの差分値を示す信号を当
該塗り潰し処理の繰返し毎に発生することで、中間メモ
リへのアクセスを減らして塗り潰しを行うことができ
る。
When the processing for all strokes forming the character pattern is completed (step A14), the information for one column in the intermediate memory (array) is sorted by the coordinate value (step A15), and the filling circuit as hardware is set. It is activated and the array pointer is initialized at that time (step A1).
6). Then, the elements pointed to by the array pointer are sequentially sent to the filling circuit to perform the filling (steps A17 and A18). This is repeated for all columns (step A19). In this case, if "+ s" or "-s" is found, then "+ e" or "-e"
Until a appears, a signal indicating the difference value of the same W number is generated each time the filling process is repeated, so that it is possible to reduce the access to the intermediate memory and perform the filling.

【0085】なお、上記実施形態では、塗り潰し処理回
路をハードウェアで実現して用いたが、塗り潰し処理そ
のものもソフトウェア的に実現することもできる。この
場合には、図11の処理をすべてソフトウェアで実現
し、図14の処理と合わせればよい。
In the above embodiment, the filling processing circuit is realized by hardware and used, but the filling processing itself can be realized by software. In this case, all the processing in FIG. 11 may be realized by software and combined with the processing in FIG.

【0086】また、HRMを図9のようにHCとRWに
分ける代わりに、+の数と−の数を別々に数えるカウン
タとして構成してもよい。このときの構成を図15に示
す。この場合、図11に“pc−mc”を計算するため
のアダーを追加し、その出力をrwの代わりに加算回路
へ入れる。hc≠0の信号の代わりとしては、(pc≠
0)V(mc≠0)をOR回路に入れる。
Further, instead of dividing the HRM into HC and RW as shown in FIG. 9, it may be configured as a counter for separately counting the number of + and the number of-. The structure at this time is shown in FIG. In this case, an adder for calculating "pc-mc" is added to FIG. 11, and the output is put in the adder circuit instead of rw. As an alternative to the signal of hc ≠ 0, (pc ≠
0) V (mc ≠ 0) is input to the OR circuit.

【0087】以上のように本発明の方式では、文字パタ
ーンの塗り潰し方向がY軸方向(上から下方向)であっ
たとすると、Y座標軸方向への塗り潰し処理の開始およ
び終了を示す制御情報(“+s”、“−s”、“+
e”、“−e”)を中間メモリに記憶させておき、この
制御情報と同等の機能を有する信号を当該塗り潰し処理
のX座標軸方向への繰返し毎に発生させて、その発生し
た信号に基づいて塗り潰し処理を行うことになる。これ
により、中間メモリに塗り潰し処理のための情報を書き
込み、読み出す回数を大幅に減らすことができ、処理を
高速化できる。また、中間メモリとしての記憶容量を少
なくすることができる。
As described above, in the method of the present invention, assuming that the filling direction of the character pattern is the Y-axis direction (from top to bottom), the control information ("" indicating the start and end of the filling process in the Y-coordinate axis direction is used. + S "," -s "," + "
e "," -e ") is stored in the intermediate memory, a signal having a function equivalent to this control information is generated every time the filling process is repeated in the X coordinate axis direction, and based on the generated signal. By doing so, the number of times of writing and reading information for the filling process to the intermediate memory can be significantly reduced, the processing can be speeded up, and the storage capacity as the intermediate memory can be reduced. can do.

【0088】さらに、本発明の方式を用いれば、例えば
単純水平線セグメント同士が互いに重なり合うような縮
小文字に対しても、その重なり部分も正しく塗り潰して
高品質の文字パターンを形成することができる。また、
水平線パターンを記憶する方式と違って、ストロークパ
ターンを単純水平線セグメントとそれ以外とに分割する
必要もない。
Further, by using the method of the present invention, even for a reduced character in which simple horizontal line segments overlap each other, for example, the overlapping portion can be correctly filled to form a high quality character pattern. Also,
Unlike the method of storing horizontal line patterns, it is not necessary to divide the stroke pattern into simple horizontal line segments and others.

【0089】なお、図5に示すようにマイクロプロセッ
サと主メモリを含み、バスにより両者を接続する文字パ
ターン形成装置において、主メモリの一部分を、上述し
た“+s”、“−s”、“+e”、“−e”を示すコー
ド情報の記憶領域として用い、そのコード情報の書き込
み/読み出しにバスを用いることにより、以下のような
効果が得られる。
As shown in FIG. 5, in a character pattern forming apparatus that includes a microprocessor and a main memory and connects them by a bus, a part of the main memory is used for the above-mentioned "+ s", "-s", "+ e". By using as a storage area for code information indicating ","-e "and using a bus for writing / reading the code information, the following effects can be obtained.

【0090】マイクロプロセッサ・システムでは、その
処理時間が主にバスのアクセス回数によって決まること
が多いため、バスのアクセス回数を大幅に減らすことが
できる。
In a microprocessor system, the processing time is often determined mainly by the number of bus accesses, so the number of bus accesses can be greatly reduced.

【0091】また、複数のドットを平行して印字する印
字ヘッドを持ったプリンタに用いる場合には、印字ヘッ
ドのドットが並ぶ方向へ塗り潰し処理の方向を一致させ
ることにより、以下のような効果が得られる。
Further, when used in a printer having a print head for printing a plurality of dots in parallel, the following effects can be obtained by making the filling processing directions coincide with each other in the dots of the print head. can get.

【0092】バッファリングが容易になる。その塗り潰
し方向が漢字の正立(倒立でもよい)と一致している場
合には、特に本発明の効果が大きい。その理由は、漢字
には水平線が多く、その上側輪郭と下側輪郭部の各ドッ
トを中間メモリに書き込み、読み出す処理がほとんどな
くなるからである(ストローク本体部分に関しては、ス
トロークの長さに関係なく4回)。
Buffering is facilitated. The effect of the present invention is particularly great when the filling direction matches the upright (or upside down) kanji. The reason is that there are many horizontal lines in Chinese characters, and there is almost no processing to write and read each dot of the upper contour and the lower contour in the intermediate memory (regardless of the stroke length, the stroke body part does not matter. 4 times).

【0093】また、文字パターンの第1の座標軸方向
(塗り潰し方向)のドット数と同じまたはそれ以上の容
量を持つメモリ(HRM)を有し、バスを介することな
く上記メモリを用いて、上記コード情報と同じ機能を有
する信号を第2の座標軸方向へ繰り返し発生させること
で以下のような効果が得られる。
Further, the above-mentioned code is provided by using a memory (HRM) having a capacity equal to or larger than the number of dots in the first coordinate axis direction (filling direction) of the character pattern, without using a bus. The following effects are obtained by repeatedly generating a signal having the same function as information in the second coordinate axis direction.

【0094】中間メモリは文字パターンに含まれる総ド
ット数の何割かのバイト数を持たざるを得ないので主メ
モリに置き、HRMは文字パターンの1列分の容量でよ
いので、ハードウェア化してバスを通さずに更新できる
ようにすると性能が高くなり、コストをあまり上げずに
済む。HRMも主メモリに置くと、コストは安くなるが
バスのアクセス回数が大幅に増える。中間メモリは実際
に使われた要素だけをアクセスするようにできるのに対
し、HRMは文字パターンの如何にかかわらず文字パタ
ーンの総ドット数の分だけ書き込みと読み出しを行う必
要がある。
Since the intermediate memory must have a certain number of bytes of the total number of dots included in the character pattern, it is placed in the main memory, and the HRM has a capacity for one column of the character pattern. If you can update without going through the bus, the performance will be higher and the cost will not be too high. If the HRM is also placed in the main memory, the cost will be reduced, but the number of bus accesses will be significantly increased. While the intermediate memory can access only the elements actually used, the HRM needs to write and read the total number of dots of the character pattern regardless of the character pattern.

【0095】また、HRMが2つのフィールド(HCと
RW、またはPCとMC)を持ち、それぞれ異なる更新
方法で中間メモリ(配列)の内容に従って更新されるこ
とで、以下のような効果が得られる。
The HRM has two fields (HC and RW, or PC and MC) and is updated according to the contents of the intermediate memory (array) by different updating methods, so that the following effects can be obtained. .

【0096】水平線が1ドット幅まで狭くなっても、文
字パターンとして消えることなく正しく印字できる。H
RMに複数のフィールドを持たないと、これが実現でき
ない。
Even if the horizontal line is narrowed to 1 dot width, it can be printed correctly without disappearing as a character pattern. H
This cannot be achieved unless the RM has multiple fields.

【0097】[0097]

【発明の効果】以上のように本発明によれば、文字パタ
ーンの第1座標軸方向への塗り潰し処理の開始および終
了を示す制御情報(“+s”、“−s”、“+e”、
“−e”)を中間メモリに記憶させておき、この制御情
報と同等の機能を有する信号を当該塗り潰し処理の第2
の座標軸方向への繰返し毎に発生させて、その発生した
信号に基づいて塗り潰し処理を行うようにしたため、中
間メモリに塗り潰し処理のための情報を書き込み、読み
出す回数を大幅に減らすことができ、処理を高速化でき
る。また、中間メモリとしての記憶容量を少なくするこ
とができる。
As described above, according to the present invention, the control information ("+ s", "-s", "+ e", indicating the start and end of the filling process of the character pattern in the first coordinate axis direction,
"-E") is stored in the intermediate memory, and a signal having a function equivalent to this control information is stored in the second portion of the filling processing.
Since it is generated every time the coordinate axis is repeated and the filling process is performed based on the generated signal, the number of times of writing and reading the information for the filling process to the intermediate memory can be significantly reduced, Can be speeded up. In addition, the storage capacity of the intermediate memory can be reduced.

【0098】さらに、本発明の方式を用いれば、例えば
単純水平線セグメント同士が互いに重なり合うような縮
小文字に対しても、その重なり部分も正しく塗り潰して
高品質の文字パターンを形成することができ、また、ス
トロークパターンを単純水平線セグメントとそれ以外と
に分割する必要もない。
Further, by using the method of the present invention, even for a reduced character in which simple horizontal line segments overlap each other, for example, the overlapping portion can be correctly filled to form a high quality character pattern. , It is not necessary to divide the stroke pattern into simple horizontal line segments and others.

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

【図1】本発明の塗り潰し方式を説明するための概念
図。
FIG. 1 is a conceptual diagram for explaining a filling method of the present invention.

【図2】図1に対応する従来の塗り潰し方式を説明する
ための概念図。
FIG. 2 is a conceptual diagram for explaining a conventional filling method corresponding to FIG.

【図3】図1に対応するHRMとその内容が塗り潰し処
理の進行につれて変化する様子を示す図。
FIG. 3 is a diagram showing how the HRM corresponding to FIG. 1 and its contents change as the filling process progresses.

【図4】本発明を適用した文字パターン形成装置の構成
を示すブロック図。
FIG. 4 is a block diagram showing the configuration of a character pattern forming device to which the present invention has been applied.

【図5】本発明の一実施形態としてのハードウェア構成
を示すブロック図。
FIG. 5 is a block diagram showing a hardware configuration as an embodiment of the present invention.

【図6】配列として実現した中間メモリの構成を示す
図。
FIG. 6 is a diagram showing a configuration of an intermediate memory realized as an array.

【図7】中間メモリの配列要素のデータ形式を示す図。FIG. 7 is a diagram showing a data format of array elements in an intermediate memory.

【図8】主メモリ中の配列として実現されたHRMの構
成を示す図。
FIG. 8 is a diagram showing the configuration of an HRM implemented as an array in the main memory.

【図9】HRMの更新状態を示す図。FIG. 9 is a diagram showing an updated state of HRM.

【図10】従来の塗り潰し回路の構成を示すブロック
図。
FIG. 10 is a block diagram showing a configuration of a conventional filling circuit.

【図11】本発明の塗り潰し回路の構成を示すブロック
図。
FIG. 11 is a block diagram showing the configuration of a filling circuit according to the present invention.

【図12】図11中のデコーダの内容を示す図。12 is a diagram showing the contents of a decoder in FIG.

【図13】芯線フォントの基本データ構造としての横棒
ストロークの表現を示す図。
FIG. 13 is a diagram showing an expression of a horizontal bar stroke as a basic data structure of a core font.

【図14】本発明の一実施形態における文字パターン形
成処理全体のフローチャート。
FIG. 14 is a flowchart of the entire character pattern forming process according to the embodiment of the present invention.

【図15】HRMの他の実施形態としての構成を示す
図。
FIG. 15 is a diagram showing a configuration of another embodiment of the HRM.

【図16】ファクシミリの符号化方式を説明するための
概念図。
FIG. 16 is a conceptual diagram for explaining a facsimile encoding method.

【図17】従来の塗り潰し方式を説明するための概念
図。
FIG. 17 is a conceptual diagram for explaining a conventional filling method.

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

41…フォントROM 42…輪郭スケーリング回路 43…輪郭描画回路 44…中間メモリ 45…塗り潰し回路 46…HRM(水平繰返しメモリ) 47…出力イメージメモリ 111…累算器 112…加算回路 113…累算器 114…ゼロ判定回路 115…OR回路 116…ゼロ判定回路 41 ... Font ROM 42 ... Contour scaling circuit 43 ... Contour drawing circuit 44 ... Intermediate memory 45 ... Filling circuit 46 ... HRM (horizontal repeating memory) 47 ... Output image memory 111 ... Accumulator 112 ... Addition circuit 113 ... Accumulator 114 ... Zero decision circuit 115 ... OR circuit 116 ... Zero decision circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字パターンを複数の部品に分けて記述
したフォントデータに基づいて、上記文字パターンの第
1の座標軸方向への塗り潰し処理を上記第1の座標軸方
向とは直角な方向である第2の座標軸方向へ繰返すこと
によって上記文字パターンを形成する文字パターン形成
装置であって、 上記第1の座標軸方向への塗り潰し処理の開始および終
了を示す制御情報を記憶する記憶手段と、 この記憶手段に記憶された上記制御情報と同等の機能を
有する信号を当該塗り潰し処理の上記第2の座標軸方向
への繰返し毎に発生する発生手段とを具備し、 この発生手段によって得られる上記信号に基づいて塗り
潰し処理を行うことを特徴とする文字パターン形成装
置。
1. A method of filling a character pattern in a direction of a first coordinate axis based on font data in which a character pattern is divided into a plurality of parts and described in a direction perpendicular to the direction of the first coordinate axis. A character pattern forming device for forming the character pattern by repeating in the direction of the coordinate axis No. 2, and storage means for storing control information indicating the start and end of the filling processing in the direction of the first coordinate axis, and the storage means. Generating means for generating a signal having a function equivalent to that of the control information stored in, every time the filling process is repeated in the second coordinate axis direction, and based on the signal obtained by the generating means. A character pattern forming device characterized by performing a filling process.
【請求項2】 文字パターンを複数の部品に分けて記述
したフォントデータに基づいて、上記文字パターンの第
1の座標軸方向への塗り潰し処理を上記第1の座標軸方
向とは直角な方向である第2の座標軸方向へ繰返すこと
によって上記文字パターンを形成する文字パターン形成
方法であって、 上記第1の座標軸方向への塗り潰し処理の開始および終
了を示す制御情報をメモリに記憶させておき、 このメモリに記憶された上記制御情報と同等の機能を有
する信号を当該塗り潰し処理の上記第2の座標軸方向へ
の繰返し毎に発生させることにより、 その発生した信号に基づいて塗り潰し処理を行うことを
特徴とする文字パターン形成方法。
2. The filling process in the first coordinate axis direction of the character pattern is performed in a direction perpendicular to the first coordinate axis direction based on font data in which the character pattern is divided into a plurality of parts and described. 2 is a character pattern forming method for forming the character pattern by repeating in the direction of the coordinate axis, wherein control information indicating the start and end of the filling processing in the direction of the first coordinate axis is stored in a memory, A signal having a function equivalent to the control information stored in is generated every time the filling process is repeated in the second coordinate axis direction, so that the filling process is performed based on the generated signal. Character pattern forming method.
JP8140329A 1996-06-03 1996-06-03 Device and method for generating character pattern Pending JPH09325749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8140329A JPH09325749A (en) 1996-06-03 1996-06-03 Device and method for generating character pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8140329A JPH09325749A (en) 1996-06-03 1996-06-03 Device and method for generating character pattern

Publications (1)

Publication Number Publication Date
JPH09325749A true JPH09325749A (en) 1997-12-16

Family

ID=15266296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8140329A Pending JPH09325749A (en) 1996-06-03 1996-06-03 Device and method for generating character pattern

Country Status (1)

Country Link
JP (1) JPH09325749A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009238192A (en) * 2008-03-28 2009-10-15 Konami Digital Entertainment Co Ltd Image processing apparatus, image processing method, and program
WO2010134124A1 (en) * 2009-05-19 2010-11-25 三菱電機株式会社 Vector graphic drawing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009238192A (en) * 2008-03-28 2009-10-15 Konami Digital Entertainment Co Ltd Image processing apparatus, image processing method, and program
JP4637199B2 (en) * 2008-03-28 2011-02-23 株式会社コナミデジタルエンタテインメント Image processing apparatus, image processing method, and program
WO2010134124A1 (en) * 2009-05-19 2010-11-25 三菱電機株式会社 Vector graphic drawing device
JP5159949B2 (en) * 2009-05-19 2013-03-13 三菱電機株式会社 Vector drawing equipment

Similar Documents

Publication Publication Date Title
EP0534622B1 (en) Intelligent font rendering co-processor
US5241653A (en) Apparatus and method for adjusting and displaying scaled, rasterized characters
US5016001A (en) Pattern data generating system
US5719595A (en) Method and apparauts for generating a text image on a display with anti-aliasing effect
KR910008427B1 (en) A method of magnifying a bit map font data in a horizontal direction
US4887228A (en) Method for filling surface parts of an image with a surface pattern
EP0344686B1 (en) Clipping process and processor
JPH0613224B2 (en) Font inclusion method
JPH09325749A (en) Device and method for generating character pattern
JP2770582B2 (en) Figure filling device
JP3085175B2 (en) Drawing equipment
KR100361387B1 (en) Polygon drawing method and polygon drawing apparatus
JPH09325748A (en) Device and method for generating character pattern
JP2000013601A (en) Print information processor and device and method for generating intermediate data
JP3084817B2 (en) Character output device
JPH0456317B2 (en)
JP2002208017A (en) Plotting processor
JP3536894B2 (en) Graphic processing unit
JPH06251164A (en) Character pattern generating device
JP2000092315A (en) Image processing unit
JPH05143743A (en) Vector image drawing device
JP3039214B2 (en) Data converter
JP3087511B2 (en) Data converter
JPH0784739A (en) Data converter
JPH024549A (en) Character processing system