JPH0553557A - Character data generation device - Google Patents

Character data generation device

Info

Publication number
JPH0553557A
JPH0553557A JP3210993A JP21099391A JPH0553557A JP H0553557 A JPH0553557 A JP H0553557A JP 3210993 A JP3210993 A JP 3210993A JP 21099391 A JP21099391 A JP 21099391A JP H0553557 A JPH0553557 A JP H0553557A
Authority
JP
Japan
Prior art keywords
character
data
storage device
characters
shape
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.)
Granted
Application number
JP3210993A
Other languages
Japanese (ja)
Other versions
JP3166222B2 (en
Inventor
Fumio Nagasaka
文夫 長坂
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 JP21099391A priority Critical patent/JP3166222B2/en
Publication of JPH0553557A publication Critical patent/JPH0553557A/en
Application granted granted Critical
Publication of JP3166222B2 publication Critical patent/JP3166222B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To hold more character shape data within the same capacity and to generate characters of an outline font which can be processed at a high speed. CONSTITUTION:A character generating means 2 reads necessary data regarding corresponding characters out of outline font data 3 according to the specification of character codes and performs arithmetic processing to generate a group of picture elements. Picture element data generated by the character shape generating means 2 are outputted to an output device 1 and written in a storage device 4. At this time, if the storage device 4 has no free area, picture element data on characters which are low in frequency of use among picture element data in the storage device 4 are taken out and picture element data on a character which is outputted last are recorded in the storage device 4 instead. The taken-out picture element data are compressed by a compressing means 5 and recorded in another storage device 7. At a request for character output to an output device 1, data are read out of a compressive storage area when the character code matches a character whose data are recorded in the compressive storage area; and the data are expanded into the original shape, outputted to the output device 1, and written in a noncompressive storage area again.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、印刷装置、表示装置上
での文字データ発生装置に係わり、詳しくはアウトライ
ンフォント発生手段に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character data generating device on a printing device and a display device, and more particularly to an outline font generating means.

【0002】[0002]

【従来の技術】直線あるいは曲線を用いて外形形状を記
述し、外形曲線、あるいは外形折れ線により閉じた領域
に含まれる画素によって文字形状を形成する文字を、ア
ウトラインフォントと呼ぶ。アウトラインフォントは、
その発生方法が、出力装置の画素の解像度に依存せず、
変形、回転などの処理を行なうことも容易である。この
ため近年では、パーソナルワープロ、パーソナルコンピ
ュータ向け印刷装置等への普及が進んでいる。
2. Description of the Related Art A character whose outer shape is described by using a straight line or a curved line, and which forms a character shape by pixels included in an area closed by the outer shape curve or a broken line is called an outline font. Outline font is
The generation method does not depend on the pixel resolution of the output device,
It is also easy to perform processing such as deformation and rotation. Therefore, in recent years, it has been widely used in printing devices for personal word processors and personal computers.

【0003】図7に、従来のアウトラインフォント発生
手段で用いられる装置構成の一例を示す。この例におい
ては、文字の出力装置として、表示装置1を使用する。
アウトラインフォントデータ3として、外形曲線の方程
式の係数項、用いる曲線の種別等のデータを、半導体R
OMなどの記憶装置に保持する。このデータを用い、文
字発生手段2は、文字形状を形成する画素群を発生す
る。生成された画素群は、表示装置1に送られ表示され
るが、表示後、不要となった画素データは直ちに廃棄さ
れることなく、記憶装置4に一時的に記録される。記憶
装置4は、半導体RAMなどの比較的高速に読みだし可
能な装置が用いられる。このような構成においては、表
示装置に対し、次に表示する様要求された文字がすでに
表示したことがある文字であれば、記憶装置4に画素デ
ータの残っている可能性がある。仮に記憶装置4に画素
データが残っていた場合、文字形状発生手段2を用いず
文字の表示を行なうことが可能である。従来、記憶装置
4は、数100から1000文字程度の文字に相当する
画素データを保持可能な容量に構成されていた。また新
たに画素データを書き込む場合、すでに容量の上限に達
していれば、使用頻度の低い文字のデータが代わりに廃
棄される。
FIG. 7 shows an example of a device configuration used in a conventional outline font generating means. In this example, the display device 1 is used as a character output device.
As the outline font data 3, data such as the coefficient term of the equation of the external curve and the type of curve to be used is stored in the semiconductor R.
It is stored in a storage device such as OM. Using this data, the character generation means 2 generates a pixel group forming a character shape. The generated pixel group is sent to the display device 1 for display, but after the display, the unnecessary pixel data is not immediately discarded but is temporarily recorded in the storage device 4. As the storage device 4, a device such as a semiconductor RAM capable of reading at a relatively high speed is used. In such a configuration, if the character requested to be displayed next to the display device is a character that has already been displayed, pixel data may remain in the storage device 4. If pixel data remains in the storage device 4, it is possible to display characters without using the character shape generating means 2. Conventionally, the storage device 4 is configured to have a capacity capable of holding pixel data corresponding to a few hundreds to a thousand characters. In addition, when new pixel data is written, if the upper limit of the capacity is already reached, the data of the less frequently used character is discarded instead.

【0004】[0004]

【発明が解決しようとする課題】一般に、文字形状発生
手段2は、長い処理時間を必要とすることが多い。その
ため、過去に発生させた文字の画素データは、できるだ
け再利用する必要がある。日本語処理の場合、漢字仮名
文字あわせておよそ7000文字を扱う必要があるもの
の、頻繁に使用される文字は限られている。従って、図
7に示した従来例において、記憶装置4に保持できる文
字データが多いほど処理速度の点で有利である。しか
し、記憶装置4を用いて一時的に保持する画素データ
は、すでに出力装置(図7の例では表示装置1)の解像
度に適合して画素に変換済みである。このため、形状の
大きな文字に関しては、より多くのメモリを消費する。
また、出力装置の解像度が高まる程、少ない文字数で多
くのメモリを消費することになる。例えば、1インチあ
たり75画素の出力装置に0.2インチの大きさの文字
を出力する場合、32kbyteの容量のメモリに約1
090文字に相当する画素が記録できる。しかし、1イ
ンチあたり300画素の表示装置を使用すると、同じ
0.2インチの大きさの文字の場合でも、32kbyt
eの容量のメモリには約70文字相当の画素が記録でき
るだけである。前述の様に、処理速度を向上させるため
には、記憶装置4にできるだけ多くの文字に関するデー
タを保持すると良い。このため、高密度な出力装置にお
いては、記憶装置4の容量を可能な範囲で大きくとるこ
とが望まれる。
In general, the character shape generating means 2 often requires a long processing time. Therefore, it is necessary to reuse the character pixel data generated in the past as much as possible. In the case of Japanese processing, it is necessary to handle about 7,000 Kanji and Kana characters, but the number of frequently used characters is limited. Therefore, in the conventional example shown in FIG. 7, the more character data that can be stored in the storage device 4, the more advantageous the processing speed. However, the pixel data temporarily stored by using the storage device 4 has already been converted into pixels in conformity with the resolution of the output device (display device 1 in the example of FIG. 7). For this reason, a large character consumes more memory.
Also, as the resolution of the output device increases, more memory is consumed with a smaller number of characters. For example, when outputting a character having a size of 0.2 inch to an output device having 75 pixels per inch, about 1 is stored in a memory having a capacity of 32 kbytes.
Pixels corresponding to 090 characters can be recorded. However, if a display device with 300 pixels per inch is used, even if the same 0.2-inch size character is used, 32 kbyte
The memory of the capacity of e can record pixels of about 70 characters. As described above, in order to improve the processing speed, it is advisable to store the data regarding as many characters as possible in the storage device 4. Therefore, in a high-density output device, it is desired that the capacity of the storage device 4 be as large as possible.

【0005】また、高速処理可能なマイクロプロセッサ
を用いた装置構成にあっては、記憶装置4を構成するた
め、スタチックRAMなどの高速記憶素子を使用する場
合が多い。しかしスタティックRAMは一般に、ダイナ
ミックRAMに比較し高価であるため、大容量の記憶領
域を構成することはコスト面で不利である。
Further, in a device configuration using a microprocessor capable of high-speed processing, a high-speed storage element such as a static RAM is often used in order to configure the storage device 4. However, since static RAM is generally more expensive than dynamic RAM, it is disadvantageous in terms of cost to construct a large-capacity storage area.

【0006】以上のことから、高速高密度化が進んだ場
合、従来の構成においては、コストまたは処理速度のど
ちらかを犠牲にする必要が生じるという問題点があっ
た。
From the above, when the high speed and high density are advanced, there is a problem that in the conventional configuration, it is necessary to sacrifice either the cost or the processing speed.

【0007】[0007]

【課題を解決するための手段】本発明は、曲線・直線の
方程式を記述するデータ列から、文字の外形曲線・折れ
線を発生させ、曲線・折れ線で囲まれた部分の画素を塗
りつぶすことで文字形状を形成する手段、使用頻度の高
い文字に関し、文字形状を表す画素群をメモリ上に蓄積
する手段、使用頻度の低下した文字に関し、文字形状を
表す画素群を圧縮しメモリに蓄積する手段、圧縮された
画素群から、文字形状を伸張により復元する手段、によ
り構成されたことを特徴とする。
SUMMARY OF THE INVENTION According to the present invention, an outline curve or a polygonal line of a character is generated from a data string describing an equation of a curve or a straight line, and a pixel in a portion surrounded by the curve or the polygonal line is filled in to form the character. A means for forming a shape, a means for accumulating a pixel group representing a character shape in a memory for a character used frequently, a means for compressing a pixel group representing a character shape in a memory for an infrequently used character, and accumulating in a memory; It is characterized in that it is constituted by means for restoring a character shape by expansion from a compressed pixel group.

【0008】[0008]

【作用】上記構成の本発明によれば、文字形状発生手段
により生成された画素データは出力装置に出力され、ま
た記憶装置に書き込まれる。このとき、記憶装置に空き
領域が無い場合は、記憶装置内の画素データ中、使用頻
度の低い文字の画素データが取り出され、代わりに直前
に出力された文字の画素データが記憶装置に記録され
る。一方、この処理で取り出された画素データは、圧縮
手段により圧縮され、他の記憶装置に記録される。
According to the present invention having the above construction, the pixel data generated by the character shape generating means is output to the output device and written in the storage device. At this time, if there is no free area in the storage device, pixel data of a character that is less frequently used is extracted from the pixel data in the storage device, and instead, the pixel data of the character output immediately before is recorded in the storage device. It On the other hand, the pixel data extracted by this processing is compressed by the compression means and recorded in another storage device.

【0009】出力装置への文字出力の要求が有ったと
き、文字コードが圧縮記憶領域にデータの記録されてい
る文字に一致するものであれば、圧縮記憶領域からのデ
ータの読みだしが行なわれ、伸張され元の形に復元され
た後、出力装置に出力され、再び非圧縮の記憶領域に書
き込まれる。
When a character output request is made to the output device, if the character code matches the character recorded in the compressed storage area, the data is read from the compressed storage area. After being decompressed and restored to the original shape, it is output to the output device and written again in the uncompressed storage area.

【0010】[0010]

【実施例】図1に、本発明の実施例の一つにつき、その
概略構成図を示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a schematic diagram of one embodiment of the present invention.

【0011】この実施例においては、出力装置として表
示装置を例示しているが、本発明の構成から、出力装置
は印刷装置であっても同じ効果が得られる。以下、図1
に沿って実施例各部分の機能について説明する。
In this embodiment, a display device is illustrated as the output device, but the same effect can be obtained even if the output device is a printing device because of the configuration of the present invention. Below, Figure 1
The function of each part of the embodiment will be described below.

【0012】記憶装置4には、複数個の文字について形
状を表す画素データが記録されている。従って、記憶装
置4に現在どのような文字のデータが記録されているか
管理する機構が必要である。本実施例においては、この
管理機構は、システムプログラムが表1にその例を示す
ような管理表を生成し参照することにより行なわれる。
以下の表において「$」記号で始まる数字は、16進数
を表記したものである。
Pixel data representing the shape of a plurality of characters is recorded in the storage device 4. Therefore, a mechanism for managing what character data is currently recorded in the storage device 4 is required. In this embodiment, this management mechanism is performed by the system program generating and referring to a management table as shown in Table 1 as an example.
In the table below, the numbers starting with the symbol "$" represent hexadecimal numbers.

【表1】 さらに、表1中にその先頭番地が示される文字レコード
は、表2に例示するような構造を持つレコードである。
[Table 1] Further, the character record whose head address is shown in Table 1 is a record having the structure illustrated in Table 2.

【表2】 表1は、3つのフィールドを持ち、第1項目は前述のよ
うに文字に関する情報を格納したレコードに対し、その
先頭番地を示している。第2項目は、画素データの格納
されている番地の先頭を示す値が書き込まれている。第
3の項目は、第1項目の文字レコードで示される文字が
最後に使用されたのがいつであるかの記録を保持してい
る。このためには、本実施例の動作中の機器において、
電源投入後、最初に生じた文字出力要求以降の文字出力
要求の発生を通し番号で管理すれば良い。すなわち、各
文字毎に何回目に出力要求が発生し、それを記憶領域4
に書き込んだかを値として残しておくことが必要であ
る。またこの値は、同一文字が繰り返し使用された場合
には、最近使用された時の値に更新しておく必要があ
る。これは、文字が使用される度に、表1の「最終使用
回」の項目を更新することで実現される。当然のことな
がら、記憶領域4は有限の大きさしか持たず、その大き
さも大きな値をとらない。本実施例では、64kbyt
eとした。このため、出力装置の解像度を1インチあた
り300画素、使用する平均的な文字の大きさを縦横各
50画素としたとき、記憶領域4に格納可能な文字数は
180文字程度である。また「最終使用回」の項目の値
は、表1中で最も小さい値を調べ、この値を他の全デー
タから引き算することで更新できる。例として、表1の
値について更新すると、表3のようになる。
[Table 2] Table 1 has three fields, and the first item shows the start address of the record storing the information about the character as described above. In the second item, a value indicating the beginning of the address where the pixel data is stored is written. The third item holds a record of when the character indicated by the character record of the first item was last used. To this end, in the operating device of this embodiment,
After the power is turned on, the occurrence of the character output request after the first character output request may be managed by a serial number. That is, the output request is generated for each character, and the output request is issued to the storage area 4
It is necessary to leave the value written in to as the value. Further, when the same character is used repeatedly, this value needs to be updated to the value when it was used recently. This is realized by updating the "last use" item in Table 1 each time a character is used. Naturally, the storage area 4 has a finite size, and the size does not take a large value either. In this embodiment, 64 kbyte
e. Therefore, when the resolution of the output device is 300 pixels per inch and the average size of characters used is 50 pixels in each length and width, the number of characters that can be stored in the storage area 4 is about 180 characters. The value of the item “last use” can be updated by checking the smallest value in Table 1 and subtracting this value from all other data. As an example, when the values in Table 1 are updated, Table 3 is obtained.

【表3】 この処理は、何回かに1度定期的に行なうのみで良い。[Table 3] This process need only be performed once every several times.

【0013】記憶領域7についても、記憶領域4と同様
な処理により、記録されている画素データの管理を行な
うことができる。文字データ管理のために使用する表も
同様な構成で良い。但し、記憶領域7に関しては、保存
される画素が圧縮処理されているため、64kbyte
の領域に対し出力装置の解像度を1インチあたり300
画素、使用する平均的な文字の大きさを縦横各50画素
としたとき、300文字程度保存可能である。
With respect to the storage area 7, it is possible to manage the recorded pixel data by the same processing as that of the storage area 4. The table used for character data management may have the same structure. However, regarding the storage area 7, since the pixels to be stored are compressed, 64 kbytes are stored.
The resolution of the output device for each area is 300 per inch.
When the average size of pixels used is 50 pixels in each of the vertical and horizontal directions, about 300 characters can be stored.

【0014】領域7が、領域4に比較しおよそ1.7倍
の文字を保持できるのは、各文字の画素データが、平均
で55から60%に圧縮されているためである。本実施
例においては、圧縮装置5及び伸張装置6にハードウェ
アを使用したが、ソフトウェアでも同種の処理が可能で
あることは言うまでもない。
The area 7 can hold about 1.7 times as many characters as the area 4 because the pixel data of each character is compressed to 55 to 60% on average. In this embodiment, hardware is used for the compression device 5 and the decompression device 6, but it goes without saying that the same type of processing can be performed with software.

【0015】次に、本実施例が使用した圧縮方法につい
て説明する。本実施例では、ハード化が容易であること
から、WBS法として知られる圧縮方法を用いた。一次
元のWBS法は、全データをNビットの区分に分割し、
Nビット全て0の場合1ビットの0で示し、それ以外の
場合は、1ビットの1を加えN+1ビットでデータを表
す方法である。例えば、N=4のとき、表4の上段のデ
ータは、表4の下段のデータに変換される。
Next, the compression method used in this embodiment will be described. In this embodiment, a compression method known as the WBS method is used because it is easy to implement hardware. The one-dimensional WBS method divides all data into N-bit partitions,
When all N bits are 0, it is indicated by 0 of 1 bit. In other cases, 1 of 1 bit is added and data is represented by N + 1 bits. For example, when N = 4, the upper data in Table 4 is converted to the lower data in Table 4.

【表4】 この方法では、明らかに0列が長いほど圧縮率が向上す
る。そのため、本実施例では実際の圧縮処理に先立ち、
前処理を行ない圧縮率を高めている。前処理方法の説明
図を図2(a)、(b)に示す。有効処理範囲10に、
図2(a)に示すように文字「あ」の形状を表す画素が
有った場合、垂直方向に注目行及び注目行のすぐ下の行
のデータを排他的論理和をとり、再び注目行に格納する
と、図2(b)に示す画素群が得られる。図2(b)か
ら明らかなように、白領域が拡大される。この後、前述
のWBS法を使用すれば、圧縮率を高めることが可能で
ある。本実施例においては、縦横32画素の文字データ
について、4ビット長のWBS法を用い、文字「あ」に
ついては56%、文字「亜」については50%、文字
「範」については59%に、それぞれ圧縮できた。この
処理方法は、文字を形成する画素数が大きいほど圧縮率
を高めることができ、32画素から60画素程度の文字
については、(書体デザインにもよるが)平均で55か
ら60%の圧縮ができた。
[Table 4] In this method, obviously, the longer the 0 column is, the higher the compression rate is. Therefore, in this embodiment, prior to the actual compression processing,
Pre-processing is performed to increase the compression rate. An explanatory diagram of the pretreatment method is shown in FIGS. In the effective processing range 10,
As shown in FIG. 2A, when there is a pixel representing the shape of the character “A”, the data of the target line and the line immediately below the target line are exclusive ORed in the vertical direction, and the target line is re-selected. When stored in, the pixel group shown in FIG. 2B is obtained. As is clear from FIG. 2B, the white area is enlarged. After that, if the WBS method described above is used, the compression rate can be increased. In the present embodiment, the WBS method of 4-bit length is used for the character data of vertical and horizontal 32 pixels, 56% for the character "A", 50% for the character "A", and 59% for the character "Pan". , I was able to compress each. This processing method can increase the compression rate as the number of pixels forming a character increases, and for a character of 32 to 60 pixels, an average compression of 55 to 60% (depending on the typeface design) can be achieved. did it.

【0016】次に図1に沿って、動作の流れを説明す
る。表示装置1を含むシステムにおいて、文字を表示す
る要求が発生したとき、システムを制御するソフトウェ
アの処理は、大きく3つに場合分けすることができる。
それは以下の3つである。 処理(A) 表示を要求された文字の、形状を示す画素データが、記
憶装置4および記憶装置7に保持されていない場合。 処理(B) 表示を要求された文字の、形状を示す画素データが、記
憶装置4に保持されている場合。 処理(C) 表示を要求された文字の、形状を示す画素データが、記
憶装置7に保持されている場合。
Next, the flow of operation will be described with reference to FIG. In a system including the display device 1, when a request to display a character is generated, the processing of software controlling the system can be roughly divided into three cases.
There are the following three. Process (A) When the pixel data indicating the shape of the character requested to be displayed is not held in the storage device 4 and the storage device 7. Process (B) When the pixel data indicating the shape of the character requested to be displayed is stored in the storage device 4. Process (C) When the pixel data indicating the shape of the character requested to be displayed is stored in the storage device 7.

【0017】これを図3の流れ図を用いて説明する。This will be described with reference to the flowchart of FIG.

【0018】システムにおいて、文字出力の要求が発生
(20)すると、システムプログラムは記憶装置4の管
理表を調べ、要求と同一の文字が既に画素に変換されて
いるか調べる(21)。このとき、同一文字コードの文
字であっても、文字種、縦画素数、横画素数、変形に使
用するマトリクスのいずれかが不一致であれば、同一と
は見なされない。これについては、表2にその例を示し
た文字レコードの管理表によって検出できる。もし、記
憶装置4の管理表で該当する文字データが検出できなけ
れば、次に記憶装置7の管理表を用いて同様な調査を行
なう(22)。記憶装置4及び記憶装置7に、必要な文
字データが格納されていない場合は、文字形状発生手段
2を用いて文字形状データを発生し(23)、前述の処
理(A)を実施する(24)。また判断(21)で記憶
装置4に該当する文字データが有った場合には、処理
(B)が実施される。判断(22)で記憶装置7に該当
する文字データが有った場合には、処理(C)が実施さ
れる。文字形状発生手段2に伝達される情報は、文字の
種別(明朝体、ゴシック体等)および、文字の大きさ、
文字コードの指定などに関する情報である。日本語を扱
う場合には、文字コードとしてJISコード(あるいは
類似のコード)が使用される。
When a character output request occurs in the system (20), the system program checks the management table of the storage device 4 to see if the same character as the request has already been converted into pixels (21). At this time, even characters having the same character code are not considered to be the same if any of the character type, the number of vertical pixels, the number of horizontal pixels, and the matrix used for transformation do not match. This can be detected by the character record management table whose example is shown in Table 2. If the corresponding character data cannot be detected in the management table of the storage device 4, then the same investigation is performed using the management table of the storage device 7 (22). When the necessary character data is not stored in the storage device 4 and the storage device 7, character shape data is generated using the character shape generation means 2 (23), and the above-described processing (A) is performed (24). ). If there is character data corresponding to the storage device 4 in the judgment (21), the process (B) is executed. If there is character data corresponding to the storage device 7 in the judgment (22), the process (C) is executed. The information transmitted to the character shape generating means 2 includes the type of character (Mincho, Gothic, etc.), the size of the character,
This is information related to the designation of character codes. When handling Japanese, the JIS code (or similar code) is used as the character code.

【0019】以下各処理に関し、より詳細に説明する。Each process will be described in more detail below.

【0020】まず処理(A)の動作について説明する。
図4は、処理(A)の動作の流れを示した流れ図であ
る。この処理に先立ち、文字発生手段2は、文字コード
の指定に基づき、アウトラインフォントデータ3より該
当する文字に関する必要なデータを読み込み、演算処理
を行ない、画素群を発生する。これにより、新たに生成
された文字形状のデータを格納するために、どのくらい
の大きさの空き領域が必要か知ることができる。この数
値に基づきシステムは、記憶領域4の空き領域を検出す
る(30)。空き領域が無い場合、システムを制御する
プログラムは文字データの管理表に従い、最終使用回の
項目の値が最も小さい文字に関するデータを取り出し
(33)、圧縮装置5を用いて圧縮する(34)。この
とき圧縮処理後のデータサイズを求め、記憶領域7の空
き領域のサイズを調べる(35)。ここでも空き領域が
無い場合(35)は、次に記憶領域7に関する文字デー
タの管理表に従い、最終使用回の項目の値が最も小さい
文字に関するデータを廃棄する(37)。それでも空き
領域が足りない場合は、同処理をさらに繰り返す。空き
領域が確保されると、圧縮装置5により圧縮された画素
データが記憶領域7に転送される(36)。この処理の
後、再び記憶装置4の空き領域の検出が行なわれ(3
0)、空き領域が確保されれば、文字形状発生手段2に
より生成された画素群は直ちに記憶装置4に記録され
(31)、さらに表示装置1に転送され表示される(3
2)。また空き領域の大きさが不十分な場合は、処理
(33)以降が繰り返される。また処理(31)におい
ては、記憶装置4の管理表の最終使用回の項目が更新さ
れる。同じく処理(36)においては、記憶装置7の管
理表の最終使用回の項目の更新がなされる。
First, the operation of the process (A) will be described.
FIG. 4 is a flow chart showing the flow of the operation of the process (A). Prior to this processing, the character generation means 2 reads necessary data relating to the corresponding character from the outline font data 3 based on the designation of the character code, performs arithmetic processing, and generates a pixel group. As a result, it is possible to know how much free space is needed to store the newly generated character shape data. Based on this numerical value, the system detects a free area in the storage area 4 (30). If there is no free area, the program controlling the system fetches the data regarding the character having the smallest value of the item of the last use (33) and compresses it using the compression device 5 according to the character data management table (34). At this time, the data size after the compression processing is obtained, and the size of the free area of the storage area 7 is checked (35). If there is no free area here (35), then, according to the character data management table for the storage area 7, the data for the character having the smallest value of the item of the last use is discarded (37). If there is still not enough free space, the process is repeated. When the free area is secured, the pixel data compressed by the compression device 5 is transferred to the storage area 7 (36). After this processing, the empty area of the storage device 4 is again detected (3
0), if a vacant area is secured, the pixel group generated by the character shape generating means 2 is immediately recorded in the storage device 4 (31) and further transferred to the display device 1 for display (3).
2). If the size of the free area is insufficient, the process (33) and subsequent steps are repeated. Further, in the process (31), the item of the last use of the management table of the storage device 4 is updated. Similarly, in the processing (36), the item of the last use of the management table of the storage device 7 is updated.

【0021】処理(B)の場合は、その流れ図を図6に
示す。表示に使用可能な文字形状のデータ画素群が存在
するので、直ちに表示処理を行なうことができる。この
とき記憶装置4の管理表が更新される(42)。
In the case of the process (B), its flow chart is shown in FIG. Since there are character-shaped data pixel groups that can be used for display, display processing can be performed immediately. At this time, the management table of the storage device 4 is updated (42).

【0022】処理(C)の場合は、図5の流れ図のよう
に動作する。すなわち、記憶装置7より圧縮された状態
の文字データが取り出され(40)、伸張装置6により
データ伸張された(41)後、処理(A)と同様の操作
が実行される。
In the case of the processing (C), it operates as shown in the flow chart of FIG. That is, the compressed character data is taken out from the storage device 7 (40) and decompressed by the decompression device 6 (41), and then the same operation as the process (A) is executed.

【0023】以上の手順を実行した場合、一般にデータ
の圧縮・伸張処理はアウトラインフォントの生成よりも
高速に実施することができる。本実施例に使用したハー
ドウェアでは、縦横60画素の文字に関し、圧縮・伸張
は300文字/秒であった。これに対し、アウトライン
フォントの生成は、ソフトウェアで実行され4文字/秒
であった。このような処理速度差を考えた場合、圧縮処
理手段を用いてできるだけ多くの文字についての形状デ
ータを保持しておくことが、システム全体としての処理
速度向上に有利であると言える。
When the above procedure is executed, generally, the data compression / expansion processing can be executed at a higher speed than the outline font generation. With the hardware used in this example, compression / expansion was 300 characters / sec for a character of 60 pixels vertically and horizontally. In contrast, outline font generation was performed by software and was 4 characters / sec. Considering such a processing speed difference, it can be said that holding the shape data of as many characters as possible by using the compression processing means is advantageous for improving the processing speed of the entire system.

【0024】またハードウェアを構成する上でも、アウ
トラインフォント生成部分によりも、圧縮・伸張処理部
分の方が容易である。
Also, in terms of hardware construction, the compression / expansion processing portion is easier than the outline font generation portion.

【0025】[0025]

【発明の効果】上記構成の本発明を用いた場合、同一容
量のメモリ使用で比較し、従来方式より多くの文字形状
データを保持することが可能となる。圧縮領域にある1
文字についてみれば、表示までに消費される時間は従来
処理の表示時間よりわずかに遅くなる。しかし、従来方
式より多くの文字形状データをメモリ上に持つことが可
能であるため、システム全体としての処理速度は向上さ
せることが可能となる。
When the present invention having the above-mentioned configuration is used, it is possible to hold more character shape data than in the conventional method, as compared with the case of using the memory having the same capacity. 1 in compression area
In terms of characters, the time consumed until display is slightly slower than the display time of conventional processing. However, since it is possible to store more character shape data in the memory than in the conventional method, it is possible to improve the processing speed of the entire system.

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

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

【図2】圧縮前処理の説明図。FIG. 2 is an explanatory diagram of pre-compression processing.

【図3】図1の構成での処理の流れ図。FIG. 3 is a flowchart of processing in the configuration of FIG.

【図4】図3の処理の部分流れ図。FIG. 4 is a partial flowchart of the process of FIG.

【図5】図3の処理の部分流れ図。5 is a partial flowchart of the process of FIG.

【図6】図3の処理の部分流れ図。FIG. 6 is a partial flowchart of the process of FIG.

【図7】従来方式を示す構成図。FIG. 7 is a configuration diagram showing a conventional method.

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

1 表示装置 2 文字形状発生手段 4 記憶装置 5 圧縮装置 6 伸張装置 7 記憶装置 DESCRIPTION OF SYMBOLS 1 display device 2 character shape generating means 4 storage device 5 compression device 6 expansion device 7 storage device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】曲線・直線の方程式を記述するデータ列か
ら、文字の外形曲線・折れ線を発生させ、曲線・折れ線
で囲まれた部分の画素を塗りつぶすことで文字形状を形
成する手段、 使用頻度の高い文字に関し、文字形状を表す画素群をメ
モリ上に蓄積する手段、 使用頻度の低下した文字に関し、文字形状を表す画素群
を圧縮しメモリに蓄積する手段、 圧縮された画素群から、文字形状を伸張により復元する
手段、により構成されることを特徴とする文字データ発
生装置。
1. A means for forming a character shape by generating an outline curve / broken line of a character from a data string describing a curve / straight line equation and filling pixels in the portion surrounded by the curve / broken line, frequency of use. For high-characters, a means for accumulating a pixel group that represents the character shape on the memory, for a character that is less frequently used, a means for compressing a pixel group that represents the character shape and accumulating it in the memory, a character from the compressed pixel group A character data generating device comprising a means for restoring a shape by expansion.
JP21099391A 1991-08-22 1991-08-22 Character data generator and method Expired - Fee Related JP3166222B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21099391A JP3166222B2 (en) 1991-08-22 1991-08-22 Character data generator and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21099391A JP3166222B2 (en) 1991-08-22 1991-08-22 Character data generator and method

Publications (2)

Publication Number Publication Date
JPH0553557A true JPH0553557A (en) 1993-03-05
JP3166222B2 JP3166222B2 (en) 2001-05-14

Family

ID=16598554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21099391A Expired - Fee Related JP3166222B2 (en) 1991-08-22 1991-08-22 Character data generator and method

Country Status (1)

Country Link
JP (1) JP3166222B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI638283B (en) * 2016-04-11 2018-10-11 亞太戲網股份有限公司 Method and system for font creating by handwriting

Also Published As

Publication number Publication date
JP3166222B2 (en) 2001-05-14

Similar Documents

Publication Publication Date Title
EP0585522B1 (en) Page printer having automatic font compression
EP0798665B1 (en) Fallback processing for page generation using memory reduction techniques
WO1995028685A1 (en) Digital printing system and process using adaptive compression
JP3672608B2 (en) Font data compression / decompression device
JPH06106810A (en) Method for forming image and its device
JPH0553557A (en) Character data generation device
JPH06344601A (en) Outputting apparatus and outputting method
JP2000089983A (en) Data storage device and method therefor
JP3772569B2 (en) Image processing apparatus and image processing method
US5345548A (en) Character display apparatus for displaying multiple-font characters with high speed
JP2923002B2 (en) Font-free raster image processing system
JPH05204591A (en) Image plotting device
US20020149587A1 (en) Method of controlling the display of a character based on a dynamic code generation
JP3353371B2 (en) Character display device
JPH02304596A (en) Character data generator
JP3778068B2 (en) Image data expansion method and image display control apparatus
JP2683506B2 (en) Data compression method and apparatus, data decompression method and apparatus
JPH04278374A (en) Character font generator
JPH0566757A (en) Font generator
JP2000211198A (en) Method for managing image data
JP2674887B2 (en) Word processor
JP2000003168A (en) Method and device for font plotting
JPH05281948A (en) Font pattern compressing and storing method
JPH06332666A (en) Compressing method for data
JPH04133091A (en) Character output device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080309

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090309

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090309

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100309

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees