JPH0594168A - Font generating device - Google Patents

Font generating device

Info

Publication number
JPH0594168A
JPH0594168A JP3256374A JP25637491A JPH0594168A JP H0594168 A JPH0594168 A JP H0594168A JP 3256374 A JP3256374 A JP 3256374A JP 25637491 A JP25637491 A JP 25637491A JP H0594168 A JPH0594168 A JP H0594168A
Authority
JP
Japan
Prior art keywords
character
shape
font
data
group
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
JP3256374A
Other languages
Japanese (ja)
Inventor
Naomoto Nakajo
直基 中條
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP3256374A priority Critical patent/JPH0594168A/en
Publication of JPH0594168A publication Critical patent/JPH0594168A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To generate the character of a quality and an output speed conforming to a purpose by selecting a means to be used in accordance with the difference of a screen output and a printing output. CONSTITUTION:The device is provided with an outline font generating device 106 for reading out a data group consisting of coefficient terms of a computational expression, required for generating a picture element group for showing a shape of the character concerned, from an auxiliary storage device, with regard to the character whose display is requested, and obtaining the picture element group for showing the shape of the character by a calculation. Also, this device is provided with a dot font generating device 107 for reading out a data group consisting of a picture element group for showing the shape of a character of a character group of size designated in advance, from the auxiliary storage device 108, and obtaining a picture element group for showing the shape of a character of a target size by an enlarging/reducing method. In such a state, in accordance with a character request from a control program 101, in the case of the request of quality priority, it is processed by the outline font generating device 106, and in the case of the request of speed priority, it is processed by the dot font generating device 107.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字表示を行うワードプ
ロセッサ,パーソナルコンピュータ等におけるフォント
生成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a font generation device for a word processor, a personal computer or the like for displaying characters.

【0002】[0002]

【従来の技術】ワードプロセッサ,パーソナルコンピュ
ータ等の装置で、文字を表示、または、印刷するために
は、文字の形状を示す画素を発生させる手段、および、
画素発生のためのデータ群が必要である。表示する文字
の画素群を直接データとして持つドットフォントは、現
在最も普及している手段である。このフォントデータを
用い、大きさの異なる文字を表示する場合、拡大や縮小
の手法を用いて、目的の大きさの文字の形状を表すこと
になる。従って、文字の形状は本来のものと異なり、品
質の低い文字となる。
2. Description of the Related Art In a device such as a word processor or a personal computer, in order to display or print a character, a means for generating a pixel indicating the shape of the character, and
A data group for pixel generation is required. The dot font, which directly has a pixel group of characters to be displayed as data, is the most popular means at present. When characters of different sizes are displayed using this font data, the shape of the character of the desired size is expressed by using the enlarging or reducing method. Therefore, the character shape is different from the original one, and the character quality is low.

【0003】そこで、文字の外形形状を特定の曲線によ
って記述し、外形曲線の塗りつぶしを行うことで画素を
発生させることにより、文字の大きさに関係なく出力装
置の種類にも影響を受けないアウトラインフォント等が
普及してきた。しかし、画面表示等速度を重要視する装
置では、計算処理に無視できない程度の時間が消費され
る。また、9×9画素のドットフォントでは、1文字に
つき10バイト程度の容量のデータが必要とされるが、
アウトラインフォントでは、画素数に無関係に1文字2
00〜300バイト程度のデータを必要とするため、補
助記憶装置からのデータの読み込みに要する時間が大き
くなる。
Therefore, the outline shape of a character is described by a specific curve, and pixels are generated by filling the outline curve so that the outline is not affected by the type of output device regardless of the size of the character. Fonts have become popular. However, in a device that attaches importance to speed such as screen display, a considerable amount of time is consumed in calculation processing. In addition, a 9 × 9 pixel dot font requires a data capacity of about 10 bytes per character.
In outline font, one character is 2 regardless of the number of pixels.
Since data of about 00 to 300 bytes is required, it takes a long time to read the data from the auxiliary storage device.

【0004】[0004]

【発明が解決しようとする課題】前述の従来技術では、
アウトラインフォントを用いて表示画面上に文字の形状
を発生させる際に処理速度が遅い、という問題点を有す
る。また、印字の場合には、処理速度より品質の高い文
字の生成が求められる。そこで本発明はこのような問題
点を解決するもので、その目的とするところは、出力形
態の違いによって、目的にあった品質、速度の文字生成
のための手段を提供するところにある。
In the above-mentioned prior art,
There is a problem that the processing speed is slow when the character shape is generated on the display screen by using the outline font. In the case of printing, it is required to generate characters of higher quality than the processing speed. Therefore, the present invention solves such a problem, and an object of the present invention is to provide a means for generating a character having a quality and a speed suitable for the purpose depending on the difference in the output form.

【0005】[0005]

【課題を解決するための手段】本発明のフォント生成装
置は、表示要求のあった文字について、該当する文字の
形状を示す画素群を発生するために必要な、計算式の係
数項からなるデータ群を補助記憶装置から読みだし、文
字の形状を表す画素群を計算によって得る手段、あらか
じめ指定された大きさの文字群の文字の形状を表す画素
群からなるデータ群を、補助記憶装置から読みだし、拡
大縮小手法によって目的の大きさの文字の形状を表す画
素群を得る手段、上記2種類の手段のうち、画面出力、
印字出力の違いによって用いる手段を選択する手段、に
よって、構成されることを特徴とする。
The font generation device of the present invention is, for a character for which a display request has been made, data consisting of coefficient terms of a calculation formula necessary for generating a pixel group showing the shape of the corresponding character. Means for reading a group from an auxiliary storage device and obtaining a pixel group representing a character shape by calculation; and a data group consisting of a pixel group representing a character shape of a character group having a predetermined size, read from the auxiliary storage device However, means for obtaining a pixel group representing the shape of a character having a target size by a scaling method, screen output of the above two types of means,
It is characterized in that it is constituted by means for selecting means to be used depending on the difference in print output.

【0006】[0006]

【実施例】以下、本発明をその実施例に基づき詳述す
る。
EXAMPLES The present invention will be described in detail below based on its examples.

【0007】図1は本発明の実施例におけるブロック図
である。制御プログラム101で発生した文字要求がフ
ォント生成装置104によって処理され、表示装置10
2または印字装置103に出力される構成である。
FIG. 1 is a block diagram of an embodiment of the present invention. The character request generated by the control program 101 is processed by the font generation device 104, and the display device 10
2 or output to the printer 103.

【0008】フォント生成装置104は、要求のあった
文字コードを受け取り、補助記憶装置108上のアウト
ラインフォントファイル109内の、文字コードに結び
付けられたデータ列を読み出す。データ列には文字の外
形形状を曲線によって表したときの、曲線方程式の係数
項のデータが含まれている。アウトラインフォント生成
装置106はこのデータ列を元に、指定された大きさで
形状を計算し、外形曲線の内側の閉じた領域を塗りつぶ
す。この時塗りつぶし操作により生じた画素群が文字形
状を表している。また、ドットフォント生成装置107
は補助記憶装置108上のドットフォントデータ110
内の、文字コードに結び付けられたデータ列を読み出
す。このデータ列には文字形状を表す画素群が直接含ま
れている。フォント生成装置104は、表示要求である
か、印字要求であるかの指定に基づき、表示要求であれ
ば表示装置102に、印字要求であれば印字装置103
に、それぞれ画素群を転送することによって、文字形状
を現出させる。
The font generation device 104 receives the requested character code and reads the data string associated with the character code in the outline font file 109 on the auxiliary storage device 108. The data string contains the data of the coefficient term of the curve equation when the outer shape of the character is represented by a curve. The outline font generation device 106 calculates a shape with a specified size based on this data string, and fills the closed area inside the outline curve. At this time, the pixel group generated by the filling operation represents the character shape. In addition, the dot font generation device 107
Is the dot font data 110 on the auxiliary storage device 108.
The data string linked to the character code is read out. This data string directly includes a pixel group representing a character shape. The font generation device 104 sends a display request to the display device 102 and a print request to the printing device 103 based on whether the request is a display request or a print request.
, The character shape is made to appear by transferring each pixel group.

【0009】本実施例の文中で用いた主記憶装置は半導
体RAM、半導体ROMに代表される記憶装置である。
これに対し、補助記憶装置として、磁気ディスク装置、
書き換え型光学的ディスク装置等が利用できる。これら
の補助記憶装置は、主記憶装置に比して低速であるが、
大容量の記憶保持に適した記憶装置である。本実施例で
は、補助記憶装置として磁気ディスクを使用した。磁気
ディスク装置は、読み込み、書き込み双方の動作が可能
であり、漢字フォントデータの記憶に充分な容量があ
る。
The main memory used in the text of this embodiment is a memory represented by a semiconductor RAM and a semiconductor ROM.
On the other hand, as an auxiliary storage device, a magnetic disk device,
A rewritable optical disc device or the like can be used. Although these auxiliary storage devices are slower than the main storage devices,
It is a storage device suitable for holding a large amount of storage. In this embodiment, a magnetic disk is used as the auxiliary storage device. The magnetic disk device can perform both reading and writing operations, and has a sufficient capacity for storing Kanji font data.

【0010】フォント生成装置104の制御部105の
処理動作を図2に示すフローチャートにより説明する。
まず、制御プログラム101からの表示要求、あるい
は、印字要求があるかチェックし(201)、要求がく
るまで同処理を繰り返す。要求があった場合には次の処
理に移る。指定サイズのフォントがドットフォントファ
イル110にある場合には204の処理に進む(20
2)。印字要求であるか、または、使用者によって品質
優先の指定のある表示要求であるか表示要求であるかチ
ェックし(203)、双方が偽であった場合には、ドッ
トフォント生成装置107を起動する(204)。どち
らかが真であれば、アウトラインフォント生成装置10
6を起動する(205)。次に、表示要求であるかチェ
ックし(206)、表示要求であった場合には画素デー
タを表示装置102へ転送し(207)、印字要求であ
った場合には画素データを印字装置103へ転送する
(208)。
The processing operation of the control unit 105 of the font generation device 104 will be described with reference to the flowchart shown in FIG.
First, it is checked whether there is a display request or a print request from the control program 101 (201), and the same process is repeated until the request comes. If there is a request, move to the next processing. If the font of the specified size is in the dot font file 110, the process proceeds to step 204 (20
2). It is checked whether it is a print request or a display request or a display request with a quality priority designated by the user (203). If both are false, the dot font generation device 107 is activated. Yes (204). If either is true, the outline font generation device 10
6 is activated (205). Next, it is checked whether it is a display request (206), if it is a display request, the pixel data is transferred to the display device 102 (207), and if it is a print request, the pixel data is sent to the printing device 103. Transfer (208).

【0011】次にドットフォント生成装置107の処理
について、図3のフローチャートにより解説する。ま
ず、指定されたサイズのフォントデータがドットフォン
トファイル110にあるかどうかチェックし(30
1)、あれば、ドットフォントファイル110から指定
された文字に対応し、かつ、指定されたサイズの画素デ
ータを読み込み終了する(305)。なければ、拡大縮
小するための元となるフォントのサイズを、ドットフォ
ントファイル110に存在するフォントデータの中か
ら、指定フォントサイズに一番近いサイズのフォントデ
ータを捜すことで決定する(302)。ドットフォント
ファイル110の決定したサイズで、かつ、指定された
文字に対応する画素データを読み込み(303)、拡大
縮小処理を行うことで、指定されたサイズの画素データ
を生成し終了する(304)。
Next, the processing of the dot font generating device 107 will be described with reference to the flowchart of FIG. First, it is checked whether the font data of the specified size exists in the dot font file 110 (30
1) If there is, the pixel data corresponding to the designated character from the dot font file 110 and having the designated size is read, and the processing is terminated (305). If not, the size of the original font for enlarging / reducing is determined by searching the font data existing in the dot font file 110 for the font data closest in size to the designated font size (302). Pixel data having the determined size in the dot font file 110 and corresponding to the designated character is read (303), and enlargement / reduction processing is performed to generate pixel data of the designated size, and the process ends (304). ..

【0012】図4のフローチャートを用いてアウトライ
ンフォント生成装置106の動作を解説する。アウトラ
インフォントファイル109の中から、指定された文字
に対応するデータ列を読み込む(301)。次に、あら
かじめ設定された曲線方程式にこのデータ列に含まれる
係数項を代入して計算し、文字の外形形状を示す曲線上
の座標群を得て、この座標に相当する画素群を生成する
(302)。この時、曲線方程式には文字の大きさを示
す係数項が指定でき、この係数項に指定された文字のサ
イズを代入し計算するため、求めるサイズの文字の外形
形状を示す画素群が生成できる。さらに、生成された画
素群の内側の閉じた領域を塗りつぶすことによって、文
字の形状を示す画素群が生成される(303)。
The operation of the outline font generation device 106 will be described with reference to the flowchart of FIG. A data string corresponding to the designated character is read from the outline font file 109 (301). Next, a coefficient term included in this data string is substituted into a preset curve equation to perform calculation, obtain a coordinate group on the curve showing the outer shape of the character, and generate a pixel group corresponding to this coordinate. (302). At this time, a coefficient term indicating the size of the character can be specified in the curve equation, and the specified character size is substituted into this coefficient term for calculation, so that a pixel group indicating the outer shape of the character of the desired size can be generated. .. Furthermore, by filling the closed area inside the generated pixel group, a pixel group indicating the shape of the character is generated (303).

【0013】本実施例では、1文字につき平均250バ
イトの容量を持った、漢字かな文字を含むアウトライン
フォントを用いた。これに対し、ドットフォントファイ
ル110に格納されたデータのサイズは、文字の大きさ
に対応する画素数により異なり、複数のサイズに相当す
るフォントデータ群が格納されている。例えば、1文字
につき40×40画素の文字に相当し、1文字につき2
00バイト以下のデータを必要とするフォントデータ
と、20×20画素の文字に相当し、1文字につき50
バイト以下のデータを必要とするフォントデータが含ま
れていることになる。従って、補助記憶装置からデータ
を読み込む際の速度は、文字の画素数により左右され
る。本実施例で示した速度向上は、アウトラインフォン
トデータの読み込みに要する時間と、計算による画素生
成に消費される時間の合計に対し、ドットフォントファ
イルから画素データを読み込む時間と、指定サイズの文
字に拡大縮小するときに消費される時間との合計が小さ
いことによって効果が表れる。従って、小さい文字の画
素がドットファイル111に格納されていれば速度の向
上になる。
In the present embodiment, an outline font including kanji and kana characters having an average capacity of 250 bytes per character was used. On the other hand, the size of the data stored in the dot font file 110 varies depending on the number of pixels corresponding to the size of the character, and font data groups corresponding to a plurality of sizes are stored. For example, one character corresponds to 40 × 40 pixel characters, and one character is 2
Corresponds to font data that requires data of 00 bytes or less and characters of 20 x 20 pixels.
It includes font data that requires less than or equal to bytes. Therefore, the speed of reading data from the auxiliary storage device depends on the number of pixels of the character. The speed improvement shown in this embodiment is based on the time required to read the outline font data and the total time consumed for pixel generation by calculation, the time required to read the pixel data from the dot font file, and the character size of the specified size. The effect is shown by the small sum of time consumed when scaling. Therefore, if pixels of small characters are stored in the dot file 111, the speed will be improved.

【0014】本実施例は、ソフトウェアによって本発明
のフォント生成装置を実現したが、ハードウェアによる
実施を行っても同様の効果が表れる。
In this embodiment, the font generating apparatus of the present invention is realized by software, but the same effect can be obtained even if it is implemented by hardware.

【0015】[0015]

【発明の効果】以上述べたように本発明によれば、比較
的多く用いられる画素数の少ないフォントの画素群を直
接データとしたドットフォントを、高い文字品質を持つ
アウトラインフォントと併用できる。従って、ドットフ
ォントの持つ比較的高速に処理を行えるという特徴を発
揮でき、特に速度を重要視する画面表示のための文字発
生においては高速な処理が行える。また、品質を重視す
る印字処理においては、アウトラインフォントを使用で
き、高品質の文字を得られるという効果を有する。
As described above, according to the present invention, it is possible to use a dot font in which a pixel group of a font, which is used relatively often and has a small number of pixels, as direct data is used together with an outline font having high character quality. Therefore, the characteristic of the dot font that the processing can be performed at a relatively high speed can be exerted, and particularly in the case of character generation for screen display where speed is important, high speed processing can be performed. Further, in the printing process in which quality is important, outline fonts can be used, and high quality characters can be obtained.

【0016】また、画面表示においても高品質文字を使
用したい場合にも、使用者の設定によって切り替えを行
えるという効果を有する。
Further, even when it is desired to use high quality characters in the screen display, there is an effect that the switching can be performed by the setting of the user.

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

【図1】本発明の実施例に係る構成図。FIG. 1 is a configuration diagram according to an embodiment of the present invention.

【図2】フォント生成装置の動作を示すフローチャー
ト。
FIG. 2 is a flowchart showing the operation of the font generation device.

【図3】ドットフォント生成装置に動作を示すフローチ
ャート。
FIG. 3 is a flowchart showing the operation of the dot font generation device.

【図4】アウトラインフォント生成装置の動作を示すフ
ローチャート。
FIG. 4 is a flowchart showing the operation of the outline font generation device.

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

101 制御プログラム 102 表示装置 103 印字装置 104 フォント生成装置 105 制御装置 106 アウトラインフォント生成装置 107 ドットフォント生成装置 108 補助記憶装置 109 アウトラインフォントファイル 110 ドットフォントファイル 101 Control Program 102 Display Device 103 Printing Device 104 Font Generation Device 105 Control Device 106 Outline Font Generation Device 107 Dot Font Generation Device 108 Auxiliary Storage Device 109 Outline Font File 110 Dot Font File

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 表示要求のあった文字について、該当す
る文字の形状を示す画素群を発生するために必要な、計
算式の係数項からなるデータ群を補助記憶装置から読み
だし、文字の形状を表す画素群を計算によって得る手
段、 あらかじめ指定された大きさの文字群の文字の形状を表
す画素群からなるデータ群を、補助記憶装置から読みだ
し、拡大縮小手法によって目的の大きさの文字の形状を
表す画素群を得る手段、 上記2種類の手段のうち、画面出力、印字出力の違いに
よって用いる手段を選択する手段、 によって、構成されることを特徴とするフォント生成装
置。
1. The character shape of a character for which a display request has been made is read from an auxiliary storage device, and a data group consisting of a coefficient term of a calculation formula, which is necessary to generate a pixel group indicating the shape of the character, is read out. A means for obtaining a pixel group that represents, a data group including a pixel group that represents the shape of a character of a character group of a predetermined size is read from the auxiliary storage device, and the character of the target size is scaled by the scaling method. A font generation apparatus comprising: a means for obtaining a pixel group representing the shape of the above, and a means for selecting a means to be used according to a difference in screen output and print output from the above two types of means.
JP3256374A 1991-10-03 1991-10-03 Font generating device Pending JPH0594168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3256374A JPH0594168A (en) 1991-10-03 1991-10-03 Font generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3256374A JPH0594168A (en) 1991-10-03 1991-10-03 Font generating device

Publications (1)

Publication Number Publication Date
JPH0594168A true JPH0594168A (en) 1993-04-16

Family

ID=17291805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3256374A Pending JPH0594168A (en) 1991-10-03 1991-10-03 Font generating device

Country Status (1)

Country Link
JP (1) JPH0594168A (en)

Similar Documents

Publication Publication Date Title
JPS6322310B2 (en)
JPH0613224B2 (en) Font inclusion method
JPH0594168A (en) Font generating device
JPH0566757A (en) Font generator
JPH06274145A (en) Character processor
JP2878298B2 (en) Image output device
JP2580965B2 (en) Printer device
JPH04278374A (en) Character font generator
JP2907826B2 (en) Character font management device
JP3054157B2 (en) Character processing device and character processing method
JPH0216068A (en) Image forming device
JPH0710388Y2 (en) Arabic display
JPS62295169A (en) Character display system based upon image processor
JPH0687249A (en) Apparatus for printing address
JP2003072168A (en) Imaging apparatus
JPH10315540A (en) Character generator and generating method
JPH06149208A (en) Character generating device
JPH05314120A (en) Cache memory
JPH0467964A (en) Page printer printing control method
JP2000003168A (en) Method and device for font plotting
JPH0553558A (en) Information processor
JPH06274144A (en) Character processor
JPH0255161A (en) Information output device
JPH06301764A (en) Information processor
JPH0396995A (en) Graphic character displaying method