JP2013169763A - Image forming apparatus, and character drawing program - Google Patents

Image forming apparatus, and character drawing program Download PDF

Info

Publication number
JP2013169763A
JP2013169763A JP2012036554A JP2012036554A JP2013169763A JP 2013169763 A JP2013169763 A JP 2013169763A JP 2012036554 A JP2012036554 A JP 2012036554A JP 2012036554 A JP2012036554 A JP 2012036554A JP 2013169763 A JP2013169763 A JP 2013169763A
Authority
JP
Japan
Prior art keywords
character
cache
font
font cache
unit
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
JP2012036554A
Other languages
Japanese (ja)
Other versions
JP5701234B2 (en
Inventor
Kageyoshi Kanazawa
景善 金沢
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2012036554A priority Critical patent/JP5701234B2/en
Publication of JP2013169763A publication Critical patent/JP2013169763A/en
Application granted granted Critical
Publication of JP5701234B2 publication Critical patent/JP5701234B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image forming apparatus capable of improving utilization efficiency of a memory, regarding a font cache.SOLUTION: An MFP (Multifunction Peripheral) secures a font cache on a RAM individually in accordance with a font type of characters, a font size and resolution (S134), and when a bit map image of the characters is stored in the font cache (S140; YES), the bit map image is acquired from the font cache (S137), and an expansion unit as a unit for expanding the font cache is determined in accordance with the font size of the characters, the resolution and a number of kinds of the characters (S133), and when a capacity for storing the bit map image of the characters does not remain in an unused part of the font cache (S142; NO), the font cache is expanded by the expansion unit (S143).

Description

本発明は、描画された文字のビットマップイメージを一時的に格納するメモリー上の領域であるフォントキャッシュを活用する画像形成装置に関する。   The present invention relates to an image forming apparatus that utilizes a font cache, which is an area on a memory that temporarily stores a bitmap image of a drawn character.

従来、フォントキャッシュを活用する画像形成装置として、サイズが固定であるフォントキャッシュを予め確保し、そのフォントキャッシュに文字のビットマップイメージを格納していくものが知られている(特許文献1参照。)。   2. Description of the Related Art Conventionally, as an image forming apparatus that uses a font cache, an apparatus that secures a font cache having a fixed size in advance and stores a bitmap image of characters in the font cache is known (see Patent Document 1). ).

特開平10−202963号公報JP-A-10-202963

しかしながら、従来の画像形成装置においては、サイズが固定であるフォントキャッシュを予め確保するので、不必要に広い領域をフォントキャッシュとして確保してしまう場合があり、メモリーの使用効率が悪いという問題がある。   However, in the conventional image forming apparatus, since a font cache having a fixed size is secured in advance, an unnecessarily large area may be secured as the font cache, and there is a problem that the memory usage efficiency is poor. .

そこで、本発明は、フォントキャッシュに関してメモリーの使用効率を従来より向上することができる画像形成装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image forming apparatus capable of improving the use efficiency of a memory with respect to a font cache.

本発明の画像形成装置は、メモリーと、印刷データに含まれる文字のビットマップイメージを描画する文字描画手段と、前記文字描画手段によって描画された前記ビットマップイメージを一時的に格納する領域であるフォントキャッシュを管理するキャッシュ管理手段とを備えており、前記キャッシュ管理手段は、前記文字の書体およびフォントサイズに少なくとも応じて前記フォントキャッシュを別々に前記メモリー上に確保し、前記文字描画手段は、前記文字の前記ビットマップイメージが前記フォントキャッシュに格納されている場合、そのビットマップイメージを前記フォントキャッシュから取得し、前記キャッシュ管理手段は、前記フォントキャッシュを拡張する単位である拡張単位を前記フォントサイズに少なくとも応じて決定し、前記キャッシュ管理手段は、前記文字描画手段によって描画された前記ビットマップイメージが格納される容量が前記フォントキャッシュの未使用の部分に残っていない場合、前記フォントキャッシュを前記拡張単位で拡張することを特徴とする。   The image forming apparatus of the present invention is a memory, a character drawing unit that draws a bitmap image of characters included in print data, and an area that temporarily stores the bitmap image drawn by the character drawing unit. Cache management means for managing a font cache, wherein the cache management means secures the font cache separately on the memory according to at least the typeface and font size of the characters, and the character drawing means includes: When the bitmap image of the character is stored in the font cache, the bitmap image is acquired from the font cache, and the cache management unit sets an extension unit that is a unit for extending the font cache as the font. Decide at least according to size The cache management unit expands the font cache by the expansion unit when a capacity for storing the bitmap image drawn by the character drawing unit does not remain in an unused part of the font cache. It is characterized by.

この構成により、本発明の画像形成装置は、文字のビットマップイメージが格納される容量がフォントキャッシュの未使用の部分に残っていない場合に、文字のフォントサイズに少なくとも応じた適切な拡張単位でフォントキャッシュを拡張することができるので、メモリー上のフォントキャッシュを不必要に拡張することを抑えることができる。したがって、本発明の画像形成装置は、フォントキャッシュに関してメモリーの使用効率を従来より向上することができる。   With this configuration, the image forming apparatus according to the present invention is configured in an appropriate expansion unit corresponding to at least the font size of the character when the capacity for storing the bitmap image of the character does not remain in the unused portion of the font cache. Since the font cache can be expanded, unnecessary expansion of the font cache in the memory can be suppressed. Therefore, the image forming apparatus according to the present invention can improve the use efficiency of the memory with respect to the font cache.

また、本発明の画像形成装置の前記キャッシュ管理手段は、前記フォントキャッシュを拡張する場合、拡張前の前記フォントキャッシュの前記未使用の部分を解放しても良い。   The cache management unit of the image forming apparatus of the present invention may release the unused portion of the font cache before expansion when expanding the font cache.

この構成により、本発明の画像形成装置は、フォントキャッシュを拡張する場合に、拡張前のフォントキャッシュの未使用の部分を解放するので、フォントキャッシュに関してメモリーの使用効率を更に向上することができる。   With this configuration, when the font cache is expanded, the image forming apparatus of the present invention releases the unused portion of the font cache before expansion, so that it is possible to further improve the memory use efficiency with respect to the font cache.

また、本発明の画像形成装置の前記キャッシュ管理手段は、前記文字の解像度に少なくとも更に応じて前記フォントキャッシュを別々に前記メモリー上に確保し、前記キャッシュ管理手段は、前記解像度に少なくとも更に応じて前記拡張単位を決定しても良い。   The cache management means of the image forming apparatus of the present invention separately secures the font cache on the memory at least further according to the resolution of the character, and the cache management means at least further according to the resolution. The extension unit may be determined.

この構成により、本発明の画像形成装置は、文字の解像度に少なくとも更に応じた適切な拡張単位でフォントキャッシュを拡張することができるので、フォントキャッシュに関してメモリーの使用効率を更に向上することができる。   With this configuration, the image forming apparatus according to the present invention can expand the font cache in an appropriate expansion unit at least further according to the resolution of the character, so that it is possible to further improve the memory use efficiency with respect to the font cache.

また、本発明の画像形成装置の前記キャッシュ管理手段は、前記印刷データに含まれる前記文字のうち同一の前記フォントキャッシュに格納されるべき前記文字の種類の数に少なくとも更に応じて前記拡張単位を決定しても良い。   Further, the cache management unit of the image forming apparatus of the present invention sets the expansion unit at least further according to the number of types of the characters to be stored in the same font cache among the characters included in the print data. You may decide.

この構成により、本発明の画像形成装置は、印刷データに含まれる文字のうち同一のフォントキャッシュに格納されるべき文字の種類の数に少なくとも更に応じた適切な拡張単位でフォントキャッシュを拡張することができるので、フォントキャッシュに関してメモリーの使用効率を更に向上することができる。   With this configuration, the image forming apparatus of the present invention expands the font cache by an appropriate expansion unit at least further according to the number of character types to be stored in the same font cache among the characters included in the print data. Therefore, the memory use efficiency can be further improved with respect to the font cache.

本発明の文字描画プログラムは、メモリーを備えている画像形成装置によって実行される文字描画プログラムであって、印刷データに含まれる文字のビットマップイメージを描画する文字描画ステップと、前記文字描画ステップによって描画された前記ビットマップイメージを一時的に格納する領域であるフォントキャッシュを管理するキャッシュ管理ステップとを前記画像形成装置に実行させ、前記キャッシュ管理ステップは、前記文字の書体およびフォントサイズに少なくとも応じて前記フォントキャッシュを別々に前記メモリー上に確保するステップであり、前記文字描画ステップは、前記文字の前記ビットマップイメージが前記フォントキャッシュに格納されている場合、そのビットマップイメージを前記フォントキャッシュから取得するステップであり、前記キャッシュ管理ステップは、前記フォントキャッシュを拡張する単位である拡張単位を前記フォントサイズに少なくとも応じて決定するステップであり、前記キャッシュ管理ステップは、前記文字描画ステップによって描画された前記ビットマップイメージが格納される容量が前記フォントキャッシュの未使用の部分に残っていない場合、前記フォントキャッシュを前記拡張単位で拡張するステップであることを特徴とする。   The character drawing program of the present invention is a character drawing program executed by an image forming apparatus provided with a memory, and includes a character drawing step for drawing a bitmap image of characters included in print data, and the character drawing step. A cache management step for managing a font cache, which is an area for temporarily storing the rendered bitmap image, and the cache management step according to at least a typeface and a font size of the character. Securing the font cache separately on the memory, and the character drawing step, when the bitmap image of the character is stored in the font cache, stores the bitmap image from the font cache. Take The cache management step is a step of determining an expansion unit, which is a unit for extending the font cache, according to at least the font size, and the cache management step is rendered by the character rendering step. When the capacity for storing the bitmap image does not remain in an unused part of the font cache, the font cache is expanded by the expansion unit.

この構成により、本発明の文字描画プログラムを実行する画像形成装置は、文字のビットマップイメージが格納される容量がフォントキャッシュの未使用の部分に残っていない場合に、文字のフォントサイズに少なくとも応じた適切な拡張単位でフォントキャッシュを拡張することができるので、メモリー上のフォントキャッシュを不必要に拡張することを抑えることができる。したがって、本発明の文字描画プログラムを実行する画像形成装置は、フォントキャッシュに関してメモリーの使用効率を従来より向上することができる。   With this configuration, the image forming apparatus that executes the character drawing program of the present invention at least responds to the font size of the character when the capacity for storing the bitmap image of the character does not remain in the unused portion of the font cache. Since the font cache can be expanded by an appropriate expansion unit, it is possible to suppress unnecessary expansion of the font cache in the memory. Therefore, the image forming apparatus that executes the character drawing program of the present invention can improve the memory use efficiency with respect to the font cache.

本発明のプリンタードライバーは、画像形成装置に送信される前記印刷データを生成するためのプリンタードライバーであって、前記印刷データに含まれる予定の前記文字のうち同一の前記フォントキャッシュに格納されるべき前記文字の種類の数を前記フォントキャッシュ毎に算出する文字種類算出ステップと、前記文字種類算出ステップによって算出された前記文字の種類の数の情報を含めて前記印刷データを生成する印刷データ生成ステップとをコンピューターに実行させることを特徴とする。   The printer driver of the present invention is a printer driver for generating the print data transmitted to the image forming apparatus, and should be stored in the same font cache among the characters to be included in the print data A character type calculating step for calculating the number of character types for each font cache, and a print data generating step for generating the print data including information on the number of character types calculated by the character type calculating step. And having a computer execute.

この構成により、本発明のプリンタードライバーを実行するコンピューターは、画像形成装置に送信される印刷データに、この印刷データに含まれる予定の文字のうち同一のフォントキャッシュに格納されるべき文字の種類の数の情報を含めるので、印刷データに含まれる文字のうち同一のフォントキャッシュに格納されるべき文字の種類の数に少なくとも応じた適切な拡張単位で画像形成装置にフォントキャッシュを拡張させることができる。   With this configuration, the computer that executes the printer driver according to the present invention allows the print data transmitted to the image forming apparatus to include the types of characters to be stored in the same font cache among the characters scheduled to be included in the print data. Since the number information is included, the font cache can be expanded in the image forming apparatus by an appropriate expansion unit corresponding at least to the number of character types to be stored in the same font cache among the characters included in the print data. .

本発明の画像形成装置は、フォントキャッシュに関してメモリーの使用効率を従来より向上することができる。   The image forming apparatus of the present invention can improve the use efficiency of the memory with respect to the font cache.

本発明の一実施の形態に係るネットワークシステムのブロック図である。1 is a block diagram of a network system according to an embodiment of the present invention. 図1に示すMFPのブロック図である。FIG. 2 is a block diagram of the MFP shown in FIG. 1. 図2に示すフォントキャッシュの種類の一例を示す図である。It is a figure which shows an example of the kind of font cache shown in FIG. 図2に示す制御部の機能を示す図である。It is a figure which shows the function of the control part shown in FIG. 図1に示すPCのブロック図である。It is a block diagram of PC shown in FIG. 印刷データを送信する場合の図5に示すPCの動作のフローチャートである。It is a flowchart of operation | movement of PC shown in FIG. 5 in the case of transmitting print data. 図5に示す文字種類算出手段によって算出された文字の種類の数の一例を示す図である。FIG. 6 is a diagram showing an example of the number of character types calculated by the character type calculating unit shown in FIG. 5. 文字を描画する場合の図2に示すMFPの動作のフローチャートである。3 is a flowchart of the operation of the MFP shown in FIG. 2 when drawing a character. 図4に示すキャッシュ管理手段によって決定される拡張単位のテーブルの一例を示す図である。FIG. 5 is a diagram illustrating an example of an expansion unit table determined by the cache management unit illustrated in FIG. 4. 図2に示すMFPによって記録媒体に印刷される印刷データの一例を示す図である。FIG. 3 is a diagram showing an example of print data printed on a recording medium by the MFP shown in FIG. 2. (a)は、図2に示すMFPによって確保されたフォントキャッシュの状態を示す図である。(b)は、図11(a)より後のフォントキャッシュの状態を示す図である。(c)は、図11(b)より後のフォントキャッシュの状態を示す図である。(d)は、図11(c)より後のフォントキャッシュの状態を示す図である。(A) is a diagram showing a state of a font cache secured by the MFP shown in FIG. FIG. 11B is a diagram illustrating a state of the font cache after FIG. (C) is a diagram showing a state of the font cache after FIG. 11 (b). FIG. 12D is a diagram showing a state of the font cache after FIG. (a)は、図11(d)より後のフォントキャッシュの状態を示す図である。(b)は、図12(a)より後のフォントキャッシュの状態を示す図である。(c)は、図12(b)より後のフォントキャッシュの状態を示す図である。(A) is a figure which shows the state of the font cache after FIG.11 (d). FIG. 13B is a diagram illustrating a state of the font cache after FIG. (C) is a diagram showing a state of the font cache after FIG. 12 (b). 印刷データ毎にフォントキャッシュの拡張単位を決定する場合の図2に示すMFPの動作のフローチャートである。3 is a flowchart of the operation of the MFP shown in FIG. 2 when a font cache expansion unit is determined for each print data.

以下、本発明の一実施の形態について、図面を用いて説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

まず、本実施の形態に係るネットワークシステムの構成について説明する。   First, the configuration of the network system according to the present embodiment will be described.

図1は、本実施の形態に係るネットワークシステム10のブロック図である。   FIG. 1 is a block diagram of a network system 10 according to the present embodiment.

図1に示すように、ネットワークシステム10は、画像形成装置としてのMFP(Multifunction Peripheral)20と、MFP20の外部のコンピューターであるPC(Personal Computer)50とを備えている。MFP20およびPC50は、LAN(Local Area Network)などのネットワーク11を介して互いに通信可能に接続されている。   As shown in FIG. 1, the network system 10 includes an MFP (Multifunction Peripheral) 20 as an image forming apparatus and a PC (Personal Computer) 50 that is a computer external to the MFP 20. The MFP 20 and the PC 50 are connected to be communicable with each other via a network 11 such as a LAN (Local Area Network).

図2は、MFP20のブロック図である。   FIG. 2 is a block diagram of the MFP 20.

図2に示すように、MFP20は、利用者による種々の操作が入力されるボタンなどの入力デバイスである操作部21と、種々の情報を表示するLCD(Liquid Crystal Display)などの表示デバイスである表示部22と、用紙などの記録媒体への画像の印刷を実行する印刷デバイスであるプリンター23と、原稿から画像を読み取る読取デバイスであるスキャナー24と、公衆電話回線などの通信回線経由でファックス通信を行うファックスデバイスであるファックス通信部25と、ネットワーク11経由で通信を行うネットワーク通信デバイスであるネットワーク通信部26と、各種のデータを記憶しているEEPROM(Electrically Erasable Programmable Read Only Memory)、HDD(Hard Disk Drive)などの記憶デバイスである記憶部30と、MFP20全体を制御する制御部40とを備えている。   As shown in FIG. 2, the MFP 20 is a display device such as an operation unit 21 that is an input device such as buttons for inputting various operations by the user and an LCD (Liquid Crystal Display) that displays various information. Fax communication via a display unit 22, a printer 23 that is a printing device that prints an image on a recording medium such as paper, a scanner 24 that is a reading device that reads an image from a document, and a communication line such as a public telephone line A fax communication unit 25 that is a fax device that performs communication, a network communication unit 26 that is a network communication device that performs communication via the network 11, and an EEPROM (Electrically Erasable Programmable Read On) that stores various data. y Memory), an HDD (Hard Disk Drive) storage unit 30 is a storage device such as, and a control unit 40 which controls the entire MFP 20.

記憶部30は、文字を描画するための文字描画プログラム31を記憶している。文字描画プログラム31は、MFP20の製造段階でMFP20にインストールされていても良いし、USB(Universal Serial Bus)メモリー、SDメモリーカードなどの記憶媒体からMFP20に追加でインストールされても良いし、ネットワーク11上からMFP20に追加でインストールされても良い。   The storage unit 30 stores a character drawing program 31 for drawing characters. The character drawing program 31 may be installed in the MFP 20 at the manufacturing stage of the MFP 20, may be additionally installed in the MFP 20 from a storage medium such as a USB (Universal Serial Bus) memory, an SD memory card, or the network 11. It may be additionally installed in the MFP 20 from above.

制御部40は、例えば、CPU(Central Processing Unit)41と、プログラムおよび各種のデータを記憶しているROM(Read Only Memory)42と、CPU41の作業領域として用いられる本発明のメモリーとしてのRAM(Random Access Memory)43とを備えている。CPU41は、ROM42または記憶部30に記憶されているプログラムを実行するようになっている。   The control unit 40 includes, for example, a CPU (Central Processing Unit) 41, a ROM (Read Only Memory) 42 that stores programs and various data, and a RAM (RAM) as a memory of the present invention used as a work area of the CPU 41. Random Access Memory) 43. The CPU 41 is configured to execute a program stored in the ROM 42 or the storage unit 30.

RAM43は、後述の文字描画手段40aによって描画されたビットマップイメージを一時的に格納する領域であるフォントキャッシュ43aを複数記憶することができる。   The RAM 43 can store a plurality of font caches 43a, which are areas for temporarily storing bitmap images drawn by a character drawing means 40a described later.

図3は、フォントキャッシュ43aの種類の一例を示す図である。   FIG. 3 is a diagram illustrating an example of the type of the font cache 43a.

図3に示すように、フォントキャッシュ43aは、Arial、Courierなどの文字の書体と、12point、16pointなどの文字のフォントサイズと、300dpi、1200dpiなどの文字の解像度とに応じて別々にRAM43上に確保される。フォントキャッシュ43aは、格納される文字の書体、フォントサイズおよび解像度の情報がヘッダーに含まれており、その情報によって判別されるようになっている。   As shown in FIG. 3, the font cache 43a is stored in the RAM 43 separately according to the typeface of characters such as Arial and Courier, the font size of characters such as 12 points and 16 points, and the resolution of characters such as 300 dpi and 1200 dpi. Secured. The font cache 43a includes information on the typeface, font size, and resolution of the characters to be stored in the header, and is determined based on the information.

図4は、制御部40の機能を示す図である。   FIG. 4 is a diagram illustrating functions of the control unit 40.

図4に示すように、制御部40は、記憶部30に記憶されている文字描画プログラム31を実行することによって、印刷データに含まれる文字のビットマップイメージを描画する文字描画手段40a、および、文字描画手段40aによって描画されたビットマップイメージを一時的に格納する領域であるフォントキャッシュ43aを管理するキャッシュ管理手段40bとして機能する。   As shown in FIG. 4, the control unit 40 executes a character drawing program 31 stored in the storage unit 30, thereby drawing a character drawing unit 40a for drawing a bitmap image of characters included in the print data, and It functions as a cache management means 40b for managing the font cache 43a, which is an area for temporarily storing the bitmap image drawn by the character drawing means 40a.

図5は、PC50のブロック図である。   FIG. 5 is a block diagram of the PC 50.

図5に示すように、PC50は、利用者による種々の操作が入力されるマウス、キーボードなどの入力デバイスである操作部51と、種々の情報を表示するLCDなどの表示デバイスである表示部52と、ネットワーク11経由で通信を行うネットワーク通信デバイスであるネットワーク通信部53と、各種のデータを記憶しているHDDなどの記憶デバイスである記憶部60と、PC50全体を制御する制御部70とを備えている。   As shown in FIG. 5, the PC 50 includes an operation unit 51 that is an input device such as a mouse and a keyboard for inputting various operations by a user, and a display unit 52 that is a display device such as an LCD that displays various information. A network communication unit 53 that is a network communication device that performs communication via the network 11, a storage unit 60 that is a storage device such as an HDD that stores various data, and a control unit 70 that controls the entire PC 50. I have.

記憶部60は、MFP20での印刷を制御するためのプリンタードライバー61を記憶している。   The storage unit 60 stores a printer driver 61 for controlling printing in the MFP 20.

プリンタードライバー61は、PC50の製造段階でPC50にインストールされていても良いし、USBメモリー、CD(Compact Disc)、DVD(Digital Versatile Disc)などの記憶媒体からPC50に追加でインストールされても良いし、ネットワーク11上からPC50に追加でインストールされても良い。   The printer driver 61 may be installed in the PC 50 at the manufacturing stage of the PC 50, or may be additionally installed in the PC 50 from a storage medium such as a USB memory, a CD (Compact Disc), a DVD (Digital Versatile Disc), or the like. Alternatively, it may be additionally installed on the PC 50 from the network 11.

制御部70は、例えば、CPUと、プログラムおよび各種のデータを記憶しているROMと、CPUの作業領域として用いられるRAMとを備えている。CPUは、ROMまたは記憶部60に記憶されているプログラムを実行するようになっている。   The control unit 70 includes, for example, a CPU, a ROM that stores programs and various data, and a RAM that is used as a work area of the CPU. The CPU is configured to execute a program stored in the ROM or the storage unit 60.

制御部70は、記憶部60に記憶されているプリンタードライバー61を実行することによって、印刷データに含まれる予定の文字のうち同一のフォントキャッシュ43aに格納されるべき文字の種類の数(以下「文字種類数」と言う。)をフォントキャッシュ43a毎に算出する文字種類算出手段70a、および、文字種類算出手段70aによって算出された文字種類数の情報を含めて印刷データを生成する印刷データ生成手段70bとして機能する。   The control unit 70 executes the printer driver 61 stored in the storage unit 60 to thereby determine the number of types of characters to be stored in the same font cache 43a (hereinafter ““ Character type calculation means 70a for each font cache 43a, and print data generation means for generating print data including information on the number of character types calculated by the character type calculation means 70a. It functions as 70b.

次に、ネットワークシステム10の動作について説明する。   Next, the operation of the network system 10 will be described.

利用者は、MFP20での画像の印刷をPC50の操作部51を介してPC50に指示することができる。この指示を受けると、PC50の制御部70は、図6に示す処理を実行する。   The user can instruct the PC 50 to print an image on the MFP 20 via the operation unit 51 of the PC 50. Upon receiving this instruction, the control unit 70 of the PC 50 executes the process shown in FIG.

図6は、印刷データを送信する場合のPC50の動作のフローチャートである。   FIG. 6 is a flowchart of the operation of the PC 50 when printing data is transmitted.

図6に示すように、PC50の制御部70の文字種類算出手段70aは、MFP20に送信される印刷データに含まれる予定の文字のうち、同一のフォントキャッシュ43aに格納されるべき文字の種類の数、すなわち、文字種類数をフォントキャッシュ43a毎に算出する(S101)。すなわち、文字種類算出手段70aは、MFP20に送信される印刷データの中に、書体、フォントサイズおよび解像度の組み合わせが同一である文字が何種類含まれる予定であるかを、書体、フォントサイズおよび解像度の組み合わせ毎に算出する。   As shown in FIG. 6, the character type calculating unit 70 a of the control unit 70 of the PC 50 determines the type of character to be stored in the same font cache 43 a among characters scheduled to be included in the print data transmitted to the MFP 20. The number, that is, the number of character types is calculated for each font cache 43a (S101). That is, the character type calculating unit 70a determines how many characters having the same typeface, font size, and resolution combination are to be included in the print data transmitted to the MFP 20, based on the typeface, font size, and resolution. Calculate for each combination.

図7は、文字種類算出手段70aによって算出された文字種類数の一例を示す図である。   FIG. 7 is a diagram illustrating an example of the number of character types calculated by the character type calculating unit 70a.

文字種類算出手段70aは、S101の処理において、例えば図7に示すように文字種類数を算出する。   In the process of S101, the character type calculating unit 70a calculates the number of character types as shown in FIG. 7, for example.

図6に示すように、PC50の制御部70の印刷データ生成手段70bは、S101の処理の後、S101において算出された文字種類数の情報を含めて印刷データを生成する(S102)。なお、この印刷データは、PCL XL、PCL 5e、PCL 5c、PostScriptなどのページ記述言語によって記述されている。   As shown in FIG. 6, the print data generation unit 70b of the control unit 70 of the PC 50 generates print data including information on the number of character types calculated in S101 after the process of S101 (S102). The print data is described in a page description language such as PCL XL, PCL 5e, PCL 5c, PostScript.

次いで、制御部70は、S102において生成された印刷データをMFP20に送信して(S103)、図6に示す処理を終了する。   Next, the control unit 70 transmits the print data generated in S102 to the MFP 20 (S103), and ends the processing shown in FIG.

MFP20の制御部40は、PC50からの印刷データを受信すると、印刷データに基づいた画像を生成し、この画像を記録媒体に印刷する。ここで、制御部40は、印刷データに文字が含まれている場合、画像を生成するときに、文字を描画する。   Upon receiving print data from the PC 50, the control unit 40 of the MFP 20 generates an image based on the print data and prints this image on a recording medium. Here, when the print data includes characters, the control unit 40 draws the characters when generating the image.

図8は、文字を描画する場合のMFP20の動作のフローチャートである。   FIG. 8 is a flowchart of the operation of the MFP 20 when drawing a character.

図8に示すように、MFP20の制御部40は、印刷データに含まれる文字のうち、最初の1文字を対象にする(S131)。   As shown in FIG. 8, the control unit 40 of the MFP 20 targets the first character among the characters included in the print data (S131).

次いで、制御部40のキャッシュ管理手段40bは、現在対象にしている文字(以下「対象文字」と言う。)用のフォントキャッシュ43aがRAM43上に存在するか否かを、その文字の書体、フォントサイズおよび解像度に基づいて判断する(S132)。   Next, the cache management unit 40b of the control unit 40 determines whether or not the font cache 43a for the currently targeted character (hereinafter referred to as “target character”) exists in the RAM 43, and the font and font of the character. A determination is made based on the size and resolution (S132).

キャッシュ管理手段40bは、対象文字用のフォントキャッシュ43aがRAM43上に存在していないとS132において判断すると、フォントキャッシュ43aを拡張する単位である拡張単位を、フォントキャッシュ43aに対応するフォントサイズ、解像度および文字種類数に応じて決定する(S133)。なお、キャッシュ管理手段40bは、フォントキャッシュ43aに対応する文字種類数を、印刷データに含まれている文字種類数の情報に基づいて判断する。   When the cache management unit 40b determines in S132 that the font cache 43a for the target character does not exist on the RAM 43, the expansion unit, which is a unit for expanding the font cache 43a, is set to the font size and resolution corresponding to the font cache 43a. It is determined according to the number of character types (S133). Note that the cache management unit 40b determines the number of character types corresponding to the font cache 43a based on the information on the number of character types included in the print data.

ここで、文字のフォントサイズが大きいほど文字のビットマップイメージのデータサイズが大きいので、キャッシュ管理手段40bは、文字のフォントサイズが大きいほど拡張単位を大きくすることが好ましい。また、文字の解像度が高いほど文字のビットマップイメージのデータサイズが大きいので、キャッシュ管理手段40bは、文字の解像度が高いほど拡張単位を大きくすることが好ましい。また、印刷データに含まれている文字種類数が多いほど該当のフォントキャッシュ43aにおける必要な容量が大きいので、キャッシュ管理手段40bは、印刷データに含まれている文字種類数が多いほど拡張単位を大きくすることが好ましい。   Here, since the data size of the character bitmap image is larger as the font size of the character is larger, the cache management unit 40b preferably increases the expansion unit as the font size of the character is larger. Further, since the data size of the character bitmap image is larger as the character resolution is higher, it is preferable that the cache management unit 40b increases the expansion unit as the character resolution is higher. Further, the larger the number of character types included in the print data, the larger the required capacity in the corresponding font cache 43a. Therefore, the cache management unit 40b increases the expansion unit as the number of character types included in the print data increases. It is preferable to enlarge it.

図9は、キャッシュ管理手段40bによって決定される拡張単位のテーブルの一例を示す図である。   FIG. 9 is a diagram showing an example of an expansion unit table determined by the cache management unit 40b.

キャッシュ管理手段40bは、S133の処理において、例えば図9に示すようなテーブルを用いて拡張単位を決定する。   In the process of S133, the cache management unit 40b determines an expansion unit using, for example, a table as shown in FIG.

図8に示すように、MFP20の制御部40のキャッシュ管理手段40bは、S133の処理の後、S133において決定した拡張単位分のフォントキャッシュ43aを対象文字のためにRAM43上に確保する(S134)。   As shown in FIG. 8, the cache management unit 40b of the control unit 40 of the MFP 20 secures the font cache 43a for the extended unit determined in S133 on the RAM 43 for the target character after the process of S133 (S134). .

次いで、制御部40の文字描画手段40aは、対象文字のビットマップイメージを描画する(S135)。   Next, the character drawing unit 40a of the control unit 40 draws a bitmap image of the target character (S135).

次いで、文字描画手段40aは、対象文字用のフォントキャッシュ43aに、対象文字のビットマップイメージを格納する(S136)。   Next, the character drawing unit 40a stores the bitmap image of the target character in the font cache 43a for the target character (S136).

次いで、文字描画手段40aは、RAM43上のフォントキャッシュ43aから対象文字のビットマップイメージを取得する(S137)。   Next, the character drawing unit 40a acquires a bitmap image of the target character from the font cache 43a on the RAM 43 (S137).

次いで、制御部40は、印刷データに含まれている全ての文字を対象にしたか否かを判断する(S138)。   Next, the control unit 40 determines whether or not all characters included in the print data are targeted (S138).

制御部40は、印刷データに含まれている全ての文字を対象にしたとS138において判断すると、図8に示す処理を終了する。   If the control unit 40 determines in S138 that all characters included in the print data have been processed, the process illustrated in FIG. 8 ends.

一方、制御部40は、印刷データに含まれている何れかの文字を対象にしていないとS138において判断すると、印刷データに含まれている文字のうち、対象文字の次の1文字を対象にして(S139)、再びS132の処理に戻る。   On the other hand, when the control unit 40 determines in S138 that any character included in the print data is not the target, the control unit 40 targets the next character after the target character among the characters included in the print data. (S139), the process returns to S132 again.

キャッシュ管理手段40bは、対象文字用のフォントキャッシュ43aがRAM43上に存在しているとS132において判断すると、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されているか否かを判断する(S140)。   When determining in S132 that the target character font cache 43a exists on the RAM 43, the cache management unit 40b determines whether or not the target character bitmap cache 43a is stored in the target character font cache 43a. (S140).

文字描画手段40aは、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されているとS140において判断されると、S137の処理を実行する。   When it is determined in S140 that the bitmap image of the target character is stored in the font cache 43a for the target character, the character drawing unit 40a executes the process of S137.

文字描画手段40aは、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されていないとS140において判断されると、対象文字のビットマップイメージを描画する(S141)。   If it is determined in S140 that the bitmap image of the target character is not stored in the font cache 43a for the target character, the character drawing unit 40a draws the bitmap image of the target character (S141).

次いで、キャッシュ管理手段40bは、S141において描画されたビットマップイメージが格納される容量が対象文字用のフォントキャッシュ43aの未使用の部分に残っているか否かを判断する(S142)。   Next, the cache management unit 40b determines whether or not the capacity for storing the bitmap image drawn in S141 remains in the unused portion of the font cache 43a for the target character (S142).

文字描画手段40aは、対象文字のビットマップイメージが格納される容量が対象文字用のフォントキャッシュ43aの未使用の部分に残っているとS142において判断されると、S136の処理を実行する。   If it is determined in S142 that the capacity for storing the bitmap image of the target character remains in the unused portion of the font cache 43a for the target character, the character drawing unit 40a executes the process of S136.

キャッシュ管理手段40bは、対象文字のビットマップイメージが格納される容量が対象文字用のフォントキャッシュ43aの未使用の部分に残っていないとS142において判断すると、対象文字用のフォントキャッシュ43aをS133において決定した拡張単位で拡張する(S143)。   When the cache management unit 40b determines in S142 that the capacity for storing the bitmap image of the target character does not remain in the unused portion of the font cache 43a for the target character, the cache management unit 40b sets the font cache 43a for the target character in S133. Expansion is performed in the determined expansion unit (S143).

キャッシュ管理手段40bは、対象文字用のフォントキャッシュ43aについて、S143における拡張前のフォントキャッシュ43aの未使用の部分を解放する(S144)。すなわち、キャッシュ管理手段40bは、対象文字用のフォントキャッシュ43aを最適化する。   The cache management unit 40b releases the unused portion of the font cache 43a before expansion in S143 for the font cache 43a for the target character (S144). That is, the cache management unit 40b optimizes the font cache 43a for the target character.

制御部40は、S144の処理の後、S136の処理を実行する。   The control unit 40 executes the process of S136 after the process of S144.

図10は、MFP20によって記録媒体に印刷される印刷データの一例を示す図である。   FIG. 10 is a diagram illustrating an example of print data printed on the recording medium by the MFP 20.

図10に示す印刷データに含まれる全ての文字は、書体がArialであり、フォントサイズが12pointであり、解像度が1200dpiである。そして、図10に示す印刷データにおいて、書体がArialであり、フォントサイズが12pointであり、解像度が1200dpiである文字の文字種類数は、26である。   All the characters included in the print data shown in FIG. 10 have a typeface of Arial, a font size of 12 points, and a resolution of 1200 dpi. In the print data shown in FIG. 10, the number of character types is 26 when the typeface is Arial, the font size is 12 points, and the resolution is 1200 dpi.

PC50からMFP20に送信された印刷データが例えば図10に示す印刷データである場合、書体がArialであり、フォントサイズが12pointであり、解像度が1200dpiである文字用のフォントキャッシュ43aが存在しないとき、MFP20は、図8に示す処理において、印刷データに含まれる文字のうち、最初の1文字である“A”を対象にする(S131)。   When the print data transmitted from the PC 50 to the MFP 20 is, for example, the print data shown in FIG. 10, when there is no font cache 43a for characters having a typeface of Arial, a font size of 12 points, and a resolution of 1200 dpi, In the process shown in FIG. 8, the MFP 20 targets “A”, which is the first character among the characters included in the print data (S131).

次いで、MFP20は、対象文字用のフォントキャッシュ43aがRAM43上に存在していないとS132において判断して、対象文字用のフォントキャッシュ43aの拡張単位を図9に示すテーブルに基づいて16KByteと決定する(S133)。   Next, in S132, the MFP 20 determines that the font cache 43a for the target character does not exist in the RAM 43, and determines the expansion unit of the font cache 43a for the target character as 16 KBytes based on the table shown in FIG. (S133).

次いで、MFP20は、図11(a)に示すように、拡張単位である16KByte分のフォントキャッシュ43aを対象文字のためにRAM43上に確保する(S134)。   Next, as shown in FIG. 11A, the MFP 20 secures a font cache 43a for 16 KBytes as an expansion unit on the RAM 43 for the target character (S134).

次いで、MFP20は、対象文字である“A”のビットマップイメージを描画した後(S135)、図11(b)に示すように、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージを格納する(S136)。   Next, after rendering the bitmap image of “A” as the target character (S135), the MFP 20 stores the bitmap image of the target character in the font cache 43a for the target character as shown in FIG. 11B. (S136).

次いで、MFP20は、S137の処理の後、印刷データに含まれている何れかの文字を対象にしていないとS138において判断して、印刷データに含まれている文字のうち、対象文字の次の1文字である“A”を対象にする(S139)。   Next, after the process of S137, the MFP 20 determines in S138 that any character included in the print data is not the target, and among the characters included in the print data, the next character of the target character is determined. One character “A” is targeted (S139).

次いで、MFP20は、対象文字用のフォントキャッシュ43aがRAM43上に存在しているとS132において判断した後、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されているとS140において判断して、S137の処理の後、印刷データに含まれている何れかの文字を対象にしていないとS138において判断して、印刷データに含まれている文字のうち、対象文字の次の1文字である“B”を対象にする(S139)。   Next, after determining in S132 that the font cache 43a for the target character exists on the RAM 43, the MFP 20 determines in S140 that a bitmap image of the target character is stored in the font cache 43a for the target character. Then, after the process of S137, it is determined in S138 that any character included in the print data is not the target, and one character next to the target character among the characters included in the print data is determined. "B" is targeted (S139).

次いで、MFP20は、対象文字用のフォントキャッシュ43aがRAM43上に存在しているとS132において判断した後、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されていないとS140において判断して、対象文字である“B”のビットマップイメージを描画する(S141)。   Next, after determining in S132 that the font cache 43a for the target character exists in the RAM 43, the MFP 20 determines in S140 that the bitmap image of the target character is not stored in the font cache 43a for the target character. Then, a bitmap image of “B” as the target character is drawn (S141).

次いで、MFP20は、対象文字のビットマップイメージが格納される容量が対象文字用のフォントキャッシュ43aの未使用の部分に残っているとS142において判断して、図11(c)に示すように、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージを格納する(S136)。   Next, the MFP 20 determines in S142 that the capacity for storing the bitmap image of the target character remains in the unused portion of the font cache 43a for the target character, and as shown in FIG. The bitmap image of the target character is stored in the font cache 43a for the target character (S136).

次いで、MFP20は、S137の処理の後、印刷データに含まれている何れかの文字を対象にしていないとS138において判断して、印刷データに含まれている文字のうち、対象文字の次の1文字である“C”を対象にする(S139)。   Next, after the process of S137, the MFP 20 determines in S138 that any character included in the print data is not the target, and among the characters included in the print data, the next character of the target character is determined. One character “C” is targeted (S139).

この後、“E”が対象文字になるまでは、上述した“B”のときと同様であるので、説明を省略する。“E”が対象文字になった時、対象文字用のフォントキャッシュ43aは、図11(d)に示すようになっている。   Thereafter, until “E” becomes the target character, it is the same as the case of “B” described above, so the description is omitted. When “E” becomes the target character, the font cache 43a for the target character is as shown in FIG.

MFP20は、S139において“E”を対象文字にすると、対象文字用のフォントキャッシュ43aがRAM43上に存在しているとS132において判断した後、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されていないとS140において判断して、対象文字である“E”のビットマップイメージを描画する(S141)。   When “E” is set as the target character in S139, the MFP 20 determines in S132 that the font cache 43a for the target character exists in the RAM 43, and then the bitmap image of the target character in the font cache 43a for the target character. Is stored in S140, and a bitmap image of “E” as the target character is drawn (S141).

次いで、MFP20は、対象文字のビットマップイメージが格納される容量が対象文字用のフォントキャッシュ43aの未使用の部分に残っていないとS142において判断して、図12(a)に示すように、対象文字用のフォントキャッシュ43aを拡張単位である16KByteで拡張する(S143)。   Next, the MFP 20 determines in S142 that the capacity for storing the bitmap image of the target character does not remain in the unused portion of the font cache 43a for the target character, and as illustrated in FIG. The font cache 43a for the target character is expanded with 16 Kbytes as an expansion unit (S143).

次いで、MFP20は、対象文字用のフォントキャッシュ43aについて、図12(b)に示すように、S143における拡張前のフォントキャッシュ43aの未使用の部分を解放する(S144)。   Next, as shown in FIG. 12B, the MFP 20 releases the unused portion of the font cache 43a before expansion in S143 for the font cache 43a for the target character (S144).

次いで、MFP20は、図12(c)に示すように、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージを格納する(S136)。   Next, as shown in FIG. 12C, the MFP 20 stores the bitmap image of the target character in the font cache 43a for the target character (S136).

次いで、MFP20は、S137の処理の後、印刷データに含まれている何れかの文字を対象にしていないとS138において判断して、印刷データに含まれている文字のうち、対象文字の次の1文字である“F”を対象にする(S139)。   Next, after the process of S137, the MFP 20 determines in S138 that any character included in the print data is not the target, and among the characters included in the print data, the next character of the target character is determined. One character "F" is targeted (S139).

この後は、上述した“B”または“E”のときと同様であるので、説明を省略する。   The subsequent steps are the same as in the case of “B” or “E” described above, and thus description thereof is omitted.

以上に説明したように、MFP20は、文字のビットマップイメージが格納される容量がフォントキャッシュ43aの未使用の部分に残っていない場合(S142でNO)に、文字のフォントサイズ、文字の解像度、および、文字種類数に応じた適切な拡張単位でフォントキャッシュ43aを拡張する(S143)ことができるので、RAM43上のフォントキャッシュ43aを不必要に拡張することを抑えることができる。したがって、MFP20は、フォントキャッシュ43aに関してRAM43の使用効率を従来より向上することができる。   As described above, when the capacity for storing the bitmap image of the character does not remain in the unused portion of the font cache 43a (NO in S142), the MFP 20 determines the character font size, the character resolution, In addition, since the font cache 43a can be expanded in an appropriate expansion unit corresponding to the number of character types (S143), it is possible to suppress unnecessary expansion of the font cache 43a on the RAM 43. Therefore, the MFP 20 can improve the use efficiency of the RAM 43 with respect to the font cache 43a as compared with the conventional case.

また、MFP20は、文字のフォントサイズ、文字の解像度、および、文字種類数に応じた適切な拡張単位でフォントキャッシュ43aを拡張することができるので、拡張単位が小さ過ぎる構成と比較して、文字のビットマップイメージが格納される容量がフォントキャッシュ43aの未使用の部分に残っていないという状況が生じ難い。そのため、MFP20は、拡張単位が小さ過ぎる構成と比較して、S143およびS144の処理の実行回数を低減することができる。したがって、MFP20は、拡張単位が小さ過ぎる構成と比較して、印字処理のパフォーマンスを向上することができるとともに、RAM43のフラグメンテーションを低減させることができる。   In addition, since the MFP 20 can expand the font cache 43a by an appropriate expansion unit corresponding to the font size of the character, the character resolution, and the number of character types, compared to a configuration in which the expansion unit is too small, It is difficult for a situation in which the capacity for storing the bitmap image does not remain in the unused portion of the font cache 43a. Therefore, the MFP 20 can reduce the number of executions of the processes of S143 and S144 compared to a configuration in which the expansion unit is too small. Therefore, the MFP 20 can improve the performance of the printing process and reduce the fragmentation of the RAM 43 as compared with the configuration in which the expansion unit is too small.

PC50は、プリンタードライバー61を実行することによって、MFP20に送信される印刷データに文字種類数の情報を含める(S101、S102)ので、文字種類数にも応じた適切な拡張単位でMFP20にフォントキャッシュ43aを拡張させることができる。   By executing the printer driver 61, the PC 50 includes the information on the number of character types in the print data transmitted to the MFP 20 (S101, S102), so the font cache is stored in the MFP 20 in an appropriate expansion unit corresponding to the number of character types. 43a can be expanded.

なお、MFP20は、文字のフォントサイズのみでなく、文字の解像度、および、文字種類数にも応じた拡張単位を決定する(S133)ようになっているが、文字のフォントサイズのみに応じた拡張単位を決定するようになっていても良いし、文字のフォントサイズ、および、文字の解像度のみに応じた拡張単位を決定するようになっていても良いし、文字のフォントサイズ、および、文字種類数のみに応じた拡張単位を決定するようになっていても良い。   The MFP 20 determines an expansion unit not only according to the character font size but also according to the character resolution and the number of character types (S133). The unit may be determined, the font size of the character, and the expansion unit according to only the character resolution may be determined, the font size of the character, and the character type The extension unit corresponding to only the number may be determined.

MFP20は、フォントキャッシュ43aを拡張する場合(S143)に、拡張前のフォントキャッシュ43aの未使用の部分を解放する(S144)ので、フォントキャッシュ43aに関してRAM43の使用効率を更に向上することができる。   When the font cache 43a is expanded (S143), the MFP 20 releases the unused portion of the font cache 43a before expansion (S144), so that the usage efficiency of the RAM 43 can be further improved with respect to the font cache 43a.

なお、MFP20は、S144の処理を実行しないようになっていても良い。   Note that the MFP 20 may not execute the process of S144.

MFP20は、図8に示す処理において、対象文字用のフォントキャッシュ43aがRAM43上に存在しているとS132において判断した場合に、フォントキャッシュ43aの拡張単位を決定する(S133)ことはない。しかしながら、MFP20は、印刷データ毎にフォントキャッシュ43aの拡張単位を決定するようになっていても良い。   In the process shown in FIG. 8, when the MFP 20 determines in S132 that the font cache 43a for the target character exists in the RAM 43, the MFP 20 does not determine the expansion unit of the font cache 43a (S133). However, the MFP 20 may determine the expansion unit of the font cache 43a for each print data.

図13は、印刷データ毎にフォントキャッシュ43aの拡張単位を決定する場合のMFP20の動作のフローチャートである。   FIG. 13 is a flowchart of the operation of the MFP 20 when determining the expansion unit of the font cache 43a for each print data.

図13に示す処理は、S161およびS162の処理を除いて図8に示す処理と同様である。   The process shown in FIG. 13 is the same as the process shown in FIG. 8 except for the processes of S161 and S162.

図13に示すように、MFP20の制御部40のキャッシュ管理手段40bは、対象文字用のフォントキャッシュ43aがRAM43上に存在しているとS132において判断すると、この印刷データにおいて対象文字用のフォントキャッシュ43aの拡張単位を決定したか否かを判断する(S161)。   As shown in FIG. 13, when the cache management unit 40b of the control unit 40 of the MFP 20 determines in S132 that the font cache 43a for the target character exists in the RAM 43, the font cache for the target character in this print data. It is determined whether or not the expansion unit 43a has been determined (S161).

キャッシュ管理手段40bは、この印刷データにおいて対象文字用のフォントキャッシュ43aの拡張単位を決定していないとS161において判断すると、S133と同様に対象文字用のフォントキャッシュ43aの拡張単位を決定する(S162)。   If the cache management unit 40b determines in S161 that the expansion unit of the font cache 43a for the target character has not been determined in this print data, the cache management unit 40b determines the expansion unit of the font cache 43a for the target character as in S133 (S162). ).

キャッシュ管理手段40bは、この印刷データにおいて対象文字用のフォントキャッシュ43aの拡張単位を決定したとS161において判断するか、S162の処理を終了すると、対象文字用のフォントキャッシュ43aに対象文字のビットマップイメージが格納されているか否かを判断する(S140)。   In S161, the cache management unit 40b determines that the expansion unit of the font cache 43a for the target character has been determined in the print data, or when the processing of S162 is finished, the bitmap of the target character is stored in the font cache 43a for the target character. It is determined whether an image is stored (S140).

なお、本発明のコンピューターは、本実施の形態においてPCであるが、PC以外のコンピューターであっても良い。   The computer of the present invention is a PC in this embodiment, but may be a computer other than a PC.

また、本発明の画像形成装置は、本実施の形態においてMFPであるが、プリンター専用機など、MFP以外の画像形成装置であっても良い。   The image forming apparatus of the present invention is an MFP in the present embodiment, but may be an image forming apparatus other than the MFP, such as a dedicated printer.

20 MFP(画像形成装置)
31 文字描画プログラム
40a 文字描画手段
40b キャッシュ管理手段
43 RAM(メモリー)
43a フォントキャッシュ
50 PC(コンピューター)
61 プリンタードライバー
20 MFP (image forming apparatus)
31 Character drawing program 40a Character drawing means 40b Cache management means 43 RAM (memory)
43a Font cache 50 PC (computer)
61 Printer Driver

Claims (6)

メモリーと、印刷データに含まれる文字のビットマップイメージを描画する文字描画手段と、
前記文字描画手段によって描画された前記ビットマップイメージを一時的に格納する領域であるフォントキャッシュを管理するキャッシュ管理手段と
を備えており、
前記キャッシュ管理手段は、前記文字の書体およびフォントサイズに少なくとも応じて前記フォントキャッシュを別々に前記メモリー上に確保し、
前記文字描画手段は、前記文字の前記ビットマップイメージが前記フォントキャッシュに格納されている場合、そのビットマップイメージを前記フォントキャッシュから取得し、
前記キャッシュ管理手段は、前記フォントキャッシュを拡張する単位である拡張単位を前記フォントサイズに少なくとも応じて決定し、
前記キャッシュ管理手段は、前記文字描画手段によって描画された前記ビットマップイメージが格納される容量が前記フォントキャッシュの未使用の部分に残っていない場合、前記フォントキャッシュを前記拡張単位で拡張することを特徴とする画像形成装置。
A memory and a character drawing means for drawing a bitmap image of the character included in the print data;
Cache management means for managing a font cache, which is an area for temporarily storing the bitmap image drawn by the character drawing means,
The cache management means secures the font cache separately on the memory according to at least the typeface and font size of the character,
The character drawing means obtains the bitmap image from the font cache when the bitmap image of the character is stored in the font cache;
The cache management means determines an extension unit, which is a unit for extending the font cache, according to at least the font size;
The cache management means extends the font cache by the extension unit when the capacity for storing the bitmap image drawn by the character drawing means does not remain in an unused part of the font cache. An image forming apparatus.
前記キャッシュ管理手段は、前記フォントキャッシュを拡張する場合、拡張前の前記フォントキャッシュの前記未使用の部分を解放することを特徴とする請求項1に記載の画像形成装置。   The image forming apparatus according to claim 1, wherein the cache management unit releases the unused portion of the font cache before expansion when the font cache is expanded. 前記キャッシュ管理手段は、前記文字の解像度に少なくとも更に応じて前記フォントキャッシュを別々に前記メモリー上に確保し、
前記キャッシュ管理手段は、前記解像度に少なくとも更に応じて前記拡張単位を決定することを特徴とする請求項1または請求項2に記載の画像形成装置。
The cache management means secures the font cache separately on the memory according to at least further the resolution of the character,
The image forming apparatus according to claim 1, wherein the cache management unit determines the extension unit at least further according to the resolution.
前記キャッシュ管理手段は、前記印刷データに含まれる前記文字のうち同一の前記フォントキャッシュに格納されるべき前記文字の種類の数に少なくとも更に応じて前記拡張単位を決定することを特徴とする請求項1から請求項3までの何れかに記載の画像形成装置。   The cache management unit determines the extension unit at least further according to the number of types of the characters to be stored in the same font cache among the characters included in the print data. The image forming apparatus according to claim 1. メモリーを備えている画像形成装置によって実行される文字描画プログラムであって、
印刷データに含まれる文字のビットマップイメージを描画する文字描画ステップと、
前記文字描画ステップによって描画された前記ビットマップイメージを一時的に格納する領域であるフォントキャッシュを管理するキャッシュ管理ステップと
を前記画像形成装置に実行させ、
前記キャッシュ管理ステップは、前記文字の書体およびフォントサイズに少なくとも応じて前記フォントキャッシュを別々に前記メモリー上に確保するステップであり、
前記文字描画ステップは、前記文字の前記ビットマップイメージが前記フォントキャッシュに格納されている場合、そのビットマップイメージを前記フォントキャッシュから取得するステップであり、
前記キャッシュ管理ステップは、前記フォントキャッシュを拡張する単位である拡張単位を前記フォントサイズに少なくとも応じて決定するステップであり、
前記キャッシュ管理ステップは、前記文字描画ステップによって描画された前記ビットマップイメージが格納される容量が前記フォントキャッシュの未使用の部分に残っていない場合、前記フォントキャッシュを前記拡張単位で拡張するステップであることを特徴とする文字描画プログラム。
A character drawing program executed by an image forming apparatus provided with a memory,
A character drawing step for drawing a bitmap image of characters included in the print data;
Causing the image forming apparatus to execute a cache management step of managing a font cache, which is an area for temporarily storing the bitmap image drawn by the character drawing step,
The cache management step is a step of securing the font cache separately on the memory according to at least the font and font size of the character,
The character drawing step is a step of obtaining the bitmap image from the font cache when the bitmap image of the character is stored in the font cache;
The cache management step is a step of determining an extension unit, which is a unit for extending the font cache, according to at least the font size;
The cache management step is a step of expanding the font cache by the expansion unit when a capacity for storing the bitmap image drawn by the character drawing step does not remain in an unused part of the font cache. A character drawing program characterized by being.
請求項4に記載の画像形成装置に送信される前記印刷データを生成するためのプリンタードライバーであって、
前記印刷データに含まれる予定の前記文字のうち同一の前記フォントキャッシュに格納されるべき前記文字の種類の数を前記フォントキャッシュ毎に算出する文字種類算出ステップと、前記文字種類算出ステップによって算出された前記文字の種類の数の情報を含めて前記印刷データを生成する印刷データ生成ステップとをコンピューターに実行させることを特徴とするプリンタードライバー。
A printer driver for generating the print data transmitted to the image forming apparatus according to claim 4,
The character type calculating step for calculating the number of types of the characters to be stored in the same font cache among the characters scheduled to be included in the print data, and the character type calculating step. A printer driver that causes a computer to execute a print data generation step for generating the print data including information on the number of types of the characters.
JP2012036554A 2012-02-22 2012-02-22 Image forming apparatus and character drawing program Active JP5701234B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012036554A JP5701234B2 (en) 2012-02-22 2012-02-22 Image forming apparatus and character drawing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012036554A JP5701234B2 (en) 2012-02-22 2012-02-22 Image forming apparatus and character drawing program

Publications (2)

Publication Number Publication Date
JP2013169763A true JP2013169763A (en) 2013-09-02
JP5701234B2 JP5701234B2 (en) 2015-04-15

Family

ID=49264026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012036554A Active JP5701234B2 (en) 2012-02-22 2012-02-22 Image forming apparatus and character drawing program

Country Status (1)

Country Link
JP (1) JP5701234B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0542724A (en) * 1991-08-09 1993-02-23 Tokyo Electric Co Ltd Character generation device
JPH08164641A (en) * 1994-04-26 1996-06-25 Hewlett Packard Co <Hp> Printer with cash memory and its management method
JPH0922335A (en) * 1995-07-06 1997-01-21 Ricoh Co Ltd Printer driver
JPH09166974A (en) * 1995-12-18 1997-06-24 Toshiba Corp Document processing device and cache functioning method
JPH10254426A (en) * 1997-03-14 1998-09-25 Juki Corp Character generating method
JP2000153648A (en) * 1998-11-19 2000-06-06 Canon Inc Print control apparatus and method for controlling driving of device of print control apparatus and memory medium with computer readable program stored
JP2002120418A (en) * 2000-10-18 2002-04-23 Ricoh Co Ltd Printer device and image processing device comprising the printer device
JP2004358906A (en) * 2003-06-06 2004-12-24 Ricoh Co Ltd Imaging forming apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0542724A (en) * 1991-08-09 1993-02-23 Tokyo Electric Co Ltd Character generation device
JPH08164641A (en) * 1994-04-26 1996-06-25 Hewlett Packard Co <Hp> Printer with cash memory and its management method
JPH0922335A (en) * 1995-07-06 1997-01-21 Ricoh Co Ltd Printer driver
JPH09166974A (en) * 1995-12-18 1997-06-24 Toshiba Corp Document processing device and cache functioning method
JPH10254426A (en) * 1997-03-14 1998-09-25 Juki Corp Character generating method
JP2000153648A (en) * 1998-11-19 2000-06-06 Canon Inc Print control apparatus and method for controlling driving of device of print control apparatus and memory medium with computer readable program stored
JP2002120418A (en) * 2000-10-18 2002-04-23 Ricoh Co Ltd Printer device and image processing device comprising the printer device
JP2004358906A (en) * 2003-06-06 2004-12-24 Ricoh Co Ltd Imaging forming apparatus

Also Published As

Publication number Publication date
JP5701234B2 (en) 2015-04-15

Similar Documents

Publication Publication Date Title
JP6447564B2 (en) Image forming apparatus, program, and information processing system
JP2019040564A (en) Printer driver, and information processing device
JP6202081B2 (en) Information processing apparatus, program, and image processing system
JP2012155401A (en) Printing system, printing device, control method of printing system, control method of printing device, and program
JP2016213646A (en) Print image generating device, color conversion control program and color conversion control method
JP5857594B2 (en) Distributed printing system and printing apparatus
JP5701234B2 (en) Image forming apparatus and character drawing program
US9165225B2 (en) Program and information processing apparatus
JP2019053403A (en) Program and printing system
JP2011142614A (en) Image processing apparatus, and control method therefor
JP4775480B2 (en) PDL data processing apparatus and PDL data processing program
JP6015478B2 (en) Control device, control method, and printer driver program
US9477912B2 (en) Printing apparatus, information processing apparatus and method for controlling the information processing apparatus, and storage medium
JP6539022B2 (en) PRINTING APPARATUS, PROCESSING METHOD, AND PROGRAM
JP2015176231A (en) Information processing apparatus, information processing method, and information processing system
US20200341710A1 (en) Job transmission device, job processing device, program, and job transmission method performed by job transmission device
JP2015001829A (en) Printing system, information processor and control method thereof, and program
JP6221543B2 (en) Program, information processing apparatus, information processing system, and image processing system
JP2008269260A (en) Data processor, data processing method and program
JP2008195041A (en) Image formation system, information processing method, information processing program
JP2010218325A (en) Printing controller and printing system
US9674381B2 (en) Electronic device including a job information generating device and access managing device, information management method to enable the electronic device to function, and a non-transitory computer-readable storage medium to store a program for the information management method
JP6123356B2 (en) Information processing apparatus, program, and log data generation method
JP6344145B2 (en) Image forming apparatus and image forming program
JP6186926B2 (en) Program and information processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140924

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140924

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141113

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150217

R150 Certificate of patent or registration of utility model

Ref document number: 5701234

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150