JPH0573024A - Cach system of font pattern - Google Patents
Cach system of font patternInfo
- Publication number
- JPH0573024A JPH0573024A JP3238212A JP23821291A JPH0573024A JP H0573024 A JPH0573024 A JP H0573024A JP 3238212 A JP3238212 A JP 3238212A JP 23821291 A JP23821291 A JP 23821291A JP H0573024 A JPH0573024 A JP H0573024A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- cached
- pattern data
- font
- storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はフォントのパターンをキ
ャッシュし、このパターンを記録紙への記録もしくは表
示画面への表示等、情報の表示化のために利用するフォ
ントパターンのキャッシュ方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a font pattern cache system which caches a font pattern and uses it for displaying information such as recording on a recording paper or displaying on a display screen.
【0002】[0002]
【従来の技術】周知のように、プリンタ装置、表示装置
等においては、フォント、つまり文字、記号等を示す各
パターンを補助記憶装置に記憶しておき、必要なパター
ンを補助記憶装置から逐一取り出して、取り出したパタ
ーンを記録紙に記録したり、表示画面に表示するように
している。2. Description of the Related Art As is well known, in printers, display devices, etc., patterns indicating fonts, that is, characters, symbols, etc. are stored in an auxiliary storage device, and necessary patterns are taken out from the auxiliary storage device one by one. Then, the taken out pattern is recorded on a recording paper or displayed on a display screen.
【0003】ところが、漢字、ひらがな、記号等の多数
のパターンを補助記憶装置に記憶している場合、必要な
パターンを検索して取り出すまでには時間を要すること
となる。However, when a large number of patterns such as kanji, hiragana, and symbols are stored in the auxiliary storage device, it takes time to search for and retrieve the required pattern.
【0004】このため、一度検索して利用したパターン
を再び利用する確率が高いことに着目し、検索されたパ
ターンをバッファメモリにキャッシュして、そのパター
ンを再び利用するときにはバッファメモリから検索する
ようにし、もって検索効率を向上させるという技術が提
案されている(特開昭61−190382号公報を参
照)。Therefore, paying attention to the high probability of reusing a pattern that has been searched and used once, the searched pattern is cached in the buffer memory, and when the pattern is reused, the pattern is searched from the buffer memory. Therefore, there has been proposed a technique for improving the search efficiency (see Japanese Patent Laid-Open No. 61-190382).
【0005】しかしながら、ここではバッファメモリが
一杯になったときに使用頻度の低いパターンを消去して
新たなパターンをキャッシュするようにしているが、使
用頻度の低いパターンを消去してしまうことは必ずしも
得策ではない。例えば、ひらがな、数字等は一旦検索し
てキャッシュしたならば、消去せずに保存しておいた方
が好ましく、この点において何等考慮されていなかっ
た。However, although the pattern used infrequently is erased and a new pattern is cached when the buffer memory is full, the pattern used infrequently is not always erased. Not a good idea. For example, if hiragana, numbers, etc. are once retrieved and cached, it is preferable to save them without deleting them, and no consideration was given to this point.
【0006】[0006]
【発明が解決しようとする課題】このように従来ではパ
ターンをバッファメモリにキャッシュして、そのパター
ンを再び利用するときにはバッファメモリから検索する
ようにし、もって検索効率を向上させるようにしている
ものの、バッファメモリが一杯になったときには使用頻
度の低いパターンを消去して新たなパターンをキャッシ
ュするようにしていたので、一旦検索してキャッシュし
たならば、使用頻度が低くても消去せずに保存しておい
た方が好ましいパターンをも消去してしまうという欠点
があった。そこで、本発明は一旦キャッシュされたパタ
ーンであって、保存しておいた方が好ましいパターンを
消去せずに残すことが可能なフォントパターンのキャッ
シュ方式を提供することを目的とする。As described above, in the prior art, the pattern is cached in the buffer memory, and when the pattern is reused, the pattern is searched from the buffer memory to improve the search efficiency. When the buffer memory became full, patterns that were not used frequently were erased and new patterns were cached, so once you search and cache, save them without erasing even if you use them infrequently. There is a drawback in that even if it is better to keep it, the pattern which is preferable is erased. Therefore, it is an object of the present invention to provide a font pattern cache method in which a pattern that has been cached once and is preferably stored can be left without being erased.
【0007】[0007]
【課題を解決するための手段】本発明では、複数のパタ
ーンをキャッシュし、記憶容量が一杯になったときには
既にキャッシュされているパターンを消去して新たなパ
ターンをキャッシュする第1の記憶手段と、予め指定さ
れている複数のパターンをキャッシュする第2の記憶手
段とを設けておき、制御手段はキャッシュすべきパター
ンが前記予め指定されている各パターンに含まれている
か否かを判定し、含まれていないと判定された場合は前
記キャッシュすべきパターンを前記第1の記憶手段に記
憶し、含まれていると判定された場合は前記キャッシュ
すべきパターンを前記第2の記憶手段に記憶するように
している。According to the present invention, there is provided a first storage means for caching a plurality of patterns, erasing a pattern already cached when a storage capacity is full, and caching a new pattern. , A second storage means for caching a plurality of predesignated patterns is provided, and the control means determines whether or not a pattern to be cached is included in each of the predesignated patterns, If it is determined that they are not included, the pattern to be cached is stored in the first storage means, and if it is determined that they are included, the pattern to be cached is stored in the second storage means. I am trying to do it.
【0008】[0008]
【作用】本発明によれば、制御手段はキャッシュすべき
パターンが予め指定されたものか否かを判定し、予め指
定されたものでなければ、該パターンを第1の記憶手段
に記憶し、また予め指定されたものであれば、該パター
ンを第2の記憶手段に記憶する。したがって、第2の記
憶手段には予め指定された各パターンのみがキャッシュ
され、ここにキャッシュされたパターンは新たなパター
ンのキャッシュのために消去されるようなことがない。
一方、第1の記憶手段には予め指定された各パターンを
除く他の各パターンがキャッシュされ、ここにキャッシ
ュされたパターンは新たなパターンのキャッシュのため
に消去されることがある。このため、例えばひらがな、
数字等の各パターンを第2の記憶手段にキャッシュすべ
きものとして予め指定しておけば、これらのパターンは
第2の記憶手段にキャッシュされた後に、その使用頻度
にかかわらず消去されることがない。According to the present invention, the control means determines whether or not a pattern to be cached is a predesignated pattern, and if it is not a predesignated pattern, the pattern is stored in the first storage means, If the pattern is specified in advance, the pattern is stored in the second storage means. Therefore, only the patterns designated in advance are cached in the second storage means, and the patterns cached here are not erased for the cache of new patterns.
On the other hand, the first storage means caches each pattern other than the predesignated patterns, and the cached pattern may be erased to cache a new pattern. Therefore, for example, hiragana,
If patterns such as numbers are designated in advance as those to be cached in the second storage means, these patterns will not be erased after being cached in the second storage means regardless of the frequency of use. ..
【0009】[0009]
【実施例】以下、本発明の実施例を添付図面を参照して
詳細に説明する。Embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
【0010】第1図は本発明に係わるキャッシュ方式の
一実施例を適用したプリント制御装置を示すブロック図
である。同図において、補助記憶部1は大容量のメモリ
であって、ここには各種の書体毎に複数のパターンデー
タが記憶されている。つまり、フォントF1 ,フォント
F2 ,…,フォントFn というそれぞれの書体毎に、複
数のパターンが記憶されている。また、これらのパター
ンデータは該各パターンデータを示すぞれぞれのキャラ
クタコードに対応して記憶されている。このため、フォ
ントおよびキャラクタコードを指定すれば、指定された
フォントの領域から指定されたキャラクタコードに対応
するパターンデータを検索することができる。FIG. 1 is a block diagram showing a print controller to which an embodiment of a cache system according to the present invention is applied. In the figure, the auxiliary storage unit 1 is a large-capacity memory in which a plurality of pattern data is stored for each typeface. That is, a plurality of patterns are stored for each typeface of font F1, font F2, ..., Font Fn. Further, these pattern data are stored corresponding to the respective character codes indicating the respective pattern data. Therefore, if the font and character code are designated, the pattern data corresponding to the designated character code can be searched from the designated font area.
【0011】バッファメモリ2は補助記憶部1からのパ
ターンデータをキャッシュするためのものであり、パタ
ーンデータをキャッシュするための記憶領域として第1
の記憶領域3と、第2の記憶領域4とを備える。第1の
記憶領域3は第2の記憶領域4にキャッシュされうる各
パターンデータを除く他の各パターンデータをキャッシ
ュするためのものであり、記憶容量が一杯になるまでキ
ャッシュした後に新たなパターンデータをキャッシュす
るときには、既に記憶されている各パターンデータのう
ちの最初にキャッシュされたパターンデータを消去し
て、新たなパターンデータをキャッシュする。第2の記
憶領域4は予め指定された各パターンデータのみをキャ
ッシュし、これらのパターンデータは例えばひらがな、
数字等を示すものである。The buffer memory 2 serves to cache the pattern data from the auxiliary storage unit 1 and serves as a storage area for caching the pattern data.
Storage area 3 and a second storage area 4. The first storage area 3 is for caching each pattern data other than each pattern data that can be cached in the second storage area 4, and after caching until the storage capacity becomes full, new pattern data is stored. When cached, the first cached pattern data among the already stored pattern data is erased, and new pattern data is cached. The second storage area 4 caches only each pattern data designated in advance, and these pattern data are, for example, hiragana,
It indicates numbers and the like.
【0012】第2の記憶領域4は第2図に示すように各
フォントF1 ,F2 ,…,Fn に対応するそれぞれの列
4−1,4−2,…,4−nに区分され、これらの列4
−1,4−2,…,4−nには各フォントF1 ,F2 ,
…,Fn に属するそれぞれのパターンデータがキャッシ
ュされる。これらの列4−1,4−2,…,4−nは第
3図に示すように構成されており、先頭にフォントの種
類を示すフォントデータ41を配列し、引き続いて各キ
ャラクタコード42−1,42−2,…,42−nを上
側に配列するとともに、各パターンデータ領域43−
1,43−2,…,43−nを下側に配列してなる。各
パターン領域43−1,43−2,…,43−nは上側
の各キャラクタコード42−1,42−2,…,42−
nにそれぞれ対応しており、1つのパターン領域には上
側のキャラクタコードによって示されるパターンデータ
がキャッシュされる。このパターン領域にキャッシュさ
れるパターンデータは第4図に示すようにプリント情報
44と、ビットマップ情報45とからなり、ビットマッ
プ情報45はビットマップにおけるパターンを示し、プ
リント情報44は該パターンを記録紙上に記録するとき
の位置を示すものである。The second storage area 4 is divided into respective columns 4-1, 4-2, ..., 4-n corresponding to the respective fonts F1, F2, ..., Fn as shown in FIG. Row 4
-1, 4-2, ..., 4-n have fonts F1, F2,
The pattern data belonging to Fn are cached. These columns 4-1, 4-2, ..., 4-n are constructed as shown in FIG. 3, font data 41 indicating the type of font is arranged at the beginning, and subsequently each character code 42- , 42-n are arranged on the upper side, and each pattern data area 43-
, 43-n are arranged on the lower side. The pattern areas 43-1, 43-2, ..., 43-n are the upper character codes 42-1, 42-2 ,.
Each pattern area corresponds to n, and the pattern data indicated by the upper character code is cached in one pattern area. As shown in FIG. 4, the pattern data cached in this pattern area is composed of print information 44 and bitmap information 45. The bitmap information 45 indicates a pattern in the bitmap, and the print information 44 records the pattern. It shows the position when recording on paper.
【0013】したがって、例えば第2の記憶領域4にお
ける列4−1にはフォントF1 に属する各パターンデー
タがキャッシュされるのであって、この列の上側に配列
されている各キャラクタコードによって示されるそれぞ
れのパターンデータ、つまりそれぞれのパターンが各パ
ターン領域にキャッシュされる。Therefore, for example, in the column 4-1 in the second storage area 4, each pattern data belonging to the font F1 is cached, and each pattern data indicated by each character code arranged above this column is cached. Pattern data, that is, each pattern is cached in each pattern area.
【0014】さらに、各列4−1,4−2,…,4−n
において、1番目に配列されているそれぞれのキャラク
タコード42−1は同一であり、2番目に配列されてい
るそれぞれのキャラクタコード42−2は同一であり、
n番目に配列されているそれぞれのキャラクタコード4
2−nは同一である。したがって、各列4−1,4−
2,…,4−nにおいて、1番目にキャッシュされうる
それぞれのパターンは相互に書体が異なるものの同一の
意味を持ち、2番目にキャッシュされうるそれぞれのパ
ターンは相互に書体が異なるものの同一の意味を持ち、
n番目にキャッシュされうるそれぞれのパターンは相互
に書体が異なるものの同一の意味を持つ。なお、第1の
記憶領域3においても、各フォント毎に、それぞれのパ
ターンデータを第3図に示す態様で記憶しているが、こ
れらのフォント毎の領域は第2の記憶領域4のように予
め区分されたものでなくて、随時変更されるものであ
り、またキャラクタコードは予め登録されているもので
なく、登録を指示されたときにパターンデータと共に登
録され、消去を指示されたときにパターンデータと共に
消去される。Further, each column 4-1, 4-2, ..., 4-n
In the above, the respective character codes 42-1 arranged first are the same, the respective character codes 42-2 arranged second are the same,
Each character code 4 arranged in the nth
2-n are the same. Therefore, each column 4-1 and 4-
In 2, ..., 4-n, each pattern that can be cached first has the same meaning although the fonts are different from each other, and each pattern that can be cached second has the same meaning even if the fonts are different from each other. Have a
Each pattern that can be cached in the nth has a different typeface but has the same meaning. The first storage area 3 also stores the pattern data for each font in the manner shown in FIG. 3, but the area for each font is the same as the second storage area 4. It is not divided in advance and is changed at any time, and the character code is not registered in advance, but is registered together with the pattern data when instructed to register, and when instructed to erase. It is erased together with the pattern data.
【0015】キャッシュ制御部5は指定されたキャラク
タコードによって示されるパターンデータを補助記憶部
1およびバッファメモリ2から検索して、このパターン
データをプリント装置(図示せず)に送出したり、補助
記憶部1から検索されたパターンデータをバッファメモ
リ2にキャッシュするためのものである。このキャッシ
ュ制御部5はコード判定部6と、フォント設定部7とを
備えている。フォント設定部7は各フォントF1 ,F2
,…,Fn のうちのいずれかのフォントを内示するた
めのものであり、そのフォントはパターンデータのキャ
ッシュに先立って予め指定されたものである。コード判
定部6は第2の記憶領域4内の各キャラクタコード42
−1,42−2,…,42−nが登録されたテーブルを
内蔵しており、キャラクタコードを指定されると、この
キャラクタコードを該テーブル内の各キャラクタコード
と照合し、一致するキャラクタコードが有るか否かを判
定するためのものである。The cache control unit 5 retrieves the pattern data indicated by the designated character code from the auxiliary storage unit 1 and the buffer memory 2 and sends the pattern data to a printing device (not shown) or the auxiliary storage unit. The pattern data retrieved from the unit 1 is cached in the buffer memory 2. The cache control unit 5 includes a code determination unit 6 and a font setting unit 7. The font setting unit 7 is for each font F1, F2
, Fn, which is designated in advance prior to the cache of the pattern data. The code determination unit 6 determines each character code 42 in the second storage area 4.
-1, 42-2, ..., 42-n is built in, and when a character code is designated, this character code is collated with each character code in the table, and the matching character code It is for determining whether or not there is.
【0016】さて、このような構成において、キャッシ
ュ制御部5はキャラクタコードを指定されると、このキ
ャラクタコードによって示されるパターンデータを検索
してプリント装置へと送出する。このための処理手順を
第5図に示すフローチャートに従って述べる。なお、こ
こではフォント設定部7内にフォントF1 が予め設定さ
れているものとする。With such a configuration, when the character code is designated, the cache control unit 5 retrieves the pattern data indicated by the character code and sends it to the printing apparatus. The processing procedure for this will be described according to the flowchart shown in FIG. Here, it is assumed that the font F1 is preset in the font setting section 7.
【0017】まず、キャッシュ制御部5はキャラクタコ
ードを指定されると(ステップ101)、このキャラク
タコードをコード判定部6に与える。コード判定部6は
与えられたキャラクタコードと、内蔵のテーブルに登録
されている各キャラクタコードとを照合し、与えられた
キャラクタコードが該テーブル内の各キャラクタコード
42−1,42−2,…,42−nのうちのいずれかに
一致するか否かを判定する(ステップ102)。First, when the character code is designated (step 101), the cache control section 5 gives this character code to the code judging section 6. The code determination unit 6 compares the given character code with each character code registered in the built-in table, and the given character code is used as each character code 42-1, 42-2, ... In the table. , 42-n, is determined (step 102).
【0018】ここで、与えられたキャラクタコードが該
テーブル内の各キャラクタコードのうちのいずれにも一
致しなければ(ステップ102,NO)、キャッシュ制御
部5はバッファメモリ2における第1の記憶領域3を検
索し、与えられたキャラクタコードによって示されるパ
ターンデータであって、フォント設定部7内のフォント
F1 に属するパターンデータが第1の記憶領域3内に既
にキャッシュされているか否かを判定する(ステップ1
03)。そして、該当するパターンデータが第1の記憶
領域3内にキャッシュされていなければ(ステップ10
3,NO)、キャッシュ制御部5は補助記憶部1における
フォントF1 の領域から、与えられたキャラクタコード
に対応するパターンデータを読出し、このパターンデー
タを第1の記憶領域3にキャッシュするとともに、この
パターンデータをプリント装置へと送出する(ステップ
105)。なお、与えられたキャラクタコードによって
示されるパターンデータを第1の記憶領域3にキャッシ
ュするに際し、第1の記憶領域3が一杯で、新たなパタ
ーンデータをキャッシュする余地がなければ、第1の記
憶領域3内の既存の各パターンデータのうちの最初にキ
ャッシュされたパターンデータを消去して、該キャラク
タコードによって示されるパターンデータをキャッシュ
する。If the given character code does not match any of the character codes in the table (step 102, NO), the cache control unit 5 determines that the first storage area in the buffer memory 2 has been reached. 3 is searched to determine whether the pattern data indicated by the given character code and belonging to the font F1 in the font setting section 7 is already cached in the first storage area 3. (Step 1
03). Then, if the corresponding pattern data is not cached in the first storage area 3 (step 10)
3, NO), the cache control unit 5 reads the pattern data corresponding to the given character code from the area of the font F1 in the auxiliary storage unit 1, caches this pattern data in the first storage region 3, and The pattern data is sent to the printing device (step 105). When the pattern data indicated by the given character code is cached in the first storage area 3, if the first storage area 3 is full and there is no room to cache new pattern data, the first storage area The first cached pattern data of the existing pattern data in the area 3 is erased, and the pattern data indicated by the character code is cached.
【0019】また、該当するパターンデータが第1の記
憶領域3内に既にキャッシュされていれば(ステップ1
03,YES )、キャッシュ制御部5は該当するパターン
データを第1の記憶領域3から読出して、このパターン
データをプリント装置へと送出する(ステップ10
5)。If the corresponding pattern data is already cached in the first storage area 3 (step 1
03, YES), the cache controller 5 reads the corresponding pattern data from the first storage area 3 and sends this pattern data to the printing apparatus (step 10).
5).
【0020】一方、与えられたキャラクタコードが各キ
ャラクタコード42−1,42−2,…,42−nのう
ちのいずれかに一致すると判定されると(ステップ10
2,YES )、キャッシュ制御部5はバッファメモリ2に
おける第2の記憶領域4を検索し、与えられたキャラク
タコードによって示されるパターンデータであって、フ
ォント設定部7内のフォントF1 に属するパターンデー
タが第2の記憶領域4内に既にキャッシュされているか
否かを判定する(ステップ106)。つまり、与えられ
たキャラクタコードを第2の記憶領域4における第2図
に示したフォントF1 に対応する列4−1から検索し、
このキャラクタコードに対応するパターン領域にパター
ンデータが既にキャッシュされているか否かを判定す
る。ここで、該当するパターンデータが第2の記憶領域
4内にキャッシュされていなければ(ステップ106,
NO)、キャッシュ制御部5は補助記憶部1におけるフォ
ントF1 の領域から、与えられたキャラクタコードによ
って示されるパターンデータを読出し、このパターンデ
ータを第2の記憶領域4における列4−1の該キャラク
タコードに対応するパターン領域にキャッシュするとと
もに、このパターンデータをプリント装置へと送出する
(ステップ108)。On the other hand, when it is determined that the given character code matches any one of the character codes 42-1, 42-2, ..., 42-n (step 10).
2, YES), the cache control unit 5 searches the second storage area 4 in the buffer memory 2, and the pattern data indicated by the given character code is the pattern data belonging to the font F1 in the font setting unit 7. Is already cached in the second storage area 4 (step 106). That is, the given character code is searched from the column 4-1 corresponding to the font F1 shown in FIG. 2 in the second storage area 4,
It is determined whether the pattern data is already cached in the pattern area corresponding to this character code. Here, if the corresponding pattern data is not cached in the second storage area 4 (step 106,
NO), the cache control unit 5 reads the pattern data indicated by the given character code from the area of the font F1 in the auxiliary storage unit 1 and uses this pattern data in the character of column 4-1 in the second storage region 4. The pattern data is cached in the pattern area corresponding to the code and the pattern data is sent to the printing apparatus (step 108).
【0021】また、該当するパターンデータが第2の記
憶領域4内に既にキャッシュされていれば(ステップ1
06,YES )、キャッシュ制御部5は該当するパターン
データを第2の記憶領域4から読出して、このパターン
データをプリント装置へと送出する(ステップ10
8)。If the corresponding pattern data is already cached in the second storage area 4 (step 1
06, YES), the cache controller 5 reads the corresponding pattern data from the second storage area 4, and sends this pattern data to the printing device (step 10).
8).
【0022】このような処理はキャラクタコードが指定
される度に繰り返され、キャラクタコードによって示さ
れるパターンデータがプリント装置へと逐一送出され
る。プリント装置ではパターンデータを受け取る度に、
パターンデータに含まれるビット情報によって示される
パターンを記録紙に順次記録する。Such processing is repeated every time the character code is designated, and the pattern data indicated by the character code is sent out to the printing apparatus one by one. Every time the printing device receives pattern data,
The patterns indicated by the bit information included in the pattern data are sequentially recorded on the recording paper.
【0023】本実施例の装置では、指定されたキャラク
タコードによって示されるパターンデータを第1の記憶
領域3および第2の記憶領域4内で検索し、このパター
ンデータがキャッシュされていなければ、このパターン
データを補助記憶部1から読出して、第1の記憶領域3
および第2の記憶領域4のうちのいずれかにキャッシュ
する。第1の記憶領域内にキャッシュされたパターンデ
ータは引き続く他の各パターンデータのキャッシュの繰
り返しにより消去されうるが、第2の記憶領域4内に一
旦キャッシュされたパターンデータは予め指定されたも
のであって、消去されることはない。このため、第2の
記憶領域4内にキャッシュされる各パターンデータとし
て、ひらがな、数字等のパターンを示すそれぞれのパタ
ーンデータを指定しておけば、これらのパターンデータ
は第2の記憶領域4内に一旦キャッシュされると、補助
記憶部1から再度検索する必要がなくなり、第2の記憶
領域4から直ちに検索することができる。In the apparatus of this embodiment, the pattern data indicated by the designated character code is searched in the first storage area 3 and the second storage area 4, and if this pattern data is not cached, this pattern data is searched. The pattern data is read from the auxiliary storage unit 1 and the first storage area 3
And cache in any of the second storage areas 4. The pattern data cached in the first storage area can be erased by repeatedly repeating the cache of each of the other pattern data, but the pattern data once cached in the second storage area 4 is specified in advance. Yes, it will never be erased. Therefore, if pattern data indicating patterns such as hiragana and numbers are designated as the respective pattern data cached in the second storage area 4, these pattern data will be stored in the second storage area 4. Once cached, the auxiliary storage unit 1 does not need to be searched again, and the second storage area 4 can be searched immediately.
【0024】なお、上記実施例ではプリント装置へとパ
ターンを送出するためのプリント制御装置を例示してい
るが、これに限定されるものでなく、CRT等を備える
表示装置へとパターンを送出する場合にも、本発明を適
用しうる。Although the above embodiment exemplifies the print control device for sending the pattern to the printing device, the present invention is not limited to this, and the pattern is sent to the display device having a CRT or the like. In this case, the present invention can be applied.
【0025】[0025]
【発明の効果】以上説明したように本発明によれば、第
2の記憶手段には予め指定された各パターンのみがキャ
ッシュされ、ここにキャッシュされたパターンは新たな
パターンのキャッシュのために消去されるようなことが
なく、また第1の記憶手段には予め指定された各パター
ンを除く他の各パターンがキャッシュされ、ここにキャ
ッシュされたパターンは新たなパターンのキャッシュの
ために消去されることがある。このため、例えばひらが
な、数字等の各パターンを第2の記憶手段にキャッシュ
すべきものとして予め指定しておけば、これらのパター
ンは第2の記憶手段にキャッシュされた後に、その使用
頻度にかかわらず消去されることがない。すなわち、一
旦キャッシュされたパターンであって、保存しておいた
方が好ましいパターンを消去せずに残すことが可能なフ
ォントパターンのキャッシュ方式を提供することができ
る。As described above, according to the present invention, only the patterns designated in advance are cached in the second storage means, and the patterns cached here are erased to cache new patterns. Moreover, each pattern other than each pattern designated in advance is cached in the first storage means, and the pattern cached here is erased to cache a new pattern. Sometimes. Therefore, for example, if patterns such as hiragana and numbers are designated in advance as those to be cached in the second storage means, these patterns will be cached in the second storage means and thereafter, regardless of the frequency of use. It will never be erased. That is, it is possible to provide a font pattern cache method in which a pattern that has been cached once and is preferably stored can be left without being erased.
【図1】本発明に係わるキャッシュ方式の一実施例を適
用したプリント制御装置を示すブロック図。FIG. 1 is a block diagram showing a print control apparatus to which an embodiment of a cache system according to the present invention is applied.
【図2】第1図に示した実施例における第2の記憶領域
の記憶態様を示す図。FIG. 2 is a diagram showing a storage mode of a second storage area in the embodiment shown in FIG.
【図3】第2図に示した記憶態様の部分拡大図。3 is a partially enlarged view of the storage mode shown in FIG.
【図4】第3図に示した記憶態様の部分拡大図。FIG. 4 is a partially enlarged view of the storage mode shown in FIG.
【図5】第1図に示した実施例におけるパターンの検索
並びにキャッシュのための処理手順を示すフローチャー
ト。5 is a flowchart showing a processing procedure for pattern search and cache in the embodiment shown in FIG. 1. FIG.
1…補助記憶部、2…バッファメモリ、3…第1の記憶
領域、4…第2の記憶領域、5…キャッシュ制御部、6
…コード判定部、7…フォント設定部。1 ... Auxiliary storage unit, 2 ... Buffer memory, 3 ... First storage region, 4 ... Second storage region, 5 ... Cache control unit, 6
... code determination section, 7 ... font setting section.
Claims (1)
パターンを視覚化して表示に利用するフォントパターン
のキャッシュ方式において、 複数のパターンをキャッシュし、記憶容量が一杯になっ
たときには既にキャッシュされているパターンを消去し
て新たなパターンをキャッシュする第1の記憶手段と、 予め指定されている複数のパターンをキャッシュする第
2の記憶手段と、 キャッシュすべきパターンが前記予め指定されている各
パターンに含まれているか否かを判定し、含まれていな
いと判定された場合は前記キャッシュすべきパターンを
前記第1の記憶手段に記憶し、含まれていると判定され
た場合は前記キャッシュすべきパターンを前記第2の記
憶手段に記憶する制御手段とを備えたことを特徴とする
フォントパターンのキャッシュ方式。1. A font pattern cache method in which a font pattern is cached, and this pattern is visualized and used for display. A plurality of patterns are cached, and a pattern already cached when the storage capacity is full. And a second storage unit for caching a plurality of predesignated patterns, and a pattern to be cached is included in each of the predesignated patterns. It is determined whether or not it is included, and if it is determined that it is not included, the pattern to be cached is stored in the first storage means, and if it is determined that it is included, the pattern to be cached. And a control means for storing the font pattern in the second storage means. Gerhard system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3238212A JPH0573024A (en) | 1991-09-18 | 1991-09-18 | Cach system of font pattern |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3238212A JPH0573024A (en) | 1991-09-18 | 1991-09-18 | Cach system of font pattern |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0573024A true JPH0573024A (en) | 1993-03-26 |
Family
ID=17026817
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3238212A Pending JPH0573024A (en) | 1991-09-18 | 1991-09-18 | Cach system of font pattern |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0573024A (en) |
-
1991
- 1991-09-18 JP JP3238212A patent/JPH0573024A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0916149A (en) | Character processing device, character processing method, and memory | |
| JP3049158B2 (en) | Character processing device and character processing method of character processing device | |
| JPH05270093A (en) | Method and apparatus for processing image | |
| JPH06222747A (en) | Font compression device and font restoration device | |
| JP3232882B2 (en) | Serial printer, printer control device, and serial printer printing method | |
| JPH05224846A (en) | Printing and recording device | |
| JPH05314120A (en) | Cache memory | |
| JP3082504B2 (en) | Font cache system device | |
| JP3070883B2 (en) | Dot pattern plot output device | |
| JPH05238077A (en) | Controlling method of cache of printing apparatus | |
| JPH0469261A (en) | printer | |
| JP2988768B2 (en) | Media issuing device | |
| JPH08132703A (en) | Character output method and device | |
| JP3423113B2 (en) | Cache control device and character output device | |
| JPH0659830A (en) | Printer | |
| JPH06149217A (en) | Character processing method and apparatus thereof | |
| JPH03126992A (en) | Font controller | |
| JPH06227061A (en) | Font cache control method | |
| JPH08183208A (en) | Bitmap recording method and recording device | |
| JPH04112059A (en) | image recording device | |
| JPS63141779A (en) | printing device | |
| JPH0596811A (en) | Printing method | |
| JP2004042327A (en) | Control method of image forming apparatus | |
| JPH06183062A (en) | Character processing device | |
| JPH03129394A (en) | Document processor |