JP3411350B2 - Outline character expansion device - Google Patents

Outline character expansion device

Info

Publication number
JP3411350B2
JP3411350B2 JP28799193A JP28799193A JP3411350B2 JP 3411350 B2 JP3411350 B2 JP 3411350B2 JP 28799193 A JP28799193 A JP 28799193A JP 28799193 A JP28799193 A JP 28799193A JP 3411350 B2 JP3411350 B2 JP 3411350B2
Authority
JP
Japan
Prior art keywords
character
cache
cache management
address
management information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP28799193A
Other languages
Japanese (ja)
Other versions
JPH07140959A (en
Inventor
哲幸 松田
昌弘 伊達
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP28799193A priority Critical patent/JP3411350B2/en
Publication of JPH07140959A publication Critical patent/JPH07140959A/en
Application granted granted Critical
Publication of JP3411350B2 publication Critical patent/JP3411350B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Image Generation (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

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

【0001】(目次) 産業上の利用分野 従来の技術(図24〜図26) 発明が解決しようとする課題(図27〜図30) 課題を解決するための手段(図1〜図3) 作用 実施例 (a)本発明を適用するシステムの説明(図4) (b)第1実施例の説明(図5〜図11) (c)第2実施例の説明(図12〜図20) (d)第3実施例の説明(図21〜図23) 発明の効果(Table of contents) Industrial applications Conventional technology (FIGS. 24 to 26) Problems to be Solved by the Invention (FIGS. 27 to 30) Means for Solving the Problems (FIGS. 1 to 3) Action Example (A) Description of system to which the present invention is applied (FIG. 4) (B) Description of the first embodiment (FIGS. 5 to 11) (C) Description of the second embodiment (FIGS. 12 to 20) (D) Description of the third embodiment (FIGS. 21 to 23) The invention's effect

【0002】[0002]

【産業上の利用分野】本発明は、印刷装置や表示装置に
おいてアウトライン文字のラスタ文字展開を高速化する
ための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for speeding up raster character expansion of outline characters in a printing device or a display device.

【0003】[0003]

【従来の技術】一般に、印刷装置により印刷される文字
のサイズは、例えば7,9,12ポイントというように
予め決まっており、各サイズ毎に文字パターンが登録さ
れている。この場合、登録されていないサイズの文字の
印刷を行なうことはできない。従って、各種サイズの文
字印刷を可能にするためには、サイズ毎に文字パターン
を登録する必要があり、その場合の登録データ量は莫大
なものになる。
2. Description of the Related Art Generally, the size of a character printed by a printing device is predetermined such as 7, 9 or 12 points, and a character pattern is registered for each size. In this case, it is not possible to print characters of unregistered size. Therefore, in order to print characters of various sizes, it is necessary to register a character pattern for each size, and the amount of registered data in that case becomes enormous.

【0004】そこで、従来より、アウトライン文字を所
望の文字サイズにラスタ文字展開することにより得られ
た文字パターンを印刷することが行なわれている。アウ
トライン文字では、字母データとして、その文字の輪郭
線(アウトライン)上の各頂点座標が保有されており、
これらの座標を所望の文字サイズに応じて配置し〔スケ
ーリング(拡縮)処理〕、各頂点を結び〔輪郭線の描画
処理〕、その内部を塗りつぶすことで〔面塗り処理〕、
所望の文字サイズのラスタ文字(文字パターン)を得る
ことができる。このような処理をアウトライン文字のラ
スタ文字展開と呼んでいる。
Therefore, conventionally, a character pattern obtained by rasterizing an outline character into a desired character size is printed. In outline characters, each vertex coordinate on the outline (outline) of the character is stored as character data,
By arranging these coordinates according to the desired character size [scaling (scaling) processing], connecting the vertices [outline drawing processing], and filling the inside thereof [surface painting processing],
A raster character (character pattern) having a desired character size can be obtained. Such processing is called raster character expansion of outline characters.

【0005】ところで、このようなアウトライン文字の
展開を各文字パターンを印刷する度に行なっていては、
その処理のために時間を要するため、上述のような各種
処理を並行して行なうパイプライン方式が採用されるほ
か、一旦展開された文字パターンをその字母アドレス
(パターンアドレス)に応じてキャッシュに保持するこ
とにより、既に一度ラスタ展開された文字パターンを再
利用可能にして、文字処理の高速化をはかっている。
By the way, if such an outline character is expanded every time each character pattern is printed,
Since this process requires time, a pipeline method that performs the above-mentioned various processes in parallel is adopted, and once expanded character patterns are retained in the cache according to their letter addresses (pattern addresses). By doing so, the character pattern that has already been raster-expanded can be reused, and the speed of character processing is increased.

【0006】このため、通常、図25〜図28に示すよ
うに、2組(プライマリ,セカンダリ)の文字展開キャ
ッシュテーブル21A,21Bおよびキャッシュ管理テ
ーブル22A,22Bが文字パターンキャッシュ制御部
20にそなえられている。ここで、文字展開キャッシュ
テーブル21A,21Bは、字母データからアウトライ
ン文字を所定文字サイズに応じて展開することにより得
られた文字パターンを格納するものである。
Therefore, normally, as shown in FIGS. 25 to 28, two sets (primary and secondary) of the character expansion cache tables 21A and 21B and the cache management tables 22A and 22B are provided in the character pattern cache control unit 20. ing. Here, the character expansion cache tables 21A and 21B store character patterns obtained by expanding outline characters from character data according to a predetermined character size.

【0007】また、キャッシュ管理テーブル22A,2
2Bは、それぞれ、文字展開キャッシュテーブル21
A,21Bに対応してそなえられるもので、文字展開キ
ャッシュテーブル21A,21Bに格納された各文字パ
ターンについての字母アドレスと文字サイズと各文字展
開キャッシュテーブル21A,21Bにおける展開先ア
ドレスとを、キャッシュ管理情報として格納するもので
ある。
Further, the cache management tables 22A, 2
2B is a character expansion cache table 21
A character address and character size for each character pattern stored in the character expansion cache tables 21A and 21B and expansion destination addresses in the character expansion cache tables 21A and 21B are cached. It is stored as management information.

【0008】従来、キャッシュ管理テーブル22A,2
2Bにおいては、例えば図24(c)に示すように、文
字展開キャッシュテーブル21A,21Bに展開された
文字パターンについてのキャッシュ管理情報が、パター
ンアドレス順〔字母アドレス順;図24(c)中、〜
はそのアドレスを示している)に格納されている。そ
して、ホストから所定文字サイズで文字パターンの印刷
依頼があった場合には、その文字パターンの字母アドレ
スに基づいて、キャッシュ管理テーブル22A,22B
から該当する字母アドレス(以下、パターンアドレスと
いうこともある)をもつキャッシュ管理情報を検索し、
該当するものが検索され文字サイズが一致すれば、その
キャッシュ管理情報の展開先アドレスを参照し、文字展
開キャッシュテーブル21A,21Bのその展開先アド
レスに格納された文字パターンを読み出している。
Conventionally, cache management tables 22A, 2
2B, for example, as shown in FIG. 24 (c), the cache management information about the character patterns expanded in the character expansion cache tables 21A and 21B is in the pattern address order [character address order; in FIG. 24 (c), ~
Indicates its address). Then, when the host requests the printing of the character pattern in a predetermined character size, the cache management tables 22A and 22B are based on the character address of the character pattern.
Search the cache management information that has the corresponding letter address (hereinafter also referred to as pattern address) from
When the corresponding one is searched and the character sizes match, the expansion destination address of the cache management information is referred to, and the character pattern stored in the expansion destination address of the character expansion cache tables 21A and 21B is read.

【0009】キャッシュ管理テーブル22A,22Bの
検索を行なう際には、まず、現在までにキャッシュ管理
テーブル22A,22Bに登録されているデータの中間
位置を求め、その中間までの間に検索する文字があるか
を調べるといった手順を繰り返すことにより、所望のキ
ャッシュ管理情報の登録位置を求めている。例えば、図
24(c)に示す例で説明する。キャッシュ管理テーブ
ル22A,22Bにアドレス〜のキャッシュ管理情
報が格納されている場合に、仮に検索すべき文字パター
ンのパターンアドレスがであるとすると、まず、アド
レス〜の中間位置はアドレスになり、パターンア
ドレスはアドレス〜の間になくアドレス〜の
間にあるので、次にアドレス〜側について中間位置
を求めるとパターンアドレスとなってヒットすること
になる。
When searching the cache management tables 22A and 22B, first, the intermediate position of the data registered in the cache management tables 22A and 22B up to the present is obtained, and the characters searched up to the middle are searched. The registration position of the desired cache management information is obtained by repeating the procedure of checking whether there is any. For example, an example shown in FIG. 24C will be described. When the cache management information of the addresses ~ is stored in the cache management tables 22A and 22B, and if the pattern address of the character pattern to be searched is, first, the intermediate position of the address ~ becomes the address, and the pattern address Is not between the addresses ~, but between the addresses ~, so when the intermediate position is next obtained for the address ~ side, a pattern address is hit.

【0010】上述のようなキャッシュ管理テーブル22
A,22Bでは、キャッシュ管理情報を字母アドレス順
に並べるため、新たな文字パターンを文字展開キャッシ
ュテーブル21A,21Bに格納したのに応じて、その
新たな文字パターンについての新たなキャッシュ管理情
報をキャッシュ管理テーブル22A,22Bに登録する
際には、キャッシュ管理テーブル22A,22B内のデ
ータをずらし、字母アドレス順になるように新たなキャ
ッシュ管理情報を挿入・登録している。
The cache management table 22 as described above
In A and 22B, the cache management information is arranged in the order of the character addresses, and accordingly, according to the new character pattern being stored in the character expansion cache tables 21A and 21B, the new cache management information about the new character pattern is cache managed. When registering in the tables 22A and 22B, the data in the cache management tables 22A and 22B are shifted, and new cache management information is inserted and registered so that the character addresses are in order.

【0011】例えば、図24(a)に示すように、キャ
ッシュ管理テーブル22A,22B内にパターンアドレ
ス,,,の順でキャッシュ管理情報が登録され
ている状態で、パターンアドレスのキャッシュ管理情
報を登録する場合には、図24(b)に示すように、ま
ず、パターンアドレス,のキャッシュ管理情報をず
らし、パターンアドレスととの間をあけた後、図2
4(c)に示すように、パターンアドレスととの間
に、パターンアドレスの新たなキャッシュ管理情報を
設定している。
For example, as shown in FIG. 24A, while the cache management information is registered in the cache management tables 22A and 22B in the order of the pattern address, ..., The cache management information of the pattern address is registered. 24B, first, as shown in FIG. 24B, the cache management information of the pattern address and the pattern address are shifted to make a gap with the pattern address, and then, as shown in FIG.
As shown in 4 (c), new cache management information of the pattern address is set between the pattern address and the pattern address.

【0012】一方、上述のように2組の文字展開キャッ
シュテーブル21A,21Bおよびキャッシュ管理テー
ブル22A,22Bをそなえることにより、両方のテー
ブルがフルの状態になった場合に、一方のテーブルにつ
いてのみリセットして登録先テーブルの切替を行ない、
そのテーブルに新たな文字パターンについてのデータを
登録している。これにより、いずれか一方のテーブルに
必ず文字パターンが格納され、ある程度のキャッシュヒ
ット率が確保されるようになっている。
On the other hand, by providing two sets of the character expansion cache tables 21A and 21B and the cache management tables 22A and 22B as described above, when both tables become full, only one table is reset. And switch the registration destination table,
Data about a new character pattern is registered in the table. As a result, the character pattern is always stored in either one of the tables, and a certain level of cache hit rate is ensured.

【0013】このような切替動作を図25,図26によ
り説明する。まず、一方の組の文字展開キャッシュテー
ブル21Aおよびキャッシュ管理テーブル22Aに文字
パターンおよびキャッシュ管理情報を登録した後、この
組のキャッシュ管理テーブル22Aがフルの状態になる
と、もう一方の組の文字展開キャッシュテーブル21A
およびキャッシュ管理テーブル22Aにも文字パターン
およびキャッシュ管理情報を登録してゆく。
Such switching operation will be described with reference to FIGS. First, after registering a character pattern and cache management information in the character expansion cache table 21A and the cache management table 22A of one group, when the cache management table 22A of this group becomes full, the character expansion cache of the other group is registered. Table 21A
The character pattern and the cache management information are also registered in the cache management table 22A.

【0014】そして、図25に示すように、キャッシュ
管理テーブル22Bもフルの状態になると、両方のキャ
ッシュ管理テーブル22A,22Bがフルの状態でこれ
以上新たな文字パターン,キャッシュ管理情報を登録で
きなくなるため、その時点で、図26に示すように、一
方の組の文字展開キャッシュテーブル21Aおよびキャ
ッシュ管理テーブル22Aをリセットし(実際にはキャ
ッシュ管理テーブル22Aのみをリセットすることによ
り、文字展開キャッシュテーブル21Aのデータを読み
出せなくなって文字展開キャッシュテーブル21Aもリ
セットされたことになる)、その文字展開キャッシュテ
ーブル21Aおよびキャッシュ管理テーブル22Aに、
新たな文字パターンおよびキャッシュ管理情報を改めて
登録してゆくのである。
Then, as shown in FIG. 25, when the cache management table 22B also becomes full, both the cache management tables 22A and 22B are full, and new character patterns and cache management information cannot be registered anymore. Therefore, at that point, as shown in FIG. 26, one set of the character expansion cache table 21A and the cache management table 22A is reset (actually, by resetting only the cache management table 22A, the character expansion cache table 21A is reset). Data cannot be read, and the character expansion cache table 21A is also reset), and the character expansion cache table 21A and the cache management table 22A are
New character patterns and cache management information will be registered again.

【0015】なお、このとき、パイプライン方式による
処理が行なわれているため、文字展開キャッシュテーブ
ル21A,21Bと、キャッシュ管理テーブル22A,
22Bとは異なるCPUによりそれぞれ制御されてお
り、キャッシュ管理テーブル22A,22Bに対するキ
ャッシュ管理情報の登録制御の方が、アウトライン文字
展開制御(文字展開キャッシュテーブル21A,21B
に対する文字パターンの登録制御)よりも先行して進行
している。
At this time, since the pipeline processing is performed, the character expansion cache tables 21A, 21B and the cache management table 22A,
22B, each of which is controlled by a CPU different from that of the cache management table 22B.
(Registration control of the character pattern for) is proceeding ahead of.

【0016】[0016]

【発明が解決しようとする課題】しかしながら、上述し
た従来のアウトライン文字展開のキャッシュ制御方式で
は、図24(a)〜(c)にて説明したように、キャッ
シュ管理テーブル22A,22Bにおいて、各文字パタ
ーンについてのキャッシュ管理情報をパターンアドレス
順に並べているため、少ない格納領域でキャッシュ制御
を行なえ検索速度も速くなるが、そのパターンアドレス
順に並べる処理のために文字登録にかなりの時間を要し
効率が悪いという課題がある。
However, in the above-described conventional cache control method for outline character expansion, as described with reference to FIGS. 24A to 24C, in the cache management tables 22A and 22B, each character Since the cache management information about patterns is arranged in the order of pattern addresses, cache control can be performed in a small storage area and the search speed is fast, but it takes a considerable amount of time to register characters due to the processing in order of the pattern addresses, which is inefficient. There is a problem.

【0017】また、前述したように、パイプライン方式
を採用しているため、キャッシュ管理情報登録制御とア
ウトライン文字展開制御とは異なるCPUで制御され、
キャッシュ管理情報登録制御では、即時復帰でキャッシ
ュ管理テーブル22A,22Bに登録してしまい、アウ
トライン文字展開制御での展開終了(文字展開キャッシ
ュテーブル21A,21Bに対する文字パターンの登録
終了)は待たない。従って、キャッシュ管理情報登録と
アウトライン文字展開制御の終了との間にギャップを生
じてしまう。
Further, as described above, since the pipeline system is adopted, the cache management information registration control and the outline character expansion control are controlled by different CPUs,
In the cache management information registration control, the cache management tables 22A and 22B are immediately restored and registered in the cache management tables 22A and 22B, and there is no need to wait for the completion of the expansion in the outline character expansion control (the completion of registration of the character pattern in the character expansion cache tables 21A and 21B). Therefore, there is a gap between the cache management information registration and the end of outline character expansion control.

【0018】このようなギャップを修正するために、上
位CPUからイニシャライズド・コマンドを受信する
と、その受信時点で、キャッシュ管理テーブル22A,
22Bにおけるキャッシュ管理情報登録の最終位置を、
文字展開キャッシュテーブル21A,21Bにおける文
字展開最終位置と同じ位置まで戻さなければならない。
この際、図25,図26にて説明したようなテーブル切
替動作中、例えば切替直後の図27に示すようなデータ
格納状態(即ち、文字展開キャッシュテーブル21Bで
はまだ最終の文字パターンが登録されていない状態で、
キャッシュ管理テーブル22Aに新たなキャッシュ管理
情報が先行して登録されている状態)で、イニシャライ
ズド・コマンドを受信すると、図28に示すように、切
替先のキャッシュ管理テーブル22Aに登録されていた
新たなキャッシュ管理情報はすべてリセットされてしま
う。
When an initialized command is received from the upper CPU to correct such a gap, the cache management table 22A,
The final position of the cache management information registration in 22B is
The character expansion cache tables 21A and 21B must be returned to the same position as the final character expansion position.
At this time, during the table switching operation as described in FIGS. 25 and 26, for example, the data storage state as shown in FIG. 27 immediately after switching (that is, the final character pattern is still registered in the character expansion cache table 21B). With no
When new cache management information is registered in advance in the cache management table 22A) and the initialization command is received, as shown in FIG. 28, the new cache management table 22A that has been registered in the switching destination cache management table 22A is newly registered. All cache management information will be reset.

【0019】このため、イニシャライズド・コマンドに
よる初期化後は、一時的にキャッシュヒット率が約1/
2以下に落ちてしまい、文字処理の高速化を妨げる要因
となっている。さらに、従来のアウトライン文字展開の
キャッシュ制御方式では、図29,図30に示すよう
に、ホストからロギングされる字母データを格納する字
母キャッシュ23aを有する字母キャッシュ制御部23
と組み合わされ、字母キャッシュ23aに格納された字
母データに基づいてアウトライン文字を展開する場合に
おいて、ホスト側から字母キャッシュ23aにおける字
母データの入替えが行なわれると、以下のような課題が
生じている。
For this reason, after initialization by the initialized command, the cache hit ratio is temporarily about 1 /.
This is a factor of 2 or less, which is a factor that hinders the speeding up of character processing. Further, in the conventional outline character expansion cache control method, as shown in FIGS. 29 and 30, a character mother cache control unit 23 having a character character cache 23a for storing character character data logged from the host.
When the outline character is expanded based on the character data stored in the character cache 23a in combination with the character data and the character data in the character cache 23a is exchanged from the host side, the following problems occur.

【0020】例えば、字母キャッシュ23aにおいて字
母データが字母データに入れ替えられた際に、図2
9に示すように、文字展開キャッシュテーブル21A,
21Bに字母データについての文字パターンが登録さ
れていると、その文字パターンについてのキャッシュ管
理情報もキャッシュ管理テーブル22A,22Bに登録
されている。
For example, when the character mother data is replaced with the character mother data in the character mother cache 23a, as shown in FIG.
As shown in FIG. 9, the character expansion cache table 21A,
When a character pattern for character data is registered in 21B, cache management information for that character pattern is also registered in the cache management tables 22A and 22B.

【0021】従って、データ入替え後に字母データの
印刷依頼があった場合、キャッシュ管理テーブル22
A,22Bにおけるキャッシュ管理情報の字母アドレス
および文字サイズをキーにして文字パターンを検索する
ため、字母データについての文字パターンを印刷する
部分に、字母データについての文字パターンが印刷さ
れるという文字出力ミスを生じてしまう。
Therefore, when there is a print request for character data after data replacement, the cache management table 22
A, 22B is a character output error that the character pattern for the character data is printed in the portion where the character pattern for the character data is printed because the character pattern is searched using the character address and character size of the cache management information as keys. Will occur.

【0022】本発明はこのような課題に鑑み創案された
もので、本発明の目的は、従来のパターンアドレス順に
並べて管理するキャッシュ制御よりも高速に文字登録
(キャッシュ登録)を行なえるようにして、効率の良い
処理を実現したアウトライン文字展開装置を提供するこ
とである。
[0022] The present invention has been made in view of such problems, purpose of the present invention, character registration faster than the cache control to manage side by conventional pattern address order (the cache registration) to so enable Te, Ru der to provide an outline character development apparatus that realizes efficient process.

【0023】[0023]

【0024】[0024]

【課題を解決するための手段】図1は発明の原理ブロ
ック図で、この図1において、1は文字展開キャッシュ
テーブル、2はキャッシュ管理テーブル、3は検索コー
ドテーブルである。ここで、文字展開キャッシュテーブ
ル1は、字母データからアウトライン文字を所定文字サ
イズに応じて展開することにより得られた文字パターン
を格納するものである。
FIG. 1 is a block diagram of the principle of the present invention. In FIG. 1, 1 is a character expansion cache table, 2 is a cache management table, and 3 is a search code table. Here, the character expansion cache table 1 stores character patterns obtained by expanding outline characters from character data according to a predetermined character size.

【0025】また、キャッシュ管理テーブル2は、文字
展開キャッシュテーブル1に格納された各文字パターン
についての字母アドレスと文字サイズと文字展開キャッ
シュテーブル1における展開先アドレスとを、キャッシ
ュ管理情報として、順次格納するものである。さらに、
検索コードテーブル3は、キャッシュ管理テーブル2に
おける各キャッシュ管理情報の格納アドレスを、各キャ
ッシュ管理情報がもつ字母アドレスの一部を取り出して
得られる検索用アドレスに格納するものである。
Further, the cache management table 2 sequentially stores, as cache management information, character addresses, character sizes, and expansion destination addresses in the character expansion cache table 1 for each character pattern stored in the character expansion cache table 1. To do. further,
The search code table 3 extracts the storage address of each cache management information in the cache management table 2 by extracting a part of the letter address of each cache management information.
It is stored in the obtained search address.

【0026】ホストから所定文字サイズで文字パターン
の出力依頼があった場合、まず、検索コードテーブル3
において、当該文字パターンの字母アドレスの一部を取
り出して得られる検索用アドレスに格納されている格納
アドレスを参照する。そして、キャッシュ管理テーブル
2において、検索コードテーブル3から得られた当該格
納アドレスに格納されているキャッシュ管理情報の字母
アドレスおよび文字サイズを参照する。
When the host requests the output of a character pattern in a predetermined character size, first, the search code table 3
, A part of the character address of the character pattern is taken.
The storage address stored in the search address obtained by the retrieval is referred to. Then, in the cache management table 2, the character address and the character size of the cache management information stored in the storage address obtained from the search code table 3 are referenced.

【0027】この後、キャッシュ管理テーブル2にて参
照した字母アドレスおよび文字サイズと、当該文字パタ
ーンの字母アドレスおよび所定文字サイズとがそれぞれ
一致している場合、当該キャッシュ管理情報の展開先ア
ドレスを参照し、文字展開キャッシュテーブル1の当該
展開先アドレスに格納された文字パターンを読出制御す
る(以上、請求項1)。このとき、前記検索用アドレス
は同一であるが字母アドレスの異なる文字パターンがキ
ャッシュ管理テーブル2に登録されている場合、字母ア
ドレスの異なる文字パターンのアドレスを指定する次ポ
インタを、前記キャッシュ管理情報として、キャッシュ
管理テーブル2に格納し、キャッシュ管理テーブル2に
て参照した字母アドレスおよび文字サイズと当該文字パ
ターンの字母アドレスおよび所定文字サイズとが一致し
ていない場合、当該キャッシュ管理情報の次ポインタを
参照しながら、この次ポインタが0になるまでにキャッ
シュ管理テーブル2にて参照した字母アドレスおよび文
字サイズと当該文字パターンの字母アドレスおよび所定
文字サイズとがそれぞれ一致するキャッシュ管理情報が
存在するか否かを判断し、一致するキャッシュ管理情報
が存在した場合、当該キャッシュ管理情報の展開先アド
レスを参照し、文字展開キャッシュテーブル1の当該展
開先アドレスに格納された文字パターンを読出制御する
ように構成してもよい(請求項2)。
After that, if the character address and character size referred to in the cache management table 2 match the character address of the character pattern and the predetermined character size, respectively, refer to the expansion destination address of the cache management information. Then, the character pattern stored in the expansion destination address of the character expansion cache table 1 is read out and controlled (the above is the first claim). At this time, when character patterns having the same search address but different character addresses are registered in the cache management table 2, a next pointer designating the address of the character pattern having different character addresses is used as the cache management information. , Cache management table 2 and cache management table 2
And the character size and character size
The letter address of the turn and the specified character size match.
If not, the next pointer of the cache management information
While referring to it, it is necessary to wait until the next pointer reaches 0.
Character address and sentence referred to in the management table 2
Character size, character address of the character pattern and predetermined
The cache management information that matches the character size
Cache management information that matches whether it exists or not
If exists, the expansion destination ad of the relevant cache management information
Responsive, and the exhibition of the character expansion cache table 1
Read control of the character pattern stored in the groove address
It may be configured as described above (Claim 2).

【0028】図2は発明の別な態様の原理ブロック図
で、この図2に示すように、第2の発明では、2組の文
字展開キャッシュテーブル1A,1Bおよびキャッシュ
管理テーブル2A,2Bがそなえられている。各文字展
開キャッシュテーブル1A,1Bは、それぞれ字母デー
タからアウトライン文字を所定文字サイズに応じて展開
することにより得られた文字パターンを格納するもので
あり、各キャッシュ管理テーブル2A,2Bは、それぞ
れ、文字展開キャッシュテーブル1A,1Bに格納され
た各文字パターンについての字母アドレスと文字サイズ
と文字展開キャッシュテーブル1A,1Bにおける展開
先アドレスとを、キャッシュ管理情報として格納するも
のである。
FIG. 2 is a principle block diagram of another embodiment of the present invention. As shown in FIG. 2, in the second invention, two sets of character expansion cache tables 1A and 1B and cache management tables 2A and 2B are provided. It is provided. Each of the character expansion cache tables 1A and 1B stores a character pattern obtained by expanding outline characters from character data according to a predetermined character size. The cache management tables 2A and 2B respectively store the character patterns. The character expansion addresses and character sizes for the respective character patterns stored in the character expansion cache tables 1A and 1B and the expansion destination addresses in the character expansion cache tables 1A and 1B are stored as cache management information.

【0029】また、4は2組のキャッシュ管理テーブル
2A,2Bにおける格納データがフルの状態になった場
合に新たなキャッシュ管理情報を一時的に格納する切替
時専用バッファ、5は2組の文字展開キャッシュテーブ
ル1A,1Bにおいて2組のキャッシュ管理テーブル2
A,2Bに格納されているキャッシュ管理情報に対応す
る文字パターンが全て格納された場合に設定されるアウ
トライン文字展開最終フラグである。
Further, 4 is a switching dedicated buffer for temporarily storing new cache management information when the stored data in the two sets of cache management tables 2A and 2B is full, and 5 is two sets of characters. Two sets of cache management tables 2 in the expanded cache tables 1A and 1B
This is an outline character expansion final flag set when all the character patterns corresponding to the cache management information stored in A and 2B are stored.

【0030】ホストから所定文字サイズで文字パターン
の出力依頼があった場合には、まず、当該文字パターン
の字母アドレスに基づいてキャッシュ管理テーブル2
A,2Bを検索し、当該文字パターンの字母アドレスに
対応するキャッシュ管理情報が検索され、且つ、文字サ
イズが一致した場合に、当該キャッシュ管理情報の展開
先アドレスを参照し、文字展開キャッシュテーブル1
A,1Bの当該展開先アドレスに格納された文字パター
ンを読出制御する。
When the host requests the output of a character pattern of a predetermined character size, first, the cache management table 2 is generated based on the character address of the character pattern.
A and 2B are searched for the cache management information corresponding to the character address of the character pattern, and when the character sizes match, the expansion destination address of the cache management information is referred to, and the character expansion cache table 1
The character pattern stored in the expanded address of A and 1B is read and controlled.

【0031】上述した2組のキャッシュ管理テーブル2
A,2Bにおける格納データがフルの状態になると、一
方のキャッシュ管理テーブル2Aにおける格納データを
リセットし、一方の文字展開キャッシュテーブル1Aお
よびキャッシュ管理テーブル2Aに新たな文字パターン
およびキャッシュ管理情報を格納するようになってい
る。
The above two sets of cache management tables 2
When the stored data in A and 2B becomes full, the stored data in one cache management table 2A is reset, and new character patterns and cache management information are stored in one character expansion cache table 1A and cache management table 2A. It is like this.

【0032】このとき、図2に示す態様では、アウトラ
イン文字展開最終フラグ5が設定された場合に、一方の
キャッシュ管理テーブル2Aにおける格納データをリセ
ットし、切替時専用バッファ4に一時的に格納されてい
るキャッシュ管理情報を一方のキャッシュ管理テーブル
2Aにコピーする。図3は発明の別な態様の原理ブロ
ック図で、この図3において、6は字母データを格納す
る字母キャッシュ、1は字母キャッシュ6に格納された
字母データからアウトライン文字を所定文字サイズに応
じて展開することにより得られた文字パターンを格納す
る文字展開キャッシュテーブルである。
At this time, in the mode shown in FIG. 2, when the outline character expansion final flag 5 is set, the stored data in one cache management table 2A is reset and temporarily stored in the switching dedicated buffer 4. and it has to be copied to the cache management information in one of the cache management table 2A. 3 is a principle block diagram of another aspect of the present invention. In FIG. 3, 6 is a character cache for storing character data, 1 is an outline character from the character data stored in the character cache 6 according to a predetermined character size. It is a character expansion cache table which stores the character pattern obtained by expanding the character.

【0033】また、2は文字展開キャッシュテーブル1
に格納された各文字パターンについての字母アドレスと
文字サイズと文字展開キャッシュテーブル1における展
開先アドレスとをキャッシュ管理情報として格納するキ
ャッシュ管理テーブルである。さらに、7はホスト側か
ら字母バッファ6における字母データの入替えが行なわ
れた場合にその旨をキャッシュ管理テーブル2および文
字展開キャッシュテーブル1に通知するインターフェイ
ス部である。
2 is a character expansion cache table 1
3 is a cache management table for storing character address, character size, and expansion destination address in the character expansion cache table 1 for each character pattern stored as the cache management information. Further, reference numeral 7 denotes an interface unit for notifying the cache management table 2 and the character expansion cache table 1 of the replacement of character data in the character buffer 6 from the host side.

【0034】この図3に示す態様においも、ホストか
ら所定文字サイズで文字パターンの出力依頼があった場
合、当該文字パターンの字母アドレスに基づいてキャッ
シュ管理テーブル2を検索し、当該文字パターンの字母
アドレスに対応するキャッシュ管理情報が検索され、且
つ、文字サイズが一致した場合に、当該キャッシュ管理
情報の展開先アドレスを参照し、文字展開キャッシュテ
ーブル1の当該展開先アドレスに格納された文字パター
ンを読出制御する。
The even mode smell shown in FIG. 3, when there is an output request of a character pattern at a predetermined character size from the host searches the cache management table 2 based on the alphabet address of the character pattern, of the character pattern When the cache management information corresponding to the character mother address is searched and the character sizes match, the expansion destination address of the cache management information is referred to, and the character pattern stored in the expansion destination address of the character expansion cache table 1. Read control.

【0035】このとき、図3に示す態様では、ホスト側
から字母バッファ6における字母データを入れ替える
と、インターフェイス部7からの通知を受けたキャッシ
ュ管理テーブル2および文字展開キャッシュテーブル1
において、入替えを行なわれた当該字母データについて
入替え前の字母データのキャッシュ管理情報および文字
パターンが格納されている場合には、これらのキャッシ
ュ管理情報および文字パターンを削除し、入替え後の字
母データからアウトライン文字展開して得られた文字パ
ターンを文字展開キャッシュテーブル1に格納するとと
もに、当該文字パターンについてのキャッシュ管理情報
をキャッシュ管理テーブル2に格納する。
At this time, in the mode shown in FIG. 3, when the character data in the character buffer 6 is exchanged from the host side, the cache management table 2 and the character expansion cache table 1 notified from the interface unit 7 are received.
If the cache management information and the character pattern of the character data before replacement is stored in the replaced character data, the cache management information and the character pattern are deleted, and the character data after replacement is deleted from the replaced character data. stores the character pattern obtained by the outline characters developed into character development cache table 1, that stores the cache management information for the character pattern cache management table 2.

【0036】[0036]

【作用】上述した本発明のアウトライン文字展開装置
(請求項1,2)では、キャッシュ管理テーブル2にお
いて、キャッシュ管理情報は順番に登録・格納され、そ
のキャッシュ管理情報の格納アドレスが、検索コードテ
ーブル3におけるキャッシュ管理情報がもつ字母アドレ
の一部を取り出してえら得られる検索用アドレス(字
母アドレスを加工して得られるアドレス)に格納されて
いる。
[Operation]BookInvention outline character expansionapparatus
(Claim 1, 2), The cache management table 2
Cache management information is registered and stored in order, and
The storage address of the cache management information of the
Character address in the cache management information in table 3
SuGet a part of the gillSearch address (letter
Stored in the address obtained by processing the mother address)
There is.

【0037】ホストからの文字パターン出力依頼がある
と、その文字パターンの字母アドレスの一部を取り出し
て得られる検索用アドレスを検索キーとして、検索コー
ドテーブル3の検索が行なわれ、その検索用アドレスに
格納されている格納アドレスを参照する。そして、以降
は通常の処理と同様、キャッシュ管理テーブル2にて、
検索コードテーブル3からの格納アドレスに格納されて
いるキャッシュ管理情報の字母アドレスおよび文字サイ
ズを参照し、これらの字母アドレスおよび文字サイズ
が、出力依頼のあった文字パターンの字母アドレスおよ
び文字サイズと一致している場合、文字展開キャッシュ
テーブル1から、当該キャッシュ管理情報の展開先アド
レスに格納された文字パターンが読出制御される。これ
により、キャッシュ管理テーブル2にキャッシュ管理情
報を順番に登録・格納しながら文字パターンの検索を行
なうことができ、従来のパターンアドレス順に並べて管
理する必要が無い。
When a character pattern output request is made by the host, a part of the character address of the character pattern is extracted.
The search code table 3 is searched using the search address obtained as a search key, and the storage address stored in the search address is referred to. Then, after that, in the cache management table 2, like the normal processing,
The character address and character size of the cache management information stored in the storage address from the search code table 3 are referenced, and these character address and character size match the character address and character size of the character pattern for which the output request is made. If so, the character pattern stored in the expansion destination address of the cache management information is read out from the character expansion cache table 1. As a result, the character patterns can be searched while sequentially registering and storing the cache management information in the cache management table 2, and there is no need to arrange and manage the character patterns in the conventional pattern address order.

【0038】また、上述した図2に示す態様のアウトラ
イン文字展開装置では、2組のキャッシュ管理テーブル
2A,2Bにおける格納データがフルの状態になると、
アウトライン文字展開最終フラグ5が設定されるまで、
新たなキャッシュ管理情報は切替時専用バッファ4に一
時的に格納される。そして、2組の文字展開キャッシュ
テーブル1A,1Bにおいて、2組のキャッシュ管理テ
ーブル2A,2Bに格納されているキャッシュ管理情報
に対応する文字パターンが全て格納されると、アウトラ
イン文字展開最終フラグ5が設定され、この時点で、一
方のキャッシュ管理テーブル2Aにおける格納データが
リセットされ、切替時専用バッファ4に一時的に格納さ
れているキャッシュ管理情報を一方のキャッシュ管理テ
ーブル2Aにコピーしてから、通常の登録処理が続行さ
れる。これにより、イニシャライズド・コマンド受信時
でもキャッシュ管理テーブル2Aのリセットが必要無い
場合には、通常のリセット後にキャッシュ管理テーブル
2Aを元の状態に戻すことができる。
Further, in the outline character expanding device of the aspect shown in FIG. 2 described above, when the stored data in the two sets of cache management tables 2A and 2B becomes full,
Until the final character expansion flag 5 is set,
The new cache management information is temporarily stored in the dedicated buffer 4 at the time of switching. When all the character patterns corresponding to the cache management information stored in the two sets of cache management tables 2A and 2B are stored in the two sets of character expansion cache tables 1A and 1B, the outline character expansion final flag 5 is set. After being set, the stored data in one cache management table 2A is reset, and the cache management information temporarily stored in the switching dedicated buffer 4 is copied to one cache management table 2A, The registration process of is continued. As a result, when the cache management table 2A does not need to be reset even when the initialized command is received, the cache management table 2A can be returned to the original state after the normal reset.

【0039】さらに、上述した図3に示す態様のアウト
ライン文字展開装置では、ホスト側から字母バッファ6
における字母データの入れ替えが行なわれた場合には、
その旨がインターフェイス部7によりキャッシュ管理テ
ーブル2および文字展開キャッシュテーブル1に通知さ
れる。そして、これらのキャッシュ管理テーブル2およ
び文字展開キャッシュテーブル1に、入替えを行なわれ
た当該字母データについて入替え前の字母データのキャ
ッシュ管理情報および文字パターンが格納されている場
合には、これらのキャッシュ管理情報および文字パター
ンが削除され、入替え後の字母データからアウトライン
文字展開して得られた文字パターンが文字展開キャッシ
ュテーブル1に格納されるとともに、当該文字パターン
についてのキャッシュ管理情報がキャッシュ管理テーブ
ル2に格納される。
Further, in the outline character expanding device of the aspect shown in FIG. 3, the character buffer 6 is input from the host side.
When the character data in is replaced,
The interface unit 7 notifies the cache management table 2 and the character expansion cache table 1 to that effect. If the cache management table 2 and the character expansion cache table 1 store the cache management information and the character pattern of the character data before the replacement for the replaced character data, the cache management is performed. The information and the character pattern are deleted, the character pattern obtained by expanding the outline character from the replaced character data is stored in the character expansion cache table 1, and the cache management information about the character pattern is stored in the cache management table 2. Is stored.

【0040】[0040]

【実施例】以下、図面を参照して本発明の実施例を説明
する。 (a)本発明を適用するシステムの説明 図4は本発明を適用するシステムの構成例を示すブロッ
ク図で、この図4において、100は所定文字サイズで
の文字パターンの出力依頼や後述する字母キャッシュに
おける字母データの入替え等を行なうホスト、101は
ホスト100からのデータを受信するチャネル部、10
2はホスト100からのデータを解析して出力するデー
タ解析部(DTP)、103はデータ解析部102から
の解析結果を受けホスト100からの指令に従って装置
(システム)全体を制御する装置制御部(CTP)であ
る。
Embodiments of the present invention will be described below with reference to the drawings. (A) Description of a system to which the present invention is applied FIG. 4 is a block diagram showing a configuration example of a system to which the present invention is applied. In FIG. 4, 100 is a character pattern output request in a predetermined character size or a character to be described later. A host for exchanging character data in the cache, 101 is a channel unit for receiving data from the host 100, 10
Reference numeral 2 is a data analysis unit (DTP) that analyzes and outputs data from the host 100, and 103 is a device control unit that receives the analysis result from the data analysis unit 102 and controls the entire device (system) according to a command from the host 100 ( CTP).

【0041】また、104は装置制御部103から受け
取ったデータを更に解析し後述するIHPに描画を行な
わせるためのオーダを作成し送出するオーダ発行部(I
CP)、105はICP104からのオーダを受けてホ
スト100から出力(印刷)依頼のあった文字パターン
を依頼文字サイズで描画するための描画処理部(IH
P)で、このIHP105は、アウトライン文字展開部
106および描画部107から構成されている。
An order issuing unit (I) 104 further analyzes the data received from the device control unit 103 and creates and sends an order for causing an IHP, which will be described later, to perform drawing.
CP), 105 is a drawing processing unit (IH) for drawing the character pattern requested by the host 100 for output (printing) in the requested character size in response to the order from the ICP 104.
In P), this IHP 105 is composed of an outline character expansion unit 106 and a drawing unit 107.

【0042】ここで、アウトライン文字展開部106
は、今回ホスト100から出力依頼のあった文字パター
ンについて、依頼文字サイズのものが後述する文字展開
キャッシュテーブルに登録されていない場合に、字母デ
ータからアウトライン文字を所定文字サイズに応じて展
開し、その文字パターンを作成するものである。描画部
107は、アウトライン文字展開部106により展開さ
れた文字パターン、もしくは、文字展開キャッシュテー
ブルから読み出された文字パターンをビットマップメモ
リ(図示せず)上へ描画するものである。
Here, the outline character expansion unit 106
Of the character pattern requested by the host 100 for output this time, if the requested character size is not registered in the character expansion cache table described later, the outline character is expanded from the character data according to the predetermined character size. The character pattern is created. The drawing unit 107 draws the character pattern expanded by the outline character expansion unit 106 or the character pattern read from the character expansion cache table on a bitmap memory (not shown).

【0043】さらに、108はIHP105からの文字
パターンを印刷出力するための出力部、109はICP
104からのオーダ(コマンド)を解析するコマンド解
析部、110は文字に関しての処理を行なう文字処理
部、111はIHP105により展開された文字パター
ンを後述する文字展開キャッシュテーブルに登録する一
方でその文字展開キャッシュテーブルに登録された文字
パターンを検索して読出制御する文字パターンキャッシ
ュ制御部、112は初期化コマンド(イニシャライズド
・コマンド)受信時にIHP105が実際に展開終了し
ている位置までキャッシュ登録ポインタを戻すキャッシ
ュ・リセット処理を行なうキャッシュ・リセット部であ
る。
Further, 108 is an output unit for printing out a character pattern from the IHP 105, and 109 is an ICP.
A command analysis unit for analyzing an order (command) from 104, a character processing unit 110 for processing a character, and a reference numeral 111 for registering a character pattern expanded by the IHP 105 in a character expansion cache table described later while expanding the character. A character pattern cache control unit 112 that searches for and controls reading of a character pattern registered in the cache table returns a cache registration pointer to a position where the IHP 105 has actually completed the expansion when receiving an initialization command (initialized command). A cache reset unit that performs cache reset processing.

【0044】このように構成されたシステムでは、各種
処理を並行して行なうパイプライン方式が採用されるほ
か、文字パターンキャッシュ制御部111により、IH
P105にて一旦アウトライン文字からラスタ展開され
た文字パターンは、後述する文字展開キャッシュテーブ
ルに登録され、既に一度ラスタ展開された文字パターン
を再利用可能にして、文字処理の高速化をはかってい
る。
In the system configured as described above, a pipeline system for performing various kinds of processing in parallel is adopted, and the character pattern cache control unit 111 causes the IH
The character pattern raster-expanded from the outline character in P105 is registered in a character expansion cache table described later, and the character pattern already raster-expanded once can be reused to speed up character processing.

【0045】本発明は、この文字パターンキャッシュ制
御部111によるキャッシュ制御にかかるもので、以下
の各実施例では、文字パターンキャッシュ制御部111
による文字展開キャッシュテーブルおよびキャッシュ管
理テーブルでの、文字パターンの検索・登録等のキャッ
シュ制御について詳細に説明する。 (b)第1実施例の説明 図5は本発明の第1実施例としてのアウトライン文字展
装置の要部構成を示すブロック図で、この図5に示す
ように、本実施例では、2組の文字展開キャッシュテー
ブル1A,1Bと、2組のキャッシュ管理テーブル2
A,2Bと、2組の検索コードテーブル3A,3Bと、
2組の登録数ポインタ8A,8Bとがそなえられてい
る。本実施例で、“A”を付されたものをプライマリ・
キャッシュと呼び、“B”を付されたものセカンダリ・
キャッシュと呼ぶ。
[0045] The onset Ming, relates to a cache control according to the character pattern cache control unit 111, in the following embodiments, a character pattern cache control unit 111
The cache control such as character pattern search / registration in the character expansion cache table and the cache management table will be described in detail. (B) Description of the First Embodiment FIG. 5 is a block diagram showing the main structure of an outline character expansion device as the first embodiment of the present invention. As shown in FIG. Character expansion cache tables 1A and 1B and two sets of cache management tables 2
A, 2B, two sets of search code tables 3A, 3B,
Two sets of registration number pointers 8A and 8B are provided. In this embodiment, those marked with "A" are primary
Called cache, with a "B" attached Secondary
Call it cache.

【0046】ここで、文字展開キャッシュテーブル(ア
ウトライン文字展開領域)1A,1Bは、それぞれ、字
母データからアウトライン文字を所定文字サイズに応じ
て展開することにより得られた文字パターンを格納する
ものであり、キャッシュ管理テーブル2A,2Bは、そ
れぞれ、文字展開キャッシュテーブル1A,1Bに格納
された各文字パターンについてのキャッシュ管理情報と
して順次格納するものである。
Here, the character expansion cache tables (outline character expansion areas) 1A and 1B each store a character pattern obtained by expanding outline characters from character data in accordance with a predetermined character size. The cache management tables 2A and 2B are sequentially stored as cache management information for each character pattern stored in the character expansion cache tables 1A and 1B, respectively.

【0047】キャッシュ管理情報としては、図5に示す
ように、各文字展開キャッシュテーブル1A,1Bに格
納された各文字パターンについての字母アドレス,文字
サイズおよび文字展開キャッシュテーブル1A,1Bに
おける展開先アドレスのほかに、本実施例では、次ポイ
ンタを有している。この次ポインタは、後述する検索コ
ード(検索キー)は同一であるが他の情報(字母アドレ
ス,文字アドレス)が異なる他の文字パターンが登録さ
れている場合に、その文字パターンについてのキャッシ
ュ管理情報が登録・格納されているキャッシュ管理テー
ブル2A,2Bの次アドレスを指定するもので、その具
体的な機能については図7により後で詳述する。
As the cache management information, as shown in FIG. 5, a character address, a character size, and an expansion destination address in the character expansion cache tables 1A, 1B for each character pattern stored in each character expansion cache table 1A, 1B. In addition to the above, this embodiment has a next pointer. This next pointer is cache management information about a character pattern when another character pattern having the same search code (search key) described later but different information (character address, character address) is registered. Specifies the next address of the cache management tables 2A and 2B registered / stored therein, and its specific function will be described later in detail with reference to FIG.

【0048】また、検索コードテーブル3A,3Bは、
それぞれ、キャッシュ管理テーブル2A,2Bにおける
各キャッシュ管理情報の格納アドレスを、各キャッシュ
管理情報がもつ字母アドレスに応じて設定される検索用
アドレスに登録・格納するものである。この検索用アド
レス(検索コード,検索キーともいう)は、本実施例で
は、アウトライン文字のパターンアドレス(字母アドレ
ス)から、一部を取り出すことにより加工されている。
例えば、図6に示すように、8バイトのパターン・アド
レスである場合には中間の4バイトを検索キーとして取
り出すものとする。本実施例では、このようにして得ら
れた検索キーを、検索コードテーブル3A,3Bのオフ
セット位置(検索用アドレス)としている。
Further, the search code tables 3A and 3B are
The storage address of each cache management information in the cache management tables 2A and 2B is registered and stored in the search address set according to the letter address of each cache management information. The search address (search code, also referred to as a search key) is, in this embodiment, is processed by the outline character pattern address (Jamo address), and scores eject the part.
For example, as shown in FIG. 6, in the case of an 8-byte pattern address, the middle 4 bytes are taken out as a search key. In this embodiment, the search key thus obtained is used as the offset position (search address) of the search code tables 3A and 3B.

【0049】さらに、登録数ポインタ8A,8Bは、そ
れぞれ、次にキャッシュ管理テーブル2A,2Bに登録
されるキャッシュ管理情報の場所(格納アドレス,オフ
セット位置)を示すもので、各キャッシュ管理テーブル
2A,2Bには順番にキャッシュ管理情報が登録される
ため、登録数ポインタ8A,8Bの登録数を参照するこ
とにより、各キャッシュ管理テーブル2A,2Bの使用
中の範囲を判定できるようになっている。
Further, the registration number pointers 8A and 8B indicate the location (storage address, offset position) of the cache management information to be registered next in the cache management tables 2A and 2B, respectively. Since the cache management information is sequentially registered in 2B, the range in use of each cache management table 2A, 2B can be determined by referring to the registration number of the registration number pointers 8A, 8B.

【0050】また、登録数ポインタ8A,8Bを0にセ
ットすることにより、文字展開キャッシュテーブル1
A,1B,キャッシュ管理テーブル2A,2B,検索コ
ードテーブル3A,3Bの内容を変更することなく、キ
ャッシュ管理テーブル2A,2Bに登録されている文字
は無い状態、即ち未使用領域に設定することができ、こ
れにより、キャッシュ・リセットを行なうことができ
る。
By setting the registered number pointers 8A and 8B to 0, the character expansion cache table 1
A, 1B, cache management tables 2A, 2B, search code tables 3A, 3B can be set without changing the contents of the cache management tables 2A, 2B, that is, in an unused area without changing the contents. Yes, this allows a cache reset.

【0051】さて、図5に示すように、本実施例の全体
的なキャッシュ構成としては、プライマリ・キャッシュ
とセカンダリ・キャッシュとがあり、両方のキャッシュ
がフルになると、一方のキャッシュをリセットする。こ
のため、必ず一方のキャッシュには文字パターンが登録
・存在することになる。具体的には、初めにプライマリ
・キャッシュに登録し、プライマリ・キャッシュがフル
になると、セカンダリ・キャッシュに登録する。セカン
ダリ・キャッシュがフルになった時点で両方のキャッシ
ュがフルになり登録できなくなるので、次の文字を登録
する時には、プライマリ・キャッシュをリセットし、改
め登録する。その後、プライマリ・キャッシュがフルに
なった時点でセカンダリ・キャッシュをリセットすると
いうように、両方のキャッシュがフルになった時点で次
に使用するキャッシュをリセットし、登録しなおしてい
る。このときのキャッシュリセットは、前述したよう
に、登録数ポインタ8Aもしくは8Bを0にセットする
ことにより行なっている。
As shown in FIG. 5, the overall cache configuration of this embodiment includes a primary cache and a secondary cache, and when both caches become full, one cache is reset. Therefore, the character pattern is always registered / existed in one of the caches. Specifically, it is first registered in the primary cache, and when the primary cache becomes full, it is registered in the secondary cache. When the secondary cache becomes full, both caches become full and cannot be registered. Therefore, when registering the next character, reset the primary cache and register again. After that, when the primary cache is full, the secondary cache is reset. When both caches are full, the cache to be used next is reset and re-registered. The cache reset at this time is performed by setting the registration number pointer 8A or 8B to 0 as described above.

【0052】また、各キャッシュがフルになったと判断
する条件としては、以下の2つがある。 (1)キャッシュ管理テーブル2A,2Bがフルになっ
た時 (2)文字展開キャッシュテーブル(アウトライン文字
展開領域)1A,1Bに展開・登録・格納できる領域が
無くなった時 一方、図6に示したように、本実施例の検索キー(検索
コード,検索用アドレス)は、アウトライン文字のパタ
ーンアドレス(字母アドレス)から一部を取り出したも
のである。この検索キーにより、キャッシュ管理テーブ
ル2A,2Bを参照する要因として、本実施例では、検
索コードテーブル3A,3Bが作成されている。
There are the following two conditions for judging that each cache is full. (1) When the cache management tables 2A and 2B are full (2) When there is no area that can be expanded / registered / stored in the character expansion cache tables (outline character expansion areas) 1A and 1B, as shown in FIG. As described above, the search key (search code, search address) of the present embodiment is obtained by extracting a part of the outline character pattern address (character address). In the present embodiment, the search code tables 3A and 3B are created as a factor for referring to the cache management tables 2A and 2B with this search key.

【0053】この検索コードテーブル3A,3Bは、検
索キー全てをサポートしなければならないので、図5に
示すように、例えば0000〜FFFF(16進数)を
サポートするものとなっている。また、検索コードテー
ブル3A,3Bには、その検索キーに対応したキャッシ
ュ管理テーブルのオフセット位置が格納されている。
Since the search code tables 3A and 3B must support all the search keys, they support 0000 to FFFF (hexadecimal number), for example, as shown in FIG. Further, the search code tables 3A and 3B store the offset position of the cache management table corresponding to the search key.

【0054】そして、指定されたオフセット位置のキャ
ッシュ管理テーブル2A,2Bを参照し、キャッシュ管
理テーブル2A,2B内のキャッシュ管理情報が検索し
ている文字パターンのものであるかを判定する。この
際、以下の条件により処理が行なわれる。 (1)指定されたキャッシュ管理テーブル2Aもしくは
2Bが、使用中の範囲内か判定する。
Then, the cache management tables 2A and 2B at the designated offset positions are referred to, and it is determined whether the cache management information in the cache management tables 2A and 2B is of the character pattern being searched. At this time, the processing is performed under the following conditions. (1) It is determined whether the designated cache management table 2A or 2B is within the range in use.

【0055】使用中の範囲内の判定は、登録数ポインタ
8Aもしくは8Bにより行なう(各登録数ポインタ8
A,8Bは、次に登録するキャッシュ管理テーブル2
A,2Bのオフセット位置を設定している)。つまり、
使用中であれば、キャッシュ管理テーブル2Aもしくは
2B内のキャッシュ管理情報を参照する一方、未使用で
あれば、キャッシュ管理テーブル2Aもしくは2Bにキ
ャッシュ管理情報が登録されていないと判断し、キャッ
シュ・リセットする以前の情報であるので、検索してい
る文字パターンをキャッシュに登録する。
The judgment within the range in use is made by the registration number pointer 8A or 8B (each registration number pointer 8
A and 8B are cache management tables 2 to be registered next.
Offset positions of A and 2B are set). That is,
If it is in use, the cache management information in the cache management table 2A or 2B is referred to. If it is not used, it is determined that the cache management information is not registered in the cache management table 2A or 2B, and the cache is reset. Since it is the information before it is registered, the searched character pattern is registered in the cache.

【0056】(2)指定されたキャッシュ管理テーブル
2Aもしくは2B内のキャッシュ管理情報上のパターン
アドレスから、上記と同様の方法で検索キーを取り出
し、現在、検索しているパターンアドレスから取り出し
た検索キーと比較する。検索キーが一致した場合、キャ
ッシュ管理テーブル2Aもしくは2B内のキャッシュ管
理情報を参照する一方、検索キーが不一致である場合、
キャッシュ・リセットする以前の情報であるので、検索
している文字パターンをキャッシュに登録する。
(2) A search key is extracted from the pattern address on the cache management information in the specified cache management table 2A or 2B in the same manner as above, and the search key extracted from the pattern address currently searched for. Compare with. If the search keys match, the cache management information in the cache management table 2A or 2B is referenced, while if the search keys do not match,
Since it is the information before the cache reset, the character pattern being searched for is registered in the cache.

【0057】上述のようにキャッシュ管理テーブル2A
もしくは2Bから逆サーチすることにより、キャッシュ
・リセットを行なっても検索コードテーブル3Aもしく
は3Bはリセット処理せずに使用することができる。上
述した(1),(2)において、キャッシュ管理テーブ
ル2Aもしくは2Bにキャッシュ管理情報が登録されて
いることが判明したならば、指定されたキャッシュ管理
テーブル2Aもしくは2B内のキャッシュ管理情報上の
パターンアドレス,パターンサイズ(文字サイズ)を検
索中の文字パターンのパターンアドレス,文字サイズと
比較する。
As described above, the cache management table 2A
Alternatively, by performing a reverse search from 2B, the search code table 3A or 3B can be used without reset processing even if the cache is reset. In the above (1) and (2), if it is found that the cache management information is registered in the cache management table 2A or 2B, the pattern on the cache management information in the designated cache management table 2A or 2B. Compare the address and pattern size (character size) with the pattern address and character size of the character pattern being searched.

【0058】このとき、検索キーは等しいが、パターン
アドレス,文字サイズが異なる時には、キャッシュ管理
テーブル2Aもしくは2B内のキャッシュ管理情報上の
次ポインタを参照し、この次ポインタが0になるまで、
パターンアドレスおよび文字サイズがいずれも等しいも
のがあるか否かを判断する。次ポインタが0になるまで
に、パターンアドレスおよび文字サイズがいずれも等し
いものが存在した場合には、文字展開キャッシュテーブ
ル1Aもしくは1Bに、検索中の文字パターンについて
既にラスタ化された文字パターンが登録されているの
で、その文字パターンを展開先アドレスに基づいて読み
出す。
At this time, when the search keys are the same but the pattern address and the character size are different, the next pointer on the cache management information in the cache management table 2A or 2B is referred to until the next pointer becomes 0.
It is determined whether or not there are patterns with the same pattern address and character size. If there is the same pattern address and character size before the next pointer becomes 0, the rasterized character pattern of the character pattern being searched for is registered in the character expansion cache table 1A or 1B. Therefore, the character pattern is read based on the expansion destination address.

【0059】一方、次ポインタが0になるまでに、パタ
ーンアドレスおよび文字サイズがいずれも等しいものを
検索できなかった場合には、文字展開キャッシュテーブ
ル1Aもしくは1Bには、検索中の文字パターンについ
てまだ文字パターンが登録されていないので、IHP1
05によりそのアウトライン文字をラスタ展開し、その
結果を新たに展開・登録・格納する。
On the other hand, when it is not possible to retrieve the pattern address and the character size which are equal by the time the next pointer becomes 0, the character expansion cache table 1A or 1B has not yet retrieved the character pattern being retrieved. Since the character pattern is not registered, IHP1
At 05, the outline character is raster-expanded, and the result is newly expanded / registered / stored.

【0060】ここで、前述した次ポインタについて、図
7により具体的に説明する。この図7においては、キャ
ッシュ管理テーブル2A(2B)において、例えば、ア
ドレスに、パターンアドレス“FF000100”の
文字パターンについてのキャッシュ管理情報が格納され
るとともに、アドレスにパターンアドレス“FF00
0111”の文字パターンについてのキャッシュ管理情
報が格納されているものとする。
Here, the above-mentioned next pointer will be specifically described with reference to FIG. In FIG. 7, in the cache management table 2A (2B), for example, the cache management information about the character pattern of the pattern address “FF000100” is stored in the address, and the pattern address “FF00” is stored in the address.
It is assumed that the cache management information about the character pattern of "0111" is stored.

【0061】これらの文字パターンについての検索キー
は、いずれも“0001”であるため、先に格納された
アドレスにおけるキャッシュ管理情報の次ポインタに
は、同じ検索キーをもつ次のキャッシュ管理情報の格納
アドレスが登録・設定されている。また、アドレス
におけるキャッシュ管理情報以降に、同じ検索キーをも
つキャッシュ管理情報が格納されていなければ、アドレ
スにおけるキャッシュ管理情報の次ポインタには0が
登録設定されている。
Since the search keys for these character patterns are all "0001", the next pointer of the cache management information at the previously stored address stores the next cache management information having the same search key. The address is registered and set. Further, if cache management information having the same search key is not stored after the cache management information at the address, 0 is registered and set in the next pointer of the cache management information at the address.

【0062】そして、検索コードテーブル3A(3B)
の検索キー“0001”に対応するアドレスには、先に
キャッシュ管理テーブル2A(2B)に登録されたキャ
ッシュ管理情報の格納アドレス(オフセット位置)が
登録・格納されている。なお、ここでは、格納キーが同
じでパターンアドレスが異なる場合について説明した
が、格納キーが同じで文字サイズ(パターンサイズ)が
異なる場合も同様に次ポインタが設定されている。
Then, the search code table 3A (3B)
The storage address (offset position) of the cache management information previously registered in the cache management table 2A (2B) is registered and stored in the address corresponding to the search key "0001". Although the case where the storage keys are the same and the pattern addresses are different has been described here, the next pointer is similarly set when the storage keys are the same and the character size (pattern size) is different.

【0063】次に、上述した本実施例によるキャッシュ
制御手法を、図8〜図11に示すフローチャートにより
具体的に説明すると、まず、図8に示すように、ホスト
100から印刷依頼を受信すると(ステップA1)、ホ
スト100からの依頼を分析し、1文字毎の展開依頼お
よび印刷依頼を行なう(ステップA2)。印刷依頼され
た文字パターンの字母アドレスについて、任意の一部
(本実施例の場合、図6に示す中間の4バイト)を抜き
出して検索コード(検索キー)とする(ステップA
3)。
Next, the cache control method according to the present embodiment described above will be described in detail with reference to the flowcharts shown in FIGS. 8 to 11. First, as shown in FIG. 8, when a print request is received from the host 100 ( In step A1), the request from the host 100 is analyzed, and a development request and a print request for each character are made (step A2). An arbitrary part (in the case of the present embodiment, the middle 4 bytes shown in FIG. 6) of the character address of the character pattern for which printing is requested is extracted and used as the search code (search key) (step A).
3).

【0064】そして、依頼された文字パターンの検索コ
ードに対応するキャッシュ管理情報がキャッシュ管理テ
ーブル2A,2Bに登録されているか否かを判定し(ス
テップA4)、登録されていない場合には、図10によ
り後述する手順により、その文字パターンをアウトライ
ン文字展開し、そのキャッシュ管理情報を登録数ポイン
タ8A(8B)の示すオフセット位置に登録するととも
に、検索コードテーブル3A(3B)の検索コードに対
応するアドレスに、そのオフセット位置(格納アドレ
ス)を登録する(ステップA5)。
Then, it is judged whether or not the cache management information corresponding to the requested retrieval code of the character pattern is registered in the cache management tables 2A and 2B (step A4). The character pattern is expanded into outline characters and the cache management information is registered at the offset position indicated by the registration number pointer 8A (8B) according to the procedure described later with reference to 10, and corresponds to the search code in the search code table 3A (3B). The offset position (stored address) is registered in the address (step A5).

【0065】ステップA4により、登録されていると判
定された場合には、その検索コードに対応するキャッシ
ュ管理テーブル2A(2B)のアドレスに格納されたキ
ャッシュ管理情報を参照し(ステップA)、依頼され
た文字パターンの検索コードと、キャッシュ管理テーブ
ル2A(2B)にて参照されたキャッシュ管理情報にお
ける字母アドレスから生成された検索コードとが等しい
か否かを判定する(ステップA7)。等しくない場合に
は、前述したステップA5と全く同様に、文字パターン
をアウトライン文字展開し、そのキャッシュ管理情報を
登録数ポインタ8A(8B)の示すオフセット位置に登
録するとともに、検索コードテーブル3A(3B)の検
索コードに対応するアドレスに、そのオフセット位置
(格納アドレス)を登録する(ステップA8)。
[0065] The step A4, if it is determined to be registered refers to the cache management table 2A (2B) cache management information stored in the address corresponding to the retrieval code (Step A 6), It is determined whether or not the search code of the requested character pattern and the search code generated from the letter address in the cache management information referred to in the cache management table 2A (2B) are the same (step A7). If they are not equal to each other, the character pattern is expanded into outline characters, the cache management information is registered at the offset position indicated by the registration number pointer 8A (8B), and the search code table 3A (3B), just as in step A5 described above. The offset position (stored address) is registered in the address corresponding to the search code of () (step A8).

【0066】ステップA7により等しいと判定された場
合には、図9のフローチャートに移行し、依頼された文
字パターンの字母アドレスと、キャッシュ管理テーブル
2A(2B)にて参照されたキャッシュ管理情報におけ
る字母アドレスとが等しいか否かを判定し(ステップA
9)、等しい場合には、依頼された文字パターンの文字
サイズと、キャッシュ管理テーブル2A(2B)にて参
照されたキャッシュ管理情報における文字サイズとが等
しいか否かを判定する(ステップA10)。
If it is determined in step A7 that they are equal, the process proceeds to the flowchart of FIG. 9 and the character address of the requested character pattern and the character in the cache management information referenced in the cache management table 2A (2B). It is determined whether the address and the address are the same (step A
9) If they are equal, it is determined whether the character size of the requested character pattern is equal to the character size in the cache management information referenced in the cache management table 2A (2B) (step A10).

【0067】ステップA10においても、等しいと判定
された場合には、依頼された文字パターンと、キャッシ
ュ管理テーブル2A(2B)にて参照されたキャッシュ
管理情報に対応する文字パターンとは同じものであると
判断し、参照しているキャッシュ管理テーブル2A(2
B)に設定されている展開先アドレスを指定して出力部
(印刷部)108に対して印刷依頼し(ステップA1
4)、指定された展開先アドレスに展開格納されている
文字パターン(ラスタパターン)を、文字展開キャッシ
ュテーブル1A(1B)から読み出して印刷を実行する
(ステップA15)。
If it is determined in step A10 that they are equal, the requested character pattern is the same as the character pattern corresponding to the cache management information referenced in the cache management table 2A (2B). Cache management table 2A (2
The output destination (printing unit) 108 is requested to print by designating the expansion destination address set in B) (step A1).
4) The character pattern (raster pattern) expanded and stored at the specified expansion destination address is read from the character expansion cache table 1A (1B) and printing is executed (step A15).

【0068】一方、ステップA9もしくはステップA1
0において等しくないと判定された場合には、参照して
いるキャッシュ管理情報に設定されている次ポインタが
0以外かどうかを判定する(ステップA11)。0以外
であると判定された場合には、その次ポインタの指すキ
ャッシュ管理情報を参照し(ステップA12)、前述し
たステップA9,A10による判定を実行する。
On the other hand, step A9 or step A1
When it is determined that they are not equal in 0, it is determined whether or not the next pointer set in the referred cache management information is other than 0 (step A11). If it is determined to be other than 0, the cache management information pointed to by the next pointer is referred to (step A12), and the determination in steps A9 and A10 described above is executed.

【0069】ステップA11により0であると判定され
た場合には、図11により後述する手順により、その文
字パターンをアウトライン文字展開し、そのキャッシュ
管理情報を登録数ポインタ8A(8B)の示すオフセッ
ト位置に登録するが、この場合、検索コードテーブル3
A(3B)に対する登録は行なわず、最後に参照したキ
ャッシュ管理情報における次ポイントを、0から、新た
に登録したキャッシュ管理情報が登録される格納アドレ
スつまり登録数ポインタ8A(8B)の示すオフセット
位置に変更する(ステップA13)。
If it is determined to be 0 in step A11, the character pattern is expanded into outline characters and the cache management information is set to the offset position indicated by the registration number pointer 8A (8B) by the procedure described later with reference to FIG. , But in this case, search code table 3
A (3B) is not registered, and the next point in the last-referenced cache management information is set from 0 to the storage address at which the newly registered cache management information is registered, that is, the offset position indicated by the registration number pointer 8A (8B). (Step A13).

【0070】図8のステップA4もしくはA7において
NO判定となった場合には、前述したように図10に示
す処理が実行される。つまり、検索中の文字パターンに
ついての情報を検索コードテーブル3A(3B),キャ
ッシュ管理テーブル2A(2B)および文字展開キャッ
シュテーブル1A(2A)に登録してから、印刷処理を
行なうものである。
If NO is determined in step A4 or A7 in FIG. 8, the process shown in FIG. 10 is executed as described above. That is, the printing process is performed after the information about the character pattern being searched is registered in the search code table 3A (3B), the cache management table 2A (2B), and the character expansion cache table 1A (2A).

【0071】まず、検索コードテーブル3A(3B)の
検索コードに対応するアドレスに、新たにキャッシュ管
理情報(次ポインタは0)を登録するキャッシュ管理テ
ーブル2A(2B)の格納アドレス〔登録数ポインタ8
A(8B)の示すオフセット位置〕を設定する(ステッ
プA16)。そして、新たな文字パターンについてのキ
ャッシュ管理情報をキャッシュ管理テーブル2A(2
B)に登録・設定するとともに(ステップA17)、こ
の際に設定された文字展開キャッシュメモリ1A(1
B)の展開先アドレスに文字を展開し、文字パターン
(ラスタパターン)を生成する(ステップA18)。
First, the storage address of the cache management table 2A (2B) for newly registering cache management information (the next pointer is 0) at the address corresponding to the search code in the search code table 3A (3B) [registration number pointer 8
Offset position indicated by A (8B)] is set (step A16). Then, the cache management information about the new character pattern is stored in the cache management table 2A (2
B) is registered and set (step A17), and the character expansion cache memory 1A (1
A character is expanded at the expansion destination address of B) to generate a character pattern (raster pattern) (step A18).

【0072】この後、ステップA14,A15と同様
に、その展開先アドレスを指定して出力部(印刷部)1
08に対して印刷依頼し(ステップA14)、指定され
た展開先アドレスに展開格納されている文字パターン
(ラスタパターン)を、文字展開キャッシュテーブル1
A(1B)から読み出して印刷を実行する(ステップA
15)。
Thereafter, as in steps A14 and A15, the expansion destination address is designated and the output section (print section) 1
08 (step A14), the character pattern (raster pattern) expanded and stored at the specified expansion destination address is transferred to the character expansion cache table 1
Read from A (1B) and execute printing (step A
15).

【0073】また、図9のステップA11においてNO
判定となった場合には、前述したように図11に示す処
理が実行される。つまり、検索中の文字パターンについ
ての情報をキャッシュ管理テーブル2A(2B)および
文字展開キャッシュテーブル1A(2A)に登録してか
ら、印刷処理を行なうものである。まず、最後に参照し
たキャッシュ管理情報における次ポインを、0から、
新たに登録したキャッシュ管理情報が登録される格納ア
ドレスつまり登録数ポインタ8A(8B)の示すオフセ
ット位置に変更してから(ステップA21)、ステップ
A22〜A25による処理を実行する。ここで、各ステ
ップA22〜A25による処理は、図10におけるステ
ップ17〜A20による処理と全く同じであるので、そ
の説明は省略する。
In step A11 of FIG. 9, NO
When the determination is made, the processing shown in FIG. 11 is executed as described above. That is, the printing process is performed after the information about the character pattern being searched for is registered in the cache management table 2A (2B) and the character expansion cache table 1A (2A). First of all, the next pointer in the cache management information referred Finally, from 0,
After changing the storage address where the newly registered cache management information is registered, that is, the offset position indicated by the registration number pointer 8A (8B) (step A21), the processes of steps A22 to A25 are executed. Here, the processing in steps A22 to A25 is exactly the same as the processing in steps 17 to A20 in FIG. 10, and thus the description thereof will be omitted.

【0074】このように、本発明の第1実施例によれ
ば、アウトライン文字のパターンアドレスから一部を取
り出して検索キーとして用い、キャッシュ制御を行なう
ことにより、従来のパターンアドレス順に並べて管理す
るキャッシュ制御よりも高速に文字登録(キャッシュ登
録)を行なうことができ、効率の良い処理を実現するこ
とができる。
As described above, according to the first embodiment of the present invention, by extracting a part from the pattern address of the outline character and using it as a search key, cache control is performed, and the cache is arranged and managed in the conventional pattern address order. Character registration (cache registration) can be performed faster than control, and efficient processing can be realized.

【0075】一般に、アウトライン文字展開には時間が
かかるため、アウトライン文字展開時に行なうキャッシ
ュ登録が高速化することは、文字出力において効果が大
きく、プリンタ等の印刷装置やその他の表示装置の性能
向上に大きく寄与することになる。 (c)第2実施例の説明 図12は本発明の第2実施例としてのアウトライン文字
展開装置の要部構成を示すブロック図で、この図12に
示すように、本実施例でも、第1実施例と同様に、2組
の文字展開キャッシュテーブル1A,1Bと、2組のキ
ャッシュ管理テーブル2A,2Bとがそなえられてい
る。また、図中には図示しないが、第1実施例と同様の
2組の検索コードテーブル3A,3Bとがそなえられて
いる。
Generally, since outline character expansion takes time, speeding up the cache registration performed during outline character expansion has a great effect on character output and improves the performance of printing devices such as printers and other display devices. It will make a big contribution. (C) Description of Second Embodiment FIG. 12 is a block diagram showing the main configuration of an outline character expanding device as a second embodiment of the present invention. As shown in FIG. Similar to the embodiment, two sets of character expansion cache tables 1A and 1B and two sets of cache management tables 2A and 2B are provided. Although not shown in the figure, two sets of search code tables 3A and 3B similar to those of the first embodiment are provided.

【0076】そして、この第2実施例では、図12に示
すように、文字パターンキャッシュ制御部111に、切
替時専用バッファ4およびアウトライン文字展開最終フ
ラグ5がそなえられている。ここで、切替時専用バッフ
ァ4は、2組のキャッシュ管理テーブル2A,2Bにお
ける格納データがフルの状態になった場合に、新たなキ
ャッシュ管理情報を一時的に格納するものであり、アウ
トライン文字展開最終フラグ5は、2組の文字展開キャ
ッシュテーブル1A,1Bにおいて2組のキャッシュ管
理テーブル2A,2Bに格納されているキャッシュ管理
情報に対応する文字パターンが全て格納された場合に
“1”を設定されるものである。
In the second embodiment, as shown in FIG. 12, the character pattern cache control unit 111 is provided with the switching dedicated buffer 4 and the outline character expansion final flag 5. Here, the switching dedicated buffer 4 temporarily stores new cache management information when the stored data in the two sets of cache management tables 2A and 2B becomes full, and outline character expansion is performed. The final flag 5 is set to "1" when all the character patterns corresponding to the cache management information stored in the two sets of cache management tables 2A and 2B are stored in the two sets of character expansion cache tables 1A and 1B. It is what is done.

【0077】さて、図12に示すように、本実施例の全
体的なキャッシュ構成も、第1実施例と同様に、プライ
マリ・キャッシュとセカンダリ・キャッシュとがあり、
両方のキャッシュがフルになると、一方のキャッシュを
リセットする。具体的には、初めにプライマリ・キャッ
シュに登録し、プライマリ・キャッシュがフルになる
と、セカンダリ・キャッシュに登録し、セカンダリ・キ
ャッシュがフルになった時点で両方のキャッシュがフル
になり登録できなくなるので、次の文字を登録する時に
は、プライマリ・キャッシュをリセットし、改め登録す
る。その後、プライマリ・キャッシュがフルになった時
点でセカンダリ・キャッシュをリセットするというよう
に、両方のキャッシュがフルになった時点で次に使用す
るキャッシュをリセットし、登録しなおしている。な
お、キャッシュ管理テーブル2A,2Bがフルになった
こととしている。
Now, as shown in FIG. 12, the overall cache structure of this embodiment has a primary cache and a secondary cache as in the first embodiment.
When both caches are full, reset one cache. Specifically, when the primary cache is registered first, and then the primary cache becomes full, it is registered in the secondary cache, and when the secondary cache becomes full, both caches become full and cannot be registered. , When registering the next character, reset the primary cache and register again. After that, when the primary cache is full, the secondary cache is reset. When both caches are full, the cache to be used next is reset and re-registered. It is assumed that the cache management tables 2A and 2B are full.

【0078】次に、本実施例の動作を図12〜図20に
より説明する。まず、図12〜図15により、キャッシ
ュ管理テーブル2Bがフルになった状態から、キャッシ
ュ管理テーブル2Aへ切替を行なう手順について説明す
る。図12に示すように、キャッシュ管理テーブル2A
がフルの状態で、キャッシュ管理テーブル2Bにキャッ
シュ管理情報の登録が行なわれ、このキャッシュ管理テ
ーブル2Bもフルになったとする。このとき、文字展開
キャッシュテーブル1Bに展開・登録・格納される文字
パターンは、キャッシュ管理テーブル2Bに登録される
キャッシュ管理情報よりも遅れて行なわれている。
Next, the operation of this embodiment will be described with reference to FIGS. First, the procedure for switching from the cache management table 2B full to the cache management table 2A will be described with reference to FIGS. As shown in FIG. 12, the cache management table 2A
Suppose that the cache management information is registered in the cache management table 2B in a full state, the cache management table 2B also becomes full. At this time, the character pattern expanded / registered / stored in the character expansion cache table 1B is performed later than the cache management information registered in the cache management table 2B.

【0079】キャッシュ管理テーブル2Bがフルになっ
た時点で、図13に示すように、即座にキャッシュ管理
テーブル2Aのリセットは行なわず、実際にはこのキャ
ッシュ管理テーブル2Aに登録されるべき新たなキャッ
シュ管理情報は切替時専用バッファ4に登録する。そし
て、アウトライン文字展開最終フラグ5が設定されるま
で、新たなキャッシュ管理情報は切替時専用バッファ4
に一時的に登録・格納される。図14に示すように、文
字展開キャッシュテーブル1Bにおいて、キャッシュ管
理テーブル2Bに格納されているキャッシュ管理情報に
対応する文字パターンが全て格納されると、アウトライ
ン文字展開最終フラグ5に“1”が設定される。
When the cache management table 2B becomes full, as shown in FIG. 13, the cache management table 2A is not immediately reset, but a new cache to be registered in the cache management table 2A is actually used. The management information is registered in the dedicated buffer 4 at the time of switching. Then, until the outline character expansion final flag 5 is set, the new cache management information is stored in the switching dedicated buffer 4
Will be temporarily registered and stored in. As shown in FIG. 14, when all the character patterns corresponding to the cache management information stored in the cache management table 2B are stored in the character expansion cache table 1B, the outline character expansion final flag 5 is set to "1". To be done.

【0080】アウトライン文字展開最終フラグ5に
“1”が設定された時点で、図15に示すように、キャ
ッシュ管理テーブル2Aにおける格納データがリセット
される。なお、キャッシュ管理テーブル2Aをリセット
することにより、文字展開キャッシュテーブル1Aのデ
ータを読み出せなくなって、文字展開キャッシュテーブ
ル1Aもリセットされたことになる。そして、切替時専
用バッファ4に一時的に格納されているキャッシュ管理
情報をキャッシュ管理テーブル2Aにコピーしてから、
通常の登録処理が続行される。
When "1" is set in the outline character expansion final flag 5, the stored data in the cache management table 2A is reset, as shown in FIG. By resetting the cache management table 2A, the data of the character expansion cache table 1A cannot be read, and the character expansion cache table 1A is also reset. Then, after copying the cache management information temporarily stored in the switching dedicated buffer 4 to the cache management table 2A,
Normal registration processing continues.

【0081】例えば、図13に示す状態、つまり、テー
ブル切替動作中で文字展開キャッシュテーブル1Bでは
まだ最終の文字パターンが登録されておらず、切替時専
用バッファ4に新たなキャッシュ管理情報を登録してい
る状態で、イニシャライズド・コマンドを受信した場合
には、本実施例では、図16に示すように、切替先のキ
ャッシュ管理テーブル1Aをリセットしていない状態
で、キャッシュ管理テーブル2B内および切替時専用バ
ッファ4内の、アウトライン文字展開よりも先行してい
たキャッシュ管理情報のみがリセットされる。
For example, in the state shown in FIG. 13, that is, in the table switching operation, the final character pattern is not yet registered in the character expansion cache table 1B, and new cache management information is registered in the switching dedicated buffer 4. When the initialization command is received while the cache management table 2B is switched to another in the cache management table 2B in this embodiment, the cache management table 1A of the switching destination is not reset as shown in FIG. Only the cache management information that precedes the outline character expansion in the hour dedicated buffer 4 is reset.

【0082】従って、イニシャライズド・コマンド受信
時でもキャッシュ管理テーブル2Aのリセットが必要無
い場合には、通常のリセット後にキャッシュ管理テーブ
ル2Aを元の状態に保持することができ、従来のように
一時的にキャッシュヒット率を約1/2以下に低下させ
ることもなくなる。次に、図17〜図20により、本実
施例によるキャッシュ登録制御,イニシャライズド・コ
マンド受信時のイニシャライズ制御について説明する。
Therefore, if the cache management table 2A does not need to be reset even when the initialized command is received, the cache management table 2A can be held in the original state after the normal reset, and the cache management table 2A can be temporarily stored as in the conventional case. Moreover, the cache hit rate will not be reduced to less than about 1/2. Next, the cache registration control and the initialization control upon receiving the initialized command according to the present embodiment will be described with reference to FIGS.

【0083】図17は、IHPが実際に展開を終了して
いる領域が、次のキャッシュ(セカンダリ・キャッシ
ュ)に移動していない場合を示しており、ICPは、登
録しているキャッシュがセカンダリに移動した後、IH
Pの展開終了が追いつくまで、切替時専用バッファ4に
キャッシュ管理情報を登録する。また、図18は、IH
Pが実際に展開している領域が、次のキャッシュ(セカ
ンダリ・キャッシュ)に移動している場合を示してい
る。なお、IHPが実際に展開終了している領域が、次
のキャッシュ(セカンダリ・キャッシュ)に移動した時
点で、切替時専用バッファ4の内容をキャッシュ管理テ
ーブル2Bにコピーしている。
FIG. 17 shows a case where the area where the IHP has actually completed the expansion has not moved to the next cache (secondary cache). In the ICP, the registered cache becomes the secondary cache. After moving, IH
The cache management information is registered in the dedicated buffer 4 at the time of switching until the expansion of P is caught up. In addition, FIG.
This shows a case where the area actually expanded by P is moved to the next cache (secondary cache). Note that the contents of the switching dedicated buffer 4 are copied to the cache management table 2B at the time when the area where the IHP has actually been expanded is moved to the next cache (secondary cache).

【0084】図19はキャッシュ登録制御手順を説明す
るためのフローチャートであり、この図19に示すよう
に、展開したアウトライン文字をキャッシュに順次登録
し、キャッシュ管理情報を登録すべきキャッシュが次の
キャッシュへ移動した際には(ステップB1)、IHP
でのアウトライン文字展開の終了領域が次のキャッシュ
へ移動したか否か(即ち、アウトライン文字展開最終フ
ラグ5が設定されたか否か)を判定する(ステップB
2)。
FIG. 19 is a flow chart for explaining the cache registration control procedure. As shown in FIG. 19, the expanded outline characters are sequentially registered in the cache, and the cache in which the cache management information should be registered is the next cache. When moving to (step B1), IHP
It is determined whether or not the end area of the outline character expansion in (4) is moved to the next cache (that is, whether the outline character expansion final flag 5 is set) (step B).
2).

【0085】このとき、IHPでのアウトライン文字展
開の終了領域が次のキャッシュへ移動していない(アウ
トライン文字展開最終フラグ5が設定されていない)と
判定された場合には、図13や図17に示すように、キ
ャッシュ管理情報を切替時専用バッファ4に一時的に登
録する(ステップB3)。そして、IHPでのアウトラ
イン文字展開の終了領域が次のキャッシュへ移動した
(アウトライン文字展開最終フラグ5が設定された)と
判定された場合には、切替時専用バッファ4に一時的に
登録されたキャッシュ管理情報を制式のキャッシュ(移
動先のキャッシュ管理テーブル2Aもしくは2B)にコ
ピーし(ステップB4)、図15や図18に示すよう
に、続けて展開したアウトライン文字をそのキャッシュ
に登録する(ステップB5)。
At this time, if it is determined that the end area of the outline character expansion in IHP has not moved to the next cache (the outline character expansion final flag 5 is not set), then FIG. 13 or FIG. As shown in, the cache management information is temporarily registered in the switching dedicated buffer 4 (step B3). Then, when it is determined that the end area of the outline character expansion in the IHP has moved to the next cache (the outline character expansion final flag 5 is set), it is temporarily registered in the switching dedicated buffer 4. The cache management information is copied to the formal cache (the destination cache management table 2A or 2B) (step B4), and subsequently expanded outline characters are registered in the cache as shown in FIGS. 15 and 18. B5).

【0086】さて、初期化コマンド(イニシャライズド
・コマンド)を受信した場合には、実際のアウトライン
文字展開が行なわれている位置まで、キャッシュの状態
を戻す。このとき、本実施例では、上述のように、切替
時にキャッシュ管理情報を切替時専用バッファ4に登録
することにより、初期化コマンドを受信した時に移動先
のキャッシュを無意味に壊さずに済み、キャッシュヒッ
ト率(キャッシュ効率)を向上させることができる。
When the initialization command (initialized command) is received, the cache state is returned to the position where the actual outline character expansion is performed. At this time, in this embodiment, as described above, by registering the cache management information in the switching dedicated buffer 4 at the time of switching, it is not necessary to invalidate the cache of the moving destination when the initialization command is received, The cache hit rate (cache efficiency) can be improved.

【0087】図20はイニシャライズド・コマンド受信
時のイニシャライズ制御手順を説明するためのフローチ
ャートであり、この図20に示すように、初期化コマン
ドを受信すると、まず、IHPが実際に展開を終了して
いるポインタまで、ICPの登録ポインタを戻す(ステ
ップC1)。そして、キャッシュ管理テーブル2Aもし
くは2Bに登録された次ポインタが、IHPにより実際
に展開を終了しているポインタよりも大きいものを削除
する(ステップC2)。
FIG. 20 is a flow chart for explaining the initialization control procedure at the time of receiving the initialized command. As shown in FIG. 20, when the initialization command is received, the IHP actually finishes the expansion. The registration pointer of the ICP is returned to the existing pointer (step C1). Then, a pointer whose next pointer registered in the cache management table 2A or 2B is larger than the pointer whose expansion is actually completed by IHP is deleted (step C2).

【0088】そして、キャッシュ管理テーブル2Aもし
くは2Bに登録された展開先アドレスが、IHPにより
実際に展開を終了しているポインタよりも大きいものの
オフセットを求め(ステップC3)、キャッシュ検索テ
ーブル(図5の符号3A,3B参照)に登録されたキャ
ッシュ管理テーブル2Aもしくは2Bのオフセットが、
ステップC3により求めたオフセットよりも大きいもの
を削除して、初期化処理を終了している(ステップC
4)。
Then, an offset of the expansion destination address registered in the cache management table 2A or 2B is larger than the pointer that has actually completed the expansion by the IHP is calculated (step C3), and the cache search table (FIG. 5). The offset of the cache management table 2A or 2B registered in the reference numerals 3A and 3B) is
The initialization processing is completed by deleting the offset larger than the offset obtained in step C3 (step C).
4).

【0089】このように、本発明の第2実施例によれ
ば、2組のキャッシュ管理テーブル2A,2Bにおける
格納データがフルの状態になると、アウトライン文字展
開最終フラグ5が設定されるまで、新たなキャッシュ管
理情報を切替時専用バッファ4に一時的に格納し、アウ
トライン文字展開最終フラグ5の設定後に一方のキャッ
シュ管理テーブル2Aもしくは2Bにおける格納データ
をリセットし、切替時専用バッファ4内のキャッシュ管
理情報を一方のキャッシュ管理テーブル2Aもしくは2
Bにコピーしてから、通常の登録処理が続行されるの
で、イニシャライズド・コマンド受信時でもキャッシュ
管理テーブル2Aもしくは2Bのリセットが必要無い場
合には、キャッシュ管理テーブル2Aもしくは2Bを厳
密に保持でき、キャッシュヒット率の低下を防止できる
のである。
As described above, according to the second embodiment of the present invention, when the stored data in the two sets of cache management tables 2A and 2B becomes full, new data is added until the outline character expansion final flag 5 is set. Cache management information is temporarily stored in the dedicated buffer 4 at the time of switching, and the stored data in one of the cache management tables 2A or 2B is reset after setting the outline character expansion final flag 5, and the cache management in the dedicated buffer 4 at the time of switching is performed. One of the cache management tables 2A or 2
Since the normal registration processing is continued after copying to B, the cache management table 2A or 2B can be strictly maintained if the cache management table 2A or 2B does not need to be reset even when the initialized command is received. It is possible to prevent the cache hit rate from decreasing.

【0090】(d)第3実施例の説明 図21は本発明の第3実施例としてのアウトライン文字
展開装置の要部構成を示すブロック図で、この図21に
示すように、本実施例でも、第1実施例と同様に、2組
の文字展開キャッシュテーブル1A,1Bと、2組のキ
ャッシュ管理テーブル2A,2Bとがそなえられ、図中
には図示しないが、第1実施例と同様の2組の検索コー
ドテーブル3A,3Bとがそなえられている。
(D) Description of Third Embodiment FIG. 21 is a block diagram showing the essential structure of an outline character expanding device as a third embodiment of the present invention. As shown in FIG. Similarly to the first embodiment, two sets of character expansion cache tables 1A and 1B and two sets of cache management tables 2A and 2B are provided, and although not shown in the drawing, similar to the first embodiment. Two sets of search code tables 3A and 3B are provided.

【0091】そして、この第3実施例では、図21に示
すように、ホスト100からロギングされる字母データ
を格納する字母キャッシュ6を有する字母キャッシュ制
御部9が組み合わされ、この字母キャッシュ6に格納さ
れた字母データに基づいてアウトライン文字を展開する
ようになっている。ここで、本実施例では、図21に示
すように、字母キャッシュ制御部9と文字パターンキャ
ッシュ制御部111との間に、インターフェイス部7が
そなえられている。
In the third embodiment, as shown in FIG. 21, a character mother cache control unit 9 having a character character cache 6 for storing character character data logged from the host 100 is combined and stored in the character character cache 6. Outline characters are expanded based on the generated character data. Here, in the present embodiment, as shown in FIG. 21, the interface unit 7 is provided between the character mother cache control unit 9 and the character pattern cache control unit 111.

【0092】このインターフェイス部7は、ホスト10
0側から字母バッファ6における字母データの入替えが
行なわれた場合に、その旨を文字パターンキャッシュ制
御部111のキャッシュ管理テーブル2A,2Bおよび
文字展開キャッシュテーブル1A,1Bに通知するもの
である。従って、この第3実施例においては、ホスト1
00側から字母バッファ6における字母データの入替え
が行なわれた場合、例えば、字母キャッシュ6において
字母データが字母データに入れ替えられた際には、
まず、インターフェイス部7により、その入替えについ
ての情報が文字パターンキャッシュ制御部111のキャ
ッシュ管理テーブル2A,2Bおよび文字展開キャッシ
ュテーブル1A,1Bに通知される。
The interface unit 7 is provided by the host 10
When the character data in the character buffer 6 is exchanged from the 0 side, the fact is notified to the cache management tables 2A and 2B and the character expansion cache tables 1A and 1B of the character pattern cache control unit 111. Therefore, in this third embodiment, the host 1
When character data is replaced in the character buffer 6 from the 00 side, for example, when character data is replaced in the character cache 6 in the character cache 6,
First, the interface unit 7 notifies the replacement information to the cache management tables 2A and 2B and the character expansion cache tables 1A and 1B of the character pattern cache control unit 111.

【0093】これらのキャッシュ管理テーブル2A,2
Bおよび文字展開キャッシュテーブル1A,1Bに、入
替えを行なわれた当該字母データについて入替え前の字
母データのキャッシュ管理情報および文字パターンが
格納されている場合には、図22に示すように、キャッ
シュ管理テーブル2A,2Bおよび文字展開キャッシュ
テーブル1A,1Bにおけるキャッシュ管理情報および
文字パターンが削除され、新たに展開要求された文字を
キャッシュに登録する準備を行なう。
These cache management tables 2A, 2
B and the character expansion cache tables 1A and 1B store cache management information and character patterns of the character data before replacement for the character data that has been replaced, as shown in FIG. The cache management information and the character pattern in the tables 2A and 2B and the character expansion cache tables 1A and 1B are deleted, and the newly expanded character is prepared to be registered in the cache.

【0094】そして、図23に示すように、入替え後の
字母データからアウトライン文字展開して得られた文
字パターンが文字展開キャッシュテーブル1A,1Bに
格納されるとともに、その文字パターンについてのキャ
ッシュ管理情報がキャッシュ管理テーブル2A,2Bに
格納される。このように、本発明の第3実施例によれ
ば、ホスト100側から字母バッファ6における字母デ
ータの入れ替えが行なわれた場合には、その旨がインタ
ーフェイス部7によりキャッシュ管理テーブル2A,2
Bおよび文字展開キャッシュテーブル1A,1Bに通知
されるようになっており、字母キャッシュ6における字
母入替えが発生しても、これに対応した処理を施すこと
ができ、文字パターンの文字出力ミスを確実に防止する
ことができるのである。
Then, as shown in FIG. 23, the character pattern obtained by expanding the outline character from the replaced character data is stored in the character expansion cache tables 1A and 1B, and the cache management information about the character pattern is stored. Are stored in the cache management tables 2A and 2B. As described above, according to the third embodiment of the present invention, when the character data in the character buffer 6 is exchanged from the host 100 side, the interface unit 7 notifies the cache management tables 2A, 2 to that effect.
B and the character expansion cache tables 1A and 1B are notified, and even if the character replacement in the character cache 6 occurs, the corresponding processing can be performed and the character output error of the character pattern can be surely performed. It can be prevented.

【0095】[0095]

【発明の効果】以上詳述したように、本発明のアウトラ
イン文字展開装置(請求項1,2)によれば、アウトラ
イン文字の字母アドレスを加工して作成した検索コード
を用い、検索コードテーブルにおいて、キャッシュ管理
テーブル内にキャッシュ管理情報の格納アドレスを管理
することで、キャッシュ管理テーブル内にキャッシュ管
理情報を順番に登録することができ、従来の字母アドレ
ス順に並べて管理するキャッシュ制御よりもずっと高速
に文字登録を行なうことができ、効率の良い処理を実現
でき、印刷装置,表示装置の性能向上に大きく寄与する
効果がある。
As described above in detail, according to the outline character expanding device of the present invention (claims 1 and 2) , the search code created by processing the letter address of the outline character is used in the search code table. By managing the storage address of the cache management information in the cache management table, the cache management information can be registered in order in the cache management table, which is much faster than the conventional cache control in which the cache character management addresses are arranged in order. Character registration can be performed, efficient processing can be realized, and there is an effect that it greatly contributes to the performance improvement of the printing device and the display device.

【0096】また、本発明の別な態様のアウトライン文
字展開装置によれば、2組のキャッシュ管理テーブルに
おける格納データがフルの状態になると、アウトライン
文字展開最終フラグが設定されるまで、新たなキャッシ
ュ管理情報を切替時専用バッファに一時的に格納し、ア
ウトライン文字展開最終フラグ設定後に一方のキャッシ
ュ管理テーブルにおける格納データをリセットし、切替
時専用バッファ内のキャッシュ管理情報を一方のキャッ
シュ管理テーブルにコピーするようにしたので、イニシ
ャライズド・コマンド受信時でもキャッシュ管理テーブ
ル2Aもしくは2Bのリセットが必要無い場合には、キ
ャッシュ管理テーブルを厳密に保持でき、キャッシュヒ
ット率の低下を防止できる効果がある。
Further, according to the outline character expansion device of another aspect of the present invention, when the stored data in the two sets of cache management tables becomes full, a new cache character is added until the outline character expansion final flag is set. Temporarily stores the management information in the special buffer for switching, resets the data stored in one cache management table after setting the outline character expansion final flag, and copies the cache management information in the special buffer for switching to one cache management table As a result, if the cache management table 2A or 2B does not need to be reset even when the initialized command is received, the cache management table can be strictly maintained, and the cache hit rate can be prevented from lowering.

【0097】さらに、本発明の別な態様のアウトライン
文字展開装置によれば、ホスト側から字母バッファにお
ける字母データの入れ替えが行なわれた場合には、その
旨がインターフェイス部によりキャッシュ管理テーブル
および文字展開キャッシュテーブルに通知するように構
成したので、字母キャッシュにおける字母入替えが発生
しても、これに対応した処理を施すことができ、文字パ
ターンの文字出力ミスを確実に防止できる効果がある。
Further, according to the outline character expansion device of another aspect of the present invention, when the character data in the character buffer is exchanged from the host side, the interface unit informs the effect to that effect. Since the notification is made to the cache table, even if the character replacement in the character cache occurs, it is possible to perform a process corresponding to this, and it is possible to reliably prevent a character output error in the character pattern.

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

【図1】発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】発明の別な態様の原理ブロック図である。FIG. 2 is a principle block diagram of another aspect of the present invention.

【図3】発明の別な態様の原理ブロック図である。FIG. 3 is a principle block diagram of another embodiment of the present invention.

【図4】本発明を適用するシステムの構成例を示すブロ
ック図である。
FIG. 4 is a block diagram showing a configuration example of a system to which the present invention is applied.

【図5】本発明の第1実施例としてのアウトライン文字
展開装置の要部構成を示すブロック図である。
FIG. 5 is a block diagram showing a main configuration of an outline character expanding device as a first embodiment of the present invention.

【図6】第1実施例の検索コードについて説明するため
の図である。
FIG. 6 is a diagram for explaining a search code according to the first embodiment.

【図7】第1実施例の次ポインタの機能について説明す
るための図である。
FIG. 7 is a diagram for explaining a function of a next pointer according to the first embodiment.

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

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

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

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

【図12】本発明の第2実施例としてのアウトライン文
字展開装置の要部構成を示すブロック図である。
FIG. 12 is a block diagram showing a main configuration of an outline character expanding device as a second embodiment of the present invention.

【図13】第2実施例の動作を説明するためのブロック
図である。
FIG. 13 is a block diagram for explaining the operation of the second embodiment.

【図14】第2実施例の動作を説明するためのブロック
図である。
FIG. 14 is a block diagram for explaining the operation of the second embodiment.

【図15】第2実施例の動作を説明するためのブロック
図である。
FIG. 15 is a block diagram for explaining the operation of the second embodiment.

【図16】第2実施例の動作を説明するためのブロック
図である。
FIG. 16 is a block diagram for explaining the operation of the second embodiment.

【図17】第2実施例の動作を説明するための図であ
る。
FIG. 17 is a diagram for explaining the operation of the second embodiment.

【図18】第2実施例の動作を説明するための図であ
る。
FIG. 18 is a diagram for explaining the operation of the second embodiment.

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

【図20】第2実施例の動作を説明するためのフローチ
ャートである。
FIG. 20 is a flow chart for explaining the operation of the second embodiment.

【図21】本発明の第3実施例としてのアウトライン文
字展開装置の要部構成を示すブロック図である。
FIG. 21 is a block diagram showing a main configuration of an outline character expanding device as a third embodiment of the present invention.

【図22】第3実施例の動作を説明するためのブロック
図である。
FIG. 22 is a block diagram for explaining the operation of the third embodiment.

【図23】第3実施例の動作を説明するためのブロック
図である。
FIG. 23 is a block diagram for explaining the operation of the third embodiment.

【図24】(a)〜(c)は従来のキャッシュ管理テー
ブルにおけるキャッシュ管理情報の登録状態および登録
手順を説明するための図である。
FIGS. 24A to 24C are diagrams for explaining a registration state and a registration procedure of cache management information in a conventional cache management table.

【図25】従来のキャッシュ管理テーブルにおける登録
・リセット手順を説明するための図である。
FIG. 25 is a diagram for explaining a registration / reset procedure in a conventional cache management table.

【図26】従来のキャッシュ管理テーブルにおける登録
・リセット手順を説明するための図である。
FIG. 26 is a diagram illustrating a registration / reset procedure in a conventional cache management table.

【図27】従来のキャッシュ管理テーブルにおける登録
・リセット手順を説明するための図である。
FIG. 27 is a diagram for explaining a registration / reset procedure in a conventional cache management table.

【図28】従来のキャッシュ管理テーブルにおける登録
・リセット手順を説明するための図である。
FIG. 28 is a diagram for explaining a registration / reset procedure in a conventional cache management table.

【図29】従来の字母キャッシュにおける字母入替え時
の作用について説明するための図である。
[Fig. 29] Fig. 29 is a diagram for describing an operation when replacing a character in a conventional character cache.

【図30】従来の字母キャッシュにおける字母入替え時
の作用について説明するための図である。
[Fig. 30] Fig. 30 is a diagram for explaining an action when replacing a character in a conventional character cache.

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

1,1A,1B 文字展開キャッシュテーブル 2,2A,2B キャッシュ管理テーブル 3,3A,3B 検索コードテーブル 4 切替時専用バッファ 5 アウトライン文字展開最終フラグ 6 字母キャッシュ 7 インターフェイス部 8A,8B 登録数ポインタ 9 字母キャッシュ制御部 100 ホスト 101 チャネル部 102 データ解析部 103 装置制御部 104 オーダ発行部(ICP) 105 IHP 106 アウトライン文字展開部 107 描画部 108 出力部(印刷部) 109 コマンド解析部 110 文字処理部 111 キャッシュ制御部 112 キャッシュリセット部 1,1A, 1B Character expansion cache table 2, 2A, 2B cache management table 3,3A, 3B search code table 4 Dedicated buffer when switching 5 Outline character expansion final flag 6-character mother cash 7 Interface section 8A, 8B registered number pointer 9-character mother cache controller 100 hosts 101 channel 102 Data analysis unit 103 Device control unit 104 Order Placer (ICP) 105 IHP 106 Outline character expansion part 107 Drawing unit 108 Output Section (Printing Section) 109 Command parser 110 Character processing part 111 cache control unit 112 cache reset section

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−238965(JP,A) 特開 平3−48286(JP,A) 特開 平6−308932(JP,A) (58)調査した分野(Int.Cl.7,DB名) G09G 5/24 B41J 2/485 B41J 5/44 G06F 12/08 G06T 11/20 ─────────────────────────────────────────────────── ─── Continuation of front page (56) References JP-A-2-238965 (JP, A) JP-A-3-48286 (JP, A) JP-A-6-308932 (JP, A) (58) Field (Int.Cl. 7 , DB name) G09G 5/24 B41J 2/485 B41J 5/44 G06F 12/08 G06T 11/20

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 字母データからアウトライン文字を所定
文字サイズに応じて展開することにより得られた文字パ
ターンを格納する文字展開キャッシュテーブルと、 該文字展開キャッシュテーブルに格納された各文字パタ
ーンについての字母アドレスと文字サイズと該文字展開
キャッシュテーブルにおける展開先アドレスとを、キャ
ッシュ管理情報として、順次格納するキャッシュ管理テ
ーブルと、 該キャッシュ管理テーブルにおける各キャッシュ管理情
報の格納アドレスを、各キャッシュ管理情報がもつ字母
アドレスの一部を取り出して得られる検索用アドレスに
格納する検索コードテーブルとをそなえ、 ホストから所定文字サイズで文字パターンの出力依頼が
あった場合、 該検索コードテーブルにおいて、当該文字パターンの字
母アドレスの一部を取り出して得られる検索用アドレス
に格納されている格納アドレスを参照し、 該キャッシュ管理テーブルにおいて、該検索コードテー
ルから得られた当該格納アドレスに格納されているキ
ャッシュ管理情報の字母アドレスおよび文字サイズを参
照し、 該キャッシュ管理テーブルにて参照した字母アドレスお
よび文字サイズと、当該文字パターンの字母アドレスお
よび該所定文字サイズとがそれぞれ一致している場合、
当該キャッシュ管理情報の展開先アドレスを参照し、 該文字展開キャッシュテーブルの当該展開先アドレスに
格納された文字パターンを読出制御するように構成され
ことを特徴とする、アウトライン文字展開装置
And 1. A character development cache table storing character pattern obtained by developing depending from alphabet data outline character to a predetermined character size for each character pattern stored in said character development cache tables the alphabet address the character size and expansion destination address definitive in the character development cache tables of the cache management information, and cache management te <br/> over b le for sequentially storing, each cache definitive to the cache management table the storage address of the management information, includes a search code table for storing the search address which is obtained by taking out a part of the alphabet address with each cache management information, there is an output request of the character pattern in a predetermined character size from the host If, Oite to the search code tables, Jamo add of the character pattern Referring to storage address stored in the search for the address obtained by taking out a part of the less, Oite to the cache management table, in the search Kodote <br/> b le or we obtained the storage address Referring to Jamo address and the character size of the cache management information stored, and Jamo address and the character size and hand reference to the cache management table, and the Jamo address and the predetermined character size of the character pattern matches each If
Referring to expand address of the cache management information is configured to read control a character pattern stored in the deployment destination address of the character development cache tables
An outline character expansion device characterized by the above.
【請求項2】 前記検索用アドレスは同一であるが字母
アドレスの異なる文字パターンが該キャッシュ管理テー
ブルに登録されている場合に、該字母アドレスの異なる
文字パターンのアドレスを指定する次ポインタが、前記
キャッシュ管理情報として、該キャッシュ管理テーブル
に格納され 該キャッシュ管理テーブルにて参照した字母アドレスお
よび文字サイズと当該文字パターンの字母アドレスおよ
び該所定文字サイズとが一致していない場合、当該キャ
ッシュ管理情報の次ポインタを参照しながら、該次ポイ
ンタが0になるまでに該キャッシュ管理テーブルにて参
照した字母アドレスおよび文字サイズと当該文字パター
ンの字母アドレスおよび該所定文字サイズとがそれぞれ
一致するキャッシュ管理情報が存在するか否かを判断
し、 一致するキャッシュ管理情報が存在した場合、当該キャ
ッシュ管理情報の展開先アドレスを参照し、該文字展開
キャッシュテーブルの当該展開先アドレスに格納された
文字パターンを読出制御するように構成された ことを特
徴とする、請求項1記載のアウトライン文字展開装置。
2. When character patterns having the same search address but different character addresses are registered in the cache management table, a next pointer designating the address of the character pattern having different character addresses is as cache management information, stored in the cache management table, Jamo address your referred by the cache management table
And character size and character address of the character pattern and
And the specified character size do not match,
While referring to the next pointer of the cache management information,
The cache management table until the counter becomes 0.
Character address and character size that is compared with the character pattern
Character address and the predetermined character size
Determine whether there is matching cache management information
If the matching cache management information exists, the cache
See the expansion destination address of the cache management information and expand the character
Stored at the relevant expansion destination address in the cache table
The outline character expansion device according to claim 1, wherein the outline character expansion device is configured to read and control a character pattern .
JP28799193A 1993-11-17 1993-11-17 Outline character expansion device Expired - Fee Related JP3411350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28799193A JP3411350B2 (en) 1993-11-17 1993-11-17 Outline character expansion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28799193A JP3411350B2 (en) 1993-11-17 1993-11-17 Outline character expansion device

Publications (2)

Publication Number Publication Date
JPH07140959A JPH07140959A (en) 1995-06-02
JP3411350B2 true JP3411350B2 (en) 2003-05-26

Family

ID=17724389

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28799193A Expired - Fee Related JP3411350B2 (en) 1993-11-17 1993-11-17 Outline character expansion device

Country Status (1)

Country Link
JP (1) JP3411350B2 (en)

Also Published As

Publication number Publication date
JPH07140959A (en) 1995-06-02

Similar Documents

Publication Publication Date Title
JP3832978B2 (en) Print control apparatus and print control method
US20030191790A1 (en) Method and apparatus for communicating font registration information
JP3814324B2 (en) Print control apparatus and print control method
JP2866153B2 (en) Character processing apparatus and method
JP3411350B2 (en) Outline character expansion device
JPH02165353A (en) Conversation type data processing system
JP3209910B2 (en) Print control device and print control method
JPH0744428A (en) Processing method for external storage device
JP3387796B2 (en) Print control device and data processing method of print control device
JPH1044533A (en) Font cache
JPH08185507A (en) Document processor with filing function
JPH11110264A (en) Information processing device and method
JP3616675B2 (en) Character drawing system
JP3213202B2 (en) Output device and line drawing processing method of output device
JPH11110276A (en) File retrieval method and information processor
JPH02241267A (en) Picture information processor
JPH0619652A (en) Memory controller for printing
JPH05313651A (en) Image supply device
JP2004145529A (en) Disclosure document masking section managing method and its executing device and its processing program
JPH0532766B2 (en)
JPH08216454A (en) Printer and character processing method in printer
JPH03136465A (en) Picture forming device
JPH0419791A (en) Information processor equipped with character pattern generating function using outline font
JPH0465264A (en) Printer and its cache control method
JPH06348700A (en) Format setting information management method

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030304

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

Free format text: PAYMENT UNTIL: 20080320

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090320

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100320

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees