JP2802646B2 - A scaling method for character patterns using vector fonts - Google Patents

A scaling method for character patterns using vector fonts

Info

Publication number
JP2802646B2
JP2802646B2 JP1138628A JP13862889A JP2802646B2 JP 2802646 B2 JP2802646 B2 JP 2802646B2 JP 1138628 A JP1138628 A JP 1138628A JP 13862889 A JP13862889 A JP 13862889A JP 2802646 B2 JP2802646 B2 JP 2802646B2
Authority
JP
Japan
Prior art keywords
scaling
point
attribute information
vector font
data
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
JP1138628A
Other languages
Japanese (ja)
Other versions
JPH032895A (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.)
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 JP1138628A priority Critical patent/JP2802646B2/en
Publication of JPH032895A publication Critical patent/JPH032895A/en
Application granted granted Critical
Publication of JP2802646B2 publication Critical patent/JP2802646B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 この発明は、ワードプロセツサやオフイスコンピユー
タ、DPS(データ・プロセツシング・システム)、ワー
クステーシヨン、DTP(デスク・トツプ・パブリツシン
グ)、電子出版システムその他各種のベクトルフオント
による文字パターンの変倍処理機能を備えた情報処理装
置で使用するのに好適な、ベクトルフオントによる文字
パターンの変倍処理方法に係り、特に、ベクトルフオン
トデータの変倍処理時に、高品質の文字パターンが得ら
れるようにしたベクトルフオントによる文字パターンの
変倍処理方法に関する。
The present invention relates to a word processor, an office computer, a DPS (data processing system), a work station, a DTP (desktop publishing), an electronic publishing system, and various other applications. The present invention relates to a method of scaling a character pattern by a vector font, which is suitable for use in an information processing apparatus having a function of scaling a character pattern by a vector font. The present invention relates to a character pattern scaling processing method using a vector font capable of obtaining a character pattern of

従来の技術 従来から、ワードプロセツサ、DPSその他の情報処理
システムでは、文字パターンを形成するベクトルフオン
トの情報を記憶させておき、このベクトルフオントの情
報によつて文字を出力する文字パターン発生機能が付加
されている。
2. Description of the Related Art Conventionally, in a word processor, a DPS, and other information processing systems, a character pattern generating function for storing information of a vector font forming a character pattern and outputting a character based on the information of the vector font is provided. Has been added.

この場合に使用されるベクトルフオントの情報は、1
文字を形成する輪郭を直線で結ぶ各点の座標位置の情報
(ポイントデータ)である。換言すれば、ベクトルフオ
ントの情報は、文字を形成する独立した一画や数画の部
分パターン毎に各連結点の座標からなり、それぞれが閉
ループを形成する一連の情報群によつて構成されてい
る。
The information of the vector font used in this case is 1
This is information (point data) on the coordinate position of each point connecting outlines forming characters with straight lines. In other words, the information of the vector font is composed of the coordinates of each connection point for each of one or several independent partial patterns forming a character, and is configured by a series of information groups each forming a closed loop. I have.

まず、従来のベクトルフオントによる文字パターンの
変倍処理機能を備えた情報処理システムの構成につい
て、そのハード的な構成例を説明する。
First, an example of a hardware configuration of a conventional information processing system having a function of scaling a character pattern by a vector font will be described.

第7図は、従来のベクトルフオントによる文字パター
ンの変倍処理機能を有する情報処理システムについて、
その要部構成の一例を示す機能ブロツク図である。図面
において、1はベクトルフオント記憶手段、2は変倍処
理手段、3は新座標生成手段、4はパターン形成手段を
示す。
FIG. 7 shows a conventional information processing system having a function of scaling a character pattern by a vector font.
FIG. 2 is a functional block diagram showing an example of the configuration of the main part. In the drawing, 1 is a vector font storage means, 2 is a scaling processing means, 3 is a new coordinate generating means, and 4 is a pattern forming means.

ベクトルフオント記憶手段1は、システムが必要とす
る各文字について、文字毎に、各連結点の座標からなる
ベクトルデータを記憶しており、ベクトルデータは、基
準ドツトサイズの各ポイントデータ(座標値)として予
め設定されている。
The vector font storage means 1 stores, for each character required by the system, vector data consisting of the coordinates of each connection point for each character. The vector data is stored as each point data (coordinate value) of the reference dot size. It is set in advance.

変倍処理手段2は、変倍時に、ベクトルフオント記憶
手段1に記憶されている座標値に、変倍率を乗算して変
倍後の座標値を算出する機能を有している。なお、非変
倍時には、変倍率=1とされて、基準ドツトサイズの各
ポイントデータが、そのまま出力されることはいうまで
もない。
The scaling unit 2 has a function of multiplying the coordinate value stored in the vector font storage unit 1 by a scaling factor at the time of scaling to calculate a coordinate value after scaling. At the time of non-magnification, it is needless to say that the magnification is set to 1 and each point data of the reference dot size is output as it is.

新座標生成手段3は、変倍処理手段2から与えられる
座標値によつて、変倍後のドツトサイズの各ポイントに
ついて、その新座標を生成する。また、非変倍時には、
基準ドツトサイズの各ポイントについて、その新座標を
生成する。
The new coordinate generation means 3 generates new coordinates for each point of the dot size after the magnification, based on the coordinate values given from the magnification processing means 2. Also, at the time of non-magnification,
For each point of the reference dot size, a new coordinate is generated.

パターン形成手段4は、新座標生成手段3から出力さ
れる変倍後のドツトサイズ、あるいは基準ドツトサイズ
の各ポイントの新座標に基いて、文字パターンを形成す
る機能を有している。
The pattern forming means 4 has a function of forming a character pattern based on the dot size after scaling output from the new coordinate generating means 3 or the new coordinates of each point of the reference dot size.

次に、この第7図のベクトルフオント記憶手段1に記
憶されている、従来のベクトルフオントデータの構成に
ついて述べる。
Next, the configuration of the conventional vector font data stored in the vector font storage means 1 of FIG. 7 will be described.

第8図は、従来の情報処理装置で使用されているベク
トルフオントデータの構成例を示す図である。図面にお
いて、(X1,Y1),……(Xn,Yn)はそれぞれ1点の座標
データを示す。
FIG. 8 is a diagram showing a configuration example of vector font data used in a conventional information processing apparatus. In the drawing, (X1, Y1),... (Xn, Yn) each represent one point of coordinate data.

この第8図に示すように、1文字のベクトルフオント
データは、基準ドツトサイズについて、1ポイント毎の
X座標とY座標のみで構成されており、これらの閉ルー
プを構成する各座標点を結ぶことによつて文字の輪郭が
形成される。
As shown in FIG. 8, the vector font data of one character is composed of only the X coordinate and the Y coordinate of each point with respect to the reference dot size, and connects the coordinate points forming these closed loops. Thus, the outline of the character is formed.

一般に、1文字を形成するベクトルフオントデータ
は、このような閉ループ、すなわち、座標点を結ぶデー
タの複数組から構成されている。なお、黒文字のとき
は、形成された文字の輪郭の内部を黒ドツトによつて埋
める(塗りつぶす)。
In general, vector font data forming one character is composed of such a closed loop, that is, a plurality of sets of data connecting coordinate points. In the case of a black character, the inside of the outline of the formed character is filled (filled) with black dots.

そして、変倍処理を行うときは、その基準ドツトサイ
ズにおける座標データ(Xn,Yn)に変倍率を掛ける(乗
算する)ことによつて、変倍後の座標値を算出してい
る。
When the scaling process is performed, the coordinate value after scaling is calculated by multiplying (multiplying) the coordinate data (Xn, Yn) at the reference dot size.

ここで、変倍後の座標データをx,y、基準サイズでの
座標データをX,Y、倍率をSとすれば、その計算式は、
次のようになる。
Here, if the coordinate data after scaling is x, y, the coordinate data at the reference size is X, Y, and the magnification is S, the calculation formula is
It looks like this:

x=X*S ……(1) y=Y*S ……(2) このように、従来の変倍処理方式では、基準ドツトサイ
ズにおけるポイントアドレス(座標データ)に、単純に
倍率を掛けて処理している。
x = X * S (1) y = Y * S (2) As described above, in the conventional scaling processing method, the point address (coordinate data) at the reference dot size is simply multiplied by the magnification. doing.

しかし、このような単純処理では、変倍後の各座標値
の演算に際して、計算誤差の発生を回避することは不可
能であり、結果的に、出力される文字パターンの品質が
低下する。
However, in such a simple process, it is impossible to avoid the occurrence of a calculation error in calculating each coordinate value after scaling, and as a result, the quality of the output character pattern deteriorates.

このように、従来のベクトルフオントによる文字パタ
ーンの変倍処理機能を備えた情報処理装置では、変倍処
理時に、基準ドツトサイズのポイントデータ(座標値)
に対して単純に変倍率を掛けて、新座標を演算している
ので、演算処理は極めて簡単であるが、発生される文字
パターンの品質が低下してしまう、という不都合があつ
た。
As described above, in the information processing apparatus having the function of scaling the character pattern by the conventional vector font, the point data (coordinate value) of the reference dot size is used during the scaling process.
Is simply multiplied by a scaling factor to calculate the new coordinates, so that the calculation process is extremely simple, but there is a disadvantage that the quality of the generated character pattern is reduced.

発明が解決しようとする課題 この発明では、従来のベクトルフオントを使用した文
字パターン発生装置で生じるこのような不都合、すなわ
ち、各文字毎に、基準ドツトサイズについて、文字の輪
郭を形成する連結点の座標(各ポイントデータ)をベク
トルデータとして記憶しておき、変倍時には、単純に変
倍率を掛けて新座標の演算処理を行つているため、出力
される文字パターンの品質が低下する、という不都合を
解決し、各ポイント毎に、属性情報を付加することによ
つて文字パターン上の位置に対応した特徴を区別し、そ
れぞれの特徴に応じた変倍処理を行うことにより、高品
質の文字パターンが発生できるようにすることを目的と
する。
According to the present invention, such a disadvantage that occurs in a conventional character pattern generating apparatus using a vector font, that is, for each character, for a reference dot size, a coordinate of a connection point forming a contour of the character with respect to a reference dot size. (Point data) is stored as vector data, and at the time of scaling, the calculation of the new coordinates is performed simply by multiplying the scaling ratio, so that the quality of the output character pattern is reduced. By adding attribute information to each point to distinguish features corresponding to positions on the character pattern, and performing scaling processing according to each feature, a high-quality character pattern can be obtained. It is intended to be able to occur.

具体的にいえば、基準ドツトサイズにおける各ポイン
トデータ(座標値)に、そのポイント(横線上のポイン
ト,縦線上のポイント,斜線上のポイント)の特徴を区
別するための属性情報(属性フラグ)を付けることによ
つて、変倍処理方法の種類を明確にし、変倍時の画質低
下を防止することを第1の目的とする。
More specifically, each point data (coordinate value) at the reference dot size is provided with attribute information (attribute flag) for distinguishing the characteristics of the point (point on the horizontal line, point on the vertical line, point on the oblique line). It is a first object of the present invention to clarify the type of the scaling processing method and to prevent a decrease in image quality at the time of scaling.

また、その際に、横線(x方向)上のポイント、ある
いは縦線(y方向)上のポイントについては、必要に応
じて線幅(文字の一画を形成する線の幅)の補正が行え
るような属性情報を付けることによつて、変倍後の直線
をより平滑にして、高品質の文字パターンを発生させる
ことを第2の目的とする。
At this time, as for the points on the horizontal line (x direction) or the points on the vertical line (y direction), the line width (the width of the line forming one stroke of the character) can be corrected as needed. It is a second object of the present invention to generate a high-quality character pattern by adding such attribute information to make the straight line after scaling more smooth.

さらに、斜線上のポイントについては、切上げ,切下
げの閾値を設定しておき、変倍演算時の誤差を少なくし
て、より滑らかな斜線が得られるようにすることを第3
の目的とする。
Further, for points on the diagonal lines, thresholds for rounding up and down are set in advance to reduce errors during the scaling operation so that smoother diagonal lines can be obtained.
The purpose of.

課題を解決するための手段 この発明では、第1に、 各連結点の座標からなるベクトルデータを記憶するベ
クトルフオント記憶手段と、該ベクトルフオント記憶手
段のベクトルデータにより文字の輪郭を形成するパター
ン形成手段と、該パターン形成手段から出力されるベク
トルフオントのパターンを変倍処理する変倍処理手段と
を備え、ベクトルフオントによる文字パターンの変倍処
理機能を備えた情報処理装置において、 前記ベクトルフオント記憶手段に格納される基準ドツ
トサイズの各ポイントデータに、属性情報として、予め
設定された変倍処理の種類を示す情報を付加し、 変倍処理時に、前記属性情報で指示される変倍処理の
種類に従つて各ポイント毎に変倍処理を行うようにして
いる。
Means for Solving the Problems In the present invention, first, a vector font storage means for storing vector data comprising coordinates of each connection point, and a pattern formation for forming a contour of a character by the vector data of the vector font storage means Means for scaling the pattern of the vector font output from the pattern forming means, and a function of scaling the character pattern by the vector font. Information indicating a preset type of scaling processing is added as attribute information to each point data of the reference dot size stored in the means, and at the time of scaling processing, the type of scaling processing indicated by the attribute information. The magnification process is performed for each point according to the following.

第2に、 各ポイントデータのうち、横線または縦線の線幅の補
正を行うポイントの属性情報に、線幅の補正情報を付加
し、 変倍処理時に、前記属性情報で指示される横線または
縦線の線幅の補正情報に従つてポイント毎に変倍処理を
行うようにしている。
Secondly, of each point data, the line width correction information is added to the attribute information of the point for which the line width of the horizontal line or the vertical line is corrected, and at the time of the scaling process, the horizontal line or the line indicated by the attribute information The scaling process is performed for each point in accordance with the line width correction information of the vertical line.

第3に、 斜線のポイントデータには斜線の変倍処理を指示する
属性情報を付加し、 かつ、変倍の演算のための切上げ,切下げの閾値を設
定しておき、 斜線の変倍処理時に、前記斜線の変倍処理を指示する
属性情報を判別したときは、前記設定された切上げ,切
下げの閾値によつて変倍データの補正を行うようにして
いる。
Third, the attribute data for instructing the scaling process of the oblique line is added to the point data of the oblique line, and the threshold values for rounding up and down are set for the scaling operation. When the attribute information instructing the diagonal scaling process is determined, the scaling data is corrected based on the set up threshold and the down threshold.

実施例1 この発明のベクトルフオントによる文字パターンの変
倍処理方法では、ベクトルフオント記憶手段に記憶され
ているフオントデータ、すなわち、各座標点を示すポイ
ントデータに、それぞれの特徴に対応して区分された変
倍処理の種類を示す属性情報(属性フラグ)を付加して
おき、変倍処理時には、この付加された属性情報を判別
して、各ポイントの特徴に対応した演算処理を行うこと
により、変倍後の新座標を決定するようにしている。
Embodiment 1 In a character pattern scaling processing method using a vector font according to the present invention, font data stored in a vector font storage unit, that is, point data indicating each coordinate point, is classified according to each characteristic. Attribute information (attribute flag) indicating the type of the scaling process is added, and at the time of the scaling process, the added attribute information is determined, and an arithmetic process corresponding to the feature of each point is performed. The new coordinates after scaling are determined.

この実施例では、各ポイントデータ(座標値)に対す
る変倍処理として、次の4種類の処理を行うようにして
いる(換言すれば、各ポイントの特徴として4種類に分
類しておき、各特徴に対応して、それぞれ異なる演算処
理を行う)。
In this embodiment, the following four types of processing are performed as scaling processing for each point data (coordinate value) (in other words, the characteristics of each point are classified into four types, and each characteristic is classified into four types). , Respectively, to perform different arithmetic processing).

第1は、基準ドツトサイズの座標データに変倍率を乗
算(掛け算)する処理(以下、第1の処理方法とい
う)、 第2は、x方向に補正する処理(以下、第2の処理方
法という)、 第3は、y方向に補正する処理(以下、第3の処理方
法という)、 第4は、斜め方向に補正する処理(以下、第4の処理
方法という)、 の4種類である。
First, a process of multiplying (multiplying) the coordinate data of the reference dot size by a scaling factor (hereinafter, referred to as a first processing method), and second, a process of correcting in the x direction (hereinafter, referred to as a second processing method). Third, a process for correcting in the y direction (hereinafter, referred to as a third processing method), and fourth, a process for correcting in an oblique direction (hereinafter, referred to as a fourth processing method).

なお、第2と第3の補正処理に際しては、変倍後の文
字パターンの直線がより平滑化されるように、必要に応
じて、線幅補正を行う属性情報を付加しておき、変倍処
理時には、線幅の補正情報を用いて演算処理を行う。
At the time of the second and third correction processing, attribute information for performing line width correction is added as necessary so that the straight line of the character pattern after scaling is further smoothed. At the time of processing, arithmetic processing is performed using the line width correction information.

次に、この発明のベクトルフオントによる文字パター
ンの変倍処理方法について、図面を参照しながら、その
実施例を詳細に説明する。
Next, with reference to the drawings, a detailed description will be given of an embodiment of a method of scaling a character pattern by a vector font according to the present invention.

第2図は、この発明の文字パターンの変倍処理方法に
よる変倍補正処理を行うためにポイントデータへ付加す
る属性情報の内容の一例を説明する図である。図面にお
いて、〜はそれぞれポイント(座標)を示し、Y1と
Y2は横幅、T1とT2は縦幅を示す。
FIG. 2 is a view for explaining an example of the contents of attribute information added to point data for performing magnification correction processing by the character pattern magnification processing method of the present invention. In the drawing, ~ indicates a point (coordinate), and Y1 and
Y2 indicates the horizontal width, and T1 and T2 indicate the vertical width.

この第2図では、漢字「田」の場合について示してい
る。
FIG. 2 shows the case of the kanji character “ta”.

すでに述べたように、ベクトルフオントによる文字パ
ターンの場合、文字の輪郭を形成するパターンの変化点
について、各点を結ぶための座標値をポイントデータと
して設定する。この漢字「田」の場合には、閉ループを
形成する計5組のポイントデータ群が必要であり、それ
らのベクトルフオントデータが予め用意されている。
As described above, in the case of a character pattern based on a vector font, coordinate values for connecting each point are set as point data for a change point of a pattern forming a character outline. In the case of the kanji character “ta”, a total of five sets of point data forming a closed loop are required, and their vector font data are prepared in advance.

この第2図の場合には、ポイント〜は、それぞれ
同じ種類の変倍処理を行うポイント〜に、同一の符
号を付けて区別している。
In the case of FIG. 2, the points 1 to 3 are distinguished by attaching the same reference numerals to the points 4 to which the same type of scaling processing is performed.

まず、漢字「田」の外周を形成するポイントは、
「基準ドツトサイズの座標データに変倍率を乗算(掛け
算)する」演算方法で処理される。なお、その他のポイ
ントについても、同様の処理が行われる。
First, the point that forms the outer periphery of the kanji “ta” is
The processing method is "multiplying (multiplying) the coordinate data of the reference dot size by the scaling factor". The same processing is performed for the other points.

このポイントの場合の変倍処理は、従来の変倍処理
方法と同様である(第1の処理方法)。
The scaling process at this point is the same as the conventional scaling process method (first processing method).

すなわち、変倍後の座標データをx,y、基準サイズで
の座標データをX,Y、倍率をSとすれば、 x=X*S ……(1) y=Y*S ……(2) となる。
That is, if the coordinate data after scaling is x, y, the coordinate data at the reference size is X, Y, and the magnification is S, x = X * S (1) y = Y * S (2) ).

次に、ポイントについては、x方向の補正を行う
(第2の処理方法)。
Next, the point is corrected in the x direction (second processing method).

ここで、対象となるポイントでのx方向の線幅を、Y1
とすれば、ポイントの線幅の変倍処理は、 x=(X+Y1)*S−Y1*S ……(3) y=Y*S ……(2) となる。
Here, the line width in the x direction at the target point is represented by Y1
Then, the scaling process of the line width of the point is as follows: x = (X + Y1) * S-Y1 * S (3) y = Y * S (2)

これに対して、ポイントについては、y方向の補正
を行う(第3の処理方法)。
On the other hand, the point is corrected in the y direction (third processing method).

対象となるポイントでのy方向の線幅を、T1とすれ
ば、ポイントの線幅の変倍処理は、 x=X*S ……(1) y=(Y+T1)*S−T1*S ……(4) となる。
Assuming that the line width in the y-direction at the target point is T1, the scaling process of the line width of the point is as follows: x = X * S (1) y = (Y + T1) * S-T1 * S ... ... (4)

また、ポイントについては、先のポイントと同様
に、第2の処理方法によつてx方向の補正を行うが、こ
の場合には、線幅の値はY2とする。
As for the point, similarly to the previous point, the correction in the x direction is performed by the second processing method. In this case, the value of the line width is Y2.

すなわち、ポイントの線幅の変倍処理は、 x=(X+Y2)*S−Y2*S ……(5) y=Y*S ……(2) となる。 That is, the scaling process of the line width of the point is as follows: x = (X + Y2) * S−Y2 * S (5) y = Y * S (2)

ポイントについては、先のポイントと同様に、第
3の処理方法によつてy方向の補正を行うが、この場合
には、線幅の値はT2とする。
For the point, similarly to the previous point, the correction in the y direction is performed by the third processing method. In this case, the value of the line width is T2.

すなわち、ポイントの線幅の変倍処理は、 x=X*S ……(1) y=(Y+T2)*S−T2*S ……(6) とする。 That is, the scaling process of the line width of the point is performed as follows: x = X * S (1) y = (Y + T2) * S-T2 * S (6)

さらに、ポイントについては、x方向およびy方向
の補正を行う(第4の処理方法)。
Further, the points are corrected in the x and y directions (fourth processing method).

したがつて、ポイントの線幅の変倍処理は、 x=(X+Y2)*S−Y2*S ……(3) y=(Y+T1)*S−T1*S ……(4) となる。 Therefore, the scaling process of the line width of the point is as follows: x = (X + Y2) * S−Y2 * S (3) y = (Y + T1) * S−T1 * S (4)

この第4の処理方法は、先の第2と第3の処理方法を
併用した形で処理されることになる。
In the fourth processing method, processing is performed by using the second and third processing methods in combination.

この発明による文字パターンの変倍処理方法では、フ
オントデータを構成するポイントデータについて、文字
の輪郭上における各ポイントの状態(特徴)に対応し
て、以上の第1から第4の処理方法(処理の種類)を予
め選択しておく。そして、処理方法を示す属性情報(属
性フラグ)として、各ポイントデータに付加しておく。
In the character pattern scaling processing method according to the present invention, the first to fourth processing methods (processing) corresponding to the state (characteristic) of each point on the outline of the character with respect to the point data constituting the font data. Is selected in advance. Then, it is added to each point data as attribute information (attribute flag) indicating a processing method.

次の第3図は、この発明による文字パターンの変倍処
理方法で使用されるポイントデータに付随する属性情報
の一例を示す図である。図面において、Atr1,Atr2,…
…,Atrnは属性情報を示す。
FIG. 3 is a diagram showing an example of attribute information attached to point data used in the character pattern scaling processing method according to the present invention. In the drawing, Atr1, Atr2, ...
…, Atrn indicates attribute information.

この第3図に示したポイントデータでは、例えば、座
標(X1,Y1)には属性情報Atr1が、また、座標(X2,Y2)
には属性情報Atr2が、それぞれ付加されている。
In the point data shown in FIG. 3, for example, the coordinates (X1, Y1) have the attribute information Atr1 and the coordinates (X2, Y2)
Has attribute information Atr2 added thereto.

これらの属性情報Atr1,Atr2,……,Atrnは、先の第1
から第4の変倍処理方法を指示する情報であり、第2と
第3の変倍処理方法の場合には、線幅の補正を行う属性
情報と補正を行わない属性情報とで、両者が区別され
る。
These attribute information Atr1, Atr2,..., Atrn are the first
To the fourth scaling processing method. In the case of the second and third scaling processing methods, the attribute information for correcting the line width and the attribute information for not performing the correction are both used. Be distinguished.

次に、この発明のベクトルフオントによる文字パター
ンの変倍処理方法を実施する情報処理装置について、そ
のハード構成を説明する。
Next, a description will be given of a hardware configuration of an information processing apparatus that performs the character pattern scaling processing method using a vector font according to the present invention.

第1図は、この発明のベクトルフオントによる文字パ
ターンの変倍処理方法を実施する情報処理装置につい
て、その要部構成の一実施例を示す機能ブロツク図であ
る。図面における符号は第7図と同様であり、また、11
は属性情報付きベクトルフオント記憶手段、21は属性情
報判別手段、22は単純変倍処理部、23はx方向線幅補正
処理部、24はy方向線幅補正処理部、25はx・y方向線
幅補正処理部を示す。
FIG. 1 is a functional block diagram showing an embodiment of a main part configuration of an information processing apparatus for carrying out a character pattern scaling processing method using a vector font according to the present invention. The reference numerals in the drawings are the same as those in FIG.
Is a vector font storage means with attribute information, 21 is attribute information discriminating means, 22 is a simple scaling unit, 23 is an x-direction line width correction processing unit, 24 is a y-direction line width correction processing unit, and 25 is an x and y direction. 5 shows a line width correction processing unit.

この第1図に示すこの発明の文字パターンの変倍処理
方法を実施する情報処理装置の各部の機能は、次のとお
りである。
The function of each part of the information processing apparatus for implementing the character pattern scaling processing method of the present invention shown in FIG. 1 is as follows.

属性情報付きベクトルフオント記憶手段11には、先の
第3図に関連して説明したように、基準ドツトサイズの
各ポイントデータに、予め設定された変倍処理(第1か
ら第4の処理方法)の種類を示す情報として、属性情報
Atr1,Atr2,……,Atrnが付加されたベクトルフオントが
記憶されている。
As described with reference to FIG. 3, the vector font storage unit 11 with attribute information stores a predetermined scaling process (first to fourth processing methods) for each point data of the reference dot size. Attribute information as information indicating the type of
The vector font to which Atr1, Atr2,..., Atrn is added is stored.

属性情報判別手段21は、属性情報Atr1,Atr2,……,Atr
nを判別する機能を有しており、第1から第4の処理方
法のいずれを指示する属性情報であるかについて判別す
る。
Attribute information discriminating means 21 includes attribute information Atr1, Atr2,.
It has a function of determining n, and determines which of the first to fourth processing methods is attribute information.

単純変倍処理部22は、属性情報判別手段21によつて判
別された第1の処理方法を実行する機能を有している。
The simple scaling unit 22 has a function of executing the first processing method determined by the attribute information determining unit 21.

x方向線幅補正処理部23は、第2の処理方法を実行す
る機能を有している。
The x-direction line width correction processing unit 23 has a function of executing the second processing method.

y方向線幅補正処理部24は、第3の処理方法を実行す
る機能を有している。
The y-direction line width correction processing unit 24 has a function of executing the third processing method.

x・y方向線幅補正処理部25は、第4の処理方法を実
行する機能を有している。
The xy direction line width correction processing unit 25 has a function of executing the fourth processing method.

なお、新座標生成手段3と、パターン形成手段4は、
従来例を示す第7図と同様である。
Note that the new coordinate generating means 3 and the pattern forming means 4
This is the same as FIG. 7 showing a conventional example.

次に、フローチヤートを参照しながら、第1図に示し
たこの発明の文字パターンの変倍処理方法を実施する情
報処理装置の動作について述べる。
Next, the operation of the information processing apparatus for implementing the character pattern scaling processing method of the present invention shown in FIG. 1 will be described with reference to a flowchart.

第4図は、第1図に示したこの発明のベクトルフオン
トによる文字パターンの変倍処理方法を実施する情報処
理装置について、変倍処理時の動作を示すフローチヤー
トである。図面において、#1〜#7はステツプを示
す。
FIG. 4 is a flow chart showing the operation at the time of the scaling process in the information processing apparatus for implementing the character pattern scaling method using the vector font according to the present invention shown in FIG. In the drawing, # 1 to # 7 indicate steps.

ステツプ#1で、第1図の属性情報付きベクトルフオ
ント記憶手段11から、ベクトルフオントデータをリード
する。
In step # 1, vector font data is read from the vector font storage means 11 with attribute information shown in FIG.

ステツプ#2では、第1図の属性情報判別手段21によ
り、属性情報の内容を判断する。
In step # 2, the content of the attribute information is determined by the attribute information determining means 21 shown in FIG.

このステツプ#2の判断の結果、第1の処理方法と判
断したときは、ステツプ#3へ進み、先の式(1),
(2)による変倍処理を行う。
As a result of the determination in step # 2, when it is determined that the processing method is the first processing method, the process proceeds to step # 3, where the above-described equations (1) and (2) are used.
The scaling process according to (2) is performed.

また、先のステツプ#2で判断した結果、第2の処理
方法のときは、ステツプ#4へ進み、先の式(2),
(3)による変倍処理を行う。
Also, as a result of the judgment in the previous step # 2, when the second processing method is used, the process proceeds to step # 4, and the above-mentioned equations (2) and
The zooming process according to (3) is performed.

同様に、先のステツプ#2で判断した結果、第3の処
理方法のときは、ステツプ#5へ進み、先の式(1),
(4)による変倍処理を行う。
Similarly, as a result of the determination in the previous step # 2, when the third processing method is used, the process proceeds to step # 5, and the above equations (1),
The scaling process according to (4) is performed.

さらに、先のステツプ#2で判断した結果、第4の処
理方法であれば、ステツプ#5へ進み、先の式(3),
(4)による変倍処理を行う。
Further, as a result of the determination in the previous step # 2, if the processing method is the fourth processing method, the process proceeds to step # 5, and the above-mentioned equations (3) and
The scaling process according to (4) is performed.

以上のステツプ#3〜#6の処理が終了すると、次の
ステツプ#7へ進み、第1図の新座標生成手段3によつ
て、新座標を演算し、パターン形成手段4により、文字
パターンを形成する。
When the processing of steps # 3 to # 6 is completed, the process proceeds to the next step # 7, where the new coordinates are calculated by the new coordinate generating means 3 in FIG. 1, and the character pattern is converted by the pattern forming means 4. Form.

このように、この発明のベクトルフオントによる文字
パターンの変倍処理方法では、基準ドツトサイズの各ポ
イントデータに、各ポイントの特徴に対応する変倍処理
の種類を示す属性情報(属性フラグ)を付加しておき、
変倍処理時には、この属性情報に基いてそのポイントの
特徴を区別して、最適な変倍処理が行えるようにしてい
る。
As described above, in the character pattern scaling processing method using a vector font according to the present invention, attribute information (attribute flag) indicating the type of scaling processing corresponding to the feature of each point is added to each point data of the reference dot size. In advance,
At the time of the scaling process, the feature of the point is distinguished based on the attribute information so that the optimum scaling process can be performed.

したがつて、従来の変倍処理に比べて、より自然で、
しかも平滑化された直線を形成することが可能となる。
Therefore, compared to the conventional scaling process, it is more natural,
In addition, a smoothed straight line can be formed.

以上の第1の実施例では、主として、文字パターンが
直線で形成される場合の変倍処理について説明した。な
お、この実施例は、特許請求の範囲第1項と第2項に対
応する。
In the first embodiment described above, the scaling process in the case where a character pattern is formed as a straight line has been mainly described. This embodiment corresponds to claims 1 and 2.

しかし、一般に、文字パターンの形成には、このよう
な直線だけでなく、斜線も多く使用されている。
However, in general, not only such straight lines but also oblique lines are often used for forming character patterns.

そして、斜線の場合にも、上述の斜め方向に補正する
処理(第4の処理方法)によつて補正を行うことができ
る。
Even in the case of oblique lines, the correction can be performed by the above-described processing for correcting in the oblique direction (fourth processing method).

しかしながら、斜線を多く使用する文字パターンの場
合には、隣接するポイントデータが多くなるので、変倍
時の演算を正確に行わないと、演算誤差によつて滑らか
な斜線が得られないというケースが生じる。
However, in the case of a character pattern that uses a lot of oblique lines, adjacent point data increases, and if the operation at the time of zooming is not performed accurately, a smooth oblique line cannot be obtained due to an operation error. Occurs.

実施例2 次に、文字パターンを斜線によつて形成する場合の変
倍処理について説明する。この第2の実施例は、特許請
求の範囲第3項に対応する。
Embodiment 2 Next, a scaling process when a character pattern is formed by oblique lines will be described. This second embodiment corresponds to claim 3.

この実施例では、より自然で、しかも平滑化された斜
線を形成するために、斜線を形成する各ポイントの変倍
処理時に、変倍演算の切上げ,切下げの閾値を設定し、
この閾値によつて変倍データの補正を行う。
In this embodiment, in order to form a more natural and smoothed diagonal line, at the time of the magnification processing of each point forming the diagonal line, a threshold value for rounding up and down of the magnification operation is set.
The magnification data is corrected using this threshold value.

なお、直線の補正については、先の実施例で説明した
のと同様に、第1から第3の変倍処理を行う。
For the correction of the straight line, the first to third scaling processes are performed in the same manner as described in the previous embodiment.

第5図は、この発明の文字パターンの変倍処理方法に
よる変倍補正処理において、斜め方向の補正を行うため
にポイントデータへ付加する属性情報の内容の一例を説
明する図である。図面において、と〜は、それぞ
れポイントを示し、また、その矢印は補正時の移動方向
を示す。
FIG. 5 is a view for explaining an example of the content of attribute information added to point data for performing diagonal correction in the scaling correction processing according to the character pattern scaling processing method of the present invention. In the drawings, and indicate points, respectively, and the arrows indicate the moving directions at the time of correction.

この第5図では、斜線部が多い漢字「人」の場合につ
いて示している。
FIG. 5 shows the case of a kanji "person" having many shaded portions.

漢字「人」のように、斜線部が多いときは、先の
「田」のように、殆ど直線で形成される文字に比べて、
閉ループを形成する一連のポイントデータも、極めて多
くを必要とする。
When there are many diagonal lines, such as the kanji "person", compared to characters that are almost straight lines, such as "ta",
A series of point data forming a closed loop is also extremely large.

すなわち、この第5図では、ポイントを、1個所だ
け代表例として図示しているが、実際には、このポイン
トを含む斜線部の各アドレス(座標値)が、ポイント
データとして設定されている。
That is, in FIG. 5, only one point is shown as a representative example, but actually, each address (coordinate value) of a hatched portion including this point is set as point data.

この場合に、設定するポイントデータを多くすればす
る程、滑らかな斜線や曲線が得られることはいうまでも
ない。
In this case, it goes without saying that the more point data to be set, the more a smooth diagonal line or curve can be obtained.

その他のポイント〜についても、全く同様であ
る。
The same applies to the other points (1) to (4).

なお、ポイントのように、文字の輪郭の1点を指示
するポイントデータも含まれている。
Note that point data indicating one point of the outline of the character, such as a point, is also included.

第6図は、この発明の文字パターンの変倍処理方法に
おいて、斜め方向の補正を行うためにポイントデータへ
付加する属性情報と、それに対応する演算処理の一例を
示す図である。図面において、〜は第5図の対応す
るポイントに与えられる属性情報と、それに対応する補
正演算式を示す。
FIG. 6 is a diagram showing an example of attribute information added to point data for performing diagonal correction in the character pattern scaling processing method of the present invention, and an example of arithmetic processing corresponding thereto. In the drawing, 〜 indicates the attribute information given to the corresponding point in FIG. 5 and the corresponding correction expression.

この第6図で、(x,y)と(X,Y)とSは第1の実施例
と同様に、x,yは変倍処理後の出力データ、X,Yは基準ド
ツトサイズのポイントデータ、Sは倍率を示し、また、
XtはX*Sの小数部、YtはY*Sの小数部、P1は切上げ
閾値、P2は切下げ閾値を示す。
In FIG. 6, (x, y), (X, Y) and S are the same as in the first embodiment, x and y are the output data after the scaling process, and X and Y are the point data of the reference dot size. , S indicate the magnification, and
Fractional part of the X t is X * S, the fractional part of the Y t is Y * S, P1 is rounded up threshold, P2 indicates a devaluation threshold.

この第2の実施例では、斜め方向の補正を行うため
に、ポイントデータに、この第6図の〜の処理を行
うことを指示する情報を、属性情報として与えておく。
In the second embodiment, in order to perform the correction in the diagonal direction, information instructing to perform the processings (1) to (3) in FIG. 6 is given to the point data as attribute information.

そして、変倍処理時には、各ポイントデータに付加さ
れた属性情報を判別して、対応する演算処理を行う。
Then, at the time of the scaling processing, the attribute information added to each point data is determined, and the corresponding arithmetic processing is performed.

その演算処理は、先の第4図のフローで、ステツプ#
6における処理が、この第6図の〜に対応して細分
されることになり、それぞれの属性情報によつて異なる
が、基本的には、同様の処理である。
The arithmetic processing is performed in step # in the flow of FIG.
6 will be subdivided in correspondence with (1) to (6) in FIG. 6. Although the processing differs depending on the respective attribute information, the processing is basically the same.

なお、演算処理に際して、ポイント〜で、この第
6図の条件が成立しないときには、補正処理を行わな
い。
In the calculation processing, if the condition of FIG. 6 is not satisfied at the points 1 to 6, the correction processing is not performed.

また、変倍処理後の出力データx,yについては、その
小数点以下を切捨てて、新座標の値とする。
The output data x and y after the scaling process are truncated below the decimal point to obtain new coordinate values.

発明の効果 この発明のベクトルフオントによる文字パターンの変
倍処理方法によれば、第1に、文字の輪郭を形成する各
ポイントデータに、予め設定された変倍処理の種類を示
す情報として属性情報が付けられているので、各ポイン
トの特徴を簡単に判別・分類することができ、その特徴
に対応した演算処理を行うことが可能になる(特許請求
の範囲第1項の構成に対応する効果)。
According to the character pattern scaling processing method using a vector font according to the present invention, first, attribute information is added to each point data forming the outline of a character as information indicating a preset type of scaling processing. , The characteristics of each point can be easily determined and classified, and arithmetic processing corresponding to the characteristics can be performed (the effect corresponding to the configuration of claim 1). ).

第2に、各ポイントデータのうち、横線または縦線の
線幅の補正を行いたいポイントの属性情報に、線幅の補
正情報を付加することによつて、変倍処理時に、文字の
線幅の補正処理も同時に行うことができるので、従来の
変倍処理に比べて、より自然で、しかも平滑化された直
線を形成することが可能となり、高品質の文字パターン
を作成することができる(特許請求の範囲第2項の構成
に対応する効果)。
Second, the line width correction information is added to the attribute information of the point for which the line width of the horizontal line or the vertical line is to be corrected in each point data, so that the line width of the character can be changed during the scaling process. Can be performed at the same time, so that a more natural and smoothed straight line can be formed as compared with the conventional scaling processing, and a high-quality character pattern can be created ( Effects corresponding to the configuration of Claim 2).

第3に、各ポイントデータのうち、斜線を形成するポ
イントの変倍処理時に、変倍演算の切上げ,切下げの閾
値を設定し、この閾値によつて変倍データの補正を行う
ことによつて、従来の変倍処理に比べて、より自然で、
しかも平滑化された斜線を形成することが可能となり、
高品質の文字パターンを作成することができる(特許請
求の範囲第3項の構成に対応する効果)、等の多くの優
れた効果が奏せられる。
Third, at the time of scaling processing of a point forming a diagonal line in each point data, a threshold value for rounding up and down of the scaling operation is set, and the scaling data is corrected using the threshold value. , Is more natural than traditional scaling,
Moreover, it is possible to form a smoothed oblique line,
Many excellent effects can be achieved, such as a high-quality character pattern can be created (an effect corresponding to the configuration of Claim 3).

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

第1図は、この発明のベクトルフオントによる文字パタ
ーンの変倍処理方法を実施する情報処理装置について、
その要部構成の一実施例を示す機能ブロツク図、 第2図は、この発明の文字パターンの変倍処理方法によ
る変倍補正処理を行うためにポイントデータへ付加する
属性情報の内容の一例を説明する図、 第3図は、この発明による文字パターンの変倍処理方法
で使用されるポイントデータに付随する測定装置の一例
を示す図、 第4図は、第1図に示したこの発明による文字パターン
の変倍処理方法を実施する情報処理装置について、変倍
処理時の動作を示すフローチヤート、 第5図は、この発明の文字パターンの変倍処理方法によ
る変倍補正処理において、斜め方向の補正を行うために
ポイントデータへ付加する属性情報の内容の一例を説明
する図、 第6図は、この発明の文字パターンの変倍処理方法にお
いて、斜め方向の補正を行うためにポイントデータへ付
加する属性情報と、それに対応する演算処理の一例を示
す図、 第7図は、従来のベクトルフオントによる文字パターン
の変倍処理機能を有する情報処理システムについて、そ
の要部構成の一例を示す機能ブロツク図、 第8図は、従来の情報処理装置で使用されているベクト
ルフオントデータの構成例を示す図。 図面において、3は新座標生成手段、4はパターン形成
手段、11は属性情報付きベクトルフオント記憶手段、21
は属性情報判別手段、22は単純変倍処理部、23はx方向
線幅補正処理部、24はy方向線幅補正処理部、25はx・
y方向線幅補正処理部。
FIG. 1 shows an information processing apparatus for implementing a character pattern scaling processing method using a vector font according to the present invention.
FIG. 2 is a functional block diagram showing an embodiment of the main part configuration. FIG. 2 shows an example of the contents of attribute information added to point data for performing magnification correction processing by the character pattern magnification processing method of the present invention. FIG. 3 is a diagram showing an example of a measuring device associated with point data used in the character pattern scaling processing method according to the present invention, and FIG. 4 is a diagram showing the measuring device according to the present invention shown in FIG. FIG. 5 is a flow chart showing an operation at the time of a scaling process for an information processing apparatus which performs a scaling process of a character pattern. FIG. FIG. 6 is a view for explaining an example of the content of attribute information added to the point data in order to perform the correction in FIG. 6. FIG. FIG. 7 is a diagram showing an example of attribute information to be added to int data and an arithmetic processing corresponding thereto. FIG. 8 is a diagram showing a configuration example of vector font data used in a conventional information processing apparatus. In the drawing, 3 is a new coordinate generating means, 4 is a pattern forming means, 11 is a vector font storing means with attribute information, 21
Is attribute information discriminating means, 22 is a simple scaling unit, 23 is an x-direction line width correction processing unit, 24 is a y-direction line width correction processing unit, and 25 is an x-line width correction unit.
Y-direction line width correction processing unit.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】各連結点の座標からなるベクトルデータを
記憶するベクトルフオント記憶手段と、該ベクトルフオ
ント記憶手段のベクトルデータにより文字の輪郭を形成
するパターン形成手段と、該パターン形成手段から出力
されるベクトルフオントのパターンを変倍処理する変倍
処理手段とを備え、ベクトルフオントによる文字パター
ンの変倍処理機能を備えた情報処理装置において、 前記ベクトルフオント記憶手段に格納される基準ドツト
サイズの各ポイントデータに、属性情報として、予め設
定された変倍処理の種類を示す情報を付加し、 変倍処理時に、前記属性情報で指示される変倍処理の種
類に従つて各ポイント毎に変倍処理を行うことを特徴と
するベクトルフオントによる文字パターンの変倍処理方
法。
1. Vector font storage means for storing vector data consisting of the coordinates of each connection point, pattern forming means for forming a contour of a character based on the vector data of the vector font storage means, and output from the pattern forming means. An information processing apparatus having a scaling function for scaling a character pattern by a vector font, wherein each point of a reference dot size stored in the vector font storage means is provided. Information indicating a preset type of scaling processing is added to the data as attribute information, and during scaling processing, scaling processing is performed for each point in accordance with the type of scaling processing indicated by the attribute information. And a scaling method for a character pattern using a vector font.
【請求項2】特許請求の範囲第1項記載のベクトルフオ
ントによる文字パターンの変倍処理方法において、 前記各ポイントデータのうち、横線または縦線の線幅の
補正を行うポイントの属性情報に、線幅の補正情報を付
加し、 変倍処理時に、前記属性情報で指示される横線または縦
線の線幅の補正情報に従つて各ポイント毎に変倍処理を
行うことを特徴とするベクトルフオントによる文字パタ
ーンの変倍処理方法。
2. A method for scaling a character pattern by a vector font according to claim 1, wherein the attribute information of a point for correcting a line width of a horizontal line or a vertical line in each of the point data includes: A vector font, wherein line width correction information is added, and a scaling process is performed for each point according to the line width correction information of the horizontal line or the vertical line specified by the attribute information during the scaling process. The scaling method of the character pattern by.
【請求項3】特許請求の範囲第2項記載のベクトルフオ
ントによる文字パターンの変倍処理方法において、 斜線のポイントデータには斜線の変倍処理を指示する属
性情報を付加し、 かつ、変倍の演算のための切上げ,切下げの閾値を設定
しておき、 斜線の変倍処理時に、前記斜線の変倍処理を指示する属
性情報を判別したときは、前記設定された切上げ,切下
げの閾値によつて変倍データの補正を行うことを特徴と
するベクトルフオントによる文字パターンの変倍処理方
法。
3. A method for scaling a character pattern by using a vector font according to claim 2, wherein attribute information for instructing a scaling process of the oblique line is added to the point data of the oblique line. When the attribute information instructing the scaling process of the oblique line is determined at the time of the scaling process of the oblique line, the threshold value of the set up / down value is set to the set threshold value of the up / down operation. A method for scaling a character pattern using a vector font, wherein the scaling data is corrected.
JP1138628A 1989-05-31 1989-05-31 A scaling method for character patterns using vector fonts Expired - Fee Related JP2802646B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1138628A JP2802646B2 (en) 1989-05-31 1989-05-31 A scaling method for character patterns using vector fonts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1138628A JP2802646B2 (en) 1989-05-31 1989-05-31 A scaling method for character patterns using vector fonts

Publications (2)

Publication Number Publication Date
JPH032895A JPH032895A (en) 1991-01-09
JP2802646B2 true JP2802646B2 (en) 1998-09-24

Family

ID=15226503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1138628A Expired - Fee Related JP2802646B2 (en) 1989-05-31 1989-05-31 A scaling method for character patterns using vector fonts

Country Status (1)

Country Link
JP (1) JP2802646B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257456A (en) * 2007-04-04 2008-10-23 Matsushita Electric Ind Co Ltd Unit and method for antialias image rendering

Also Published As

Publication number Publication date
JPH032895A (en) 1991-01-09

Similar Documents

Publication Publication Date Title
JP3164617B2 (en) Apparatus and method for deforming character / graphics
US6295072B1 (en) Method and apparatus for rendering cubic curves
JPH11237874A (en) Method for generating multi-master type face including chinese character
JPS63271290A (en) Character pattern generation system
JP2909273B2 (en) Outline font line width adjusting method and apparatus
US5351315A (en) Apparatus for smoothing outlines of images
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JPH05269956A (en) Electronic composition device for composing along optional line
JPH0452475B2 (en)
JP3479282B2 (en) Character and graphic transformation processor
JP2910101B2 (en) Vector font data component point correction device
JP3035141B2 (en) Character creation device and character creation method
JP3070822B2 (en) Contour data converter
JP3280160B2 (en) Document processing apparatus and document processing method
JP2878614B2 (en) Image synthesis method and apparatus
JP2806679B2 (en) Character generator
JP2726951B2 (en) Character / graphic drawing device
JPH0493992A (en) Character and graphic plotter device
JP2985275B2 (en) Character generation method of outline font
JP2861127B2 (en) Data converter
JPH0315193B2 (en)
JPH025095A (en) Character output system
JP3072756B2 (en) Drawing equipment
EP0544269B1 (en) Character generation device and method therefor
JP2782753B2 (en) Character pattern scaling device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070717

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080717

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees