JP2806790B2 - Character generator and method - Google Patents

Character generator and method

Info

Publication number
JP2806790B2
JP2806790B2 JP6059698A JP5969894A JP2806790B2 JP 2806790 B2 JP2806790 B2 JP 2806790B2 JP 6059698 A JP6059698 A JP 6059698A JP 5969894 A JP5969894 A JP 5969894A JP 2806790 B2 JP2806790 B2 JP 2806790B2
Authority
JP
Japan
Prior art keywords
character
coordinate conversion
information
conversion formula
coordinate
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 - Lifetime
Application number
JP6059698A
Other languages
Japanese (ja)
Other versions
JPH07271338A (en
Inventor
和美 小林
Original Assignee
日本電気オフィスシステム株式会社
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 日本電気オフィスシステム株式会社 filed Critical 日本電気オフィスシステム株式会社
Priority to JP6059698A priority Critical patent/JP2806790B2/en
Publication of JPH07271338A publication Critical patent/JPH07271338A/en
Application granted granted Critical
Publication of JP2806790B2 publication Critical patent/JP2806790B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は文字発生装置およびその
方法に関し、特にワードプロセッサやパーソナルコンピ
ュータなど各種の情報処理装置において、ベクトルデー
タにより形成されるアウトラインフォント文字発生機能
を備え、各々の文字輪郭パターン形成の際、拡大・縮小
・回転等の文字変形を行う文字発生装置およびその方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generating device and a method therefor, and more particularly, to various information processing devices such as a word processor and a personal computer, each of which has an outline font character generating function formed by vector data and has a character contour pattern. The present invention relates to a character generator and a method for performing character deformation such as enlargement / reduction / rotation during formation.

【0002】[0002]

【従来の技術】従来、この種の文字発生装置は、文字ド
ットイメージをデータとして持つドットフォント文字パ
ターンを発生するものと、文字輪郭パターンをベクトル
データとして持つアウトラインフォント文字パターンを
発生するものとがある。最近ではドットフォント文字パ
ターンより文字輪郭パターンの方がデータ量が少ないこ
とや、ベクトルデータにより滑らかな曲線も表現しやす
いアウトラインフォントによる文字発生装置が多く使用
されている。
2. Description of the Related Art Conventionally, this type of character generator includes a device which generates a dot font character pattern having a character dot image as data and a device which generates an outline font character pattern having a character outline pattern as vector data. is there. Recently, character generators using outline fonts, which have a smaller amount of data in a character outline pattern than a dot font character pattern, and which can easily express a smooth curve by vector data, are widely used.

【0003】図4は、従来のアウトラインフォントによ
る文字発生装置を備える一般的な情報処理システムの機
能ブロック図である。図4を参照すると、この文字発生
装置は、通常ワードプロセッサやパーソナルコンピュー
タなどの各種情報処理システムで採用されている機能と
同様であり、入力手段7、制御手段8、表示手段9、出
力制御手段10、印字手段11、変形文字情報演算手段
1と座標点情報格納手段3とアウトラインフォント展開
手段6とからなる文字発生装置13、および座標点情報
格納手段3とイメージパターン記憶手段12とからなる
記憶装置14から構成されている。
FIG. 4 is a functional block diagram of a general information processing system provided with a conventional character generator using an outline font. Referring to FIG. 4, this character generator has the same functions as those generally employed in various information processing systems such as a word processor and a personal computer, and includes an input unit 7, a control unit 8, a display unit 9, and an output control unit 10. A character generator 13 comprising a printing means 11, a modified character information calculating means 1, a coordinate point information storing means 3 and an outline font developing means 6, and a storage device comprising a coordinate point information storing means 3 and an image pattern storing means 12. 14.

【0004】通常、制御手段8から文字コード25を入
力し、座標点情報格納手段3から座標点情報27を出力
し、アウトラインフォント展開手段6において文字展開
を行い文字パターン28を出力する。文字変形を行う場
合には変形情報21により変形文字情報演算手段1にて
演算を行い、座標変換式24により座標点情報27と共
に文字展開を行う。
Normally, a character code 25 is input from the control means 8, coordinate point information 27 is output from the coordinate point information storage means 3, and character development is performed by the outline font development means 6 to output a character pattern 28. In the case of performing character deformation, a calculation is performed by the deformation character information calculation means 1 based on the deformation information 21, and the character is developed together with the coordinate point information 27 by the coordinate conversion formula 24.

【0005】一般に、変形文字情報演算手段1のように
変形情報21を入力し、基本となる座標点情報27から
実際に文字展開するための座標点を求めるための座標変
換式24を求めるには、次のような行列式に従い行って
いる。拡大・縮小を行なうとき:
In general, a method for inputting deformation information 21 like the deformed character information calculating means 1 and obtaining a coordinate conversion equation 24 for obtaining a coordinate point for actually developing a character from the basic coordinate point information 27 is described. , According to the following determinant. When scaling up / down:

【0006】 [0006]

【0007】回転を行なうとき:When rotating:

【0008】 [0008]

【0009】このときのx,yは元となる座標点、a,
bはx軸側,y軸側それぞれの拡大・縮小率、θは回転
するときの角度、X,Yは求める座標点とする。
At this time, x and y are the original coordinate points, a and
b is an enlargement / reduction ratio on each of the x-axis side and the y-axis side, θ is a rotation angle, and X and Y are coordinate points to be obtained.

【0010】例えば、x軸方向に対して2倍、y軸方向
に対して3倍の変形を行う場合、
For example, when the deformation is performed twice in the x-axis direction and three times in the y-axis direction,

【0011】 [0011]

【0012】となり、求める座標変換式24はX=2
x,Y=3yとなる。
[0012] The coordinate transformation equation 24 to be obtained is X = 2
x, Y = 3y.

【0013】また、左へ90°回転する変形を行う場合
には、
In the case of performing a deformation of rotating 90 ° to the left,

【0014】 [0014]

【0015】となり、求める座標変換式24は、 X=cos90°・x−sin90°・y Y=sin90°・x+cos90°・y cos90°=0,sin90°=1になることから、
X=−y,Y=xとなる。
The coordinate transformation formula 24 to be obtained is as follows: X = cos90 ° × x-sin90 ° y Y = sin90 ° x + cos90 ° ycos90 ° = 0, sin90 ° = 1
X = −y and Y = x.

【0016】さらに、x軸方向に対して2倍、y軸方向
に対して3倍の変形の上に左へ90°回転する変形を行
う場合には、
Further, in the case of performing a deformation of rotating 90 ° to the left on a deformation twice as large in the x-axis direction and three times in the y-axis direction,

【0017】 [0017]

【0018】となり、求める座標変換式24は、 X=2・cos90°・x−2・sin90°・y Y=3・sin90°・x+3・cos90°・y となり、cos90°=0,sin90°=1であるこ
とから、X=−2y,Y=3xとなる。
X = 2 · cos90 ° · x−2 · sin90 ° · y Y = 3 · sin90 ° · x + 3 · cos90 ° · y where cos90 ° = 0 and sin90 ° = Since it is 1, X = −2y and Y = 3x.

【0019】こうして得られた座標変換式24は座標点
情報27と共に、アウトラインフォント展開手段6に入
力され、変形後の文字パターン28として出力される。
The coordinate conversion formula 24 thus obtained is input to the outline font developing means 6 together with the coordinate point information 27, and is output as a transformed character pattern 28.

【0020】しかし、ドットフォント文字パターンの文
字展開ではドットフォントデータをそのまま転送するだ
けの文字展開に対して、アウトラインフォント文字展開
処理は文字コードに対するアウトラインフォントを検索
して、ある方式に従ってアウトラインフォントデータか
ら輪郭パターンを生成し、塗り潰しを行うという一連の
複雑な処理が必要となり、その処理時間も長くなりシス
テムの処理効率が低下する。
However, in the character expansion of the dot font character pattern, the character expansion simply transfers the dot font data as it is, whereas in the outline font character expansion processing, the outline font for the character code is searched, and the outline font data is obtained according to a certain method. , A series of complicated processes of generating an outline pattern and performing filling are required, the processing time is lengthened, and the processing efficiency of the system is reduced.

【0021】この問題を解決するために様々な方法が考
えられているが、例えば特開平4−19791号公報の
アウトラインフォントによる文字パターン発生機能を備
えた情報処理装置では、一度文字展開処理を行い、形成
された輪郭データを補助記憶部に格納することで文字展
開時間を短縮している。図5はこの情報処理装置の文字
発生部の一例を表わす機能ブロック図であり、図6はそ
の流れ図を表わす。
Various methods have been considered to solve this problem. For example, in an information processing apparatus having a character pattern generation function using an outline font disclosed in Japanese Patent Application Laid-Open No. Hei 4-19791, a character expansion process is performed once. The character development time is shortened by storing the formed contour data in the auxiliary storage unit. FIG. 5 is a functional block diagram showing an example of a character generator of the information processing apparatus, and FIG. 6 shows a flowchart of the function.

【0022】図5の文字発生部は、変形文字情報演算手
段1とアウトラインフォント展開手段6とから成るアウ
トラインフォント展開装置15と、インデックス格納エ
リア16とデータバッファ17および18aとから成る
文字パターン記憶手段20とアウトラインフォントデー
タ格納エリア18bおよび19とから成る座標点情報格
納手段3とから構成されており、アウトラインフォント
データ格納エリア18bおよび19から取り出したアウ
トラインフォントデータを、アウトラインフォント展開
装置15に入力して得られるアウトラインフォントをデ
ータバッファ17および18aに格納し、その格納した
位置情報等のインデックス情報をインデックス格納エリ
ア16に格納することで、一度、展開した文字について
はすでに展開済のアウトラインフォントをデータバッフ
ァ17および18aから読み出し、まだ一度も展開され
ていない文字のみ新たに展開して、新しいエリアに格納
していく。
The character generating section shown in FIG. 5 includes an outline font developing device 15 comprising a modified character information calculating means 1 and an outline font developing means 6, and a character pattern storing means comprising an index storage area 16 and data buffers 17 and 18a. The outline font data extracted from the outline font data storage areas 18b and 19 is input to the outline font developing device 15. The coordinate font information storage means 3 includes an outline font data storage area 18b and an outline font data storage area 18b. By storing the outline fonts obtained in this manner in the data buffers 17 and 18a and storing the stored index information such as position information in the index storage area 16, once expanded characters are already expanded. Reads out line font from the data buffer 17 and 18a, only the characters that are not yet deployed even once is newly deployed, will be stored in the new area.

【0023】この情報処理装置のアウトラインフォント
出力時の処理の流れを図7により説明すると、まず目的
の文字についてすでに展開されているかインデックスデ
ータをサーチする(ステップ201)。ここで目的のデ
ータが存在する場合(ステップ202)には、それがR
AM,HDDのどちらに存在するのか調べ(ステップ2
08)、それぞれの格納エリアから対象ファイルアクセ
スデータを取り出す(ステップ209,210)。ま
た、目的の文字がまだ展開されていない場合には、デー
タバッファとインデックス格納エリアに空きがあるか検
索し(ステップ203)、空きがある場合には文字展開
を行った(ステップ206)後、データバッファにデー
タを格納し、インデックス情報を空きインデックスに書
き込む(ステップ207)。さらに空きエリアがない場
合には、現在すでに格納されているデータの中の不要な
データのインデックスデータを書き換え(ステップ20
4)、対象ファイルにデータを書き込む(ステップ20
5)。
Referring to FIG. 7, the flow of a process performed by the information processing apparatus when outputting an outline font will be described. First, index data is searched to determine whether a target character has already been developed (step 201). If the target data exists (step 202), it
Check whether it exists in AM or HDD (step 2
08), and retrieves the target file access data from each storage area (steps 209 and 210). If the target character has not been expanded yet, it is searched whether there is a space in the data buffer and the index storage area (step 203). If there is a space, character expansion is performed (step 206). The data is stored in the data buffer, and the index information is written to the empty index (step 207). If there is no more free area, the index data of unnecessary data in the data already stored is rewritten (step 20).
4) Write data to the target file (step 20)
5).

【0024】この方法で、一度作成したアウトラインフ
ォントをRAMやHDD等に設けられた記憶エリアに格
納しておくことで、毎回文字を展開する必要がなくな
り、文字展開を高速処理することができシステムの処理
能力が向上する。
By storing outline fonts created once in a storage area provided in a RAM, HDD, or the like in this method, it is not necessary to develop characters each time, and character expansion can be performed at high speed. Processing capacity is improved.

【0025】[0025]

【発明が解決しようとする課題】この特開平4−197
91号公報の情報処理装置のように、展開後の文字を保
管することで処理時間の短縮を行うには、文字展開後の
アウトラインフォントを各々の文字ごとに全てのデータ
を格納することが必要となり、よく使用する文字だけで
も数千文字分の容量を必要とする。
The problem to be solved by the present invention is disclosed in Japanese Patent Application Laid-Open No. 4-197.
In order to shorten the processing time by storing the characters after expansion as in the information processing device of JP-A-91, it is necessary to store all data for each character in the outline font after character expansion. Thus, even a frequently used character requires a capacity of several thousand characters.

【0026】さらに、実際に文書を作成する時には、文
書の目的または作成者の趣味等で出力結果に特徴を持た
せるために様々な字体、サイズ、方向を必要とするため
文字に対して、拡大・縮小あるいは様々な角度での回転
を施した文字を展開することになり、使用頻度の少ない
文字を格納する必要はないとしても同じ文字でも数種類
の展開されたデータが存在し、更に数倍の文字の格納エ
リアが必要となる。
Furthermore, when a document is actually created, various fonts, sizes, and directions are required to give characteristics to the output result depending on the purpose of the document or the hobby of the creator.・ Characters that have been reduced or rotated at various angles will be expanded.There is no need to store infrequently used characters, but there are several types of expanded data for the same character, and several times more. A storage area for characters is required.

【0027】また、一般的にアウトラインフォント文字
の輪郭を形成する座標点は、ある一定の範囲の拡大・縮
小を行い、展開されたドットフォントでの文字の品位を
保つことを考慮しデザインされたサイズで作られてお
り、通常、拡大・縮小が頻繁に行われる。さらに最近で
は変形文字として、傾斜、回転等も要求されることも多
く、文字展開のたびに変形するための、拡大・縮小率や
傾斜角、回転角の入力が必要となり、処理時間がかかる
という問題がある。
In general, coordinate points forming the outline of outline font characters are designed in consideration of enlarging / reducing a certain range to maintain the character quality of the expanded dot font. It is made in size and is usually scaled frequently. Furthermore, in recent years, inclination, rotation, and the like are often required as deformed characters, and it is necessary to input an enlargement / reduction ratio, an inclination angle, and a rotation angle in order to deform each time character expansion occurs, which takes a long processing time. There's a problem.

【0028】従って、本発明の目的は文字を変形させて
展開する際、そのつど必要となる変形情報の入力をなく
し処理時間を短縮することである。
Accordingly, it is an object of the present invention to eliminate the need to input deformation information which is required each time a character is transformed and developed, thereby shortening the processing time.

【0029】[0029]

【課題を解決するための手段】本発明の文字発生装置
は、予めデザインされているデザイン文字の文字輪郭を
形成する座標点情報を文字コードに対応して格納してい
る座標点情報格納手段と、前記デザイン文字の変形情報
を入力してこの変形情報から第1の座標変換式を出力す
る変形文字情報演算手段と、前記第1の座標変換式が常
時使用する基本文字を得るための第2の座標変換式のと
き定数として格納する定数格納手段と、前記第2の座標
変換式と前記変形文字情報演算手段から随時入力される
前記第1の座標変換式との使用状態を制御する使用情報
制御手段と、前記第1の座標変換式と前記第2の座標変
換式とを入力し前記使用情報制御手段からの制御信号に
より最終的に必要となる第3の座標変換式を出力する変
換式選択手段と、前記座標点情報と前記第3の座標変換
式とからアウトラインフォント文字展開を行うアウトラ
インフォント展開手段とを備える。
A character generator according to the present invention comprises: coordinate point information storage means for storing coordinate point information forming a character outline of a previously designed design character in correspondence with a character code; A deformed character information calculating means for inputting deformation information of the design character and outputting a first coordinate conversion formula from the deformation information; and a second character conversion means for obtaining a basic character which is always used by the first coordinate conversion formula. Constant storage means for storing as a constant when the coordinate conversion formula is used, and usage information for controlling a use state of the second coordinate conversion formula and the first coordinate conversion formula which is inputted from time to time from the deformed character information calculation means. A control unit, a conversion formula for inputting the first coordinate conversion formula and the second coordinate conversion formula, and outputting a third coordinate conversion formula finally required by a control signal from the usage information control unit; Selection means and before And a outline font expansion means for performing outline font character development from the coordinate point information and the third coordinate conversion formula.

【0030】[0030]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例を示すブロック図であり、
図2は本発明の一実施例の文字展開処理図を表わす。
Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention.
FIG. 2 shows a character expansion processing diagram of one embodiment of the present invention.

【0031】図1を参照すると、この実施例の文字発生
装置は、予めデザインされているデザイン文字の文字輪
郭を形成する座標点情報27を文字コード25に対応し
て格納している座標点情報格納手段3と、デザイン文字
の変形情報21を入力してこの変形情報21から第1の
座標変換式22を出力する変形文字情報演算手段1と、
第1の座標変換式22が常時使用する基本文字を得るた
めの第2の座標変換式23のとき定数として格納する定
数格納手段2と、第2の座標変換式23と変形文字情報
演算手段1から随時入力される第1の座標変換式22と
の使用状態を制御する使用情報制御手段4と、第1の座
標変換式22と第2の座標変換式23とを入力し使用情
報制御手段4からの制御信号により最終的に必要となる
第3の座標変換式24を出力する変換式選択手段5と、
座標点情報27と第3の座標変換式24とからアウトラ
インフォント文字展開を行うアウトラインフォント展開
手段6とから構成される。
Referring to FIG. 1, the character generator of this embodiment stores coordinate point information 27 for forming a character outline of a design character designed in advance in correspondence with a character code 25. Storage means 3; modified character information calculating means 1 for inputting design character deformation information 21 and outputting a first coordinate conversion formula 22 from the deformation information 21;
Constant storage means 2 for storing as a constant when second coordinate conversion equation 23 for obtaining a basic character which is always used by first coordinate conversion equation 22, second coordinate conversion equation 23 and modified character information calculating means 1 Usage information control means 4 for controlling the use state of the first coordinate conversion formula 22 which is input from time to time, and the usage information control means 4 which inputs the first coordinate conversion formula 22 and the second coordinate conversion formula 23 A conversion formula selection means 5 for outputting a third coordinate conversion formula 24 finally required by the control signal from
An outline font developing means 6 for developing outline font characters from the coordinate point information 27 and the third coordinate conversion formula 24.

【0032】次に、図1および図2を参照して、この実
施例の動作を説明する。一般的に変形文字情報演算手段
1のように、変形情報21を入力し基本となる座標点情
報から実際に文字展開するための座標点を求めるための
座標変換式を求めることをある行列式に従い行うことは
従来の技術で説明した通りであり、これに基づきこの実
施例の動作について説明する。
Next, the operation of this embodiment will be described with reference to FIGS. In general, like the deformed character information calculation means 1, the transformation information 21 is input, and a coordinate transformation formula for finding a coordinate point for actually developing a character from the basic coordinate point information is determined according to a certain determinant. The operation is performed as described in the related art, and the operation of this embodiment will be described based on the operation.

【0033】まず、図2に示すように、500ドット×
500ドットの大きさでデザインされたデザイン文字A
が存在するとき、座標点情報格納手段3は文字コード2
5に対応したデザイン文字Aを再現することのできる座
標点情報27を格納している。例えば、デザイン文字A
を変形を行わず展開する場合には、座標点情報格納手段
3は入力された文字コード25に対する座標点情報27
を出力する。デザイン文字Aの変形を行わないので、使
用情報制御手段4は座標点情報27のみ使用することを
出力し、変換式選択手段3は変換式を出力しない。アウ
トラインフォント展開手段6は、この座標点情報27を
入力することでデザイン文字Aをそのままの文字で図2
のAのような文字を文字パターン28として展開するこ
とができる。
First, as shown in FIG.
Design letter A designed in the size of 500 dots
Exists, the coordinate point information storage means 3 stores the character code 2
5 stores coordinate point information 27 that can reproduce the design character A corresponding to No. 5. For example, design letter A
Is developed without performing the transformation, the coordinate point information storage means 3 stores the coordinate point information 27 corresponding to the input character code 25.
Is output. Since the design character A is not transformed, the use information control means 4 outputs that only the coordinate point information 27 is used, and the conversion formula selection means 3 does not output the conversion formula. By inputting the coordinate point information 27, the outline font developing means 6 converts the design character A into a character as it is in FIG.
Can be developed as a character pattern 28.

【0034】次に、デザイン文字Aに対して、x軸方向
に4/5倍、y軸方向に1倍、x軸に対して20°の傾
斜をつけた文字をユーザーが最も多く使用する場合に、
この条件を基本文字Bと定めるとする。まず、これらの
基本文字情報を変形情報21として変形文字情報演算手
段1へ入力し、第1の座標変換式22を求める。傾斜を
するための基本式は、x軸に対する傾斜を行うとき、
Next, in the case where the user uses the most frequently used characters that are 4/5 times in the x-axis direction, 1 times in the y-axis direction, and are inclined at 20 ° to the x-axis with respect to the design character A. To
This condition is defined as a basic character B. First, the basic character information is input to the deformed character information calculation means 1 as deformation information 21, and a first coordinate conversion equation 22 is obtained. The basic formula for tilting is: When tilting with respect to the x-axis,

【0035】 [0035]

【0036】y軸に対する傾斜を行うとき、When tilting with respect to the y-axis,

【0037】 [0037]

【0038】となる。ここで、X,Y,x,yはそれぞ
れ求める座標点と元の座標点であり、γは傾斜角度を示
す。基本文字Bを生成するための座標変換式は、縮小に
対して、
## EQU4 ## Here, X, Y, x, and y are the coordinate point to be obtained and the original coordinate point, respectively, and γ indicates the inclination angle. The coordinate conversion formula for generating the basic character B is:

【0039】 [0039]

【0040】傾斜に対して、For the inclination,

【0041】 [0041]

【0042】であるので、これらを合成すると、Therefore, when these are synthesized,

【0043】 [0043]

【0044】となり、tan20°≒0.36とする
と、 X=(4/5)x Y=0.36x+y が得られ、この座標変換式を定数として定数格納手段2
へ格納する。
Assuming that tan20 ° ≒ 0.36, X = (4/5) x Y = 0.36x + y is obtained.
To store.

【0045】基本文字Bの展開では、定数格納手段2は
定数とされている第2の座標変換式23を出力し、使用
情報制御手段4は定数格納手段2からの第2の座標変換
式23のみを使用することを出力し、変換式選択手段5
は定数格納手段2からの第2の座標変換式23をそのま
ま出力する。座標点情報格納手段3は入力された文字コ
ード25に対応する座標点情報27を出力し、アウトラ
インフォント展開手段6は座標点情報27と第3の座標
変換式24から400×500ドットでx軸に対して2
0°傾斜のある図2のBのような文字を文字パターン2
8として展開することができる。
In the expansion of the basic character B, the constant storage means 2 outputs the second coordinate conversion formula 23 which is a constant, and the usage information control means 4 outputs the second coordinate conversion formula 23 from the constant storage means 2. That only the conversion formula selection means 5 is used.
Outputs the second coordinate conversion expression 23 from the constant storage means 2 as it is. The coordinate point information storage means 3 outputs coordinate point information 27 corresponding to the input character code 25, and the outline font developing means 6 converts the coordinate point information 27 and the third coordinate conversion formula 24 into 400 × 500 dots on the x-axis. 2 for
A character such as B in FIG.
8 can be developed.

【0046】次に、基本文字Bに対してさらにx軸方向
に1/2倍、y軸方向に1/2倍、左へ90°回転した
文字を展開する場合、これらの条件を変形情報21とし
て変形情報演算手段1に入力し、第1の座標変換式22
を求める。すなわち、縮小に対して、
Next, in the case where a character which is further rotated by 1/2 times in the x-axis direction and 1/2 times in the y-axis direction by 90 degrees to the left with respect to the basic character B is developed, these conditions are applied to the modification information 21. Is input to the deformation information calculation means 1 and the first coordinate conversion equation 22
Ask for. That is, for reduction,

【0047】 [0047]

【0048】回転に対して、For rotation,

【0049】 [0049]

【0050】であるので、これらを合成すると、Therefore, when these are synthesized,

【0051】 [0051]

【0052】となり、sin90°=1,cos90°
=0であることから、 X=−(1/2)y Y=(1/2)x という第1の座標変換式22が変形文字情報演算手段1
から出力される。この第1の座標変換式22は基本文字
Bを展開する座標変換式ではないため定数格納手段2に
は格納されず、変換式選択手段5に入力される。使用情
報制御手段4は第1の座標変換式22および第2の座標
変換式23の両方共使用することを変換式選択手段5に
出力し、変換式選択手段5は第1の座標変換式22およ
び第2の座標変換式23から最終的に必要な第3の座標
変換式24を出力する。
Where sin90 ° = 1, cos90 °
= 0, the first coordinate conversion expression 22 of X = − (1/2) y Y = (1/2) x
Output from Since the first coordinate conversion formula 22 is not a coordinate conversion formula for developing the basic character B, it is not stored in the constant storage unit 2 but is input to the conversion formula selection unit 5. The usage information control unit 4 outputs to the conversion formula selection unit 5 that both the first coordinate conversion formula 22 and the second coordinate conversion formula 23 are used, and the conversion formula selection unit 5 outputs the first coordinate conversion formula 22 And finally the third coordinate conversion formula 24 required from the second coordinate conversion formula 23 is output.

【0053】第2の座標変換式23は、X=(4/5)
x,Y=0.36x+yであり、第1の座標変換式22
は、X=−(1/2)y,Y=(1/2)xである。基
本文字Bに対して変形を行うことから、第2の座標変換
式23を、X1 =(4/5)x,Y1 =0.36x+y
とし、第1の座標変換式22をX=−(1/2)Y1
Y=(1/2)X1 としてX1 ,Y1 にそれぞれ代入す
ると、X=−(1/2)(0.36x+y),Y=(1
/2)(4/5)xから、X=−0.18x−0.5
y,Y=0.4xとなり、これらの式が最終的な第3の
座標変換式24として変換式選択手段5からアウトライ
ンフォント展開手段6に出力される。座標点情報格納手
段3は入力された文字コード25に対応する座標点情報
27を出力する。アウトラインフォント展開手段6はこ
の座標点情報27と最終的な第3の座標変換式24から
250×200ドットの左へ90°回転しy軸に対して
20°傾斜のある図2のDのような文字を文字パターン
28として展開することができる。
The second coordinate conversion equation 23 is expressed as follows: X = (4/5)
x, Y = 0.36x + y, and the first coordinate conversion equation 22
Is X =-(1/2) y and Y = (1/2) x. Since the transformation is performed on the basic character B, the second coordinate conversion formula 23 is expressed as X 1 = (4/5) x, Y 1 = 0.36x + y
And the first coordinate conversion equation 22 is expressed as X = − (1 /) Y 1 ,
Y = (1/2) as each is substituted into X 1, Y 1 as X 1, X = - (1/2 ) (0.36x + y), Y = (1
/ 2) From (4/5) x, X = −0.18x−0.5
y, Y = 0.4x, and these equations are output from the conversion formula selection unit 5 to the outline font development unit 6 as the final third coordinate conversion formula 24. The coordinate point information storage means 3 outputs coordinate point information 27 corresponding to the input character code 25. From the coordinate point information 27 and the final third coordinate conversion formula 24, the outline font developing means 6 rotates 250.times.200 dots to the left by 90.degree. And tilts by 20.degree. With respect to the y-axis as shown in FIG. Character can be developed as a character pattern 28.

【0054】同様に、図2の変形文字Cで示すような基
本文字Aとなるための変形情報21を使用せずに追加し
た変形情報21だけ使用して文字を展開する場合には、
例えば、x軸方向に1/2倍、y軸方向に1/2倍、左
へ90°回転するという条件を変形情報21として変形
文字情報演算手段1へ入力し、前述で計算した通り、X
=−(1/2)y,Y=(1/2)xという第1の座標
変換式22を変換式選択手段5へ出力する。変換式選択
手段5では、定数格納手段2からの基本文字Aとなるた
めの第2の座標変換式23も入力しているが、使用情報
制御手段4から定数格納手段2からの第2の座標変換式
23は使用せず変形文字情報演算手段1からの第1の座
標変換式22だけを使用することを入力し、変形文字情
報演算手段1からの第1の座標変換式22をそのままア
ウトラインフォント展開手段6へ出力する。アウトライ
ンフォント展開手段6では、入力された第1の座標変換
式22と座標点情報格納手段3からの座標点情報27か
ら目的の文字を文字パターン28として展開することが
できる。
Similarly, when a character is developed using only the added deformation information 21 without using the deformation information 21 for forming the basic character A as shown by the deformation character C in FIG.
For example, a condition of 1/2 times in the x-axis direction, 1/2 times in the y-axis direction, and 90 ° rotation to the left is input to the deformed character information calculating means 1 as the deformed information 21 and X is calculated as described above.
The first coordinate conversion formula 22 of = − (1 /) y and Y = (1 /) x is output to the conversion formula selection means 5. The conversion formula selection means 5 also inputs the second coordinate conversion formula 23 for becoming the basic character A from the constant storage means 2, but the use information control means 4 sends the second coordinate conversion formula 23 from the constant storage means 2. It is input that the conversion formula 23 is not used and only the first coordinate conversion formula 22 from the deformed character information calculating means 1 is used, and the first coordinate conversion formula 22 from the deformed character information calculating means 1 is used as an outline font. Output to the developing means 6. The outline font developing means 6 can develop a target character as a character pattern 28 from the input first coordinate conversion formula 22 and the coordinate point information 27 from the coordinate point information storage means 3.

【0055】また、基本文字Bを定めても、デザイン文
字Aをそのまま展開したい場合にも同様に、変換式選択
手段5には、定数格納手段2からの第2の座標変換式2
3と変形文字情報演算手段1からの第1の座標変換式2
2が入力されているが、使用情報制御手段4からどちら
も使用しないことを入力することにより何れも出力され
ない。アウトラインフォント展開部6では、座標点情報
格納手段3からの座標点情報だけを利用して、図2のA
のようなデザイン文字を展開することができる。
Even when the basic character B is determined and the design character A is to be developed as it is, the conversion formula selection means 5 similarly stores the second coordinate conversion formula 2 from the constant storage means 2.
3 and the first coordinate conversion formula 2 from the deformed character information calculation means 1.
2 is input, but none is output by inputting from the usage information control means 4 that neither is used. The outline font developing unit 6 uses only the coordinate point information from the coordinate point information storage means 3 to store
Can be expanded.

【0056】この実施例により、同じ変形を続けて展開
する場合やユーザーがある一定の変形の文字を常時扱う
場合には、そのつど変形情報21を入力する必要がな
く、処理が容易に行えるばかりでなく処理時間も短縮で
きる。例えば、上述した基本文字Bの展開を行う場合、
少なくともx軸方向の倍率、y軸方向の倍率、x軸に対
する傾斜のための行列式の4要素等の入力を省くことが
できる。
According to this embodiment, when the same deformation is continuously developed or when the user always handles a character having a certain deformation, it is not necessary to input the deformation information 21 each time, and the processing can be easily performed. In addition, the processing time can be shortened. For example, when expanding the basic character B described above,
At least the input of the magnification in the x-axis direction, the magnification in the y-axis direction, and the four elements of the determinant for inclination with respect to the x-axis can be omitted.

【0057】次に、この実施例における動作の一例を示
す流れ図である図3を図1および図2に併せて参照して
説明する。まず、基本文字情報を入力するかどうか(ス
テップ101)判断し、入力するのであれば、基本文字
Bを形成するための基本文字情報を入力(ステップ10
2)する。次に基本文字B以外の変形文字C情報を入力
するかどうか(ステップ103)判断し、入力するので
あれば、文字変形するための変形情報21を入力(ステ
ップ104)する。次に、展開する文字の文字コード2
5を入力(ステップ105)し、その文字コード25に
対応した座標点情報27を選択(ステップ106)す
る。次に、基本文字B・変形文字Cのそれぞれの変換式
を使用するかどうか(ステップ107)判断して、最終
的な変換式を演算(ステップ108)し、文字展開を行
う(ステップ109)。続いて、次の文字を展開する場
合には最初に戻り、基本文字B・変形文字Cにそれぞれ
変更がなければ、文字コード入力から処理を続けること
になる。
Next, FIG. 3, which is a flowchart showing an example of the operation in this embodiment, will be described with reference to FIGS. First, it is determined whether or not to input basic character information (step 101). If so, basic character information for forming the basic character B is input (step 10).
2) Do it. Next, it is determined whether or not to input deformed character C information other than the basic character B (step 103). If so, deformation information 21 for character deformation is input (step 104). Next, character code 2 of the character to be expanded
5 is input (step 105), and the coordinate point information 27 corresponding to the character code 25 is selected (step 106). Next, it is determined whether or not to use the respective conversion formulas of the basic character B and the modified character C (step 107), and the final conversion formula is calculated (step 108), and character expansion is performed (step 109). Subsequently, when the next character is developed, the process returns to the beginning, and if there is no change in the basic character B and the modified character C, the processing is continued from the input of the character code.

【0058】以上の説明からも明らかなように、この実
施例により、文字展開後のアウトラインフォントを各文
字ごとに全てのデータを格納するための記憶エリアを必
要とせず、基本文字Bとして一度変形情報21を入力し
ておけば、以後変更がない限りこの処理を省略して行う
ことができる。また、別の変形文字Cあるいは基本文字
B+変形文字Cについて続けて使用する場合には、変形
情報21の入力処理を省略することができる。また、こ
の実施例では基本文字Bを一種類だけ定数として格納す
るとして説明してきたが、定数格納手段2を複数備え、
使用情報制御手段4でそれぞれを切り換えて使用するこ
とを制御することで、変換式選択手段5にて最終的な第
3の座標変換式24を求め、何種類もの変形も速やかに
処理することも可能である。さらに、用途により極めて
使用頻度の高い文字については、展開済のパターンを格
納しておくための先行技術である特開平4−19791
号公報において説明した記憶エリアを併用することによ
り、更に処理時間を短縮することも可能である。
As is clear from the above description, according to this embodiment, the outline font after character expansion does not require a storage area for storing all data for each character, and is once transformed as the basic character B. If the information 21 is input, this processing can be omitted, unless otherwise changed. When another modified character C or basic character B + modified character C is used successively, the input processing of the modified information 21 can be omitted. Further, in this embodiment, it has been described that only one type of basic character B is stored as a constant, but a plurality of constant storage means 2 are provided,
The usage information control means 4 controls the switching and use of each of them, so that the conversion formula selection means 5 obtains the final third coordinate conversion formula 24 and can quickly process many types of deformations. It is possible. Further, Japanese Patent Laid-Open No. 4-19791, which is a prior art for storing a developed pattern for a character which is extremely frequently used depending on the application.
The processing time can be further reduced by using the storage areas described in the above publication together.

【0059】[0059]

【発明の効果】以上説明したように、本発明によれば、
予めデザインされているデザイン文字の変形情報を入力
してこの変形情報から第1の座標変換式を出力し、第1
の座標変換式が常時使用する基本文字を得るための第2
の座標変換式のとき定数として格納し、第2の座標変換
式と変形文字情報演算手段から随時入力される第1の座
標変換式との使用状態を制御することにより最終的に必
要となる第3の座標変換式を出力し、座標点情報と第3
の座標変換式とからアウトラインフォント文字展開を行
うことにより、常に使用する文字変形後の文字展開や繰
り返し使用する文字変形と文字展開とを容易に行い、変
形情報の入力および座標変換式の演算の時間を短縮する
ことができる。また、文字展開後のアウトラインフォン
トを各文字ごとに全てのデータを格納するための記憶エ
リアとして大量に記憶手段を用意する必要もなくなる。
As described above, according to the present invention,
Deformation information of a design character designed in advance is input, and a first coordinate conversion formula is output from the deformation information,
To obtain the basic characters used by the coordinate conversion formula
Is stored as a constant at the time of the coordinate conversion formula, and the state of use of the second coordinate conversion formula and the first coordinate conversion formula input as needed from the deformed character information calculation means is controlled, so that the second conversion formula is finally required. 3 is output, and the coordinate point information and the third
By performing outline font character expansion from the coordinate conversion formula of this formula, it is possible to easily perform character expansion after character deformation that is always used or character deformation and character expansion to be used repeatedly, and to input deformation information and calculate coordinate conversion formulas. Time can be reduced. Also, there is no need to prepare a large amount of storage means as a storage area for storing all data for each character in the outline font after character expansion.

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

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

【図2】この実施例の文字展開処理の一例を示す図であ
る。
FIG. 2 is a diagram illustrating an example of a character expansion process according to the embodiment;

【図3】この実施例における動作の一例を示す流れ図で
ある。
FIG. 3 is a flowchart illustrating an example of an operation in the embodiment.

【図4】従来のアウトラインフォントによる文字発生装
置と文字発生装置を備える一般的な情報処理システムの
ブロック図である。
FIG. 4 is a block diagram of a conventional character generator using an outline font and a general information processing system including the character generator.

【図5】他の従来の文字発生装置の一例を示すブロック
図である。
FIG. 5 is a block diagram showing an example of another conventional character generation device.

【図6】図6の文字発生装置の動作の一例を示す流れ図
である。
FIG. 6 is a flowchart showing an example of the operation of the character generator of FIG. 6;

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

1 変形文字情報演算手段 2 定数格納手段 3 座標点情報格納手段 4 使用情報制御手段 5 変換式選択手段 6 アウトラインフォント展開手段 21 変形情報 22 第1の座標変換式 23 第2の座標変換式 24 座標変換式 25 文字コード 26 使用情報 27 座標点情報 28 文字パターン DESCRIPTION OF SYMBOLS 1 Deformed character information calculation means 2 Constant storage means 3 Coordinate point information storage means 4 Usage information control means 5 Conversion formula selection means 6 Outline font development means 21 Deformation information 22 First coordinate conversion formula 23 Second coordinate conversion formula 24 Coordinate Conversion formula 25 Character code 26 Usage information 27 Coordinate point information 28 Character pattern

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 予めデザインされているデザイン文字の
文字輪郭を形成する座標点情報を文字コードに対応して
格納している座標点情報格納手段と、前記デザイン文字
の変形情報を入力してこの変形情報から第1の座標変換
式を出力する変形文字情報演算手段と、前記第1の座標
変換式が常時使用する基本文字を得るための第2の座標
変換式のとき定数として格納する定数格納手段と、前記
第2の座標変換式と前記変形文字情報演算手段から随時
入力される前記第1の座標変換式との使用状態を制御す
る使用情報制御手段と、前記第1の座標変換式と前記第
2の座標変換式とを入力し前記使用情報制御手段からの
制御信号により最終的に必要となる第3の座標変換式を
出力する変換式選択手段と、前記座標点情報と前記第3
の座標変換式とからアウトラインフォント文字展開を行
うアウトラインフォント展開手段とを備えることを特徴
とする文字発生装置。
1. A coordinate point information storage means for storing coordinate point information forming a character outline of a previously designed design character corresponding to a character code, and inputting deformation information of the design character. Deformed character information calculating means for outputting a first coordinate conversion formula from the deformation information; and storing a constant as a constant when the first coordinate conversion formula is a second coordinate conversion formula for obtaining a basic character which is always used. Means, use information control means for controlling a use state of the second coordinate conversion formula and the first coordinate conversion formula input as needed from the deformed character information calculation means, and the first coordinate conversion formula; A conversion formula selection unit that inputs the second coordinate conversion formula and outputs a third coordinate conversion formula finally required by a control signal from the usage information control unit; and the coordinate point information and the third
An outline font developing means for developing an outline font character from the coordinate conversion formula of (1).
【請求項2】 予めデザインされているデザイン文字の
文字輪郭を形成する座標点情報を文字コードに対応して
格納し、前記デザイン文字の変形情報を入力してこの変
形情報から第1の座標変換式を出力し、前記第1の座標
変換式が常時使用する基本文字を得るための第2の座標
変換式のとき定数として格納し、前記第2の座標変換式
と前記変形文字情報演算手段から随時入力される前記第
1の座標変換式との使用状態を制御し、前記第1の座標
変換式と前記第2の座標変換式とを入力し前記使用情報
制御手段からの制御信号により最終的に必要となる第3
の座標変換式を出力し、前記座標点情報と前記第3の座
標変換式とからアウトラインフォント文字展開を行うこ
とを特徴とする文字発生方法。
2. Coordinate point information for forming a character outline of a previously designed design character is stored in correspondence with a character code, and transformation information of the design character is inputted, and a first coordinate conversion is performed from the transformation information. An expression is output and stored as a constant when the first coordinate conversion expression is a second coordinate conversion expression for obtaining a basic character used at all times. The use state of the first coordinate conversion equation, which is input as needed, is controlled, and the first coordinate conversion equation and the second coordinate conversion equation are input. The third necessary for
A character conversion method for outputting an outline font character from the coordinate point information and the third coordinate conversion formula.
JP6059698A 1994-03-30 1994-03-30 Character generator and method Expired - Lifetime JP2806790B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6059698A JP2806790B2 (en) 1994-03-30 1994-03-30 Character generator and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6059698A JP2806790B2 (en) 1994-03-30 1994-03-30 Character generator and method

Publications (2)

Publication Number Publication Date
JPH07271338A JPH07271338A (en) 1995-10-20
JP2806790B2 true JP2806790B2 (en) 1998-09-30

Family

ID=13120696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6059698A Expired - Lifetime JP2806790B2 (en) 1994-03-30 1994-03-30 Character generator and method

Country Status (1)

Country Link
JP (1) JP2806790B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010224145A (en) * 2009-03-23 2010-10-07 Seiko Epson Corp Information processing apparatus, control device, and program

Also Published As

Publication number Publication date
JPH07271338A (en) 1995-10-20

Similar Documents

Publication Publication Date Title
US5524198A (en) Character or graphic processing method and apparatus
JP3791259B2 (en) Outline smoothing processing method
KR100306862B1 (en) Character pattern generator, character generating method, and storage medium therefor
JP3037854B2 (en) Character generation method and device
JP2806790B2 (en) Character generator and method
JP2806679B2 (en) Character generator
JP3315861B2 (en) Character generator
JP3146771B2 (en) Font rasterizing apparatus and method
JPH10198333A (en) Outline character drawing device
JP3210448B2 (en) Character processing method and apparatus
JP4080470B2 (en) Character pattern generator
JP2782752B2 (en) Character pattern output device
JP3039214B2 (en) Data converter
JP2700124B2 (en) Graphic display method and apparatus for implementing the same
JPH0511734A (en) Character pattern generating device
JPH05173539A (en) Printing controller
JPH03288894A (en) Document preparing device
JPH0519737A (en) Enlargement processing method for straight-line outline character
JPH09138679A (en) Data processor
JPH10188022A (en) Image processing method, its device and storage medium storing program executing the method
JPH0535864A (en) Graphic data processor
JPH07319442A (en) Picture processing device
JPS60231275A (en) Formation device of underline and sideline
JPH05313634A (en) Outline font developing device
JPH08185527A (en) Plotter

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980623