JPH02150895A - Image data processor - Google Patents

Image data processor

Info

Publication number
JPH02150895A
JPH02150895A JP63305732A JP30573288A JPH02150895A JP H02150895 A JPH02150895 A JP H02150895A JP 63305732 A JP63305732 A JP 63305732A JP 30573288 A JP30573288 A JP 30573288A JP H02150895 A JPH02150895 A JP H02150895A
Authority
JP
Japan
Prior art keywords
character
font
expanded
page memory
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63305732A
Other languages
Japanese (ja)
Inventor
Akitsugu Yamaguchi
山口 晶嗣
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63305732A priority Critical patent/JPH02150895A/en
Publication of JPH02150895A publication Critical patent/JPH02150895A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To eliminate the need for a dedicated memory for the storage of image data which are already expanded by performing font-cache operation by copying a character image which is already expanded on a page memory to a current development object position on the same page memory. CONSTITUTION:A microprocessor 1 retrieves the table on a memory 7 by using the character code of a character to be expanded and judges whether or not the character is already expanded on the page memory 3. When the character is not registered in the table, character font data is read out of a character font memory 2 and expanded on the page memory 3 and the character code of the expanded character and the position on the page memory 3 are registered in the table. Further, when the character is already expanded and present on the page memory 3, the address of the already expanded character image on the page memory 3 is found in the table and the character image is copied to the current expansion object position. Thus, the need for the dedicated memory for the storage of the already expanded image data is eliminated.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、文字フォント、ベクトルフォントの印刷時ま
たは表示時における頁メモリへの展開制御を行うイメー
ジデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to an image data processing device that controls the development of character fonts and vector fonts in a page memory during printing or display.

(従来の技術) 従来、印刷時またはデイスプレィへの表示の際、コード
により指定されているフォントデータを頁メモリ上に展
開するイメージデータ処理装置がある。このような装置
は、ラスクスキャン型のプリンタ装置(例えば、レーザ
ビームプリンタ)やCRTデイスプレィ制御装置に組込
まれるものである。
(Prior Art) Conventionally, there is an image data processing device that develops font data specified by a code on a page memory when printing or displaying on a display. Such a device is incorporated into a rusk scan type printer device (for example, a laser beam printer) or a CRT display control device.

ところで、この種の装置にあっては、そのフォントデー
タの展開処理にあたってフォントキャッシュ方式という
手法を用いることにより、展開処理の高速化を図ってい
るものがある。
By the way, some devices of this type use a technique called a font cache method to speed up the processing of the font data.

このフォントキャッシュ方式についてワードプロセッサ
における文字フォントの展開処理を例にして説明する。
This font cache method will be explained using character font development processing in a word processor as an example.

まず、文字フォントに強調、斜体、拡大等の文字修飾が
指示されていたとする。このような文字フォントを展開
する場合、文字修飾の指示されていないものを展開する
場合に比してその処理時間が長くかかる。
First, it is assumed that character modifications such as emphasis, italics, and enlargement are instructed for a character font. When rendering such a character font, the processing time is longer than when rendering a font for which character decoration is not specified.

そこで、フォントキャッシュ方式とは、展開済みのイメ
ージデータとその文字フォントコードとを頁メモリとは
別のイメージ格納用メモリに保持しておき、展開指示が
ある毎にそのキャッシュメモリを検索し、その結果、キ
ャツシュヒツトしたときには、その展開済みイメージデ
ータを頁メモリに写すことにより、再度の同じ展開処理
を不要とする、というものである。これにより、特に文
字修飾が指示されている文字フォントの展開をスピード
アップしよう、というものである。
Therefore, the font cache method stores the expanded image data and its character font code in an image storage memory separate from the page memory, and searches the cache memory every time an expansion instruction is issued. As a result, when the data is exported, the developed image data is copied to the page memory, thereby eliminating the need for the same development process again. This is intended to speed up the development of character fonts that are specifically designated for character decoration.

しかしながら、このフォントキャッシュ方式を実現する
には、それ専用のキャッシュメモリを必要とする、とい
う問題があった。
However, in order to implement this font cache method, there is a problem in that a dedicated cache memory is required.

(発明が解決しようとする課題) このように従来のフォントキャッシュ方式を取るイメー
ジデータ処理装置にあっては、展開済みイメージデータ
格納用のメモリを必要とするため、コスト高となる問題
があった。
(Problems to be Solved by the Invention) As described above, image data processing devices that use the conventional font cache method have the problem of high costs because they require memory for storing expanded image data. .

本発明は、このような従来技術の有する問題点に鑑みて
なされたもので、その目的とするところは、展開済みイ
メージデータ格納のための専用メモリを必要とすること
なくフォントキャッシュを実現するイメージデータ処理
装置を提供することにある。
The present invention has been made in view of the problems of the prior art, and its purpose is to provide an image that realizes a font cache without requiring a dedicated memory for storing expanded image data. An object of the present invention is to provide a data processing device.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 本発明のイメージデータ処理装置は、頁メモリと、この
頁メモリへの展開済みフォントの識別コード及びその展
開イメージデータの前記頁メモリ上における位置データ
から構成されるテーブルを記憶する手段と、展開対象と
なるフォントの識別コードに対応するイメージデータを
前記頁メモリに展開する際、前記展開対象となるフォン
トの識別コードに基づき前記テーブルを検索することに
より展開対象フォントが前記頁メモリに既に展開されて
いるものであるか否かを判定する手段と、この判定手段
により前記展開対象フォントが既に展開されていると判
定された場合にその展開済みフォントの展開済みイメー
ジを前記頁メモリ上の展開済み位置から前記頁メモリ上
における前記展開指示の対象となる展開対象位置ヘコピ
ーする手段と、前記判定手段により未だ展開されている
ものではないと判定された場合に前記展開対象フォント
を前記頁メモリ上における前記展開対象位置へ展開する
とともに、そのフォントの識別コード及びその展開イメ
ージデータを前記テーブルの構成要素として登録する手
段とを備えている。
(Means for Solving the Problems) An image data processing device of the present invention includes a page memory, an identification code of a font that has been expanded to this page memory, and position data of the expanded image data on the page memory. means for storing a table; and a means for storing a font to be developed by searching the table based on the identification code of the font to be developed when developing image data corresponding to an identification code of the font to be developed into the page memory; means for determining whether or not the font has already been expanded in the page memory; and when the determining means determines that the font to be expanded has already been expanded, an expanded image of the expanded font; means for copying the image from the expanded position on the page memory to the expansion target position on the page memory that is the target of the expansion instruction; The present invention includes means for rasterizing the target font to the rasterization target position on the page memory and registering the identification code of the font and the rasterized image data as constituent elements of the table.

(作 用) 本発明によれば、既に展開済みのフォントに関しては展
開済みイメージデータをその頁メモリ上における展開済
み位置から今回の展開対象位置ヘコピーするようにし、
展開済みイメージデータを格納するためのフォントキャ
ッシュ用メモリとして頁メモリを利用するようにしたた
め、フォントキャッシュを実現するにあたり展開済みイ
メージデータ格納のための専用メモリが不要になる。
(Function) According to the present invention, for a font that has already been expanded, the expanded image data is copied from the expanded position on the page memory to the current expansion target position,
Since the page memory is used as the font cache memory for storing the expanded image data, a dedicated memory for storing the expanded image data is not required when realizing the font cache.

(実施例) 以下に本発明の実施例について図面を参照しつつ説明す
る。
(Example) Examples of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例に係るプリンタ装置のブロッ
ク図、第2図はそのMPUが行う展開制御のフローチャ
ートである。
FIG. 1 is a block diagram of a printer device according to an embodiment of the present invention, and FIG. 2 is a flowchart of expansion control performed by the MPU.

1はマイクロプロセッサ(MPU) 、2はビットムー
バ、3は文字フォントメモリ、4は頁メモリ、5はメカ
インターフェース(メカIF)、6はプリンタ、7はテ
ーブルメモリであり、プリンタ装置はこれらにより構成
される。
1 is a microprocessor (MPU), 2 is a bit mover, 3 is a character font memory, 4 is a page memory, 5 is a mechanical interface (mechanical IF), 6 is a printer, and 7 is a table memory, and the printer device is composed of these. be done.

マイクロプロセッサ1は図示しないホストコンピュータ
からの指示によりプリンタ装置全体の制御を行うもので
、第2図に示すようなフォントキャッシュ形式のプリン
タ制御を行う。
The microprocessor 1 controls the entire printer device based on instructions from a host computer (not shown), and performs font cache type printer control as shown in FIG.

文字フォントメモリ2は文字フォントデータを格納する
ものであり、頁メモリ3は印刷用文字イメージを格納す
るビットマツプメモリである。文字フォントメモリ2の
文字フォントデータはビットムーバ4により頁メモリ3
に展開される。このビットムーバ4は頁メモリ3上のイ
メージデータを同じ頁メモリ3の他の位置へ部分的に転
送する機能をも有する。
The character font memory 2 stores character font data, and the page memory 3 is a bitmap memory that stores character images for printing. The character font data in character font memory 2 is transferred to page memory 3 by bit mover 4.
will be expanded to. This bit mover 4 also has the function of partially transferring the image data on the page memory 3 to another location in the same page memory 3.

頁メモリ3上の文字イメージデータはメカインターフェ
ース5を介してプリンタメカ6に供給され、このプリン
タメカ6により印刷されるようになっている。
The character image data on the page memory 3 is supplied to a printer mechanism 6 via a mechanical interface 5, and is printed by this printer mechanism 6.

キャッシュ用テーブルメモリ7は、頁メモリ3上に既に
展開されている文字フォントの識別コードとして、その
字形の種類、文字構成のドツト数、修飾の合焦等の情報
を含む文字コードと、これに対応する文字イメージが格
納されている頁メモリ3上のアドレスを記憶する。
The cache table memory 7 stores a character code containing information such as the type of character shape, the number of dots in the character structure, the focus of decoration, etc. as an identification code of the character font already expanded on the page memory 3. The address on the page memory 3 where the corresponding character image is stored is stored.

次に第2図を参照してマイクロプロセッサ1の制御によ
る印刷動作について説明する。ホストコンピュータから
マイクロプロセッサ1へのコマンドは、展開指示が印刷
指示に先立って発せられ、その出され方は、本例の場合
、文書全体の文字の展開指示が文字単位で発せられた後
、文書全体の印刷指示が出される。この他にも、例えば
、文書1頁分の展開指示が文字単位で発せられ、その後
、その1頁分の印刷指示が出され、その後、次の頁の展
開指示の後、該頁の印刷指示が出される、という方式も
ある。
Next, the printing operation under the control of the microprocessor 1 will be explained with reference to FIG. In the command from the host computer to the microprocessor 1, the expansion instruction is issued before the print instruction, and in this example, after the instruction to expand the characters of the entire document is issued character by character, The entire print instruction is issued. In addition, for example, an instruction to develop one page of a document is issued character by character, then an instruction to print that one page is issued, and then, after an instruction to develop the next page, an instruction to print that page is issued. There is also a method in which .

そして、まず、マイクロプロセッサ1は、ホストコンピ
ュータからのコマンドを受取ると、そのコマンドを解釈
しくステップS1)、このコマンドが展開指示であるか
印刷指示であるかの判断を行う(ステップS2)。
First, when the microprocessor 1 receives a command from the host computer, it interprets the command (step S1) and determines whether the command is an expansion instruction or a print instruction (step S2).

その結果、そのコマンドが文字の展開指示であれば、そ
の展開対象文字の文字コードを用いてメモリ7のテーブ
ルを検索しくステップS3)、当該文字が既に頁メモリ
3に展開されているか否かを判断する(ステップS4)
As a result, if the command is a character expansion instruction, the table in the memory 7 is searched using the character code of the character to be expanded (step S3), and it is determined whether or not the character has already been expanded in the page memory 3. Make a judgment (step S4)
.

その結果、該当文字がテーブルに登録されていない場合
には、文字フォントメモリ2から文字フォントデータを
取出し、ビットムーバ4を用いて頁メモリ3上に展開す
る(ステップS5)。さらに展開した文字の上記文字コ
ードと、その頁メモリ3上の位置をテーブルに登録する
(ステップS6)。
As a result, if the corresponding character is not registered in the table, the character font data is taken out from the character font memory 2 and expanded onto the page memory 3 using the bit mover 4 (step S5). Further, the character code of the expanded character and its position on the page memory 3 are registered in the table (step S6).

また、ステップS4の判断の結果、該当文字が既に展開
されて頁メモリ3上に存在していればテーブルからその
展開済み文字イメージの頁メモリ3上におけるアドレス
を求め、該展開済み文字イメージを現在の展開対象位置
にビットムーバ4を用いてコピーする(ステップS7)
Further, as a result of the judgment in step S4, if the corresponding character has already been expanded and exists on the page memory 3, the address of the expanded character image on the page memory 3 is obtained from the table, and the expanded character image is Copy to the expansion target position using bit mover 4 (step S7)
.

ホストコンピュータから展開指示が来るごとに、このよ
うなステップを繰返し、文書全体の展開処理が終わると
、次に印刷指示のコマンドがホストコンピュータから下
りてくる。
These steps are repeated each time an expansion instruction is received from the host computer, and when the entire document has been expanded, a print instruction command is sent from the host computer.

この印刷指示を受けた場合にはステップS2の判断がY
esになって、プリンタメカ6に対しメカインターフェ
ース5を経由して動作指示を与え(ステップS8)、次
いで同じくメカインターフェース5を経由して頁メモリ
3上のデータをプリンタメカ6に供給し転送する。さら
に印刷終了後メモリ7のキャッシュ用テーブルを初期化
する(ステップS9)。
If this print instruction is received, the determination in step S2 is Y.
es, gives operation instructions to the printer mechanism 6 via the mechanical interface 5 (step S8), and then also supplies and transfers the data on the page memory 3 to the printer mechanism 6 via the mechanical interface 5. . Furthermore, after printing is completed, the cache table in the memory 7 is initialized (step S9).

これにて、一連の印刷処理が終了する。This completes the series of print processing.

上述したように本実施例によれば、展開指示のあった文
字が既に展開処理のなされているものである場合、頁メ
モリ3上の展開済み文字イメージを同じ頁メモリ3上の
現在の展開対象位置にコピーすることによりフォントキ
ャッシュを行うようになっており、展開済みイメージデ
ータ格納のための専用メモリを不要としている。
As described above, according to this embodiment, if the character for which the expansion instruction has been performed has already been expanded, the expanded character image on the page memory 3 is used as the current expansion target on the same page memory 3. The font is cached by copying it to the specified location, eliminating the need for dedicated memory for storing expanded image data.

以上、一実施例について説明したが、本発明は、この実
施例に限定されるものではない。例えば文字修飾時のフ
ォントキャッシュに限らず、ベクトルフォントにも適用
することができる。また、印刷制御時だけでなく、デイ
スプレィ制御時にも応用することができる。
Although one embodiment has been described above, the present invention is not limited to this embodiment. For example, it can be applied not only to font caching when modifying characters, but also to vector fonts. Furthermore, it can be applied not only to print control but also to display control.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、既に展開済みのフ
ォントに関しては展開済みイメージデータをその頁メモ
リ上における展開済み位置から今回の展開対象位置ヘコ
ビーするようにし、展開済みイメージデータを格納する
ためのフォントキャッシュ用メモリとして頁メモリを利
用するようにしたため、展開済みイメージデータ格納の
専用メモリを必要とすることな(フォントキャッシュを
実現することができるという効果を奏する。
As explained above, according to the present invention, for fonts that have already been expanded, the expanded image data is transferred from the expanded position on the page memory to the current expansion target position, and the expanded image data is stored. Since the page memory is used as the font cache memory for the font cache, it is possible to realize a font cache without requiring a dedicated memory for storing expanded image data.

の制御内容を示すフローチャートである。3 is a flowchart showing control details.

1・・・マイクロプロセッサ、2・・・文字フォントメ
モリ、3・・・頁メモリ、4・・・ビットムーバ、5・
・・メカインターフェース、6・・・プリンタメカ、7
・・・キャッシュ用テーブルメモリ
DESCRIPTION OF SYMBOLS 1... Microprocessor, 2... Character font memory, 3... Page memory, 4... Bit mover, 5...
...Mechanical interface, 6...Printer mechanism, 7
...Table memory for cache

Claims (1)

【特許請求の範囲】 イメージデータが展開される頁メモリと、 この頁メモリへの展開済みフォントの識別コード及びそ
の展開済みイメージデータの前記頁メモリ上における位
置データから構成されるテーブルを記憶する手段と、 展開対象となるフォントの識別コードに対応するイメー
ジデータを前記頁メモリに展開する際、前記展開対象と
なるフォントの識別コードに基づき、前記テーブルを検
索することにより展開対象フォントが前記頁メモリに既
に展開されているものであるか否かを判定する手段と、 この判定手段により前記展開対象フォントが既に展開さ
れているものと判定された場合にその展開済みフォント
データの展開済みイメージデータを前記頁メモリ上の展
開済み位置から前記頁メモリ上における前記展開指示の
対象となる展開対象位置へコピーする手段と、 前記判定手段により未だ展開されていないものであると
判定された場合に前記展開対象フォントを前記頁メモリ
上における前記展開対象位置へ展開するとともに、その
フォントデータの識別コード及びその展開イメージデー
タを前記テーブルの構成要素として登録する手段と、 を備えているイメージデータ処理装置。
[Scope of Claims] A page memory in which image data is expanded, and means for storing a table comprising an identification code of an expanded font to this page memory and position data of the expanded image data on the page memory. When the image data corresponding to the identification code of the font to be developed is to be developed into the page memory, the font to be developed is stored in the page memory by searching the table based on the identification code of the font to be developed. means for determining whether or not the font to be developed has already been developed; and when the determining means determines that the font to be developed has already been developed, the developed image data of the developed font data is means for copying from the expanded position on the page memory to the expansion target position on the page memory that is the target of the expansion instruction; An image data processing device comprising: means for rasterizing a target font to the rasterization target position on the page memory, and registering an identification code of the font data and the rasterized image data as constituent elements of the table.
JP63305732A 1988-12-02 1988-12-02 Image data processor Pending JPH02150895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63305732A JPH02150895A (en) 1988-12-02 1988-12-02 Image data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63305732A JPH02150895A (en) 1988-12-02 1988-12-02 Image data processor

Publications (1)

Publication Number Publication Date
JPH02150895A true JPH02150895A (en) 1990-06-11

Family

ID=17948682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63305732A Pending JPH02150895A (en) 1988-12-02 1988-12-02 Image data processor

Country Status (1)

Country Link
JP (1) JPH02150895A (en)

Similar Documents

Publication Publication Date Title
US5537131A (en) Character generating method and apparatus
JP2610993B2 (en) Information processing apparatus and method
JPH0263763A (en) Printing apparatus
US6016155A (en) Character processing apparatus, character processing method, and memory
JP3486467B2 (en) Image recording apparatus and control method thereof
US6061070A (en) Character outputting
JP2974322B2 (en) Character processing apparatus and method
JPH02150895A (en) Image data processor
JP3308663B2 (en) Image forming device
JP2661742B2 (en) Character processor
JP3121103B2 (en) Character processing apparatus and method
JPH06274145A (en) Character processor
JPH05270055A (en) Image recording method and device, and information processing method
JP2710131B2 (en) Character processing apparatus and method
JP3241767B2 (en) Image processing device
JP4325339B2 (en) Printing system, host computer and printer driver
JP2908571B2 (en) Page printer
JPH09146521A (en) Device and method for output control
JPH05281946A (en) Method and device for character output
JPH04350897A (en) Method and device for generating character
JPS63242561A (en) Font reducing system
JPH03112668A (en) Printer
JPH02241267A (en) Picture information processor
JPH0490594A (en) Image recording device
JPH08290627A (en) Method and apparatus for printing