JPH0773306A - Outline font data componentization method and outline font data generation device - Google Patents
Outline font data componentization method and outline font data generation deviceInfo
- Publication number
- JPH0773306A JPH0773306A JP5218959A JP21895993A JPH0773306A JP H0773306 A JPH0773306 A JP H0773306A JP 5218959 A JP5218959 A JP 5218959A JP 21895993 A JP21895993 A JP 21895993A JP H0773306 A JPH0773306 A JP H0773306A
- Authority
- JP
- Japan
- Prior art keywords
- data
- component
- outline font
- shape
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title abstract description 13
- 230000006837 decompression Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 13
- 238000007796 conventional method Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 241000237509 Patinopecten sp. Species 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000020637 scallop Nutrition 0.000 description 1
Landscapes
- Image Processing (AREA)
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Analysis (AREA)
Abstract
(57)【要約】
【目的】 本発明は、アウトラインフォントデータの部
品化方法,及び生成装置に関し、アウトラインフォント
データのデータ量を軽減させる。
【構成】 アウトラインフォントデータを、部品化され
ないセグメントデータと、部品化データとで構成し、該
部品化データを、部品番号と、該部品の形状を決定する
パラメータ(Pi)とで構成し、上記部品番号によって、例
えば、部品テーブルの部品インデックスを参照し、該部
品インデックスが指示する部品番号アドレスに基づい
て、その部品番号に対応する部品データを求めて、該部
品データを形成している、その部品を構成する部品要素
の個数と,それぞれの部品要素の形状を区別する要素形
状データと,上記部品要素の形状の大きさを、上記パラ
メータ(Pi)の、例えば、一次式で表現する為の係数(ai)
と、その係数(ai)の符号を決める演算子情報からなる計
算情報とに基づいて、上記部品化データを、通常の上記
セグメントデータに変換して文字フォントデータを生成
する
(57) [Summary] [Object] The present invention relates to a method of creating a component of outline font data and a generation device thereof, and reduces the amount of outline font data. [Structure] Outline font data is composed of segment data that is not made into parts and partized data, and the partized data is made up of a part number and a parameter (Pi) for determining the shape of the part. By referring to the part index of the part table, for example, by the part number, based on the part number address indicated by the part index, the part data corresponding to the part number is obtained, and the part data is formed. For expressing the number of component elements that make up a component, element shape data that distinguishes the shape of each component element, and the size of the shape of the component element by, for example, a linear expression of the parameter (Pi), Coefficient (ai)
And the above-mentioned componentized data is converted into the above-mentioned normal segment data based on the calculation information consisting of operator information for determining the sign of the coefficient (ai), and character font data is generated.
Description
【0001】[0001]
【産業上の利用分野】本発明は、日本語処理装置におけ
る文字フォントデータの表現形式に係り、特に、アウト
ラインフォントデータの部品化方法,及び、アウトライ
ンフォントデータ生成装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an expression format of character font data in a Japanese language processing device, and more particularly to a method of converting outline font data into a component and an outline font data generation device.
【0002】最近のパソコン,ワードプロセッサ等の普
及に伴って、印字精度の向上が求められており、ドット
データで形成されているアウトラインフォントデータの
印字に際しては、できる限り元の文字に近い、正確な曲
線で構成されるアウトラインデータを形成して印字する
ことが要求される。With the recent widespread use of personal computers, word processors, etc., it is required to improve the printing accuracy. When printing the outline font data formed of dot data, the printing accuracy is as close as possible to the original character. It is required to form and print outline data composed of curves.
【0003】通常、該アウトラインフォントデータは、
水平線,垂直線,斜め線,曲線の何れかのセグメントデ
ータで形成されるが、水平線,垂直線,斜め線等は、そ
のセグメントの種類を示すコード情報と、その基点座標
からの移動量 (水平方向成分Δxと, 垂直方向成分Δ
y)、即ち、相対座標からなるデータで構成され、曲線
の場合には、そのセグメントのコード情報と、その基点
座標からの移動量、即ち、基点座標からの相対座標と、
制御点座標とで構成される。Usually, the outline font data is
It is formed by segment data of any one of horizontal line, vertical line, diagonal line, and curved line. Horizontal line, vertical line, diagonal line, etc., are code information indicating the type of the segment and the amount of movement from the base point coordinate (horizontal line). Directional component Δx and vertical component Δx
y), that is, composed of data composed of relative coordinates, and in the case of a curve, code information of the segment and the amount of movement from the base point coordinates, that is, relative coordinates from the base point coordinates,
It is composed of control point coordinates.
【0004】一つの文字のアウトラインフォントデータ
は、複数個の上記セグメントデータから構成されるが、
該文字の各文字パターンには、例えば、「いれ」「うろ
こ」「かどうろこ」「とめ」といった飾り部分があり、
該飾り部分は、一つの文字について、複数個あり、然
も、一つの文字内,或いは、複数個の各文字間でも、そ
の飾り部分の形状が類似していることが多い。Outline font data of one character is composed of a plurality of the above segment data.
In each character pattern of the character, for example, there is a decorative portion such as "Ire,""scallop,""kaidoroko," and "tome."
There are a plurality of decorative portions for one character, and the shape of the decorative portion is often similar within one character or between a plurality of characters.
【0005】然しながら、従来のフォントデータは、上
記類似している飾り部分のセグメントデータであって
も、それぞれ、各文字毎に、個別に、上記コード情報
と, 基点座標からの移動量と、曲線の場合には、更に、
制御点座標とを保持しており、該フォントデータのデー
タ量が膨大になるという問題があり、該フォントデータ
のデータ量を効果的に削減できる方策が必要とされてい
る。However, even if the conventional font data is the segment data of the similar decorative portion, the above-mentioned code information, the amount of movement from the base point coordinates, and the curve are individually for each character. In the case of,
Since the control point coordinates are held, there is a problem in that the data amount of the font data becomes enormous, and a measure for effectively reducing the data amount of the font data is required.
【0006】[0006]
【従来の技術】図5は、従来のアウトラインデータを生
成する方法を示した図であり、図5(a) は、日本語処理
装置内の従来のアウトラインデータ生成装置の構成例を
示し、図5(b) は、従来のアウトラインデータの生成例
を示し、図6は、従来のアウトラインフォントデータの
構成例を示した図である。2. Description of the Related Art FIG. 5 is a diagram showing a conventional method for generating outline data, and FIG. 5 (a) shows a configuration example of a conventional outline data generating device in a Japanese language processing device. 5 (b) shows an example of the conventional outline data generation, and FIG. 6 is a diagram showing an example of the structure of the conventional outline font data.
【0007】先ず、図5(a) において、中央処理装置(C
PU) 1 が所定のスキャナ読み取りプログラムを実行し
て、予め、生成されている文字パターンを、スキャナ 2
で読み取り、ドットパターンに変換して、ビットマップ
メモリ 3に格納する。First, in FIG. 5 (a), a central processing unit (C
(PU) 1 executes the specified scanner reading program and creates the character pattern that was previously generated by the scanner 2
Read with, convert it to a dot pattern, and store it in bitmap memory 3.
【0008】次に、所定の輪郭線抽出プログラムを実行
して、該ドットパターンデータを、所定のウィンドウ等
で走査することにより、例えば、ドットパターンの輪郭
線を、1ドット幅の直線ベクトル列に変換する。Next, by executing a predetermined contour line extraction program and scanning the dot pattern data in a predetermined window or the like, for example, the contour line of the dot pattern is converted into a linear vector string of 1 dot width. Convert.
【0009】そして、アウトラインデータを形成する場
合、図5(b) に示されているように、該変換された輪郭
線を形成している全てのドット(○印で示す)を評価対
象として、各ドット間を直線で接続して、アウトライン
データを形成し、例えば、アウトラインメモリ 4に格納
する。When the outline data is formed, as shown in FIG. 5 (b), all the dots (shown by circles) forming the converted contour line are evaluated. The dots are connected by straight lines to form outline data, which is stored in the outline memory 4, for example.
【0010】このアウトラインデータでは、図5(b) に
示されているように、データ量が多いので、例えば、複
数の線分に所定の補間処理を施す等して、前述の水平
線, 垂直線, 斜め線, 曲線を生成し、アウトラインフォ
ントデータメモリ 5に格納する。Since the outline data has a large amount of data as shown in FIG. 5 (b), for example, a predetermined interpolation process is applied to a plurality of line segments so that the above-mentioned horizontal line and vertical line are processed. Generates diagonal lines and curves and stores them in outline font data memory 5.
【0011】図6は、該アウトラインフォントデータの
構成例を示した図である。前述のように、該アウトライ
ンフォントデータは、水平線,垂直線,斜め線,曲線の
何れかのセグメントデータで形成されるが、水平線,
垂直線,斜め線等は、そのセグメントの種別を示すコー
ド情報と、その基点座標からの移動量 (水平方向成分Δ
xと, 垂直方向成分Δy)からなるデータで構成され、
曲線の場合には、そのセグメントのコード情報と、その
基点座標からの移動量と、複数個、例えば、2個の制御
点座標とで構成される。FIG. 6 is a diagram showing an example of the structure of the outline font data. As described above, the outline font data is formed by segment data of any one of horizontal lines, vertical lines, diagonal lines, and curved lines.
Vertical lines, diagonal lines, etc. are code information indicating the type of the segment and the amount of movement from the base point coordinates (horizontal component Δ
x and the vertical component Δy),
In the case of a curve, it is composed of the code information of the segment, the movement amount from the base point coordinate, and a plurality of, for example, two control point coordinates.
【0012】一つの曲線を、基点座標と終点座標{基点
座標+移動量(相対座標)}と、上記制御点座標で表現
し、所定の関数に基づいて、正規のアウトラインを描画
するのに、公知のBスプライン曲線がある。One curve is expressed by base point coordinates and end point coordinates {base point coordinates + movement amount (relative coordinates)} and the above control point coordinates, and in order to draw a regular outline based on a predetermined function, There is a known B-spline curve.
【0013】一つの文字のアウトラインフォントデータ
は、複数個の上記セグメントデータから構成されるが、
該文字を形成している各文字パターンには、例えば、
「いれ」「うろこ」「かどうろこ」「とめ」といった飾
り部分があり、該飾り部分は、一つの文字について、複
数個あり、然も、一つの文字内,或いは、複数個の各文
字間でも、その飾り部分の形状が類似していることが多
い。Outline font data of one character is composed of a plurality of the above segment data.
For each character pattern forming the character, for example,
There are decorations such as "Ire", "Uroko", "Kaidoro", and "Tome", and there are a plurality of decorations for each character, even within one character or between each character. , The shape of the decorative part is often similar.
【0014】然しながら、従来のアウトラインフォント
データは、上記類似している飾り部分のセグメントデー
タを、それぞれ、各文字毎に、個別に、上記コード情
報と, 移動量と、曲線の場合には、更に、制御点座標と
を保持して構成されていた。However, in the conventional outline font data, the segment data of the similar decorative portion is individually added for each character individually to the code information, the movement amount, and, in the case of a curve, further. , And the control point coordinates.
【0015】[0015]
【発明が解決しようとする課題】従って、図5から明ら
かなように、従来のアウトラインフォントデータは、各
文字内,或いは、文字間において、類似している飾り部
分のセグメントデータを、それぞれ、各文字毎に、個
別に、上記コード情報と, 移動量と、曲線の場合には、
更に、制御点座標とを保持していたため、アウトライン
フォントデータのデータ量が膨大になるという問題があ
った。Therefore, as is apparent from FIG. 5, in the conventional outline font data, the segment data of the decorative portion that is similar in each character or between characters is respectively generated. For each character, individually, the above code information, movement amount, and in the case of a curve,
Further, since the control point coordinates are held, there is a problem that the amount of outline font data becomes enormous.
【0016】そこで、上記アウトラインフォントデータ
の形状が似ている部分を部品化して、アウトラインフォ
ントデータのデータ量を削減する方法があるが、形状の
全く同じ部品においても、その大きさが違うと、別部品
として登録しなければならないため、部品の種類の数が
増え、部品データが増大するという問題が残っていた。Therefore, there is a method of reducing the data amount of the outline font data by dividing parts of the outline font data having similar shapes into parts, but if parts having the same shape have different sizes, Since it has to be registered as a separate part, the number of types of parts increases, and the problem of increasing part data remains.
【0017】本発明は上記従来の欠点に鑑み、上記部品
データに、部品の形状を決定する計算情報を持たせるこ
とにより、該部品の形状を決定するパラメータを調整す
るだけで、多種の形状を同じ部品データとして表現する
ことができ、部品データの量の軽減を図ることができる
アウトラインフォントデータの部品化方法を提供するこ
とを目的とするものである。In view of the above-mentioned conventional drawbacks, the present invention makes it possible to generate various shapes by only adding parameters for determining the shape of the component by providing the component data with calculation information for determining the shape of the component. It is an object of the present invention to provide a method of converting outline font data into components, which can be expressed as the same component data and can reduce the amount of component data.
【0018】[0018]
【課題を解決するための手段】図1は、本発明の原理構
成図である。上記の問題点は下記の如くに構成したアウ
トラインフォントデータの部品化方法によって解決され
る。FIG. 1 is a block diagram showing the principle of the present invention. The above problems can be solved by the method of dividing outline font data into parts as follows.
【0019】アウトラインフォントデータ 60 の形状が
似ている部分のデータを、部品テーブル 61 に、所定の
形式に格納しておき、上記アウトラインフォントデータ
を、部品化されないセグメントデータと、部品化デー
タとで表現し、該部品化データを、部品番号と、
該部品の形状を決定するパラメータとで構成し、上記
部品番号によって、例えば、上記部品テーブル 61 の
部品インデックスを参照し、該部品インデックスが
指示する部品番号アドレスに基づいて、その部品番号
に対応する部品データを求めて、該求めた部品デー
タを形成している部品要素の個数aと,それぞれの
部品要素が直線、又は、曲線であるか等の形状を区別す
る要素形状データbと,上記部品要素の形状の大きさ
を、上記パラメータの、例えば、一次式で表現する為
の係数(ai)と、その係数(ai)の符号を決める演算子情報
からなる計算情報cに基づいて、上記各部品要素の基
点座標からの相対座標を求めて、該部品化データを、
通常の上記セグメントデータに変換してアウトライン
フォントデータを生成する方法,及び、生成装置として
構成する。Data of a portion of the outline font data 60 having a similar shape is stored in a predetermined format in the parts table 61, and the outline font data is divided into non-parts segment data and parts data. Representation, the componentized data, with the part number,
And a parameter for determining the shape of the part. The part number refers to the part index of the part table 61, for example, and the part number corresponds to the part number based on the part number address indicated by the part index. The part data is obtained, the number a of the part elements forming the obtained part data, the element shape data b for distinguishing the shape such as whether each part element is a straight line or a curved line, and the above part Based on the calculation information c of the above parameters, for example, a coefficient (ai) for expressing by a linear expression and operator information for determining the sign of the coefficient (ai), Obtaining the relative coordinates from the base point coordinates of the component element, the componentized data,
A method for generating the outline font data by converting the segment data into the normal segment data, and a generating device.
【0020】[0020]
【作用】図1は、本発明の原理構成図である。図中、60
はアウトラインフォントデータであり、本発明による部
品化データは、部品番号とパラメータ(P1,〜) に
より構成されている。61は登録された、本発明の部品デ
ータが格納された部品テーブルである。上記部品番号
によって、登録された部品データを獲得する為に、
部品インデックスの部品番号アドレスを参照する
と、その先に、目的とする部品データが格納されてい
る。部品データは、その部品を構成する部品要素の個
数aと,それぞれの部品要素が、直線,又は、曲線で
あるか等の形状を区別する情報bと,部品要素の大き
さを決定するために、上記パラメータ(P1,〜) を使っ
て、どのように相対座標 (即ち、始点座標に対する終点
座標迄の相対距離) を計算すればよいかを示す計算情報
{例えば、上記パラメータ(Pi)の一次式}から成る。
即ち、該計算情報は、上記パラメータ(Pi)を使って、
例えば、1次式を表現するための係数(a1,〜) を決定す
る情報からなり、該計算情報c中の演算子情報では、
上記一次式に与えられた係数の逆数をとったり、符号を
反転したりの指定を行う。FIG. 1 is a block diagram showing the principle of the present invention. 60 in the figure
Is outline font data, and the componentized data according to the present invention is composed of a component number and parameters (P1, ...). Reference numeral 61 is a registered parts table in which the parts data of the present invention is stored. In order to acquire the registered part data by the above part number,
When the part number address of the part index is referenced, the target part data is stored ahead of it. In order to determine the size of a part element, the part data includes the number a of the part elements that make up the part, information b that distinguishes the shape of each part element such as whether it is a straight line or a curved line, and the size of the part element. , Calculation information indicating how to calculate the relative coordinates (that is, the relative distance from the start point coordinates to the end point coordinates) using the above parameters (P1, ~) (for example, the primary parameter of the above parameter (Pi) Formula}.
That is, the calculation information uses the above parameter (Pi),
For example, the operator information in the calculation information c is composed of information for determining the coefficients (a1, ...) For expressing the linear expression.
The reciprocal of the coefficient given to the above-mentioned linear expression is taken and the sign is inverted.
【0021】本発明では、図1のように、部品データ
に、上記計算情報cを持たせることにより、アウトラ
インフォントデータ中の、部品の形状を決定するパラメ
ータ(P1,P2, 〜) を調節するだけで、後述の図3(c1),
(c2) に図示されている如くに、部品の大きさ、あるい
は、形状を調整することができる。In the present invention, as shown in FIG. 1, by giving the above-mentioned calculation information c to the part data, the parameters (P1, P2, ...) Which determine the shape of the part in the outline font data are adjusted. As shown in Fig. 3 (c1),
As shown in (c2), the size or shape of the component can be adjusted.
【0022】このように、部品データに、計算情報
cを持たせることにより、アウトラインフォントデータ
内のパラメータ(P1,P2, 〜) の値を変えて、該計算情
報cの、例えば、一次計算式を解くことにより、部品
の大きさ,或いは、形状を調整することが可能になる。In this way, by giving the calculation information c to the component data, the values of the parameters (P1, P2, ...) in the outline font data are changed, and for example, the primary calculation formula of the calculation information c is changed. By solving, it becomes possible to adjust the size or shape of the component.
【0023】従って、少ない部品種類で、多くの部品形
状を表現することができ、アウトラインフォントデータ
の部品化データの圧縮に効果がある。Therefore, many component shapes can be expressed with a small number of component types, which is effective in compressing componentized data of outline font data.
【0024】[0024]
【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1は、本発明の原理構成図であり、図2〜
図4は、本発明の一実施例を示した図であって、図2
は、本発明によるアウトラインデータ生成装置の構成例
を示し、図3は、漢字のうろこ部分を部品化したときの
部品化データの構成例を示し、図4は、アウトラインデ
ータを生成する動作を流れ図で示している。Embodiments of the present invention will be described in detail below with reference to the drawings. The above-mentioned FIG. 1 is a principle configuration diagram of the present invention, and FIG.
FIG. 4 is a diagram showing an embodiment of the present invention.
3 shows an example of the configuration of the outline data generation device according to the present invention, FIG. 3 shows an example of the configuration of componentized data when the scale part of a Chinese character is componentized, and FIG. It shows with.
【0025】本発明においては、アウトラインフォント
データ 60 の形状が似ている部分のデータを、部品テー
ブル 61 に、所定の形式で格納しておき、上記アウトラ
インフォントデータを、部品化されないセグメントデー
タと、部品化データとで表現する方法であって、該
部品化データを、部品番号と、該部品の形状を決定
するパラメータとで構成し、上記部品番号によって
部品インデックスを参照し、該部品インデックスが
指示する部品番号アドレスに基づいて、その部品番号
に対応する部品データを求めて、該求めた部品デー
タを形成している部品要素の個数aと,それぞれの
部品要素が直線、又は、曲線であるか等の形状を区別す
る要素形状データbと,上記部品要素の形状の大きさ
を、上記パラメータの、例えば、一次式で表現する為
の係数(ai)と、その係数(ai)の符号を決める演算子情報
からなる計算情報cに基づいて、上記各部品要素の基
点座標に対する相対座標を求めて、該部品化データ
を、通常の上記セグメントデータに変換してアウトラ
インフォントデータを生成する方法,及び、生成装置
が、本発明を実施するのに必要な手段である。尚、全図
を通して同じ符号は同じ対象物を示している。In the present invention, data of a portion of the outline font data 60 having a similar shape is stored in a predetermined format in the parts table 61, and the outline font data is stored as segment data which is not made into parts. A method of expressing the component data by configuring the component data with a component number and a parameter for determining the shape of the component, referring to the component index by the component number, and instructing the component index. Based on the part number address, the part data corresponding to the part number is obtained, and the number a of the part elements forming the obtained part data and whether each part element is a straight line or a curve The element shape data b for discriminating the shapes such as the above and the size of the shape of the component element are expressed by, for example, a linear expression of the above parameters. Based on the calculation information c consisting of the coefficient (ai) and the operator information for determining the sign of the coefficient (ai) The method for generating the outline font data by converting into the segment data and the generating device are means necessary for carrying out the present invention. The same reference numerals indicate the same objects throughout the drawings.
【0026】以下、図1を参照しながら、図2〜図4に
よって、本発明のアウトラインフォントデータの部品化
方法を説明する。先ず、図2において、中央処理装置(C
PU) 1 がアウトラインフォントデータ部品解凍プログラ
ムを実行することにより、ファイル記憶装置 5から、1
文字分の本発明のアウトラインフォントデータ 60 と、
部品テーブル 61 とを読み出し、主記憶装置 6上に展開
した後、上記アウトラインフォントデータ 60 中の部品
化データを走査し、部品番号と、パラメータ(P1,P
2, 〜) を取り出す。{図4の処理ステップ 100,101
参照} 次に、該取り出した部品番号を使用して、部品テーブ
ル 61 の部品インデックスを検索し、上記部品番号
に対応した部品番号アドレスを求める。{図4の処理
ステップ 102参照} 該求めた部品番号アドレスで、当該部品化データに
対応する部品データを取り出し、計算情報cに基づ
いて、構成部品数maが示す部品要素について、上記
パラメータ(P1,P2, 〜) を使用して、該当の構成要素
の基点座標からの相対座標を計算する。2 to 4, the outline font data componentization method of the present invention will be described below with reference to FIG. First, in FIG. 2, the central processing unit (C
PU) 1 executes the outline font data parts decompression program, and
The outline font data 60 of the present invention for characters,
After reading the parts table 61 and expanding it on the main storage device 6, the partized data in the outline font data 60 is scanned and the part number and parameters (P1, P
Take out 2, ~). {Processing steps 100, 101 in FIG. 4
Reference} Next, using the retrieved part number, the part index of the part table 61 is searched to find the part number address corresponding to the part number. {Refer to processing step 102 in FIG. 4} With the obtained part number address, the part data corresponding to the partized data is taken out, and based on the calculation information c, the above-mentioned parameter (P1 , P2, ...) is used to calculate the relative coordinates of the corresponding component from the base point coordinates.
【0027】上記計算情報cは、図1にも示されてい
るように、例えば、a0+a1*P1 +〜で示される、部品の
形状を決定するパラメータ(P1,P2, 〜) に関する一次
式である。ここで、a0,a1,〜は係数を示す。As shown in FIG. 1, the calculation information c is, for example, a linear expression related to parameters (P1, P2, ...) for determining the shape of the part, which is represented by a0 + a1 * P1 + ~. . Here, a0, a1, ... Show coefficients.
【0028】従って、該部品データ中の上記計算情報
c{係数の符号である演算子情報と、係数}を用い
て、上記部品の形状を決定するパラメータ(P1,P2, 〜)
と上記一次式の演算を行うことにより、当該各部品要
素の基点座標に対する相対座標を求めることができる。Therefore, the parameters (P1, P2, ...) Which determine the shape of the component are calculated by using the calculation information c (operator information, which is the code of the coefficient, and the coefficient) in the component data.
By performing the calculation of the above-described linear expression, the relative coordinates of the respective component elements with respect to the base point coordinates can be obtained.
【0029】このとき、一つの構成部品について求めた
相対座標は、次の構成部品の基点座標を形成する。即
ち、基点座標(x,y) に、水平方向の成分Δxと、垂直方
向の成分Δy、即ち、相対座標を加算することで、次の
部品の基点座標が求められる。At this time, the relative coordinates obtained for one component form the base point coordinates of the next component. That is, by adding the horizontal component Δx and the vertical component Δy, that is, the relative coordinates to the base point coordinates (x, y), the base point coordinates of the next component can be obtained.
【0030】このようにして、当該部品の各構成要素
の、相対座標が求められると、前述の従来のアウトライ
ンフォントデータの移動量に対応するデータとなるの
で、本発明により圧縮されていたアウトラインフォント
データを、上記アウトラインフォントデータ部品解凍プ
ログラムにより、従来のセグメントデータに変換する
ことができる。{図4の処理ステップ 103参照} 上記の実施例では、該当部品の基点座標からの相対座標
を求めるので、最も、便利な一次式を例にして説明した
が、これに限るものではなく、例えば、2次式,〜であ
ってもよいことは言う迄もないことである。要は、上記
パラメータ(P0,P1, 〜) によって相対座標が求めるこ
とができる演算式であればよいということになる。その
点、上記実施例の一次式は、最も、簡便な計算式であ
る。In this way, when the relative coordinates of each component of the part are obtained, the data becomes the data corresponding to the movement amount of the above-mentioned conventional outline font data. Therefore, the outline font compressed by the present invention is used. The data can be converted into conventional segment data by the outline font data component decompression program. {Refer to processing step 103 in FIG. 4} In the above embodiment, since the relative coordinates from the base point coordinates of the relevant part are obtained, the most convenient linear expression has been described as an example. However, the present invention is not limited to this and, for example, It goes without saying that a quadratic expression may be used. The point is that any arithmetic expression can be used as long as the relative coordinates can be obtained from the above parameters (P0, P1, ...). In that respect, the linear expression of the above embodiment is the most simple calculation expression.
【0031】このようにして求めたセグメントデータ
からなるアウトラインフォントデータを使用して、中央
処理装置(CPU) 1 が、文字生成プログラムを実行するこ
とにより、該アウトラインフォントデータが形成する文
字を生成することができ、上記の処理を各文字について
実行することにより、本発明による圧縮されたアウトラ
インフォントデータを用いた文書を形成することができ
る。The central processing unit (CPU) 1 executes the character generation program by using the outline font data composed of the segment data thus obtained to generate the characters formed by the outline font data. By performing the above processing for each character, it is possible to form a document using the compressed outline font data according to the present invention.
【0032】図3は、漢字のうろこ部分を部品化 (部品
番号01)した時の例を示しており、図3(b) は、該部
品に対応する、本発明の部品テーブル 61 の構成例を示
している。FIG. 3 shows an example in which the scale part of the Chinese character is made into a part (part number 01), and FIG. 3 (b) is a structural example of the part table 61 of the present invention corresponding to the part. Is shown.
【0033】図3(a) に示したパラメータA(P1),パラ
メータB(P2)は、それぞれ、構成部品a,構成部品b
の形状を決定する為の相対座標Y,Xを求めるため使用
される。即ち、図3(b) の各構成部品a〜cの計算情報
は、前述のように、この相対座標Y,Xを求めるための
計算式(一次式)と、その計算式に、どのパラメータA
(P1),又は、パラメータB(P2)を使用するかが定義さ
れている。そのため、パラメータA(P1), パラメータB
(P2)を調節することにより、図3(c1),(c2)のような
形状の表現も可能となる。Parameter A (P1) and parameter B (P2) shown in FIG. 3 (a) are component a and component b, respectively.
It is used to determine the relative coordinates Y, X for determining the shape of. That is, the calculation information of each of the components a to c in FIG. 3B is, as described above, the calculation formula (linear formula) for obtaining the relative coordinates Y and X, and which parameter A is included in the calculation formula.
(P1) or whether to use the parameter B (P2) is defined. Therefore, parameter A (P1), parameter B
By adjusting (P2), it is possible to express the shapes as shown in FIGS. 3 (c1) and (c2).
【0034】このように、本発明によるアウトラインフ
ォントデータの部品化方法は、アウトラインフォントデ
ータの形状が似ている部分を、部品テーブルに、所定の
形式で格納しておき、上記アウトラインフォントデータ
を、部品化されないセグメントデータ(セグメントの基
点座標からの移動量 (相対座標) , 曲線であれば、制御
点座標)と、部品化データとで構成し、該部品化デ
ータを、部品番号と、該部品の形状を決定するパラ
メータ(Pi)とで構成し、上記部品番号によって、上
記部品テーブルの部品インデックスを参照し、該部品
インデックスが指示する部品番号アドレスに基づい
て、その部品番号に対応する部品データを求めて、該
求めた部品データを形成している、その部品を構成す
る部品要素の個数maと,それぞれの部品要素が直
線、又は、曲線であるか等の形状を区別する要素形状デ
ータbと,上記部品要素の形状の大きさを、上記パラ
メータ(Pi)の、例えば、一次式で表現する為の係数(ai)
と、その係数(ai)の符号を決める演算子情報cとに基
づいて、上記各部品要素の基点座標に対する相対座標を
求めて、該部品化データを、通常の上記セグメントデ
ータに変換して文字フォントデータを生成するように
した所に特徴がある。As described above, in the outline font data componentization method according to the present invention, the portions having similar shapes of the outline font data are stored in the component table in a predetermined format, and the outline font data is stored as follows. It is composed of segment data that is not made into parts (movement amount (relative coordinates) from the base point coordinates of the segment, control point coordinates if it is a curve) and partized data, and the partized data is the part number and the part And a parameter (Pi) that determines the shape of the component number, refers to the component index of the component table by the component number, and based on the component number address indicated by the component index, the component data corresponding to the component number. And the number ma of the component elements forming the component, which form the determined component data, and the respective component elements. Is a straight line or a curve, and the element shape data b for distinguishing the shapes, and the size of the shape of the component element is a coefficient (ai) for expressing the parameter (Pi) by, for example, a linear expression. )
And the operator information c that determines the sign of the coefficient (ai), the relative coordinates with respect to the base point coordinates of each component element are obtained, the componentized data is converted to the normal segment data, and characters are converted. The feature is that the font data is generated.
【0035】[0035]
【発明の効果】以上、詳細に説明したように、本発明の
アウトラインフォントデータの部品化方法によれば、ア
ウトラインフォントデータの部品化において、部品デー
タに計算情報を持たせることによって、少ない部品種で
多くの部品形状を表現することが可能になる効果があ
り、アウトラインフォントデータの部品データ圧縮に寄
与するところが大きい。As described above in detail, according to the outline font data componentization method of the present invention, in the componentization of the outline font data, the component data can be provided with calculation information to reduce the number of component types. There is an effect that it is possible to express many parts shapes with, and it greatly contributes to the parts data compression of the outline font data.
【図1】本発明の原理構成図FIG. 1 is a block diagram of the principle of the present invention.
【図2】本発明の一実施例を示した図(その1)FIG. 2 is a diagram showing an embodiment of the present invention (No. 1).
【図3】本発明の一実施例を示した図(その2)FIG. 3 is a diagram showing an embodiment of the present invention (part 2).
【図4】本発明の一実施例を示した図(その3)FIG. 4 is a diagram showing an embodiment of the present invention (part 3).
【図5】従来のアウトラインデータを生成する方法を示
した図FIG. 5 is a diagram showing a conventional method for generating outline data.
【図6】従来のアウトラインフォントデータの構成例を
示した図FIG. 6 is a diagram showing a configuration example of conventional outline font data.
1 中央処理装置(CPU) 2 スキャナ 3 ビットマップメモリ 4 アウトライ
ンメモリ 5 ファイル記憶装置 6 主記憶装置
(RAM) 60 フォントデータ 61 部品テーブ
ル 7 ファイル記憶装置 100 〜103 処理ステップ セグメントデータ 部品化データ 部品番号 パラメータ(P1,P2, 〜),パラメータA,B,〜 部品インデックス 部品番号アドレス 部品データ a 構成部品数m b 要素形状データ c 計算情報{演算子情報,係数(a1,a2, 〜) }1 Central processing unit (CPU) 2 Scanner 3 Bitmap memory 4 Outline memory 5 File storage device 6 Main storage device
(RAM) 60 Font data 61 Parts table 7 File storage device 100 to 103 Processing steps Segment data Partization data Part number parameter (P1, P2, ...), Parameter A, B, ... Parts index Part number address Part data a Component parts Number m b element shape data c calculation information {operator information, coefficients (a1, a2, ...)}
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/24 9471−5G 9192−5L G06F 15/72 355 U (72)発明者 野島 伸一 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical display location G09G 5/24 9471-5G 9192-5L G06F 15/72 355 U (72) Inventor Shinichi Nojima Kanagawa 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Fujitsu Limited
Claims (2)
似ている部分のデータを、部品テーブル(61)に、所定の
形式に格納しておき、上記アウトラインフォントデータ
(60)を、部品化されないセグメントデータ()と、部
品化データ()とで表現し、 該部品化データ()を、部品番号()と、該部品の
形状を決定するパラメータ()とで構成し、 上記部品番号()によって、上記部品テーブル(61)を
検索して、その部品番号()に対応する部品データ
()を求めて、 該求めた部品データ()を形成している部品要素の個
数(a)と,それぞれの部品要素が直線、又は、曲線
であるか等の形状を区別する要素形状データ(b)
と,上記部品要素の形状の大きさを、上記パラメータ
()の所定の式で表現する為の係数(ai)と、その係数
(ai)の符号を決める演算子情報からなる計算情報 (
c)に基づいて、上記各部品要素の基点座標からの相対
座標を求めて、該部品化データ()を、通常の上記セ
グメントデータ()に変換してアウトラインフォント
データを生成することを特徴とするアウトラインフォン
トデータの部品化方法。1. Outline font data (60), which is similar in shape, is stored in a predetermined format in a parts table (61), and the outline font data (60) is stored.
(60) is expressed by segment data () that is not made into parts and part data (), and the part data () is made up of a part number () and a parameter () that determines the shape of the part. The component that forms the component data () by searching the component table (61) by the component number () and determining the component data () corresponding to the component number (). Element shape data (b) that distinguishes the number of elements (a) and the shape such as whether each part element is a straight line or a curved line
And a coefficient (ai) for expressing the size of the shape of the above-mentioned part element by a predetermined expression of the above parameter (), and its coefficient
Calculation information consisting of operator information that determines the sign of (ai) (
Based on c), relative coordinates from the base point coordinates of each component element are obtained, the componentized data () is converted to the normal segment data (), and outline font data is generated. How to make outline font data parts.
似ている部分のデータを、所定の形式に格納した部品テ
ーブル(61)と、上記アウトラインフォントデータ(60)
を、部品化されないセグメントデータ()と、部品化
データ()とで構成し、 該部品化データ()を、部品番号()と、該部品の
形状を決定するパラメータ()とで構成し、 上記部品番号()によって、上記部品テーブル(61)の
検索してその部品番号()に対応する部品データ
()を求めて、該求めた部品データ()を形成して
いる部品要素の個数(a)と,それぞれの部品要素が
直線、又は、曲線であるか等の形状を区別する要素形状
データ(b)と,上記部品要素の形状の大きさを、上
記パラメータ()の所定の式で表現する為の係数(ai)
と, その係数(ai)の符号を決める演算子情報からなる計
算情報 (c)に基づいて、上記各部品要素の基点座標
からの相対座標を求めるアウトラインフォントデータ部
品解凍プログラムを実行するプロセッサ(1) を形成し
て、 該部品化データ()を、通常の上記セグメントデータ
()に変換してアウトラインフォントデータを生成す
ることを特徴とするアウトラインフォントデータ生成装
置。2. A parts table (61) in which data of a portion having a similar shape to the outline font data (60) is stored in a predetermined format, and the outline font data (60).
Is composed of non-partized segment data () and partized data (), and the partized data () is composed of a part number () and a parameter () for determining the shape of the part, The part number () is searched to find the part table (61) to find the part data () corresponding to the part number (), and the number of part elements () that form the found part data (). a), element shape data (b) for distinguishing shapes such as whether each part element is a straight line or a curved line, and the size of the shape of the above-mentioned part element by a predetermined formula of the above parameter (). Coefficient for expressing (ai)
And a processor (1) that executes an outline font data component decompression program that obtains relative coordinates from the base point coordinates of each component element based on calculation information (c) consisting of operator information that determines the sign of the coefficient (ai). ) Is formed, and the componentized data () is converted into the normal segment data () to generate outline font data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5218959A JPH0773306A (en) | 1993-09-03 | 1993-09-03 | Outline font data componentization method and outline font data generation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5218959A JPH0773306A (en) | 1993-09-03 | 1993-09-03 | Outline font data componentization method and outline font data generation device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0773306A true JPH0773306A (en) | 1995-03-17 |
Family
ID=16728033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5218959A Withdrawn JPH0773306A (en) | 1993-09-03 | 1993-09-03 | Outline font data componentization method and outline font data generation device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0773306A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7676104B2 (en) | 2005-09-29 | 2010-03-09 | Fujitsu Limited | Outline font compression method |
-
1993
- 1993-09-03 JP JP5218959A patent/JPH0773306A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7676104B2 (en) | 2005-09-29 | 2010-03-09 | Fujitsu Limited | Outline font compression method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH08249329A (en) | Method and apparatus for discrimination of word stated in portable electronic document | |
JPH08287184A (en) | Image cropping device and character recognition device | |
US5923782A (en) | System for detecting and identifying substantially linear horizontal and vertical lines of engineering drawings | |
JP3037854B2 (en) | Character generation method and device | |
KR910001525B1 (en) | Curve approximation | |
JPH0773306A (en) | Outline font data componentization method and outline font data generation device | |
JP3055187B2 (en) | Contour data processing device | |
JP3034140B2 (en) | Character generation method and device | |
JP3381326B2 (en) | Outline font data coordinate normalization method and outline font data generation device | |
JP3344538B2 (en) | Character generator | |
JP3163577B2 (en) | Vector font generation method | |
JP2562458B2 (en) | Character generation method for computer system | |
JP2697328B2 (en) | Contour data processing device | |
JP2937607B2 (en) | Layout creation device | |
JP5361315B2 (en) | Information processing apparatus and information processing method | |
JP3473046B2 (en) | Non-erected character drawing method and apparatus | |
JPH025095A (en) | Character output system | |
JPH06230766A (en) | Font creation system | |
JP2782753B2 (en) | Character pattern scaling device | |
JP3057959B2 (en) | Data converter | |
JP3082236B2 (en) | Character drawing device | |
JP2755299B2 (en) | Image processing method | |
JP2856704B2 (en) | Character generator | |
JP2776887B2 (en) | Font pattern processing method | |
JP2538631B2 (en) | How to handle vector characters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20001107 |