JPH04217297A - Vector font drawing device - Google Patents

Vector font drawing device

Info

Publication number
JPH04217297A
JPH04217297A JP2403643A JP40364390A JPH04217297A JP H04217297 A JPH04217297 A JP H04217297A JP 2403643 A JP2403643 A JP 2403643A JP 40364390 A JP40364390 A JP 40364390A JP H04217297 A JPH04217297 A JP H04217297A
Authority
JP
Japan
Prior art keywords
dot
data
memory
contour
address
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
JP2403643A
Other languages
Japanese (ja)
Inventor
Tomoharu Kawada
友春 河田
Tatsuo Itomitsu
辰夫 糸満
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 JP2403643A priority Critical patent/JPH04217297A/en
Publication of JPH04217297A publication Critical patent/JPH04217297A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To perform operation, from writing a contour data and a paint out data in a memory to piling together the respective data to create a character, at a high speed by reducing a number of times of writing in the memory. CONSTITUTION:By a circuit 2 for detecting a 1-dot sharp end and an intermediate point, whether an objective dot of the present drawing is an inconvenient dot or not for painting out is decided. Based on a dot write permission signal 14 output in accordance with a decision result from the circuit 2 for detecting the 1-dot sharp end and the intermediate point, a selecting circuit 5 selects any one of a paint out address 15 and a paint out data 16, output from a paint out memory control circuit 3 for controlling writing in a paint out memory region 6A, and a contour address 17 and a contour data 18 output from a contour memory control circuit 4 for controlling writing in a contour memory region 16. The selecting circuit 5 outputs an address 19 and a data 20 to a memory 6.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、複数のベクトルによ
って定義された文字(ベクトルフォント)の輪郭を描画
し、その内部を塗りつぶすベクトルフォント描画装置(
文字パターン発生装置)に係り、特に輪郭用データおよ
び塗りつぶし用データをメモリに書き込み、それぞれの
データを重ね合わせて文字を生成するベクトルフォント
描画装置に関するものである。
[Industrial Application Field] The present invention provides a vector font drawing device (
The present invention relates to a vector font drawing device (character pattern generation device), and particularly to a vector font drawing device that writes outline data and fill data into a memory and overlays the respective data to generate a character.

【0002】0002

【従来の技術】複数のベクトルによって定義された文字
(ベクトルフォント)の輪郭を描画し、その内部を塗り
つぶすことにより高品質文字パターンを発生するベクト
ルフォント描画装置(文字パターン発生装置)が知られ
ている。この種の装置では、文字の全輪郭を描画するた
めのメモリ内に輪郭用メモリ領域と輪郭内部の塗りつぶ
しを行うための塗りつぶし用メモリ領域とを設けてあり
、それぞれのデータの論理和をとることによって文字を
生成している。輪郭用メモリ領域では逐次輪郭用データ
が書き込まれていくが、塗りつぶし用メモリ領域では、
現在の描画対象ドットに特別な処理をした塗りつぶし用
データが書き込まれていく。塗りつぶし用メモリ領域で
の輪郭内部の塗りつぶしは、その描画パターンを一方向
に走査し、黒ドットが現れてから次の黒ドットが現れる
までのドットを全て黒に変換することにより輪郭内部を
塗りつぶす方法が適用されている。
[Prior Art] A vector font drawing device (character pattern generation 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 of the outline. There is. In this type of device, an outline memory area is provided in the memory for drawing the entire outline of a character, and a filling memory area is provided for filling in the inside of the outline. The characters are generated by In the memory area for contours, contour data is written sequentially, but in the memory area for filling,
Specially processed filling data is written to the current drawing target dot. Filling inside the outline in the filling memory area is done by scanning the drawing pattern in one direction and converting all dots from the appearance of a black dot to the appearance of the next black dot to fill the inside of the outline. is applied.

【0003】しかし、この方式では、文字(文字パター
ン)の尖鋭端の塗りつぶし方向のドット数が1ドットの
場合(この尖鋭端を1ドット尖鋭端と定義する)には、
その尖鋭端のドットだけでなく、そのドット位置以降の
ドット列も塗りつぶされてしまうという不都合がある。 この不都合を解消するためには、文字パターンのデザイ
ンに際し1ドット尖鋭端(塗りつぶし方向と直交する方
向のドット数が1ドットの文字尖鋭端は、1ドット尖鋭
端と呼ばない)が発生しないように工夫しなければなら
ない。1ドット尖鋭端は、図2に示すようなベクトルと
ベクトルの接続点に発生する。
However, in this method, when the number of dots in the filling direction at the sharp edge of a character (character pattern) is 1 dot (this sharp edge is defined as a 1-dot sharp edge),
There is an inconvenience that not only the dot at the sharp end but also the dot row after that dot position is filled in. In order to eliminate this inconvenience, it is necessary to avoid the occurrence of 1-dot sharp edges (character sharp edges with 1 dot in the direction orthogonal to the filling direction are not called 1-dot sharp edges) when designing character patterns. I have to devise something. A one-dot sharp edge occurs at a connection point between vectors as shown in FIG.

【0004】図2において、A1 〜A8 は描画対象
ドットで、描画対象ドットA6 が1ドット尖鋭端のド
ットである。また、描画対象ドットA1 〜A8 を結
ぶ矢印B1 〜B7 は変位量を示す。また、矢印Cは
塗りつぶし方向を示している。また、塗りつぶし方向に
対する文字輪郭に、中間点(塗りつぶしの始点でも終点
でもない点)が存在する場合には、上記の塗りつぶしの
方式において中間点位置以降のドット列は塗りつぶされ
ない不都合もある。このドットについても前記1ドット
尖鋭端と同様に発生しないように工夫しなければならな
い。中間点は、直線描画アルゴリズムによって発生した
ドット(図3参照)と、ベクトルとベクトルの接続点(
図4参照)に発生する。
In FIG. 2, A1 to A8 are dots to be drawn, and dot A6 to be drawn is the sharp edge of one dot. Further, arrows B1 to B7 connecting the drawing target dots A1 to A8 indicate displacement amounts. Further, arrow C indicates the filling direction. Furthermore, if there is a midpoint (a point that is neither the start point nor the end point of filling) in the character outline in the filling direction, there is also the disadvantage that the dot rows after the midpoint position are not filled in with the above filling method. Similar measures must be taken to prevent this dot from occurring in the same manner as the one-dot sharp edge described above. Intermediate points are dots generated by the straight line drawing algorithm (see Figure 3) and connection points between vectors (
(see Figure 4).

【0005】図3において、D1 〜D8 は描画対象
ドットで、描画対象ドットD1 はx,y座標(X0 
,Y0 )の始端のドットであり、描画対象ドットD8
 はx,y座標(X1 ,Y1 )の終端のドットであ
り、描画対象ドットD3 ,D5 ,D7 が中間点の
ドットである。また、描画対象ドットD1 〜D8 を
結ぶ矢印E1 〜E7 は変位量を示す。また、矢印F
は塗りつぶし方向を示している。
In FIG. 3, D1 to D8 are dots to be drawn, and the dot D1 to be drawn has x,y coordinates (X0
, Y0 ), and is the drawing target dot D8
is the dot at the end of the x,y coordinates (X1, Y1), and the drawing target dots D3, D5, D7 are the dots at the midpoint. Further, arrows E1 to E7 connecting the drawing target dots D1 to D8 indicate displacement amounts. Also, arrow F
indicates the filling direction.

【0006】図4において、G1 〜G3 は描画対象
ドットであり、描画対象ドットG2 がベクトルとベク
トルの接続点、つまり中間点のドットである。また、描
画対象ドットG1 〜G3 を結ぶ矢印H1 〜H4 
は変位量を示す。また、矢印Iは塗りつぶし方向を示し
ている。従来は、描画対象ドットをそのまま出力とする
輪郭用データと描画対象ドットに1ドット尖鋭端および
中間点の処理を行った塗りつぶし用データとを交互に時
分割してそれぞれ輪郭用メモリ領域と塗りつぶし用メモ
リ領域に書き込んでおり、最終的に重ね合わせるにも関
わらず、描画対象ドットが上述の1ドット尖鋭端と中間
点でない場合、同じx,y座標に位置する輪郭用データ
と塗りつぶし用データをそれぞれの領域に書き込むとい
う処理をしていた。つまり、図5が前記x,y方向の変
位量から生成される描画データであると仮定すると、図
6が1ドット尖鋭端および中間点の処理をした塗りつぶ
し用メモリ領域に書き込まれたデータとなり、図5がそ
のまま輪郭用メモリ領域に書き込まれたデータとなる。 そのため、メモリ書き込み回数が多く、文字生成に時間
がかかっていた。
In FIG. 4, G1 to G3 are dots to be drawn, and the dot G2 to be drawn is a connection point between vectors, that is, a dot at an intermediate point. In addition, arrows H1 to H4 connect the drawing target dots G1 to G3.
indicates the amount of displacement. Further, arrow I indicates the filling direction. Conventionally, contour data that outputs the drawing target dot as it is and fill data that processes the drawing target dot for one-dot sharp edges and midpoints are alternately time-shared and are stored in the memory area for contour and the memory area for filling, respectively. If the dot to be drawn is not the point between the one-dot sharp edge and the midpoint, even though it is written in the memory area and will be overlapped in the end, the outline data and fill data located at the same x and y coordinates are respectively The process was to write to the area. In other words, assuming that FIG. 5 is the drawing data generated from the displacement amounts in the x and y directions, FIG. 6 is the data written in the fill memory area after processing the one-dot sharp edge and midpoint, The data shown in FIG. 5 is directly written in the contour memory area. Therefore, the number of memory writes was large, and character generation took a long time.

【0007】図8は従来例を示すブロック図であり、以
下に従来例の説明をする。21は直線発生回路であって
、外部から入力されるベクトルの始点31のx,y座標
(X0 ,Y0 )および終点32のx,y座標(X1
 ,Y1 )を入力とし、直線描画アルゴリズムに従っ
て現描画対象ドットのx,y方向の変位量33を出力す
る。22は1ドット尖鋭端および中間点を検出する1ド
ット尖鋭端および中間点検出回路であって、前記外部か
ら入力されるベクトルの始点31のx,y座標(X0 
,Y0 )および終点32のx,y座標(X1 ,Y1
 )と前記直線発生回路21から出力される現在の描画
対象ドットのx,y方向の変位量33とを入力とし、現
在描画の対象であるドットが塗りつぶしに不都合なドッ
ト(1ドット尖鋭端および中間点のドット)であるか否
かを判定し、それによってドット書き込み許可信号34
を出力する。 23は塗りつぶし用メモリ制御回路であって、前記直線
発生回路21から出力されるx,y方向の変位量33と
前記1ドット尖鋭端および中間点検出回路22から出力
されるドット書き込み許可信号34とを入力とし、塗り
つぶし用メモリ領域への書き込みを制御し、塗りつぶし
用番地35と塗りつぶし用データ36とを出力する。2
4は輪郭用メモリ制御回路であって、前記直線発生回路
21から出力されるx,y方向の変位量33を入力とし
、輪郭用メモリ領域への書き込みを制御し、輪郭用番地
37と輪郭用データ38とを出力する。25は時分割選
択回路であって、前記塗りつぶし用メモリ制御回路23
と輪郭用メモリ制御回路24からそれぞれ出力される塗
りつぶし用番地35および塗りつぶし用データ36と輪
郭用番地37および輪郭用データ38とを入力とし、交
互に時分割して選択し、それぞれメモリ26の輪郭用メ
モリ領域26Bと塗りつぶし用メモリ領域26Aとに対
し番地39およびデータ40として出力する。メモリ2
6は、前記時分割選択回路25から出力される番地39
およびデータ40を入力とし、描画データを格納する。
FIG. 8 is a block diagram showing a conventional example, and the conventional example will be explained below. Reference numeral 21 denotes a straight line generation circuit, which calculates the x, y coordinates (X0, Y0) of the starting point 31 and the x, y coordinates (X1) of the ending point 32 of a vector input from the outside.
, Y1), and outputs the displacement amount 33 of the current drawing target dot in the x and y directions according to the straight line drawing algorithm. Reference numeral 22 denotes a 1-dot sharp edge and intermediate point detection circuit for detecting the 1-dot sharp edge and intermediate point, which detects the x, y coordinates (X0
, Y0 ) and the x,y coordinates of the end point 32 (X1 , Y1
) and the displacement amount 33 in the x and y directions of the current drawing target dot output from the straight line generation circuit 21, and the current drawing target dot is a dot that is inconvenient for filling (1 dot sharp edge and intermediate dot). Dot write permission signal 34
Output. Reference numeral 23 denotes a memory control circuit for filling, which outputs a displacement amount 33 in the x and y directions outputted from the straight line generation circuit 21 and a dot writing permission signal 34 outputted from the 1-dot sharp edge and intermediate point detection circuit 22. is input, controls writing to the memory area for filling, and outputs a filling address 35 and filling data 36. 2
Reference numeral 4 denotes a contour memory control circuit which inputs the displacement amount 33 in the x and y directions outputted from the straight line generation circuit 21, controls writing to the contour memory area, and stores the contour address 37 and the contour memory area. Data 38 is output. 25 is a time division selection circuit, which is connected to the filling memory control circuit 23;
The filling address 35 and the filling data 36 outputted from the contour memory control circuit 24 and the contour address 37 and contour data 38 are input, and are selected in an alternating time-sharing manner, and the contours of the memory 26 are respectively output. The address 39 and data 40 are output to the memory area 26B and the memory area 26A for filling. memory 2
6 is the address 39 output from the time division selection circuit 25.
and data 40 are input, and drawing data is stored.

【0008】上述した構成において、前記ベクトルの始
点31のx,y座標(X0 ,Y0 )とベクトルの終
点32のx,y座標(X1,Y1 )とにより、前記直
線発生回路21が直線描画アルゴリズムに従ってまず始
点31の次に描画するドットの変位量33を計算する。 前記ベクトルの始点31のx,y座標(X0 ,Y0 
)と、ベクトルの終点32のx,y座標(X1 ,Y1
 )と、前記ドットの変位量33より1ドット尖鋭端お
よび中間点検出回路22が現在の描画対象ドットが塗り
つぶし方向に対する1ドット尖鋭端および文字輪郭の中
間点であるか否かを判別し、1ドット尖鋭端および中間
点でなければドット書き込み許可信号34を出力する。 前記ドット書き込み許可信号34に基づき、塗りつぶし
用メモリ制御回路23は、1ドット尖鋭端または中間点
が存在した場合に、そのドットを書き込まないようにす
ることで、輪郭内部の塗りつぶしによって誤った文字パ
ターンが発生されるのを防止する。また、輪郭用メモリ
制御回路24は、前記直線発生回路21が直線描画アル
ゴリズムに従って計算されるドットの変位量33から番
地を計算し、逐次輪郭用番地37および輪郭用データ3
8を出力する。時分割選択回路25は、x,y座標の位
置としては常に同じである前記塗りつぶし用番地35と
輪郭用番地37とそれぞれの塗りつぶし用データ36,
輪郭用データ38を交互に時分割してメモリ26の塗り
つぶし用メモリ領域26Aと輪郭用メモリ領域26Bと
に書き込んでいく。そのとき前記塗りつぶし用データ3
6と輪郭用データ38は前記ドット書き込み許可信号3
4が出力されていれば両方ともそれぞれの領域に書き込
まれ、前記ドット書き込み許可信号34が出力されてい
なければ輪郭用データ38だけが書き込まれる。最終的
に前記2つのメモリ領域26A,26Bのデータの論理
和をとることによって文字を生成している。
In the above configuration, the straight line generation circuit 21 uses the x, y coordinates (X0, Y0) of the starting point 31 of the vector and the x, y coordinates (X1, Y1) of the ending point 32 of the vector to perform a straight line drawing algorithm. Accordingly, first, the displacement amount 33 of the dot to be drawn next to the starting point 31 is calculated. The x, y coordinates of the starting point 31 of the vector (X0, Y0
) and the x, y coordinates of the end point 32 of the vector (X1 , Y1
) and the displacement amount 33 of the dot, the 1-dot sharp edge and midpoint detection circuit 22 determines whether the current drawing target dot is the 1-dot sharp edge and the midpoint of the character outline in the filling direction. If the dot is not at the sharp edge or at the midpoint, a dot writing permission signal 34 is output. Based on the dot writing permission signal 34, the filling memory control circuit 23 prevents writing of one dot when a sharp edge or midpoint exists, thereby preventing an incorrect character pattern from being filled in inside the outline. prevent this from occurring. Further, the contour memory control circuit 24 calculates an address from the dot displacement amount 33 calculated by the straight line generation circuit 21 according to the straight line drawing algorithm, and sequentially calculates the contour address 37 and the contour data 3.
Outputs 8. The time division selection circuit 25 selects the filling address 35 and outline address 37 whose x and y coordinate positions are always the same, and the respective filling data 36,
The contour data 38 is written into the memory area 26A for filling and the memory area 26B for contours of the memory 26 in a time-division manner alternately. At that time, the filling data 3
6 and outline data 38 are the dot writing permission signal 3.
If the dot write enable signal 34 is not output, only the outline data 38 is written. Finally, a character is generated by calculating the logical sum of the data in the two memory areas 26A and 26B.

【0009】[0009]

【発明が解決しようとする課題】上述したように従来は
、塗りつぶし用メモリ領域26Aと輪郭用メモリ領域2
6Bにそれぞれのデータを書き込む場合、それぞれのデ
ータを交互に時分割して書き込んでいた。それにより、
最終的に前記2つのメモリ領域26A,26Bのデータ
を重ね合わせることによって文字を生成しているにも関
わらず、現在の描画対象ドットが1ドット尖鋭端および
中間点でない場合、x,y座標の位置としては同じであ
る番地に同じデータを書き込むという処理をしており、
それだけメモリへの書き込み回数が多くなり、輪郭用デ
ータ38と塗りつぶし用データ36のメモリ26への書
き込みからそれぞれのデータを重ね合わせて文字を生成
するまでに時間がかかっていた。
[Problems to be Solved by the Invention] As described above, conventionally, the memory area for filling 26A and the memory area for outline 2
When writing each data to 6B, each data was written alternately in time division. Thereby,
Even though characters are finally generated by overlapping the data in the two memory areas 26A and 26B, if the current dot to be drawn is not at the sharp end or the midpoint, the x, y coordinates The process is to write the same data to the same address,
This increases the number of times the data is written to the memory, and it takes time from writing the outline data 38 and the filling data 36 to the memory 26 to overlapping each data to generate a character.

【0010】この発明の目的は、メモリへの書き込み回
数を減らし、輪郭用データと塗りつぶし用データのメモ
リへの書き込みからそれぞれのデータを重ね合わせて文
字を生成するまでを高速に行うことができるベクトルフ
ォント描画装置を提供することである。
[0010] An object of the present invention is to reduce the number of times of writing to memory, and to create a vector that can perform the process from writing outline data and filling data to memory to overlapping each data to generate characters at high speed. An object of the present invention is to provide a font drawing device.

【0011】[0011]

【課題を解決するための手段】この発明のベクトルフォ
ント描画装置は、いくつかのベクトルによって定義され
た文字の輪郭を描画し、その内部を塗りつぶすベクトル
フォント描画装置であって、外部から入力されるベクト
ルの始点および終点のx,y座標をそれぞれ入力とし、
直線描画アルゴリズムにしたがって直線発生を行う直線
発生回路と、前記外部から入力されるベクトルの始点お
よび終点のx,y座標と前記直線発生回路から出力され
るx,y方向の変位量とを入力とし、現在描画対象であ
るドットが塗りつぶしに不都合な1ドット尖鋭端もしく
は中間点のドットであるか否かを判定し、その判定結果
に基づいてドット書き込み許可信号を出力する1ドット
尖鋭端および中間点検出回路と、前記直線発生回路から
出力されるx,y方向の変位量を入力とし、メモリの塗
りつぶし用メモリ領域への書き込みを制御するとともに
、塗りつぶし用番地および塗りつぶし用データを出力す
る塗りつぶし用メモリ制御回路と、前記直線発生回路か
ら出力されるx,y方向の変位量を入力とし、前記メモ
リの輪郭用メモリ領域への書き込みを制御するとともに
、輪郭用番地および輪郭用データを出力する輪郭用メモ
リ制御回路と、前記塗りつぶし用メモリ制御回路および
輪郭用メモリ制御回路から出力される塗りつぶし用番地
および塗りつぶし用データならびに輪郭用番地および輪
郭用データを、前記1ドット尖鋭端および中間点検出回
路から出力されるドット書き込み許可信号に応じて現在
描画対象であるドットが1ドット尖鋭端もしくは中間点
のドットであるときは前記輪郭用メモリ領域の前記輪郭
用番地に輪郭用データをへ書き込ませ、現在描画対象で
あるドットが1ドット尖鋭端もしくは中間点以外のドッ
トであるときは塗りつぶし用メモリ領域の塗りつぶし用
番地に塗りつぶし用データを書き込ませる選択回路とを
備えている。
[Means for Solving the Problems] A vector font drawing device of the present invention is a vector font drawing device that draws the outline of a character defined by several vectors and fills in the inside of the character. Input the x and y coordinates of the starting point and ending point of the vector, respectively,
A straight line generating circuit that generates a straight line according to a straight line drawing algorithm, x and y coordinates of the starting point and ending point of the vector input from the outside, and displacement amounts in the x and y directions output from the straight line generating circuit are input. , 1-dot sharp edge and intermediate inspection that determines whether the dot currently being drawn is a 1-dot sharp edge or an intermediate point dot that is inconvenient for filling, and outputs a dot write permission signal based on the determination result. a fill memory that takes as input the amount of displacement in the x and y directions outputted from the output circuit and the straight line generation circuit, controls writing to the fill memory area of the memory, and outputs a fill address and fill data; A control circuit and a contour controller that receives displacement amounts in the x and y directions outputted from the straight line generation circuit, controls writing to the contour memory area of the memory, and outputs contour addresses and contour data. The memory control circuit, the fill address and fill data, and the contour address and contour data output from the memory control circuit for fill and the memory control circuit for contour are output from the one dot sharp edge and midpoint detection circuit. When the current dot to be drawn is a dot at the sharp end or a dot at the midpoint, the outline data is written to the outline address in the outline memory area, and the current drawing is executed. When the target dot is a dot other than one dot sharp edge or midpoint, the selection circuit writes fill data to the fill address of the fill memory area.

【0012】0012

【作用】この発明は、最終的に輪郭用と塗りつぶし用の
2つのメモリ領域のデータを重ね合わせることによって
文字を生成しているにも関わらず、現在の描画対象ドッ
トが1ドット尖鋭端および中間点でない場合、x,y座
標の位置としては同じである番地に同じデータを書き込
むということに着目して成されたものである。
[Operation] In this invention, even though characters are ultimately generated by overlapping data in two memory areas, one for outline and one for filling, the current dot to be drawn is one dot at the sharp edge and one dot in the middle. This was done by focusing on the fact that if the data is not a point, the same data is written to the same address in terms of x and y coordinates.

【0013】1ドット尖鋭端および中間点検出回路によ
り現在の描画の対象であるドットが塗りつぶしに不都合
なドットであるか否かを判定し、この1ドット尖鋭端お
よび中間点検出回路から出力されるドット書き込み許可
信号に基づいて、選択回路が塗りつぶし用メモリ領域へ
の書き込みを制御する塗りつぶし用メモリ制御回路から
出力される塗りつぶし用番地および塗りつぶし用データ
と、輪郭用メモリ領域への書き込みを制御する輪郭用メ
モリ制御回路から出力される輪郭用番地および輪郭用デ
ータとのいずれか一方を選択し、メモリへ番地とデータ
を出力する。
The 1-dot sharp edge and intermediate point detection circuit determines whether or not the current drawing target dot is a dot that is inconvenient for filling, and the 1-dot sharp edge and intermediate point detection circuit outputs the result. Based on the dot write enable signal, the selection circuit controls writing to the memory area for filling.The address for filling and data output from the memory control circuit for filling, and the outline data that controls writing to the memory area for outline. Either the contour address or the contour data output from the memory control circuit is selected, and the address and data are output to the memory.

【0014】このようにドット書き込み許可信号に基づ
いて、塗りつぶし用メモリ領域および輪郭用メモリ領域
のいずれか一方にのみデータを書き込むことによって、
x,y座標の位置としては同じである番地に同じデータ
を書き込むという処理をなくすことができる。つまり、
図5が前記x,y方向の変位量から生成される描画デー
タであると仮定すると、図6が1ドット尖鋭端および中
間点の処理をした塗りつぶし用メモリ領域に書き込まれ
たデータ(図5の白塗りのドット)となり、図7が輪郭
用メモリ領域に書き込まれたデータ(図5の黒塗りのド
ット)となる。
In this way, by writing data only into either the fill memory area or the outline memory area based on the dot write permission signal,
It is possible to eliminate the process of writing the same data to the same address in terms of x and y coordinate positions. In other words,
Assuming that FIG. 5 is the drawing data generated from the displacement amounts in the x and y directions, FIG. 7 becomes the data (black dots in FIG. 5) written in the contour memory area.

【0015】このように、塗りつぶし用メモリ領域およ
び輪郭用メモリ領域のいずれか一方にのみ書き込むこと
により、メモリへの書き込み回数を減らすことができ、
輪郭用データと塗りつぶし用データのメモリへの書き込
みからそれぞれのデータを重ね合わせて文字を生成する
までを高速化できる。
[0015] In this way, by writing only to either the fill memory area or the outline memory area, the number of times data is written to the memory can be reduced.
It is possible to speed up the process from writing outline data and fill data to memory to overlapping each data to generate characters.

【0016】[0016]

【実施例】図1は、この発明の実施例のベクトルフォン
ト描画装置の構成を示すブロックである。図1において
、1は直線発生回路であって、外部から入力されるベク
トルの始点11のx,y座標(X0 ,Y0 )および
終点12のx,y座標(X1 ,Y1 )を入力とし、
直線描画アルゴリズムに従って現描画対象ドットのx,
y方向の変位量13を出力する。2は1ドット尖鋭端お
よび中間点を検出する1ドット尖鋭端および中間点検出
回路であって、外部から入力されるベクトルの始点11
のx,y座標(X0 ,Y0 )および終点12のx,
y座標(X1 ,Y1 )と前記直線発生回路1から出
力される現描画対象ドットのx,y方向の変位量13を
入力とし、現在描画の対象であるドットが塗りつぶしに
不都合なドット(1ドット尖鋭端もしくは中間点)であ
るか否かを判定しそれによってドット書き込み許可信号
14を出力する。3は塗りつぶし用メモリ制御回路であ
って、前記直線発生回路1から出力されるx,y方向の
変位量13を入力とし、メモリ6の塗りつぶし用メモリ
領域6Aへの書き込みを制御し、塗りつぶし用番地15
および塗りつぶし用データ16を出力する。4は輪郭用
メモリ制御回路であって、前記直線発生回路1から出力
されるx,y方向の変位量13を入力とし、輪郭用メモ
リ領域6Bへの書き込みを制御し、輪郭用番地17およ
び輪郭用データ18を出力する。5は選択回路であって
、前記塗りつぶし用メモリ制御回路3と輪郭用メモリ制
御回路4からそれぞれ出力される塗りつぶし用番地15
および塗りつぶし用データ16と輪郭用番地17および
輪郭用データ18とを入力とし、前記ドット書き込み許
可信号14にしたがってそれぞれ前記の番地およびデー
タを選択して番地19およびデータ20を出力する。メ
モリ6は、前記選択回路5から出力される前記番地19
とデータ20を入力とし、データを格納する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the configuration of a vector font drawing apparatus according to an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a straight line generation circuit, which inputs the x, y coordinates (X0, Y0) of the starting point 11 and the x, y coordinates (X1, Y1) of the ending point 12 of a vector input from the outside.
x of the current drawing target dot according to the straight line drawing algorithm,
A displacement amount 13 in the y direction is output. Reference numeral 2 denotes a 1-dot sharp edge and intermediate point detection circuit for detecting the 1-dot sharp edge and intermediate point, which detects the starting point 11 of a vector input from the outside.
x, y coordinates (X0, Y0) of and the x, y coordinates of end point 12,
The y coordinates (X1, Y1) and the displacement amount 13 in the x and y directions of the current drawing target dot output from the straight line generation circuit 1 are input, and the current drawing target dot is a dot that is inconvenient for filling (1 dot). A dot writing permission signal 14 is output based on the determination whether the dot is at a sharp end or an intermediate point. Reference numeral 3 denotes a memory control circuit for filling, which inputs the amount of displacement 13 in the x and y directions outputted from the straight line generation circuit 1, controls writing to the memory area 6A for filling in the memory 6, and controls writing to the memory area 6A for filling in the memory 6. 15
and output data 16 for filling. Reference numeral 4 denotes a contour memory control circuit, which inputs the displacement amount 13 in the x and y directions outputted from the straight line generation circuit 1, controls writing to the contour memory area 6B, and stores the contour address 17 and the contour. output data 18. Reference numeral 5 denotes a selection circuit which selects the filling address 15 outputted from the filling memory control circuit 3 and the contour memory control circuit 4, respectively.
The data for filling 16, the address for outline 17, and the data for outline 18 are input, and the address and data are selected according to the dot write permission signal 14, and address 19 and data 20 are output. The memory 6 stores the address 19 output from the selection circuit 5.
and data 20 are input, and the data is stored.

【0017】上述した構成において、前記ベクトルの始
点11のx,y座標(X0 ,Y0 )とベクトルの終
点12のx,y座標(X1,Y1 )とにより、前記直
線発生回路1が直線描画アルゴリズムに従ってまず始点
11の次に描画するドットの変位量13を計算する。前
記ベクトルの始点11のx,y座標(X0 ,Y0 )
と、ベクトルの終点12のx,y座標(X1 ,Y1 
)とドットの変位量13より1ドット尖鋭端および中間
点検出回路2が現在の描画対象ドットが塗りつぶし方向
に対する1ドット尖鋭端もしくは文字輪郭の中間点であ
るか否かを判別し、1ドット尖鋭端もしくは中間点でな
ければドット書き込み許可信号14を出力する。塗りつ
ぶし用メモリ制御回路3と輪郭用メモリ制御回路4は、
前記直線発生回路1が直線描画アルゴリズムに従って計
算されるドットの変位量13からそれぞれの番地を計算
し、逐次塗りつぶし用番地15および塗りつぶし用デー
タ16と輪郭用番地17および輪郭用データ18を出力
する。
In the above configuration, the straight line generating circuit 1 uses the x, y coordinates (X0, Y0) of the starting point 11 of the vector and the x, y coordinates (X1, Y1) of the ending point 12 of the vector to perform a straight line drawing algorithm. Accordingly, first, the displacement amount 13 of the dot to be drawn next to the starting point 11 is calculated. x, y coordinates of the starting point 11 of the vector (X0, Y0)
and the x, y coordinates of the end point 12 of the vector (X1, Y1
) and the dot displacement amount 13, the 1-dot sharp edge and midpoint detection circuit 2 determines whether the current drawing target dot is the 1-dot sharp edge in the filling direction or the midpoint of the character outline, and detects the 1-dot sharp edge. If it is not an end or a midpoint, a dot write permission signal 14 is output. The memory control circuit 3 for filling and the memory control circuit 4 for contouring are as follows.
The straight line generation circuit 1 calculates each address from the dot displacement amount 13 calculated according to a straight line drawing algorithm, and sequentially outputs a fill-in address 15, fill-in data 16, outline address 17, and outline data 18.

【0018】前記塗りつぶし用番地15と輪郭用番地1
7とはx,y座標の位置としては常に同じであり、選択
回路5は、ドット書き込み許可信号14が出力されてい
れば塗りつぶし用番地15および塗りつぶし用データ1
6を選択し、メモリ6の塗りつぶし用メモリ領域6Aに
塗りつぶし用データ16を書き込み、ドット書き込み許
可信号14が出力されていなければ輪郭用番地17およ
び輪郭用データ18を選択し、前記メモリ6の輪郭用メ
モリ領域6Bに輪郭用データ18を書き込む。最終的に
前記2つのメモリ領域6A,6Bのデータの論理和をと
ることによって文字を生成する。
[0018] The filling address 15 and the outline address 1
7 is always the same as the x and y coordinate position, and the selection circuit 5 selects the fill address 15 and the fill data 1 if the dot write permission signal 14 is output.
6 is selected, and the filling data 16 is written in the filling memory area 6A of the memory 6. If the dot writing permission signal 14 is not output, the outline address 17 and the outline data 18 are selected, and the outline data 16 in the memory 6 is selected. The contour data 18 is written in the memory area 6B. Finally, a character is generated by calculating the logical OR of the data in the two memory areas 6A and 6B.

【0019】このベクトルフォント描画装置は、1ドッ
ト尖鋭端および中間点検出回路2により現在描画の対象
であるドットが塗りつぶしに不都合なドットであるか否
かを判定し、1ドット尖鋭端および中間点検出回路2か
ら出力されるドット書き込み許可信号14に基づいて、
選択回路5により塗りつぶし用メモリ領域6Aへの書き
込みを制御する塗りつぶし用メモリ制御回路3から出力
される塗りつぶし用番地15および塗りつぶし用データ
16と輪郭用メモリ領域6Bへの書き込みを制御する輪
郭用番地17および輪郭用データ18とのいずれか一方
を選択し、メモリ6へ番地19とデータ20を出力して
どちらかのメモリ領域6A,6Bにのみデータ20を書
き込むことによって、x,y座標の位置としては同じで
ある番地に同じデータ20を書き込むという処理をなく
し、これによりメモリ6への書き込み回数を減らすこと
ができ、輪郭用データ18と塗りつぶし用データ16の
メモリ6への書き込みからそれぞれのデータ16,18
を重ね合わせて文字を生成するまでを高速化できる。
This vector font drawing device uses a 1-dot sharp edge and intermediate point detection circuit 2 to determine whether the dot currently being drawn is a dot that is inconvenient for filling, and performs 1-dot sharp edge and intermediate point detection. Based on the dot write permission signal 14 output from the output circuit 2,
A fill address 15 and fill data 16 output from the fill memory control circuit 3 which controls writing to the fill memory area 6A by the selection circuit 5 and an outline address 17 which controls writing to the contour memory area 6B. and contour data 18, output address 19 and data 20 to memory 6, and write data 20 only in either memory area 6A or 6B, as the x, y coordinate position. eliminates the process of writing the same data 20 to the same address, thereby reducing the number of writes to the memory 6. ,18
It is possible to speed up the process up to superimposing the characters to generate characters.

【0020】[0020]

【発明の効果】この発明のベクトルフォント描画装置に
よれば、1ドット尖鋭端および中間点検出回路により現
在描画の対象であるドットが塗りつぶしに不都合なドッ
トであるか否かを判定し、1ドット尖鋭端および中間点
検出回路から出力されるドット書き込み許可信号に基づ
いて、選択回路により塗りつぶし用メモリ領域への書き
込みを制御する塗りつぶし用メモリ制御回路から出力さ
れる塗りつぶし用番地および塗りつぶし用データと輪郭
用メモリ領域への書き込みを制御する輪郭用番地および
輪郭用データとのいずれか一方を選択し、メモリへ番地
とデータを出力してどちらかのメモリ領域にのみデータ
を書き込むことによって、x,y座標の位置としては同
じである番地に同じデータを書き込むという処理をなく
し、これによりメモリへの書き込み回数を減らすことが
でき、輪郭用データと塗りつぶし用データのメモリへの
書き込みからそれぞれのデータを重ね合わせて文字を生
成するまでを高速化できる。
According to the vector font drawing device of the present invention, the 1-dot sharp edge and midpoint detection circuit determines whether or not the dot currently being drawn is a dot that is inconvenient for filling. The selection circuit controls writing to the fill memory area based on the dot write enable signal output from the sharp edge and midpoint detection circuit.The fill address, fill data, and outline are output from the fill memory control circuit. By selecting either the contour address or the contour data to control writing to the memory area for x, y, and outputting the address and data to memory and writing data only to either memory area, By eliminating the process of writing the same data to the same address as the coordinate position, it is possible to reduce the number of writes to memory. In addition, the process up to character generation can be sped up.

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

【図1】この発明の一実施例のベクトルフォント描画装
置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a vector font drawing device according to an embodiment of the present invention.

【図2】1ドット尖鋭端を示す説明図である。FIG. 2 is an explanatory diagram showing a sharp edge of one dot.

【図3】中間点を示す説明図である。FIG. 3 is an explanatory diagram showing an intermediate point.

【図4】中間点を示す説明図である。FIG. 4 is an explanatory diagram showing an intermediate point.

【図5】輪郭用メモリ領域に書き込まれたデータの説明
図である。
FIG. 5 is an explanatory diagram of data written to a contour memory area.

【図6】塗りつぶし用メモリ領域に書き込まれたデータ
の説明図である。
FIG. 6 is an explanatory diagram of data written to a memory area for filling.

【図7】輪郭用メモリ領域に書き込まれたデータの説明
図である。
FIG. 7 is an explanatory diagram of data written to a contour memory area.

【図8】従来のベクトルフォント描画装置の構成を示す
ブロック図である。
FIG. 8 is a block diagram showing the configuration of a conventional vector font drawing device.

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

1  直線発生回路 2  1ドット尖鋭端および中間点検出回路3  塗り
つぶし用メモリ制御回路 4  輪郭用メモリ制御回路 5  選択回路 6  メモリ 6A  塗りつぶし用メモリ領域 6B  輪郭用メモリ領域 11  始点 12  終点 13  X,Yの変位量 14  ドット書き込み許可信号 15  塗りつぶし用番地 16  塗りつぶし用データ 17  輪郭用番地 18  輪郭用データ 19  番地 20  データ
1 Straight line generation circuit 2 1 dot sharp edge and intermediate point detection circuit 3 Memory control circuit for filling 4 Memory control circuit for contour 5 Selection circuit 6 Memory 6A Memory area for filling 6B Memory area for contour 11 Starting point 12 Ending point 13 X, Y Displacement amount 14 Dot writing permission signal 15 Filling address 16 Filling data 17 Outline address 18 Outline data 19 Address 20 Data

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  いくつかのベクトルによって定義され
た文字の輪郭を描画し、その内部を塗りつぶすベクトル
フォント描画装置であって、外部から入力されるベクト
ルの始点および終点のx,y座標をそれぞれ入力とし、
直線描画アルゴリズムにしたがって直線発生を行う直線
発生回路と、前記外部から入力されるベクトルの始点お
よび終点のx,y座標と前記直線発生回路から出力され
るx,y方向の変位量とを入力とし、現在描画対象であ
るドットが塗りつぶしに不都合な1ドット尖鋭端もしく
は中間点のドットであるか否かを判定し、その判定結果
に基づいてドット書き込み許可信号を出力する1ドット
尖鋭端および中間点検出回路と、前記直線発生回路から
出力されるx,y方向の変位量を入力とし、メモリの塗
りつぶし用メモリ領域への書き込みを制御するとともに
、塗りつぶし用番地および塗りつぶし用データを出力す
る塗りつぶし用メモリ制御回路と、前記直線発生回路か
ら出力されるx,y方向の変位量を入力とし、前記メモ
リの輪郭用メモリ領域への書き込みを制御するとともに
、輪郭用番地および輪郭用データを出力する輪郭用メモ
リ制御回路と、前記塗りつぶし用メモリ制御回路および
輪郭用メモリ制御回路から出力される塗りつぶし用番地
および塗りつぶし用データならびに輪郭用番地および輪
郭用データを、前記1ドット尖鋭端および中間点検出回
路から出力されるドット書き込み許可信号に応じて現在
描画対象であるドットが1ドット尖鋭端もしくは中間点
のドットであるときは前記輪郭用メモリ領域の前記輪郭
用番地に輪郭用データをへ書き込ませ、現在描画対象で
あるドットが1ドット尖鋭端もしくは中間点以外のドッ
トであるときは塗りつぶし用メモリ領域の塗りつぶし用
番地に塗りつぶし用データを書き込ませる選択回路とを
備えたベクトルフォント描画装置。
Claim 1: A vector font drawing device that draws the outline of a character defined by several vectors and fills the inside thereof, the x and y coordinates of the start and end points of vectors input from the outside being respectively input. year,
A straight line generating circuit that generates a straight line according to a straight line drawing algorithm, x and y coordinates of the starting point and ending point of the vector input from the outside, and displacement amounts in the x and y directions output from the straight line generating circuit are input. , 1-dot sharp edge and intermediate inspection that determines whether the dot currently being drawn is a 1-dot sharp edge or an intermediate point dot that is inconvenient for filling, and outputs a dot write permission signal based on the determination result. a fill memory that takes as input the amount of displacement in the x and y directions outputted from the output circuit and the straight line generation circuit, controls writing to the fill memory area of the memory, and outputs a fill address and fill data; A control circuit and a contour controller that receives displacement amounts in the x and y directions outputted from the straight line generation circuit, controls writing to the contour memory area of the memory, and outputs contour addresses and contour data. The memory control circuit, the fill address and fill data, and the contour address and contour data output from the memory control circuit for fill and the memory control circuit for contour are output from the one dot sharp edge and midpoint detection circuit. When the current dot to be drawn is a dot at the sharp end or a dot at the midpoint, the outline data is written to the outline address in the outline memory area, and the current drawing is executed. This vector font drawing device is equipped with a selection circuit for writing filling data to a filling address in a filling memory area when a target dot is a dot other than one dot sharp edge or midpoint.
JP2403643A 1990-12-19 1990-12-19 Vector font drawing device Pending JPH04217297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2403643A JPH04217297A (en) 1990-12-19 1990-12-19 Vector font drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2403643A JPH04217297A (en) 1990-12-19 1990-12-19 Vector font drawing device

Publications (1)

Publication Number Publication Date
JPH04217297A true JPH04217297A (en) 1992-08-07

Family

ID=18513370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2403643A Pending JPH04217297A (en) 1990-12-19 1990-12-19 Vector font drawing device

Country Status (1)

Country Link
JP (1) JPH04217297A (en)

Similar Documents

Publication Publication Date Title
US4748443A (en) Method and apparatus for generating data for a skeleton pattern of a character and/or a painted pattern of the character
KR100216614B1 (en) Character pattern generation device
JPH01181173A (en) Drawing system for vector font contour
US5351315A (en) Apparatus for smoothing outlines of images
EP0356262B1 (en) Image processing apparatus
JP2634851B2 (en) Image processing device
JP3264619B2 (en) Image processing apparatus and method
JPH04217297A (en) Vector font drawing device
JP2650324B2 (en) Multi-value character font generation system
EP0357076B1 (en) Inclined rectangular pattern generating system
JP2621138B2 (en) Overlapping character generation method
JPH04175989A (en) Vector font drawing device
JP2910101B2 (en) Vector font data component point correction device
JP3129717B2 (en) Image processing apparatus and image processing method
JP2621410B2 (en) Information processing device
JPH05108839A (en) Vector font plotting device
JPH0594170A (en) Vector font plotting device
JP2782752B2 (en) Character pattern output device
JP3099556B2 (en) Data converter
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JPH04217077A (en) Graphic generating device and thick line generating method thereby
JPH0776988B2 (en) Straight line drawing device
JPH10143676A (en) Picture processor and method for processing the same and recording medium
JPS60245085A (en) Solid painting process system
JPS63244275A (en) Information processor