JPH0546141A - Character cache system - Google Patents

Character cache system

Info

Publication number
JPH0546141A
JPH0546141A JP3205141A JP20514191A JPH0546141A JP H0546141 A JPH0546141 A JP H0546141A JP 3205141 A JP3205141 A JP 3205141A JP 20514191 A JP20514191 A JP 20514191A JP H0546141 A JPH0546141 A JP H0546141A
Authority
JP
Japan
Prior art keywords
character
bitmap
cache
characters
cache area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3205141A
Other languages
Japanese (ja)
Inventor
Noritaka Koyama
法孝 小山
Ikuo Oya
伊久雄 大宅
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3205141A priority Critical patent/JPH0546141A/en
Publication of JPH0546141A publication Critical patent/JPH0546141A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Digital Computer Display Output (AREA)

Abstract

PURPOSE:To decrease the frequency of execution of bit map development processing based upon outline font data irrelevantly to the size of a character cache area, the array of characters in a character string to be drawn, etc. CONSTITUTION:The frequency and range of appearance on the character string to be drawn are analyzed as to each of the character the character string before the bit map development processing is started and a set M of characters which appear plural times and are extracted as cache candidates is generated (step 101). According to the analytic result of the step 101, a character cache control table where the sections of the character cache area are assigned in the decreasing order of the frequencies of appearance of the respective characters in the set M is generated (step 102). Then the bit maps of the characters obtained by the bit map development processing are cached according to the character cache control table.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、アウトラインフォント
データに基づくビットマップ展開処理によって文字列描
画を行う文書描画システムにおける文字キャッシュ方式
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character cache system in a document drawing system for drawing a character string by a bitmap expansion process based on outline font data.

【0002】[0002]

【従来の技術】アウトラインフォントデータに基づくビ
ットマップ展開処理によって文字列描画を行う文書描画
システムは、システム内に組み込んだビットマップ展開
処理用のアルゴリズムを使って、アウトラインフォント
データより得た文字の輪郭内のビットを塗り潰したビッ
トマップを、イメージメモリ上に生成する。
2. Description of the Related Art A document drawing system that draws a character string by bitmap expansion processing based on outline font data uses a bitmap expansion processing algorithm incorporated in the system to outline the characters obtained from the outline font data. Generate a bitmap in which the bits inside are filled in on the image memory.

【0003】ビットマップ展開処理用のアルゴリズム
は、一般的に複雑な構造であり、このアルゴリズムによ
る処理を一文字毎に繰り返すのでは、描画処理に長時間
がかかる。そこで、一般に、ビットマップ展開処理によ
って文字列描画を行う文書描画システムでは、文字キャ
ッシュ方式を使用して、文字列描画処理を高速化してい
る。
An algorithm for bitmap expansion processing is generally of a complicated structure, and if the processing by this algorithm is repeated for each character, the drawing processing will take a long time. Therefore, generally, in a document drawing system that draws a character string by bitmap expansion processing, the character cache method is used to speed up the character string drawing processing.

【0004】従来の文字キャッシュ方式について説明を
する。
A conventional character cache system will be described.

【0005】文字キャッシュ方式とは、一度ビットマッ
プ展開処理によって作成した文字については、そのビッ
トマップをシステムに装備されている文字キャッシュ領
域(メモリのある部分)に保持しておき、再びその文字
を描画する際には、前記文字キャッシュ領域に保持され
ているビットマップをイメージメモリにコピーすること
によって、通常のビットマップ展開処理によるビットマ
ップの生成を不要にし、文字列描画処理の高速化を図る
ものである。
With the character cache method, for a character once created by a bit map expansion process, the bit map is held in a character cache area (a part of memory) equipped in the system, and the character is stored again. At the time of drawing, by copying the bitmap held in the character cache area to the image memory, it is not necessary to generate a bitmap by a normal bitmap expansion process, and the speed of the character string drawing process is increased. It is a thing.

【0006】なお、同じ文字であっても、フォントの種
類(日本語ならば明朝体やゴシック体など)や文字の大
きさ(ポイント数など)が異なる場合は、ビットマップ
が同一とはならないため、前述の文字キャッシュ領域へ
は別々に保持しなければならない。
Even if the characters are the same, the bitmaps will not be the same if the type of font (Mincho or Gothic in Japanese) or the size of the character (such as the number of points) is different. Therefore, the character cache area must be held separately.

【0007】以下に例示する文字列内の文字は、全て、
フォントの種類、文字の大きさが一致しているものとす
る。
All the characters in the character string illustrated below are
It is assumed that the font type and character size match.

【0008】従来の文字キャッシュ方式では、描画すべ
き文字列から次に描画する一文字を取り出す毎に、その
文字のビットマップが、前記文字キャッシュ領域に保持
されているかどうかを調べる。そして、もし保持されて
いれば、それをコピーして用いるが、保持されていない
ならば、ビットマップ展開処理によって新たにアウトラ
インフォントデータに基づいてビットマップを生成して
描画する。この際、生成したビットマップは文字キャッ
シュ領域に保持しておき、次にこの文字が現れた場合に
備える。
In the conventional character cache system, every time one character to be drawn next is extracted from the character string to be drawn, it is checked whether or not the bitmap of the character is held in the character cache area. If it is held, it is copied and used. If it is not held, a bitmap is newly generated by the bitmap expansion processing based on the outline font data and drawn. At this time, the generated bitmap is held in the character cache area so as to be prepared for the next appearance of this character.

【0009】通常、文字キャッシュ領域には、数百文字
分のビットマップを収容する大きさが確保される。それ
でも大きさに限りがあるので、もうこれ以上、ビットマ
ップを保持できないという場合が起こり得るが、そのと
きは最も古いビットマップを捨てて、新しいビットマッ
プを保持する場合が多い。
Usually, the character cache area has a size enough to accommodate a bitmap for hundreds of characters. Since the size is still limited, it may happen that the bitmap cannot be retained anymore, but at that time, the oldest bitmap is often discarded and a new bitmap is retained.

【0010】[0010]

【発明が解決しようとする課題】しかし、前述した従来
の文字キャッシュ方式では、文字キャッシュ領域がかな
り大きくないと、文字列の文字の並び方によっては、文
字キャッシュ方式の本来の目的を達成し得なくなってし
まうという問題があった。それを具体例を挙げて、次に
説明する。
However, in the above-mentioned conventional character cache system, the original purpose of the character cache system cannot be achieved depending on the arrangement of the characters in the character string unless the character cache area is considerably large. There was a problem that it would end up. This will be described below with a specific example.

【0011】文字列”あいうあいうあいうあいう”をあ
る大きさで描画するとする。しかし、システムに装備さ
れている文字キャッシュ領域の大きさは、2文字分のビ
ットマップを保持することはできるが、3文字分を保持
することはできないと仮定する。
It is assumed that the character string "Aa Aa Aa Aa" is drawn in a certain size. However, it is assumed that the size of the character cache area provided in the system can hold a bitmap for two characters but cannot hold for three characters.

【0012】従来の文字キャッシュ方式では、次のよう
に処理が進む。まず、アウトラインフォントデータに基
づいてビットマップ展開処理を実行して、’あ’’い’
を描画する。これらのビットマップは文字キャッシュ領
域に保持される。次に、同様にして’う’を描画する。
文字キャッシュ領域にはもうビットマップを保持できな
いので、’あ’のビットマップを保持していた部分に’
う’のビットマップを上書きする。
In the conventional character cache system, the processing proceeds as follows. First, execute bitmap expansion processing based on the outline font data, and
To draw. These bitmaps are held in the character cache area. Next, draw'U 'in the same way.
Since the bitmap can no longer be retained in the character cache area, "
Overwrite the bitmap of u '.

【0013】次いで、次の文字である’あ’の描画処理
に移る。すると、もはや、’あ’のビットマップは保持
されていないので、再びアウトラインフォントデータに
基づくビットマップ展開処理によってビットマップを生
成し、描画する。そして’い’のビットマップを保持し
ていた部分に、’あ’のビットマップを上書きする。以
下同様に、一文字毎に文字キャッシュ領域への書き込み
を繰り返す。
Then, the process goes to the drawing process of the next character "A". Then, since the'a 'bitmap is no longer held, the bitmap is again generated by the bitmap expansion processing based on the outline font data, and the bitmap is drawn. Then, the part holding the bitmap of "I" is overwritten with the bitmap of "A". Similarly, the writing to the character cache area is repeated for each character.

【0014】結果として、文字キャッシュ領域に保持し
たビットマップが有効に活用されず、文字描画を高速に
行うための文字キャッシュ方式の意味が全くなくなって
しまう。それどころか、文字のビットマップを文字キャ
ッシュ領域に保持するための時間分だけ、何もしなかっ
た場合より遅くなってしまう。
As a result, the bit map held in the character cache area is not effectively utilized, and the meaning of the character cache method for performing character drawing at high speed is completely lost. On the contrary, it will be slower than if nothing was done for the time to keep the character bitmap in the character cache area.

【0015】このように、従来の文字キャッシュ方式で
は、文字キャッシュ領域がかなり大きくないと、文字列
の文字の並び方によっては、アウトラインフォントデー
タに基づくビットマップ展開処理の実行回数を減らすと
いう文字キャッシュ方式の本来の目的を達成し得ないば
かりか、逆に処理効率が悪化するという問題があった。
As described above, in the conventional character cache system, if the character cache area is not quite large, the number of times the bitmap expansion processing based on the outline font data is executed is reduced depending on the arrangement of the characters in the character string. In addition to not being able to achieve the original purpose, there was a problem that the processing efficiency deteriorated.

【0016】本発明は前記事情に鑑みてなされたもの
で、文字キャッシュ領域の大きさや描画すべき文字列上
の文字の配列等に関係なく、アウトラインフォントデー
タに基づくビットマップ展開処理の実行回数を減らすと
いう文字キャッシュ方式の本来の目的を達成することの
できる文字キャッシュ方式を提供することを目的とす
る。
The present invention has been made in view of the above circumstances, and determines the number of executions of bitmap expansion processing based on outline font data regardless of the size of the character cache area, the arrangement of characters on a character string to be drawn, and the like. An object of the present invention is to provide a character cache method that can achieve the original purpose of the character cache method of reducing the number.

【0017】[0017]

【課題を解決するための手段】本発明に係る文字キャッ
シュ方式は、文字のビットマップを保持する文字キャッ
シュ領域を装備した文書描画システムにおいて、ビット
マップ展開処理によって作成されたビットマップの前記
文字キャッシュ領域への保持処理を一定の基準に従って
実行するものである。
According to the character cache method of the present invention, in a document drawing system equipped with a character cache area for holding a bitmap of characters, the character cache of a bitmap created by bitmap expansion processing. The holding processing in the area is executed according to a certain standard.

【0018】ただし、前記文書描画システムは、描画す
べき文字のビットマップをイメージメモリに生成する際
に、前記文字キャッシュ領域に既にビットマップが保持
されている文字に対しては、該文字キャッシュ領域に保
持されているビットマップをイメージメモリにコピーす
ることによって、描画すべき文字のビットマップを新た
にアウトラインフォントデータに基づいて作成するビッ
トマップ展開処理を省いて文字列描画処理の高速化を図
る形式のものであるとする。
However, in the document drawing system, when a bit map of a character to be drawn is generated in the image memory, for a character whose bit map is already held in the character cache area, the character cache area By copying the bitmap stored in the image memory to the image memory, a bitmap of the character to be drawn is newly created based on the outline font data. It is assumed to be of the form.

【0019】本発明に係る文字キャッシュ方式では、目
的達成のため、前記文字キャッシュ領域は、1文字分の
ビットマップを格納する単位区分に区画し、各区分に保
持する文字とその保持範囲とを文字キャッシュ管理テー
ブルによって管理する。
In the character cache system according to the present invention, in order to achieve the object, the character cache area is divided into unit sections for storing a bitmap for one character, and a character to be held in each section and its holding range are divided. It is managed by the character cache management table.

【0020】また、ビットマップ展開処理を開始する前
に、描画すべき文字列中の各文字について、文字列上で
の出現回数と出現範囲とを解析して、複数回出現する文
字をキャッシュ候補として抽出した集合Mを生成する。
Before the bitmap expansion processing is started, the number of appearances and the appearance range of each character in the character string to be drawn are analyzed, and characters appearing multiple times are cache candidates. A set M extracted as is generated.

【0021】そして、前記文字キャッシュ領域の区画数
がLであるとき、まず、前記集合Mから、出現回数の多
い順にL個の文字を第1キャッシュ候補として抽出し、
抽出した第1キャッシュ候補の各文字を、前記文字キャ
ッシュ管理テーブルに設定した文字キャッシュ領域上の
各区分に割り付けるとともに、各区分毎に割り付けた文
字の保持範囲を設定する。
Then, when the number of partitions of the character cache area is L, first, L characters are extracted from the set M in descending order of the number of appearances as a first cache candidate,
Each character of the extracted first cache candidate is allocated to each section in the character cache area set in the character cache management table, and a holding range of the allocated character is set for each section.

【0022】そして、第1キャッシュ候補を除いた集合
Mの残りの文字に対しては、既に文字キャッシュ領域上
の各区分に保持が設定されている文字の保持範囲と重複
しない範囲で、出現回数の多い順に、前記文字キャッシ
ュ管理テーブルに設定された文字キャッシュ領域上の各
区分に割り付け、さらに、各区分毎に割り付けた文字の
保持範囲を設定する。
For the remaining characters of the set M excluding the first cache candidate, the number of appearances is within a range that does not overlap with the holding range of the characters that are already set to be held in each section in the character cache area. In the order of increasing number, the sections are allocated to each section on the character cache area set in the character cache management table, and the holding range of the allocated characters is set for each section.

【0023】そして、前記文字キャッシュ管理テーブル
上の設定に基づいて、前記文字キャッシュ領域へのビッ
トマップの保持処理を実行する。
Then, based on the setting on the character cache management table, the holding process of the bitmap in the character cache area is executed.

【0024】[0024]

【作用】本発明に係る文字キャッシュ方式では、描画す
べき文字列中の文字は、出現回数の多いものから順に文
書描画システムに装備された文字キャッシュ領域に保持
され、描画処理に有効に使用されることになる。
In the character cache system according to the present invention, the characters in the character string to be drawn are retained in the character cache area provided in the document drawing system in order from the one having the highest appearance frequency, and are effectively used in the drawing process. Will be.

【0025】従って、文字キャッシュ領域の大きさや描
画すべき文字列上の文字の配列等に関係なく、アウトラ
インフォントデータに基づくビットマップ展開処理の実
行回数を減らすという文字キャッシュ方式の本来の目的
を達成することができる。
Therefore, regardless of the size of the character cache area or the arrangement of characters on the character string to be drawn, the original purpose of the character cache method is to reduce the number of times the bitmap expansion processing based on the outline font data is executed. can do.

【0026】[0026]

【実施例】次に、図面に基づいて本発明の一実施例を説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0027】本発明の一実施例を実行する文書描画シス
テムは、図3に示すように、システム本体10と、アウ
トラインフォントデータファイル30を格納した外部記
憶装置29と、前記システム本体10の生成したイメー
ジデータを可視出力するCRT32、およびプリンタ3
4とを具備してなる。ここに、外部記憶装置29,CR
T32,プリンタ34は、周辺装置として、前記システ
ム本体10に接続されている。
As shown in FIG. 3, a document drawing system for carrying out an embodiment of the present invention is created by the system body 10, an external storage device 29 storing an outline font data file 30, and the system body 10. CRT 32 that visually outputs image data, and printer 3
4 and. Here, the external storage device 29, CR
The T32 and the printer 34 are connected to the system main body 10 as peripheral devices.

【0028】前記システム本体10は、所定の手順で文
字列描画処理を実行する演算処理部で、例えば、パソコ
ン本体やワークステーション本体が該当する。このシス
テム本体10には、ページ記述言語などのページデータ
を生成するページデータ生成モジュール12と、文書描
画を行う文書描画モジュール14とが装備されている。
The system main body 10 is an arithmetic processing unit that executes a character string drawing process in a predetermined procedure, and corresponds to, for example, a personal computer main body or a workstation main body. The system main body 10 is equipped with a page data generation module 12 that generates page data such as a page description language and a document drawing module 14 that draws a document.

【0029】ページデータ生成モジュール12は、ペー
ジデータを、パブリッシング用アプリケーションプログ
ラムなどで生成し、文書描画モジュール14へ送る。こ
のページデータ生成モジュール12の出力するページデ
ータには、文字列描画を意味するコマンドデータなどが
含まれる。
The page data generation module 12 generates page data by a publishing application program or the like and sends it to the document drawing module 14. The page data output from the page data generation module 12 includes command data that means drawing a character string.

【0030】文書描画モジュール14は、図示のよう
に、描画処理プロセッサ20,データメモリ22,文字
キャッシュ領域24,イメージメモリ26などで構成さ
れている。ここに、データメモリ22は、前記ページデ
ータ生成モジュール12の出力するページデータ、およ
び前記アウトラインフォントデータファイル30から読
み出したアウトラインフォントデータなどのデータを格
納する。
As shown, the document drawing module 14 is composed of a drawing processor 20, a data memory 22, a character cache area 24, an image memory 26 and the like. Here, the data memory 22 stores data such as page data output from the page data generation module 12 and outline font data read from the outline font data file 30.

【0031】前記描画処理プロセッサ20は、ページデ
ータ生成モジュール12で生成されたページデータをデ
ータメモリ22を介して受け取って解釈し、ページデー
タに文字列描画を意味するコマンドデータがあったとき
には、所定の手順で、文字列の描画に必要な各種処理を
実行する。
The drawing processor 20 receives the page data generated by the page data generating module 12 through the data memory 22 and interprets the page data. When the page data includes command data indicating character string drawing, a predetermined value is given. Perform the various processes required to draw a character string by following the procedure.

【0032】また、描画処理プロセッサ20は、文字列
を描画する際には、必要に応じて、アウトラインフォン
トデータファイル30のアウトラインフォントデータに
基づいて描画すべき文字のビットマップを作成するビッ
トマップ展開処理を実行する。このビットマップ展開処
理によって作成するビットマップは、通常はイメージメ
モリ26上に生成するが、作成したビットマップを文字
キャッシュ領域24に保持させることもできる。また、
文字キャッシュ領域24からイメージメモリ26への矩
形転送機能を備えており、文字キャッシュ領域24に保
持されているビットマップをイメージメモリ26上の任
意の位置にコピーすることもできる。
Further, when drawing a character string, the drawing processor 20 creates a bit map of a character to be drawn based on the outline font data of the outline font data file 30 when necessary. Execute the process. The bitmap created by this bitmap expansion process is normally created in the image memory 26, but the created bitmap can be held in the character cache area 24. Also,
A rectangular transfer function from the character cache area 24 to the image memory 26 is provided, and the bitmap held in the character cache area 24 can be copied to any position on the image memory 26.

【0033】描画処理プロセッサ20において、ビット
マップ展開処理により作成したビットマップを前記文字
キャッシュ領域24に保持させるか否かは、本発明の一
実施例である文字キャッシュ方式に従う。
Whether or not the drawing processor 20 holds the bitmap created by the bitmap expansion processing in the character cache area 24 depends on the character cache method according to the embodiment of the present invention.

【0034】文字キャッシュ領域24は、文字のビット
マップを保持するためのキャッシュメモリで、一実施例
の文字キャッシュ方式に従って、前記描画処理プロセッ
サ20が作成したビットマップを保持する。前記イメー
ジメモリ26は、描画するイメージデータを一時保持し
て、表示装置である前記CRT32またはプリンタ34
に出力する。
The character cache area 24 is a cache memory for holding a bit map of characters, and holds the bit map created by the drawing processor 20 according to the character cache method of one embodiment. The image memory 26 temporarily holds image data to be drawn, and the CRT 32 or the printer 34 which is a display device.
Output to.

【0035】本発明の一実施例の文字キャッシュ方式で
は、前記文字キャッシュ領域24は、1文字分のビット
マップを格納する単位区分に区画し、各区分に保持する
文字とその保持範囲とを文字キャッシュ管理テーブルに
よって管理する。1文字分のビットマップを格納する単
位区分とは、1文字分のビットマップを保持するだけの
大きさを持った矩形領域で、その大きさC(n)は、描
画する文字列での各文字の大きさn(通常、ポイント数
などで表される)によって定まる一定値であり、文字に
よって変動しない(即ち、文字「あ」を保存する場合で
も、「う」を保存する場合でも同じである)。
In the character cache system according to one embodiment of the present invention, the character cache area 24 is divided into unit divisions for storing a bitmap for one character, and the character to be retained in each division and its retaining range are defined by character. It is managed by the cache management table. The unit division for storing the bitmap for one character is a rectangular area having a size enough to hold the bitmap for one character, and the size C (n) of each rectangular area in the character string to be drawn. It is a constant value that is determined by the size n of the character (usually represented by the number of points, etc.), and does not change depending on the character (that is, the same when saving the character "a" or "u"). is there).

【0036】従来の文字キャッシュ方式の場合、文字キ
ャッシュ領域上では、文字のビットマップはその文字を
囲む最小の矩形領域として保持し、複数の文字を保持す
るには、それぞれの文字に必要最小限の矩形領域を隙間
が生じないように文字キャッシュ領域上に並べる。従っ
て、従来では、ポイント数が同じでも、文字によって保
持する矩形領域の大きさが異なるが、この一実施例で
は、ビットマップを保持する矩形領域(即ち、単位区
分)の大きさは、どの文字に対しても同じである。換言
すれば、この一実施例の場合では、描画する文字の中で
一番大きな矩形領域を必要とするものに合せて、単位区
分が設定される。
In the case of the conventional character cache method, the character bitmap is held in the character cache area as the smallest rectangular area surrounding the character, and in order to hold a plurality of characters, the minimum required for each character. The rectangular areas of are arranged in the character cache area so that no space is created. Therefore, conventionally, the size of the rectangular area to be held differs depending on the character even if the number of points is the same. However, in this embodiment, the size of the rectangular area to hold the bitmap (that is, unit division) is The same is true for. In other words, in the case of this embodiment, the unit division is set according to the one that requires the largest rectangular area among the characters to be drawn.

【0037】図4は、前記文字キャッシュ領域の区分を
具体例で示したものである。この例では、区分1乃至区
分3の3つに区画され、従って、常時3文字分のビット
マップを保持することができる。
FIG. 4 shows a specific example of the division of the character cache area. In this example, it is divided into three, that is, divisions 1 to 3, and therefore, a bitmap for 3 characters can always be held.

【0038】前記文字キャッシュ管理テーブルは、文字
キャッシュ領域24上の各区分において、文字列描画処
理中のどの段階で、どの文字のビットマップを保持する
かを管理するためのもので、本発明の一実施例の文字キ
ャッシュ方式を実行するために、前記描画処理プロセッ
サ20の管理するメモリ上に作成される。
The character cache management table is for managing which character bitmap is held at which stage during the character string drawing process in each section on the character cache area 24. In order to execute the character cache method of the embodiment, it is created in the memory managed by the drawing processor 20.

【0039】この一実施例の文字キャッシュ方式では、
描画すべき文字列を認識すると、描画に必要なビットマ
ップ展開処理を開始する前に、管理テーブル作成処理を
実行する。この管理テーブル作成処理は、文字キャッシ
ュ領域24上の各区分毎に保持する文字と、その保持範
囲とを設定した文字キャッシュ管理テーブルを作成する
もので、図1の手順で処理を行う。
In the character cache system of this embodiment,
When the character string to be drawn is recognized, the management table creating process is executed before the bitmap expansion process required for drawing is started. This management table creation processing creates a character cache management table in which characters to be held for each section on the character cache area 24 and their holding range are set, and the processing is performed according to the procedure of FIG.

【0040】まず、描画すべき文字列中の各文字につい
て、文字列上での出現回数と出現範囲とを解析して、複
数回出現する文字をキャッシュ候補として抽出した集合
Mを生成する(ステップ101)。文字列上での出現範
囲とは、その文字が文字列上で初めに出現する位置(何
文字目かということ)から、最後に出現する位置(これ
も、何文字目かということ)までをいう。
First, for each character in a character string to be drawn, the number of appearances and the range of appearance on the character string are analyzed to generate a set M in which characters that appear multiple times are extracted as cache candidates (step 101). The appearance range in a character string is from the position where the character first appears in the character string (what character it is) to the position where it appears last (this character is also what character). Say.

【0041】次いで、前記文字キャッシュ領域24の区
画数がL(この例では、L=3)であるとき、まず、前
記集合Mから、出現回数の多い順にL個の文字を第1キ
ャッシュ候補として抽出し、抽出した第1キャッシュ候
補の各文字を、前記文字キャッシュ管理テーブルに設定
した文字キャッシュ領域24上の各区分に割り付けると
ともに、各区分毎に割り付けた文字の保持範囲を設定す
る。そして、前記集合Mからは、第1キャッシュ候補と
して抽出された文字を除く(ステップ102)。各区分
における保持範囲とは、各区分に於いて保存を開始して
から終了するまでの文字列上の範囲である。
Next, when the number of partitions of the character cache area 24 is L (L = 3 in this example), first, from the set M, L characters in descending order of appearance frequency are set as the first cache candidate. Each character of the extracted first cache candidate is allocated to each section on the character cache area 24 set in the character cache management table, and a holding range of the allocated character is set for each section. Then, the character extracted as the first cache candidate is excluded from the set M (step 102). The holding range in each section is the range on the character string from the start to the end of saving in each section.

【0042】次いで、第1キャッシュ候補を除いた集合
Mに対しては、まだ文字が残っていいるか否かを判断し
(ステップ103)、文字が残っていない時には、管理
テーブル作成処理を終了して、一連の文字列描画処理に
移る(ステップ104)。しかし、まだ集合Mに文字が
残っている時には、残っている文字の中で一番出現回数
が多い文字を取り出し(ステップ105)、その文字を
保持し得る文字キャッシュ領域24上の区分があるか否
かを調べる(ステップ106)。
Next, it is judged whether or not there are still characters remaining in the set M excluding the first cache candidate (step 103). When there are no characters remaining, the management table creating process is terminated. , And a series of character string drawing processing (step 104). However, when there are still characters remaining in the set M, the character with the highest number of appearances is extracted from the remaining characters (step 105), and is there a division in the character cache area 24 that can hold that character? It is checked whether or not (step 106).

【0043】このステップ106の処理は、既に文字キ
ャッシュ管理テーブルにおいて保持する文字キャッシュ
領域24上の区分が割り付けられた文字の保持範囲と、
新たに集合Mから取り出した文字の出現範囲とを比較し
て、保持範囲を重複させずに割り当てることのできる区
分が存在するか否かを調べるものである。
The process of step 106 is performed by a character holding range which is already held in the character cache management table and a holding range of characters to which a section is assigned.
The appearance range of the character newly extracted from the set M is compared to check whether or not there is a section that can be assigned without overlapping the holding range.

【0044】前記ステップ106で、保持し得る文字キ
ャッシュ領域24上の区分が一つだけあることが判明し
た時には、その区分にその文字を割り付けるとともに、
その文字の保持範囲を設定する(ステップ107)。次
いで、前記集合Mから、ステップ107で保持する区分
が定まった文字を削除して、ステップ103に戻る(ス
テップ108)。
When it is found in the step 106 that there is only one section on the character cache area 24 that can be held, the character is assigned to that section, and
The holding range of the character is set (step 107). Then, the character whose classification is determined to be held in step 107 is deleted from the set M, and the process returns to step 103 (step 108).

【0045】前記ステップ106で、保持し得る文字キ
ャッシュ領域24上の区分が無いことが判明した時に
は、直ちにステップ108に進んで、その文字を集合M
から削除して、ステップ103に戻る。
When it is determined in step 106 that there is no division in the character cache area 24 that can be held, the process immediately proceeds to step 108, and the character is set M.
, And returns to step 103.

【0046】前記ステップ106で、保持し得る文字キ
ャッシュ領域24上の区分が二つ以上あるときには、ス
テップ109に進んで最適の区分を選定する。
In step 106, when there are two or more sections that can be held in the character cache area 24, the process proceeds to step 109 to select the optimum section.

【0047】ステップ109は、その文字を保持するこ
とのできる複数の区分の内から、できるだけ無駄のない
文字キャッシュができるようなものを選び出すものであ
る。それは以下のようにする。まず、それらの区分がi
個あったとして、それらの区分番号をKiとする。 そ
れらの区分には、各々、既に何文字かの文字が、保持範
囲とともに登録されている。従って、一般的には、それ
らの各々の区分Kiにおいて、新たに区分を割り当てる
文字Xと保存範囲が前後するような登録済み文字があ
る。
Step 109 is to select from among a plurality of divisions capable of holding the character, a character cache that enables the leanest character cache. It does as follows. First, if the divisions are i
Assuming that there are individual pieces, those division numbers are set to Ki. In each of these categories, some characters have already been registered together with the holding range. Therefore, in general, in each of the divisions Ki, there is a registered character whose storage range comes before and after the letter X to which a new division is assigned.

【0048】保持範囲が直前である登録済み文字とXと
の保持範囲の間隔をP(Ki)、保持範囲が直後である
登録済み文字とXとの保持範囲の間隔をO(Ki)とす
る。直前、または直後に登録済み文字がなかった場合
は、文字列の先頭、または終端からの変位を、それぞ
れ、P(Ki)、O(Ki)とする。ここで、min
{P(Ki)、O(Ki)}の値を持つP(Ki)、ま
たはO(Ki)を一つ選び、その区分であるKiを、文
字Xを保持する区分に割り当てるとともに、文字Xの保
持範囲を登録する。ステップ109の処理を終了した
ら、ステップ108を経てステップ103に戻る。
Let P (Ki) be the distance between the registered characters whose holding range is immediately before and X, and O (Ki) be the distance between the registered characters whose X is immediately after the holding range and X. .. If there is no registered character immediately before or immediately after, the displacement from the beginning or end of the character string is set to P (Ki) and O (Ki), respectively. Where min
Select one of P (Ki) or O (Ki) having a value of {P (Ki), O (Ki)}, and assign that category Ki to the category holding the character X, and Register the retention range. When the process of step 109 is completed, the process returns to step 103 via step 108.

【0049】以上の管理テーブル作成処理において、ス
テップ103〜108は、文字キャッシュ領域24を常
時有効に利用するために、集合Mに残っている文字につ
いて、出現回数の多い順に、文字キャッシュ管理テーブ
ルへの登録を試みるものである。
In the above-described management table creation process, steps 103 to 108 are performed in order from the character cache management table to the character cache management table in the descending order of the number of appearances of the characters remaining in the set M in order to effectively use the character cache area 24 at all times. Is an attempt to register.

【0050】以上に説明した管理テーブル作成処理によ
って文字キャッシュ管理テーブルの作成が完了したら、
次には、図2に示す手順で、文字列の描画処理が実行さ
れる。
When the creation of the character cache management table is completed by the management table creation process described above,
Next, the character string drawing process is executed in the procedure shown in FIG.

【0051】文字のビットマップは一文字ずつ作成する
ため、まず、最初のステップ201では、描画処理する
文字列上の文字を指示するポインタの値を初期値に設定
する(即ち、文字列の最初の文字をポインタが示すよう
にする)。次いで、ポインタの示す一文字を取り出し
(ステップ202)、その文字のビットマップが既に文
字キャッシュ領域24に保持されているか否かを判断す
る(ステップ203)。このステップ202の判断は、
先に、管理テーブル作成処理によって作成した文字キャ
ッシュ管理テーブルの設定内容によって行うもので、判
断対象の文字の文字列上の出現位置が、文字キャッシュ
管理テーブルに記述されている保持範囲内(保持開始位
置は除く)にあれば、保持されていると判断される。
Since the character bitmap is created character by character, first, in step 201, the value of the pointer indicating the character on the character string to be drawn is set to the initial value (that is, the first character of the character string is drawn). Make the character pointed to). Next, one character indicated by the pointer is taken out (step 202), and it is judged whether or not the bitmap of the character is already held in the character cache area 24 (step 203). The determination in step 202 is
First, it is performed according to the setting contents of the character cache management table created by the management table creation process. The appearance position of the judgment target character on the character string is within the holding range (holding start) described in the character cache management table. (Excluding the position), it is determined to be held.

【0052】ステップ203で、既に文字キャッシュ領
域24に保持されていないと判断したときには、さらに
文字キャッシュ管理テーブルの記述に基づいて、文字キ
ャッシュ領域に保持すべき文字であるか否かを判断する
(ステップ204)。文字キャッシュ管理テーブルで保
持すべき区分が割り当てられていない文字は、文字キャ
ッシュ領域に保持すべきでない文字の場合で、その場合
には、アウトラインフォントデータファイル30から該
当するアウトラインフォントデータを読み出し、読み出
したアウトラインフォントデータに基づいてビットマッ
プ展開処理を実行してイメージメモリ26上に該当する
文字のビットマップを生成する(ステップ205)。
When it is determined in step 203 that the character is not already held in the character cache area 24, it is further determined based on the description in the character cache management table whether or not the character should be held in the character cache area (( Step 204). In the character cache management table, the character to which the classification to be retained is not assigned is a character that should not be retained in the character cache area. In that case, the corresponding outline font data is read from the outline font data file 30 and read. A bitmap expansion process is executed based on the outline font data thus generated to generate a bitmap of the corresponding character on the image memory 26 (step 205).

【0053】ステップ205が終了したら、その文字が
文字列の終端(最後の文字)か否かを判断し(ステップ
206)、終端の場合には描画処理を終了するが、終端
でない場合には、描画する文字を指示するポインタの値
を一つインクリメントして(ステップ207)、ステッ
プ202に戻る。
Upon completion of step 205, it is determined whether or not the character is the end (last character) of the character string (step 206). If it is the end, the drawing process is ended, but if it is not the end, The value of the pointer designating the character to be drawn is incremented by 1 (step 207) and the process returns to step 202.

【0054】前記ステップ204において、文字キャッ
シュ領域に保持すべき文字である場合(即ち、判断対象
の文字の文字列上の出現位置が、文字キャッシュ管理テ
ーブルに記述されている保持範囲内の保持開始位置であ
る場合)には、アウトラインフォントデータファイル3
0から該当するアウトラインフォントデータを読み出
し、読み出したアウトラインフォントデータに基づいて
ビットマップ展開処理を実行して、文字キャッシュ領域
24上の該当する区分にその文字のビットマップを生成
する(ステップ208)。次いで、文字キャッシュ領域
24上のビットマップをイメージメモリ26にコピーし
(ステップ209)、前記ステップ206に移る。
In step 204, if the character is a character to be held in the character cache area (that is, the appearance position of the character to be judged on the character string is within the holding range described in the character cache management table, the start of holding). Outline font data file 3
The corresponding outline font data is read from 0, bitmap expansion processing is executed based on the read outline font data, and a bitmap of the character is generated in the corresponding section on the character cache area 24 (step 208). Next, the bit map on the character cache area 24 is copied to the image memory 26 (step 209), and the process proceeds to step 206.

【0055】前記、ステップ203で、既に文字キャッ
シュ領域24に保持されていると判断された時には、直
ちにステップ209に移行して、文字キャッシュ領域2
4に保持されているビットマップをイメージメモリ26
にそのままコピーすることによって、イメージメモリ2
6上に所定のビットマップを得る。
When it is determined in step 203 that the character cache area 24 has already been held, the process immediately proceeds to step 209, and the character cache area 2 is stored.
4 is stored in the image memory 26.
Image memory 2
Get the desired bitmap on 6.

【0056】図3に示した文書描画システムでは、前記
図2の描画処理によってイメージメモリ26上にビット
マップを生成した文字は、逐次CRT32に描画し、ま
た必要に応じて(オペレータの指示によって)プリンタ
34に出力する。
In the document drawing system shown in FIG. 3, the characters for which the bitmap is generated on the image memory 26 by the drawing process of FIG. 2 are sequentially drawn on the CRT 32, and as necessary (by operator's instruction). Output to the printer 34.

【0057】本発明の一実施例の作用効果を理解し易く
するために、具体例を使って、前記図1および図2に示
した処理の内容を説明する。この具体例では、描画すべ
き文字列は”あいいいえかああうおおうえお”であり、
この文字列における各文字は全て18ポイントの大きさ
であるとする。また、文字キャッシュ領域24は、図3
に示したように、3文字分しかビットマップを格納でき
ない大きさであるとする。
To make it easier to understand the operation and effect of the embodiment of the present invention, the contents of the processing shown in FIGS. 1 and 2 will be described by using a specific example. In this specific example, the character string to be drawn is "Ai No Kaoh Uo Uo",
It is assumed that each character in this character string has a size of 18 points. The character cache area 24 is shown in FIG.
As shown in, it is assumed that the size is such that the bitmap can be stored only for three characters.

【0058】まず、図1のステップ101における文字
列の解析処理で、文字列中の各文字の出現回数および出
現範囲が調べられる。図5および図6は、この解析処理
の結果を示したものある。図5は解析結果を数値的に示
したもので、出現範囲は文字列上で初めて出現する位置
(順位)と最後に出現する位置(順位)とで表してい
る。また、図6は、出現範囲を文字列に沿った”線分”
の長さで表したものである。さらにステップ101で
は、この解析結果に基づいて、文字列上に複数回出現す
る文字の集合Mを生成する。
First, in the character string analysis process in step 101 of FIG. 1, the number of appearances and the appearance range of each character in the character string are checked. 5 and 6 show the results of this analysis processing. FIG. 5 numerically shows the analysis result, and the appearance range is represented by the first appearance position (rank) and the last appearance position (rank) on the character string. In addition, in FIG. 6, the appearance range is a "line segment" along the character string.
It is represented by the length of. Further, in step 101, a set M of characters appearing a plurality of times on the character string is generated based on the analysis result.

【0059】文字列上の文字「か」は、出現回数が1回
であるから、キャッシュ候補の対象外となり、集合Mに
は含まれない。以上の解析結果は、図1に示した管理テ
ーブル作成処理が完了するまでは、前記描画処理プロセ
ッサ20の管理するメモリ上に保持される。
The character "ka" on the character string is not included in the set M because it does not belong to the cache candidates because it appears once. The above analysis results are held in the memory managed by the drawing processor 20 until the management table creating process shown in FIG. 1 is completed.

【0060】集合Mの各文字を出現回数の多い順に並べ
ると、’あ’、’い’、’お’、’う’、’え’とな
る。図1のステップ102では、出現回数の多い順に上
位の3つの文字’あ’、’い’、’お’(いずれも出現
回数は3回)を抽出し、これらの文字を保持する文字キ
ャッシュ領域24の区分を割り当て、さらに、割り当て
た各区分における保持範囲(解析結果の出現範囲と一致
する)を各区分毎に記述する。そして、さらに、前記集
合Mから、第1キャッシュ候補として抽出した’
あ’、’い’、’お’の3文字を除く。
When the characters of the set M are arranged in descending order of the number of appearances, they are'a ',' i ',' o ',' u ', and'e'. In step 102 of FIG. 1, the upper three characters “A”, “I”, and “O” (all three occurrences) are extracted in descending order of appearance count, and the character cache area holds these characters. Twenty-four sections are assigned, and the holding range (which matches the appearance range of the analysis result) in each assigned section is described for each section. Then, it is further extracted from the set M as a first cache candidate.
Excludes the three letters'a ',' i ', and'o'.

【0061】図7は、ステップ102の処理が終了した
時点での、文字キャッシュ管理テーブル27の記録内容
を示したものである。この具体例の場合は、文字’あ’
は区分1に保持し、文字’い’は区分2に保持し、文
字’お’は区分3に保持する。次に、前記集合Mに残っ
ている文字については、図1のステップ103〜109
による処理によって、出現回数の多い順に、文字キャッ
シュ領域24に保持するか否かを設定する。文字’う’
の場合、その出現範囲は、区分1の保持文字’あ’の保
持範囲とも重複していないし、また区分2の保持文字’
い’の保存範囲とも重複していない。従って、ステップ
106では、区分1および区分2の二つの区分が、キャ
ッシュ可能な候補として認識され、次のステップ109
で、最適の区分が求められることになる。
FIG. 7 shows the recorded contents of the character cache management table 27 at the time when the processing of step 102 is completed. In the case of this example, the character'a '
Is held in section 1, the character "i" is held in section 2, and the character "o" is held in section 3. Next, regarding the characters remaining in the set M, steps 103 to 109 in FIG.
By the processing according to (3), whether or not to retain the character cache area 24 is set in descending order of appearance frequency. The letter'U '
In the case of, the appearance range does not overlap with the holding range of the holding character'a 'of Category 1, and the holding character of Category 2'
It does not overlap with the storage range of'i '. Therefore, in step 106, two partitions, partition 1 and partition 2, are recognized as cacheable candidates, and the next step 109
Therefore, the optimum classification is required.

【0062】文字’う’を区分1あるいは区分2に保持
させることとした場合、文字’う’の保持範囲(出現範
囲)と隣接する他の文字の保持範囲との間の隙間は、区
分1に保持することとした場合の方が、小さくなる。従
って、ステップ109の処理では、区分1が’う’の保
持区分として選定される。
When the character “U” is held in the division 1 or the division 2, the gap between the holding range (appearance range) of the character “U” and the holding range of another adjacent character is the division 1 It becomes smaller when it is decided to hold. Therefore, in the process of step 109, the classification 1 is selected as the holding classification of “U”.

【0063】同様にして、ステップ103〜106が繰
り返されて、ステップ107によって文字’え’の保持
区分が区分2に設定されて、管理テーブル作成処理が完
了する。図8は、図1に示した管理テーブル作成処理が
完了した時点での文字キャッシュ管理テーブル27の記
述内容を示したものである。
Similarly, steps 103 to 106 are repeated, and the holding section for the character "e" is set to section 2 in step 107, and the management table creating process is completed. FIG. 8 shows the description contents of the character cache management table 27 at the time when the management table creation processing shown in FIG. 1 is completed.

【0064】管理テーブル作成処理が完了すると、図2
の描画処理が、文字キャッシュ管理テーブル27に基づ
いて、実行される。文字列先頭の’あ’は文字キャッシ
ュ領域24の区分1に保持することになっているの
で、’あ’のアウトラインフォントデータを用いて、そ
のビットマップを区分1に生成し、それをイメージメモ
リにコピーして描画する。同様に’い’のアウトライン
フォントデータを用いて、そのビットマップを区分2に
生成し、それをイメージメモリにコピーして描画する。
When the management table creation processing is completed, FIG.
Is executed based on the character cache management table 27. Since the character "a" at the beginning of the character string is to be held in the partition 1 of the character cache area 24, the outline font data of the character "a" is used to generate the bitmap in the partition 1, and the bitmap is generated in the image memory. And draw it. Similarly, using the outline font data of "yes", the bitmap is generated in the section 2, and the bitmap is copied to the image memory and drawn.

【0065】3、4文字目の’い’は既にビットマップ
がキャッシュされているので、それをコピーして描画す
る。5文字目の’え’は、文字キャッシュ管理テーブル
によると区分2に保持することになっているので、今ま
で’い’のビットマップを保持していた区分2の部分
に、’い’のビットマップを生成し(上書きし)、それ
をイメージメモリにコピーして描画する。このような処
理を繰り返して、文字描画を進めて行く。
For the third and fourth characters "i", the bitmap is already cached, so copy it and draw it. According to the character cache management table, the 5th character'e 'is supposed to be stored in Category 2. Therefore, in the section 2 which previously held the'I' bitmap, Generates (overwrites) a bitmap, copies it to image memory, and draws it. By repeating such processing, character drawing proceeds.

【0066】以上のような文字キャッシュ方式では、描
画すべき文字列中の文字は、出現回数の多いものから順
に文書描画システムに装備された文字キャッシュ領域2
4に保持され、描画処理に有効に使用されることにな
る。
In the character cache system as described above, the characters in the character string to be drawn are arranged in the character cache area 2 provided in the document drawing system in descending order of appearance frequency.
4 and is effectively used for drawing processing.

【0067】従って、文字キャッシュ領域24の大きさ
や描画すべき文字列上の文字の配列等に関係なく、アウ
トラインフォントデータに基づくビットマップ展開処理
の実行回数を減らすという文字キャッシュ方式の本来の
目的を達成することができる。
Therefore, regardless of the size of the character cache area 24 or the arrangement of characters on the character string to be drawn, the original purpose of the character cache method is to reduce the number of times the bitmap expansion processing based on the outline font data is executed. Can be achieved.

【0068】なお、前述の一実施例では、集合Mの各文
字について、出現回数の多い順に文字キャッシュ領域2
4の区分を割り当てることとしたが、出現回数が同数の
ものがある場合には、原則として、描画すべき文字列で
先に出現する文字をキャッシュ候補として優先するとよ
い。
In the above-described embodiment, for each character in the set M, the character cache area 2 is arranged in descending order of the number of appearances.
Although four divisions are assigned, in principle, when there are the same number of appearances, the character that appears first in the character string to be drawn should be prioritized as a cache candidate.

【0069】また、本発明における文字キャッシュ方式
では、管理テーブル作成処理の際に、第1キャッシュ候
補の文字をまず文字キャッシュ領域24の各区分に割り
付けた後、集合Mの残っている他の文字に対しても文字
キャッシュ領域24への区分への割り付けを行うが、こ
のような処理展開は、文字キャッシュ領域24に常時、
無駄なくより多くの文字を保持させようとする主旨から
行うもので、具体的な処理手順を図1のステップ103
〜109に限定するものではない。
Further, in the character cache method according to the present invention, during the management table creating process, the first cache candidate character is first allocated to each section of the character cache area 24, and then the remaining characters of the set M are left. Is also assigned to the character cache area 24, but such processing expansion is always performed in the character cache area 24.
The purpose is to retain more characters without waste, and the specific processing procedure is step 103 in FIG.
It is not limited to ~ 109.

【0070】集合Mに残っている文字に対しては、既に
文字キャッシュ領域24上の各区分に保持が設定されて
いる文字の保持範囲と重複しない範囲で、出現回数の多
い順に、空いている区分へ割り付けられればよく、集合
Mに残っている文字の出現範囲が既に各区分に保持が決
まっている文字の保持範囲と重複するような場合があれ
ば、後から区分に割り付ける文字の保持範囲を、その文
字の文字列上の出現範囲より狭めて、重複を回避するこ
とも考えられる。
The characters remaining in the set M are vacant in the descending order of the number of appearances within a range that does not overlap the holding range of the characters that are already set to be held in each section of the character cache area 24. If there is a case where the appearance range of the characters remaining in the set M overlaps with the holding range of the characters that are already decided to be held in each section, the holding range of the characters to be assigned to the section later may be assigned. It is conceivable to narrow the occurrence range of the character on the character string to avoid duplication.

【0071】[0071]

【発明の効果】以上の説明から明らかなように、本発明
に係る文字キャッシュ方式では、描画すべき文字列中の
文字は、出現回数の多いものから順に文書描画システム
に装備された文字キャッシュ領域に保持され、描画処理
に有効に使用されることになる。
As is apparent from the above description, in the character cache system according to the present invention, the characters in the character string to be drawn are arranged in the character cache area in the document drawing system in descending order of appearance frequency. It will be stored in and will be effectively used for drawing processing.

【0072】従って、文字キャッシュ領域の大きさや描
画すべき文字列上の文字の配列等に関係なく、アウトラ
インフォントデータに基づくビットマップ展開処理の実
行回数を減らすという文字キャッシュ方式の本来の目的
を達成することができる。
Therefore, regardless of the size of the character cache area, the arrangement of characters on the character string to be drawn, etc., the original purpose of the character cache method of reducing the number of executions of bitmap expansion processing based on outline font data is achieved. can do.

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

【図1】本発明の一実施例における管理テーブル作成処
理の説明図である。
FIG. 1 is an explanatory diagram of management table creation processing according to an embodiment of the present invention.

【図2】本発明の一実施例を使った文字列描画処理の説
明図である。
FIG. 2 is an explanatory diagram of a character string drawing process using an embodiment of the present invention.

【図3】本発明の一実施例を実行する文書描画システム
の構成説明図である。
FIG. 3 is a diagram illustrating the configuration of a document drawing system that executes an embodiment of the present invention.

【図4】本発明の一実施例における文字キャッシュ領域
の説明図である。
FIG. 4 is an explanatory diagram of a character cache area according to an embodiment of the present invention.

【図5】本発明の一実施例における文字列の解析処理の
説明図である。
FIG. 5 is an explanatory diagram of a character string analysis process according to an embodiment of the present invention.

【図6】本発明の一実施例における文字列の解析処理の
説明図である。
FIG. 6 is an explanatory diagram of character string analysis processing according to an embodiment of the present invention.

【図7】本発明の一実施例における文字キャッシュ管理
テーブルの作成例の説明図である。
FIG. 7 is an explanatory diagram of an example of creating a character cache management table according to an embodiment of the present invention.

【図8】本発明の一実施例における文字キャッシュ管理
テーブルの作成例の説明図である。
FIG. 8 is an explanatory diagram of an example of creating a character cache management table according to an embodiment of the present invention.

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

10 システム本体 12 ページデータ生成モジュール 14 文書描画モジュール 20 描画処理プロセッサ 22 データメモリ 24 文字キャッシュ領域 26 イメージメモリ 29 外部記憶装置 30 アウトラインフォントデータファイル 32 CRT 34 プリンタ 10 system main body 12 page data generation module 14 document drawing module 20 drawing processor 22 data memory 24 character cache area 26 image memory 29 external storage device 30 outline font data file 32 CRT 34 printer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字のビットマップを保持する文字キャ
ッシュ領域を装備し、描画すべき文字のビットマップを
イメージメモリに生成する際に、前記文字キャッシュ領
域に既にビットマップが保持されている文字に対して
は、該文字キャッシュ領域に保持されているビットマッ
プをイメージメモリにコピーすることによって、描画す
べき文字のビットマップを新たにアウトラインフォント
データに基づいて作成するビットマップ展開処理を省い
て文字列描画処理の高速化を図る文書描画システムにお
いて、前記ビットマップ展開処理によって作成されたビ
ットマップの前記文字キャッシュ領域への保持処理を一
定の基準に従って実行する文字キャッシュ方式であっ
て、 前記文字キャッシュ領域は、1文字分のビットマップを
格納する単位区分に区画し、各区分に保持する文字とそ
の保持範囲とを文字キャッシュ管理テーブルによって管
理することとし、 一方、ビットマップ展開処理を開始する前に、描画すべ
き文字列中の各文字について、文字列上での出現回数と
出現範囲とを解析して、複数回出現する文字をキャッシ
ュ候補として抽出した集合Mを生成し、 前記文字キャッシュ領域の区画数がLであるとき、ま
ず、前記集合Mから、出現回数の多い順にL個の文字を
第1キャッシュ候補として抽出し、抽出した第1キャッ
シュ候補の各文字を、前記文字キャッシュ管理テーブル
に設定した文字キャッシュ領域上の各区分に割り付ける
とともに、各区分毎に割り付けた文字の保持範囲を設定
し、 第1キャッシュ候補を除いた集合Mの残りの文字に対し
ては、既に文字キャッシュ領域上の各区分に保持が設定
されている文字の保持範囲と重複しない範囲で、出現回
数の多い順に、前記文字キャッシュ管理テーブルに設定
された文字キャッシュ領域上の各区分に割り付け、さら
に、各区分毎に割り付けた文字の保持範囲を設定し、 前記文字キャッシュ管理テーブル上の設定に基づいて、
前記文字キャッシュ領域へのビットマップの保持処理を
実行することを特徴とする文字キャッシュ方式。
1. A character cache area for holding a bitmap of a character is provided, and when a bitmap of a character to be drawn is generated in an image memory, a character whose bitmap is already held in the character cache area is added to the character cache area. On the other hand, by copying the bitmap held in the character cache area to the image memory, a bitmap of the character to be drawn is newly created based on the outline font data. In a document drawing system for accelerating column drawing processing, a character cache method for executing a holding process of a bitmap created by the bitmap expanding process in the character cache area according to a certain standard, Area is a unit division that stores a bitmap for one character The character cache management table manages the characters held in each section and the holding range. On the other hand, before starting the bitmap expansion processing, the character string for each character in the character string to be drawn is The number of appearances and the range of appearance in the above are analyzed to generate a set M in which characters that appear multiple times are extracted as cache candidates. When the number of partitions of the character cache area is L, first, from the set M, , L characters are extracted as a first cache candidate in descending order of appearance frequency, and each character of the extracted first cache candidate is assigned to each section on the character cache area set in the character cache management table. The retention range of the characters allocated for each division is set, and for the remaining characters of the set M excluding the first cache candidate, the character cache area has already been set. Allocate to each section on the character cache area set in the character cache management table in the descending order of the number of occurrences within the range that does not overlap with the retention range of characters set to retain in each of the above categories, and further Set the retention range of the characters allocated for each, based on the settings on the character cache management table,
A character cache method characterized by executing a process of holding a bitmap in the character cache area.
JP3205141A 1991-08-15 1991-08-15 Character cache system Pending JPH0546141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3205141A JPH0546141A (en) 1991-08-15 1991-08-15 Character cache system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3205141A JPH0546141A (en) 1991-08-15 1991-08-15 Character cache system

Publications (1)

Publication Number Publication Date
JPH0546141A true JPH0546141A (en) 1993-02-26

Family

ID=16502105

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3205141A Pending JPH0546141A (en) 1991-08-15 1991-08-15 Character cache system

Country Status (1)

Country Link
JP (1) JPH0546141A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209651A (en) * 2005-01-31 2006-08-10 Mitsubishi Electric Corp Graphics hardware

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006209651A (en) * 2005-01-31 2006-08-10 Mitsubishi Electric Corp Graphics hardware
JP4699036B2 (en) * 2005-01-31 2011-06-08 三菱電機株式会社 Graphics hardware

Similar Documents

Publication Publication Date Title
US4807182A (en) Apparatus and method for comparing data groups
USRE35861E (en) Apparatus and method for comparing data groups
US4195338A (en) Computer typesetting
JPH01191270A (en) Graphic editor
JP2891322B2 (en) Smooth text display system
JPH0546141A (en) Character cache system
JPH02150919A (en) Display system for state display row at the time of dividing and displaying
JP3285995B2 (en) Typeface data management method and device
JPH06274145A (en) Character processor
JP2969924B2 (en) Document processing device
JPH0546142A (en) Character string drawing system
JP2969920B2 (en) Document processing device
JP2728916B2 (en) Character processing apparatus and method
JPS60221865A (en) Document processor
JPH03121489A (en) Photopattern generator
JPH03152659A (en) Word processor
JPH08174926A (en) Printer
JPH08129371A (en) Font cache managing device and method therefor
JPH0273455A (en) Character processing system
JPS60181835A (en) Information processor
JPH07160697A (en) Document processor
JPS6383872A (en) Information processor
JPH07200646A (en) Cad system and graphic processing method
JPH02241267A (en) Picture information processor
JPH04111054A (en) Document processor