JPH06183075A - Character processing device - Google Patents

Character processing device

Info

Publication number
JPH06183075A
JPH06183075A JP4353894A JP35389492A JPH06183075A JP H06183075 A JPH06183075 A JP H06183075A JP 4353894 A JP4353894 A JP 4353894A JP 35389492 A JP35389492 A JP 35389492A JP H06183075 A JPH06183075 A JP H06183075A
Authority
JP
Japan
Prior art keywords
character
memory
font
cache memory
font cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4353894A
Other languages
Japanese (ja)
Other versions
JP3119004B2 (en
Inventor
Yozo Kashima
洋三 鹿島
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP04353894A priority Critical patent/JP3119004B2/en
Publication of JPH06183075A publication Critical patent/JPH06183075A/en
Application granted granted Critical
Publication of JP3119004B2 publication Critical patent/JP3119004B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To provide a character processing device with which use efficiency of a font cache memory can be improved largely. CONSTITUTION:An appearance frequency count means 100 counts previously the number of times of appearance of diagram data such as characters in a scheduled range of a document. A request frequency count means 200 reduces the number of times of appearance of the characters one by one at every print request and calculates remaining number of times of request of the diagram data such as the characters. A memory remaining quantity detect means 300 detects remaining quantity of memory of a font cache memory 500. A selection means 400 deletes selectively a dot data of a character whose remaining number of times of request is few from the font cache memory 500 when the memory remaining quantity detect means 300 detects shortage of the remaining quantity of memory.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字処理装置に係り、特
に、ベクトル形式で表された文字等の図形データ(ベク
トルフォント)をドット形式のデータに展開して登録す
るフォントキャッシュメモリを備えた文字処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing device, and more particularly, to a character cache device for expanding graphic data (vector font) of characters or the like expressed in vector format into dot format data and registering the data. It relates to a character processing device.

【0002】[0002]

【従来の技術】ベクトル形式で表された文字データを用
いると高品質な文字が得られるという利点があるが、一
方では、ドット形式の文字データに展開するのに時間が
かかるという問題がある。
2. Description of the Related Art Using character data represented in a vector format has an advantage that high quality characters can be obtained, but on the other hand, there is a problem that it takes time to develop the character data in dot format.

【0003】この問題を解決するために、一度展開され
たドット形式の文字データをフォントキャッシュメモリ
に登録しておき、後に同じ文字が使用された時には、フ
ォントキャッシュメモリ中のデータを再利用し、高速に
文書を出力するという技術が開発された。しかし、フォ
ントキャッシュメモリの容量には限りがあるため、フォ
ントキャッシュメモリへ登録する文字の選定が問題にな
る。
In order to solve this problem, the character data in the dot format which has been expanded once is registered in the font cache memory, and when the same character is used later, the data in the font cache memory is reused, A technique for outputting a document at high speed was developed. However, since the capacity of the font cache memory is limited, selection of characters to be registered in the font cache memory becomes a problem.

【0004】このような問題を解決するために、例え
ば、特開平1−214449号公報では、過去にアクセ
スされた回数を文字ごとに記憶しておき、フォントキャ
ッシュメモリがフルになると、それまででアクセス回数
の最も少ないものを削除対象とすることにより、フォン
トキャッシュメモリに登録されている文字の使用効率の
向上を図っている。
In order to solve such a problem, for example, in Japanese Unexamined Patent Publication No. 1-214449, the number of times of past access is stored for each character, and when the font cache memory becomes full, it is up to then. By making the object with the least access count to be deleted, the usage efficiency of the characters registered in the font cache memory is improved.

【0005】[0005]

【発明が解決しようとする課題】上記公報に開示された
技術は、各文字が文書全体にわたって一様に出現する場
合には有効であるが、文書の前後で各文字の使用頻度に
バラツキがあると、不要なデータが残って有用なデータ
が削除されてしまうことがあった。
The technique disclosed in the above publication is effective when each character appears uniformly over the entire document, but there are variations in the frequency of use of each character before and after the document. Then, unnecessary data may remain and useful data may be deleted.

【0006】すなわち、使用頻度が文書の前半よりも後
半において高い文字Aと、その逆に使用頻度が文書の後
半よりも前半において高い文字Bとを比較した場合、文
字Aが頻繁に出現しはじめる前にフォントキャッシュメ
モリがフルになると、文字Aが文字Bよりも優先的に削
除されてしまうため、残すべき文字Aが削除されてしま
い、フォントキャッシュメモリを有効活用できないとい
う問題があった。
That is, when the character A whose usage frequency is high in the latter half of the document and the character B whose usage frequency is high in the latter half of the document are compared, the character A starts to appear frequently. If the font cache memory becomes full before, the character A is deleted with priority over the character B, so that the character A that should be left is deleted, and there is a problem that the font cache memory cannot be effectively used.

【0007】本発明の目的は、上記した従来技術の問題
点を解決し、文書の前後で文字の使用頻度にバラツキが
ある場合でも、フォントキャッシュメモリの使用効率を
大幅に向上することができる文字処理装置を提供するこ
とにある。
An object of the present invention is to solve the above-mentioned problems of the prior art and to significantly improve the usage efficiency of the font cache memory even if the usage frequency of characters varies before and after the document. It is to provide a processing device.

【0008】[0008]

【課題を解決するための手段】上記した目的を達成する
ために、本発明では、ベクトルフォントをドットパター
ンに展開して登録するフォントキャッシュメモリを備え
た文字処理装置において、文書の予定の範囲を対象に、
各文字の出現回数を予め計数する出現回数計数手段と、
前記出現回数および印字要求回数に基づいて、残りの要
求回数を文字ごとに計数する要求回数計数手段と、フォ
ントキャッシュメモリのメモリ残量を検出するメモリ残
量検出手段と、メモリ残量が予定値を下回ると、前記残
りの要求回数に基づいて、フォントキャッシュメモリに
登録されたドットデータの取捨選択を行う手段とを具備
した。
In order to achieve the above-mentioned object, in the present invention, in a character processing device equipped with a font cache memory for expanding and registering a vector font in a dot pattern, a predetermined range of a document is set. To target,
An appearance number counting means for counting the number of appearances of each character in advance,
Based on the number of appearances and the number of print requests, a request count counting unit that counts the remaining request count for each character, a memory remaining amount detection unit that detects the memory remaining amount of the font cache memory, and a memory remaining amount When it is less than, the means for selecting the dot data registered in the font cache memory based on the remaining number of requests is provided.

【0009】[0009]

【作用】 出現回数計数手段には、文書のある範囲内で
の各文字の出現回数が文字ごとに登録され、要求回数計
数手段は、実際の印字動作時における残りの要求回数を
文字ごとに算出する。したがって、残りの要求回数が少
ない文字を優先的にフォントキャッシュメモリから削除
することにより、フォントキャッシュメモリを効率的に
使用することができるようになる。
The number of appearances counting means registers the number of appearances of each character within a certain range of the document for each character, and the request number counting means calculates the remaining number of requests in the actual printing operation for each character. To do. Therefore, the font cache memory can be efficiently used by preferentially deleting the remaining characters with a small request count from the font cache memory.

【0010】[0010]

【実施例】以下に、図面を参照して、本発明を詳細に説
明する。図1は、本発明の機能を説明するためのブロッ
ク図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram for explaining the function of the present invention.

【0011】出現回数計数手段100は、文書の予定の
範囲を対象に、各文字等図形データの出現回数を予め計
数する。要求回数計数手段200は、印字要求があるご
とに、当該文字の前記出現回数を1づつ減じ、各文字等
図形データの残りの要求回数を算出する。
The appearance number counting means 100 counts the number of appearances of each graphic data such as characters in advance in a predetermined range of a document. The number-of-requests counting unit 200 subtracts the number of appearances of the character by 1 each time there is a print request, and calculates the number of remaining requests for graphic data such as each character.

【0012】メモリ残量検出手段300は、フォントキ
ャッシュメモリ500のメモリ残量を検出する。取捨選
択手段400は、前記メモリ残量検出手段300がメモ
リ残量不足を検知すると、前記残りの要求回数が少ない
文字のドットデータをフォントキャッシュメモリ500
から選択的に削除する。
The memory remaining amount detecting means 300 detects the memory remaining amount of the font cache memory 500. When the memory remaining amount detecting unit 300 detects that the memory remaining amount is insufficient, the sorting / selecting unit 400 stores the dot data of the character with the smaller number of remaining requests, in the font cache memory 500.
Selectively delete from.

【0013】図2は、本発明の一実施例の文字処理装置
(プリンタ装置)のハード構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a hardware configuration of a character processing device (printer device) according to an embodiment of the present invention.

【0014】図において、ROM2には、当該文字処理
装置の全体の動作を制御するプログラム、フォントキャ
ッシュメモリ8を制御するプログラム、電源を入れた直
後のプリンタの動作を規定するプログラム等が格納され
ている。RAM3は、CPU1のスタックの退避エリア
等に使用される。
In the figure, the ROM 2 stores a program for controlling the overall operation of the character processing device, a program for controlling the font cache memory 8, a program for defining the operation of the printer immediately after the power is turned on, and the like. There is. The RAM 3 is used as a save area for the stack of the CPU 1.

【0015】CPU1は、プリンタインタフェイス4を
通じて、プリンタエンジン5に命令やイメージデータを
送信し、逆に、プリンタエンジン5は、該プリンタイン
タフェイス4を通じて、プリンタエンジン内部の状態を
CPU1に送信する。プリンタエンジン5は、プリンタ
インタフェイス4を通じて送信されたイメージデータ
を、実際に紙に印字する。
The CPU 1 sends commands and image data to the printer engine 5 through the printer interface 4, and conversely, the printer engine 5 sends the internal state of the printer engine to the CPU 1 through the printer interface 4. The printer engine 5 actually prints the image data transmitted through the printer interface 4 on paper.

【0016】前記CPU1は、ホストインタフェイス7
を介して、ホストワークステーション6から印字すべき
文書のデータやプリント制御命令等を受取り、それらを
もとに、ベクトルフォントメモリ9に記憶されたベクト
ル形式のデータをドット形式のデータに展開してページ
メモリ10に1ページ分のビットマップイメージを形成
し、プリンタエンジン5に送出するという動作を制御す
る。
The CPU 1 has a host interface 7
Via the host workstation 6 to receive document data to be printed, print control commands, etc., and based on them, the vector format data stored in the vector font memory 9 is expanded into dot format data. The operation of forming a bitmap image for one page in the page memory 10 and sending it to the printer engine 5 is controlled.

【0017】また、CPU1は、前記取捨選択手段40
0およびメモリ残量検出手段300としても機能する。
Further, the CPU 1 has the sorting / selecting means 40.
0 and the remaining memory amount detecting means 300 also function.

【0018】次に、前記ホストワークステーション6か
らCPU1が受取る文書データの構成の一例を、図9を
参照して説明する。
Next, an example of the structure of the document data received by the CPU 1 from the host workstation 6 will be described with reference to FIG.

【0019】文書データ1ページ分の構成は、位置指定
命令と、文書の内容である一字々々に対する命令と、ペ
ージ印刷命令等からなっている。位置指令命令は文書の
一字目の印字位置を指示する命令である。前記一字々々
に対する命令は、フォント設定命令、文字印字命令等か
らなっている。また、ページ印刷命令は、文書データの
各ページの末尾に設けられている。なお、図9には、本
発明の動作と関係する命令のみが記されており、他の命
令の記載は省略されている。
The structure of one page of document data is made up of a position designation command, a command for each character of the document, a page print command, and the like. The position command command is a command for instructing the print position of the first character of the document. The commands for each of the characters include a font setting command, a character printing command, and the like. The page print command is provided at the end of each page of document data. In FIG. 9, only the instructions related to the operation of the present invention are shown and the other instructions are omitted.

【0020】次に、図3、図4、図5に示されているフ
ローチャート、および図9の文書データを参照して、文
書処理装置のCPU1のフォントキャッシュメモリの制
御動作を説明する。
Next, the control operation of the font cache memory of the CPU 1 of the document processing apparatus will be described with reference to the flow charts shown in FIGS. 3, 4 and 5 and the document data shown in FIG.

【0021】図3のステップS1において、CPU1は
まずホストワークステーション6から文書データを受取
る。該文書データは、ページメモリ10の空き領域、又
はRAM3に保存される。
In step S1 of FIG. 3, the CPU 1 first receives document data from the host workstation 6. The document data is saved in the free space of the page memory 10 or the RAM 3.

【0022】次に、ステップS2へ進んで、使用されて
いる文字を調べる範囲の設定が行われる。例えば、文書
データの1ページが該範囲として設定される。この範囲
の設定は、どのように行っても良いが、本実施例では、
ホストワークステーション6からの指示によって決定す
るものとする。
Next, the process proceeds to step S2, and the range for checking the used characters is set. For example, one page of document data is set as the range. This range may be set in any manner, but in this embodiment,
It is determined according to an instruction from the host workstation 6.

【0023】いま、前記ステップS2の範囲設定によ
り、図9に示されている文書データが設定されたとする
と、ステップS3では、各文字の出現回数を求める為の
プレスキャン処理が実行される。図4は、当該プレスキ
ャン処理を示したフローチャートである。
Now, assuming that the document data shown in FIG. 9 has been set by the range setting in step S2, a prescan process for determining the number of appearances of each character is executed in step S3. FIG. 4 is a flowchart showing the prescan processing.

【0024】プレスキャン処理では、図4のステップS
11において、指定された範囲から1命令が読み込ま
れ、初めは位置指定命令が入力されるので、ステップS
12の判断は否定になり、ステップS13では、フォン
ト設定命令であるか否かの判断がなされる。この判断が
否定になると、ステップS15では、文字印字命令か否
かの判断がなされる。この実施例では、この判断も否定
となり、ステップS11へ戻って次の1命令が入力され
る。
In the prescan process, step S in FIG.
In step 11, one command is read from the specified range, and the position specifying command is input at the beginning.
The determination of 12 is negative, and in step S13, it is determined whether or not it is a font setting command. If this judgment is negative, it is judged in step S15 whether or not it is a character print command. In this embodiment, this determination also becomes negative, and the process returns to step S11 and the next one command is input.

【0025】図9から明らかなように、今度はフォント
設定命令(12ポ、明朝体)が入力されるので、ステッ
プS12の判断が再び否定になってステップS13へ進
む。今度はステップS13の判断が肯定となるのでステ
ップS14に進み、カレント・フォントが更新される。
すなわち、本例では、カレント・フォントが「12ポ、
明朝体」に設定される。
As is apparent from FIG. 9, since the font setting command (12-po, Mincho type) is input this time, the determination in step S12 is negative and the process proceeds to step S13. This time, the determination in step S13 is affirmative, so the process proceeds to step S14, and the current font is updated.
That is, in this example, the current font is "12
It is set to "Ming Dynasty".

【0026】ステップS14の処理が終わるとステップ
S11に戻り、次の1命令が入力される。本例では、文
字印字命令(あ)が入力される。このため、ステップS
11に続くステップS12、S13の各判断は否定とな
り、ステップS15の判断が肯定となってステップS1
6に進む。
When the process of step S14 is completed, the process returns to step S11, and the next one command is input. In this example, a character print command (A) is input. Therefore, step S
The determinations in steps S12 and S13 following 11 are negative, and the determination in step S15 is affirmative and step S1.
Go to 6.

【0027】ステップS16では、文字別カウンタが設
定されているか否かの判断がなされ、設定されていない
時にはステップS17に進んで、前記カレント・フォン
ト「12ポ、明朝体」と文字コード(あ)に対応するカ
ウンタ、すなわち文字別カウンタが設定され、これが初
期化(=1)される。
In step S16, it is judged whether or not the character-by-character counter is set. If not, the process proceeds to step S17, in which the current font "12-po, Mincho-tai" and the character code (A ), That is, a counter for each character is set, and this is initialized (= 1).

【0028】上記の処理が行われると、再度ステップS
11に戻り、次の1命令の入力が行われる。ここで、前
記ページ印刷命令、フォント設定命令、文字印字命令以
外の命令が入力された場合には、ステップS12、S1
3およびS15がいずれも否定となり、ステップS11
に戻って次の命令が入力されることとなる。
When the above processing is performed, step S is performed again.
Returning to step 11, the next one instruction is input. If an instruction other than the page print instruction, font setting instruction, and character print instruction is input, steps S12 and S1 are performed.
3 and S15 are both negative, and step S11
Then, the next command will be input.

【0029】ステップS11において、次の文字である
文字コード(い)に対するフォント設定が入力される
と、前記と同様の動作により、ステップS14でカレン
ト・フォント「12ポ、明朝体」が設定され、ステップ
S11に戻る。
When the font setting for the character code (i), which is the next character, is input in step S11, the current font "12 po, Mincho type" is set in step S14 by the same operation as described above. , And returns to step S11.

【0030】ステップS11で文字印字命令(い)が入
力されると、ステップS12、S13が否定、S15が
肯定になってステップS16に進む。まだ、文字コード
(い)に対するカウンタは設定されていないので、ステ
ップS17に進んで、カレント・フォント「12ポ、明
朝体」と文字コード(い)に対応するカウンタが設定さ
れ、これが初期化(=1)される。
When the character print command (YES) is input in step S11, steps S12 and S13 are negative and S15 is affirmative, and the process proceeds to step S16. Since the counter for the character code (i) has not been set yet, the process proceeds to step S17, and the counter corresponding to the current font "12 po, Mincho type" and the character code (i) is set and initialized. (= 1).

【0031】次に、ステップS11において、3つ目の
文字である文字コード(う)に対するフォント設定が入
力されると、ステップS14ではカレント・フォント
「13ポ、ゴシック体」が設定され、ステップS17で
は、カレント・フォント「13ポ、ゴシック体」と文字
コード(う)に対応するカウンタが設定され、これが初
期化されることになる。
Next, in step S11, when the font setting for the character code (U) which is the third character is input, the current font "13 po, Gothic font" is set in step S14, and step S17 Then, the counter corresponding to the current font "13 po, Gothic font" and the character code (U) is set, and this is initialized.

【0032】次いで、ステップS11において、4つ目
の文字である文字コード(あ)に対するフォント設定命
令が入力されると、ステップS14では再びカレント・
フォント「12ポ、明朝体」が設定され、今度はステッ
プS16の判断が肯定となるので、ステップS18にお
いて、前記文字(あ)に対する文字別カウンタの値がイ
ンクリメントされて2となる。
Next, in step S11, when a font setting command for the character code (A) which is the fourth character is input, in step S14 the current
Since the font "12 po, Mincho type" is set, and the determination in step S16 is affirmative this time, the value of the character counter for the character (A) is incremented to 2 in step S18.

【0033】以上の動作が、文書データ1ページ分繰返
されると、前記文字別カウンタには、該1ページの文書
データに現れた各文字の回数(頻度)が文字別に計数さ
れたことになる。
When the above operation is repeated for one page of document data, the number of times (frequency) of each character appearing in the document data of the one page is counted for each character in the character counter.

【0034】文書データの最後の命令であるページ印刷
命令が、ステップS11で入力されると、ステップS1
2の判断は肯定となり、図3のステップS4へ進んで、
CPU1はホストワークステーション6から文書データ
を受取ってビットマップイメージに展開する処理を実行
する。
When the page print command, which is the last command of the document data, is input in step S11, step S1
The determination of 2 is affirmative, and the process proceeds to step S4 of FIG.
The CPU 1 receives document data from the host workstation 6 and develops it into a bitmap image.

【0035】該展開処理の一例を、図5のフローチャー
トを参照して説明する。
An example of the expansion processing will be described with reference to the flowchart of FIG.

【0036】展開処理がスタートすると、ステップS1
9では、1命令の読み込みが行われる。ステップS2
0、S22およびS24では、読込まれた命令がページ
印刷命令か、フォント設定命令か、あるいは文字印字命
令かの判断がなされる。
When the expansion process starts, step S1
At 9, one instruction is read. Step S2
At 0, S22 and S24, it is determined whether the read command is a page print command, a font setting command, or a character print command.

【0037】ページ印刷命令の場合には、ステップS2
0が肯定となってメインルーチンのステップS5へ進
む。フォント設定命令の場合には、ステップS22が肯
定となってステップS23に進み、カレントフォントを
更新する動作が行われる。
In the case of a page print command, step S2
When 0 is affirmed, the process proceeds to step S5 of the main routine. In the case of the font setting command, step S22 becomes affirmative and the process proceeds to step S23 to perform the operation of updating the current font.

【0038】さらに、文字印字命令であった場合には、
ステップS24が肯定となってステップS25へ進み、
文字コードおよびカレントフォントをキーにしてフォン
トキャッシュメモリ8を検索する動作が行われる。一
方、前記の三つの命令以外の命令であった場合には、ス
テップS26へ進んで、その命令に応答した処理が実行
される。
Further, if the command is a character print command,
If step S24 is affirmative, the process proceeds to step S25,
The operation of searching the font cache memory 8 is performed using the character code and the current font as a key. On the other hand, if the command is other than the above three commands, the process proceeds to step S26, and the process in response to the command is executed.

【0039】CPU1が前記文字印字命令を読込んだ場
合には、ステップS25の処理により、フォントキャッ
シュメモリ8の検索が行われ、ステップS27では、当
該文字がフォントキャッシュメモリ8に登録されている
か否かの判断が行われる。
When the CPU 1 reads the character print command, the font cache memory 8 is searched by the processing in step S25, and in step S27, it is determined whether or not the character is registered in the font cache memory 8. The decision is made.

【0040】登録されていると判断されると、ステップ
S33に進んで、既にフォントキャッシュメモリに登録
されている展開文字(ビットマップイメージ)を、前記
ページメモリ10に出力する処理が行われる。ステップ
S35では、出力処理した文字に関する文字別カウンタ
の値が1だけ減ぜられる。
When it is determined that the character is registered, the process proceeds to step S33, and the expanded character (bitmap image) already registered in the font cache memory is output to the page memory 10. In step S35, the value of the character-by-character counter for the output-processed character is decremented by 1.

【0041】また、登録されていないと判定された時
(ステップS27が否定)には、ステップS28へ進ん
でフォントキャッシュメモリ8のメモリ残量が検知され
る。メモリ残量が十分であるとステップS32へ進み、
ベクトルフォントがベクトルフォントメモリ9から読み
出されてビットマップイメージに展開され、フォントキ
ャッシュメモリ8へ登録される。ステップS33では、
展開文字がページメモリ10に出力され、ステップS3
5では、処理した文字に関する文字別カウンタの値が1
だけ減ぜられる。
When it is determined that the font cache memory 8 is not registered (NO at step S27), the process proceeds to step S28, and the remaining memory capacity of the font cache memory 8 is detected. If the remaining memory capacity is sufficient, the process proceeds to step S32,
The vector font is read from the vector font memory 9, developed into a bitmap image, and registered in the font cache memory 8. In step S33,
The expanded character is output to the page memory 10, and step S3
In 5, the value of the character counter for the processed character is 1
Can be reduced only.

【0042】このようにして文字の展開、出力が進み、
その後、前記ステップS28において、メモリ残量が不
十分でフォントキャッシュメモリ8への登録が不可能だ
と判断されると、ステップS29では、今回展開した文
字に関する文字別カウンタの値よりも小さいカウント値
の文字、すなわち、以降のアクセス回数が少ない文字が
フォントキャッシュメモリ8に存在するか否かが判断さ
れる。
In this way, character expansion and output proceed,
Thereafter, when it is determined in step S28 that the remaining memory capacity is insufficient and registration in the font cache memory 8 is impossible, in step S29, a count value smaller than the value of the character-by-character counter for the character developed this time. It is determined whether or not the character of, that is, the character of which the number of times of subsequent accesses is small is present in the font cache memory 8.

【0043】ステップS30において存在すると判断さ
れると、ステップS31では、CPU1は、それらの中
でカウント値が最小のものをフォントキャッシュメモリ
8から削除する。
When it is determined in step S30 that there is one, the CPU 1 deletes the one having the smallest count value from the font cache memory 8 in step S31.

【0044】一方、存在しないと判断されると、ステッ
プS34では、当該文字がベクトルフォントから展開さ
れてページメモリ10へ出力される。
On the other hand, when it is determined that the character does not exist, the character is developed from the vector font and output to the page memory 10 in step S34.

【0045】上記の処理が終わると、再びステップS1
9に戻って、次の命令を読込む動作が行われる。以上の
動作が継続して繰返し行われ、文書1ページ分の処理が
終わると、ステップS20の判定が肯定となり、メイン
ルーチンのステップS5へ進むことになる。
When the above processing is completed, step S1 is executed again.
Returning to 9, the operation of reading the next instruction is performed. When the above operation is continuously repeated and the processing for one page of the document is completed, the determination in step S20 becomes affirmative, and the process proceeds to step S5 of the main routine.

【0046】ステップS5、S6では、CPU1が1ペ
ージ分のビットマップイメージを、ページメモリ10か
らプリンタI/F4を介してプリンタエンジン5に送
る。これにより、印字が実行される。
In steps S5 and S6, the CPU 1 sends the bitmap image for one page from the page memory 10 to the printer engine 5 via the printer I / F 4. As a result, printing is executed.

【0047】以上のように、本実施例によれば、予め各
文字の出現回数をカウントし、アクセスされるごとにカ
ウント値を減じて以降のアクセス回数を求め、フォント
キャッシュメモリ8のメモリ残量がなくなると、今後の
アクセス回数が少ないものから削除してメモリ容量を確
保するようにしたので、フォントキャッシュメモリ8の
使用効率を大幅に向上することができる。
As described above, according to the present embodiment, the number of appearances of each character is counted in advance, the count value is decremented each time the character is accessed, and the subsequent number of accesses is calculated. When there is no more, the memory capacity is secured by deleting those that are accessed less frequently in the future, so that the usage efficiency of the font cache memory 8 can be greatly improved.

【0048】次に、本発明の第2実施例を、図6、図
7、図8のフローチャートを参照して説明する。なお、
前記と同一の符号を付したステップでは同一または同等
の処理が実行されるので、その説明は省略する。
Next, a second embodiment of the present invention will be described with reference to the flow charts of FIGS. 6, 7 and 8. In addition,
Since the same or equivalent processing is executed in the steps denoted by the same reference numerals as the above, the description thereof will be omitted.

【0049】上記した第1実施例では、出現文字の種類
の多少すなわち文字別カウンタの多少にかかわらず、1
ページごとにプレスキャンおよび展開を繰り返すものと
して説明したが、本実施例では、文字別カウンタの設定
数に応じてプレスキャンの範囲を可変するようにした点
に特徴がある。
In the above-described first embodiment, regardless of the kind of the appearance character, that is, the character counter,
Although the prescan and the expansion are repeated for each page, the present embodiment is characterized in that the range of the prescan is changed according to the set number of the character counter.

【0050】本実施例が第1実施例と比べて異なる点
は、ステップS70〜S72(図7)およびS39、S
40(図8)を追加したところにある。そこで、該ステ
ップSS70〜S72およびS39、S40についての
み、説明する。
This embodiment is different from the first embodiment in that steps S70 to S72 (FIG. 7) and steps S39 and S are different.
40 (FIG. 8) has been added. Therefore, only steps SS70 to S72 and steps S39 and S40 will be described.

【0051】プレスキャンが開始されると、図7におい
て、ステップS70ではページカウンタが初期化され
る。
When the prescan is started, the page counter is initialized in step S70 in FIG.

【0052】その後、ステップS12において、読み込
まれた命令がページ印刷命令であったと判断されるとス
テップS71へ進み、前記ページカウンタのカウント値
がインクリメントされる。ステップS72では、設定さ
れた文字別カウンタの数が少ないか否かが判断され、少
ないと判断されるとステップS11へ戻る。
Thereafter, when it is determined in step S12 that the read instruction is a page print instruction, the process proceeds to step S71, and the count value of the page counter is incremented. In step S72, it is determined whether or not the number of set character counters is small, and if it is determined that it is small, the process returns to step S11.

【0053】このようにしてプレスキャンが進み、ステ
ップS72において、設定された文字別カウンタの数が
多いと判断されるとメインルーチンのステップS4へ進
む。この結果、このときのページカウンタの値がプレス
キャンされた範囲となる。
In this manner, the prescan proceeds, and if it is determined in step S72 that the number of character counters set is large, the process proceeds to step S4 of the main routine. As a result, the value of the page counter at this time is in the prescanned range.

【0054】また、展開処理が実行されると、図8に示
したように、ステップS20において、読み込まれた命
令がページ印刷命令であったと判断されると、ステップ
S39では、前記ページカウンタのカウント値がデクレ
メントされる。ステップS40では、ページカウンタの
カウント値がゼロであるか否かが判断され、ゼロになる
まで展開処理が継続される。
When the expansion processing is executed, as shown in FIG. 8, when it is determined in step S20 that the read instruction is a page print instruction, in step S39, the page counter is counted. The value is decremented. In step S40, it is determined whether or not the count value of the page counter is zero, and the expansion process is continued until it becomes zero.

【0055】本実施例によれば、ホストワークステーシ
ョン等から受取った文書の1ページ目の全ての文字をフ
ォントキャッシュメモリに登録した後に、なお文字別カ
ウンタの設定数が少なく、フォントキャッシュメモリに
空き容量があるような場合に、この空き容量を該文書の
2ページ目の文字に割当てることができる。よって、フ
ォントキャッシュメモリを、空きを残すことなく利用す
ることができるので、一層の有効利用を図ることができ
る。
According to the present embodiment, after all the characters of the first page of the document received from the host workstation or the like are registered in the font cache memory, the number of character counters set is still small and the font cache memory has no space. If there is space, this free space can be assigned to the characters on the second page of the document. Therefore, the font cache memory can be used without leaving a vacant space, so that more effective use can be achieved.

【0056】[0056]

【発明の効果】以上の説明から明らかなように、本発明
によれば、文書のある範囲を検索することによって得ら
れる各文字の出現回数と、この範囲を実際に処理した際
の各文字の要求回数とに基づいて、フォントキャッシュ
メモリから削除する文字を決定するようにしたので、フ
ォントキャッシュメモリを効率的に使用することができ
るという効果がある。
As is apparent from the above description, according to the present invention, the number of appearances of each character obtained by searching a certain range of a document and the number of appearances of each character when this range is actually processed. Since the character to be deleted from the font cache memory is determined based on the number of requests, there is an effect that the font cache memory can be used efficiently.

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

【図1】 本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】 本発明の一実施例である文書処理装置のブロ
ック図である。
FIG. 2 is a block diagram of a document processing apparatus that is an embodiment of the present invention.

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

【図4】 図3のフローチャートのステップS3の詳細
を示すフローチャートである。
FIG. 4 is a flowchart showing details of step S3 in the flowchart of FIG.

【図5】 図3のフローチャートのステップS4の詳細
を示すフローチャートである。
5 is a flowchart showing details of step S4 in the flowchart of FIG.

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

【図7】 図6のフローチャートのステップS3aの詳
細を示すフローチャートである。
7 is a flowchart showing details of step S3a in the flowchart of FIG.

【図8】 図6のフローチャートのステップS4aの詳
細を示すフローチャートである。
FIG. 8 is a flowchart showing details of step S4a in the flowchart of FIG.

【図9】 文書データの概要を示す図である。FIG. 9 is a diagram showing an outline of document data.

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

1…CPU、2…ROM、3…RAM、4…プリンタI
/F、5…プリンタエンジン、6…ホストW/S、7…
ホストI/F、8、500…フォントキャッシュメモ
リ、9…ベクトルフォントメモリ、10…ページメモ
リ、100…出現回数計数手段、200…要求回数計数
手段、300…メモリ残量検出手段、400…取捨選択
手段
1 ... CPU, 2 ... ROM, 3 ... RAM, 4 ... Printer I
/ F, 5 ... Printer engine, 6 ... Host W / S, 7 ...
Host I / F, 8, 500 ... Font cache memory, 9 ... Vector font memory, 10 ... Page memory, 100 ... Appearance count counting means, 200 ... Request count counting means, 300 ... Memory remaining amount detecting means, 400 ... Sorting selection means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ベクトルフォントをドットパターンに展
開して登録するフォントキャッシュメモリを備え、未登
録データはベクトルフォントから展開し、既登録データ
はフォントキャッシュメモリから読み出す文字処理装置
において、 文書の予定の範囲を対象に、各文字の出現回数を予め計
数する出現回数計数手段と、 前記出現回数および印字要求回数に基づいて、残りの要
求回数を文字ごとに計数する要求回数計数手段と、 フォントキャッシュメモリのメモリ残量を検出するメモ
リ残量検出手段と、 前記メモリ残量が予定値を下回ると、前記計数された残
りの要求回数に基づいて、フォントキャッシュメモリに
登録されたドットデータの取捨選択を行う手段とを具備
したことを特徴とする文字処理装置。
1. A character processing device comprising a font cache memory for expanding and registering a vector font in a dot pattern, wherein unregistered data is expanded from the vector font and registered data is read from the font cache memory. Appearance number counting means for counting the number of appearances of each character in advance in a range, request number counting means for counting the remaining request number for each character based on the number of appearances and print request number, and a font cache memory A memory remaining amount detecting means for detecting the remaining memory amount, and when the remaining memory amount falls below a planned value, the dot data registered in the font cache memory is selected based on the counted number of remaining requests. A character processing device comprising: means for performing.
JP04353894A 1992-12-16 1992-12-16 Character processor Expired - Fee Related JP3119004B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04353894A JP3119004B2 (en) 1992-12-16 1992-12-16 Character processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04353894A JP3119004B2 (en) 1992-12-16 1992-12-16 Character processor

Publications (2)

Publication Number Publication Date
JPH06183075A true JPH06183075A (en) 1994-07-05
JP3119004B2 JP3119004B2 (en) 2000-12-18

Family

ID=18433938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04353894A Expired - Fee Related JP3119004B2 (en) 1992-12-16 1992-12-16 Character processor

Country Status (1)

Country Link
JP (1) JP3119004B2 (en)

Also Published As

Publication number Publication date
JP3119004B2 (en) 2000-12-18

Similar Documents

Publication Publication Date Title
US5577184A (en) Character pattern output apparatus
JP2844575B2 (en) Printing equipment
JPH05552A (en) Printing device
EP0357383A2 (en) Output apparatus
KR100257843B1 (en) Character processor, character processing method, and memory
JPH06106810A (en) Method for forming image and its device
JPH06183075A (en) Character processing device
JP3049158B2 (en) Character processing device and character processing method of character processing device
JP3817077B2 (en) Print processing system and image forming apparatus
JPH06110437A (en) Method and device for character processing
JPH06183062A (en) Character processing device
JPH05238077A (en) Controlling method of cache of printing apparatus
JP2687478B2 (en) Printing device
JPH09212312A (en) Printer controller and its registered data managing method
JPH09188011A (en) Apparatus and method for controlling memory means
JP2002067423A (en) Printer
JP3245401B2 (en) Document output control device and document output control method
JP2002120418A (en) Printer device and image processing device comprising the printer device
JPH08230245A (en) Printing control device and method
JP2710131B2 (en) Character processing apparatus and method
JP3122567B2 (en) Image recording apparatus and control method thereof
JPH04250079A (en) Printer
JPH08310060A (en) Printing device, printing system, and method for printing
JPH11153990A (en) Printing device
JPH08241183A (en) Device and system for printing

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees