JPH09152857A - Character output device and character plotting method - Google Patents

Character output device and character plotting method

Info

Publication number
JPH09152857A
JPH09152857A JP7311054A JP31105495A JPH09152857A JP H09152857 A JPH09152857 A JP H09152857A JP 7311054 A JP7311054 A JP 7311054A JP 31105495 A JP31105495 A JP 31105495A JP H09152857 A JPH09152857 A JP H09152857A
Authority
JP
Japan
Prior art keywords
data
character
font
font data
connection information
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.)
Pending
Application number
JP7311054A
Other languages
Japanese (ja)
Inventor
Norihito Endo
典仁 遠藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP7311054A priority Critical patent/JPH09152857A/en
Publication of JPH09152857A publication Critical patent/JPH09152857A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To decrease the number of pieces of data representing coordinate components of font data and to plot a character pattern with high quality. SOLUTION: By adding a connection situation flag showing a connection situation between adjacent segments to font data, date for one coordinate of Bezier control point showing skeleton line are omitted from font data, if 'G1 is continuous', and data for two coordinates of the control points are omitted to be stored in a font storage part 14 in the omitted form, if 'G2 is continuous'. Also, in the case of reading the font data, a control part 13 restores the omitted data based on the connection situation flag and generates and plots the character pattern based on the restored font data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、日本語ワードプロ
セッサ等の文書作成装置に用いられる文字出力装置であ
って、特にセグメント間の接続状況に応じてデータが省
略されたフォントデータを用いて文字パターンを描画す
る文字出力装置及び文字描画方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character output device used in a document creation device such as a Japanese word processor. In particular, a character pattern is formed by using font data in which data is omitted depending on the connection status between segments. The present invention relates to a character output device and a character drawing method for drawing.

【0002】[0002]

【従来の技術】従来、日本語ワードプロセッサ等の文書
作成装置では、文字パターンを構成するストロークの両
側の輪郭線形状を記述するアウトライン・フォントに代
って、芯線フォントが用いられるようになってきた。芯
線フォントは、文字パターンを構成するストロークをそ
の芯線形状と線幅サンプル値に分解して記述するもので
ある。
2. Description of the Related Art Conventionally, in a document creating apparatus such as a Japanese word processor, a skeleton font has come to be used in place of an outline font which describes the contour line shapes on both sides of a stroke forming a character pattern. . The skeleton font is described by decomposing strokes that form a character pattern into skeleton shapes and line width sample values.

【0003】このような芯線フォントにあっては、文字
を構成する部品であるストロークは、芯線と線幅の情報
によって表される。すなわち、図7に示すように、3次
ベジエ曲線で表される芯線1と、その制御点P0 〜P3
(パラメータをtで表すとして、t=0,1/3,2/
3,1の4点)における線幅2の値W0 ,W1 ,W2,
W3 とによって、ストロークの両側輪郭線の形状を表
す。
In such a skeleton font, a stroke which is a component of a character is represented by skeleton and line width information. That is, as shown in FIG. 7, a core wire 1 represented by a cubic Bezier curve and its control points P0 to P3.
(Assuming that the parameter is represented by t, t = 0, 1/3, 2 /
Values W0, W1, W2 of the line width 2 at 4 points (3, 1)
The shape of the contour lines on both sides of the stroke is represented by W3.

【0004】この際、芯線1を表すベジエ曲線の制御点
P0 〜P3 の各座標は、従来、個々に絶対座標(または
前の制御点との相対座標)で表されていた。ストローク
は、2個以上のセグメントからなる場合もある。セグメ
ントとは、両側輪郭の形状が芯線+線幅で表される、最
小のストロークの単位のことである。この場合でも、セ
グメントの芯線の制御点座標は、個々に表されていた。
従来の文字描画技術は、これらの制御点情報に基づき、
ストローク(各セグメント)を個別に描画するものであ
る。
At this time, the coordinates of the control points P0 to P3 of the Bezier curve representing the core line 1 are conventionally individually expressed as absolute coordinates (or relative coordinates to the previous control point). A stroke may consist of more than one segment. A segment is a minimum stroke unit in which the shape of the contours on both sides is represented by the core line + line width. Even in this case, the control point coordinates of the core lines of the segments were individually expressed.
Conventional character drawing technology, based on these control point information,
The stroke (each segment) is drawn individually.

【0005】[0005]

【発明が解決しようとする課題】上記したように、従
来、各制御点P0 〜P3 の座標値を個別に表していた。
このため、1つのフォントについて、点座標の情報とし
ては制御点の数の分だけデータを保有することになり、
結果としてそれだけフォントデータ量が増えてしまう問
題があった。
As described above, conventionally, the coordinate values of the control points P0 to P3 are individually represented.
Therefore, for one font, as point coordinate information, data will be held for the number of control points,
As a result, there was a problem that the amount of font data increased.

【0006】また、文字のオリジナルパターンを美しく
するための方策の一環として、ストローク間などが滑ら
かになるように意図して文字がデザインされたものがあ
る。しかしながら、従来の文字描画技術では、そのよう
な意図つまりストローク間の接続状態を特に意識しない
ものであるため、品質が低下する等の問題があった。
[0006] As part of measures for making the original pattern of characters beautiful, some characters are designed with the intention of smoothing strokes. However, in the conventional character drawing technique, since there is no particular awareness of such an intention, that is, the connection state between strokes, there is a problem such as deterioration in quality.

【0007】本発明は上記実情に鑑みなされたもので、
フォントデータの座標成分を表すデータの数を削減する
と共に、文字パターンを高品質に描画することのできる
文字出力装置及び文字描画方法を提供することを目的と
する。
[0007] The present invention has been made in view of the above circumstances,
An object of the present invention is to provide a character output device and a character drawing method capable of reducing the number of data representing coordinate components of font data and drawing a character pattern with high quality.

【0008】[0008]

【課題を解決するための手段】本発明の文字出力装置
は、文字データを構成する各部品毎の連続状況を表す接
続情報を有し、この接続情報によって部品の形状を表す
データが省略された形でフォントデータを記憶するフォ
ント記憶手段と、このフォント記憶手段に記憶されたフ
ォントデータを読み込むデータ読込み手段と、このデー
タ読込み手段によって読み込まれたフォントデータの上
記省略データを上記接続情報に基づいて復元する復元処
理手段と、この復元処理手段によって復元されたフォン
トデータに基づいて文字パターンを生成し描画する文字
描画処理と、この文字描画処理によって描画された文字
パターンを出力する出力手段とを具備したものである。
The character output device of the present invention has connection information indicating the continuity of each part constituting the character data, and the data indicating the shape of the part is omitted by this connection information. A font storage means for storing font data in a form, a data reading means for reading the font data stored in the font storage means, and the abbreviated data of the font data read by the data reading means based on the connection information. And a character drawing process for generating and drawing a character pattern based on the font data restored by the restoring process unit, and an output unit for outputting the character pattern drawn by the character drawing process. It was done.

【0009】また、本発明の文字描画方法は、文字デー
タを構成する各部品毎の連続状況を表す接続情報を有
し、この接続情報によって部品の形状を表すデータが省
略されたフォントデータを用いて、このフォントデータ
を読み込んだ際に、上記省略データを上記接続情報に基
づいて復元し、この復元されたフォントデータに基づい
て文字パターンを生成し描画するようにしたものであ
る。
Further, the character drawing method of the present invention uses font data which has connection information indicating continuity of each part constituting the character data, and in which data indicating the shape of the part is omitted by this connection information. Then, when the font data is read, the omitted data is restored based on the connection information, and a character pattern is generated and drawn based on the restored font data.

【0010】これにより、接続情報が「G1連続」なら
ば、芯線を表すベジエ制御点の座標1個分のデータをフ
ォントデータから省くことができ、接続情報が「G2連
続」ならば、制御点の座標2個分のデータを省略するこ
とができる。「G1連続」とは、直前のセグメントの芯
線と接続点において、芯線の接線方向が連続である状態
を表す。「G2連続」とは、同接続点において、さらに
曲率も連続である状態を表す。
Accordingly, if the connection information is "G1 continuous", data for one coordinate of the Bezier control point representing the core line can be omitted from the font data, and if the connection information is "G2 continuous", the control point can be omitted. The data for the two coordinates can be omitted. "G1 continuous" represents a state in which the tangent direction of the core wire is continuous at the connection point with the core wire of the immediately preceding segment. "G2 continuous" represents a state where the curvature is continuous at the same connection point.

【0011】また、このような制御点を省略した形でも
復元処理によって正しい制御点の情報を得て、文字の描
画に必要なデータと等価なデータを作ることができるも
のであり、さらに接続情報により滑らかな接続を保証し
つつ、文字の描画を行うことができる。
Even if such control points are omitted, the information of the correct control points can be obtained by the restoration process, and the data equivalent to the data necessary for drawing the character can be created. With this, it is possible to draw characters while ensuring a smooth connection.

【0012】[0012]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態を説明する。図1は本発明の一実施形態に係る
文字出力装置を文書作成装置に適用した場合の構成を示
すブロック図である。この文書作成装置は、入力部1
1、表示部12、制御部13、フォント記憶部14、印
刷部15を有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration when a character output device according to an embodiment of the present invention is applied to a document creation device. This document creation device is provided with an input unit 1
1, a display unit 12, a control unit 13, a font storage unit 14, and a printing unit 15.

【0013】入力部11は、例えばキーボードからな
り、データの入力や指示を行う。この入力部11には、
「文字」キー、「数字」キー、「カーソル」キー等の各
種の入力キーが設けられている。
The input unit 11 is composed of, for example, a keyboard and inputs data and gives instructions. In this input section 11,
Various input keys such as a "character" key, a "number" key, and a "cursor" key are provided.

【0014】表示部12は、例えばLCD (Liquid Cry
stal Display) やCRT (CathodeRay Tube) 等の表示
装置からなり、データの表示を行う。制御部13は、例
えばマイクロプロセッサからなり、文字パターンの出力
処理(印字/表示)を含め、文書作成処理に関する全体
の制御を行うものであり、ここではデータ読込み処理部
13a、制御点復元処理部13b、文字描画処理部13
cを有する。
The display unit 12 is, for example, an LCD (Liquid Cry).
It consists of a display device such as a stal display) or CRT (CathodeRay Tube) and displays data. The control unit 13 is composed of, for example, a microprocessor, and controls the entire document creation process including the output process (print / display) of the character pattern. Here, the data read process unit 13a and the control point restoration process unit are used. 13b, the character drawing processing unit 13
c.

【0015】データ読込み処理部13aは、フォント記
憶部14から文字毎にフォントデータを読み込み、制御
点復元処理部13bや文字描画処理部13cに必要なデ
ータを渡す。制御点復元処理部13bは、フォントデー
タの中で省略されている芯線の中間制御点を当該データ
に付加された接続状況フラグに基づいて復元する。文字
描画処理部13cは、制御点復元処理部13bによって
復元されたフォントデータを用いて文字パターンを生
成、描画し、これを表示部12や印刷部15に渡す。
The data read processing unit 13a reads font data for each character from the font storage unit 14, and passes necessary data to the control point restoration processing unit 13b and the character drawing processing unit 13c. The control point restoration processing unit 13b restores the intermediate control point of the core line omitted in the font data based on the connection status flag added to the data. The character drawing processing unit 13c generates and draws a character pattern using the font data restored by the control point restoration processing unit 13b, and passes this to the display unit 12 and the printing unit 15.

【0016】フォント記憶部14は、例えばROMある
いはFDD(フロッピーディスク装置)/HDD(ハー
ドディスク装置)等の外部記憶装置からなり、フォント
データを記憶している。特に、本発明では、文字データ
を構成するセグメント間でG1連続またはG2連続を表
す接続状況フラグを有し、この接続状況フラグに基づい
てデータを省略した形でフォントデータを記憶してい
る。
The font storage unit 14 is composed of an external storage device such as a ROM or FDD (floppy disk device) / HDD (hard disk device), and stores font data. Particularly, in the present invention, the connection status flag indicating G1 continuity or G2 continuity is provided between the segments forming the character data, and the font data is stored based on the connection status flag with the data omitted.

【0017】印刷部15は、プリンタ装置からなり、生
成された文字パターンを紙面等に印刷する。次に、図2
に示すフローチャートを参照して、同実施形態における
文字出力処理の動作を説明する。
The printing unit 15 is composed of a printer device and prints the generated character pattern on a paper surface or the like. Next, FIG.
The operation of the character output process in the embodiment will be described with reference to the flowchart shown in FIG.

【0018】例えば、図3に示すように、2個の接続し
たセグメントの芯線を想定する(ここでは線幅情報や両
側輪郭線を省略して示す)。今、第1のセグメントの制
御点をP1',P2',P3'で表し、第2のセグメントの制
御点をP1 ,P2 ,P3 で表すことにより、各制御点の
座標に対し、以下のような差分ベクトルΔPi (Δxi
,Δyi )を定義する。なお、Δx3'>0,Δx1 >
0,Δy3'=0,Δy1 =0である。
For example, as shown in FIG. 3, it is assumed that core lines of two connected segments are omitted (line width information and contour lines on both sides are omitted). By representing the control points of the first segment by P1 ', P2', P3 'and the control points of the second segment by P1, P2, P3, the coordinates of each control point are as follows. Difference vector ΔPi (Δxi
, Δyi) is defined. In addition, Δx3 '> 0, Δx1>
0, Δy3 ′ = 0, and Δy1 = 0.

【0019】[0019]

【数1】 (Equation 1)

【0020】文字パターンの出力に際し、制御部13
は、まず、データ読込み処理部13aを起動し、フォン
ト記憶部14からフォントデータを読み込み、そこから
文字毎の描画に必要なデータとして、制御点P3'(=P
0 )の座標値(x3',y3'),接続状況フラグ,制御点
P1 の省略座標を示すL1 ,制御点P2 の省略座標を示
すL2 などを読み出す(ステップS1)。
When outputting a character pattern, the control unit 13
First activates the data reading processing unit 13a, reads the font data from the font storage unit 14, and from there, as control data P3 '(= P
The coordinate value (x3 ', y3') of 0), the connection status flag, L1 indicating the omitted coordinate of the control point P1, L2 indicating the omitted coordinate of the control point P2, etc. are read (step S1).

【0021】描画に必要なデータを読み出すと、制御部
13は各ストローク(セグメント)の接続状況フラグ
(G1連続、G2連続、それ以外)に応じて、以下のよ
うな処理を実行する(ステップS12またはS15)。
When the data necessary for drawing is read, the control unit 13 executes the following processing according to the connection status flag (G1 continuous, G2 continuous, other than that) of each stroke (segment) (step S12). Or S15).

【0022】なお、「G1連続」とは、直前のセグメン
トの芯線と接続点において、芯線の接線方向が連続であ
る状態を表す。「G2連続」とは、同接続点において、
さらに曲率も連続である状態を表す。
"G1 continuous" means that the tangent direction of the core wire is continuous at the connection point with the core wire of the immediately preceding segment. "G2 continuous" means at the same connection point
Furthermore, the curvature is also continuous.

【0023】(1)接続状況フラグ:G1連続の場合 3次ベジエ曲線の性質として、制御点P2',P3'(=P
0 ),P1 が一直線上にある。これを利用し、現在のセ
グメントの中間制御点であるP1 を、制御点P3'からの
相対座標で考えると、 P1 =P3'(x3',y3')+ΔP1 (Δx1 ,Δy1 ) =P3'+ΔP1 (L1 ,0) となる。
(1) Connection status flag: In the case of G1 continuity As a property of a cubic Bezier curve, control points P2 ', P3' (= P
0) and P1 are on a straight line. Using this, when the intermediate control point P1 of the current segment is considered in relative coordinates from the control point P3 ', P1 = P3' (x3 ', y3') + ΔP1 (Δx1, Δy1) = P3 '+ ΔP1 (L1, 0).

【0024】すなわち、制御点P1 はΔx1 ,Δy1 の
2値でなく、L1 (=Δx1 )の1個で座標を表現でき
る。したがって、図4に示すように、制御点P3',P1
の各xy座標値(データ数:4個)を制御点P3'の座標
値とL1 (データ数:3個)に置き換えることができ、
フォントデータとしては座標値1個分を減らすことがで
きる。なお、図4において、(a)は従来方式、(b)
は本方式の座標値表現を示している。
That is, the control point P1 is not a binary value of .DELTA.x1 and .DELTA.y1 but can be expressed by one L1 (= .DELTA.x1). Therefore, as shown in FIG. 4, control points P3 'and P1
Each xy coordinate value (data number: 4) can be replaced with the coordinate value of the control point P3 'and L1 (data number: 3),
The font data can be reduced by one coordinate value. In addition, in FIG. 4, (a) is a conventional method, (b)
Indicates the coordinate value expression of this method.

【0025】なお、実際には、フォントデータの中に接
続状況フラグが必要であるが、これを表すデータ数は2
ビット程度であり、制御点の座標成分のそれよりもずっ
と少なくて済む。また、この接続状況フラグは各データ
の最上位ビットあるいは最下位ビットに付加される。
Incidentally, the connection status flag is actually required in the font data, but the number of data representing this is 2
It is about a bit and much smaller than that of the coordinate component of the control point. The connection status flag is added to the most significant bit or the least significant bit of each data.

【0026】さらに、図3に示した例も含めて総括する
と、制御点P1 を求める式は次の通りである。 P1 =P3'+ΔP1 (L1 ,L1 *Δy3'/Δx3') …(a) 但し、|Δx1 |≧|Δy1 | L1 =Δx1 P1 =P3'+ΔP1 (L1 *Δx3'/Δy3',L1 ) 但し、|Δx1 |<|Δy1 | L1 =Δy1 しかして、接続状況フラグがG1連続を示している場合
には(ステップS12のYes)、制御部13はL1 の
値を読み込んだ後(ステップS13)、制御点復元処理
部13bを起動して、芯線の中間制御点P1 の座標を復
元する(ステップS14)。この場合、制御点復元処理
部13bは上記式(a)を用いて、制御点P3'の座標と
L1 の値から芯線の中間制御点P1 の座標を計算により
復元する。
Further, in summary including the example shown in FIG. 3, the equation for obtaining the control point P1 is as follows. P1 = P3 '+ ΔP1 (L1, L1 * Δy3' / Δx3 ') (a) where | Δx1 | ≧ | Δy1 | L1 = Δx1 P1 = P3' + ΔP1 (L1 * Δx3 '/ Δy3', L1) where │Δx1 │ <│Δy1 │ L1 = Δy1 However, when the connection status flag indicates G1 continuation (Yes in step S12), the control unit 13 reads the value of L1 (step S13), and then performs control. The point restoration processing unit 13b is activated to restore the coordinates of the intermediate control point P1 of the core line (step S14). In this case, the control point restoration processing unit 13b uses the above equation (a) to restore the coordinates of the intermediate control point P1 of the core line from the coordinates of the control point P3 'and the value of L1 by calculation.

【0027】次に、制御部13は文字描画処理部13c
を起動し、上記のようにして中間制御点P1 の座標が復
元されたフォントデータを用いて文字のドットパターン
を生成し、これを描画する(ステップS18)。
Next, the control unit 13 is a character drawing processing unit 13c.
Is started, a dot pattern of a character is generated using the font data in which the coordinates of the intermediate control point P1 are restored as described above, and this is drawn (step S18).

【0028】(2)接続状況フラグ:G2連続 上記式(a)が成り立つのに加え、制御点の特有の位置
関係を利用すると、現在のセグメントの制御点P2 (相
対座標で示す)は、 P2 =P3'(x3',y3')+ΔP1 (Δx1 ,Δy1 )
+ΔP2 (Δx2 ,Δy2 )=P3'+(L1 +L2 ,−
Δy2'*(L1 /Δx3')2 ) となる。
(2) Connection status flag: G2 continuity In addition to the fact that the above equation (a) is established, the control point P2 (indicated by relative coordinates) of the current segment is P2 when the unique positional relationship of the control points is used. = P3 '(x3', y3 ') + ΔP1 (Δx1, Δy1)
+ ΔP2 (Δx2, Δy2) = P3 '+ (L1 + L2,-
Δy2 '* (L1 / Δx3') 2 ).

【0029】すなわち、制御点P2 はΔx1 ,Δy1 、
Δx2 ,Δy2 の4値でなく、L1,L2 (=Δx2 )
の2個で表せる。したがって、図5に示すように、制御
点P3',P1 ,P2 の各座標値(データ数:6個)を制
御点P3'の座標値とL1 ,L2 (データ数:4個)に置
き換えることができ、フォントデータとしては座標値2
個分を減らすことができる。なお、図5において、
(a)は従来方式、同図(b)は本方式の座標値表現を
示している。
That is, the control point P2 is Δx1, Δy1,
L1 and L2 (= Δx2) instead of four values of Δx2 and Δy2
It can be represented by two. Therefore, as shown in FIG. 5, the coordinate values of the control points P3 ', P1, P2 (the number of data: 6) are replaced with the coordinate values of the control point P3' and L1, L2 (the number of data: 4). Can be created, and the font data has coordinate value 2
The number can be reduced. In FIG. 5,
(A) shows the conventional method, and (b) shows the coordinate value expression of this method.

【0030】さらに、図3に示した例も含めて総括する
と、制御点P2 を求める式は次の通りである。 P2 =P3'+(L1 +L2 ,−Δy2'*(L1 /Δx
3')2 ) 但し、Δx3'≠0 Δy3'=0 L2 =Δx2 P2 =P3'+(−Δx2'*(L1 /Δy3')2 ,L1 +
L2 ) 但し、Δx3'=0 Δy3'≠0 L2 =Δy2 しかして、接続状況フラグがG2連続を示している場合
には(ステップS15のYes)、制御部13はL2 の
値を読み込んだ後(ステップS16)、制御点復元処理
部13bを起動して芯線の中間制御点P1 とP2 の座標
を復元する(ステップS17)。この場合、制御点復元
処理部13bは上記式(a)と式(b)を用いて、L1
,L2 などから芯線の中間制御点P1 ,P2 の座標を
計算により復元する。
Further, in summary including the example shown in FIG. 3, the formula for obtaining the control point P2 is as follows. P2 = P3 '+ (L1 + L2,-[Delta] y2' * (L1 / [Delta] x
3 ') 2 ) where Δx3' ≠ 0 Δy3 '= 0 L2 = Δx2 P2 = P3' + (-Δx2 '* (L1 / Δy3') 2 , L1 +
L2) However, Δx3 ′ = 0 Δy3 ′ ≠ 0 L2 = Δy2 If the connection status flag indicates G2 continuous (Yes in step S15), the control unit 13 reads the value of L2 ( In step S16), the control point restoration processing unit 13b is activated to restore the coordinates of the intermediate control points P1 and P2 of the core line (step S17). In this case, the control point restoration processing unit 13b uses the above equations (a) and (b) to calculate L1
, L2, etc., the coordinates of the intermediate control points P1, P2 of the core are restored by calculation.

【0031】次に、制御部13は文字描画処理部13c
を起動し、上記のようにして中間制御点P1 ,P2の座
標が復元されたフォントデータを用いて文字のドットパ
ターンを生成し、これを描画する(ステップS18)。
Next, the control unit 13 controls the character drawing processing unit 13c.
Is started, a dot pattern of a character is generated using the font data in which the coordinates of the intermediate control points P1 and P2 are restored as described above, and this is drawn (step S18).

【0032】このようにして、フォントデータに基づく
ドットパターンが得られると、制御部13はこのドット
パターンを表示部12あるいは印刷部15に出力する
(ステップS19)。
When the dot pattern based on the font data is obtained in this way, the control section 13 outputs this dot pattern to the display section 12 or the printing section 15 (step S19).

【0033】このように、隣接するセクメント間での接
続状況を示す接続状況フラグをフォントデータに付加す
ることで、「G1連続」ならば、芯線を表すベジエ制御
点の座標1個分のデータをフォントデータから省くこと
ができ、「G2連続」ならば、制御点の座標2個分のデ
ータを省略することができ、結果的にデータの圧縮化を
図ることができる。
As described above, by adding the connection status flag indicating the connection status between the adjacent segments to the font data, if "G1 continuous", data for one coordinate of the Bezier control point representing the core line is obtained. It can be omitted from the font data, and if it is "G2 continuous", data for two coordinates of the control point can be omitted, and as a result, data compression can be achieved.

【0034】また、制御点を省略した形でも、上述した
ような処理によって正しい制御点の情報を得ることがで
きるので、文字の描画に必要なデータと等価なデータを
作成でき、さらに接続状況フラグによりセグメント間の
的確な接続を図ることを保証しつつ、文字の描画を行う
ことができる。
Even if the control points are omitted, the information of the correct control points can be obtained by the above-mentioned processing, so that the data equivalent to the data necessary for drawing the character can be created and the connection status flag can be created. With this, it is possible to draw characters while ensuring that the segments are accurately connected.

【0035】すなわち、例えば図6(a)に示すような
文字(「あ」)であれば、点線で示す部分の線の接続
(G1/G2接続)を同図(b)に示すように隣接セグ
メント間で滑らかに描画することができる。
That is, for example, in the case of the character ("a") as shown in FIG. 6A, the connection of the lines indicated by the dotted line (G1 / G2 connection) is made adjacent as shown in FIG. 6B. You can draw smoothly between segments.

【0036】なお、3個以上のセグメント間に対して
は、隣接する2個のセグメントをペアにして考えて行け
れば良い。また、上記実施形態では、2個の曲線セグメ
ント間を考えたが、曲線セグメント/直線セグメント間
にも同様の考え方を適用できる。なぜならば、ベジエ曲
線の性質から、直線セグメントは制御点P1 とP2 とが
線分P0 −P3 上にある特別な場合と考えれば良いから
である。
For three or more segments, two adjacent segments may be considered as a pair. Further, in the above-described embodiment, the two curved line segments are considered, but the same idea can be applied between curved line segments / straight line segments. This is because, due to the nature of the Bezier curve, the straight line segment can be considered as a special case where the control points P1 and P2 are on the line segment P0-P3.

【0037】また、文字を構成する部品間の接続関係と
して、ストローク内のセグメント間について述べたが、
このような接続関係をストローク(ストロークの輪郭
線)/飾りデータ間、また飾りデータ内のセグメント
(アウトライン表現した飾りを構成する最小単位)間に
も拡張できる。
Further, as the connection relation between the parts forming the character, the description has been made between the segments in the stroke.
Such a connection relationship can be extended between strokes (outline of stroke) / decorative data, and also between segments in the ornamental data (minimum unit constituting an outline-expressed ornament).

【0038】また、芯線フォントに限らず、文字輪郭線
が3次ベジエ曲線で表現されたアウトラインフォントに
も、輪郭線そのものに同じ考え方を使っても良い。さら
に、フォント以外にも、データ形式を同様にすれば、例
えば図形等にも応用することができる。
Further, not only the core line font, but also the outline font in which the character contour line is represented by a cubic Bezier curve may use the same idea for the contour line itself. Further, in addition to fonts, if the data format is the same, it can be applied to, for example, graphics.

【0039】[0039]

【発明の効果】以上のように本発明によれば、文字デー
タを構成する各部品毎の連続状況を表す接続情報を有
し、この接続情報によって部品の形状を表すデータが省
略されたフォントデータを用いることにより、このフォ
ントデータを読み込んだ際に上記省略データを上記接続
情報に基づいて復元し、この復元されたフォントデータ
に基づいて文字パターンを生成し描画するようにしたた
め、以下のような効果が得られる。
As described above, according to the present invention, the font data having the connection information indicating the continuation status of each part forming the character data and omitting the data indicating the shape of the part by this connection information. By using this, when the font data is read, the omitted data is restored based on the connection information, and a character pattern is generated and drawn based on the restored font data. The effect is obtained.

【0040】(1)座標を表すためのデータを削減し、
全体的なフォントデータ量を削減してデータの圧縮化を
図ることができる。 (2)セグメント間の連続状況を表す接続情報を利用す
ることで、部品の形状を表す線(芯線または輪郭線)の
接続を滑らかに描画し、これによって文字描画の高品質
化を図ることができる。
(1) Data for expressing coordinates is reduced,
It is possible to reduce the overall font data amount and achieve data compression. (2) By using the connection information indicating the continuity of the segments, the connection of the line (core line or contour line) representing the shape of the part can be smoothly drawn, and thereby the quality of character drawing can be improved. it can.

【0041】(3)芯線フォントに限らず、輪郭情報を
用いた一般のアウトラインフォントにも適用でき、さら
にはアウトライン形式(芯線表現形式を含む)の図形等
にも適用することができる。
(3) The present invention is not limited to the skeleton font, but can be applied to general outline fonts using contour information, and can also be applied to outline-type (including skeleton expression format) figures and the like.

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

【図1】本発明の一実施形態に係る文字出力装置を文書
作成装置に適用した場合の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration when a character output device according to an embodiment of the present invention is applied to a document creation device.

【図2】同実施形態における文字出力処理の動作を示す
フローチャート。
FIG. 2 is a flowchart showing an operation of character output processing in the same embodiment.

【図3】セグメント間の接続状況を説明するための図。FIG. 3 is a diagram for explaining a connection status between segments.

【図4】G1連続によるデータ省略方法を説明するため
の図。
FIG. 4 is a diagram for explaining a data omission method based on G1 continuity.

【図5】G2連続によるデータ省略方法を説明するため
の図。
FIG. 5 is a diagram for explaining a data omission method based on G2 continuity.

【図6】G1/G2連続による文字描画方法を説明する
ための図。
FIG. 6 is a diagram for explaining a character drawing method using G1 / G2 continuation.

【図7】3次ベジエ曲線で表される芯線を示す図。FIG. 7 is a diagram showing a core wire represented by a cubic Bezier curve.

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

11…入力部 12…表示部 13…制御部 13a…データ読込み処理部 13b…制御点復元処理部 13c…文字描画処理部 14…フォント記憶部 15…印刷部 DESCRIPTION OF SYMBOLS 11 ... Input part 12 ... Display part 13 ... Control part 13a ... Data reading process part 13b ... Control point restoration process part 13c ... Character drawing process part 14 ... Font storage part 15 ... Printing part

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 文字データを構成する各部品毎の連続状
況を表す接続情報を有し、この接続情報によって部品の
形状を表すデータが省略された形でフォントデータを記
憶するフォント記憶手段と、 このフォント記憶手段に記憶されたフォントデータを読
み込むデータ読込み手段と、 このデータ読込み手段によって読み込まれたフォントデ
ータの上記省略データを上記接続情報に基づいて復元す
る復元処理手段と、 この復元処理手段によって復元されたフォントデータに
基づいて文字パターンを生成し描画する文字描画処理
と、 この文字描画処理によって描画された文字パターンを出
力する出力手段とを具備したことを特徴とする文字出力
装置。
1. A font storage unit for storing font data, which has connection information indicating a continuation status of each component forming character data, and omits data representing the shape of the component by this connection information. Data reading means for reading the font data stored in the font storage means, restoration processing means for restoring the omitted data of the font data read by the data reading means based on the connection information, and the restoration processing means A character output device comprising: a character drawing process for generating and drawing a character pattern based on the restored font data; and an output means for outputting the character pattern drawn by the character drawing process.
【請求項2】 文字データを構成する各部品毎の連続状
況を表す接続情報を有し、この接続情報によって部品の
形状を表すデータが省略されたフォントデータを用い
て、 このフォントデータを読み込んだ際に、上記省略データ
を上記接続情報に基づいて復元し、 この復元されたフォントデータに基づいて文字パターン
を生成し描画するようにしたことを特徴とする文字描画
方法。
2. The font data is read by using font data having connection information indicating continuity of each part constituting character data and omitting data indicating the shape of the part by this connection information. At this time, a character drawing method is characterized in that the omitted data is restored based on the connection information, and a character pattern is generated and drawn based on the restored font data.
JP7311054A 1995-11-29 1995-11-29 Character output device and character plotting method Pending JPH09152857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7311054A JPH09152857A (en) 1995-11-29 1995-11-29 Character output device and character plotting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7311054A JPH09152857A (en) 1995-11-29 1995-11-29 Character output device and character plotting method

Publications (1)

Publication Number Publication Date
JPH09152857A true JPH09152857A (en) 1997-06-10

Family

ID=18012561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7311054A Pending JPH09152857A (en) 1995-11-29 1995-11-29 Character output device and character plotting method

Country Status (1)

Country Link
JP (1) JPH09152857A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010504559A (en) * 2006-09-20 2010-02-12 アドビ システムズ, インコーポレイテッド Glyph rendering and encoding

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010504559A (en) * 2006-09-20 2010-02-12 アドビ システムズ, インコーポレイテッド Glyph rendering and encoding

Similar Documents

Publication Publication Date Title
JP3474037B2 (en) Character pattern generator
KR100677689B1 (en) Character image generating apparatus, character image generating method, display control apparatus, display control method and computer-readable recording medium for recording character image generation program or display control program there on
JPH03273368A (en) Graphic processor
JPH09152857A (en) Character output device and character plotting method
JP3055187B2 (en) Contour data processing device
JPH0729021A (en) Picture output device
JP3443243B2 (en) Character output device
JPH11109943A (en) Font processor and recording medium recorded with font processing program
JP2726951B2 (en) Character / graphic drawing device
JP3163577B2 (en) Vector font generation method
JP2856235B2 (en) Character processing device and character output method
JP2856604B2 (en) Character processor
JP2908194B2 (en) Character transformation control method
JP3223044B2 (en) Graphic processing unit
JP3556758B2 (en) Font expression method and rasterizer
JPH05216457A (en) Data output device
JPH06167961A (en) System and device for character correction
JP3082235B2 (en) Character outline data converter
JP2740539B2 (en) Enlarged reproduction image information creation method and apparatus
JP3087511B2 (en) Data converter
JPH1173516A (en) Image processor
JPH05216456A (en) Character output device
JPS629389A (en) Character pattern generator
JPH11305750A (en) Method and device for generating pattern, computer readable recording medium storing pattern generation program and computer readable recording medium storing bit map pattern data
JP2000305551A (en) Character generation device with outline font data