JPH0511736A - Character pattern output device - Google Patents

Character pattern output device

Info

Publication number
JPH0511736A
JPH0511736A JP3158125A JP15812591A JPH0511736A JP H0511736 A JPH0511736 A JP H0511736A JP 3158125 A JP3158125 A JP 3158125A JP 15812591 A JP15812591 A JP 15812591A JP H0511736 A JPH0511736 A JP H0511736A
Authority
JP
Japan
Prior art keywords
character
line width
character pattern
coordinate
unit
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
JP3158125A
Other languages
Japanese (ja)
Inventor
Seiji Yamashita
誠司 山下
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 JP3158125A priority Critical patent/JPH0511736A/en
Publication of JPH0511736A publication Critical patent/JPH0511736A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To improve the quality of printed characters in printing by executing a line width compensation processing for the coordinate obtained by a coordinate transformation processing to give an equal line width of a character pattern, in a outline font system. CONSTITUTION:Vector data corresponding to the amount of one character from a font memory 1 is read out, and coordinate transformation processing at a magnification/minification rate set from the external side is executed by a coordinate transforming part 2. A line width compensation part 5 makes compensation processing for the coordinate obtained by the coordinate transformation processing part 2 according to the proper width of characters determined according to the magnification/minification rate. A character pattern development part 7 develops a character pattern according to the coordinate compensated by a line width compensation part 5.

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 pattern output device used in, for example, a document preparation device.

【0002】[0002]

【従来の技術】近年、文書作成装置またはパーソナルコ
ンピュータ等において、文字を印刷または表示する場合
に、文字データをベクトルデータとして保持するアウト
ラインフォント方式が使用されている。この方式は、拡
大、縮小、回転等の変形処理が容易であり、しかも印字
品質が低下しない利点がある。さらに、解像度が高くて
も、文字のデータ量は一定である。
2. Description of the Related Art In recent years, an outline font method has been used in a document creating apparatus, a personal computer, or the like to hold character data as vector data when printing or displaying characters. This method has an advantage that deformation processing such as enlargement, reduction, and rotation is easy and print quality does not deteriorate. Further, even if the resolution is high, the amount of character data is constant.

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

【0004】ところで、座標変換処理において、例えば
レーザプリンタ等のビットマップメモリに展開する場合
の座標は、全て整数により表現されている。このため、
実数値の整数化処理を行なう必要がある。この整数化
は、単純な四捨五入の処理によりなされている。
By the way, in the coordinate conversion process, for example, when the coordinates are expanded in a bit map memory of a laser printer or the like, all coordinates are expressed by integers. For this reason,
It is necessary to perform real number integer processing. This integer conversion is performed by a simple rounding process.

【0005】例えば整数化する直前の実数値が10,
4,11,5の組み合わせは、四捨五入の処理により整
数化すると、10,12になる。また、例えば8,5,
9,6の組み合わせは、9,10に整数化される。両方
の組み合わせ共、実数値における2数の差は1,1であ
るが、四捨五入の処理により、差が1になる場合と2に
なる場合が発生する。このようなことが発生すると、生
成された文字パターンの線幅が不揃いになる問題があ
る。
For example, the real value immediately before being converted into an integer is 10,
The combination of 4, 11 and 5 becomes 10, 12 when it is converted into an integer by rounding processing. Also, for example, 8, 5,
The combination of 9,6 is converted into an integer of 9,10. In both combinations, the difference between the two numbers in the real value is 1,1. However, due to the rounding processing, there are cases where the difference becomes 1 and 2 occurs. When this happens, there is a problem in that the line widths of the generated character patterns become uneven.

【0006】[0006]

【発明が解決しようとする課題】従来のアウトラインフ
ォント方式では、座標変換処理により得られる座標値に
基づいて文字パターンを構成する場合に、文字パターン
の線幅が不揃いになる。このため、生成した文字パター
ンに基づいて印刷した場合に、印字品質が低下する問題
がある。
In the conventional outline font method, when the character pattern is constructed based on the coordinate values obtained by the coordinate conversion process, the line widths of the character pattern become uneven. Therefore, when printing is performed based on the generated character pattern, there is a problem that print quality is degraded.

【0007】本発明の目的は、アウトラインフォント方
式において、座標変換処理により得られる座標値に対し
て線幅補正処理を実行することにより、文字パターンの
線幅を均一化し、結果的に印刷の場合の印字品質の向上
を図ることができる文字パターン出力装置を提供するこ
とにある。
An object of the present invention is to make the line width of a character pattern uniform by executing line width correction processing on the coordinate values obtained by the coordinate conversion processing in the outline font system, resulting in printing. An object of the present invention is to provide a character pattern output device capable of improving the print quality of the.

【0008】[0008]

【課題を解決するための手段】本発明は、アウトライン
フォント方式の文字パターン出力装置において、各文字
に対応するベクトルデータからなるアウトラインフォン
トを格納したフォントメモリ手段、外部から設定される
拡大/縮小率による座標変換処理を実行する座標変換処
理手段、座標変換処理手段により得られる座標に対する
補正処理を行なう線幅補正手段および文字パターンを展
開する文字パターン展開手段を備えた装置である。
According to the present invention, in an outline font type character pattern output device, a font memory means for storing an outline font consisting of vector data corresponding to each character, and an enlargement / reduction ratio set from the outside. The apparatus is provided with a coordinate conversion processing means for executing the coordinate conversion processing by the above, a line width correction means for correcting the coordinates obtained by the coordinate conversion processing means, and a character pattern expansion means for expanding the character pattern.

【0009】[0009]

【作用】本発明では、フォントメモリ手段からの1文字
分に対応するベクトルデータが読出されて、外部から設
定される拡大/縮小率による座標変換処理が実行され
る。線幅補正手段は、拡大/縮小率に基づいて決定され
る文字の適正な線幅に応じて、座標変換処理手段により
得られる座標に対する補正処理を行なう。文字パターン
展開手段は、線幅補正手段により補正された後の座標に
基づいて文字パターンを展開する。
In the present invention, the vector data corresponding to one character is read from the font memory means, and the coordinate conversion processing is executed by the enlargement / reduction ratio set from the outside. The line width correction means performs correction processing on the coordinates obtained by the coordinate conversion processing means in accordance with the appropriate line width of the character determined based on the enlargement / reduction ratio. The character pattern expanding means expands the character pattern based on the coordinates corrected by the line width correcting means.

【0010】[0010]

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

【0011】図1は同実施例に係わる文字パターン出力
装置であるアウトラインフォント生成部の構成を説明す
るためのブロック図である。図2は同実施例のアウトラ
インフォント生成部10を備えた文書作成装置の要部を
示すブロック図である。
FIG. 1 is a block diagram for explaining the configuration of an outline font generation unit which is a character pattern output device according to the embodiment. FIG. 2 is a block diagram showing a main part of a document creation apparatus including the outline font generation unit 10 of the same embodiment.

【0012】まず、図2に示すように、本装置は、装置
全体の制御,文書作成処理及び編集処理等を実行する制
御部(CPU)11、ビットマップメモリ12、プリン
タ13、印刷制御部14、ディスプレイ15、表示制御
部16および文書メモリ17を備えている。
First, as shown in FIG. 2, the present apparatus includes a control unit (CPU) 11 for executing control of the entire apparatus, document creation processing and editing processing, a bitmap memory 12, a printer 13, and a print control unit 14. , A display 15, a display control unit 16 and a document memory 17.

【0013】ビットマップメモリ12は、アウトライン
フォント生成部10により展開された文字パターン(ド
ットパターン)を格納するためのメモリである。文書メ
モリ17は、制御部11により作成された文書データを
文字コードの状態で格納するバッファメモリである。印
字制御部14は、ビットマップメモリ12に展開された
文字パターンに基づいて、プリンタ13に文字フォント
の印刷動作を実行させる。表示制御部16は、そのドッ
トパターンに基づいてディスプレイ15の画面に文字フ
ォントの表示動作を実行させる。
The bit map memory 12 is a memory for storing the character pattern (dot pattern) developed by the outline font generator 10. The document memory 17 is a buffer memory that stores the document data created by the control unit 11 in a character code state. The print control unit 14 causes the printer 13 to execute the printing operation of the character font based on the character pattern developed in the bitmap memory 12. The display control unit 16 causes the screen of the display 15 to display a character font based on the dot pattern.

【0014】アウトラインフォント生成部10は、図1
に示すように、フォントメモリ1、座標変換部2、拡大
/縮小率設定部3、補正前処理部4、線幅補正部5、線
幅決定部6および文字展開部7を有する。
The outline font generator 10 is shown in FIG.
As shown in FIG. 3, the font memory 1, the coordinate conversion unit 2, the enlargement / reduction ratio setting unit 3, the correction preprocessing unit 4, the line width correction unit 5, the line width determination unit 6, and the character expansion unit 7 are included.

【0015】フォントメモリ1は、各文字コードに対応
するベクトルデータ(アウトラインデータ)を予め格納
したメモリである。座標変換部2は、拡大/縮小率設定
部3により設定される拡大/縮小率を使用した座標変換
処理(拡大/縮小処理を含む)を実行する。拡大/縮小
率設定部3は、制御部11からのデータに基づいて、文
字パターンのサイズを拡大/縮小するための変換率を設
定する。
The font memory 1 is a memory in which vector data (outline data) corresponding to each character code is stored in advance. The coordinate conversion unit 2 executes a coordinate conversion process (including the enlargement / reduction process) using the enlargement / reduction ratio set by the enlargement / reduction ratio setting unit 3. The enlargement / reduction ratio setting unit 3 sets the conversion ratio for enlarging / reducing the size of the character pattern based on the data from the control unit 11.

【0016】補正前処理部4は、座標変換部2により変
換処理されたベクトルデータから座標値の補正が必要な
部分を検出する処理を行なう。線幅補正部5は、補正前
処理部4により検出された部分に対して、線幅決定部6
により得られる適正な線幅になるように座標値の補正処
理を実行する。線幅決定部6は、拡大/縮小率設定部3
により設定される拡大/縮小率に基づいて適正な線幅を
決定する。文字展開部7は、最終的に決定された座標値
に基づいて、文字パターンをビットマップメモリ12に
展開する。次に、同実施例の動作を説明する。
The correction preprocessing unit 4 performs a process of detecting a portion in which the coordinate value needs to be corrected from the vector data converted by the coordinate conversion unit 2. The line width correction unit 5 applies the line width determination unit 6 to the portion detected by the correction preprocessing unit 4.
The correction processing of the coordinate value is executed so as to obtain the appropriate line width obtained by The line width determination unit 6 includes an enlargement / reduction ratio setting unit 3
An appropriate line width is determined based on the enlargement / reduction ratio set by. The character expansion unit 7 expands the character pattern in the bitmap memory 12 based on the finally determined coordinate value. Next, the operation of the embodiment will be described.

【0017】まず、文書作成モードでは、制御部11は
作成した文書データを文書メモリ17に格納する。文書
メモリ17には文字コードからなる文書データが格納さ
れている。この文書データを印刷するための指示がなさ
れると、制御部11はアウトラインフォント生成部10
を起動する。アウトラインフォント生成部10は、文書
メモリ17の各文字コードに対応する文字パターンを生
成する。
First, in the document creation mode, the control section 11 stores the created document data in the document memory 17. The document memory 17 stores document data composed of character codes. When an instruction to print this document data is issued, the control unit 11 causes the outline font generation unit 10
To start. The outline font generation unit 10 generates a character pattern corresponding to each character code in the document memory 17.

【0018】アウトラインフォント生成部10では、図
3に示すように、フォントメモリ1から、文書メモリ6
に格納された文字コードに対応するベクトルデータが読
出される(ステップS1)。フォントメモリ1には、n
on−zero−windingの規則に従ったベクト
ルデータが格納されている。
In the outline font generation unit 10, as shown in FIG. 3, the font memory 1 to the document memory 6
Vector data corresponding to the character code stored in is read (step S1). The font memory 1 has n
Vector data according to the on-zero-winding rule is stored.

【0019】ここで、拡大/縮小率設定部3は、制御部
11からのデータに基づいて、文字パターンのサイズを
拡大/縮小するための拡大/縮小率を設定する。座標変
換部2は、拡大/縮小率設定部3により設定される拡大
/縮小率を使用し、フォントメモリ1からのベクトルデ
ータに対して座標変換処理(拡大/縮小処理を含む)を
実行する(ステップS2)。
Here, the enlargement / reduction ratio setting unit 3 sets the enlargement / reduction ratio for enlarging / reducing the size of the character pattern based on the data from the control unit 11. The coordinate conversion unit 2 uses the enlargement / reduction ratio set by the enlargement / reduction ratio setting unit 3 to execute coordinate conversion processing (including enlargement / reduction processing) on the vector data from the font memory 1 ( Step S2).

【0020】補正前処理部4は、座標変換部2により変
換処理されたベクトルデータから座標値の補正が必要な
部分を検出する処理を行なう。具体的には、補正前処理
部4は、一定方向の直線データ(例えばX軸に水平で左
向きのベクトル)を抽出し、内部バッファメモリに一時
的に格納する(ステップS3のYES、S4)。
The correction preprocessing unit 4 performs a process of detecting a portion in which the coordinate value needs to be corrected from the vector data converted by the coordinate conversion unit 2. Specifically, the precorrection processing unit 4 extracts straight line data in a fixed direction (for example, a vector that is horizontal to the X axis and faces left) and temporarily stores it in the internal buffer memory (YES in step S3, S4).

【0021】座標変換部2は、フォントメモリ1からの
1文字分の全ベクトルデータに対して座標変換処理を終
了するまで継続する。終了すると(ステップS5のYE
S)、補正前処理部4は、再度、同一ベクトルデータに
対する検出処理を実行し、内部バッファメモリに格納し
たベクトルとは逆方向の直線データ(例えばX軸に平行
で右向きのベクトル)を抽出する(ステップS6)。
The coordinate conversion unit 2 continues until the coordinate conversion processing is completed for all vector data for one character from the font memory 1. When completed (YE in step S5)
S), the pre-correction processing unit 4 executes the detection process for the same vector data again, and extracts straight line data (for example, a vector pointing to the right in parallel with the X axis) in the direction opposite to the vector stored in the internal buffer memory. (Step S6).

【0022】線幅補正部5は、補正前処理部4により抽
出された各方向の直線データの中で、ペアとなるベクト
ルデータの座標値に対して、線幅決定部6により得られ
る適正な線幅になるような補正処理を実行する(ステッ
プS7のYES、S8)。このとき、non−zero
−windingの規則に従っているため、補正前処理
部4の内部バッファメモリに格納したベクトルに対して
下方向のベクトルとのペアを想定する。
The line width correction unit 5 determines the proper value obtained by the line width determination unit 6 for the coordinate value of the vector data forming a pair in the straight line data in each direction extracted by the correction preprocessing unit 4. A correction process is performed to obtain a line width (YES in step S7, S8). At this time, non-zero
Since it follows the -winding rule, a pair of a vector stored in the internal buffer memory of the correction preprocessing unit 4 and a downward vector is assumed.

【0023】線幅補正部5による補正処理が1文字分の
全ベクトルデータに対して終了すると(ステップS9の
YES)、文字展開部7は、最終的に決定された座標値
に基づいて、文字パターン(文字の輪郭に応じたアウト
ラインデータ)をビットマップメモリ12に展開する
(ステップS10)。印刷制御部14は、ビットマップ
メモリ12に格納された文字パターンに基づいて、プリ
ンタ13に文字フォントの印刷動作を実行させる(ステ
ップS11)。
When the correction process by the line width correction unit 5 is completed for all vector data for one character (YES in step S9), the character expansion unit 7 determines the character based on the finally determined coordinate values. The pattern (outline data corresponding to the outline of the character) is developed in the bitmap memory 12 (step S10). The print control unit 14 causes the printer 13 to execute a character font printing operation based on the character pattern stored in the bitmap memory 12 (step S11).

【0024】このようにして、座標変換処理により得ら
れる座標値に対して、拡大/縮小率に基づいて決定され
る適正な線幅になるように、線幅の補正処理が実行され
る。これにより、線幅の揃った文字パターンをビットマ
ップメモリ12に展開することができる。この文字パタ
ーンを使用して印刷処理することにより、高印字品質の
文字を印刷することができる。
In this way, the line width correction process is executed so that the coordinate value obtained by the coordinate conversion process has an appropriate line width determined based on the enlargement / reduction ratio. As a result, a character pattern having a uniform line width can be expanded in the bitmap memory 12. By performing print processing using this character pattern, it is possible to print characters with high print quality.

【0025】[0025]

【発明の効果】以上詳述したように本発明によれば、ア
ウトラインフォント方式において、座標変換処理により
得られる座標値に対して線幅補正処理を実行することに
より、文字パターンの線幅を均一化し、不揃いをなくす
ことができる。したがって、生成した文字パターンに基
づいて印刷した場合に、高印字品質の文字を印刷するこ
とができる。
As described above in detail, according to the present invention, in the outline font method, the line width correction processing is executed on the coordinate values obtained by the coordinate conversion processing to make the line width of the character pattern uniform. The unevenness can be eliminated. Therefore, when printing is performed based on the generated character pattern, it is possible to print characters with high print quality.

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

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

【図2】同実施例に係わる文書作成装置の構成を示すブ
ロック図。
FIG. 2 is a block diagram showing a configuration of a document creation device according to the embodiment.

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

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

1…フォントメモリ、2…座標変換部、4…補正前処理
部、5…線幅補正部、7…文字展開部。
1 ... Font memory, 2 ... Coordinate conversion unit, 4 ... Pre-correction processing unit, 5 ... Line width correction unit, 7 ... Character expansion unit.

Claims (1)

【特許請求の範囲】 【請求項1】 各文字に対応するベクトルデータからな
るアウトラインフォントを格納したフォントメモリ手段
と、 このフォントメモリ手段からの1文字分の前記ベクトル
データに対して、外部から設定される拡大/縮小率を使
用した座標変換処理を実行する座標変換処理手段と、 前記拡大/縮小率に基づいて決定される文字の適正な線
幅に応じて、前記座標変換処理手段により得られる座標
に対する補正処理を行なう線幅補正手段と、 この線幅補正手段により補正された後の座標に基づいて
文字パターンを展開する文字パターン展開手段とを具備
したことを特徴とする文字パターン出力装置。
Claim: What is claimed is: 1. A font memory means for storing an outline font consisting of vector data corresponding to each character, and one character of the vector data from the font memory means is set from outside. The coordinate conversion processing means for executing the coordinate conversion processing using the enlargement / reduction ratio, and the coordinate conversion processing means according to the appropriate line width of the character determined based on the enlargement / reduction ratio. A character pattern output device comprising: a line width correcting means for performing a correction process for coordinates; and a character pattern expanding means for expanding a character pattern based on the coordinates corrected by the line width correcting means.
JP3158125A 1991-06-28 1991-06-28 Character pattern output device Pending JPH0511736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3158125A JPH0511736A (en) 1991-06-28 1991-06-28 Character pattern output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3158125A JPH0511736A (en) 1991-06-28 1991-06-28 Character pattern output device

Publications (1)

Publication Number Publication Date
JPH0511736A true JPH0511736A (en) 1993-01-22

Family

ID=15664839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3158125A Pending JPH0511736A (en) 1991-06-28 1991-06-28 Character pattern output device

Country Status (1)

Country Link
JP (1) JPH0511736A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526476A (en) * 1992-12-07 1996-06-11 Fujitsu Limited Method and apparatus for generating character patterns expressed by coordinates of a coordinate system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5526476A (en) * 1992-12-07 1996-06-11 Fujitsu Limited Method and apparatus for generating character patterns expressed by coordinates of a coordinate system

Similar Documents

Publication Publication Date Title
JPH0832469B2 (en) Horizontal expansion method of bitmap font
JP2876942B2 (en) Data converter
JPH0511736A (en) Character pattern output device
KR950014169B1 (en) Output method and apparatus
JPH0443396A (en) Character pattern generating device
JPH04269564A (en) Controller for printing
JP2782752B2 (en) Character pattern output device
JPH04104296A (en) Character/graphic plotter
JPH0511734A (en) Character pattern generating device
JP3055306B2 (en) Data output device
JP3085396B2 (en) Vector font development method and device
JP2990157B1 (en) Character generation device and character generation method
JPH06110444A (en) Character processor and character output method
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JP3024479B2 (en) Data converter
JPH05323934A (en) Character pattern output device
JPH04269798A (en) Character data generation device
JPS637963A (en) Printing apparatus
JPS62175794A (en) Character generator
JPH05119761A (en) Character arrangement correcting system
JPH04120594A (en) Data converter
JPH02303858A (en) Scale-up and scale-down system of letter data
JPH04268600A (en) Document preparing device
JPH0596787A (en) Printing method for boldface character
JPH0627924A (en) Data converting device