JP2666552B2 - Line width control method for outline characters - Google Patents

Line width control method for outline characters

Info

Publication number
JP2666552B2
JP2666552B2 JP2263369A JP26336990A JP2666552B2 JP 2666552 B2 JP2666552 B2 JP 2666552B2 JP 2263369 A JP2263369 A JP 2263369A JP 26336990 A JP26336990 A JP 26336990A JP 2666552 B2 JP2666552 B2 JP 2666552B2
Authority
JP
Japan
Prior art keywords
vector
line
line width
outline
horizontal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2263369A
Other languages
Japanese (ja)
Other versions
JPH04139496A (en
Inventor
正 影沢
亨 金盛
正博 栗島
茂樹 古田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2263369A priority Critical patent/JP2666552B2/en
Publication of JPH04139496A publication Critical patent/JPH04139496A/en
Application granted granted Critical
Publication of JP2666552B2 publication Critical patent/JP2666552B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔概要〕 ワードプロセッサにおいて、アウトライン文字を拡大
/縮小して出力する際の、線幅制御方法に関し、 アウトライン文字を拡大/縮小して出力する際に、線
幅を均一に揃えて、品質のよいアウトライン文字を出力
することを目的とし、 外輪郭のみ、又は、外輪郭と内輪郭とによって作成方
向が異なるアウトライン文字を、拡大/縮小して出力す
る際、線幅制御用のパラメータとして、該アウトライン
ベクトルの書体と所定の基準サイズによって定まる前記
作成方向が異なる対応するベクトル対の重なりの最小線
長と、該ベクトル対の最大線幅と、最小線幅を用
意し、それぞれを出力サイズに対応して変化させて規定
しておき、該拡大/縮小した文字をベクトルに展開し
て、水平線/垂直線ベクトルの検出を行い、同一文字線
を構成している上下,又は、左右方向のベクトル対を抽
出し、該抽出したベクトル対の重なりが、該アウトライ
ン文字の書体と前記出力サイズによって規定された最小
線長以上で、且つ、上記ベクトル対の線幅が上記最小
線幅以下であるベクトル対に対して、該ベクトル対の
一方のベクトルの線幅方向の座標を、必ず、上記出力サ
イズによって定まる最小線幅となるように移動して、
該線幅を決定するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] In a word processor, a line width control method for enlarging / reducing an outline character is provided. For the purpose of outputting high-quality outline characters in line with each other, it is used for line width control when enlarging / reducing the outline characters that have different creation directions depending on the outer outline only or the outer outline and the inner outline. As parameters of, the minimum line length of the overlap of the corresponding vector pairs having different creation directions determined by the typeface of the outline vector and the predetermined reference size, the maximum line width of the vector pair, and the minimum line width are prepared. Is changed according to the output size, and the enlarged / reduced character is developed into a vector to detect a horizontal line / vertical line vector. A vector pair in the vertical or horizontal direction that constitutes the same character line is extracted, and the overlap of the extracted vector pair is longer than the minimum line length defined by the font of the outline character and the output size. For a vector pair whose line width is equal to or smaller than the minimum line width, the coordinates in the line width direction of one vector of the vector pair are always the minimum line width determined by the output size. So go and
The line width is determined.

〔産業上の利用分野〕[Industrial applications]

本発明は、ワードプロセッサにおいて、アウトライン
文字を拡大/縮小して出力する際の、線幅制御方法に関
する。
The present invention relates to a line width control method for enlarging and reducing outline characters in a word processor.

近年、オフィスオートメーション(OA)の進歩と共
に、ワードプロセッサが急速に普及してきた。
In recent years, word processors have rapidly become widespread with advances in office automation (OA).

それと共に、美しい文書を作成する為に、文字の拡大
/縮小を行っても、形の崩れないアウトライン文字を使
用する要求が高まっている。
At the same time, there is an increasing demand for using outline characters that do not lose their shape even if the characters are enlarged or reduced in order to create beautiful documents.

然しながら、該アウトライン文字を使用して、文字の
出力、例ば、表示を行う場合、元の作成サイズに比較し
て、整数倍に拡大されたり、約数倍の大きさに縮小され
るとは、必ずしも限らないことから、該拡大/縮小時の
座標の計算誤差の為に、線幅が、例えば、1ドット大き
くなったり、小さくなったりし、特に、該アウトライン
文字の線幅が細い場合には,このずれが目立ち、例え
ば、表示文字の品質を低下させてしまう問題があり、該
拡大/縮小によって、表示品質が低下することのない線
幅制御方法が必要とされる。
However, when using the outline characters to output, for example, display, the characters, they are enlarged to an integral multiple or reduced to a size several times smaller than the original created size. Due to the calculation error of the coordinates at the time of enlargement / reduction, the line width may be increased or decreased by one dot, for example, because the line width of the outline character is small. However, there is a problem that the shift is conspicuous and, for example, lowers the quality of display characters, and a line width control method that does not lower the display quality due to the enlargement / reduction is required.

〔従来の技術と発明が解決しようとする課題〕[Problems to be solved by conventional technology and invention]

第3図はアウトライン文字の従来の線幅制御方式を説
明する図であり、(a1),(a2)はアウトライン文字の
構成例を示し、(b)はアウトライン文字を縮小した場
合の問題点を示している。
FIG. 3 is a diagram for explaining a conventional line width control method for outline characters. (A1) and (a2) show examples of the outline character configuration, and (b) shows a problem when the outline character is reduced. Is shown.

先ず、アウトライン文字が、例えば、(a1)図に示し
たものとすると、該アウトライン文字を構成しているベ
クトル(1−2),(2−3),…,(12−1)に対応
して、(a2)図に示したように、該ベクトルの端点座標
(Y1,X1),(Y2,X2),…,(Y12,X12)の列が、各ア
ウトライン文字に対応して形成され、対応するメモリ領
域に格納されている。
First, assuming that the outline character is, for example, the one shown in the diagram (a1), it corresponds to the vectors (1-2), (2-3),..., (12-1) constituting the outline character. Then, as shown in (a2), a column of the end point coordinates (Y1, X1), (Y2, X2), ..., (Y12, X12) of the vector is formed corresponding to each outline character, It is stored in the corresponding memory area.

ここで、(b)図に、例として示した、該アウトライ
ン文字の、例えば、水平方向のストローク(斜線で示
す)を形成するベクトルを、例えば、Y方向に1/4に縮
小したとすると、該Y方向の座標は、図示されている如
くに、整数化されるので、同じ線幅の2つのストローク
が、該縮小により、異なる線幅となってしまい、線幅が
不揃いで、きれいな縮小文字として見えなくなるという
問題があった。
Here, assuming that, for example, a vector forming a horizontal stroke (shown by oblique lines) of the outline character shown in FIG. 2B is reduced to, for example, 1/4 in the Y direction. Since the coordinates in the Y direction are converted to integers as shown in the figure, two strokes having the same line width have different line widths due to the reduction, and the line widths are not uniform. There was a problem that it became invisible.

本発明は上記従来の欠点に鑑み、ワードプロセッサに
おいて、アウトライン文字を拡大/縮小して出力する際
の、線幅を均一に揃えて、品質のよいアウトライン文字
を出力することができる線幅制御方法を提供することを
目的とするものである。
SUMMARY OF THE INVENTION In view of the above-described conventional disadvantages, the present invention provides a line width control method that can output a high-quality outline character with a uniform line width when the outline character is enlarged / reduced and output. It is intended to provide.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理説明図である。 FIG. 1 is a diagram illustrating the principle of the present invention.

上記の問題点は下記の如くに構成したアウトライン文
字の線幅制御方法によって解決される。
The above problem is solved by the outline character line width control method configured as follows.

外輪郭のみ、又は、外輪郭と内輪郭とによって作成方
向が異なるアウトライン文字を、拡大又は縮小して出力
する際の線幅制御方法であって、 線幅制御パラメータとして、該アウトライン文字の書
体と、所定の基準サイズによって定まる前記作成方向が
異なる対応するベクトル対の重なりの最小線長と、該ベ
クトル対の最大線幅と、最小線幅を用意し、且つ、それ
ぞれを出力サイズに対応して変化させて規定しておき、 前記アウトライン文字を構成している制御対象文字の
拡大又は縮小した各ベクトルデータについて、水平方向
及び、又は垂直方向部分を、上記方向別に分けて抽出
し、 一方向の水平線及び、又は垂直線ベクトルに対して、
他の方向の水平線及び、又は垂直線のベクトルが対応す
るものとして、 前記対応するベクトルの座標の幅方向の差が、前記最
大線幅に対して、最大線幅×拡大率又は縮小率の値以下
であり、対応する水平線及び、又は垂直線ベクトルの水
平方向及び、又は垂直方向の重なりが、前記最小線長に
対して、最小線長×拡大率又は縮小率の値以上であるベ
クトルの組み合わせを、前記拡大又は縮小された制御対
象のアウトライン文字を構成するベクトルとし、 前記水平線及び、又は垂直線ベクトルの対応付けを、
水平線座標及び、又は垂直線座標の小さいものの順に行
って、該対応付けが認識されたとき、 対応するベクトルの前記水平線座標及び、又は垂直線
座標方向の差が、前記出力サイズによって規定された最
小線幅以下のものについて、必ず、前記出力サイズによ
って規定された最小線幅になるように、一方の水平線及
び、又は垂直線ベクトルの座標をずらして、前記拡大又
は縮小されたアウトライン文字の線幅を決定するように
構成する。
A line width control method for enlarging or reducing outline characters having different creation directions depending on the outer outline only or the outer outline and the inner outline. , The minimum line length of the overlap of the corresponding vector pairs having different creation directions determined by a predetermined reference size, the maximum line width of the vector pair, and the minimum line width are prepared, and each of them corresponds to the output size. For each of the enlarged or reduced vector data of the control target character constituting the outline character, horizontal and / or vertical portions are extracted separately for each of the above directions, and extracted in one direction. For horizontal and / or vertical line vectors,
The horizontal line in the other direction and / or the vector of the vertical line correspond, the difference in the width direction of the coordinates of the corresponding vector is the maximum line width, the value of the maximum line width x enlargement ratio or reduction ratio. The following is a combination of vectors in which the horizontal and / or vertical overlap of the corresponding horizontal line and / or vertical line vector is equal to or greater than the value of minimum line length × enlargement ratio or reduction ratio with respect to the minimum line length. Is a vector that constitutes the enlarged or reduced outline character of the control target, the horizontal line and or the correspondence of the vertical line vector,
When the horizontal line coordinate and / or the vertical line coordinate are performed in the order of smaller ones and the correspondence is recognized, the difference between the horizontal line coordinate and / or the vertical line coordinate direction of the corresponding vector is the minimum defined by the output size. Line widths of the enlarged or reduced outline character are shifted by shifting the coordinates of one horizontal line and / or the vertical line vector so that the line width is equal to or smaller than the minimum line width defined by the output size. Is determined.

〔作用〕[Action]

アウトライン文字を構成してきるベクトルデータの外
輪郭は、例えば、時計回りで,内輪郭は、例えば、反時
計回りというように、外輪郭と内輪郭とで作成方向が異
なるように構成されている。
The outer contour of the vector data constituting the outline character is clockwise, for example, and the inner contour is counterclockwise, for example, so that the outer contour and the inner contour are formed in different directions.

このように構成されていると、一つの水平な文字線を
みた場合、上側の輪郭、例えば、外輪郭は右方向,下側
の輪郭、例えば、内輪郭は左方向となる。
With this configuration, when one horizontal character line is viewed, the upper contour, for example, the outer contour is to the right, and the lower contour, for example, the inner contour is to the left.

本発明の線幅制御においては、該線幅制御用のパラメ
ータとして、最小線長,最大線幅,最小線幅の3
種類を用意する。
In the line width control of the present invention, three parameters of the minimum line length, the maximum line width, and the minimum line width are used as parameters for the line width control.
Prepare the type.

第1図に示した文字の水平線のストロークを例(例え
ば、外輪郭のみによって作成方向が異るアウトライン文
字を例に示している)として、本発明の作用動作を以下
に説明する。
The operation of the present invention will be described below by taking the horizontal line stroke of the character shown in FIG. 1 as an example (for example, an outline character whose creation direction differs depending only on the outer contour).

該アウトライン文字を構成しているベクトルデータの
水平線分を左方向d,e,aと,右方向h,f,g,b,cに分けて抽
出し、該右方向の水平線分(ベクトル)に対して、左方
向の水平線分(ベクトル)の対応を考え、その座標の幅
方向のずれ、即ち、差が、該アウトライン文字の書体に
よって定まる最大線幅に対して、最大線幅×拡大(縮
小)率の値以下であり、両水平線分(ベクトル)の水平
方向の重なりが、該アウトライン文字の書体によって定
まる、最小線長に対して、最小線長×拡大(縮小)率
の値以上である線分(ベクトル)の組合わせベクトル
が、該文字の水平線を作るものとする。この対応付け
を、該幅方向の差が小さいものから順に行っていく。
The horizontal line segment of the vector data constituting the outline character is extracted by dividing it into left direction d, e, a and right direction h, f, g, b, c, and is extracted as the right horizontal line segment (vector). On the other hand, considering the correspondence of horizontal line segments (vectors) in the left direction, the deviation of the coordinates in the width direction, that is, the difference, is obtained by multiplying the maximum line width × enlargement (reduction) by the maximum line width determined by the font of the outline character. ) Is not more than the value of the ratio, and the horizontal overlap of both horizontal line segments (vectors) is not less than the value of (minimum line length × enlargement (reduction) ratio with respect to the minimum line length determined by the typeface of the outline character) It is assumed that a combination vector of line segments (vectors) forms a horizontal line of the character. This association is performed in ascending order of the difference in the width direction.

第1図に示した例では、例えば、右方向の水平線分
(ベクトル)fに対して、d,e,aがあるが、上記の条件
を満たす対応ベクトルは、水平線分(ベクトル)dであ
ることが分かる。同様にして、水平線分(ベクトル)g
に対しては水平線分(ベクトル)eが対応し、水平線分
(ベクトル)b,又は、cに対しては、水平線分(ベクト
ル)aが対応することになる。それ以外のものは、当該
アウトライン文字を構成するベクトルの対象外として除
外される。
In the example shown in FIG. 1, for example, there is d, e, a for a horizontal line segment (vector) f in the right direction, but the corresponding vector satisfying the above condition is a horizontal line segment (vector) d. You can see that. Similarly, a horizontal line segment (vector) g
Corresponds to the horizontal line segment (vector) e, and the horizontal line segment (vector) b or c corresponds to the horizontal line segment (vector) a. Others are excluded from the target of the vector forming the outline character.

このようにして、抽出された対応ベクトルデータ対に
対して、幅方向、本例では、Y方向の差が、上記最小線
幅以下のものに対しては、必ず、最小線幅となるよ
うに、片方の水平線の座標をずらせるようにする。
In this manner, for the extracted corresponding vector data pair, if the difference in the width direction, in this example, the Y direction is equal to or less than the minimum line width, the difference is always set to the minimum line width. , So that the coordinates of one horizontal line are shifted.

上記の例では、水平方向のストロークについて説明し
たが、垂直方向に対しても、同様に行うことができる。
In the above example, the stroke in the horizontal direction has been described, but the same can be performed in the vertical direction.

尚、上記最小線長、最大線幅、最小線幅は、該
アウトライン文字の拡大/縮小率に対応する文字の出力
(表示)サイズに対応して変化させて、規定しておくよ
うにすることで、任意の拡大/縮小に対して、上記の如
き、線幅制御を行うことができる。
The minimum line length, the maximum line width, and the minimum line width are changed and defined according to the output (display) size of the character corresponding to the enlargement / reduction ratio of the outline character. Thus, the line width control as described above can be performed for arbitrary enlargement / reduction.

従って、本発明によれば、アウトライン文字を拡大/
縮小して出力(表示)するときに、該拡大/縮小時の座
標の計算誤差によって生じる線幅の不揃いを、それぞれ
の出力(表示)サイズによって決まる、最小線幅に揃
えることができ、品質のよい、きれいな出力(表示)を
得ることができる効果がある。
Therefore, according to the present invention, outline characters are enlarged /
When outputting (displaying) after reducing the size, irregularities in the line width caused by the calculation error of the coordinates at the time of the enlargement / reduction can be adjusted to the minimum line width determined by the respective output (display) sizes. There is an effect that a good and clean output (display) can be obtained.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

前述の第1図は、本発明の原理説明図であり、第2図
は本発明の一実施例を示した図であって、(a)は文字
表示システムの構成例を示し、(b)は、線幅制御部で
の動作フロー(但し、水平方向)の例を示している。
FIG. 1 is a view for explaining the principle of the present invention, FIG. 2 is a view showing one embodiment of the present invention, (a) shows a configuration example of a character display system, and (b) Shows an example of an operation flow (in the horizontal direction) in the line width control unit.

本発明においては、ワードプロセッサにおいて、例え
ば、外輪郭と内輪郭とで作成方向が異なるアウトライン
文字を拡大/縮小して出力,表示する際、線幅制御用の
パラメータとして、該アウトラインベクトルの書体と所
定の基準サイズによって定まる前記作成方向が異なる対
応するベクトル対の重なりの最小線長と、該ベクトル
対の最大線幅と、最小線幅を用意し、それぞれを出
力サイズに対応して変化させて規定しておき、該拡大/
縮小した文字をベクトルに展開して、水平線/垂直線ベ
クトルの検出を行い、同一文字線を構成している上下,
又は、左右方向のベクトル対を抽出し、該抽出したベク
トル対の重なりが、該アウトライン文字の書体によって
定まる最小線長以上で、且つ、上記ベクトル対の線幅
が上記最小線幅以下であるベクトル対に対して、該ベ
クトル対の一方のベクトルの線幅方向の座標を、必ず、
上記出力サイズによって定まる上記最小線幅となるよ
うにに移動して、該線幅を同一とするようにする手段
が、本発明を実施するのに必要な手段である。尚、全図
を通して同じ符号は同じ対象物を示している。
According to the present invention, in a word processor, for example, when enlarging / reducing an outline character having a different creation direction between an outer outline and an inner outline, and outputting and displaying the outline character, a font of the outline vector and a predetermined character are used as line width control parameters. The minimum line length of the overlap of the corresponding vector pairs, the maximum line width of the vector pair, and the minimum line width of the corresponding vector pairs, which are determined by the reference size, are prepared, and each is changed according to the output size. Keep in mind,
The reduced character is expanded into a vector, and the horizontal / vertical line vector is detected.
Or, a vector pair in which a vector pair in the left-right direction is extracted, and the overlap of the extracted vector pair is equal to or greater than the minimum line length determined by the font of the outline character, and the line width of the vector pair is equal to or smaller than the minimum line width For the pair, the coordinates in the line width direction of one vector of the vector pair are always
Means for moving the line width so as to be the minimum line width determined by the output size and making the line width the same is a means necessary for carrying out the present invention. Note that the same reference numerals indicate the same object throughout the drawings.

以下、第1図を参照しながら、第2図によって、本発
明のアウトライン文字の線幅制御方法を説明する。
Hereinafter, a method of controlling the line width of an outline character according to the present invention will be described with reference to FIG. 2 while referring to FIG.

先ず、第2図(a)に示した当該文字表示システムに
おける座標変換部20において、表示したい各アウトライ
ン文字フォント内の座標を、該文字を表示する座標系の
座標に変換した後、拡大/縮小部21において、該アウト
ライン文字を構成している各ベクトルデータの端点の座
標に対して、拡大/縮小率を掛けて、出力(表示)すべ
き座標を整数化して作成する。
First, in the coordinate conversion unit 20 of the character display system shown in FIG. 2A, the coordinates in each outline character font to be displayed are converted into the coordinates of the coordinate system in which the character is displayed, and then enlarged / reduced. The section 21 multiplies the coordinates of the end point of each vector data constituting the outline character by the enlargement / reduction ratio, and converts the coordinates to be output (displayed) into integers.

この座標に対して、次の線幅制御部22において、第2
図(b)の動作フローに示した線幅制御を行う。
In the next line width control unit 22, the second
The line width control shown in the operation flow of FIG.

先ず、例えば、左方向の水平ベクトルd,e,aを抽出
し、Y座標の小さい順、即ち、水平ベクトルe,d,aのよ
うにソートする。(処理ステップ100,101参照} 次に、同じようにして、右方向の水平ベクトルh,f,g,
b,cを抽出し、Y座標の小さい順、即ち、水平ベクトル
h,f,g,b,cのようにソートする。(処理ステップ102,103
参照) 次に、上記抽出した左方向の水平ベクトルと,右方向
の水平ベクトルとで、Y座標の差が、本アウトライン文
字の書体によって定まる最大線幅以下の組合わせを抽
出する。
First, for example, a horizontal vector d, e, a in the left direction is extracted and sorted in ascending order of the Y coordinate, that is, the horizontal vector e, d, a. (See processing steps 100 and 101.) Next, in the same manner, the horizontal vectors h, f, g,
b and c are extracted, and the Y vector is in ascending order, that is, a horizontal vector.
Sort as h, f, g, b, c. (Processing steps 102 and 103
Next, a combination in which the Y coordinate difference between the extracted left horizontal vector and the right horizontal vector is equal to or less than the maximum line width determined by the font of the outline character is extracted.

このとき、左方向の水平ベクトルのY座標は、右方向
の水平ベクトルのY座標より大きいものを選択する。こ
の選択は、例えば、該Y座標(又は、X座標)の小さい
ものから順(即ち、線幅の小さいものの順)に行ってい
く。このように選択することで、該アウトライン文字を
構成しているベクトル以外の、雑音的なベクトルを除外
することができる。
At this time, the Y coordinate of the left horizontal vector is selected to be larger than the Y coordinate of the right horizontal vector. This selection is performed, for example, in ascending order of the Y-coordinate (or X-coordinate) (that is, in the order of smaller line width). By selecting in this way, noise-like vectors other than the vectors constituting the outline character can be excluded.

上記の処理は、同一ストロークの上下のベクトルを抽
出する処理である。(処理ステップ104参照) 上記抽出した同一ストロークの上下のベクトルに対し
て、例えば、左方向水平ベクトルのY座標を、右方向の
水平ベクトルに、上記アウトライン文字の書体によって
定まる最小線幅を加算した線幅に合わせるように調整
する。
The above process is a process of extracting upper and lower vectors of the same stroke. (Refer to processing step 104.) For the extracted upper and lower vectors of the same stroke, for example, the Y coordinate of the left horizontal vector is added to the right horizontal vector, and the minimum line width determined by the typeface of the outline character is added to the right horizontal vector. Adjust to match the line width.

この最小線幅は、文字の出力(表示)サイズによっ
て、予め、定めた線幅としておくことにより、拡大/縮
小のいずれの場合にも、上記の手順を適合させることが
できる。(処理ステップ105参照) このように、本発明は、文字の線幅は、同一ストロー
クの上下のベクトルの座標の差によって決定されるもの
であることに着目し、アウトライン文字の同一ストロー
クに関連する上下のベクトルの対応付けを行い、該対応
付けができたところで、例えば、該ストロークの下側/
上側にあたるベクトルの移動を、該拡大/縮小時の線幅
が、該アウトライン文字の書体と,その出力(表示)サ
イズによって決まる最小線幅となるように行うところ
に特徴がある。
By setting the minimum line width to a predetermined line width depending on the output (display) size of the character, the above procedure can be adapted to both enlargement and reduction. As described above, the present invention focuses on the fact that the line width of a character is determined by the difference between the coordinates of the upper and lower vectors of the same stroke, and relates to the same stroke of the outline character. The upper and lower vectors are associated, and when the association is completed, for example, the lower side of the stroke /
The feature is that the vector corresponding to the upper side is moved so that the line width at the time of enlargement / reduction is the minimum line width determined by the font of the outline character and its output (display) size.

〔発明の効果〕〔The invention's effect〕

以上、詳細に説明したように、本発明のアウトライン
文字の線幅制御方法は、ワードプロセッサ等において、
外輪郭のみ、又は、外輪郭と内輪郭とによって作成方向
が異なるアウトライン文字を、拡大/縮小して出力する
際、線幅制御用のパラメータとして、該アウトラインベ
クトルの書体によって定まる最小線長,最大線幅,
最小線幅を用意し、且つ、該最小線幅を該アウトラ
イン文字の出力サイズに対応して変化させて規定してお
き、該拡大/縮小した文字をベクトルに展開して、水平
線/垂直線ベクトルの検出を行い、同一文字線を構成し
ている上下,又は、左右方向のベクトル対を抽出し、該
抽出したベクトル対の重なりが、該アウトライン文字の
書体によって定まる最小線長以上で、且つ、上記ベク
トル対の線幅が、上記最小線幅以下であるベクトルに
対して、該ベクトル対の一方のベクトルの線幅方向の座
標を、必ず、上記出力サイズによって定まる最小線幅
となるように移動して、該線幅を同一とするようにした
ものであるので、該アウトライン文字を拡大/縮小して
表示するときの座標の計算誤差によって生じる線幅の不
揃いを防ぎ、品質のよい、きれいな文字の出力(表示)
を得ることができる効果がある。
As described above in detail, the outline character line width control method of the present invention is implemented in a word processor or the like.
When an outline character whose creation direction differs depending on the outer outline or the outer outline and the inner outline is enlarged / reduced and output, the minimum line length and the maximum length determined by the font of the outline vector are used as line width control parameters. Line width,
A minimum line width is prepared, and the minimum line width is defined by changing the minimum line width in accordance with the output size of the outline character, and the enlarged / reduced character is developed into a vector to obtain a horizontal line / vertical line vector. Is detected, and the vertical and horizontal vector pairs forming the same character line are extracted, and the overlap of the extracted vector pairs is equal to or greater than the minimum line length determined by the typeface of the outline character, and For a vector whose line width is equal to or smaller than the minimum line width, the coordinates in the line width direction of one of the vectors of the vector pair are moved so as to be always the minimum line width determined by the output size. Since the line widths are made the same, it is possible to prevent the line widths from becoming uneven due to a coordinate calculation error when the outline characters are enlarged / reduced and displayed. The output of the Ina characters (Display)
There is an effect that can be obtained.

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

第1図は本発明の原理説明図, 第2図は本発明の一実施例を示した図, 第3図はアウトライン文字の従来の線幅制御方式を説明
する図, である。 図面において、 1〜12はアウトライン文字のベクトルの端点, 20は座標変換部,21は拡大/縮小部, 22は線幅制御部, 100〜105は処理ステップ, は最小線長,は最大線幅, は最小線幅, a〜hはベクトル, をそれぞれ示す。
FIG. 1 is a diagram illustrating the principle of the present invention, FIG. 2 is a diagram illustrating an embodiment of the present invention, and FIG. 3 is a diagram illustrating a conventional line width control method for outline characters. In the drawing, 1 to 12 are endpoints of the outline character vector, 20 is a coordinate conversion unit, 21 is an enlargement / reduction unit, 22 is a line width control unit, 100 to 105 are processing steps, is a minimum line length, is a maximum line width. , Indicates a minimum line width, and a to h indicate vectors, respectively.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 古田 茂樹 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 平1−303489(JP,A) 特開 平2−234195(JP,A) 特開 平2−236595(JP,A) ────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shigeki Furuta 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (56) References JP-A-1-303489 (JP, A) JP-A-2-234195 (JP, A) JP-A-2-236595 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外輪郭のみ、又は、外輪郭と内輪郭とによ
って作成方向が異なるアウトライン文字を、拡大又は縮
小して出力する際の線幅制御方法であって、 線幅制御パラメータとして、該アウトライン文字の書体
と、所定の基準サイズによって定まる前記作成方向が異
なる対応するベクトル対の重なりの最小線長と、該ベク
トル対の最大線幅と、最小線幅を用意し、且つ、それぞ
れを出力サイズに対応して変化させて規定しておき、 前記アウトライン文字を構成している制御対象文字の拡
大又は縮小した各ベクトルデータについて、水平方向及
び、又は垂直方向部分を、上記方向別に分けて抽出し、 一方向の水平線及び、又は垂直線ベクトルに対して、他
の方向の水平線及び、又は垂直線のベクトルが対応する
ものとして、 前記対応するベクトルの座標の幅方向の差が、前記最大
線幅に対して、最大線幅×拡大率又は縮小率の値以下で
あり、対応する水平線及び、又は垂直線ベクトルの水平
方向及び、又は垂直方向の重なりが、前記最小線長に対
して、最小線長×拡大率又は縮小率の値以上であるベク
トルの組み合わせを、前記拡大又は縮小された制御対象
のアウトライン文字を構成するベクトルとし、 前記水平線及び、又は垂直線ベクトルの対応付けを、水
平線座標及び、又は垂直線座標の小さいものの順に行っ
て、該対応付けが認識されたとき、 対応するベクトルの前記水平線座標及び、又は垂直線座
標方向の差が、前記出力サイズによって規定された最小
線幅以下のものについて、必ず、前記出力サイズによっ
て規定された最小線幅になるように、一方の水平線及
び、又は垂直線ベクトルの座標をずらして、前記拡大又
は縮小されたアウトライン文字の線幅を決定することを
特徴とするアウトライン文字における線幅制御方法。
A line width control method for enlarging or reducing an outline character whose creation direction differs depending on only an outer outline or an outer outline and an inner outline, and outputs the outline character. The outline character typeface, the minimum line length of the overlap of the corresponding vector pairs having different creation directions determined by a predetermined reference size, the maximum line width of the vector pair, and the minimum line width are prepared, and each is output. For each vector data obtained by enlarging or reducing the control target character constituting the outline character, the horizontal direction and / or the vertical direction part is extracted separately for each of the above directions. The horizontal and / or vertical line vector in one direction corresponds to the vector of the horizontal and / or vertical line in the other direction, and the corresponding vector The difference in the width direction of the coordinates of the vector is less than or equal to the value of maximum line width × enlargement ratio or reduction ratio with respect to the maximum line width, and the horizontal direction and / or the vertical direction of the corresponding horizontal line and / or vertical line vector The combination of vectors whose overlap is equal to or greater than the value of the minimum line length x the enlargement ratio or the reduction ratio with respect to the minimum line length is defined as a vector constituting the enlarged or reduced outline character to be controlled, and the horizontal line And, or perform the correspondence of the vertical line vector, in the order of the horizontal line coordinate and / or the vertical line coordinate is small, when the correspondence is recognized, the horizontal line coordinate and / or vertical line coordinate direction of the corresponding vector For differences that are less than or equal to the minimum line width defined by the output size, one horizontal line, and / or so as to always be the minimum line width defined by the output size. Shifting the coordinates of the straight line vector, the line width controlling method in outline character, characterized by determining the line width of the magnified or reduced outline character.
JP2263369A 1990-10-01 1990-10-01 Line width control method for outline characters Expired - Fee Related JP2666552B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2263369A JP2666552B2 (en) 1990-10-01 1990-10-01 Line width control method for outline characters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2263369A JP2666552B2 (en) 1990-10-01 1990-10-01 Line width control method for outline characters

Publications (2)

Publication Number Publication Date
JPH04139496A JPH04139496A (en) 1992-05-13
JP2666552B2 true JP2666552B2 (en) 1997-10-22

Family

ID=17388536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2263369A Expired - Fee Related JP2666552B2 (en) 1990-10-01 1990-10-01 Line width control method for outline characters

Country Status (1)

Country Link
JP (1) JP2666552B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01303489A (en) * 1988-06-01 1989-12-07 Hitachi Ltd Character output system
JPH02158363A (en) * 1988-12-13 1990-06-18 Nec Off Syst Ltd Character generator
JP2903531B2 (en) * 1989-03-07 1999-06-07 ブラザー工業株式会社 Data converter
JP2836086B2 (en) * 1989-03-10 1998-12-14 セイコーエプソン株式会社 Character pattern data generator

Also Published As

Publication number Publication date
JPH04139496A (en) 1992-05-13

Similar Documents

Publication Publication Date Title
US4897638A (en) Method for generating character patterns with controlled size and thickness
KR970008546B1 (en) How to handle text or figures
JP3238580B2 (en) Thicker text generator
JP2876942B2 (en) Data converter
JP2666552B2 (en) Line width control method for outline characters
EP0461811B1 (en) Pattern processing method
JP2806679B2 (en) Character generator
JP2538631B2 (en) How to handle vector characters
JP3070822B2 (en) Contour data converter
JPH0823741B2 (en) How to process vector characters or graphics
JP2782752B2 (en) Character pattern output device
JP2753543B2 (en) Graphic output device
JPH0493992A (en) Character and graphic plotter device
JPH07262398A (en) Image processing method and apparatus thereof
JPH06167961A (en) System and device for character correction
JP3039214B2 (en) Data converter
JP2794748B2 (en) Chart copy machine
JPH0752466B2 (en) Raster operation device and method
JPH047168A (en) Character magnifying apparatus of dot printer
JPH03278190A (en) Polygon painting-out system
JPS62243076A (en) Font enlarger
JPH0573026A (en) Character figure generation method
JPH01318177A (en) Processing system for vector character
JPH05313634A (en) Outline font developing device
JPH04316865A (en) Device for correction of character pattern

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees