JPH09305778A - Polygon duplex device - Google Patents

Polygon duplex device

Info

Publication number
JPH09305778A
JPH09305778A JP8117812A JP11781296A JPH09305778A JP H09305778 A JPH09305778 A JP H09305778A JP 8117812 A JP8117812 A JP 8117812A JP 11781296 A JP11781296 A JP 11781296A JP H09305778 A JPH09305778 A JP H09305778A
Authority
JP
Japan
Prior art keywords
polygon
input
vertex
vector
doubling
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.)
Granted
Application number
JP8117812A
Other languages
Japanese (ja)
Other versions
JP2897721B2 (en
Inventor
Takuya Morishita
卓也 森下
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP8117812A priority Critical patent/JP2897721B2/en
Publication of JPH09305778A publication Critical patent/JPH09305778A/en
Application granted granted Critical
Publication of JP2897721B2 publication Critical patent/JP2897721B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To duplex a polygon such as the contour data of outline font without damaging the original shape for modifying or bolding a character font. SOLUTION: This device is provided with a vector calculating means 21 for calculating the vector of length of a fixed value directed toward the outside of an input polygon from the side data of the input polygon applied to an input device 10, polygon duplexing means 22 for applying parallel translation to the respective sides of the input polygon based on the obtained vector, intersection calculating means 23 for finding the apexes of the duplexed polygon based on the side data after parallel translation, and polygon duplexing suppressing means 24 for suppressing the protrusion of vertexes of the duplexed polygon corresponding to the distance between the apexes of the input polygon and the duplexed polygon.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、与えられた多角形
の輪郭を二重化する多角形二重化装置に関し、特に、輪
郭データを持つアウトラインフォントを太線化するため
などに使用される多角形二重化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a polygon duplication device for duplicating a contour of a given polygon, and more particularly to a polygon duplication device used for thickening an outline font having contour data. .

【0002】[0002]

【従来の技術】与えられた文字を太線化する方法として
は、文字の骨格を表わす線の各パスごとに、そのパスの
両側の所定の幅の領域を塗りつぶすの一般的である。こ
のとき、パスとパスとが角度をもって接続していると、
パスごとの太線の接続部の外角側で空白領域が生じて見
苦しくなることがある。太線化した場合に文字のアウト
ラインを構成するパスとパスとの接続部が見苦しくなら
ないようにするため、例えば、特開平5−313638
号公報には、太線端間の隙間を埋める技術が開示されて
いる。図6は、文字の骨格を表わすアウトラインデータ
から太線化されたフォントを得るための、特開平5−3
13638号記載の技術に基づく文字太線化方法を説明
する図である。
2. Description of the Related Art As a method of thickening a given character, it is general to fill each region of a line representing the skeleton of the character with a region of a predetermined width on both sides of the line. At this time, if the paths are connected at an angle,
A blank area may appear on the outer corner side of the connection portion of the thick line for each path, and may be unsightly. In order not to make the connecting portion between the paths forming the outline of the characters thicker when they are thickened, for example, Japanese Patent Laid-Open No. 5-313638.
The publication discloses a technique for filling a gap between the ends of thick lines. FIG. 6 shows a method for obtaining a bold font from outline data representing a skeleton of a character.
It is a figure explaining the character thickening method based on the technique of 13638 number description.

【0003】まず、太線端間をどのような接続方法で埋
めるかを指定し(ステップ61)、必要に応じてアウト
ラインデータに対して拡大・縮小・変形などのアフィン
変換を施す(ステップ62)。そして、アウトラインデ
ータの最初のパス(パス1)に対して太線描画を行い
(ステップ63)、太線描画をし終えたパス数を表すパ
ラメータをNとして、N=1とする(ステップ64)。
First, a connection method for filling the ends of thick lines is designated (step 61), and if necessary, outline data is subjected to affine transformation such as enlargement / reduction / transformation (step 62). Then, a thick line is drawn for the first pass (path 1) of the outline data (step 63), and N = 1 is set as a parameter indicating the number of passes for which the bold line drawing is completed (step 64).

【0004】次に、Nの値が、太線化しようとしている
文字のアウトラインを構成する全パス数に達しているか
を判定し(ステップ65)、達している場合には、アウ
トラインを構成する最終のパスと1番目のパスとの間の
太線端間の隙間を埋める処理(接続処理)を行って(ス
テップ69)、太線化処理を終了する。一方、ステップ
65でNが全パス数よりも小さい場合には、Nに1を加
算し(ステップ66)、N−1番目のパス(前回太線描
画したパス)とN番目のパス(今回太線描画をするパ
ス)との接続部の太線端間を埋める処理(接続処理)を
行い(ステップ67)、N番目のパスに対して太線描画
を実行し(ステップ68)、ステップ65に戻る。
Next, it is judged whether or not the value of N has reached the total number of passes forming the outline of the character to be thickened (step 65). A process (connection process) for filling the gap between the thick line ends between the path and the first path is performed (step 69), and the thick line processing is ended. On the other hand, if N is smaller than the total number of passes in step 65, N is incremented by 1 (step 66), and the N-1th pass (the pass drawn by the bold line last time) and the Nth pass (the draw by the bold line this time). A process (connection process) is performed to fill the space between the thick line ends of the connection part with the path (step 67), the thick line drawing is executed for the Nth path (step 68), and the process returns to step 65.

【0005】このようにして、アウトラインフォントを
太線化したものであって太線端間の隙間が埋められたも
のが作成される。ここで、図7(a)〜(c)は、それぞれ、
太線端間の隙間を埋めるための接続方法を示している。
図7(a)に示す接続方法では、2本のパス71が相互に
角度(図では直角)をなして接続しているとともにパス
71の両側に所定の幅の太線描画領域72が設定されて
いる場合に、それぞれのパス71に対応する太線描画領
域72の辺の延長線と太線描画領域72とによって挟ま
れる領域73(図示点線部)を塗りつぶすことによっ
て、パス71の接続点での折れ曲がり部分外側に形成さ
れる太線端間の隙間を埋めている。また、図7(b)に示
すものでは、各パス71に対応する細長い長方形状の太
線描画領域72の頂点間を結んだ二等辺三角形の領域7
4(図示点線部)を塗りつぶすことにより、太線端間の
隙間を埋めている。同様に、図7(c)に示すものでは、
太線描画領域72の頂点間を円弧で結んで扇形の領域7
5(図示点線部)を塗りつぶすことにより、太線端間の
隙間を埋めている。
In this way, the outline font is thickened, and the gaps between the thick line ends are filled. Here, FIGS. 7A to 7C respectively show
The connection method for filling the gap between the ends of the thick lines is shown.
In the connection method shown in FIG. 7A, two paths 71 are connected to each other at an angle (right angle in the figure) and a thick line drawing area 72 having a predetermined width is set on both sides of the path 71. In this case, the area 73 (dotted line portion in the drawing) sandwiched between the extension line of the thick line drawing area 72 corresponding to each path 71 and the thick line drawing area 72 is filled, so that the bent portion at the connection point of the path 71 is filled. The gap between the ends of the thick line formed on the outside is filled. In addition, in the example shown in FIG. 7B, an isosceles triangular region 7 connecting the vertices of a long rectangular thick line drawing region 72 corresponding to each path 71.
By filling 4 (dotted line portion in the figure), the gap between the ends of the thick line is filled. Similarly, in the case shown in FIG. 7 (c),
A fan-shaped area 7 is formed by connecting the vertices of the thick line drawing area 72 with an arc.
By filling 5 (dotted line portion in the drawing), the gap between the thick line ends is filled.

【0006】しかしながら、上述した文字太線化方法
は、文字の骨組みではなく、文字の輪郭のみを持ってい
る文字データに適用することが難しいという問題点があ
る。輪郭のみを持っている文字データは、その輪郭の内
部をなんらかの方法で塗りつぶす場合が多く、上述した
文字太線化方法を適用した場合では、太線描画領域の辺
がパスで表されているわけではないので、パスで囲まれ
た領域の内部を塗りつぶ手法をそのまま適用することが
難しい。また、図7(a)〜(c)にそれぞれ示したような接
続方法のうちどれを適用するかを、太線端間を埋める処
理を行う前に決定しているので、太線化処理によって期
待した結果が得られないことがある。すなわち、輪郭の
みを持っている文字データは、明朝体やゴシック体など
の書体に応じて別個に用意されることが多いが、予め定
めた接続方法によって太線端間の隙間を埋めた場合に、
これらの書体の特徴が失われてしまうことがある。
However, the above-described character thickening method has a problem that it is difficult to apply it to character data having only the outline of the character, not the skeleton of the character. In the case of character data that has only contours, the insides of the contours are often painted in some way, and when the above-described character thickening method is applied, the edges of the bold line drawing area are not represented by paths. Therefore, it is difficult to directly apply the filling method to the inside of the area surrounded by the path. In addition, since which of the connection methods shown in FIGS. 7A to 7C is to be applied is determined before the processing for filling the space between the thick line ends is performed, it is expected by the thickening processing. The result may not be obtained. That is, character data that has only outlines is often prepared separately according to the typeface such as Mincho or Gothic, but when filling the gap between the thick line ends by a predetermined connection method. ,
Sometimes the characteristics of these typefaces are lost.

【0007】図8は、これらの問題点を説明するための
図である。例えば、漢字の部首のなべぶたの明朝体での
輪郭データ81は、図8(a)に示すようになるが、この
輪郭データ81をパスの集合として単純に太線化処理を
行うと、図8(b)において斜線部で示されるような太線
描画領域82が得られる。また、パスの接続部での太線
端間の隙間を埋めたものが、図8(c),(d)に示されてい
る。図8(c)は、太線端間を三角形で埋める方法(図7
(b)参照)で接続処理を行ったものであり、明朝体とし
ての書体の特徴が失われている。一方、図8(d)は、太
線描画領域の辺の延長線によって囲まれた領域を埋める
方法(図7(a)参照)で接続処理を行ったものであり、
明朝体としての特徴は維持されているものの、この方法
で図8(e)に示すような鋭角を持つ多角形図形83に対
して接続処理を行うと、鋭角部分において接続処理によ
って埋められた領域が突出するようになり、不自然な印
象を与えるとともに、近接して他の図形や輪郭データが
ある場合には交差し、塗りつぶし処理を行ったときなど
に表示の乱れをもたらす原因となる。さらに、図8(c),
(d)に示されるように、輪郭データ81の内部に塗りつ
ぶされない領域が残ってしまう。
FIG. 8 is a diagram for explaining these problems. For example, the outline data 81 in the Mincho typeface of the radical of the Kanji character is as shown in FIG. 8A. If the outline data 81 is simply used as a set of paths and thickening processing is performed, In FIG. 8 (b), a thick line drawing area 82 as shown by the shaded area is obtained. 8C and 8D show that the gaps between the ends of the thick lines at the connecting portions of the paths are filled. FIG. 8C shows a method of filling a space between the ends of a thick line with a triangle (see FIG.
The connection processing was performed in (b)), and the characteristics of the typeface as the Mincho typeface are lost. On the other hand, FIG. 8D shows the connection processing performed by the method of filling the area surrounded by the extension lines of the thick line drawing area (see FIG. 7A).
Although the characteristics as the Mincho type are maintained, when the connecting process is performed on the polygonal figure 83 having an acute angle as shown in FIG. 8 (e) by this method, it is filled by the connecting process at the acute angle part. The area becomes protruding, giving an unnatural impression, and when there is another figure or contour data in the vicinity, the area intersects with each other, which causes a display disorder when a filling process is performed. Furthermore, FIG. 8 (c),
As shown in (d), an unfilled region remains inside the contour data 81.

【0008】[0008]

【発明が解決しようとする課題】本発明の目的は、輪郭
データを持つアウトラインフォントなどを対象として多
角形の二重化を行い、二重化により拡大されたアウトラ
インフォントの内部を容易に塗りつぶすことが可能なデ
ータを生成し、明朝体やゴシック体などの書体ごとの特
徴を維持したまま二重化を行うことが可能な多角形二重
化装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to perform polygon duplication for an outline font having contour data and the like, and to easily fill the inside of the outline font enlarged by the duplication. It is an object of the present invention to provide a polygonal duplexer capable of performing the dualization while maintaining the characteristics of each typeface such as Mincho typeface and Gothic typeface.

【0009】[0009]

【課題を解決するための手段】本発明の多角形二重化装
置は、与えられた入力多角形を大きさが異なる多角形に
二重化する多角形二重化装置であって、入力多角形の輪
郭を二重化する多角形輪郭二重化手段と、入力多角形と
二重化後の多角形との形状の特徴の差異が大きくならな
いように、二重化後の多角形の形状を変形する多角形二
重化抑制手段と、を含む。
The polygon doubling device of the present invention is a polygon doubling device for doubling a given input polygon into polygons having different sizes, and doubling the contour of the input polygon. It includes polygonal contour doubling means, and polygonal doubling suppressing means for deforming the shape of the polygon after doubling so that the difference in shape characteristics between the input polygon and the polygon after doubling does not become large.

【0010】本発明において、多角形輪郭二重化手段
は、例えば、入力多角形の各辺ごとに入力多角形の外側
へと向かうベクトルを算出するベクトル算出手段と、入
力多角形の各辺を対応するベクトルに応じて平行移動す
る多角形二重化手段と、移動後の辺相互の交点を求める
交点算出手段と、を有する。また、多角形二重化抑制手
段は、例えば、入力多角形の頂点とその頂点に対応する
二重化後の多角形の頂点との距離が一定値以上である場
合に、二重化後の多角形でのその頂点を入力多角形の頂
点に向けてずらすとともに、入力多角形の対応する辺を
平行移動して得た線分の端点を二重化後の多角形の新た
な頂点として追加する処理を行うものとして、構成され
る。
In the present invention, the polygon contour doubling means corresponds, for example, to each side of the input polygon and a vector calculating means for calculating a vector toward the outside of the input polygon for each side of the input polygon. It has a polygonal duplication unit that moves in parallel according to a vector, and an intersection point calculation unit that finds an intersection point between the moved sides. Further, the polygon doubling suppressing means, for example, when the distance between the vertex of the input polygon and the vertex of the polygon after doubling corresponding to the vertices is a certain value or more, the vertex in the polygon after doubling Is moved toward the vertex of the input polygon, and the end point of the line segment obtained by translating the corresponding side of the input polygon is added as a new vertex of the doubled polygon. To be done.

【0011】本発明では、輪郭データによって表わされ
たアウトラインフォントなどを多角形データであるとみ
なし、与えられた多角形の輪郭から大きさの異なる多角
形(二重化した多角形)を生成することにより、アウト
ラインフォントなどの拡大を行おうとするものである。
輪郭を二重化しただけでは、上述の図8(e)に示した場
合と同様に鋭角部分で頂点の突出が起こるから、本発明
では、多角形二重化抑制手段を設け、頂点の突出を抑制
するようにしている。具体的には、元の多角形(入力多
角形)における頂点と、この頂点に対応する二重化後の
多角形での頂点の距離に応じ、二重化後の多角形でのそ
の頂点の位置をずらしている。これにより、入力多角形
と二重化後の多角形の形状の差分が必要以上に大きくな
ることを防いでいる。
In the present invention, an outline font represented by contour data is regarded as polygon data, and polygons of different sizes (doubled polygons) are generated from the contour of a given polygon. Therefore, it is intended to expand outline fonts and the like.
Just by doubling the contour, as in the case shown in FIG. 8 (e), the protrusion of the apex occurs at the acute angle portion. Therefore, in the present invention, the polygonal duplication suppressing means is provided to suppress the protrusion of the apex. I have to. Specifically, the position of the vertex in the duplicated polygon is shifted according to the distance between the vertex in the original polygon (input polygon) and the vertex in the duplicated polygon corresponding to this vertex. There is. This prevents the difference between the shapes of the input polygon and the duplicated polygon from becoming larger than necessary.

【0012】本発明では、二重化後の多角形もまた多角
形データで表わされるので、二重化後の多角形に対する
塗りつぶし処理なども容易に行うことができる。また輪
郭のの二重化を行っているので、書体の特徴などが保持
される。
In the present invention, since the duplicated polygon is also represented by polygon data, it is possible to easily perform the filling process for the duplicated polygon. Also, since the outline is duplicated, the characteristics of the typeface are retained.

【0013】[0013]

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

【0014】図1は本発明の実施の一形態の多角形二重
化装置の構成を示すブロック図である。この多角形二重
化装置は、大別すると、キーボードなどからなり処理対
象の多角形を入力するための入力装置10と、プログラ
ム制御により動作するデータ処理装置20と、多角形の
情報を記憶する記憶装置30と、ディスプレイ装置など
からなる出力装置40とから、構成されている。
FIG. 1 is a block diagram showing the configuration of a polygon duplexing apparatus according to an embodiment of the present invention. This polygon duplication device is roughly classified into an input device 10 for inputting a polygon to be processed, such as a keyboard, a data processing device 20 operated by program control, and a storage device for storing polygon information. 30 and an output device 40 such as a display device.

【0015】データ処理装置20は、処理対象の多角形
(入力多角形)について、各辺ごとに多角形の外側へと
向かうベクトルを算出するベクトル算出手段21と、多
角形の各辺を多角形の外側へ向かって平行移動する多角
形二重化手段22と、平行移動後の辺について相互の交
点を求める交点算出手段23と、平行移動後の辺の交点
と元の入力多角形の頂点との距離を求め、この距離が一
定値以上の場合には交点を元の多角形の頂点方向に移動
させることによってによって、二重化した後の頂点の突
出を抑制する多角形二重化抑制手段24と、を備えてい
る。また、記憶装置30は、多角形の各頂点などの座標
値を記憶する座標値記憶部31と、ベクトル算出手段2
1で算出したベクトルを記憶するベクトル記憶部32と
を備えている。なお、ベクトル算出手段21、多角形二
重化手段22及び交点算出手段23は、多角形輪郭二重
化手段を構成している。
The data processing device 20 calculates a vector for each side of a polygon to be processed (input polygon), vector calculation means 21 for calculating a vector toward the outside of the polygon, and each side of the polygon is a polygon. The polygon doubling means 22 that moves parallel to the outside of the object, the intersection calculating means 23 that calculates the mutual intersection of the parallel-moved edges, and the distance between the parallel-translated edges and the original vertex of the input polygon. When the distance is equal to or greater than a certain value, the intersection point is moved in the direction of the vertex of the original polygon to thereby prevent the protrusion of the vertex after duplexing. There is. The storage device 30 also includes a coordinate value storage unit 31 that stores the coordinate values of each vertex of the polygon, and the vector calculation means 2.
The vector storage unit 32 stores the vector calculated in 1. The vector calculating means 21, the polygon doubling means 22 and the intersection calculating means 23 constitute a polygon contour doubling means.

【0016】次に、この多角形二重化装置の動作を説明
する。図2は処理の流れを示すフローチャートであり、
図3(a)〜(c)はベクトル算出手段21によって行われる
処理を説明する図であり、図4は多角形二重化抑制手段
24によって行われる処理を説明する図である。
Next, the operation of the polygon duplexer will be described. FIG. 2 is a flowchart showing the flow of processing,
3A to 3C are diagrams for explaining the process performed by the vector calculating means 21, and FIG. 4 is a diagram for explaining the process performed by the polygon duplexing suppressing means 24.

【0017】輪郭データをもつアウトラインフォントな
どのデータが、その輪郭データによって表わされる入力
多角形として、入力装置10に与えられる。そして、入
力装置10に入力した多角形のデータは、多角形入力処
理として、xy座標系上での頂点の座標データに変換さ
れ、座標値記憶部31に記憶される(ステップ10
1)。続いて、ベクトル算出手段21によって、多角形
の頂点のy座標値の最大値と最小値が算出され(ステッ
プ102)、求めたy座標値の最大値と最小値との中点
を通りx軸に平行な直線Lが算出される(ステップ10
3)。図3(a)には、xy座標系に配置された多角形5
0と、この多角形50に対して算出された直線Lとが示
されている。
Data such as an outline font having contour data is given to the input device 10 as an input polygon represented by the contour data. Then, the polygon data input to the input device 10 is converted into the coordinate data of the vertices on the xy coordinate system and stored in the coordinate value storage unit 31 as polygon input processing (step 10).
1). Then, the vector calculation means 21 calculates the maximum and minimum values of the y-coordinates of the vertices of the polygon (step 102), and passes through the midpoint between the calculated maximum and minimum values of the y-coordinates and the x-axis. A straight line L parallel to is calculated (step 10
3). In FIG. 3A, the polygon 5 arranged in the xy coordinate system is used.
0 and a straight line L calculated for this polygon 50 are shown.

【0018】次に、ベクトル算出手段21は、直線Lと
多角形の各辺との交点を全て求め(ステップ104)、
求めた交点の座標を座標値記憶部31に記憶し、多角形
の辺であって、これらの交点の中でx座標値が最も小さ
い交点cを有する辺を求める(ステップ105)。そし
て、求めた辺(交点cを含む辺)の2端点のうちy座標
の値が小さい方から大きい方へ向かう方向をこの辺の向
きと定義し、この向きに対して左90度方向を向いた予
め定められた長さのベクトルvを算出し、ベクトル記憶
部32に格納する(ステップ106)。図3(b)には、
多角形50と、交点cを含む辺から算出されたベクトル
vとが示されている。残りの辺についても、辺ごとにそ
の辺の左90度方向への予め定められた長さのベクトル
を算出し、ベクトル記憶部32に格納する(ステップ1
07)。このとき、ステップ106において交点cを含
む辺について定められた向きを基準として、向きが連続
するように、各辺の向きを定める。図3(c)は、各辺の
向きと、辺ごとのこのようにして求められたベクトルと
を示している。
Next, the vector calculation means 21 finds all the intersections of the straight line L and each side of the polygon (step 104),
The coordinates of the obtained intersections are stored in the coordinate value storage unit 31, and the sides of the polygon having the intersection c with the smallest x coordinate value are obtained (step 105). Then, of the two end points of the obtained side (the side including the intersection c), the direction from the smaller y-coordinate value to the larger y-coordinate value is defined as the direction of this side, and the direction toward the left 90 degrees is defined with respect to this direction. A vector v having a predetermined length is calculated and stored in the vector storage unit 32 (step 106). In Fig. 3 (b),
A polygon 50 and a vector v calculated from the side including the intersection point c are shown. As for the remaining sides, a vector having a predetermined length in the left 90 ° direction is calculated for each side and stored in the vector storage unit 32 (step 1).
07). At this time, the orientation of each side is determined so that the orientations are continuous with reference to the orientation determined for the side including the intersection c in step 106. FIG. 3C shows the direction of each side and the vector thus obtained for each side.

【0019】続いて、多角形二重化手段22に制御が移
り、多角形二重化手段22は、ベクトル算出手段21に
よって算出された対応するベクトルが表わす向きと距離
だけ、多角形の辺をそれぞれ平行移動し、座標値記憶部
31に格納する(ステップ108)。そして、交点算出
手段23に制御が移り、交点算出手段23は、元の多角
形で隣接していた2つの辺について、平行移動後の辺で
の交点を求める(ステップ109)。辺相互の交点があ
ったかどうかを判断し(ステップ110)、交点があっ
た場合にはステップ112に移行し、交点がなかった場
合には、平行移動後の辺を延長して交点を求め(ステッ
プ111)、ステップ112に移行する。ステップ11
2では、交点算出手段23は、二重化による新しい多角
形の頂点として、上述したように求めた交点を座標値記
憶部31に格納する。
Then, the control is transferred to the polygon duplication means 22, and the polygon duplication means 22 translates the sides of the polygon in parallel by the directions and distances represented by the corresponding vectors calculated by the vector calculation means 21. , In the coordinate value storage unit 31 (step 108). Then, the control is transferred to the intersection calculation means 23, and the intersection calculation means 23 obtains the intersections of the two sides which are adjacent to each other in the original polygon after the parallel movement (step 109). It is determined whether or not there is an intersection between the edges (step 110). If there is an intersection, the process proceeds to step 112. If there is no intersection, the side after translation is extended to obtain the intersection (step 111) and the process proceeds to step 112. Step 11
In 2, the intersection calculation means 23 stores the intersection obtained as described above in the coordinate value storage unit 31 as the vertex of the new polygon by duplication.

【0020】そして、多角形二重化抑制手段24に制御
が移り、多角形二重化抑制手段24は、ステップ109
で求めた二重化した多角形の頂点と対応する元の多角形
(入力多角形)の頂点との距離を求め(ステップ11
3)、その距離が予め定められた一定値よりも大きいか
どうかを判定する(ステップ114)。距離が一定値未
満であるときにはそのままステップ116に移行し、距
離が一定値以上である場合には、二重化した多角形の頂
点を、二重化した多角形の頂点と対応する元の多角形の
頂点とを結んだ線分上で、元の多角形の頂点からの距離
が予め定められた値の位置へ移動することにより、頂点
の突出を抑制する。さらに、元の多角形での辺を単純に
平行移動して得た線分の両端点の座標を頂点データに追
加し(ステップ115)、ステップ116に移行する。
図5は、この頂点の突出の抑制を説明する図であって、
新たに生成された二重化した多角形52の頂点Pが、元
の多角形51の対応する頂点Qの方向に移動することに
よって(図示、頂点P’)、頂点の突出が抑制されてい
ることが示されている。また、元の多角形の辺を平行移
動して得た線分の端点に基づいて、新たに頂点Rが追加
されている。
Then, the control is transferred to the polygonal duplication suppressing means 24, and the polygonal duplication suppressing means 24 carries out step 109.
The distance between the vertex of the doubled polygon obtained in step 1 and the corresponding vertex of the original polygon (input polygon) is obtained (step 11).
3) It is determined whether or not the distance is larger than a predetermined constant value (step 114). When the distance is less than the fixed value, the process directly proceeds to step 116, and when the distance is more than the fixed value, the vertex of the doubled polygon is set as the vertex of the original polygon corresponding to the vertex of the doubled polygon. The protrusion of the apex is suppressed by moving to a position where the distance from the apex of the original polygon is a predetermined value on the line segment connecting the. Further, the coordinates of both end points of the line segment obtained by simply translating the sides of the original polygon are added to the vertex data (step 115), and the process proceeds to step 116.
FIG. 5 is a diagram for explaining the suppression of the protrusion of the apex,
The protrusion P of the newly generated doubled polygon 52 is suppressed by moving in the direction of the corresponding vertex Q of the original polygon 51 (illustration, vertex P ′). It is shown. Further, a vertex R is newly added based on the end points of the line segment obtained by moving the sides of the original polygon in parallel.

【0021】ステップ116では、全ての頂点について
上述のステップ118からステップ115までの処理が
行われたかを判定する。全ての頂点が処理済みであれ
ば、処理結果である二重化された多角形を出力装置40
から出力して処理を終了し、未処理の頂点が残っている
場合にはステップ108に戻ることによって、多角形の
全ての頂点についての処理が完了するまで、ステップ1
08からステップ115までの処理を繰り返す。
In step 116, it is determined whether the above steps 118 to 115 have been performed for all the vertices. If all the vertices have been processed, the output device 40 outputs the doubled polygon as the processing result.
To complete the process, and if there are unprocessed vertices, the process returns to step 108 to complete the process for all vertices of the polygon until step 1
The processing from 08 to step 115 is repeated.

【0022】図5は、このようにして二重化された多角
形を示す図である。ここでは、漢字の部首のなべぶたを
明朝体で表わす輪郭データ54を入力多角形として、二
重化された多角形55が得られたところが示されてい
る。本実施の形態では、二重化された多角形55も多角
形データとして表わされるものであり、このため、二重
化された多角形55の内部を塗りつぶす場合も、公知の
多角形塗りつぶしアルゴリズムを使用することが可能で
あり、容易に塗りつぶしを行うことが可能である。ま
た、図5に示す通り、明朝体やゴシック体などの書体ご
との特徴を保持したまま、二重化が行われる。
FIG. 5 is a diagram showing the polygon thus doubled. Here, it is shown that a duplicated polygon 55 is obtained with the contour data 54 representing the pan lid of the radical of the Chinese character in Mincho type as the input polygon. In the present embodiment, the duplicated polygon 55 is also represented as polygon data. Therefore, when filling the inside of the duplicated polygon 55, a well-known polygon filling algorithm can be used. It is possible and easy to fill. Further, as shown in FIG. 5, duplication is performed while maintaining the characteristics of each typeface such as Mincho typeface and Gothic typeface.

【0023】[0023]

【発明の効果】以上説明したように本発明は、多角形輪
郭二重化手段内に、例えば、入力多角形の各辺を入力多
角形の外側に向かって平行移動するベクトルを算出する
ベクトル算出手段を設け、そのベクトルに基づいて入力
多角形の辺を平行移動して多角形を二重化しているの
で、多角形データとして二重化後の多角形が得られ、塗
りつぶし処理などが容易に行えるようになるとともに、
明朝体やゴシック体などの書体の特徴を保持したままフ
ォントデータを二重化することができるようになるとい
う効果がある。また、二重化した多角形の頂点と入力多
角形の頂点との距離に応じて二重化した多角形の頂点を
入力多角形の頂点に近づける多角形二重化抑制手段を設
けることにより、二重化した多角形と入力多角形の形状
の差分が大きくならなず、不必要な頂点の突出が防がれ
るという効果がある。
As described above, according to the present invention, there is provided in the polygon contour doubling means, for example, a vector calculating means for calculating a vector for translating each side of the input polygon toward the outside of the input polygon. Since the polygons are duplicated by parallelizing the sides of the input polygon based on the vector provided, the polygons after duplication can be obtained as polygon data, and fill processing can be performed easily. ,
There is an effect that the font data can be duplicated while maintaining the characteristics of the typeface such as Mincho typeface and Gothic typeface. Also, by providing a polygon duplication suppressing means that brings the vertex of the duplicated polygon closer to the vertex of the input polygon according to the distance between the vertex of the duplicated polygon and the input polygon, The difference in polygonal shape does not become large, and there is an effect that unnecessary protrusion of the apex is prevented.

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

【図1】本発明の実施の一形態の多角形二重化装置の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a polygonal duplexer according to an embodiment of the present invention.

【図2】図1の多角形二重化装置の動作を説明するフロ
ーチャートである。
FIG. 2 is a flowchart illustrating an operation of the polygon duplexing device of FIG.

【図3】(a)〜(c)は、ベクトル算出手段での処理を説明
する図である。
3 (a) to 3 (c) are diagrams for explaining processing in a vector calculation means.

【図4】多角形二重化抑制手段での処理を説明する図で
ある。
FIG. 4 is a diagram illustrating a process performed by polygon duplexing suppressing means.

【図5】図1の多角形二重化装置による処理結果を説明
する図である。
5 is a diagram illustrating a processing result by the polygon duplexing device in FIG. 1;

【図6】従来の文字太線化方法での処理を示すフローチ
ャートである。
FIG. 6 is a flowchart showing processing in a conventional character thickening method.

【図7】(a)〜(c)は、太線端間の隙間を埋める接続方法
を説明する図である。
7A to 7C are diagrams illustrating a connection method for filling a gap between thick line ends.

【図8】(a)は明朝体での漢字部首のなべぶたの輪郭デ
ータを表わす図、(b)〜(d)は従来の文字太線化方法によ
って図8(a)の輪郭データを処理した結果を示す図、(e)
は鋭角を有する多角形を従来の方法によって処理した結
果を示す図である。
8A is a diagram showing the contour data of a pot lid of a kanji radical in Mincho type, and FIGS. 8B to 8D are the contour data of FIG. 8A processed by a conventional character thickening method. Figure showing the result of (e)
FIG. 6 is a diagram showing a result of processing a polygon having an acute angle by a conventional method.

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

10 入力装置 20 データ処理装置 30 記憶装置 31 座標値記憶部 32 ベクトル記憶部 40 出力装置 21 ベクトル算出手段 22 多角形二重化手段 23 交点算出手段 24 多角形二重化抑制手段 101〜116 ステップ 10 Input Device 20 Data Processing Device 30 Storage Device 31 Coordinate Value Storage Unit 32 Vector Storage Unit 40 Output Device 21 Vector Calculation Means 22 Polygon Duplexing Means 23 Intersection Calculating Means 24 Polygon Duplexing Suppressing Means 101-116 Steps

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 与えられた入力多角形を大きさが異なる
多角形に二重化する多角形二重化装置であって、 前記入力多角形の輪郭を二重化する多角形輪郭二重化手
段と、 前記入力多角形と二重化後の多角形との形状の特徴の差
異が大きくならないように、前記二重化後の多角形の形
状を変形する多角形二重化抑制手段と、を含む多角形二
重化装置。
1. A polygon duplication device for duplicating a given input polygon into polygons of different sizes, said polygon contour duplicating means for duplicating the contour of said input polygon, and said input polygon. A polygon doubling device, comprising: polygon doubling suppressing means for deforming the shape of the polygon after doubling so that a difference in shape characteristics from the polygon after doubling does not become large.
【請求項2】 前記多角形輪郭二重化手段が、前記入力
多角形の各辺ごとに前記入力多角形の外側へと向かうベ
クトルを算出するベクトル算出手段と、前記入力多角形
の各辺を対応するベクトルに応じて平行移動する多角形
二重化手段と、平行移動後の辺相互の交点を求める交点
算出手段と、を有する請求項1に記載の多角形二重化装
置。
2. The polygon contour doubling means corresponds to each side of the input polygon and a vector calculation means for calculating a vector toward the outside of the input polygon for each side of the input polygon. The polygon duplexing device according to claim 1, further comprising: polygon duplexing means that translates in accordance with a vector; and intersection calculation means that determines an intersection of the sides after translation.
【請求項3】 前記ベクトル算出手段が、前記入力多角
形の辺に対する交点を有する直線と前記入力多角形の辺
との位置関係から、前記入力多角形の外側へ向かうベク
トルを算出する請求項2に記載の多角形二重化装置。
3. The vector calculating means calculates a vector directed to the outside of the input polygon from the positional relationship between a straight line having an intersection with the side of the input polygon and the side of the input polygon. The polygonal duplexer according to 1.
【請求項4】 前記多角形二重化抑制手段が、前記入力
多角形の頂点とその頂点に対応する二重化後の多角形の
頂点との距離に応じて処理を行う、請求項1に記載の多
角形二重化装置。
4. The polygon according to claim 1, wherein the polygon duplication suppressing unit performs processing according to a distance between the vertex of the input polygon and the vertex of the polygon after duplication corresponding to the vertex. Redundant device.
【請求項5】 前記多角形二重化抑制手段が、前記入力
多角形の頂点とその頂点に対応する二重化後の多角形の
頂点との距離が一定値以上である場合に、二重化後の多
角形でのその頂点を前記入力多角形の頂点に向けてずら
すとともに、前記入力多角形の対応する辺を平行移動し
て得た線分の端点を二重化後の多角形の新たな頂点とし
て追加する処理を行う、請求項1に記載の多角形二重化
装置。
5. The polygon duplication suppressing means determines that the polygon after duplication has a distance between a vertex of the input polygon and a vertex of the polygon after duplication corresponding to the vertex that is equal to or greater than a certain value. The vertex of the input polygon is shifted toward the vertex of the input polygon, and the end point of the line segment obtained by translating the corresponding side of the input polygon is added as a new vertex of the polygon after doubling. The polygonal duplexer according to claim 1, which is used.
JP8117812A 1996-05-13 1996-05-13 Polygon duplexer Expired - Fee Related JP2897721B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8117812A JP2897721B2 (en) 1996-05-13 1996-05-13 Polygon duplexer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8117812A JP2897721B2 (en) 1996-05-13 1996-05-13 Polygon duplexer

Publications (2)

Publication Number Publication Date
JPH09305778A true JPH09305778A (en) 1997-11-28
JP2897721B2 JP2897721B2 (en) 1999-05-31

Family

ID=14720880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8117812A Expired - Fee Related JP2897721B2 (en) 1996-05-13 1996-05-13 Polygon duplexer

Country Status (1)

Country Link
JP (1) JP2897721B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001038680A (en) * 1999-07-30 2001-02-13 Sanyo Electric Co Ltd Cutting printer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001038680A (en) * 1999-07-30 2001-02-13 Sanyo Electric Co Ltd Cutting printer

Also Published As

Publication number Publication date
JP2897721B2 (en) 1999-05-31

Similar Documents

Publication Publication Date Title
US5640589A (en) Method and device for generating graphic data using a writing motion model
JP4595805B2 (en) Design data generation apparatus and design data generation program
JP2634851B2 (en) Image processing device
JP2897721B2 (en) Polygon duplexer
US7271807B2 (en) Method for generation of 2-dimensional motion path
JP3266905B2 (en) Graphic processing unit
JP3536894B2 (en) Graphic processing unit
JPH0493992A (en) Character and graphic plotter device
JP3260733B2 (en) Vector font dictionary
JPH1021415A (en) Graphic processor and graphic processing method
JP2782904B2 (en) Polygon fill method
JP3843794B2 (en) Graphic processing device
JP2985260B2 (en) Character processor
JPH0350686A (en) Graphic processing system
JP2833921B2 (en) Vector font transformation processing method
JP3085396B2 (en) Vector font development method and device
JPH06274308A (en) Uniform modeling generation processing method for bezier curve
JPH07120428B2 (en) Thick line drawing method and apparatus
JPH0934435A (en) Character output device
JPH06124076A (en) Outline data processor
JPH06118940A (en) Device and method for editing image data
JPH10143676A (en) Picture processor and method for processing the same and recording medium
JPH06168337A (en) Paint-out processing method
JPH0425983A (en) Graphic plotting device
JPH05127652A (en) Outline type character pattern generation system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080312

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090312

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100312

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110312

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120312

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140312

Year of fee payment: 15

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees