JPH04175800A - Vector font drawing device - Google Patents

Vector font drawing device

Info

Publication number
JPH04175800A
JPH04175800A JP2304424A JP30442490A JPH04175800A JP H04175800 A JPH04175800 A JP H04175800A JP 2304424 A JP2304424 A JP 2304424A JP 30442490 A JP30442490 A JP 30442490A JP H04175800 A JPH04175800 A JP H04175800A
Authority
JP
Japan
Prior art keywords
coordinate
position detection
coordinate value
value
rectangular area
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
JP2304424A
Other languages
Japanese (ja)
Inventor
Tatsuo Itomitsu
辰夫 糸満
Tomoharu Kawada
友春 河田
Shoichi Takeshita
竹下 昭一
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2304424A priority Critical patent/JPH04175800A/en
Publication of JPH04175800A publication Critical patent/JPH04175800A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To simplify and accelerate the control of the side giving coordinate values by allowing the side giving the coordinate values to draw the contour of a character to paint out a rectangular region. CONSTITUTION:The side giving coordinate values to draw the contour of a character merely performs a process giving coordinate values to draw the contour of the character, scanning is performed in the horizontal direction from the left side on a memory. All dots after a black dot appears on the scanning line until the next black dot appears are converted into black, and a rectangular region converted by a coordinate converting circuit 15 is smeared away from the minimum value of the X-coordinates by using the judgment result of a position detecting circuit 14. It is not necessary to judge and process the deletion and addition of black dots to smear away the rectangular region. The control of the side giving the coordinate values can be simplified and accelerated.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、転数のベクトルによって定義された文字(ベ
クトルフォ、・ト)を分割して描画する場合において、
分割された文字の輪郭を描画し、その内部を塗り潰す文
字パターン発生装置に係り、特に輪郭内部の塗り潰しに
好適なベクトルフォント描WJ装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention provides a method for dividing and drawing characters defined by a vector of rotation numbers.
The present invention relates to a character pattern generation device that draws the outline of a divided character and fills in the inside thereof, and particularly relates to a vector font drawing WJ device suitable for filling in the inside of the outline.

従来の技術 複数のベクトルによって定義された文字(ベクトルフォ
ント)の輪郭を揺画し、その内部を塗り潰すことにより
高品質文字パターンを発生する文字パターン発生装置が
知られている。この種の装置では、文字の全輪郭を描画
した後、その描画パターンを一方向に走査し、黒ドツト
が現れてから次の黒ドツトが現れるまでのドツトを全て
黒に変換することにより輪郭内部を塗り潰す方法が適用
されている。                   
  1以下に従来のベクトルフォント描画装置につい□ て説明する。第4図は従来のベクトルフォント描   
ト画装置を含むシステムの一例を示すブロック図であ6
.や、ゎ6oおいア、1゜8□jオ、ア1、 :□現在
描画の対象となる与えられたX、Y座標の現行座標値が
2点の座標値によって設定された矩形領域内にあるかを
判断し、矩形領域内にある場合は、メモリ書き込み部4
に対して書き込み許可を与える。2は座標比較回路で、
文字(文字パターン)の尖gi端のように塗り潰し方向
の黒ドツトが   □l@しか存在しない場合(以下、
1ドツト尖鋭端と称す)、塗り潰しを行うと、そのドツ
ト位置以降の全てのドツトを塗り潰してしまう不都合が
生   □′:″″’) ′t f: 、 t!! ’
) 4 L f) h a (Q j!J F ′y 
h t l!’! !    ’□の黒ドツトとを結ぶ
よう並んだ黒ドツト(以下、   □中間点と称す)が
存在すると、同じ走査線上に始   :点、中間点、。
2. Description of the Related Art A character pattern generating device is known that generates a high quality character pattern by drawing the outline of a character (vector font) defined by a plurality of vectors and filling the inside thereof. In this type of device, after drawing the entire outline of a character, the drawing pattern is scanned in one direction, and all dots from the appearance of a black dot to the appearance of the next black dot are converted to black, thereby drawing the inside of the outline. The method of filling in the area is applied.
A conventional vector font drawing device will be explained below. Figure 4 shows a conventional vector font.
6 is a block diagram showing an example of a system including a picture device;
.. Y, ゎ6ooia, 1゜8□jo,a1, :□The current coordinate values of the given X and Y coordinates that are currently being drawn are within the rectangular area set by the coordinate values of two points. If it is within the rectangular area, the memory writing unit 4
Grant write permission to. 2 is a coordinate comparison circuit,
If there are only black dots in the filling direction, such as at the sharp end of a character (character pattern), □l@ (hereinafter,
1 dot (referred to as the sharp edge), if you fill it out, you will have the inconvenience of filling out all dots after that dot position. ! '
) 4 L f) h a (Q j!J F ′y
htl! '! ! If there are black dots lined up to connect the black dots of '□ (hereinafter referred to as □ intermediate points), then the starting point, intermediate point, and so on on the same scanning line exist.

ゎやヵ数ヶカイ。81塗、潰   1さ〕・テてとい部
分をすりセしてしまう不都合が生′:、7こリボるのて
゛、上記に示−たような1ドツト尖Sに端や中面点の黒
ドツト以外を、前記現行座標値より一つ前に与えられた
先行座標値と前記現行座標値から判!i1シてメモリ書
き込み回路4に対して書き込み許可を与える。3は座標
アドレス変換回路で、4えられた座標値をメモリ6上の
アドレスと前記アドレス上のビット位置に変換する。メ
モ゛、j@き込み回路4は書き込み制御回路1と座標比
較回路2の両方から書き込み許可を受けると前記アドレ
スと前記アドレス上の前記ビット位置を示すデータを用
いてメモリ6上に實さ込みを行う。
Wow, a few months. 81 painting, crushing 1]・There is an inconvenience that the tapered part is rubbed off. Other than that, determine from the preceding coordinate value given one time before the current coordinate value and the current coordinate value! i1 gives write permission to the memory write circuit 4. 3 is a coordinate address conversion circuit which converts the obtained coordinate value 4 into an address on the memory 6 and a bit position on the address. When the write circuit 4 receives write permission from both the write control circuit 1 and the coordinate comparison circuit 2, it actually writes the data into the memory 6 using the address and the data indicating the bit position on the address. I do.

5は塗り潰し処理回路で、メモリ6を一方向に走査し、
黒ド・/トが現れてから次の男ドツトが現れるまでのド
ツトを全て黒に変換する。7はレジスタで、与えられた
先行座標値と現行座標値、および矩形領域を示す2点の
座標値、分割された文字を塗り潰すためのデータを保持
する。上記1〜4によつ従来のベクトルフォント描画装
置8が構成されている。
5 is a filling processing circuit which scans the memory 6 in one direction,
All dots from the time the black dot appears until the next male dot appears are converted to black. 7 is a register that holds the given preceding coordinate values and current coordinate values, the coordinate values of two points indicating a rectangular area, and data for filling in divided characters. A conventional vector font drawing device 8 is configured according to 1 to 4 above.

このように構成されたベクトルフォント描面システムに
おいて、文字を分割して輪郭を描画し、その内部を塗り
潰す処理を説明する。
In the vector font drawing system configured as described above, a process of dividing a character, drawing an outline, and filling the inside thereof will be explained.

第5図は文字Aを9分割した間を示し、それぞれの矩形
領域に■から■の番号を付ける。9は一番左上の座標値
で原点(0,0>を示す、1oは矩形領域■を指定する
左上の座標@ (XA、YA)、11は矩形領域■を指
定する右下の座標値(XB。
FIG. 5 shows the space in which the letter A is divided into nine parts, and each rectangular area is numbered from ■ to ■. 9 is the upper left coordinate value and indicates the origin (0, 0>; 1o is the upper left coordinate value @ (XA, YA) that specifies the rectangular area ■; 11 is the lower right coordinate value that specifies the rectangular area ■ ( XB.

’r’B)、12はn記文字Aの輪郭を描画するために
与えられるそれぞれの黒ドツトの座標値(XN。
'r'B), 12 is the coordinate value (XN.

YN)である。YN).

第6図は第4図の従来のベクトルフォント描画装置8を
使用して第5図の矩形領域■の輪郭を第4図のメモリ6
に描画した図を示し、13は矩形領域■の範囲である。
FIG. 6 shows the outline of the rectangular area ■ in FIG. 5 using the conventional vector font drawing device 8 in FIG.
13 is the range of the rectangular area ■.

第7図はメモリ6上で水平方向に塗り潰し処理を行った
場合、第5図の矩形領域■を正しく塗り潰した図である
。第6図において、水平方向に走査し、黒ドツトが現れ
てから次の黒ドツトが現れるまでのド・・rトf全て黒
に変換す・る箆り潰し処理ど行うと、第7図に示す、よ
うな塗り潰し結果を得ることができない。
FIG. 7 is a diagram in which the rectangular area (2) in FIG. 5 is correctly filled in when the filling process is performed in the horizontal direction on the memory 6. In Fig. 6, if we scan in the horizontal direction and perform a narrowing process such as converting all dots f from the appearance of a black dot to the appearance of the next black dot to black, we will see Fig. 7. I can't get the fill result shown.

第4図の従来のベクトルフォント描画装置を含むシステ
ムにおいて、第7区のような塗り潰し結果を得るために
は、第6図のどの部分を塗り潰すかという情報をもらう
必要がある。第8図にその例を示す。
In a system including the conventional vector font drawing device shown in FIG. 4, in order to obtain a filling result like the 7th section, it is necessary to receive information about which part of FIG. 6 is to be filled out. An example is shown in FIG.

第8図は、水平方向に塗り潰し処理を行った場合に、第
7図のような塗り潰し結果を得るための輪郭を、第6図
において黒ド・γトの削除および追加により作成した図
である。
Figure 8 is a diagram created by deleting and adding black dots and gamma dots in Figure 6 to create a contour to obtain the filling result shown in Figure 7 when filling in the horizontal direction. .

以上に示したように、第4図の従来のベクトルフォント
描面システムにおいて、文字を分割して、その文字の一
部分を作成する場合は、どの部分を塗り潰すかという情
報をしらって、塗り潰し処理を行っていた。
As shown above, in the conventional vector font drawing system shown in FIG. It was being processed.

発明が解決しようとする課題 しかしながら上記の従来の構成では、文字を分割しその
文字の一部分を作成する場合、矩形領域によって分割さ
れた文字の輪郭を行った後に、輪郭の黒ドツト以外に、
どの部分を塗り潰すかという情報をもらい前記黒ドツト
の削除および塗り潰し処理のための黒ドツトの追加を行
っている。このような処理方法では、文字の輪郭を描画
するための座標値を与える側が、単に輪郭を描画するた
めの座標値を与えるだけでなく、その後文字全体の輪郭
と矩形領域と矩形領域によって分割された文字の輪郭か
ら上記に示した黒ドツトの削除および追加を判断し処理
を行うため制御が複雑になり、また高速化を行うことが
困難であるという問題を有していた。
Problems to be Solved by the Invention However, in the above conventional configuration, when dividing a character and creating a part of the character, after contouring the divided character by rectangular areas, in addition to the black dots in the outline,
After receiving information about which part is to be filled in, the black dots are deleted and black dots are added for the filling process. In such a processing method, the side that provides the coordinate values for drawing the outline of the character not only gives the coordinate values for drawing the outline, but also divides the entire character into outlines, rectangular areas, and rectangular areas. Since the above-mentioned deletion or addition of the black dots is determined based on the outline of the character, the control becomes complicated and it is difficult to increase the speed.

本発明は上記の従来の問題を解決するもので、文字の輪
郭を描画するための座標値を与える側が、矩形lII域
の塗り潰しを行うために黒ドツトの削除および迫力0を
判断し処理することを不要とするベクトルフォント描画
装!を従供することを目的とするしのである。
The present invention solves the above-mentioned conventional problem, and the side that provides the coordinate values for drawing the outline of a character must delete black dots and judge whether the power is 0 or not and process them in order to fill in the rectangular area. A vector font drawing system that eliminates the need for fonts! It is a Shino whose purpose is to serve.

課題を解決するための手段 上記課題を解決するために、本発明のベクトルフォント
描画装置は、現在描画の対象となる与えられたX、)′
座標の現行座標値と前記現行座標値よつ一つ前に与えら
れた先行厚vP@との位實関仲を比較し前記現行座標値
が描画する必要があるかをf’l断する扉標比$2回路
と、前記現行座標値と2点の座標値で指定された矩形領
域において前記現行座標値が前記矩形領域内にある場合
(位置検出結果(1)と称す)と′前記現行座a値のY
座標値が前記矩形fI域が持つY%j標値の範囲内にあ
りvI記現行座標値のX座標値が前記矩形領域の持つX
座標の最小値より小さい場合(位置検出結果(2)と称
す)と前記現行座tIA値のY座標値が前記矩形領域の
持つY座標の最小値より小さいまたは前記Y座標の最大
値より大きいまたは前記現行座標値のX座標値が前記矩
形領域の持つX座標の最大値より大きい場合(位置検出
結果(3)と称す)の3通りの位置関係を判断する位置
検出回路■と、前記位置検出回路■の判断結果を使用し
て豹記位!検出結果(1)と前言己位置検出結果(3)
の場合前記現行座標値をそのまま出力し前記位置検出結
果(2)の場合前記現行座標値のX座標値を前記矩形領
域の持つX座標の最小値に変換した後出力する座標変換
回路Iと、前配経標変換回路工より出力された座標値を
メモリ上のアドレスと前記アドレス上のビット位置に変
換する襄標アドレス変換回島と、前記位置検出口MIの
判断結果が前記位置検出結果(1)または前記位置検出
結果(2)であり前記座標比較回路の判断結果が前記現
行座標値が描画する必要があると判断した場合前記アド
レスと前記アドレス上の前記ビット位置を使用して前記
メモリの読み出し書き込みを行うメモリ制御回路とと傾
えたものである。
Means for Solving the Problems In order to solve the above problems, the vector font drawing device of the present invention uses a given X,
A door that compares the actual relationship between the current coordinate value of the coordinate and the previous thickness vP@ given before the current coordinate value and determines whether the current coordinate value needs to be drawn. If the current coordinate value is within the rectangular area specified by the target ratio $2 circuit and the current coordinate value and the coordinate values of two points (referred to as position detection result (1)), Y of locus a value
The coordinate value is within the Y%j standard value of the rectangular area fI, and the X coordinate value of the current coordinate value of vI is within the
If it is smaller than the minimum value of the coordinates (referred to as position detection result (2)), the Y coordinate value of the current location tIA value is smaller than the minimum value of the Y coordinates of the rectangular area, or larger than the maximum value of the Y coordinates, or a position detection circuit (3) that determines three types of positional relationships when the X coordinate value of the current coordinate value is larger than the maximum value of the X coordinates of the rectangular area (referred to as position detection result (3)); Leopard ranking using the judgment result of the circuit ■! Detection result (1) and previous position detection result (3)
a coordinate conversion circuit I that outputs the current coordinate value as it is in the case of the position detection result (2), and outputs the result after converting the X coordinate value of the current coordinate value to the minimum value of the X coordinates of the rectangular area; An address conversion circuit converts the coordinate values output from the previous coordinate conversion circuit into an address on the memory and a bit position on the address, and the determination result of the position detection port MI is converted into the position detection result ( 1) or the position detection result (2), and if the determination result of the coordinate comparison circuit determines that the current coordinate value needs to be drawn, the address and the bit position on the address are used to draw the memory. This is a memory control circuit that performs read and write operations.

さらに、本発明のベクトルフォント措置装置は、現在描
画の対象となる与えられたx、yFi標の現行座標値と
前記現行座標値より一つ前に与えられた先行座標値との
位置関係を比較し前記現行座標値が描画する必要がある
かを判断する座標比較回路と、前記現行座標値と2点の
座標値で指定された矩形領域において前記現行座標値が
前記矩形領域内にある場合(位置検出結果(1)と称す
)と前記現行座標値のY座標値が前記矩形領域が持つY
座標値の範囲内にあり前記現行座標値のX座標値が前記
矩形領域の持つX座標の最小値より小さい場合(位置検
出結果(2)と称す)と前記現行座標値のY座標値が前
記矩形領域が持つY座標値の範囲内にあり前記現行座標
値のX座標値が前記矩形領域の持つX座標の最大値より
大きい場合(位置検出結果(4)と称す)と前記現行座
標値のY座標値が前記矩形領域の持つY座標の最小値よ
り小さいまたは前記Y座標の最大値より大きい場合(位
置検出結果(5)と称す)の4通りの位置関係を判断す
る位置検出回路IIと、前記位置検出oF&nの判断結
果を使用して前記位置検出結果(1)と前記位置検出結
果(5)の場合前記現行座標値をそのまま出力し前記位
置検出結果(2)の場合前記現行座標値のX座標値を前
記矩形領域の持つX座標の最小値に変換した後出力し前
記位置検出結果(4)の場合前記現行座標値のX座標値
を前記矩形傾城の持つX座標の最大値に変換した後出力
する座標変換回路IIと、前記g!標変換回路■より出
力された座標値をメモリ上のアドレスと前記アドレス上
のビット位置に変換する座標アドレス変換回路と、前記
位置検出回路■の判断結果が前記位置検出結果(1)ま
たは前記位置検出結果(2)または前記位置検出結果(
4)であり前記座標比較回路の判断結果が前記現行座標
値が描画する必要があると判断した場合前記アドレスと
前記アドレス上の前記ビット位置を使用して前記メモリ
の読み出し書き込みを行うメモリ制御回路とを備えたも
のである。
Further, the vector font processing device of the present invention compares the positional relationship between the current coordinate value of the given x, yFi mark that is currently being drawn and the preceding coordinate value given one time before the current coordinate value. a coordinate comparison circuit that determines whether the current coordinate value needs to be drawn; and a coordinate comparison circuit that determines whether the current coordinate value needs to be drawn; (referred to as position detection result (1)) and the Y coordinate value of the current coordinate value is the Y value that the rectangular area has.
If the X coordinate value of the current coordinate value is within the range of the coordinate value and is smaller than the minimum value of the X coordinate of the rectangular area (referred to as position detection result (2)), the Y coordinate value of the current coordinate value is If the X coordinate value of the current coordinate value is within the range of the Y coordinate value of the rectangular area and is larger than the maximum value of the X coordinate value of the rectangular area (referred to as position detection result (4)), a position detection circuit II that determines four types of positional relationships when the Y coordinate value is smaller than the minimum value of the Y coordinate of the rectangular area or larger than the maximum value of the Y coordinate (referred to as position detection result (5)); , using the determination result of the position detection oF&n, in the case of the position detection result (1) and the position detection result (5), the current coordinate value is output as is, and in the case of the position detection result (2), the current coordinate value is output. The X coordinate value of the rectangular area is converted to the minimum value of the X coordinate and then output, and in the case of the position detection result (4), the X coordinate value of the current coordinate value is converted to the maximum value of the X coordinate of the rectangular leaning castle. Coordinate conversion circuit II that outputs after conversion, and the g! A coordinate address conversion circuit that converts the coordinate value output from the standard conversion circuit (■) into an address on the memory and a bit position on the address, and the determination result of the position detection circuit (■) is the position detection result (1) or the position Detection result (2) or the position detection result (
4) If the determination result of the coordinate comparison circuit is that the current coordinate value needs to be drawn, a memory control circuit that reads and writes to the memory using the address and the bit position on the address. It is equipped with the following.

作用 上記構成により、文字の輪郭を描画するための座標値を
与える開が、単に文字の輪郭を描画するための座標値を
与える処理を行うだけで、メモリ上の左側から水平方向
に走査し、同じ走査線上に黒ドツトが現われてから次の
黒ドツトが現れるまでのドツトを全て黒に変換する処理
を行いながら、位置検出回路の判断結果を使用して座標
変換回路により変換された矩形領域の持つX座標の最小
値から塗り潰し処理を行う、したがって、矩形領域の塗
り潰しを行うための黒ドツトの削除および追加を判断し
処理する必要はなくなり、座標値を与える側の制御が簡
略化され高速化を図ることが可能となる。
Operation With the above configuration, the opening that provides the coordinate values for drawing the outline of the character simply performs the process of providing the coordinate value for drawing the outline of the character, and scans the memory horizontally from the left side, While converting all dots from the appearance of a black dot to the appearance of the next black dot on the same scanning line to black, the rectangular area transformed by the coordinate transformation circuit is converted using the determination result of the position detection circuit. The filling process is performed from the minimum value of the X coordinate that the rectangular area has.Therefore, there is no need to judge and process the deletion and addition of black dots to fill the rectangular area, simplifying and speeding up the control on the side that provides the coordinate values. It becomes possible to aim for.

実施例 以下本発明の一実施例について、図面を参照しながら説
明する。
EXAMPLE An example of the present invention will be described below with reference to the drawings.

@1図は本発明の第1の実施例におけるベクトルフォン
ト描画装置を含むシステムの構成図を示す、第1図にお
いて14は位置検出回路工で、現在描画の対象となる与
えられたX、Ylfiの現行座標値と2点の座標値で指
定された矩形領域において、前記現行座標値が前記矩形
領域内にある場合(位置検出結果(1)と称す)と、前
記現行座標値のX座標値がv1配矩形領域が持つX座標
値の範囲内にあり前記現行座標値のX座標値が前記矩形
領域の持つX座標の最小値より小さい場合(位置検出結
果(2)と称す)と前記現行座標値のX座標値が前記矩
形IlI域の持つY座部の最小値より小さいまたは前記
Y座はのれ大値より大きいまたは前記現行座標値のX座
標値が前記矩形領域の持つX座標の最大値より大きい場
合(位置検出結果(3)と称す)の3通りの位置関係を
判断する。15は座標変換回路■で、位ylL検出回路
Jl、Iの判断結果を使用して前記位置検出結果(1)
と前記位置検出回路(3)の場合前記現行座標値をその
まま出力し前記位置検出結果(2)の場合前記現行座標
値のX座標値を前記矩形lI域の持つX座標の最小値に
変換した後出力する。2は座標比較回路で、文字(文字
パターン)の尖鋭端のように塗り潰し方向の黒ドツトが
1aしか存在しない場合(以下、1ドツト尖鋭端と称す
)、塗り潰しを行うと、そのドツト位置以降の全てのド
ツトを塗り潰してしまう不都合が生じたり、また、塗り
潰しの始点の黒ドツトと終点の黒ドツトとを結ぶよう並
んだ黒ドツト(以下、中間点と称す)が存在すると、同
じ走査線上に始点と終点と中間点とを合わせた数が奇数
のとき、塗り潰さなくてよい部分を塗り潰してしまう不
都合が生じたりするので、上記に示したような1ドツト
尖鋭端や中間点の黒ドツト以外を、前記現行座標値より
一つ前に与えられた先行座標値と前記現行座標値から判
断してメモリ制御回路16に対して書き込み許可を与え
る。3は座−アドレス変換回路で、座標変換回路115
より出力された座標値をメモリ6上のアドレスと前記ア
ドレス上のピット位置に変換する。メモリ制御回路16
は位置検出結果工14の判断結果が前記位置検出結果(
1)または前記位置検出結果(2)であり座標比較回路
2の判断結果が書き込み許可を与えた場合、前記アドレ
スと前記アドレス上の前記ピット位置を使用してメモリ
6の読み出し書き込みを行う。
@ Figure 1 shows a configuration diagram of a system including a vector font drawing device according to the first embodiment of the present invention. In a rectangular area specified by the current coordinate value of and the coordinate value of two points, if the current coordinate value is within the rectangular area (referred to as position detection result (1)), and the X coordinate value of the current coordinate value is within the range of the X coordinate values of the v1 rectangular area and the X coordinate value of the current coordinate value is smaller than the minimum value of the X coordinates of the rectangular area (referred to as position detection result (2)); The X-coordinate value of the coordinate value is smaller than the minimum value of the Y-coordinate of the rectangular area, or the Y-coordinate is greater than the maximum value, or the X-coordinate value of the current coordinate value is of the X-coordinate of the rectangular area. When the value is larger than the maximum value (referred to as position detection result (3)), three types of positional relationships are determined. Reference numeral 15 denotes a coordinate conversion circuit ■, which converts the position detection result (1) using the judgment results of the position ylL detection circuits Jl and I.
In the case of the position detection circuit (3), the current coordinate value is output as is, and in the case of the position detection result (2), the X coordinate value of the current coordinate value is converted to the minimum value of the X coordinate of the rectangular II area. Output later. 2 is a coordinate comparison circuit. When there is only a black dot 1a in the filling direction, such as a sharp edge of a character (character pattern) (hereinafter referred to as a 1-dot sharp edge), when filling is performed, the dot position after that dot position is If the inconvenience of filling in all dots occurs, or if there are black dots (hereinafter referred to as intermediate points) lined up to connect the black dot at the starting point of filling and the black dot at the ending point, the starting point will be on the same scanning line. When the total number of end points and intermediate points is an odd number, there may be an inconvenience that parts that do not need to be filled in are filled in. Write permission is given to the memory control circuit 16 based on the previous coordinate value given one time before the current coordinate value and the current coordinate value. 3 is a coordinate conversion circuit 115;
The output coordinate values are converted into an address on the memory 6 and a pit position on the address. Memory control circuit 16
If the judgment result of the position detection result unit 14 is the position detection result (
1) or the position detection result (2), and if the determination result of the coordinate comparison circuit 2 grants permission for writing, reading and writing of the memory 6 is performed using the address and the pit position on the address.

19は塗り潰し処理01?frIで、メモリ6を左側か
ら水平方向に走査し、同じ走査線上に黒ドツトが現れて
から次の黒ドツトが現れるまでのドツトを全て黒に変換
する。17は塗り潰し制御回路で、前記矩形領域内だけ
塗り潰しを行うようにfJ御する。
19 is filled processing 01? At frI, the memory 6 is scanned horizontally from the left side, and all dots from the appearance of a black dot to the appearance of the next black dot on the same scanning line are converted to black. Reference numeral 17 denotes a filling control circuit which controls fJ so that only the rectangular area is filled.

18はレジスタで、1?JM己先行座標値と前記現行座
標値、および前記矩形領域を示す2点の座標値を保持す
る。20は上記2.3.14〜16によつ構成された本
発明の一実施例におけるベクトルフォント描画装!であ
る。
18 is a register, 1? JM holds the previous coordinate value, the current coordinate value, and the coordinate values of two points indicating the rectangular area. 20 is a vector font drawing device according to an embodiment of the present invention constructed from 2.3.14 to 16 above! It is.

このように構成された第1の実施例におけるベクトルフ
ォント描画装置を含むシステムについて以下その動作を
説明する。
The operation of the system including the vector font drawing device according to the first embodiment configured as described above will be described below.

第1図において、文字の輪郭を描画するための座標値を
与える側が、第5図の文字Aの全体について輪郭を示す
座標値(XN、YN)を順にレジスタ18に与えると、
位置検出回路■14は座標値(XN、YN)と矩形領域
■を指定する座標値(XA、YA) 、座標値(XB、
YB)と比較し、その結果によって以下に示す3通りの
処理が行われる。
In FIG. 1, when the person providing the coordinate values for drawing the outline of a character sequentially gives the coordinate values (XN, YN) indicating the outline of the entire character A in FIG. 5 to the register 18,
The position detection circuit 14 receives coordinate values (XN, YN), coordinate values (XA, YA), coordinate values (XB,
YB), and depending on the result, the following three types of processing are performed.

1)座標値(XN、YN)が矩形領域■の内部(XA≦
XN;XBかつYA≦YN≦YB)にある場合(lrl
 Ha位!検出結果(1)と対応する)、座標変換回路
115は座標値(XN。
1) The coordinate values (XN, YN) are inside the rectangular area (XA≦
If XN; XB and YA≦YN≦YB) (lrl
Ha rank! corresponding to the detection result (1)), the coordinate conversion circuit 115 converts the coordinate value (XN.

YN)をそのまま出力し、座標アドレス変換回路3で座
標値(XN、YN)をメモリ6上のアドレスと前記アド
レス上のビット位置に変換する。このとき、座標比較回
路2によって座標値(XN、YN)が1ドツト尖鋭端や
中間点の黒ドツト以外であることが判断されると、メモ
リ制御回路16は前記アドレスを用い前記メモリ6上の
データをご2士し、前記データ上で前記アドレスの11
記ビット位置と同じ位!のビットの値を反転させ、メモ
リ6上の同じ位置に書き込む。
The coordinate address conversion circuit 3 converts the coordinate values (XN, YN) into an address on the memory 6 and a bit position on the address. At this time, if the coordinate comparison circuit 2 determines that the coordinate values (XN, YN) are other than the sharp edge of one dot or the black dot at the midpoint, the memory control circuit 16 uses the address to 2 and 11 of the address on the data.
Same bit position as mentioned above! The value of the bit is inverted and written to the same location on the memory 6.

2)座標i!! < X 、’; 、 YN )と矩形
領域■を指定する座標@ (XA、YA)、座標@ (
XB。
2) Coordinate i! ! < X , '; , YN ) and coordinates @ (XA, YA), coordinates @ (
XB.

)′B)の関佇がXN<XAかつYA≦YN≦YBであ
る場合(前記位置検出結果(2)と対応する)、座標変
換回路115は座gl<XN。
)′B) When the relationship XN<XA and YA≦YN≦YB (corresponds to the position detection result (2)), the coordinate conversion circuit 115 calculates the position gl<XN.

YN)S−(XA、YN)に変換して出力する。YN)S-(XA, YN) and output.

その後の動作は1)に示した動作と同じである。The subsequent operations are the same as those shown in 1).

3)座標値(XN、YN)と矩形領域■・を指定する座
標値<XA、YA)、座標値(XB。
3) Specify coordinate values (XN, YN) and rectangular area ■・Coordinate values <XA, YA), coordinate values (XB).

YB)の関係が1)、 2)に示した以外の場合(前記
位置検出結果(3)と対応する)、メモリ6に対して書
き込み動作を行わない。
If the relationship of YB) is other than those shown in 1) and 2) (corresponding to the position detection result (3)), no write operation is performed to the memory 6.

ただし、輪郭の描画を行う前は、メモリ6上に黒ドツト
は一つも存在しないものとする。
However, it is assumed that there is no black dot in the memory 6 before the outline is drawn.

第9図は第1図のベクトルフォン)・描画装置2゜を使
用して、第5図の矩形領域■の輪郭を第1図、−)メ 
モ ’、、’  6  :二拒吹 、−こνて7>  
’)、  13v二矩升3領域↓の範囲てlる。
Figure 9 shows the outline of the rectangular area ■ in Figure 5 using the vector phone) and drawing device 2° in Figure 1.
Mo',,' 6: Two refusals, - this 7>
'), the range of 13v 2 squares 3 areas ↓ is l.

第9図の雷り涜−閂を行う場合、第1図の、1.16゜
6□1゜□5、ア5,8ヤ1,6よ。、。   :ヵ1
.。、41.6□□よりoよ7,1が現れてから次の黒
ドIトが現れ;、マて゛のドツトt t = l c:
□t8□第51..716、ヨ、11制御回路17によ
って矩形領域S・の範囲13の右外側   □まで走査
すると、それ以降塗り潰し処理を行わな□ いように制術することにより、節7図に示したような矩
形領域S゛を正しくすり・貴した結果を18るこ   
1とができる。                  
  ′また、矩形領域の幅が1ドツト(矩形領域3指 
  :□ 定する2点の座標値のX座は値が等しい)の場合   
1は、第1図のベクトルフォント描画装置20て′求の
   □□ た輪郭が、塗り潰しを行った結果となっているな   
□。21.□よ□わい、よ、。252.イーr uiユ
 1する必要がある。
If you want to perform the lightning attack-barrel in Figure 9, use Figure 1's 1.16゜6□1゜□5, A5, 8, and 1,6. ,. :Ka1
.. . , 41.6 From □□, after o 7, 1 appears, the next black dot I appears;, the dot of M t t = l c:
□t8□ No. 51. .. 716, Yo, 11 By controlling the control circuit 17 so that when it scans to the right outer □ of the range 13 of the rectangular area S, the filling process is not performed □ after that, a rectangle as shown in Section 7 is created. Here are the results of correctly rubbing and respecting the area S゛.
1 can be done.
'Also, the width of the rectangular area is 1 dot (the width of the rectangular area is 3 fingers).
:□ If the coordinates of the two points to be determined have the same X coordinate values)
1 shows that the contour obtained by the vector font drawing device 20 in Fig. 1 is the result of filling.
□. 21. □Yo□Yo, yo. 252. You need to do it.

上記第1の実繕例によれば、文字の輪郭を描画するため
の座標価を与える側が、矩形領域の璧り   □潰しを
行うための黒ドツトの削除および追加を判断し処理する
ことなく、革に文字の輪郭を描画するための座標値を与
える処理を行うだけでよく、前記座標値を与える側の制
御が簡略化され高速化を図ることが可能となる。
According to the first example above, the side that provides the coordinate values for drawing the outline of the character does not have to judge and process the deletion and addition of black dots for flattening the rectangular area. It is only necessary to perform a process of providing coordinate values for drawing the outline of a character on the leather, and the control on the side that provides the coordinate values is simplified and speeding up can be achieved.

第2図は本発明の第2の実施例におけるベクトルフォン
ト描画装置を含むシステムの梢咬図を示す、第2図にお
いて、23は位置検出回路■で、現在描画の対象となる
与えられたX、Yiljの現行座標値と2点の座標値で
指定された矩形領域において、前記現行座標値が前記矩
形領域内にある場合(位置検出結果(1)と称す)と、
前記現行座標値のX座標値が前記矩形領域が持つX座標
値の範囲内にあり前記現行座標値のX座標値が前記矩形
領域の持つX座標の最小値より小さい場合(位置検出結
果(2)と称す)と、前記現行座標値のX座標値が前記
矩形領域が持つX座標値の範囲内にあり前記現行座標値
のX座標値が前記矩形領域の持つX座標の最大値より大
きい場合(位置検出結果(4)と称す)と前記現行座標
値のX座標値が前記矩形領域の持つ)′座標のれ小値よ
り小さいまたは   :□ 前記Y座標の最大値より大きい場合(位置検出結   
□果(5)と林す)の4通りの位置間係を判断する。 
  ・□24は座標変換回#IIIで位置検出回路[2
3の判断結   :果を使用して前記位置検出結果(1
)と前記位置検   □出結果(5)の場合前記現行座
標値をそのまま出力   □し前記位置検出結果(2)
の場合FI記現行E座標値のX座標値をvI証矩形領域
の持つX座標の最小値に変換した後出力し前記位置検出
結果(4)の場合lfJ′配現行樫標値のX座標値を前
記矩形領域の持つX座標の最大値に変換した後出力する
。25はメモリ制御回路で、位置検出回路1123の判
断結果が前記位置検出結果(1)または前記位置検出結
果(2)また前記位置検出結果(4)であり、重置比較
回路2の判断結果が書き込み許可を与えた場合、vI記
アドレスと前記アドレス上の前記と・γ上位置を使用し
てメモリ6の読み出し書き込みを行う、22は塗り潰し
処理回路■で、メモリ6を水平方向に走査し、同じ走査
線上に男ドツトが現れてから次の黒ドツトが現れるまで
のドツトと全て黒に変換する。
FIG. 2 shows a top view of a system including a vector font drawing device according to a second embodiment of the present invention. In FIG. , in a rectangular area specified by the current coordinate value of Yilj and the coordinate value of two points, if the current coordinate value is within the rectangular area (referred to as position detection result (1)),
If the X coordinate value of the current coordinate value is within the range of the X coordinate values of the rectangular area and the X coordinate value of the current coordinate value is smaller than the minimum value of the X coordinates of the rectangular area (position detection result (2) ), and the X coordinate value of the current coordinate value is within the range of the X coordinate values of the rectangular area, and the X coordinate value of the current coordinate value is greater than the maximum value of the X coordinates of the rectangular area. (referred to as position detection result (4)) and the current coordinate value (referred to as position detection result
□ Determine the relationship between the positions of Ka (5) and Hayashi (Su) in 4 ways.
・□24 is the position detection circuit [2
Judgment result of step 3: Use the result to determine the position detection result (1
) and said position detection □In case of output result (5), output said current coordinate value as is □and said position detection result (2)
In the case of FI, the X coordinate value of the current E coordinate value is converted to the minimum value of the X coordinate of the vI proof rectangular area and then output. In the case of the position detection result (4), lfJ' is the X coordinate value of the current oak marker value. is converted to the maximum value of the X coordinate of the rectangular area and then output. 25 is a memory control circuit in which the judgment result of the position detection circuit 1123 is the position detection result (1) or the position detection result (2) or the position detection result (4), and the judgment result of the superimposition comparison circuit 2 is When permission for writing is granted, the memory 6 is read and written using the address VI and the above and γ positions on the address. 22 is a filling processing circuit 2, which scans the memory 6 in the horizontal direction, All dots from the time a male dot appears until the next black dot appears on the same scanning line are converted to black.

2−は2.3.23〜25により櫂吸さiした本発明の
−X u Mにおけるベクトルフォント描画装!て′あ
る・また2・3.6.18は第1図に示す本発明の一実
施例と同じものである。
2- is a vector font drawing system in -XuM of the present invention which was paddled by 2.3.23-25! 2.3.6.18 are the same as the embodiment of the present invention shown in FIG.

このように構成された第2の実施例におけるベクトルフ
ォント描画装置を含むシステムについて以下モの動作を
説明する。
The operation of the system including the vector font drawing device in the second embodiment configured as described above will be described below.

第2図において、文字の輪郭を描画するための9fIA
値を与える側が、第5図の文字Aの全体について輪郭を
示す座a@(XN、YN)を1頓にレジスタ18に与え
ると、位置検出回路I[23は座標値(XN、YN)と
矩形領域■を指定する座標値(XA、YA>、座標値(
XB、YB)と比較し、その結果によって以下に示す4
通りの処理が行われる。
In Figure 2, 9fIA for drawing the outline of the character
When the value provider gives the coordinates a@(XN, YN) indicating the outline of the entire letter A in Figure 5 to the register 18, the position detection circuit I [23 will be the coordinate value (XN, YN). Coordinate values (XA, YA>, coordinate values (
XB, YB), and based on the results, the following 4
The process is carried out as expected.

1)座標値(XN、YN)が矩形領域■の内部(XA≦
XN≦XBかつY A≦YN≦YB)にある場合(前記
位置検出結果(1)と対応する)、座標変換回路lI2
4は座標値(XN。
1) The coordinate values (XN, YN) are inside the rectangular area (XA≦
If XN≦XB and YA≦YN≦YB (corresponding to the position detection result (1)), the coordinate conversion circuit lI2
4 is the coordinate value (XN.

YN)をそのまま出力し、座標アドレス変換圃EL!1
3−゛呵標値(XN、)’N)をメモリ6上の?ドレス
と前記アドレス上のビット位置に変I6!する。このと
き、襄標比較回F#12によって座標@ (XN、YN
)が1ビツト尖il!端や申開声の男ドツト[フタトて
゛あることが判断されると、メモリ制御回F!@25は
前記アドレスを用いメモリ6上のデータを読み出し、前
記データ上で前記アドレスの前記ビット位置と同じ位置
のビットの値を反転させ、前記メモリ6上の同じ位置に
書き込む。
YN) is output as is, and the coordinate address conversion field EL! 1
3-゛゛2 Standard value (XN,)'N) in memory 6? Change I6 to address and bit position on said address! do. At this time, the coordinates @ (XN, YN
) is 1 bit sharp! When it is determined that there is a man dot at the end and an open voice [lid], the memory control times F! @25 reads the data on the memory 6 using the address, inverts the value of the bit at the same position as the bit position of the address on the data, and writes it to the same position on the memory 6.

2)座標値(XN、YN)と矩形領域■を措定する座標
値(XA、YA)、座標値(XB。
2) Coordinate values (XN, YN) and coordinate values (XA, YA) and coordinate values (XB) that assume a rectangular area.

)′B)の関係がXN<XAかつYA≦YN≦YBであ
る場合(前記位置検出結果(2)と対応する)、座標変
換回路[24は座標@ (XN。
)′B) If the relationship XN<XA and YA≦YN≦YB (corresponds to the position detection result (2)), the coordinate conversion circuit [24 is the coordinate @ (XN.

)′N)を<XA、’r’N)に変換して出力する。)'N) is converted to <XA,'r'N) and output.

その後の動作は1)に示した動作と同じである。The subsequent operations are the same as those shown in 1).

3)座標値(XN、YN)と矩形領域■を指定する座標
値(XA、YA) 、座標値(XB。
3) Coordinate values (XN, YN) and coordinate values (XA, YA) that specify the rectangular area (XB).

YB)の関係がXB<XNかつYA≦YN≦YBである
場合(llil記位置検出結果(4)と対応する)、座
標変換回路I[24は座標値(XN。
When the relationship of XB<XN and YA≦YN≦YB (corresponds to the position detection result (4) described in llil), the coordinate conversion circuit I[24 converts the coordinate value (XN.

YN)を(XB、YN)に変換して出力する。Convert YN) to (XB, YN) and output.

その後の動作は1)に示した動作と同じである。The subsequent operations are the same as those shown in 1).

4)座標値(XN、YN)と矩形領域■を指定する座標
値(XA、YA)、座標値(XB。
4) Coordinate values (XN, YN) and coordinate values (XA, YA) that specify the rectangular area (XB).

YB)の関係が1)、2)、3)に示した以外の場合(
前記位置検出結果(5)と対応する)、メモリ6に対し
て書き込み動作を行わない。
If the relationship of YB) is other than those shown in 1), 2), and 3) (
(corresponding to the position detection result (5)), no write operation is performed on the memory 6.

ただし、輪郭の描画を行う前は、メモリ6上に里ドツト
は一つも存在しないものとする。
However, it is assumed that no dots exist in the memory 6 before the outline is drawn.

第10図は第2図のベクトルフォント描画装置21を使
用して、第5図の矩形領域■)の輪郭を第2図のメモリ
6に描画した図であり、13は矩形領域■の範囲である
FIG. 10 is a diagram in which the outline of the rectangular area (■) in FIG. 5 is drawn in the memory 6 in FIG. 2 using the vector font drawing device 21 in FIG. be.

第1021の塗り潰し処理を行う場合、第2図の塗り潰
し処理回路I22を用いて、メモリ6上を水平の一方向
に走査し、同じ走査線上に黒ドツトが現れてから次の黒
ド−,hが現れるまでのド・・lトを全て黒に変換する
処理を行うことにより、第7図に示したような矩形領域
■を正しく塗り潰した結果を得ることができる。
When performing the 1021st filling process, the filling process circuit I22 of FIG. 2 is used to scan the memory 6 in one horizontal direction, and after a black dot appears on the same scanning line, the next black dot, h By performing the process of converting all dots until they appear into black, it is possible to obtain a result in which the rectangular area (2) shown in FIG. 7 is correctly filled in.

また、矩形領域の幅が1ドツト(矩形領域を指定する2
点の座標値のX座標値が等しい)のような特別な場合で
は、第2図の本発明の一実施例におけるベクトルフォン
ト描画装置を含むシステムを使用しないものとする。
Also, the width of the rectangular area is 1 dot (2 dots specifying the rectangular area).
In a special case where the X coordinate values of the coordinate values of the points are equal), the system including the vector font drawing device in one embodiment of the present invention shown in FIG. 2 is not used.

上記第2の実施例によれば、塗り潰し処理において、メ
モリ6上を水平の一方向に走査し、同じ走査線上に黒ド
ツトが現れてから次の黒ドツトが現れるまでのドツトを
全て黒に変換する処理だけとなり、塗り潰し処理制御が
簡略化され、より高速化を図ることを可能となる。また
、その他の効果は、第1の実施例の効果と同じである。
According to the second embodiment, in the filling process, the memory 6 is scanned in one horizontal direction, and all dots from the time a black dot appears on the same scanning line until the next black dot appears are converted to black. This simplifies the filling process control and makes it possible to achieve higher speed. Further, other effects are the same as those of the first embodiment.

第3図は本発明の第3の実施例におけるベクトルフォン
ト描画装置を含むシステムの構成図を示す、第3図にお
いて、26は指定領域判断回路で、2点の座標値で指定
された矩形領域の幅が1ビツトであることを判断し、前
記領域の幅が1ビツトである場合、第2の実施例に記載
した位置検出回路]123の位置検出口路(4)を位置
検出口路(5)に変更する制御を行う、27は2. 3
.16.23〜26により構成された本発明の一実施例
におけるベクトルフォント描画装置である。また2、3
,6,18゜22〜25は第2図に示す本発明の一実施
例と同じものである。
FIG. 3 shows a configuration diagram of a system including a vector font drawing device according to a third embodiment of the present invention. In FIG. If the width of the area is 1 bit, the position detection circuit (4) of the position detection circuit] 123 described in the second embodiment is connected to the position detection port (4). 5), 27 performs control to change to 2. 3
.. 16. This is a vector font drawing device according to an embodiment of the present invention, which is configured by 23 to 26. A few more
, 6, 18 degrees 22-25 are the same as the embodiment of the present invention shown in FIG.

このように構成された第3の実施例におけるベクトルフ
ォント描画装置を含むシステムについて以下その動作を
説明する。
The operation of the system including the vector font drawing device according to the third embodiment configured as described above will be described below.

矩形領域の輻が1ドツト(矩形領域を指定する2点の座
@値のX座標値が等しい)のような特別な場合では、第
2図のベクトルフォント描画装置を含むシステムにおい
て、正しく輪郭を描画できないという不都合が生じる。
In a special case where the convergence of a rectangular area is 1 dot (the X coordinate values of the two points specifying the rectangular area are equal), it is difficult to correctly draw the outline in a system that includes the vector font drawing device shown in Figure 2. This causes the inconvenience of not being able to draw.

以下にその内容について例を用いて説明する。The contents will be explained below using an example.

第11図は三角形の輪郭をもった図を示す、第11図に
おいて、28は三角形の輪郭、29は1ドツト幅の矩形
領域、31は前記1ドツト幅の矩形領域を指定する上側
のia値(XC,YC1) 、32は前記1ドツト幅の
矩形領域を指定する下側の座標値(XC,’y’c2)
である、30は前記三角形の輪郭を含む領域、9は@3
30の一番左上の座標値で原点(0,0)を示し、12
は前記三角形の輪郭28を描画するために与えられるそ
れぞれの黒ドツトの座標値(XN、YN)である。
Figure 11 shows a diagram with a triangular outline. In Figure 11, 28 is the outline of the triangle, 29 is a rectangular area with a width of 1 dot, and 31 is the upper ia value specifying the rectangular area with a width of 1 dot. (XC, YC1), 32 is the lower coordinate value (XC, 'y'c2) that specifies the 1-dot width rectangular area.
, 30 is the area containing the outline of the triangle, 9 is @3
The origin (0,0) is indicated by the coordinate value at the top left of 30, and 12
are the coordinate values (XN, YN) of each black dot given for drawing the outline 28 of the triangle.

いま、第2図のベクトルフォント描画装置21を用いて
、第11図の1ドツト幅の矩形領域29の輪郭を描画す
ると、メモリ制御回路25によってメモリ6上への描画
は、輪郭の座標値に対応するメモリ6上のビットの値を
反転させるため、偶数回同じ位置に描画することは、な
にも描画しない事と同じである。また、輪郭全体と1ド
ツト幅の矩形領域29の位置関係により以下のことが言
える。
Now, when the vector font drawing device 21 of FIG. 2 is used to draw the outline of the rectangular area 29 of one dot width shown in FIG. Drawing at the same position an even number of times in order to invert the value of the corresponding bit in the memory 6 is the same as not drawing anything. Furthermore, the following can be said about the positional relationship between the entire outline and the rectangular area 29 having a width of one dot.

Y座は値が1ドツト幅の矩形領域29内(YC1≦YN
≦Y C2)にあり、1ドツト幅の矩形領域29の両側
にそれぞれ同じY座g値をもつ輪郭の座標値が奇数個ず
つあると、両側の座標値は全て(XC,YN)に変換さ
れるため、前記メモリ6の同じ位置に描画する回数は偶
数となり、なにも描画しないことと同じになる。上記に
示したように、矩形領域の幅が1ドツト(矩形領域を指
定する2点の座標値のX座標値が等しい)のような特別
な場合では、第2図のベクトルフォント描画装置を含む
システムにおいて、正しく輪郭を描面できないという不
都合が生じる。
The Y position is within a rectangular area 29 with a value of 1 dot width (YC1≦YN
≦Y C2), and there are an odd number of coordinate values of contours with the same Y coordinate g value on both sides of the rectangular area 29 with a width of 1 dot, all the coordinate values on both sides are converted to (XC, YN). Therefore, the number of times drawing is performed at the same location in the memory 6 is an even number, which is the same as not drawing anything. As shown above, in a special case where the width of a rectangular area is one dot (the X coordinate values of the two points specifying the rectangular area are equal), the vector font drawing device shown in Figure 2 is used. In the system, a disadvantage arises in that the contour cannot be drawn correctly.

第3図のベクトルフォント描画装置27の中の指定領域
判断回路26により上記の問題を解決できる。
The above problem can be solved by the specified area determination circuit 26 in the vector font drawing device 27 shown in FIG.

指定領域判断回路26によって、矩形領域の幅が1ドツ
ト(矩形領域を指定する2点の座標値のX座標値が等し
い)であると判断された場合、第2の実施例に示した輪
郭を描画する4通りの動作の3)を行わないようにし、
3)の代わりに4)を行うように位置検出口路1123
を制御するとともに、ベクトルフォント描画装置27で
もとめた輪郭が塗り潰しを行った結果となっているなめ
、塗り潰し処理を行わないように塗り潰し処理回路n2
2を制御する。
If the specified area determination circuit 26 determines that the width of the rectangular area is 1 dot (the X coordinate values of the coordinate values of the two points specifying the rectangular area are equal), the outline shown in the second embodiment is Avoid performing 3) of the four drawing operations,
The position detection port path 1123 performs 4) instead of 3).
In addition, the fill processing circuit n2 is used to control the outline drawn by the vector font drawing device 27 so as not to perform the filling process.
Control 2.

矩形mkl、の幅が1ドツト以外の場合、第2の実施例
で示した動作と同じである。
When the width of the rectangle mkl is other than one dot, the operation is the same as that shown in the second embodiment.

上記第3の実施例によれば、矩形領域の幅が1ドツト(
矩形領域を指定する2点の座標値のX座WA値が等しい
)のような特別な場合でも、塗り潰し用の輪郭を描画す
ることが可能となり、その他の効果は第2の実施例に示
した効果と同じである。
According to the third embodiment, the width of the rectangular area is 1 dot (
Even in special cases such as when the coordinate values of two points specifying a rectangular area have the same X-coordinate WA values, it is now possible to draw a contour for filling, and other effects are shown in the second embodiment. The effect is the same.

発明の効果 以上のように本発明によれば、文字の輪郭を描画するた
めの座標値を与える側が、矩形領域の塗り潰しを行うた
めの黒ドツトの削除および追加を判断し処理することな
く、単に文字の輪郭を描画するための座標値を与える処
理を行うだけでよく、座標値を与える側の制御が簡略化
され高速化を図ることが可能となる。
Effects of the Invention As described above, according to the present invention, the side that provides coordinate values for drawing the outline of a character can simply delete and add black dots to fill in a rectangular area without having to judge and process them. It is only necessary to perform the process of providing coordinate values for drawing the outline of a character, and the control on the side that provides the coordinate values is simplified and speeding up can be achieved.

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

第1図〜第3図は本発明の第1〜第3の実施例における
ベクトルフォント描画装置を含むシステムの構成図、第
4図は従来のベクトルフォント描画装置を含むシステム
の構成図、第5図は文字Aを矩形領域■から■によって
9分割した図、第6図は第4図の従来のベクトルフォン
ト描画装置を使用して第5図の矩形領域■の輪郭をメモ
リに描画した図、第7図はメモリ上で第5図の矩形領域
■を正しく塗り潰した図、第8図は水平方向に塗り潰し
処理を行うと第7図のような塗り潰し結果を得るための
輪郭を第6図において黒ド・ットの削除および追加によ
り作成した図、第9図は第1図ノヘクトルフォント描画
装置を使用し第5図の矩形領域■の輪郭をメモリに描画
した図・第10図は第2図のベクトルフォント描画装置
を使用し第5図の矩形flkA■の輪郭をメモリに描画
した図、第11図は三角形の輪郭を示す図である・1・
・・書き込み制御回路、2・・・座標比較回路、3・・
・座標アドレス変換回路、6・・・メモリ、9・・・原
点<0.0)、10・・・第5図の矩形領域■を指定す
る左上の座標値(XA、YA) 、11・・・第5図の
矩形領域■を指定する右下の座標値(XB、YB)、1
2・・・輪郭を描画するために与えられるそれぞれの黒
ドツトの座標値(XN、YN)、13・・・第5図の矩
形領域■の範囲、14・−・位置検出回路工、15・・
・座標変換回路工、16・・・メモリ制御回路、17・
・・塗り潰し制御回路、18・・・レジスタ、19・・
・塗り潰し処理回BI、20・・・第1の実施例におけ
るベクトル7オント描画装置、21・・・第2の実施例
におけるベクトルフォント描画装!、22・・・便り潰
し処IN!回路■、23、・・位置検出回路■、24・
・・座標変換回路■、25・・・メモリ制御回路、26
・・・指定領域判断回路、27・・・第3の実施例にお
けるベクトルフォント描画装置。 代理人   森  本  義  私 用1図 第2図 /I? 第3 図 第4図 第5図 第6図      第7図 〈             【 t3       13 第S図      第9図 〆 ’t3         〆3 第1O図
1 to 3 are block diagrams of a system including a vector font drawing device in the first to third embodiments of the present invention, FIG. 4 is a block diagram of a system including a conventional vector font drawing device, and FIG. The figure is a diagram in which the character A is divided into nine parts from the rectangular area ■ by ■. Figure 6 is a diagram in which the outline of the rectangular area ■ in Figure 5 is drawn in memory using the conventional vector font drawing device in Figure 4. Figure 7 shows the correct filling of the rectangular area ■ in Figure 5 in memory, and Figure 8 shows the outline in Figure 6 to obtain the filling result as shown in Figure 7 when filling in the horizontal direction. Figure 9 is a diagram created by deleting and adding black dots, Figure 9 is a diagram using the Nohector font drawing device shown in Figure 1 to draw the outline of the rectangular area ■ in Figure 5 in memory, Figure 10 is a diagram created by adding and deleting black dots. Figure 2 shows the outline of the rectangle flkA in Figure 5 drawn in memory using the vector font drawing device, and Figure 11 shows the outline of the triangle.
...Write control circuit, 2...Coordinate comparison circuit, 3...
・Coordinate address conversion circuit, 6...Memory, 9...Origin <0.0), 10...Upper left coordinate value (XA, YA) specifying the rectangular area ■ in Figure 5, 11...・Bottom right coordinate values (XB, YB) specifying the rectangular area ■ in Figure 5, 1
2... Coordinate values (XN, YN) of each black dot given for drawing the outline, 13... Range of rectangular area ■ in Figure 5, 14... Position detection circuitry, 15.・
・Coordinate conversion circuit engineering, 16...Memory control circuit, 17.
...Filling control circuit, 18...Register, 19...
- Filling processing time BI, 20...Vector 7 ont drawing device in the first embodiment, 21...Vector font drawing device in the second embodiment! , 22... News crusher IN! Circuit ■, 23,... Position detection circuit ■, 24...
・・Coordinate conversion circuit ■, 25 ・・Memory control circuit, 26
. . . Designated area determination circuit, 27 . . . Vector font drawing device in the third embodiment. Agent Yoshi Morimoto Private use Figure 1 Figure 2/I? Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 < [ t3 13 Figure S Figure 9〆't3 〆3 Figure 1O

Claims (1)

【特許請求の範囲】 1、現在描画の対象となる与えられたX、Y座標の現行
座標値と前記現行座標値より一つ前に与えられた先行座
標値との位置関係を比較し前記現行座標値が描画する必
要があるかを判断する座標比較回路と、前記現行座標値
と2点の座標値で指定された矩形領域において前記現行
座標値が前記矩形領域内にある場合(位置検出結果(1
)と称す)と前記現行座標値のY座標値が前記矩形領域
が持つY座標値の範囲内にあり前記現行座標値のX座標
値が前記矩形領域の持つX座標の最小値より小さい場合
(位置検出結果(2)と称す)と前記現行座標値のY座
標値が前記矩形領域の持つY座標の最小値より小さいま
たは前記Y座標の最大値より大きいまたは前記現行座標
値のX座標値が前記矩形領域の持つX座標の最大値より
大きい場合(位置検出結果(3)と称す)の3通りの位
置関係を判断する位置検出回路 I と、前記位置検出回
路 I の判断結果を使用して前記位置検出結果(1)と
前記位置検出結果(3)の場合前記現行座標値をそのま
ま出力し前記位置検出結果(2)の場合前記現行座標値
のX座標値を前記矩形領域の持つX座標の最小値に変換
した後出力する座標変換回路 I と、前記座標変換回路
I より出力された座標値をメモリ上のアドレスと前記
アドレス上のビット位置に変換する座標アドレス変換回
路と、前記位置検出回路 I の判断結果が前記位置検出
結果(1)または前記位置検出結果(2)であり前記座
標比較回路の判断結果が前記現行座標値が描画する必要
があると判断した場合前記アドレスと前記アドレス上の
前記ビット位置を使用して前記メモリの読み出し書き込
みを行うメモリ制御回路とを備えたベクトルフォント描
画装置。 2、現在描画の対象となる与えられたX、Y座標の現行
座標値と前記現行座標値より一つ前に与えられた先行座
標値との位置関係を比較し前記現行座標値が描画する必
要があるかを判断する座標比較回路と、前記現行座標値
と2点の座標値で指定された矩形領域において前記現行
座標値が前記矩形領域内にある場合(位置検出結果(1
)と称す)と前記現行座標値のY座標値が前記矩形領域
が持つY座標値の範囲内にあり前記現行座標値のY座標
値が前記矩形領域の持つX座標の最小値より小さい場合
(位置検出結果(2)と称す)と前記現行座標値のY座
標値が前記矩形領域が持つY座標値の範囲内にあり前記
現行座標値のX座標値が前記矩形領域の持つX座標の最
大値より大きい場合(位置検出結果(4)と称す)と前
記現行座標値のY座標値が前記矩形領域の持つY座標の
最小値より小さいまたは前記Y座標の最大値より大きい
場合(位置検出結果(5)と称す)の4通りの位置関係
を判断する位置検出回路IIと、前記位置検出回路IIの判
断結果を使用して前記位置検出結果(1)と前記位置検
出結果(5)の場合前記現行座標値をそのまま出力し前
記位置検出結果(2)の場合前記現行座標値のX座標値
を前記矩形領域の持つX座標の最小値に変換した後出力
し前記位置検出結果(4)の場合前記現行座標値のX座
標値を前記矩形領域の持つX座標の最大値に変換した後
出力する座標変換回路IIと、前記座標変換回路IIより出
力された座標値をメモリ上のアドレスと前記アドレス上
のビット位置に変換する座標アドレス変換回路と、前記
位置検出回路IIの判断結果が前記位置検出結果(1)ま
たは前記位置検出結果(2)または前記位置検出結果(
4)であり前記座標比較回路の判断結果が前記現行座標
値が描画する必要があると判断した場合前記アドレスと
前記アドレス上の前記ビット位置を使用して前記メモリ
の読み出し書き込みを行うメモリ制御回路とを備えたベ
クトルフォント描画装置。 3、2点の座標値で指定された矩形領域の幅が1ビット
であることを判断し前記領域の幅が1ビットである場合
、位置検出回路IIの位置検出結果(4)を位置検出結果
(5)に変更する制御を行う指定領域判断回路を備えた
請求項2記載のベクトルフォント描画装置。
[Scope of Claims] 1. Compare the positional relationship between the current coordinate values of the given X and Y coordinates that are the current drawing target and the preceding coordinate values given one time before the current coordinate values, and a coordinate comparison circuit that determines whether a coordinate value needs to be drawn; and a coordinate comparison circuit that determines whether a coordinate value needs to be drawn; (1
), and the Y coordinate value of the current coordinate value is within the range of Y coordinate values of the rectangular area, and the X coordinate value of the current coordinate value is smaller than the minimum value of the X coordinates of the rectangular area ( position detection result (2)) and the Y-coordinate value of the current coordinate value is smaller than the minimum Y-coordinate value of the rectangular area, or larger than the maximum Y-coordinate value, or the X-coordinate value of the current coordinate value is A position detection circuit I that determines three types of positional relationships when the X coordinate of the rectangular area is larger than the maximum value (referred to as position detection result (3)), and a position detection circuit I that uses the determination result of the position detection circuit I. In the case of the position detection result (1) and the position detection result (3), the current coordinate value is output as is, and in the case of the position detection result (2), the X coordinate value of the current coordinate value is output as the X coordinate of the rectangular area. a coordinate conversion circuit I that outputs after converting it to the minimum value of
A coordinate address conversion circuit converts the coordinate value output from I into an address on the memory and a bit position on the address, and the judgment result of the position detection circuit I is the position detection result (1) or the position detection result ( 2) If the determination result of the coordinate comparison circuit is that the current coordinate value needs to be drawn, a memory control circuit that reads and writes to the memory using the address and the bit position on the address. A vector font drawing device with 2. It is necessary to compare the positional relationship between the current coordinate values of the given X and Y coordinates that are the current drawing target and the preceding coordinate values given one time before the current coordinate values, and draw the current coordinate values. a coordinate comparison circuit that determines if the current coordinate value is within the rectangular area specified by the current coordinate value and the coordinate values of two points (position detection result (1);
)) and the Y coordinate value of the current coordinate value is within the range of Y coordinate values of the rectangular area, and the Y coordinate value of the current coordinate value is smaller than the minimum value of the X coordinate of the rectangular area ( (referred to as position detection result (2)) and the Y coordinate value of the current coordinate value is within the Y coordinate value range of the rectangular area, and the X coordinate value of the current coordinate value is the maximum of the X coordinate values of the rectangular area. (referred to as position detection result (4)) and when the Y coordinate value of the current coordinate value is smaller than the minimum value of the Y coordinate of the rectangular area or larger than the maximum value of the Y coordinate (referred to as position detection result). In the case of the position detection result (1) and the position detection result (5), the position detection circuit II determines the four positional relationships (referred to as (5)), and the determination result of the position detection circuit II is used. The current coordinate value is output as is, and in the case of the position detection result (2), the X coordinate value of the current coordinate value is converted to the minimum value of the X coordinates of the rectangular area and then output, and the position detection result (4) is output. In this case, a coordinate conversion circuit II converts the X coordinate value of the current coordinate value to the maximum value of the X coordinate of the rectangular area and then outputs the result, and the coordinate value output from the coordinate conversion circuit II is converted to the address on the memory and the coordinate value outputted from the coordinate conversion circuit II. A coordinate address conversion circuit that converts into a bit position on an address and a determination result of the position detection circuit II are the position detection result (1), the position detection result (2), or the position detection result (
4) If the determination result of the coordinate comparison circuit is that the current coordinate value needs to be drawn, a memory control circuit that reads and writes to the memory using the address and the bit position on the address. A vector font drawing device with 3. It is determined that the width of the rectangular area specified by the coordinate values of the two points is 1 bit, and if the width of the area is 1 bit, the position detection result (4) of the position detection circuit II is used as the position detection result. 3. The vector font drawing device according to claim 2, further comprising a designated area determination circuit that performs control to change to (5).
JP2304424A 1990-11-09 1990-11-09 Vector font drawing device Pending JPH04175800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2304424A JPH04175800A (en) 1990-11-09 1990-11-09 Vector font drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2304424A JPH04175800A (en) 1990-11-09 1990-11-09 Vector font drawing device

Publications (1)

Publication Number Publication Date
JPH04175800A true JPH04175800A (en) 1992-06-23

Family

ID=17932834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2304424A Pending JPH04175800A (en) 1990-11-09 1990-11-09 Vector font drawing device

Country Status (1)

Country Link
JP (1) JPH04175800A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009107168A1 (en) * 2008-02-28 2009-09-03 三菱電機株式会社 Character plotting device
JP2010146255A (en) * 2008-12-18 2010-07-01 Mitsubishi Electric Corp Vector graphics drawing device
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
WO2009107168A1 (en) * 2008-02-28 2009-09-03 三菱電機株式会社 Character plotting device
JP2010146255A (en) * 2008-12-18 2010-07-01 Mitsubishi Electric Corp Vector graphics drawing device
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
JPH04175800A (en) Vector font drawing device
JPS634380A (en) Computer graphic processor
JPH03119387A (en) Method and apparatus for forming contour of digital type surface
EP0464794B1 (en) Painting pattern generation system and pattern painting method using the system
AU7802881A (en) Graphic and textual image generator for a raster scan display
JPH03233689A (en) Outline data drawing device
JPS58191027A (en) Registering method of optional character
JP3129717B2 (en) Image processing apparatus and image processing method
JPH02235185A (en) Method for reproducing graphic
US5680153A (en) Image Processing apparatus
JPH04218877A (en) Method and apparatus for correcting electronic image
JP2906643B2 (en) Document processing device
JP2792102B2 (en) Character font drawing method
JP2896097B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
JP2794446B2 (en) Method and apparatus for filling outline font in which characters are configured for each element
JP2664948B2 (en) Image processing apparatus and image processing method
JPH03163495A (en) Outline character developing device
KR900008306B1 (en) Method for filling polygon using masking pattern
JPS62219083A (en) Picture memory controller
JPH0573693A (en) Outline paint out system
JPH0427554B2 (en)
JPH06301369A (en) Character pattern generator
JPS63244275A (en) Information processor
JPH03150594A (en) System and device for character generation and document printer
JPS61286880A (en) Display unit