JPH04189164A - Character font management method - Google Patents
Character font management methodInfo
- Publication number
- JPH04189164A JPH04189164A JP2318952A JP31895290A JPH04189164A JP H04189164 A JPH04189164 A JP H04189164A JP 2318952 A JP2318952 A JP 2318952A JP 31895290 A JP31895290 A JP 31895290A JP H04189164 A JPH04189164 A JP H04189164A
- Authority
- JP
- Japan
- Prior art keywords
- font
- data
- character
- dot
- memory
- 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
- Dot-Matrix Printers And Others (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、プリンタ等に使用される文字フォントデータ
の管理方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a management system for character font data used in printers and the like.
[従来の技術]
従来は、例えば特開平1−115647号公報に見られ
るように、フォントキャッシュ内にフォントデータを管
理するフォント管理テーブルを設けているが、このフォ
ント管理テーブルはフォント単位に固定長、最大サイズ
の管理エリアを設けたものであった。[Prior Art] Conventionally, a font management table for managing font data is provided in a font cache, as seen in, for example, Japanese Unexamined Patent Publication No. 1-115647, but this font management table has a fixed length for each font. , which had the largest management area.
U発明が解決しようとする課題]
しかしこのようにフォント管理テーブルを固定長、最大
サイズで確保したのでは、例えば見出し文に使用する大
きなポイントサイズのフォントのように同一フォント内
で使用する文字数が少ない場合、フォント管理テーブル
として使用されるメモリに無駄が生じる問題があった。Problems to be Solved by the Invention] However, if the font management table is secured with a fixed length and maximum size in this way, the number of characters used in the same font, such as a large point size font used for a heading sentence, will increase. If the number of fonts is small, there is a problem in that the memory used as the font management table is wasted.
また最近では著作権表示記号、登録商標記号、ダイアク
ティカルマーク付きアルファベット等を文字フォントと
して扱う傾向にあり、このためフォント管理テーブルの
サイズが大きくなることから、従来方式ではフォント管
理テーブルとして使用されるメモリ量がかなり増加する
問題があった。In addition, there is a recent tendency to treat copyright symbols, registered trademark symbols, alphabets with diactive marks, etc. as character fonts, which increases the size of the font management table, so conventional methods do not use them as font management tables. There was a problem that the amount of memory used increased considerably.
そこで本発明は、フォント管理テーブルとして使用され
るメモリの使用効率を向上でき、従って必要とするメモ
リ量を極力少なくてきる文字フォント管理方式を提供し
ようとするものである。SUMMARY OF THE INVENTION Accordingly, the present invention aims to provide a character font management method that can improve the usage efficiency of memory used as a font management table, and thus minimize the amount of memory required.
また本発明は、さらにフォントデータの検索、登録、消
去の処理がスムーズに行える文字フォント管理方式を提
供しようとするものである。Further, the present invention aims to provide a character font management system that allows smooth processing of searching, registering, and deleting font data.
[課題を解決するための手段と作用]
請求項(1)対応の発明は、少なくともドツト形式のフ
ォントデータを格納するドツトデータメモリ、このメモ
リに格納されているフォントデータを管理するフォント
管理テーブルを設けたフォントキャッシュを備え、文字
の出力要求が発生するとキャッシュ制御テーブルを参照
してドツトデータメモリ内に該当するフォントが登録さ
れているか否かをチェックし、登録されていればフォン
ト管理テーブルを参照してドツトデータメモリから該当
するフォントデータを呼出して出力し、また登録されて
いなければその文字のドツト形式のフォントデータをド
ツトデータメモリに新規登録すると共にそのフォントデ
ータを管理する情報をフォント管理テーブルに登録し、
フォント管理テーブルはドツトデータメモリにフォント
データが登録される毎に拡張されることにある。[Means and effects for solving the problem] The invention corresponding to claim (1) includes at least a dot data memory that stores font data in dot format, and a font management table that manages the font data stored in this memory. It has a font cache, and when a character output request occurs, it refers to the cache control table to check whether the corresponding font is registered in the dot data memory, and if it is registered, refers to the font management table. The corresponding font data is called from the dot data memory and outputted, and if it is not registered, the dot format font data of that character is newly registered in the dot data memory, and the information for managing that font data is stored in the font management table. Register at
The font management table is expanded every time font data is registered in the dot data memory.
請求項(2)対応の発明は、少なくともドツト形式のフ
ォントデータを格納するドツトデータメモリ、このメモ
リに格納されているフォントデータを管理するフォント
管理テーブル、このフォント管理テーブルのアドレス指
定を行う文字コードハツシュテーブルを設けたフォント
キャッシュを備えるとともに文字使用頻度予測データテ
ーブルを備え、文字の出力要求が発生するとキャッシュ
制御テーブルを参照してドツトデータメモリ内に該当す
るフォントが登録されているか否かをチェックし、登録
されていれば文字コードハツシュテーブル及びフォント
管理テーブルを参照してドツトデータメモリから該当す
るフォントデータを呼出して出力し、また登録されてい
なければその文字のドツト形式のフォントデータをドツ
トデータメモリに新規登録すると共にそのフォントデー
タを管理する情報をフォント管理テーブルに登録し、フ
ォント管理テーブルはドツトデータメモリにフォントデ
ータが登録される毎に拡張され、かつ文字コードハツシ
ュテーブルは文字使用頻度予測デ−タテ−プルの文字使
用頻度予測データに基づいて大きさが決められることに
ある。The invention corresponding to claim (2) is a dot data memory that stores at least dot-format font data, a font management table that manages the font data stored in this memory, and a character code that specifies the address of this font management table. It is equipped with a font cache with a hash table and a character usage frequency prediction data table, and when a character output request occurs, it refers to the cache control table and checks whether or not the corresponding font is registered in the dot data memory. If the character is registered, the corresponding font data is retrieved from the dot data memory by referring to the character code hash table and the font management table and output, and if it is not registered, the dot format font data of the character is output. At the same time as new font data is registered in the dot data memory, information for managing the font data is registered in the font management table.The font management table is expanded every time font data is registered in the dot data memory, and the character code hash table is The size is determined based on character usage frequency prediction data of the usage frequency prediction data table.
請求項(3)対応の発明は、請求項(1)又は(2)記
載の文字フォント管理方式において、先ずデータを無効
とするマーキングを行い、続いて文字出力の行わない時
間もしくは時間帯にマーキングされた内容に基づいてメ
モリ開放を行うことによりフォントデータの消去を行う
ことにある。The invention corresponding to claim (3) is, in the character font management method described in claim (1) or (2), first marking the data as invalid, and then marking the time or time period when no characters are output. The purpose of this method is to erase font data by freeing memory based on the stored contents.
[実施例コ 以下、本発明の実施例を図面を参照して説明する。[Example code] Embodiments of the present invention will be described below with reference to the drawings.
第1図において1はフォントキャッシュ2に蓄えられて
いるドツト形式のフォントデータを管理するためのキャ
ッシュ制御テーブルで、例えば明朝体の12ポイントと
いう単位でルーコードが確保される。このキャッシュ制
御テーブル1にはキャッシュ制御Nα(番号)、同一フ
オンドリンクポインタ、フォントデータブロック開始ア
ドレス、空きエリア指示ポインタが格納されるようにな
っている。In FIG. 1, reference numeral 1 denotes a cache control table for managing dot-format font data stored in a font cache 2, in which roux codes are secured in units of, for example, 12 points of Mincho fonts. This cache control table 1 stores a cache control Nα (number), a same font link pointer, a font data block start address, and a free area designation pointer.
3はフォントデータの検索、登録及び消火時に、指定さ
れたフォントのキャッシュ制御テーブル1におけるキャ
ッシュ制御No、を記憶するためのキャッシュ制御No
、メモリである。3 is a cache control number for storing the cache control number in the cache control table 1 of the specified font when searching, registering, and extinguishing font data.
, is the memory.
4は文字コード制御テーブル、5は前記フォントキャッ
シュ2内に設けられた文字コートハッンユテーブルで、
これらはANK文字のように1ハイドて表現される文字
コード体系を用いた場合のフォントを管理するようにな
っている。4 is a character code control table; 5 is a character code table provided in the font cache 2;
These are designed to manage fonts when using a character code system such as ANK characters that is expressed as one hide.
前記文字コード制御テーブル4は1バイトコ一ド体系を
用いていることから256個の大きさであり、前記文字
コードハツシュテーブル5へのポインタを格納している
。The character code control table 4 has a size of 256 characters because a 1-byte code system is used, and stores pointers to the character code hash table 5.
前記文字コードハツシュテーブル5には前記フォントキ
ャッシュ2内に設けられたフォント管理テーブルを構成
するフォント管理リスト6a。The character code hash table 5 includes a font management list 6a that constitutes a font management table provided in the font cache 2.
6b、6cへのポインタか格納されている。この文字コ
ードハツシュテーブル5の大きさは、文字使用頻度予測
データテーブル7の予測データ値に、予め定められた計
算式を適用することにより求まる。本実施例では簡略化
し、文字使用頻度予測データの値を文字コードハツシュ
テーブル5の大きさとして定義している。Pointers to 6b and 6c are stored. The size of the character code hash table 5 is determined by applying a predetermined calculation formula to the predicted data values of the character usage frequency prediction data table 7. In this embodiment, for simplicity, the value of the character usage frequency prediction data is defined as the size of the character code hash table 5.
前記フォント管理リスト6a、6b、6cにはそれぞれ
ドツトデータポインタ、同一フオンドリンク、同一コー
ドリンク、キャッシュNo、が格納されている。The font management lists 6a, 6b, and 6c each store a dot data pointer, a same font link, a same code link, and a cache number.
また前記文字コードハツシュテーブル5内のどのレコー
ドを参照するかの判断は、文字使用頻度予測データテー
ブル7の予測データ値とキャッシュ制御Nαメモリ3の
キャッシュ制御No、に予め定められたハツシュ関数を
適用することにより求まる。Further, to determine which record in the character code hash table 5 is to be referred to, a predetermined hash function is used for the predicted data value of the character usage frequency prediction data table 7 and the cache control number of the cache control Nα memory 3. Determined by applying.
本実施例ではキャッシュ制御Nαを文字使用頻度予測デ
ータで除算した余りを前記文字フードハツシュテーブル
5のレコード位置として用いている。In this embodiment, the remainder obtained by dividing the cache control Nα by the character use frequency prediction data is used as the record position of the character food hash table 5.
文字使用頻度予測データは予め予想した各文字の出現頻
度から文字コードハツシュテーブル5の大きさを定め定
義しである。The character usage frequency prediction data is defined by determining the size of the character code hash table 5 based on the appearance frequency of each character predicted in advance.
8は第1文字コード管理テーブル、9は前記フォントキ
ャッシュ2内に設けられた第2文字コード管理テーブル
で、これらは全角文字のように2ハイドで表現される文
字コード体系を用いた場合のフォントを管理する。前記
第1文字コード管理テーブル8は文字コードの1バイト
目から参照されるテーブルであり、前記第2文字コード
管理テーブル9へのポインタか格納される。前記第2文
字コード管理テーブル9は文字コードの2ハイド目から
参照されるテーブルであり、前記フォント管理リスト6
a、6b、6cへのポインタが格納される。前記第1文
字コード管理テーブル8及び前記第2文字コード管理テ
ーブル9の大きさはJISコードを用いた場合94個で
間に合う。8 is a first character code management table; 9 is a second character code management table provided in the font cache 2; Manage. The first character code management table 8 is a table referenced from the first byte of the character code, and a pointer to the second character code management table 9 is stored. The second character code management table 9 is a table that is referenced from the second hide of the character code, and is a table that is referenced from the second hide of the character code.
Pointers to a, 6b, and 6c are stored. The first character code management table 8 and the second character code management table 9 can have a size of 94 when JIS codes are used.
10a、10bは前記フォントキャッシュ2内に設けら
れ、ドツト形式のフォントデータを格納するドツトデー
タメモリで、このメモリ]Oa。10a and 10b are dot data memories provided in the font cache 2 and storing font data in dot format; this memory Oa.
10bは前記キャッシュ制御テーブル1により管理され
、前記フォント管理リスト6a、6b。10b is managed by the cache control table 1, and is the font management list 6a, 6b.
6cのドツトデータポインタによりフォントデータのア
ドレス指定が行われるようになっている。The address of the font data is specified by the dot data pointer 6c.
前記フォントキャッシュ2における文字コードハツシュ
テーブル5、フォント管理リスト6a。Character code hash table 5 and font management list 6a in the font cache 2.
6 b 、 6 c s第2文字コード管理テーブル
9、ドツトデータメモリ10a、10bの各メモリは全
て動的に割り付けられている。゛
このような構成においてキャッシュ動作は主に検索、登
録、消去の処理に分けられる。6b, 6cs The second character code management table 9 and the dot data memories 10a and 10b are all dynamically allocated. ``In such a configuration, cache operations are mainly divided into search, registration, and deletion processing.
(a)検索処理
この処理は先ず出力要求されたフォントがキャッシュ制
御テーブル1に登録されているか否かを調べる。登録さ
れている場合はそのキャッシュ陽、をキャッシュ制御N
o、メモリ3に記憶する。また登録されていなければ検
索を終了する。(a) Search process In this process, it is first checked whether the font requested for output is registered in the cache control table 1 or not. If the cache is registered, the cache control N
o. Store in memory 3. Also, if it is not registered, the search ends.
次に文字コードによってフォントデータを検索するが、
ここで文字コードが1バイト体系か2バイト体系かによ
り処理が異なる。Next, search for font data by character code,
Here, processing differs depending on whether the character code is a 1-byte system or a 2-byte system.
1バイト文字コード体系の場合は、文字コードから文字
コード制御テーブル4を調べ文字コードハツシュテーブ
ル5へのポインタを求める。次に文字フード、文字使用
頻度予測データ、キャッシュ制御No、から文字コード
ハツシュテーブル5内のレコード位置を求め、フォント
管理リスト6a。In the case of a 1-byte character code system, the character code control table 4 is checked from the character code to obtain a pointer to the character code hash table 5. Next, the record position in the character code hash table 5 is determined from the character food, character usage frequency prediction data, and cache control number, and the font management list 6a is obtained.
6b、6cへのポインタを求める。ここで文字コード制
御テーブル4又は文字コードノ\ツシュテーブル5にポ
インタが登録されていなければ検索は終了する。Find pointers to 6b and 6c. Here, if the pointer is not registered in the character code control table 4 or the character code table 5, the search ends.
次にフォント管理リスト6a、6b、6cの同一コード
リンクを辿りながらフォント管理リスト6 a +
6 b 、6 c内のキャッシュho、とギヤ2.シユ
制御Nす、メモリ3のキャッシュ制御No、が同じ値を
持つフォントを検索し、見つかればそのフォントを出力
し、見つからなければ検索は終了する。ここでフォント
管理リスト6a、6b、6cの同一コードリンクを辿る
ときドツトデータポインタがNULLの値を持つ場合は
無効フォント管理リストと判断して無視し検索を続ける
。Next, follow the same code links in font management lists 6a, 6b, and 6c to create font management list 6 a +
cache ho in 6b, 6c, and gear 2. A search is made for a font having the same values as the cache control number of the memory 3, and if found, that font is output, and if not found, the search ends. Here, when tracing the same code link in the font management lists 6a, 6b, and 6c, if the dot data pointer has a NULL value, it is determined that the font management list is invalid and is ignored, and the search continues.
2バイト文字コード体系の場合は、出力要求された文字
コードの1バイト目から第1文字コード管理テーブル8
を調べ第2文字コード管理テーブル9へのポインタを求
める。次に文字コードの2バイト目から第2文字コード
管理テーブル9を調ベフォント管理リスト6g、6b、
6cへのポインタを求める。ここで第1文字コード管理
テーブル8又は第2文字コード管理テーブル9にポイン
タか登録されていなければ検索終了となる。In the case of a 2-byte character code system, the first character code management table 8 starts from the first byte of the character code requested to be output.
is checked to obtain a pointer to the second character code management table 9. Next, check the second character code management table 9 from the second byte of the character code. Font management list 6g, 6b,
Find a pointer to 6c. Here, if no pointer is registered in the first character code management table 8 or the second character code management table 9, the search ends.
これ以降の処理は1バイト文字コード体系の場合と同様
フォント管理リスト6a、6b、6cの同一コードリン
クを辿りながらフォント管理リス)6a、6b、6c内
のキャッシュNo、とキャッシュ制御No、メモリ3の
キャッシュ制御魔が同じ値を持つフォントを検索するこ
とになる。The subsequent processing is the same as in the case of the 1-byte character code system, while following the same code links in the font management lists 6a, 6b, and 6c. The cache controller will search for fonts with the same value.
(b)登録処理
先ず登録要求されたフォントがキャッシュ制御テーブル
1に登録されているか否かを調べる。登録されている場
合はそのキャッシュ磁をキャッシュ制御Nαメモリ3に
記憶する。(b) Registration Process First, it is checked whether the font requested for registration is registered in the cache control table 1 or not. If registered, the cache magnet is stored in the cache control Nα memory 3.
また登録されていなけれ゛ばキャッシュ制御テーブル1
にレコードを新たに作成しそのテーブル阻をキャッシュ
制御Nαメモリ3に記憶する。次にフォントキャッシュ
2にドツトフォントを蓄える領域としてドツトデータメ
モリl Q a 、 10 b sフォント管理リス
ト6a、6b、6c及び文字コードハツシュテーブル5
又は第2文字コード管理テーブル9を確保する。領域か
すてに割り付けられていればその領域を使用し、領域が
無ければ新たに領域を割り付ける。そしてキャッシュ制
御テーブル1並びに文字コード制御テーブル4又は第1
文字コード管理テーブル8を使用してフォント管理リス
ト6a、6b、6cの同一フォント並びに同一コードの
リンク【接続してキャッシュNo、にキャッシュ制御N
o、メモリ3の値を記憶しドツトデータメモリにドツト
フォントを格納する。If it is not registered, cache control table 1
A new record is created and its table contents are stored in the cache control Nα memory 3. Next, as an area for storing dot fonts in the font cache 2, dot data memory lQa, 10bs font management lists 6a, 6b, 6c and character code hash table 5 are used.
Alternatively, secure the second character code management table 9. If an area is already allocated, that area will be used; if there is no area, a new area will be allocated. and cache control table 1 and character code control table 4 or first
Using the character code management table 8, link the same fonts and the same codes in the font management lists 6a, 6b, and 6c [connect and cache No., and cache control No.
o. Store the value in memory 3 and store the dot font in the dot data memory.
(c)消去処理
消去処理はマーキングとガーベジコレクションからなる
。(c) Erasing processing Erasing processing consists of marking and garbage collection.
マーキングではドツトデータメモリ10a。For marking, dot data memory 10a.
10bのメモリ開放を行う。次に消去するフォントのキ
ャッシュ制御テーブル1から同一フオンドリンクポイン
タを求め、そのポインタが指し示すフォント管理リスト
6a、6b、6cから同一フオンドリンクを辿ってリン
クされている全てのフォント管理リストのドツトデータ
ポインタにNULLをセットする。さらにキャッシュ制
御テーブル1の該当レコードを未使用の状態に変更する
。10b's memory is released. Next, obtain the same font link pointer from the cache control table 1 of the font to be deleted, and trace the same font link from the font management lists 6a, 6b, and 6c pointed to by that pointer to obtain the dot data pointer of all linked font management lists. Set NULL to . Furthermore, the corresponding record in the cache control table 1 is changed to an unused state.
すなわち第2図の(a)に示す状態から第2図の(b)
に示す状態に変更させる。That is, from the state shown in FIG. 2(a) to FIG. 2(b)
Change the state to the one shown below.
ガーベジコレクションは文字出力を行っていない時間、
すなわちアイドルタイムを利用して行う。Garbage collection is performed during the time when no characters are being output.
In other words, this is done using idle time.
このガーベジコレクションでは先ず1バイト文字コード
体系の場合は文字コード制御テーブル4の先頭からポイ
ンタが登録されているがどぅがを調べる。登録されてい
るポインタがあればそのポインタが指し示す文字コード
ハツシュテーブル5に登録されているフォント管理リス
トの全てに対して同一コードリンクを辿りリンクされて
いる全てのフォント管理リストのドツトデータポインタ
の内容を調べNULLの値を持つものを発見したら同一
コードリンクから切り離しメモリの開放を行う。また文
字コードハツシュテーブルの全ての内容を調べた後に、
文字コードハツシュテーブルに登録ポインタが無いとき
にはこの文字コートハツシュテーブル自体もメモリ開放
を行う。In this garbage collection, first, in the case of a 1-byte character code system, it is checked which pointers are registered from the beginning of the character code control table 4. If there is a registered pointer, the same code link is followed for all the font management lists registered in the character code hash table 5 that the pointer points to, and the dot data pointers of all the linked font management lists are If the contents are examined and a NULL value is found, it is separated from the same code link and the memory is released. Also, after checking all the contents of the character code hash table,
When there is no registration pointer in the character code hash table, the character code hash table itself also releases its memory.
すなわちメモリ開放前か第3図の(a)に示す状態であ
れば第3図の(b)に示す状態になる。That is, if the state is as shown in FIG. 3(a) before the memory is released, the state is as shown in FIG. 3(b).
なお、2バイト文字コード体系についても同様の操作を
第2文字コート管理テーブル9に対して行うことにより
不要なメモリを全て開放てきる。Note that for the 2-byte character code system, all unnecessary memory can be freed by performing the same operation on the second character code management table 9.
このようにドツトデータを管理するためのメモリはキャ
ッシュしたフォント分のみ確保すればよく、メモリの使
用効率を向上でき、キャッシュメモリ2の消費量を少な
くできる。In this way, the memory for managing dot data only needs to be reserved for the cached fonts, which improves memory usage efficiency and reduces the consumption of the cache memory 2.
また従来に比べてフォントデータの検索、登録、消去の
各処理が増加するが、検索のために出現頻度が高い文字
はど大きなハツシュテーブルか割り付けられるハツシュ
方式を使用し、また消去のためにマーキング並びにアイ
ドルタイムを利用したガーベジコレクション等を使用し
ているので、処理速度が低下することなくスムーズな処
理ができる。In addition, the processing of searching, registering, and deleting font data increases compared to the conventional method, but we use a hash method in which characters that appear frequently for retrieval are allocated to a large hash table, and also for deleting. Since marking and garbage collection using idle time are used, smooth processing is possible without slowing down the processing speed.
またキャッシュメモリの消費量を低減できるため、結果
的にキャッシュされる文字数を増加することが可能とな
り、それだけ多くの文字について迅速な出力が可能とな
り、全体として文字出力の高速化を図ることができる。In addition, since the amount of cache memory consumed can be reduced, the number of characters that can be cached can be increased, which means that more characters can be output quickly, resulting in faster character output overall. .
[発明の効果]
以上詳述したように本発明によれば、フォント管理テー
ブルとして使用されるメモリの使用効率を向上でき、従
って必要とするメモリ量を極力少なくできる文字フォン
ト管理方式を提供できるものである。[Effects of the Invention] As detailed above, according to the present invention, it is possible to provide a character font management method that can improve the usage efficiency of memory used as a font management table and can therefore minimize the amount of memory required. It is.
また本発明によれば、さらにフォントデータの検索、登
録、消去の処理が迅速かつスムーズに行える文字フォン
ト管理方式を提供できるものである。Further, according to the present invention, it is possible to provide a character font management system that allows processing of searching, registering, and deleting font data to be performed quickly and smoothly.
図は本発明の実施例を示すもので、第1図は要部構成を
示すブロック図、第2図は消去処理時のマーキング処理
を示す図、第3図は消去処理時のガーベジコレクション
処理を示す図である。
1・・・キャッシャ制御テーブル、2・・・フォントキ
ャッシュ、5・・・文字コードハツシュテーブル、6a
。
6b、6c・・・フォント管理リスト(フォント管理テ
ーブル)、7・・・文字使用頻度予測データテーブル、
10a、10b−=ドツトデータメモリ。
出願人代理人 弁理士 鈴江武彦The figures show an embodiment of the present invention. Fig. 1 is a block diagram showing the main part configuration, Fig. 2 is a diagram showing marking processing during erasing processing, and Fig. 3 is a diagram showing garbage collection processing during erasing processing. FIG. 1... Cashier control table, 2... Font cache, 5... Character code hash table, 6a
. 6b, 6c... Font management list (font management table), 7... Character usage frequency prediction data table,
10a, 10b-=dot data memory. Applicant's agent Patent attorney Takehiko Suzue
Claims (3)
るドットデータメモリ、このメモリに格納されているフ
ォントデータを管理するフォント管理テーブルを設けた
フォントキャッシュを備え、文字の出力要求が発生する
とキャッシュ制御テーブルを参照して前記ドットデータ
メモリ内に該当するフォントが登録されているか否かを
チェックし、登録されていればフォント管理テーブルを
参照して前記ドットデータメモリから該当するフォント
データを呼出して出力し、また登録されていなければそ
の文字のドット形式のフォントデータを前記ドットデー
タメモリに新規登録すると共にそのフォントデータを管
理する情報を前記フォント管理テーブルに同一フォント
並びに同一文字コード毎にポインタで連結して登録し、
前記フォント管理テーブルは前記ドットデータメモリに
フォントデータが登録される毎に拡張されることを特徴
とする文字フォント管理方式。(1) A font cache is provided, which includes at least a dot data memory that stores font data in dot format, and a font management table that manages the font data stored in this memory, and when a character output request occurs, the cache control table is checking whether the corresponding font is registered in the dot data memory by referring to it, and if it is registered, referring to the font management table and calling and outputting the corresponding font data from the dot data memory; If it is not registered, the dot-format font data of that character is newly registered in the dot data memory, and the information for managing that font data is linked to the font management table for each same font and character code using a pointer. Register and
A character font management method characterized in that the font management table is expanded each time font data is registered in the dot data memory.
るドットデータメモリ、このメモリに格納されているフ
ォントデータを管理するフォント管理テーブル、このフ
ォント管理テーブルのアドレス指定を行う文字コードハ
ッシュテーブルを設けたフォントキャッシュを備えると
ともに文字使用頻度予測データテーブルを備え、文字の
出力要求が発生するとキャッシュ制御テーブルを参照し
て前記ドットデータメモリ内に該当するフォントが登録
されているか否かをチェックし、登録されていれば前記
文字コードハッシュテーブル及びフォント管理テーブル
を参照して前記ドットデータメモリから該当するフォン
トデータを呼出して出力し、また登録されていなければ
その文字のドット形式のフォントデータを前記ドットデ
ータメモリに新規登録すると共にそのフォントデータを
管理する情報を前記フォント管理テーブルに同一フォン
ト並びに同一文字コード毎にポインタで連結して登録し
、前記フォント管理テーブルは前記ドットデータメモリ
にフォントデータが登録される毎に拡張され、かつ前記
文字コードハッシュテーブルは前記文字使用頻度予測デ
ータテーブルの文字使用頻度予測データに基づいて大き
さが決められることを特徴とする文字フォント管理方式
。(2) A font cache that includes at least a dot data memory that stores font data in dot format, a font management table that manages the font data stored in this memory, and a character code hash table that specifies the address of this font management table. and a character usage frequency prediction data table, and when a character output request occurs, it refers to the cache control table to check whether or not the corresponding font is registered in the dot data memory. For example, the character code hash table and the font management table are referred to, and the corresponding font data is called and outputted from the dot data memory, and if it is not registered, the dot-format font data of that character is newly stored in the dot data memory. At the same time, information for managing the font data is registered in the font management table by linking each same font and character code with a pointer, and the font management table is updated every time font data is registered in the dot data memory. The character font management method is expanded, and the size of the character code hash table is determined based on character usage frequency prediction data of the character usage frequency prediction data table.
方式において、先ずデータを無効とするマーキングを行
い、続いて文字出力の行わない時間もしくは時間帯にマ
ーキングされた内容に基づいてメモリ開放を行うことに
よりフォントデータの消去を行うことを特徴とする文字
フォント管理方式。(3) In the character font management method according to claim (1) or (2), data is first marked as invalid, and then data is stored in memory based on the content marked during a time or time period when no characters are output. A character font management method characterized by erasing font data by releasing it.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2318952A JPH04189164A (en) | 1990-11-22 | 1990-11-22 | Character font management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2318952A JPH04189164A (en) | 1990-11-22 | 1990-11-22 | Character font management method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04189164A true JPH04189164A (en) | 1992-07-07 |
Family
ID=18104825
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2318952A Pending JPH04189164A (en) | 1990-11-22 | 1990-11-22 | Character font management method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04189164A (en) |
-
1990
- 1990-11-22 JP JP2318952A patent/JPH04189164A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3178475B2 (en) | Data processing device | |
| CA2233023A1 (en) | Optimum access to electronic documents | |
| KR920001320A (en) | Method and apparatus for manipulating data in internal registers in a reduced instruction set processor | |
| JP2001105671A (en) | Image processor, image processing method, imaging apparatus | |
| JP2866153B2 (en) | Character processing apparatus and method | |
| JPH06289838A (en) | Font cache controller and its applying method | |
| JPS58195279A (en) | Device for outputting character | |
| JPS59212971A (en) | Image data producer | |
| JP2972451B2 (en) | Cache memory control method by hardware control software | |
| JPH01253024A (en) | Buffer control method for data base management | |
| JPS6118071A (en) | Dictionary retrieving system | |
| JPH01237740A (en) | System for replacing variable length data | |
| JPH01106163A (en) | Replacement method for learning memory for kana (japanese syllabary)/kanji (chinese character) conversion | |
| JPH0462592B2 (en) | ||
| JP3116568B2 (en) | Printing equipment | |
| JPH07199898A (en) | Character display device and character display method | |
| JPH0255161A (en) | Information output device | |
| JPH06166235A (en) | Character editing device | |
| JPH06183093A (en) | Printing equipment | |
| JPH043251A (en) | Method and processor for retrieving document | |
| JPH0830631A (en) | Dictionary search method | |
| JPH03248266A (en) | word processor | |
| JPH06242769A (en) | Method and device for font cache control | |
| JPH0465264A (en) | Printer and its cache control method | |
| JPH0273455A (en) | Character processing method |