JPH04269798A - Character data generation device - Google Patents

Character data generation device

Info

Publication number
JPH04269798A
JPH04269798A JP3030371A JP3037191A JPH04269798A JP H04269798 A JPH04269798 A JP H04269798A JP 3030371 A JP3030371 A JP 3030371A JP 3037191 A JP3037191 A JP 3037191A JP H04269798 A JPH04269798 A JP H04269798A
Authority
JP
Japan
Prior art keywords
dot pattern
data
font
character
outline
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
JP3030371A
Other languages
Japanese (ja)
Inventor
Fumikichi Tezuka
史吉 手塚
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 JP3030371A priority Critical patent/JPH04269798A/en
Publication of JPH04269798A publication Critical patent/JPH04269798A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To obtain a dot pattern of high quality with high resolution by an outline font system which reduce a dot pattern of enlarged size without directly expanding a dot pattern of target size. CONSTITUTION:A conversion matrix generation part 3 generates a conversion matrix corresponding to the enlargement magnification of the size of a character. A coordinate calculation part 4 performs a coordinate converting process for font data by using the conversion matrix. According to the coordinate conversion result, an outline drawing part 5 expands dot pattern data enlarged with the specified magnification corresponding to the outline of the character. A dot data reduction part 7 reduce the dot pattern data from the outline drawing part 5 at the specified reduction rate.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、例えば文書作成装置に
使用されるアウトラインフォント方式の文字データ生成
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an outline font type character data generation device used, for example, in a document creation device.

【0002】0002

【従来の技術】近年、文書作成装置またはパーソナルコ
ンピュータ等において、文字を印刷または表示する場合
に、文字データをベクトルデータとして保持するアウト
ラインフォント方式が使用されている。この方式は、拡
大、縮小、回転等の変形処理が容易である。
2. Description of the Related Art In recent years, when printing or displaying characters in document creation devices, personal computers, etc., an outline font system has been used in which character data is held as vector data. This method allows easy transformation processing such as enlargement, reduction, and rotation.

【0003】この方式では、アウトラインフォントとし
て格納されている文字毎のベクトルデータ(フォントデ
ータ)が読出されて、生成対象の文字のサイズ、方向、
位置に応じた座標変換処理が実行される。この変換後の
座標から文字の輪郭に応じたアウトラインデータが生成
されて、このアウトラインに対する塗りつぶし処理によ
り、ドットパターンがビットマップメモリに展開される
ことになる。
In this method, vector data (font data) for each character stored as an outline font is read out, and the size, direction, and direction of the character to be generated are determined.
Coordinate transformation processing according to the position is executed. Outline data corresponding to the outline of the character is generated from the coordinates after this conversion, and by performing a filling process on this outline, a dot pattern is developed in the bitmap memory.

【0004】ところで、アウトラインフォントをドット
パターンに変換する場合に、ドット数の少ない小サイズ
の文字パターンを展開すると、ビットマップメモリの分
解能の関係上、必要とする分解能が得られず、文字全体
が潰れたような状態となる。
By the way, when converting an outline font to a dot pattern, if a small-sized character pattern with a small number of dots is developed, the required resolution cannot be obtained due to the resolution of the bitmap memory, and the entire character is It will be in a collapsed state.

【0005】[0005]

【発明が解決しようとする課題】従来のアウトラインフ
ォント方式では、アウトラインフォントからドットパタ
ーンに展開する場合に、ドット数の少ない小サイズの文
字パターンでは、必要とする分解能が得られず、文字全
体が潰れたような状態となる。このため、展開されたド
ットパターンに基づいて印字した場合に、印字品質が低
下する問題がある。
[Problem to be Solved by the Invention] In the conventional outline font method, when developing an outline font into a dot pattern, the required resolution cannot be obtained for small-sized character patterns with a small number of dots, and the entire character is It will be in a collapsed state. Therefore, when printing is performed based on the developed dot pattern, there is a problem that the printing quality deteriorates.

【0006】本発明の目的は、アウトラインフォント方
式において、目的サイズのドットパターンを直接展開せ
ずに、拡大サイズのドットパターンを縮小する方式によ
り、分解能の高い高品質のドットパターンを得ることが
できる文字データ生成装置を提供することにある。
An object of the present invention is to obtain a high-quality dot pattern with high resolution in an outline font method by reducing a dot pattern of an enlarged size without directly developing a dot pattern of a target size. An object of the present invention is to provide a character data generation device.

【0007】[0007]

【課題を解決するための手段】本発明は、アウトライン
フォント方式の文字データ生成装置において、文字に対
応するフォントデータを格納したフォントメモリ手段、
文字のサイズの拡大倍率に応じた変換行列を生成する変
換行列生成手段、変換行列生成手段からの変換行列によ
りフォントデータに対する座標変換処理を実行する座標
計算手段、座標変換結果に基づいて文字のアウトライン
に対応するドットパターンデータを展開するアウトライ
ン描画手段およびドットパターンデータを指定された縮
小倍率により縮小処理するドットデータ縮小手段を有す
る。
[Means for Solving the Problems] The present invention provides a character data generation device using an outline font method, which includes a font memory means storing font data corresponding to characters;
A transformation matrix generation means that generates a transformation matrix according to the enlargement factor of the character size, a coordinate calculation means that executes coordinate transformation processing on font data using the transformation matrix from the transformation matrix generation means, and a character outline based on the coordinate transformation result. The apparatus includes outline drawing means for developing dot pattern data corresponding to the dot pattern data, and dot data reduction means for reducing the dot pattern data at a specified reduction ratio.

【0008】[0008]

【作用】本発明では、変換行列生成手段は文字のサイズ
の拡大倍率に応じた変換行列を生成する。この変換行列
により、座標計算手段はフォントデータに対する座標変
換処理を実行する。この座標変換結果に基づいて、アウ
トライン描画手段は文字のアウトラインに対応し、指定
倍率で拡大されたドットパターンデータを展開する。ド
ットデータ縮小手段はアウトライン描画手段からのドッ
トパターンデータを指定された縮小倍率により縮小処理
する。
[Operation] In the present invention, the conversion matrix generation means generates a conversion matrix according to the enlargement factor of the character size. Using this transformation matrix, the coordinate calculation means executes coordinate transformation processing on the font data. Based on this coordinate conversion result, the outline drawing means develops dot pattern data that corresponds to the outline of the character and is enlarged at a specified magnification. The dot data reduction means reduces the dot pattern data from the outline drawing means using a designated reduction ratio.

【0009】[0009]

【実施例】以下図面を参照して本発明の実施例を説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Examples of the present invention will be described below with reference to the drawings.

【0010】図1は同実施例に係わる文字データ生成装
置の構成を示すブロック図である。本装置は、装置全体
の制御を行なう制御部(CPU)1、フォントメモリ2
、変換行列生成部3および座標計算部4を有する。
FIG. 1 is a block diagram showing the configuration of a character data generation device according to the same embodiment. This device includes a control unit (CPU) 1 that controls the entire device, and a font memory 2.
, a transformation matrix generation section 3 and a coordinate calculation section 4.

【0011】フォントメモリ2は、文字に対応するベク
トルデータ(座標データ)であるフォントデータを格納
している。変換行列生成部3は、座標変換処理に必要な
変換行列を生成し、かつ指定した拡大倍率に応じた変換
行列を生成する。座標計算部4は、変換行列生成部3か
らの変換行列により、フォントデータに対する座標変換
処理を実行する。
The font memory 2 stores font data which is vector data (coordinate data) corresponding to characters. The transformation matrix generation unit 3 generates a transformation matrix necessary for coordinate transformation processing, and also generates a transformation matrix according to a specified enlargement factor. The coordinate calculation section 4 executes coordinate transformation processing on the font data using the transformation matrix from the transformation matrix generation section 3.

【0012】さらに、本装置は、アウトライン描画部5
、ドットパターンメモリ6、ドットデータ縮小部7、プ
リンタ8および印字制御部9を有する。アウトライン描
画部5は、座標計算部4の座標変換結果に基づいて、文
字のアウトラインに対応するドットパターンデータをド
ットパターンメモリ6に展開する。ドットデータ縮小部
7は、アウトライン描画部5からのドットパターンデー
タを指定された縮小倍率により縮小処理する。印字制御
部9は、ドットパターンメモリ6に展開されたドットパ
ターンデータに基づいてプリンタ8を制御し、文字パタ
ーンを印刷させる。
Furthermore, the present device includes an outline drawing section 5.
, a dot pattern memory 6, a dot data reduction section 7, a printer 8, and a print control section 9. The outline drawing section 5 develops dot pattern data corresponding to the outline of the character in the dot pattern memory 6 based on the coordinate conversion result of the coordinate calculation section 4. The dot data reduction unit 7 reduces the dot pattern data from the outline drawing unit 5 using a specified reduction ratio. The print control section 9 controls the printer 8 based on the dot pattern data developed in the dot pattern memory 6 to print a character pattern.

【0013】次に、同実施例の動作を説明する。Next, the operation of this embodiment will be explained.

【0014】先ず、例えば文字の印字指示がなされた場
合に、制御部1はその文字コードに応じたフォントデー
タをフォントメモリ2から読出す(図2のステップS1
)。さらに、変換行列生成部3は、制御部1の制御によ
り、フォントデータおよびその文字サイズに応じた変換
行列を生成する。このとき、制御部1からの指定に応じ
て、印字すべきサイズ(目的サイズ)のn倍の拡大サイ
ズの文字に対応する変換行列を生成する(ステップS2
のYES、S3)。
First, when an instruction to print a character is given, for example, the control section 1 reads out font data corresponding to the character code from the font memory 2 (step S1 in FIG. 2).
). Further, the conversion matrix generation section 3 generates a conversion matrix according to the font data and its character size under the control of the control section 1. At this time, in accordance with the designation from the control unit 1, a conversion matrix corresponding to a character with an enlarged size n times the size to be printed (target size) is generated (step S2
YES, S3).

【0015】座標計算部4は、変換行列生成部3により
生成された変換行列(n倍)により、フォントデータに
対する座標変換処理を実行する(ステップS4)。アウ
トライン描画部5は、座標計算部4の座標変換結果に基
づいて、文字のアウトラインに対応するドットパターン
データをドットパターンメモリ(ビットマップメモリ)
6に展開する(ステップS5)。即ち、アウトライン描
画部5は、座標変換されたフォントデータ(座標値)が
示す1単位距離が展開先であるビットマップメモリ6の
1ピクセル間の距離に対応した座標系と見なし、この座
標系に対応するアウトラインの内部を塗り潰したドット
パターンフォントに展開する。
The coordinate calculation section 4 executes coordinate transformation processing on the font data using the transformation matrix (n times) generated by the transformation matrix generation section 3 (step S4). The outline drawing unit 5 stores dot pattern data corresponding to the outline of the character in a dot pattern memory (bitmap memory) based on the coordinate conversion result of the coordinate calculation unit 4.
6 (step S5). That is, the outline drawing unit 5 regards the 1 unit distance indicated by the coordinate-converted font data (coordinate values) as a coordinate system corresponding to the distance between 1 pixel of the bitmap memory 6, which is the development destination, and uses this coordinate system. Develops into a dot pattern font that fills the inside of the corresponding outline.

【0016】このドットパターン展開処理により、図3
に示すように、目的サイズより例えば4倍に拡大された
ドットパターンがメモリ6に展開される。ドットデータ
縮小部7は、制御部1の制御により、メモリ6に展開さ
れたドットパターンデータを指定された縮小倍率(1/
n)により縮小処理する(ステップS7)。ドットデー
タ縮小部7は、図4の(A)に示すように、例えば4倍
に拡大されたドットパターンを縦方向に1/4に縮小す
る。同様に、横方向にも縮小して、例えば1/4に縮小
した目的サイズのドットパターン(図4の(B)を参照
)を生成する。
By this dot pattern development process, FIG.
As shown in FIG. 2, a dot pattern enlarged to, for example, four times the target size is developed in the memory 6. Under the control of the control unit 1, the dot data reduction unit 7 reduces the dot pattern data developed in the memory 6 to a specified reduction ratio (1/1).
The reduction process is performed by (n) (step S7). As shown in FIG. 4A, the dot data reduction unit 7 reduces, for example, a four-fold enlarged dot pattern to 1/4 in the vertical direction. Similarly, it is also reduced in the horizontal direction to generate a dot pattern of the target size reduced to, for example, 1/4 (see (B) in FIG. 4).

【0017】このようにして、フォントデータからドッ
トパターンに展開する場合に、目的サイズのn倍に拡大
したドットパターンを生成する。このn倍のドットパタ
ーンを1/nに縮小し、目的サイズのドットパターンを
生成する。したがって、従来方式のように、フォントデ
ータから直接に目的サイズのドットパターンに展開せず
に、拡大、縮小処理を経て展開するため、分解能の高い
ドットパターンを得ることができる。これにより、小さ
いサイズの文字フォントを生成する場合に、図4の(B
)に示すように、文字全体が潰れたような状態ではなく
、比較的高品質の文字パターンを得ることができる。こ
のようなドットパターンに基づいて、プリンタ8により
印字されると(ステップS8)、印字品質の高い文字フ
ォントが印字されることになる。
In this manner, when font data is developed into a dot pattern, a dot pattern that is enlarged to n times the target size is generated. This n-times dot pattern is reduced to 1/n to generate a dot pattern of the target size. Therefore, unlike the conventional method, the font data is not directly developed into a dot pattern of the target size, but is developed through enlargement and reduction processing, so that a dot pattern with high resolution can be obtained. As a result, when generating a small-sized character font, (B
), it is possible to obtain a relatively high-quality character pattern without the entire character being crushed. When the printer 8 prints based on such a dot pattern (step S8), a character font with high print quality is printed.

【0018】[0018]

【発明の効果】以上詳述したように本発明によれば、ア
ウトラインフォント方式において、目的サイズのドット
パターンを直接展開せずに、拡大サイズのドットパター
ンを縮小して展開する。したがって、小さいサイズの文
字フォントの場合でも、分解能の高い高品質のドットパ
ターンを得ることができる。このドットパターンにより
印字処理を実行した場合には、文字全体が潰れるような
印字品質の低下を招くことなく、高品質の印字結果を得
ることができる。
As described in detail above, according to the present invention, in the outline font method, a dot pattern of an enlarged size is reduced and developed without directly developing a dot pattern of a target size. Therefore, even in the case of a small-sized character font, a high-quality dot pattern with high resolution can be obtained. When printing is performed using this dot pattern, a high-quality printing result can be obtained without deteriorating the printing quality such that the entire character is crushed.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の実施例に係わる文字データ生成装置の
構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a character data generation device according to an embodiment of the present invention.

【図2】同実施例の動作を説明するためのフローチャー
ト。
FIG. 2 is a flowchart for explaining the operation of the embodiment.

【図3】同実施例に係わる拡大した文字フォントの一例
を示す図。
FIG. 3 is a diagram showing an example of an enlarged character font according to the same embodiment.

【図4】同実施例に係わる縮小した文字フォントの一例
を示す図。
FIG. 4 is a diagram showing an example of a reduced character font according to the same embodiment.

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

1…制御部、2…フォントメモリ、3…変換行列生成部
、4…座標計算部、5…アウトライン描画部、6…ドッ
トパターンメモリ、7…ドットデータ縮小部。
DESCRIPTION OF SYMBOLS 1... Control unit, 2... Font memory, 3... Transformation matrix generation unit, 4... Coordinate calculation unit, 5... Outline drawing unit, 6... Dot pattern memory, 7... Dot data reduction unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  文字に対応するベクトルデータからな
るフォントデータを格納したフォントメモリ手段と、こ
のフォントメモリ手段からの前記フォントデータに対し
て座標変換処理を行なうための変換行列であって、前記
文字のサイズの拡大倍率に応じた変換行列を生成する変
換行列生成手段と、この変換行列生成手段からの変換行
列により、前記フォントメモリ手段からの前記フォント
データに対する座標変換処理を実行する座標計算手段と
、この座標計算手段からの座標変換結果に基づいて、文
字のアウトラインに対応するドットパターンデータを展
開するアウトライン描画手段と、このアウトライン描画
手段からのドットパターンデータを指定された縮小倍率
により縮小処理するドットデータ縮小手段とを具備した
ことを特徴とする文字データ生成装置。
1. Font memory means storing font data consisting of vector data corresponding to characters, and a transformation matrix for performing coordinate transformation processing on the font data from the font memory means, the transformation matrix comprising: transformation matrix generation means for generating a transformation matrix according to a size enlargement factor; and coordinate calculation means for executing coordinate transformation processing on the font data from the font memory means using the transformation matrix from the transformation matrix generation means. , an outline drawing means for developing dot pattern data corresponding to the outline of a character based on the coordinate conversion result from the coordinate calculation means, and reducing the dot pattern data from the outline drawing means by a specified reduction ratio. A character data generation device comprising: dot data reduction means.
JP3030371A 1991-02-25 1991-02-25 Character data generation device Pending JPH04269798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3030371A JPH04269798A (en) 1991-02-25 1991-02-25 Character data generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3030371A JPH04269798A (en) 1991-02-25 1991-02-25 Character data generation device

Publications (1)

Publication Number Publication Date
JPH04269798A true JPH04269798A (en) 1992-09-25

Family

ID=12302017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3030371A Pending JPH04269798A (en) 1991-02-25 1991-02-25 Character data generation device

Country Status (1)

Country Link
JP (1) JPH04269798A (en)

Similar Documents

Publication Publication Date Title
KR100255574B1 (en) Character generating apparatus
JPH04269798A (en) Character data generation device
JP2605022B2 (en) Graphic processing unit
JPH03213367A (en) Multicolor printer
JP3315861B2 (en) Character generator
JPH0511734A (en) Character pattern generating device
JP2771629B2 (en) Character processor
JP2711860B2 (en) Output control method and device
JP3070822B2 (en) Contour data converter
JPH04177295A (en) Character generating device
JPH10151815A (en) Printing-processing apparatus
JP4080470B2 (en) Character pattern generator
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JPH0511736A (en) Character pattern output device
JP3055306B2 (en) Data output device
JPH05323934A (en) Character pattern output device
JPH03112668A (en) Printer
JPH04269564A (en) Controller for printing
JPH04268600A (en) Document preparing device
JPH05173539A (en) Printing controller
JPH04269797A (en) Character data generation device
JPH05232928A (en) Character generator
JPH04350897A (en) Method and device for generating character
JPH0784739A (en) Data converter
JPH08118745A (en) Character output device