JPH06138865A - Outline font deforming device - Google Patents

Outline font deforming device

Info

Publication number
JPH06138865A
JPH06138865A JP4277198A JP27719892A JPH06138865A JP H06138865 A JPH06138865 A JP H06138865A JP 4277198 A JP4277198 A JP 4277198A JP 27719892 A JP27719892 A JP 27719892A JP H06138865 A JPH06138865 A JP H06138865A
Authority
JP
Japan
Prior art keywords
outline
line
contour
outline font
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4277198A
Other languages
Japanese (ja)
Other versions
JP3338484B2 (en
Inventor
Minoru Sakai
稔 境井
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP27719892A priority Critical patent/JP3338484B2/en
Publication of JPH06138865A publication Critical patent/JPH06138865A/en
Application granted granted Critical
Publication of JP3338484B2 publication Critical patent/JP3338484B2/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

PURPOSE:To make the outline of an outline font thick or thin by a specific quantity by correcting the outline of the outline font by the specified line width quantity and varying the thickness of the whole character, and outputting the character. CONSTITUTION:The outline font deforming device is equipped with an outline font data storage part 1, an input part 2 for the outline font, a line width correction part 3 which corrects the outline of the outline font and varies the thickness of the whole character such as a stem, a slanting line, and a curved line, a parameter input part 4 for specifying the correction quantity, an outline font output part 5 which outputs the deformed data, a storage part 6 for the deformed outline font data, and a control part 7. Then the line width correction part 3 moves the outline of the inputted outline font by the specified correction quantity to vary the thickness of the whole character. The correction is performed by moving the outline points at right angles to the segments connecting the outline points.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、アウトラインフォント
データを太くあるいは細くする変形装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transformation device for thickening or thinning outline font data.

【0002】[0002]

【従来の技術】画像を太くしたりあるいは細くしたりす
る方法として、例えば、特開昭63−245572号公
報に記載された画像処理方法がある。この方法は、画像
の輪郭を特定する点を移動することによって太くしたり
あるいは細くしたりするものである。
2. Description of the Related Art As a method for thickening or thinning an image, for example, there is an image processing method described in JP-A-63-245572. In this method, a point that specifies the contour of an image is moved to make it thicker or thinner.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記し
た従来の方法では、画像の輪郭を特定する点を移動する
際に、2法線の和を求めているために、移動方向に偏り
が生じて、図13に示すように元の図形(実線)の形状
が崩れた図形(破線)になるという問題がある。また、
上記した方法によると、輪郭線の移動量が線分毎に異な
り、図形全体の形状を制御することが難しいという問題
がある。
However, in the above-mentioned conventional method, when the point that specifies the contour of the image is moved, the sum of the two normals is obtained, so that a deviation occurs in the moving direction. As shown in FIG. 13, there is a problem that the shape of the original figure (solid line) becomes a broken figure (broken line). Also,
According to the method described above, there is a problem that the amount of movement of the contour line differs for each line segment and it is difficult to control the shape of the entire figure.

【0004】本発明の目的は、図形の形状を崩すことな
く、アウトラインフォントデータを太くあるいは細くす
る変形装置を提案することにある。
An object of the present invention is to propose a transforming device for thickening or thinning outline font data without breaking the shape of a graphic.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するため
に、請求項1記載の発明では、輪郭点を移動させること
によりアウトラインフォントを太くあるいは細くする変
形装置において、所定のデザインサイズのアウトライン
フォントを読み込む手段と、補正すべき線幅量を指定す
る手段と、該読み込まれたアウトラインフォントの輪郭
線を該指定された線幅量だけ補正して文字全体の太さを
変更する線幅補正手段と、該補正されたアウトラインフ
ォントを出力する手段を備えていることを特徴としてい
る。
In order to achieve the above object, according to the invention of claim 1, an outline font having a predetermined design size is used in a deforming device for thickening or thinning an outline font by moving contour points. And a means for designating a line width amount to be corrected, and a line width correcting means for correcting the outline of the read outline font by the specified line width amount to change the thickness of the entire character. And a means for outputting the corrected outline font.

【0006】請求項2記載の発明では、前記線幅補正手
段は、輪郭点を結ぶ線分のx軸となす角に従って該輪郭
点を移動することを特徴としている。
According to a second aspect of the present invention, the line width correcting means moves the contour point according to an angle formed by the x-axis of a line segment connecting the contour points.

【0007】請求項3記載の発明では、前記線幅補正手
段は、輪郭点を結ぶ線分の垂直方向に該輪郭点を移動す
ることを特徴としている。
According to a third aspect of the present invention, the line width correcting means moves the contour points in a vertical direction of a line segment connecting the contour points.

【0008】請求項4記載の発明では、前記線幅補正手
段は、輪郭点を結ぶ第1の線分と第2の線分が鋭角をな
して折り返すとき、先端点が形成されないように該第1
の線分と第2の線分を移動することを特徴としている。
According to a fourth aspect of the present invention, the line width correcting means prevents the tip point from being formed when the first line segment and the second line segment connecting the contour points are folded back at an acute angle. 1
It is characterized in that the line segment and the second line segment are moved.

【0009】請求項5記載の発明では、前記線幅補正手
段は、曲線部の移動を行うとき、該曲線の始点と終点を
結ぶ線分を用いて該移動方向を決定することを特徴とし
ている。
According to a fifth aspect of the present invention, the line width correcting means determines the moving direction by using a line segment connecting a start point and an end point of the curve when the curve portion is moved. .

【0010】請求項6記載の発明では、前記線幅補正手
段は、全ての輪郭点の座標をn倍(nは整数)した後に
輪郭線を補正し、前記出力手段は前記デザインサイズの
n倍のアウトラインフォントを出力することを特徴とし
ている。
According to a sixth aspect of the present invention, the line width correction means corrects the contour line after multiplying the coordinates of all contour points by n times (n is an integer), and the output means is n times the design size. It is characterized by outputting the outline font of.

【0011】請求項7記載の発明では、輪郭線の内点を
塗りつぶす際に、最初の輪郭線を黒塗り領域の開始点、
次の輪郭線を黒塗り領域の終了点と判定する第1のピク
セル処理系と、最初の輪郭線を黒塗り領域の開始点、次
の輪郭線を白塗り領域の開始点と判定する第2のピクセ
ル処理系があるとき、前記線幅補正手段は、前記第1の
ピクセル処理系用にデザインされたアウトラインフォン
トの輪郭線が前記第2のピクセル処理系においても同一
のデザインとなるように、あるいは前記第2のピクセル
処理系用にデザインされたアウトラインフォントの輪郭
線が前記第1のピクセル処理系においても同一のデザイ
ンとなるように、該輪郭線を制御することを特徴として
いる。
According to the seventh aspect of the invention, when filling the inner points of the contour line, the first contour line is defined as the start point of the black-painted area,
The first pixel processing system that determines the next contour line as the end point of the black-painted area, and the second contour line that determines the first contour line as the start point of the black-painted area and the next contour line as the start point of the white-painted area. When there is a pixel processing system of the above, the line width correcting means makes the outline of the outline font designed for the first pixel processing system have the same design in the second pixel processing system. Alternatively, the outline line is controlled so that the outline line of the outline font designed for the second pixel processing system has the same design in the first pixel processing system.

【0012】[0012]

【作用】線幅補正部は、入力されたアウトラインフォン
トの輪郭線を指定された補正量だけ移動して文字全体の
太さを変える。その補正は、輪郭点を結ぶ線分のx軸と
なす角に従って、あるいは輪郭点を結ぶ線分の垂直方向
に輪郭点を移動することにより行う。また、鋭い先端点
を持つ輪郭線の場合は、該先端点が形成されないように
線分を移動して形状の崩れを防止する。
The line width correction unit changes the thickness of the entire character by moving the outline of the input outline font by the specified correction amount. The correction is performed according to the angle formed by the x-axis of the line segment connecting the contour points, or by moving the contour point in the vertical direction of the line segment connecting the contour points. Further, in the case of a contour line having a sharp tip point, the line segment is moved so that the tip point is not formed and the shape is prevented from collapsing.

【0013】[0013]

【実施例】以下、本発明の一実施例を図面を用いて具体
的に説明する。 〈実施例1〉図1は、本発明の実施例のブロック構成図
であり、1はアウトラインフォントデータ格納部、2は
アウトラインフォントの入力部、3は入力されたアウト
ラインフォントの輪郭線を補正することによりステム、
斜線、曲線など文字全体の太さを変える線幅補正部、4
は補正量を指定するためのパラメータ入力部、5は変形
されたデータを出力するアウトラインフォント出力部、
6は変形されたアウトラインフォントデータの格納部、
7はこれら各部を制御する制御部である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be specifically described below with reference to the drawings. <Embodiment 1> FIG. 1 is a block diagram of an embodiment of the present invention, in which 1 is an outline font data storage unit, 2 is an outline font input unit, and 3 is a contour line of an input outline font. By the stem,
Line width correction unit that changes the thickness of the entire character such as diagonal lines and curves, 4
Is a parameter input unit for designating the correction amount, 5 is an outline font output unit for outputting the transformed data,
6 is a storage area for the transformed outline font data,
A control unit 7 controls each of these units.

【0014】以下の実施例の説明においては、x軸は
右、y軸は上方向を向いているものとする。また、輪郭
線はそれをたどる方向に対して右側が黒塗り領域である
ものとする。
In the following description of the embodiments, it is assumed that the x-axis is facing right and the y-axis is facing upward. Further, the right side of the contour line in the direction of tracing the contour line is a black-painted area.

【0015】図2は、本実施例の線幅補正部3において
使用される輪郭点テーブルを示す。すなわち、輪郭点番
号とその座標データ(orig)の組が格納されてい
る。これらは、アウトラインフォントの入力部2から得
られるものである。また、これらの座標データは、それ
ぞれの輪郭線として区分されているものとする。さら
に、テーブル中のmovedには、後述するように移動
された輪郭点の新座標が格納される。
FIG. 2 shows a contour point table used in the line width correction unit 3 of this embodiment. That is, a set of contour point numbers and their coordinate data (orig) is stored. These are obtained from the outline font input unit 2. Further, it is assumed that these coordinate data are divided into respective contour lines. Further, the moved coordinates in the table store new coordinates of the moved contour point as described later.

【0016】図3は、輪郭線に対するヒンティング(太
くあるいは細くする処理)を行うための処理フローチャ
ートであり、図1の線幅補正部3によって実行される。
すなわち、全ての輪郭点に対し(ステップ101)、処
理対象の点(c)とその前の点(p)とその後の点
(n)を与えて(ステップ102、103)、関数Ne
wCoordを呼び出し、戻り値である処理後の座標m
oved〔c〕を、図2の該当する位置に記録する(ス
テップ104)。以下、p,c,nを順次増やして(ス
テップ105)処理を繰り返す。
FIG. 3 is a processing flowchart for performing hinting (thickening or thinning processing) on the contour line, which is executed by the line width correction unit 3 in FIG.
That is, for all contour points (step 101), the point (c) to be processed, the point (p) before that, and the point (n) after that are given (steps 102 and 103), and the function Ne
Coordinates m after processing that is a return value after calling wCoord
The overd [c] is recorded at the corresponding position in FIG. 2 (step 104). Thereafter, p, c, and n are sequentially increased (step 105) and the process is repeated.

【0017】図4は、関数NewCoordの処理フロ
ーチャートである。すなわち、直前の点(p)から処理
対象の点(c)に至る線分を移動するためのベクトルS
hiftVector(p,c)と処理対象の点(c)
から直後の点(n)に至る線分を移動するためのベクト
ルShiftVector(c,n)とを求め(ステッ
プ201)、それぞれの始点、終点(ステップ202で
は、始点がorig〔p〕、終点がorig〔c〕、ス
テップ203では、始点がorig〔c〕、終点がor
ig〔n〕)をそのベクトル方向に、パラメータ入力部
4から指定された補正量wだけ移動し(ステップ20
2、203)、得られた2直線の交点Intersec
tionを求めて、それを新座標NewCoordとし
て返す(ステップ204)。
FIG. 4 is a processing flowchart of the function NewCoord. That is, the vector S for moving the line segment from the immediately preceding point (p) to the processing target point (c)
shiftVector (p, c) and point to be processed (c)
To a point (n) immediately after the shift vector (Shift201 (c, n)) and a vector ShiftVector (c, n) are calculated (step 201), and the start point and the end point (in step 202, the start point is orig [p], the end point is orig [c], in step 203, the start point is orig [c] and the end point is or
ig [n]) is moved in the vector direction by the correction amount w designated by the parameter input unit 4 (step 20).
2, 203), the intersection point of the obtained two straight lines Intersec
and the new coordinate NewCoord is returned (step 204).

【0018】図5は、上記した図4で用いられる関数S
hiftVectorの処理フローチャートである。こ
れは2点間のx座標とy座標の相違を計算し、その絶対
値がx軸の方が大きければ、なだらかな斜線と判断し
(ステップ301、302)、そうでなければ急な斜線
と判断する(ステップ301、303)。
FIG. 5 shows the function S used in FIG. 4 described above.
It is a processing flowchart of shiftVector. This calculates the difference between the x-coordinate and the y-coordinate between the two points, and if the absolute value is larger on the x-axis, it is judged to be a gentle diagonal line (steps 301 and 302), and if not, it is a steep diagonal line. It is determined (steps 301 and 303).

【0019】なだらかな斜線の始点のx座標(xs)が
終点のそれ(xe)よりも大きければ、黒塗り領域の下
端をなすことが分かるので、下向きの単位ベクトル
(0,−1)を返す(ステップ305)。終点のx座標
(xe)が始点のそれ(xs)よりも大きければ、黒塗
り領域の上端をなすことが分かるので、上向きの単位ベ
クトル(0,1)を返す(ステップ304)。急な斜線
についてもy軸方向について同様の処理を行う。
If the x-coordinate (xs) of the start point of the gentle diagonal line is larger than that (xe) of the end point, it can be seen that it forms the lower end of the black-painted area, and therefore the downward unit vector (0, -1) is returned. (Step 305). If the x-coordinate (xe) of the end point is larger than that (xs) of the start point, it is known that it forms the upper end of the black-painted area, and therefore an upward unit vector (0, 1) is returned (step 304). Similar processing is performed in the y-axis direction even for steep diagonal lines.

【0020】これによって、線幅補正部3は、輪郭点を
結ぶ線分のx軸となす角に従って輪郭点を移動処理す
る。図9は、本実施例によって輪郭点が移動処理された
結果を示す図である。上記実施例では、45度を境界と
して4種類に分けているが、これに限定されるものでは
なく、例えば8分割するなど種々の方法がある。
As a result, the line width correction unit 3 moves the contour points according to the angle of the line segment connecting the contour points with the x-axis. FIG. 9 is a diagram showing a result of the movement processing of the contour points according to the present embodiment. In the above-mentioned embodiment, 45 degrees are used as boundaries to divide into four types, but the present invention is not limited to this, and there are various methods such as eight divisions.

【0021】〈実施例2〉図6は、上記した図4で用い
られる関数ShiftVectorの他の実施例の処理
フローチャートである。この処理では、まず始点から終
点に至るベクトルを求め(ステップ401)、これを反
時計回りに90度回転させた単位ベクトル(−y/N,
x/N)を返すものである(ステップ402)。
<Second Embodiment> FIG. 6 is a processing flowchart of another embodiment of the function ShiftVector used in FIG. 4 described above. In this process, first, a vector from the start point to the end point is obtained (step 401), and a unit vector (-y / N,
x / N) is returned (step 402).

【0022】これにより、線幅補正部3は、輪郭点を結
ぶ線分の垂直方向に、輪郭点を移動処理する。図10
は、本実施例によって輪郭点が移動処理された結果を示
す図である。
As a result, the line width correction unit 3 moves the contour points in the vertical direction of the line segment connecting the contour points. Figure 10
[Fig. 6A] is a diagram showing a result of movement processing of contour points according to the present embodiment.

【0023】〈実施例3〉図7は、前述した関数New
Coordの他の実施例の処理フローチャートである。
この処理フローチャートにおいて、ステップ501、5
02、503、505は、図4の関数NewCoord
の処理フローチャートにおけるステップ201から20
4と同じものである。この実施例では、ステップ50
4、506、507が新たに付加されている。
<Third Embodiment> FIG. 7 shows the function New described above.
It is a processing flowchart of another Example of Coord.
In this processing flowchart, steps 501 and 5
02, 503, and 505 are the functions NewCoord of FIG.
201 to 20 in the processing flowchart of
It is the same as 4. In this example, step 50
4, 506 and 507 are newly added.

【0024】すなわち、処理対象の点が鋭い先端点にな
っているとき(ステップ504)、新しく点を追加し
(ステップ506)、極端な形状の変化を避けた実施例
である。図11は、この実施例による処理結果を示す。
すなわち、点2、点6、点3からなる輪郭線は、点6が
鋭い先端点となっているので、上記したような輪郭点の
移動処理を行うと、点1、点8、点4となる一部破線で
示す輪郭線となり、形状の変化が極端なものとなる(点
6がより鋭くなる程、点8の位置が遠くなる)。
That is, in this embodiment, when the point to be processed is a sharp tip point (step 504), a new point is added (step 506) to avoid an extreme change in shape. FIG. 11 shows the processing result according to this embodiment.
That is, the contour line consisting of the points 2, 6, and 3 has a sharp tip point, so that the contour point movement processing as described above results in the points 1, 8, and 4. Becomes a contour line indicated by a broken line, and the change in shape becomes extreme (the sharper point 6 is, the farther the position of point 8 is).

【0025】そこで、本実施例では、ステップ506で
点5を追加し(点5は点6を移動したものであり、また
点7は点6を移動したものである。ステップ507で
は、StartNextは点7となる)、点線部分の輪
郭線を抑止して形状の崩れを防止している。なお、この
例では、先端点6を2重化し、それを上下に広げた例を
示したが、これを必要な幅だけ右に移動すれば形状変化
はより少なくて済む。
Therefore, in this embodiment, point 5 is added in step 506 (point 5 is obtained by moving point 6, and point 7 is obtained by moving point 6. In step 507, StartNext is It becomes a point 7), and the outline of the dotted line portion is suppressed to prevent the shape from collapsing. In this example, the tip point 6 is doubled and the tip point 6 is widened up and down. However, if the tip point 6 is moved to the right by the required width, the change in shape can be further reduced.

【0026】〈実施例4〉図8は、他の実施例の処理フ
ローチャートである。この実施例では、処理対象の点を
曲線上でない点とし、これより前の最初の曲線上でない
点と、これより後の最初の曲線上でない点とを用いて、
上述したと同様の処理を行い、移動は前後の点に挾まれ
る全ての点に対して行うものである。つまり、ステップ
604で曲線上の点(図12の点3)を見つけ、ステッ
プ605からステップ607で曲線の始点を探す(ステ
ップ606のpは図12の点2となる)。ステップ60
8からステップ610で曲線の終点を探す(ステップ6
09のnは図12の点5となる)。ステップ611から
ステップ616で、曲線の始点、終点(図12の点2、
5)と曲線の制御点(図12の点3、4)に対して平行
移動処理を行う。
<Fourth Embodiment> FIG. 8 is a processing flowchart of another embodiment. In this example, the point to be processed is a point that is not on a curve, and using a point that is not on the first curve before this and a point that is not on the first curve after this,
The same processing as described above is performed, and the movement is performed for all the points sandwiched by the points before and after. That is, a point on the curve (point 3 in FIG. 12) is found in step 604, and a starting point of the curve is searched for in steps 605 to 607 (p in step 606 becomes point 2 in FIG. 12). Step 60
From 8 to step 610, find the end point of the curve (step 6
The n of 09 is point 5 in FIG. From step 611 to step 616, the start and end points of the curve (point 2 in FIG. 12,
5) and the control points of the curve (points 3 and 4 in FIG. 12) are translated.

【0027】図12は、本実施例による処理結果を示
す。点1と点2で線分が構成され、点5と点6で線分が
構成され、点2(曲線の始点)から点5(曲線の終点)
によって曲線が構成されている。また、点3、点4は曲
線の制御点である。
FIG. 12 shows the processing result according to this embodiment. Point 1 and point 2 form a line segment, point 5 and point 6 form a line segment, and point 2 (start point of curve) to point 5 (end point of curve)
The curve is composed of. Further, points 3 and 4 are control points of the curve.

【0028】点1、点2の線分と、点2、点5の線分
と、点5、点6の線分に対しては、上述したと同様の処
理を行う。すなわち、点1、点2の線分を、その垂直方
向に太らせ、点2、点5の線分を、右方向に移動させ、
同様に点5、点6の線分をその垂直方向に太らせる。そ
して、点2と点5を結ぶ線分の右方向の移動量と同じだ
け、点3と点4を結ぶ線分を右方向に移動することによ
り図12に示す結果が得られる。
For the line segments of points 1 and 2, the line segments of points 2 and 5, and the line segments of points 5 and 6, the same processing as described above is performed. That is, the line segments of points 1 and 2 are thickened in the vertical direction, and the line segments of points 2 and 5 are moved to the right,
Similarly, the line segments of points 5 and 6 are thickened in the vertical direction. Then, the result shown in FIG. 12 is obtained by moving the line segment connecting the points 3 and 4 to the right by the same amount as the rightward movement amount of the line segment connecting the points 2 and 5.

【0029】なお、ここでは、始点、終点に挾まれた2
制御点(点3、点4)で構成されるベツィエ曲線を例に
示したが、スプライン曲線などにおいても全く同様であ
る。
It should be noted that, here, the two points between the start point and the end point
The Bezier curve composed of the control points (points 3 and 4) has been shown as an example, but the same applies to the spline curve and the like.

【0030】〈実施例5〉ところで、輪郭点の座標とし
て整数しか許さない処理系においては、輪郭線を2ピク
セルずつ太くする場合には全体を1ピクセルずつ太くす
れば良い。ところが輪郭線を1ピクセル太くしようとす
ると、問題が起きる。つまり、全体を0.5ピクセル太
くすることができない。そこで、本実施例の線幅補正部
3では、すべての輪郭点の座標値を2倍し(256×2
56ピクセル空間を512×512ピクセル空間にす
る)、そこで全体を1ピクセルずつ太くすることによっ
て実質的に同様の効果を得ることができる。もちろん変
倍時のパラメータとしてこの拡大量を用いなければなら
ない。
<Embodiment 5> In a processing system that allows only integers as the coordinates of contour points, if the contour line is made thicker by 2 pixels, the whole may be made thicker by 1 pixel. However, there is a problem when trying to make the contour line thicker by 1 pixel. That is, the entire pixel cannot be thickened by 0.5 pixel. Therefore, the line width correction unit 3 of the present embodiment doubles the coordinate values of all contour points (256 × 2).
By making the 56-pixel space 512 × 512-pixel space), and by thickening the whole pixel by one pixel, substantially the same effect can be obtained. Of course, this amount of enlargement must be used as a parameter during zooming.

【0031】〈実施例6〉輪郭線の内点を塗りつぶす際
に、最初に出会った輪郭線を黒塗り領域の開始点、次に
出会ったものを黒塗り領域の終了点と判定する第1のピ
クセル処理方式と、最初に出会った輪郭線を黒塗り領域
の開始点、次に出会った輪郭線を白塗り領域の開始点と
判定する第2のピクセル処理方式とがある。このような
塗りつぶし方式の相違は、ピクセルとは何であるかとい
う定義の相違から生じるものである。
<Embodiment 6> When the inner points of the contour line are filled, it is determined that the first contour line encountered is the start point of the black-painted area and the next contour line is the end point of the black-painted area. There are a pixel processing method and a second pixel processing method in which the contour line first encountered is determined as the start point of the black-painted area and the contour line encountered next is determined as the start point of the white-painted area. The difference in the filling method arises from the difference in the definition of what a pixel is.

【0032】従って、第1のピクセル処理方式用にデザ
インされたアウトラインフォントの輪郭線を、第2のピ
クセル処理方式に渡して処理すると、その線幅が細くな
り、線幅の同一性が保証されない。そこで、本実施例で
は、線幅補正部3では、第1のピクセル処理方式用にデ
ザインされたアウトラインフォントのすべての輪郭線を
全体的に0.5ピクセルずつ太くしてから、第2のピク
セル処理方式に輪郭線データを渡すようにする。これに
よって、第2のピクセル処理方式で処理しても、第1の
ピクセル処理方式用にデザインされたアウトラインフォ
ントと同一の形状のものが得られることになる。もちろ
ん、上記したものと逆に、第2のピクセル処理方式を第
1のピクセル処理方式に変換する場合についても、線幅
補正部で輪郭線を制御することによって、両ピクセル処
理方式において同一形状の文字が得られる。
Therefore, when the outline of the outline font designed for the first pixel processing method is passed to the second pixel processing method for processing, the line width becomes thin and the line widths are not guaranteed to be the same. . Therefore, in the present embodiment, the line width correction unit 3 thickens all the outlines of the outline font designed for the first pixel processing method by 0.5 pixels as a whole, and then the second pixel Contour data is passed to the processing method. As a result, even if the processing is performed by the second pixel processing method, a font having the same shape as the outline font designed for the first pixel processing method can be obtained. Of course, contrary to the above, in the case of converting the second pixel processing method into the first pixel processing method, the contour shape is controlled by the line width correction unit so that the same shape is obtained in both pixel processing methods. The character is obtained.

【0033】[0033]

【発明の効果】以上、説明したように、請求項1記載の
発明によれば、アウトラインフォント変形装置を、アウ
トラインフォントの読み込む手段と、補正する線幅量の
指定手段と、読み込まれたアウトラインフォントの輪郭
線を指定された線幅量だけ補正して文字全体の太さを変
更する線幅補正手段と、補正されたアウトラインフォン
トを出力する手段によって構成しているので、アウトラ
インフォントの輪郭線を所定量だけ太くしたり細くした
りすることが可能となる。
As described above, according to the first aspect of the present invention, the outline font transforming device is provided with a means for reading the outline font, a means for specifying the line width amount to be corrected, and the read outline font. Since it is composed of line width correction means that corrects the contour line of the specified amount of line width and changes the thickness of the entire character, and means that outputs the corrected outline font, the outline font outline line It is possible to make it thicker or thinner by a predetermined amount.

【0034】請求項2記載の発明によれば、輪郭点を結
ぶ線分のx軸となす角に従って輪郭点を移動処理してい
るので、少ない計算量によってアウトラインフォントの
輪郭線を太くしたり細くしたりすることができる。
According to the second aspect of the invention, since the contour points are moved according to the angle formed by the x-axis of the line segment connecting the contour points, the contour font of the outline font can be thickened or thinned with a small amount of calculation. You can

【0035】請求項3記載の発明によれば、輪郭点を結
ぶ線分の垂直方向に該輪郭点を移動処理しているので、
輪郭線の幅の変化量を文字全体で一定に保持することが
でき、高品質の文字を構成することができる。
According to the third aspect of the invention, since the contour points are moved in the vertical direction of the line segment connecting the contour points,
The amount of change in the width of the contour line can be kept constant over the entire character, and high-quality characters can be constructed.

【0036】請求項4記載の発明によれば、2つの線分
が鋭角をなすとき、先端点が形成されないように線分を
移動しているので、極端に形状が変化することを防止す
ることができる。
According to the fourth aspect of the present invention, when the two line segments form an acute angle, the line segments are moved so that the end points are not formed. Therefore, it is possible to prevent the shape from changing extremely. You can

【0037】請求項5記載の発明によれば、曲線部の移
動を行うとき曲線の始点と終点を結ぶ線分を用いてその
移動方向を決定しているので、曲線部においても確実に
その形状を保持して輪郭線を太くしたり細くしたりする
ことができる。
According to the fifth aspect of the invention, when the curved portion is moved, the moving direction is determined by using the line segment connecting the start point and the end point of the curved portion. Can be held to make the contour line thicker or thinner.

【0038】請求項6記載の発明によれば、全ての輪郭
点の座標をn倍した後に輪郭線を補正しているので、1
ピクセル単位以下の変形も可能となる。
According to the sixth aspect of the invention, the contour line is corrected after the coordinates of all the contour points are multiplied by n.
It is possible to change the pixel unit or less.

【0039】請求項7記載の発明によれば、第1のピク
セル処理系用にデザインされたアウトラインフォントの
輪郭線が第2のピクセル処理系においても同一のデザイ
ンとなるように、あるいは第2のピクセル処理系用にデ
ザインされたアウトラインフォントの輪郭線が第1のピ
クセル処理系においても同一のデザインとなるように、
輪郭線を制御しているので、第1のピクセル処理系と第
2のピクセル処理系において同一形状の文字を得ること
ができる。
According to the seventh aspect of the present invention, the outline of the outline font designed for the first pixel processing system has the same design in the second pixel processing system, or The outline of the outline font designed for the pixel processing system has the same design in the first pixel processing system.
Since the contour line is controlled, the characters having the same shape can be obtained in the first pixel processing system and the second pixel processing system.

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

【図1】本発明の実施例のブロック構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】線幅補正部において使用される輪郭点テーブル
である。
FIG. 2 is a contour point table used in a line width correction unit.

【図3】輪郭線に対するヒンティングを行うための処理
フローチャートである。
FIG. 3 is a processing flowchart for hinting a contour line.

【図4】関数NewCoordの処理フローチャートで
ある。
FIG. 4 is a processing flowchart of a function NewCoord.

【図5】関数ShiftVectorの処理フローチャ
ートである。
FIG. 5 is a processing flowchart of a function ShiftVector.

【図6】関数ShiftVectorの他の実施例の処
理フローチャートである。
FIG. 6 is a processing flowchart of another embodiment of the function ShiftVector.

【図7】関数NewCoordの他の実施例の処理フロ
ーチャートである。
FIG. 7 is a processing flowchart of another embodiment of the function NewCoord.

【図8】他の実施例の処理フローチャートである。FIG. 8 is a processing flowchart of another embodiment.

【図9】本実施例によって輪郭点が移動処理された結果
を示す図である。
FIG. 9 is a diagram showing a result of movement processing of contour points according to the present embodiment.

【図10】他の実施例によって輪郭点が移動処理された
結果を示す図である。
FIG. 10 is a diagram showing a result of movement processing of contour points according to another embodiment.

【図11】先端点を有する場合における他の実施例の処
理結果を示す図である。
FIG. 11 is a diagram showing a processing result of another embodiment in the case of having a tip point.

【図12】曲線部を移動処理した結果を示す図である。FIG. 12 is a diagram showing a result of moving processing of a curved portion.

【図13】従来技術による輪郭の移動を説明する図であ
る。
FIG. 13 is a diagram illustrating movement of a contour according to a conventional technique.

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

1、6 アウトラインフォントデータ格納部 2 アウトラインフォント入力部 3 線幅補正部 4 パラメータ入力部 5 アウトラインフォント出力部 7 制御部 1, 6 Outline font data storage unit 2 Outline font input unit 3 Line width correction unit 4 Parameter input unit 5 Outline font output unit 7 Control unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 輪郭点を移動させることによりアウトラ
インフォントを太くあるいは細くする変形装置におい
て、所定のデザインサイズのアウトラインフォントを読
み込む手段と、補正すべき線幅量を指定する手段と、該
読み込まれたアウトラインフォントの輪郭線を該指定さ
れた線幅量だけ補正して文字全体の太さを変更する線幅
補正手段と、該補正されたアウトラインフォントを出力
する手段を備えていることを特徴とするアウトラインフ
ォント変形装置。
1. A transforming device for thickening or thinning an outline font by moving contour points, a means for reading an outline font having a predetermined design size, a means for designating a line width amount to be corrected, and the reading means. And a line width correcting means for correcting the outline of the outline font by the specified line width amount to change the thickness of the entire character, and a means for outputting the corrected outline font. Outline font transforming device.
【請求項2】 前記線幅補正手段は、輪郭点を結ぶ線分
のx軸となす角に従って該輪郭点を移動することを特徴
とする請求項1記載のアウトラインフォント変形装置。
2. The outline font transforming apparatus according to claim 1, wherein the line width correcting means moves the contour points according to an angle formed by the x-axis of a line segment connecting the contour points.
【請求項3】 前記線幅補正手段は、輪郭点を結ぶ線分
の垂直方向に該輪郭点を移動することを特徴とする請求
項1記載のアウトラインフォント変形装置。
3. The outline font transformation device according to claim 1, wherein the line width correction means moves the contour point in a vertical direction of a line segment connecting the contour points.
【請求項4】 前記線幅補正手段は、輪郭点を結ぶ第1
の線分と第2の線分が鋭角をなして折り返すとき、先端
点が形成されないように該第1の線分と第2の線分を移
動することを特徴とする請求項1記載のアウトラインフ
ォント変形装置。
4. The line width correcting means is a first connecting the contour points.
2. The outline according to claim 1, wherein the first line segment and the second line segment are moved so that a tip point is not formed when the line segment and the second line segment are turned back at an acute angle. Font transformation device.
【請求項5】 前記線幅補正手段は、曲線部の移動を行
うとき、該曲線の始点と終点を結ぶ線分を用いて該移動
方向を決定することを特徴とする請求項1記載のアウト
ラインフォント変形装置。
5. The outline according to claim 1, wherein the line width correcting means determines the moving direction by using a line segment connecting a start point and an end point of the curve when the curve portion is moved. Font transformation device.
【請求項6】 前記線幅補正手段は、全ての輪郭点の座
標をn倍(nは整数)した後に輪郭線を補正し、前記出
力手段は前記デザインサイズのn倍のアウトラインフォ
ントを出力することを特徴とする請求項1記載のアウト
ラインフォント変形装置。
6. The line width correcting means corrects the outline after multiplying the coordinates of all the outline points by n times (n is an integer), and the output means outputs an outline font of n times the design size. The outline font transforming device according to claim 1, wherein
【請求項7】 輪郭線の内点を塗りつぶす際に、最初の
輪郭線を黒塗り領域の開始点、次の輪郭線を黒塗り領域
の終了点と判定する第1のピクセル処理系と、最初の輪
郭線を黒塗り領域の開始点、次の輪郭線を白塗り領域の
開始点と判定する第2のピクセル処理系があるとき、前
記線幅補正手段は、前記第1のピクセル処理系用にデザ
インされたアウトラインフォントの輪郭線が前記第2の
ピクセル処理系においても同一のデザインとなるよう
に、あるいは前記第2のピクセル処理系用にデザインさ
れたアウトラインフォントの輪郭線が前記第1のピクセ
ル処理系においても同一のデザインとなるように、該輪
郭線を制御することを特徴とする請求項1記載のアウト
ラインフォント変形装置。
7. A first pixel processing system for determining a first contour line as a start point of a black-painted area and a next contour line as an end point of a black-painted area when filling the inner points of the contour line, and When there is a second pixel processing system that determines that the contour line of the above is the start point of the black-painted area and the next contour line is the start point of the white-painted area, the line width correction means So that the contour line of the outline font designed for the second pixel processing system has the same design, or the contour line of the outline font designed for the second pixel processing system has the same design. 2. The outline font transformation device according to claim 1, wherein the outline is controlled so that the pixel processing system has the same design.
JP27719892A 1992-09-09 1992-10-15 Outline font transformation device Expired - Fee Related JP3338484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27719892A JP3338484B2 (en) 1992-09-09 1992-10-15 Outline font transformation device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4-240827 1992-09-09
JP24082792 1992-09-09
JP27719892A JP3338484B2 (en) 1992-09-09 1992-10-15 Outline font transformation device

Publications (2)

Publication Number Publication Date
JPH06138865A true JPH06138865A (en) 1994-05-20
JP3338484B2 JP3338484B2 (en) 2002-10-28

Family

ID=26534951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27719892A Expired - Fee Related JP3338484B2 (en) 1992-09-09 1992-10-15 Outline font transformation device

Country Status (1)

Country Link
JP (1) JP3338484B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0657848A2 (en) * 1993-12-09 1995-06-14 Canon Kabushiki Kaisha Character generating apparatus and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0657848A2 (en) * 1993-12-09 1995-06-14 Canon Kabushiki Kaisha Character generating apparatus and method
EP0657848A3 (en) * 1993-12-09 1996-09-18 Canon Kk Character generating apparatus and method.
US5959634A (en) * 1993-12-09 1999-09-28 Canon Kabushiki Kaisha Character generating system employing thickening or narrowing of characters

Also Published As

Publication number Publication date
JP3338484B2 (en) 2002-10-28

Similar Documents

Publication Publication Date Title
US4620287A (en) Method and apparatus for representation of a curve of uniform width
US5642476A (en) Computer generated variable line width of a vector graphic
JP2634851B2 (en) Image processing device
JPH06138865A (en) Outline font deforming device
KR0147440B1 (en) Method and system for drawing lines of width
JP3243293B2 (en) Contour correction method
US7821515B2 (en) Method for automatic font character height restriction
JP3266905B2 (en) Graphic processing unit
JPH05323937A (en) Hinting processing method
JPH0493992A (en) Character and graphic plotter device
JP3215179B2 (en) Hinting outline fonts
JPH02244390A (en) Stroke extracting device
JP2536764Y2 (en) Image processing device
Maas et al. Data reduction for the representation of curves by piecewise polynomials
JP2634906B2 (en) Image processing method
CN117710988A (en) Seal bending text line correction method, device and system
JP3077128B2 (en) Fine line preservation conversion method
JPH0934435A (en) Character output device
JPH03290691A (en) Reduction method for vector font
JPH087794B2 (en) Image processing method
JPH0424689A (en) Image processor
JPS63245572A (en) Picture processing method
JPH03146995A (en) Character generating device
JP2001034772A (en) Device and method for processing graphic
JPH0877372A (en) Outline painting-out device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080809

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080809

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090809

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090809

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100809

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100809

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110809

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110809

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120809

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees