JPH04322363A - Information processor - Google Patents

Information processor

Info

Publication number
JPH04322363A
JPH04322363A JP3091988A JP9198891A JPH04322363A JP H04322363 A JPH04322363 A JP H04322363A JP 3091988 A JP3091988 A JP 3091988A JP 9198891 A JP9198891 A JP 9198891A JP H04322363 A JPH04322363 A JP H04322363A
Authority
JP
Japan
Prior art keywords
data
font
image data
vector
cache 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
JP3091988A
Other languages
Japanese (ja)
Inventor
Ichiro Ote
大手 一郎
Hisashi Kusano
草野 恒
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.)
Hitachi Ltd
Hitachi Industry and Control Solutions Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Microsoftware Systems 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 Hitachi Ltd, Hitachi Microsoftware Systems Inc filed Critical Hitachi Ltd
Priority to JP3091988A priority Critical patent/JPH04322363A/en
Publication of JPH04322363A publication Critical patent/JPH04322363A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To increase the character output speed by comparing the size of vector font data with the total sum of font image data generated from vector font data and allowing smaller data to exist on a composite cache device. CONSTITUTION:At the time or receiving a character output request, a controller 20 outputs font image data 80 as it is if this data 80 exists in a cache memory 10. if it does not exist there, vector font data 70 of the character is read out from a primary storage device 40 and is expanded to font image data 80 and is outputted, and this font image data 80 is made effective in the cache memory 10. At this time, the data volume of read vector font data 70 and the total volume of data which can be generated from vector font data 70 out of font image data 80 registered in the cache memory 10 are compared with each other, and smaller one of these data is stored in the cache memory 10.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ベクトルフォントデー
タ及びベクトルフォントデータから展開されたフォント
イメージデータをキャッシュシステムに格納して使用す
る、ベクトルフォント文字出力システムを備えた情報処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus equipped with a vector font character output system that stores vector font data and font image data developed from the vector font data in a cache system.

【0002】0002

【従来の技術】近年、情報処理装置は、より高品位の文
字出力を得るため、ベクトルフォントが利用されること
が多くなっている。
2. Description of the Related Art In recent years, vector fonts have been increasingly used in information processing devices in order to obtain higher quality character output.

【0003】ベクトルフォントを使用した従来の文字出
力システムのフォントキャッシュ方式を図7を用いて説
明する。
The font cache method of a conventional character output system using vector fonts will be explained with reference to FIG.

【0004】該システムは、2次記憶装置40、ラスタ
展開装置30、文字出力制御装置20、イメ−ジデ−タ
キャッシュ装置12から構成されている。
The system is composed of a secondary storage device 40, a raster expansion device 30, a character output control device 20, and an image data cache device 12.

【0005】文字出力制御装置20は文字出力のために
、イメージデータキャッシュ装置12に対して文字コー
ド,字体,文字サイズ,文字スタイル等の情報60を指
定してフォントイメージデータ80を要求する。
In order to output characters, the character output control device 20 requests font image data 80 from the image data cache device 12 by specifying information 60 such as character code, font, character size, and character style.

【0006】2次記憶装置40は、明朝,ゴシックなど
の各種のベクトルフォントファイルを格納している。そ
して、該記憶された各種情報は、文字種と文字コードを
指定することにより、特定の文字のベクトルフォントデ
ータ70を読み出すことが可能に構成されている。
The secondary storage device 40 stores various vector font files such as Mincho and Gothic. The stored various information is configured such that vector font data 70 of a specific character can be read by specifying the character type and character code.

【0007】ラスタ展開装置30は、2次記憶装置40
から読み出された、ベクトルフォントデータ70と文字
サイズ,文字スタイル等の情報よりフォントイメージデ
ータ80を生成する機能を有している。そして、生成し
たフォントイメ−ジデ−タ80は、イメージデータキャ
ッシュ装置12へ出力する。
[0007] The raster expansion device 30 has a secondary storage device 40.
It has a function of generating font image data 80 from the vector font data 70 and information such as character size, character style, etc. read from the font. The generated font image data 80 is then output to the image data cache device 12.

【0008】イメージデータキャッシュ装置12は、文
字出力制御装置20からの要求に応じて、上述のラスタ
展開装置30、2次記憶装置40から所定のフォントイ
メ−ジデ−タ80を入手し、これを該文字出力装置20
へ出力する構成となっている。また、該イメ−ジデ−タ
キャッシュ装置12は、一度入手したフォントイメ−ジ
デ−タ80を保持する機能を有している。そして、文字
出力制御装置20からの要求が、既に保持しているフォ
ントイメ−ジデ−タ80についてのものであれば、該既
に保持しているフォントイメ−ジデ−タ80をそのまま
出力する構成である。  動作を説明する。
In response to a request from the character output control device 20, the image data cache device 12 obtains predetermined font image data 80 from the above-mentioned raster development device 30 and secondary storage device 40, and stores it. The character output device 20
It is configured to output to. The image data cache device 12 also has a function of holding font image data 80 once obtained. If the request from the character output control device 20 is for the font image data 80 already held, the font image data 80 already held is output as is. be. Explain the operation.

【0009】文字出力制御装置20よりフォントイメー
ジデータ80の要求があると、イメージデータキャッシ
ュ装置12は、2次記憶装置40よりベクトルフォント
データ70を読み込む。そして、これをラスタ展開装置
30に転送してラスタ展開し、フォントイメ−ジデ−タ
80に変換する。その後、イメージデータキャッシュ装
置12は、文字出力制御装置20に該フォントイメージ
データ80を返す。また、同時に、該フォントイメージ
データ80を、文字コード,字体,文字サイズ,文字ス
タイル等の情報60と共に、イメージデータキャッシュ
装置12自身が保持する。
When the character output control device 20 requests font image data 80, the image data cache device 12 reads the vector font data 70 from the secondary storage device 40. Then, this is transferred to the raster development device 30 for raster development and converted into font image data 80. Thereafter, the image data cache device 12 returns the font image data 80 to the character output control device 20. At the same time, the image data cache device 12 itself holds the font image data 80 together with information 60 such as character codes, fonts, character sizes, and character styles.

【0010】そのため、次回以降、該同一のフォントイ
メージデータ80が要求された場合には、イメージデ−
タキャッシュ装置12は、自らの内部に登録されている
フォントイメージデータ80を文字出力制御装置20に
返す。
[0010] Therefore, when the same font image data 80 is requested from next time onwards, the image data
The cache device 12 returns the font image data 80 registered therein to the character output control device 20.

【0011】すなわち、2次記憶装置40からの読み出
し処理、ラスタ展開装置30におけるラスタ展開処理の
頻度を減らして、文字出力速度の高速化を図っていた。
That is, the frequency of read processing from the secondary storage device 40 and raster development processing in the raster development device 30 is reduced to increase the character output speed.

【0012】なお、このようなフォントキャッシュ装置
については、例えば、特開昭63−228195号や特
開平1−88660号に記載されている。
[0012] Such a font cache device is described in, for example, Japanese Patent Application Laid-Open Nos. 63-228195 and 1-88660.

【0013】[0013]

【発明が解決しようとする課題】上述した従来のフォン
トキャッシュシステムでは、ラスタ展開結果のフォント
イメージデータをキャッシュして、ラスタ展開の頻度を
抑えることを主たる目的としている。
The main purpose of the conventional font cache system described above is to cache font image data resulting from raster expansion to reduce the frequency of raster expansion.

【0014】しかし、より高速なラスタ展開装置を利用
できラスタ展開時間が相対的に無視できる状況になった
場合には、2次記憶装置からのベクトルフォントデータ
の読み込み頻度がシステム全体の速度を支配するように
なる。つまり、文字出力を高速化するためには、ラスタ
展開の頻度を抑えることよりも、2次記憶装置40から
のベクトルフォントデータの読み込み頻度を抑えること
がより重要になってくる。
However, if a faster raster expansion device is available and the raster expansion time becomes relatively negligible, the frequency of reading vector font data from the secondary storage device will dominate the speed of the entire system. I come to do it. In other words, in order to speed up character output, it is more important to reduce the frequency of reading vector font data from the secondary storage device 40 than to reduce the frequency of raster expansion.

【0015】ところで、ある文字を表示するために必要
なデ−タ量は、ベクトルフォントでは文字の大きさに関
係なく一定である。一方、フォントイメ−ジデ−タの場
合は、同じ文字であっても、文字が大きくなるほど必要
とするデ−タ量が増える。従って、ある文字を表示する
ために必要なデ−タ量は、文字の大きさが小さい場合に
はフォントイメ−ジデ−タの方が小さいが、文字大きさ
が大きくなると、ベクトルフォントの方が小さくなる。 また、フォントイメ−ジデ−タでは、同じ文字であって
も、文字サイズ毎に別々のデ−タが必要である。
By the way, the amount of data required to display a certain character is constant regardless of the size of the character in vector fonts. On the other hand, in the case of font image data, the amount of data required increases as the characters become larger, even if the characters are the same. Therefore, the amount of data required to display a certain character is smaller for font image data when the character size is small, but when the character size becomes large, vector font is smaller. becomes smaller. Furthermore, font image data requires separate data for each character size even for the same character.

【0016】そのため、従来のようにフォントイメージ
データをキャッシュに登録する方法では、大きな文字サ
イズのフォントを多用するアプリケーションに対しては
、キャッシュに少数のフォントデータしか登録できず、
キャッシュ効率が上がらなかった。
Therefore, with the conventional method of registering font image data in the cache, only a small amount of font data can be registered in the cache for applications that frequently use large fonts.
Cache efficiency did not improve.

【0017】本発明は、高速なラスタ展開装置が利用で
きる環境下において、広範囲のアプリケーションに対し
てフォントデータのキャッシュ効率を高めて、すなわち
より多くのフォント情報を保持して、外部記憶装置等か
らのベクトルフォントデータの読み込み頻度を抑え、文
字出力をより高速化した情報処理装置を提供することを
目的とする。
The present invention improves the caching efficiency of font data for a wide range of applications in an environment where a high-speed raster expansion device is available, that is, holds more font information and stores it from an external storage device. An object of the present invention is to provide an information processing device that reduces the frequency of reading vector font data and speeds up character output.

【0018】[0018]

【課題を解決するための手段】本発明は上記目的を達成
するためになされたもので、ベクトルフォントデ−タを
記憶した二次記憶手段と接続されて使用される情報処理
装置であって、フォントデ−タを、一時、記憶するキャ
ッシュメモリと、ベクトルフォントデ−タをフォントイ
メ−ジデ−タに展開して出力する展開手段と、文字の出
力要求を受けた場合、上記キャッシュメモリから当該フ
ォントデ−タを読み出して、該読み出したベクトルフォ
ントデ−タを上記展開手段により展開させるが、上記キ
ャッシュメモリに当該フォントデ−タが存在しなかった
場合には、上記二次記憶手段から当該ベクトルフォント
デ−タを読み出して、上記展開手段に展開させると共に
、該読み出したベクトルフォントデ−タを上記キャッシ
ュメモリに記憶させる制御手段とを備えたことを特徴と
する情報処理装置が提供される。
[Means for Solving the Problems] The present invention has been made to achieve the above object, and is an information processing device that is used in connection with a secondary storage means that stores vector font data. a cache memory for temporarily storing font data; a decompression means for decompressing vector font data into font image data and outputting the data; - the read vector font data is expanded by the expansion means, but if the font data does not exist in the cache memory, the vector font data is extracted from the secondary storage means. - control means for reading the vector font data and causing the development means to develop the vector font data, and storing the read vector font data in the cache memory.

【0019】なお、上記制御手段は、一部の文字につい
ては上記展開手段により展開されたフォントイメ−ジデ
−タを上記キャッシュメモリに記憶させ、該キャッシュ
メモリから上記ベクトルフォントデ−タを読み出す前に
、該キャッシュメモリにおいて上記出力要求に対応する
フォントイメ−ジデ−タを検索し、当該フォントイメ−
ジデ−タを発見した場合には、該フォントイメ−ジデ−
タをそのまま出力し、ベクトルフォントデ−タの読み出
しは行わないことが好ましい。
The control means stores the font image data developed by the development means for some characters in the cache memory, and before reading out the vector font data from the cache memory. Then, the cache memory is searched for the font image data corresponding to the above output request, and the font image data is
If the font image data is found, the font image data
It is preferable to output the vector font data as is and not to read the vector font data.

【0020】また、上記制御手段は、一つの文字につい
ては、ベクトルフォントデ−タとフォントイメ−ジデ−
タとのいずれか一方のみを上記キャッシュメモリにおい
て有効とすることが好ましい。
[0020] The control means also controls vector font data and font image data for one character.
Preferably, only one of the data and the data is valid in the cache memory.

【0021】この場合、上記制御手段は、上記二次記憶
手段から読み出したベクトルフォントデ−タの展開を行
わせた際に、該ベクトルフォントデ−タのデ−タ量と、
上記キャッシュメモリに記憶されているフォントイメ−
ジデ−タのうち該ベクトルフォントデ−タから生成可能
なフォントイメ−ジデ−タおよび該展開により作成され
たフォントイメ−ジデ−タの総デ−タ量とを比較して、
デ−タ量の少ない方のみをキャッシュメモリにおいて有
効とすることが好ましい。
In this case, when the vector font data read from the secondary storage means is expanded, the control means determines the data amount of the vector font data;
The font image stored in the cache memory above
Among the vector font data, the total amount of font image data that can be generated from the vector font data and the font image data created by the expansion are compared,
It is preferable to make only the one with the smaller amount of data effective in the cache memory.

【0022】本発明の他の態様としては、二次記憶手段
から読み出したベクトルフォントのデ−タ量と、キャッ
シュメモリに記憶されている当該ベクトルフォントから
生成可能なフォントイメ−ジデ−タの総デ−タ量とを比
較し、デ−タ量の少ない方のみをキャッシュメモリにお
いて有効とするフォントデ−タキャシュ方法が提供され
る。
Another aspect of the present invention is to calculate the amount of vector font data read from the secondary storage means and the total amount of font image data that can be generated from the vector font stored in the cache memory. A font data caching method is provided that compares the amount of data and makes only the one with the smaller amount of data valid in the cache memory.

【0023】[0023]

【作用】制御手段は、文字の出力要求を受けた場合、キ
ャッシュメモリに該出力要求に対応したフォイメ−ジデ
−タが存在するか否かを判断する。存在する場合には、
該フォントイメ−ジデ−タそのまま出力させる。一方、
対応するフォントイメ−ジデ−タがキャッシュメモリに
存在しない場合には、該出力要求を受けた文字のベクト
ルフォントデ−タを、ハ−ドディスク等の二次記憶手段
から読み出す。そして、該読み出したベクトルフォント
デ−タを上記展開手段によりフォントイメ−ジデ−タに
展開させ、これを出力する。また、制御手段は、該フォ
ントイメ−ジデ−タをキャッシュメモリにおいて有効と
する。
[Operation] When the control means receives a request to output characters, it determines whether or not image data corresponding to the output request exists in the cache memory. If it exists,
The font image data is output as is. on the other hand,
If the corresponding font image data does not exist in the cache memory, the vector font data of the character requested to be output is read from a secondary storage means such as a hard disk. Then, the read vector font data is developed into font image data by the development means, and this is output. Further, the control means makes the font image data valid in the cache memory.

【0024】さらに、制御手段は、この時二次記憶手段
から読み出した該ベクトルフォントデ−タのデ−タ量と
、キャッシュメモリに登録されているフォントイメ−ジ
デ−タのうち該ベクトルフォントデ−タから生成可能な
ものの総デ−タ量を比較する。その結果、ベクトルフォ
ントデ−タの方がデ−タ量が小さければ、キャッシュメ
モリに記憶しているフォントイメ−ジデ−タを消去し、
代わって、当該ベクトルフォントデ−タを記憶させる。 なお、この場合、消去等の処理を行わずに、単にベクト
ルフォントデ−タのみを有効とする処理であってもよい
Furthermore, the control means determines the data amount of the vector font data read from the secondary storage means and the vector font data among the font image data registered in the cache memory. - Compare the total amount of data that can be generated from the data. As a result, if the amount of vector font data is smaller, the font image data stored in the cache memory is deleted,
Instead, the vector font data is stored. In this case, the process may be such that only the vector font data is made valid without performing any process such as erasing.

【0025】そして、これ以後、該ベクトルフォントデ
−タに対応する文字の出力要求があった場合には、該キ
ャッシュメモリに記憶されている該ベクトルフォントデ
−タを展開手段に出力し、二次記憶手段からの読み出し
は行わない。一方、ベクトルフォントデ−タの方が、デ
−タ量が大きければ、ベクトルフォントデ−タは有効と
しない。
After this, when there is a request to output a character corresponding to the vector font data, the vector font data stored in the cache memory is output to the expansion means, and the Reading from the next storage means is not performed. On the other hand, if the vector font data has a larger amount of data, the vector font data is not considered valid.

【0026】[0026]

【実施例】本発明の一実施例を図面を用いて説明する。[Embodiment] An embodiment of the present invention will be described with reference to the drawings.

【0027】本発明の情報処理装置のハ−ドウエアは、
図1に示しすように、CPU1、キ−ボ−ド2、RAM
3、ROM4、ディスクドライブ等の2次記憶装置40
、CRT5、プリンタ6等から構成されている。そして
、キャッシュ装置としての機能は、該RAM3、ROM
4に格納されているプログラムをCPU1が実行するこ
とにより発揮するものである。
[0027] The hardware of the information processing device of the present invention includes:
As shown in Figure 1, CPU 1, keyboard 2, RAM
3. Secondary storage device 40 such as ROM 4, disk drive, etc.
, CRT 5, printer 6, etc. The function as a cache device is that of the RAM3, ROM
This is achieved by the CPU 1 executing a program stored in the CPU 1.

【0028】図2は、そのキャッシュ装置としての機能
を達成するためのソフトウエア構成を、ハ−ドウエア的
に示したものである。
FIG. 2 shows a hardware configuration of the software for achieving the function of the cache device.

【0029】本実施例において複合キャッシュ装置10
は、ベクトルフォントデータ70を記憶するベクトルデ
ータキャッシュ装置11と、ベクトルフォントデータ7
0より展開したフォントイメージデータ80を記憶する
イメージデータキャッシュ装置12とを含んで構成され
ている。
In this embodiment, the composite cache device 10
includes a vector data cache device 11 that stores vector font data 70, and a vector data cache device 11 that stores vector font data 70;
The image data cache device 12 stores font image data 80 expanded from 0.

【0030】複合キャッシュ装置10は、文字出力装置
20から、文字種,文字コードの情報61、文字コード
,字体,文字サイズ,文字スタイル等の情報60が入力
されると、該条件に該当するフォントイメ−ジデ−タを
イメージデータキャッシュ装置12から検索し、フォン
トイメ−ジデ−タ80として出力する構成となっている
When the composite cache device 10 receives information 60 about character type, character code, character code, font, character size, character style, etc. from the character output device 20, it generates a font image that meets the conditions. - font image data is retrieved from the image data cache device 12 and output as font image data 80.

【0031】また、該当するフォントイメージデータ8
0がイメ−ジデ−タキャッシュ装置12に登録されてい
なくても、検索中の文字の展開元になるベクトルフォン
トデータ70が、ベクトルデ−タキャッシュ装置11に
登録されている場合には、該ベクトルフォントデ−タ7
0を、ラスタ展開装置30により処理し、現在必要とさ
れるフォントイメージデータ80を生成する。そして、
これを文字出力装置20へ出力する構成となっている。
[0031] Also, the corresponding font image data 8
0 is not registered in the image data cache device 12, if the vector font data 70 that is the source of the character being searched for is registered in the vector data cache device 11, the vector Font data 7
0 is processed by the raster expansion device 30 to generate the currently required font image data 80. and,
This is configured to be output to the character output device 20.

【0032】一方、イメージデータキャッシュ装置12
とベクトルデ−タキャッシュ装置11との両方において
、必要なデ−タを発見できなかった場合には、2次記憶
装置40から該当する文字のベクトルフォントデ−タ7
0を読み出して、これをラスタ展開装置30において展
開することにより、フォントイメ−ジデ−タ80を得る
構成となっている。なお、該処理の順序などの詳細につ
いては、動作説明において行う。
On the other hand, the image data cache device 12
If the necessary data cannot be found in both the vector font data 7 and the vector data cache device 11, vector font data 7 of the corresponding character is retrieved from the secondary storage device 40.
The configuration is such that the font image data 80 is obtained by reading 0 and developing it in the raster development device 30. Note that details such as the order of the processing will be given in the operation description.

【0033】さらに、本実施例の複合キャッシュ装置1
0は、一つの文字についてはベクトルフォントデータか
、それより生成可能なフォントイメージデータの何れか
一方のみを保持し、重複して保持することのない構成と
なっている。
Furthermore, the composite cache device 1 of this embodiment
0 holds only either vector font data or font image data that can be generated from the vector font data for one character, and does not hold any redundantly.

【0034】複合キャッシュ装置10は、以下のような
方法により、これを行う構成となっている。
The composite cache device 10 is configured to perform this by the following method.

【0035】図3に示すように、ベクトルフォントデー
タA0からは、任意の大きさのフォントイメージデータ
A1〜Anを生成することができる。なお、ここで、A
1〜An−1は、既に複合キャッシュ装置10に存在す
るフォントイメージデータである。また、Anは、文字
出力制御装置20からの要求に応えてその時点で新たに
生成されたフォントイメ−ジデ−タである。
As shown in FIG. 3, font image data A1 to An of any size can be generated from vector font data A0. In addition, here, A
1 to An-1 are font image data that already exist in the composite cache device 10. Further, An is font image data newly generated at that time in response to a request from the character output control device 20.

【0036】複合キャッシュ装置10は、二次記憶装置
40からベクトルフォントデ−タ70を読み出してフォ
ントイメ−ジデ−タを作成した際には、該フォントイメ
−ジデ−タをイメ−ジデ−タキャッシュ装置12に登録
する。この登録の際には、複合キャッシュ装置10は、
次に示す条件をチェックする構成となっている。
When the composite cache device 10 reads the vector font data 70 from the secondary storage device 40 and creates font image data, the composite cache device 10 converts the font image data into image data. Register in the cache device 12. At the time of this registration, the composite cache device 10:
It is configured to check the following conditions.

【0037】A0のサイズ ≦ A1〜Anのサイズの
総和つまり、この時、読み込んだベクトルフォントデ−
タA0のデ−タ量と、イメ−ジデ−タキャッシュ装置1
2に既に登録されているフォントイメ−ジデ−タのうち
、該ベクトルフォントデ−タ(A0)から作成すること
のできるフォントイメ−ジデ−タ(A1〜An−1)お
よび新たに作成したフォントイメ−ジデ−タ(An)と
のデ−タ量の総和との大きさを比較する。
[0037] Size of A0 ≦ Sum of sizes of A1 to An, that is, the vector font data read at this time.
Data amount of data A0 and image data cache device 1
Among the font image data already registered in 2, font image data (A1 to An-1) that can be created from the vector font data (A0) and newly created fonts. The image data (An) is compared with the total amount of data.

【0038】そして、上記条件が成立しない場合には、
新たに作成したフォントイメージデータ(An)を、そ
のまま、イメ−ジデ−タキャッシュ装置12に登録する
。そして、二次記憶装置40から読み込んだA0は登録
しない。
[0038] If the above conditions do not hold,
The newly created font image data (An) is registered as is in the image data cache device 12. A0 read from the secondary storage device 40 is not registered.

【0039】一方、上記条件が成立する場合には、ベク
トルフォントデータA0をベクトルデ−タキャッシュ装
置11に存在するようにする。そして、その時までに作
成され、イメ−ジデ−タキャッシュ装置12に登録され
ていた、当該フォントイメ−ジデ−タ(A1〜An)を
すべて削除する構成となっている。
On the other hand, if the above conditions are met, the vector font data A0 is made to exist in the vector data cache device 11. Then, all the font image data (A1 to An) created up to that time and registered in the image data cache device 12 are deleted.

【0040】つまり、複合キャッシュ装置10は、デ−
タ量が小さくなる方を選択して、一方のみを保持する構
成となっている。これにより、極めて大きなサイズで使
用される文字、あるいは、書体や大きさ等を様々に変え
て使用することの多い文字は、最終的には、ベクトルフ
ォントデ−タとして保持することになる構成となってい
る。
In other words, the composite cache device 10
The configuration is such that the one with the smaller amount of data is selected and only one is retained. As a result, characters that are used in extremely large sizes, or characters that are often used with various fonts, sizes, etc., will eventually be retained as vector font data. It has become.

【0041】なお複合キャッシュ装置10は、データの
管理を行なうために図4に示すキャッシュデータ管理テ
ーブル15を有している。このキャッシュデータ管理テ
ーブル15は、ベクトルフォントデータ70および/ま
たはフォントイメージデータ80を登録している。該登
録は、同一の文字種及び文字コードを持つフォントイメ
ージデータ70をリスト構造で接続した構成となってい
る。
The composite cache device 10 has a cache data management table 15 shown in FIG. 4 for managing data. This cache data management table 15 registers vector font data 70 and/or font image data 80. The registration has a configuration in which font image data 70 having the same character type and character code are connected in a list structure.

【0042】なお、図2に示した構造は論理的な構造を
示したものであって、ベクトルデ−タキャッシュ装置1
1とイメ−ジデ−タキャッシュ装置12は、実際には一
体となったものでもよい。
The structure shown in FIG. 2 is a logical structure, and the vector data cache device 1
1 and the image data cache device 12 may actually be integrated.

【0043】また、本実施例においては、複合キャッシ
ュ装置10をソフトウエアにより構成しているが、これ
に限定されるものではなく、ハ−ドウエア的に構成して
も良いことはいうまでもない。
Further, in this embodiment, the composite cache device 10 is configured by software, but it is not limited to this, and it goes without saying that it may be configured by hardware. .

【0044】文字出力制御装置20は、出力の文字の文
字コード,文字種,文字サイズ,文字スタイル等の情報
60を複合キャシュ装置10へ出力し、フォントイメー
ジデータ80を要求する機能を有する。
The character output control device 20 has a function of outputting information 60 such as the character code, type, size, and style of output characters to the composite cache device 10 and requesting font image data 80 .

【0045】ラスタ展開装置30は、ベクトルデータキ
ャッシュ装置11および/または2次記憶装置40から
読み出したベクトルフォントデータ70を、文字サイズ
,文字スタイル等の情報60に基づいて、極めて高速に
ラスタ展開し、フォントイメージデータ80を生成する
機能を有するものである。なお、ラスタ展開装置30は
、ハードウエアで実現されたものであっても、あるいは
、ソフトウエアで実現されたものであってもよい。
The raster expansion device 30 rasterizes the vector font data 70 read from the vector data cache device 11 and/or the secondary storage device 40 at an extremely high speed based on information 60 such as character size and character style. , and has a function of generating font image data 80. Note that the raster expansion device 30 may be realized by hardware or software.

【0046】2次記憶装置40は明朝,ゴシック等の各
種のベクトルフォントファイルを格納する構成となって
いる。該2次記憶装置40に記憶されているこれらの情
報は、文字種と文字コードを指定してすることにより、
所望の文字のベクトルフォントデータ70を読み出すこ
とが可能な構成である。
The secondary storage device 40 is configured to store various vector font files such as Mincho and Gothic. These pieces of information stored in the secondary storage device 40 can be changed by specifying the character type and character code.
The configuration is such that vector font data 70 of a desired character can be read out.

【0047】次に動作を説明する。Next, the operation will be explained.

【0048】図4は本実施例において構成されている複
合キャッシュシステムに対するデータのアクセスを図式
化したものである。また、図5、図6は複合キャッシュ
装置10の動作を示すフロ−チャ−トである。
FIG. 4 is a diagram illustrating data access to the composite cache system configured in this embodiment. 5 and 6 are flowcharts showing the operation of the composite cache device 10.

【0049】まず、図4および図5を用いて説明する。First, explanation will be given using FIGS. 4 and 5.

【0050】文字出力制御装置20より文字種,文字コ
ード,文字サイズ,文字スタイルの情報60を指定して
フォントイメージデータ80の要求があると(ステップ
101)、まず文字種と文字コードの情報61をキーと
してハッシュ技法によってキャッシュデータ管理テーブ
ルのエントリを検索する(ステップ102)。検索結果
を判定し(ステップ103)、エントリが存在した場合
には、続いて、該エントリはベクトルフォントデ−タで
あるか否かを判定する(ステップ104)。ベクトルフ
ォントデータ70だった場合は、該ベクトルフォントデ
−タ70をラスタ展開装置30に転送し、フォントイメ
ージデータ80を生成させる(すてっぷ105)。そし
て、生成したフォントイメ−ジデ−タ80を文字出力制
御装置20に返す(ステップ106)。
When the character output control device 20 requests font image data 80 by specifying character type, character code, character size, and character style information 60 (step 101), first, the character type and character code information 61 is entered as a key. The entry in the cache data management table is searched for using the hash technique (step 102). The search results are determined (step 103), and if an entry is found, it is then determined whether the entry is vector font data (step 104). If it is vector font data 70, the vector font data 70 is transferred to the raster development device 30 to generate font image data 80 (step 105). The generated font image data 80 is then returned to the character output control device 20 (step 106).

【0051】一方、ステップ104において、エントリ
がフォントイメージデータだった場合、上述のキャッシ
ュデ−タ管理テ−ブル15上でリスト構造によって接続
されているデ−タを、文字サイズと文字スタイルの情報
62をキーとしてリニアサーチ技法によって探索する(
ステップ107)。その結果、必要とするフォントイメ
−ジデ−タが見つかった場合、それをフォントイメージ
データ80として文字出力制御装置20に返す(ステッ
プ109)。
On the other hand, in step 104, if the entry is font image data, the data connected in the list structure on the cache data management table 15 is converted into font image data using font size and font style information. Search using linear search technique using 62 as a key (
Step 107). As a result, if the required font image data is found, it is returned to the character output control device 20 as font image data 80 (step 109).

【0052】なお、ステップ103においてエントリが
存在しなかった場合には、図6に示す処理を実行する(
ステップ111)。また、ステップ108において求め
るフォントイメ−ジデ−タが存在しなかった場合にも、
同様に図6に示す処理を実行する(ステップ110)。
Note that if no entry exists in step 103, the process shown in FIG. 6 is executed (
Step 111). Also, even if the font image data sought in step 108 does not exist,
Similarly, the process shown in FIG. 6 is executed (step 110).

【0053】次に図6について説明する。Next, FIG. 6 will be explained.

【0054】この図は、キャッシュデータ管理テーブル
15に求めるフォンイメ−ジトデータとベクトルフォン
トデ−タとがともに存在しなかった場合の動作フローチ
ャ−トである。
This figure is an operation flowchart when both the phone image data and vector font data required in the cache data management table 15 do not exist.

【0055】文字種と文字コードを指定して2次記憶装
置40より当該文字のベクトルフォントデータA0を読
み込む(ステップ121)。続いて、ベクトルフォント
データA0を文字サイズと文字スタイル情報と共にラス
タ展開装置30に転送し、フォントイメージデータAn
を生成する(ステップ122)。
The character type and character code are specified, and the vector font data A0 of the character is read from the secondary storage device 40 (step 121). Next, the vector font data A0 is transferred to the raster development device 30 along with the character size and character style information, and the font image data An is transferred to the raster development device 30.
is generated (step 122).

【0056】次に、文字種と文字コードをキーとしてハ
ッシュ技法によってキャッシュデータ管理テーブル15
におけるフォントデータのエントリを求める(ステップ
123)。
Next, the cache data management table 15 is created using the hash technique using the character type and character code as keys.
Find the font data entry in (step 123).

【0057】ラスタ展開結果のフォントイメージデータ
(An)のデ−タ量と、キャッシュデータ管理テーブル
15中に既に存在する同一の文字種と文字コードを持つ
フォントイメージデータ(A1〜An−1)のデ−タ量
との総和を求める(ステップ124)。なお、上述した
とおり同一の文字種と同一の文字コード情報を持つフォ
ントイメージデータは、ステップ123で求めたエント
リより始まるリスト構造を形成している。この場合、総
和の求め方は特に限定されず、上述のキャッシュデ−タ
管理テ−ブル15に各リスト構造毎のデ−タ量を予め保
持するようにしても、また、各処理毎に算出しても良い
The data amount of the font image data (An) as a result of raster expansion and the data of the font image data (A1 to An-1) having the same character type and character code that already exist in the cache data management table 15. - and the total amount of data (step 124). Note that, as described above, font image data having the same character type and the same character code information form a list structure starting from the entry found in step 123. In this case, the method of calculating the sum is not particularly limited, and even if the amount of data for each list structure is stored in advance in the cache data management table 15 described above, You may do so.

【0058】次にステップ121で読み込んだベクトル
フォントデータのデ−タ量と、ステップ124で算出し
たフォントイメージデータ(A1〜An)の総デ−タ量
とを比較する(ステップ125)。その結果、フォント
イメージデータの方が大きい場合には、ステップ123
で求めたエントリより始まるリスト構造を走査して、フ
ォントイメージデータ(A1〜An−1)をすべて削除
する(ステップ126)。そして、ステップ123で求
めたエントリの位置に、ステップ121で読み込んだベ
クトルフォントデータA0を登録する(ステップ127
)。
Next, the amount of vector font data read in step 121 is compared with the total amount of font image data (A1 to An) calculated in step 124 (step 125). As a result, if the font image data is larger, step 123
The list structure starting from the entry determined in step 126 is scanned and all font image data (A1 to An-1) are deleted (step 126). Then, the vector font data A0 read in step 121 is registered at the entry position found in step 123 (step 127
).

【0059】その後、ステップ122で生成したフォン
トイメージデータAnを文字出力制御装置20に返す(
ステップ128)。
Thereafter, the font image data An generated in step 122 is returned to the character output control device 20 (
Step 128).

【0060】一方、ステップ125においてフォントイ
メージデータ(A1〜An)の総デ−タ量の方が小さか
った場合には、ステップ122で生成したフォントイメ
ージデータAnをキャッシュデータ管理テーブル15に
登録する(ステップ129)。なお、この場合、当該文
字についてのフォントイメージデータのリスト構造A1
〜An−1が存在したならば、このリスト構造に連結す
るようにフォントイメージデータAnを登録する。
On the other hand, if the total amount of font image data (A1 to An) is smaller in step 125, the font image data An generated in step 122 is registered in the cache data management table 15 ( Step 129). In this case, the list structure A1 of font image data for the character in question is
If ~An-1 exists, font image data An is registered so as to be connected to this list structure.

【0061】そしてステップ122で生成したフォント
イメージデータAnを文字出力制御装置20に返す(ス
テップ130)。
Then, the font image data An generated in step 122 is returned to the character output control device 20 (step 130).

【0062】以上説明したように上記実施例においては
、文字出力時に必要なフォントイメージデータをより短
い時間で用意できる可能性が高くなるため、結果として
より高速な文字出力が可能になる。また、これにより結
果的により、レスポンスに優れ操作性の良い情報処理装
置を提供することができる。
As explained above, in the above embodiment, it is more likely that the font image data necessary for character output can be prepared in a shorter time, and as a result, faster character output is possible. Further, as a result, it is possible to provide an information processing device with excellent response and good operability.

【0063】本実施例においては、パ−ソナルコンピュ
−タ等の情報処理装置を例として説明したが、これに限
定されるものではなく、プリンタはもとより、文字出力
を必要とするあらゆる機器に対して適用することができ
ることはいうまでもない。
In this embodiment, an information processing device such as a personal computer has been explained as an example, but the information processing device is not limited to this, and can be applied to any device that requires character output, as well as printers. Needless to say, it can be applied.

【0064】[0064]

【発明の効果】以上説明してきたように本発明によれば
、ベクトルフォント文字出力システムにおいて、より高
いフォントキャッシュ効率を実現することができる。 また高速なラスタ展開装置を利用できる環境においては
、高速な文字出力を可能とすることができる。
As described above, according to the present invention, higher font cache efficiency can be achieved in a vector font character output system. Furthermore, in an environment where a high-speed raster expansion device can be used, high-speed character output can be made possible.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の一実施例のハ−ドウエア構成を示す説
明図である。
FIG. 1 is an explanatory diagram showing the hardware configuration of an embodiment of the present invention.

【図2】複合フォントキャッシュ装置のソフトウエア構
成図である。
FIG. 2 is a software configuration diagram of a composite font cache device.

【図3】ベクトルフォントデータとそのデータより生成
するフォントイメージデータの関係の説明図である。
FIG. 3 is an explanatory diagram of the relationship between vector font data and font image data generated from the data.

【図4】複合キャッシュ装置に対するフォントデータの
アクセスの説明図である。
FIG. 4 is an explanatory diagram of font data access to the composite cache device.

【図5】複合キャッシュ装置のフォントデータ検索処理
を示す動作フローチャ−トである。
FIG. 5 is an operational flowchart showing font data search processing of the composite cache device.

【図6】複合キャッシュ装置に所望のフォントデータが
存在しなかった場合の動作フロー図である。
FIG. 6 is an operation flow diagram when desired font data does not exist in the composite cache device.

【図7】従来のフォントキャッシュ方式の説明図である
FIG. 7 is an explanatory diagram of a conventional font cache method.

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

1:CPU 2:キ−ボ−ド 3:RAM 4:ROM 5:CRT 6:プリンタ 10:複合キャッシュ装置 11:ベクトルデータキャッシュ装置 12:イメージデータキャッシュ装置 15:キャッシュデータ管理テーブル 20:文字出力制御装置 30:ラスタ展開装置 40:2次記憶装置 60:文字種,文字コード,文字サイズ,文字スタイル
等の情報 61:文字種,文字コードの情報 62:文字サイズ,文字スタイル等の情報70:ベクト
ルフォントデータ 80:フォントイメージデータ A0:展開元の一文字分のベクトルフォントデータA1
〜An:A0より生成したフォントイメージデータA1
〜An−1:すでに複合キャッシュ装置10に登録され
ているフォントイイメ−ジデ−タ
1: CPU 2: Keyboard 3: RAM 4: ROM 5: CRT 6: Printer 10: Complex cache device 11: Vector data cache device 12: Image data cache device 15: Cache data management table 20: Character output control Device 30: Raster development device 40: Secondary storage device 60: Information on character type, character code, character size, character style, etc. 61: Information on character type, character code 62: Information on character size, character style, etc. 70: Vector font data 80: Font image data A0: Vector font data for one character of expansion source A1
~An: Font image data A1 generated from A0
~An-1: Font-like image data already registered in the composite cache device 10

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】ベクトルフォントデ−タを記憶した二次記
憶手段と接続されて使用される情報処理装置であって、
フォントデ−タを、一時、記憶するキャッシュメモリと
、ベクトルフォントデ−タをフォントイメ−ジデ−タに
展開して出力する展開手段と、文字の出力要求を受けた
場合、上記キャッシュメモリから当該フォントデ−タを
読み出して、該読み出したベクトルフォントデ−タを上
記展開手段により展開させるが、上記キャッシュメモリ
に当該フォントデ−タが存在しなかった場合には、上記
二次記憶手段から当該ベクトルフォントデ−タを読み出
して、上記展開手段に展開させると共に、該読み出した
ベクトルフォントデ−タを上記キャッシュメモリに記憶
させる制御手段と、を備えたことを特徴とする情報処理
装置。
1. An information processing device used in connection with a secondary storage means storing vector font data, the information processing device comprising:
a cache memory for temporarily storing font data; a decompression means for decompressing vector font data into font image data and outputting the data; - the read vector font data is expanded by the expansion means, but if the font data does not exist in the cache memory, the vector font data is extracted from the secondary storage means. - control means for reading the vector font data, causing the expansion means to expand the vector font data, and storing the read vector font data in the cache memory.
【請求項2】上記制御手段は、一部の文字については上
記展開手段により展開されたフォントイメ−ジデ−タを
上記キャッシュメモリに記憶させ、該キャッシュメモリ
から上記ベクトルフォントデ−タを読み出す前に、該キ
ャッシュメモリにおいて上記出力要求に対応するフォン
トイメ−ジデ−タを検索し、当該フォントイメ−ジデ−
タを発見した場合には、該フォントイメ−ジデ−タをそ
のまま出力し、ベクトルフォントデ−タの読み出しは行
わないことを特徴とする請求項1記載の情報処理装置。
2. The control means stores font image data developed by the development means for some characters in the cache memory, and before reading the vector font data from the cache memory. Then, the cache memory is searched for the font image data corresponding to the above output request, and the font image data is
2. The information processing apparatus according to claim 1, wherein when the font image data is found, the font image data is output as is, and the vector font data is not read.
【請求項3】上記制御手段は、一つの文字については、
ベクトルフォントデ−タとフォントイメ−ジデ−タとの
いずれか一方のみを上記キャッシュメモリにおいて有効
とすることを特徴とする請求項2記載の情報処理装置。
[Claim 3] The control means, for one character, is configured to:
3. The information processing apparatus according to claim 2, wherein only one of vector font data and font image data is made valid in the cache memory.
【請求項4】上記制御手段は、上記二次記憶手段から読
み出したベクトルフォントデ−タの展開を行わせた際に
、該ベクトルフォントデ−タのデ−タ量と、上記キャッ
シュメモリに記憶されているフォントイメ−ジデ−タの
うち該ベクトルフォントデ−タから生成可能なフォント
イメ−ジデ−タおよび該展開により作成されたフォント
イメ−ジデ−タの総デ−タ量とを比較して、デ−タ量の
少ない方のみをキャッシュメモリにおいて有効とするこ
とを特徴とする請求項3記載の情報処理装置。
4. When the vector font data read from the secondary storage means is expanded, the control means determines the amount of vector font data and the amount of vector font data stored in the cache memory. Compare the total amount of font image data that can be generated from the vector font data and the font image data created by the expansion. 4. The information processing apparatus according to claim 3, wherein only the one with a smaller amount of data is made effective in the cache memory.
【請求項5】二次記憶手段から読み出したベクトルフォ
ントのデ−タ量と、キャッシュメモリに記憶されている
当該ベクトルフォントから生成可能なフォントイメ−ジ
デ−タの総デ−タ量とを比較し、デ−タ量の少ない方の
みをキャッシュメモリにおいて有効とするフォントデ−
タキャシュ方法。
5. Compare the amount of vector font data read from the secondary storage means and the total amount of font image data that can be generated from the vector font stored in the cache memory. However, the font data with only the smaller amount of data is valid in the cache memory.
Takash method.
JP3091988A 1991-04-23 1991-04-23 Information processor Pending JPH04322363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3091988A JPH04322363A (en) 1991-04-23 1991-04-23 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3091988A JPH04322363A (en) 1991-04-23 1991-04-23 Information processor

Publications (1)

Publication Number Publication Date
JPH04322363A true JPH04322363A (en) 1992-11-12

Family

ID=14041846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3091988A Pending JPH04322363A (en) 1991-04-23 1991-04-23 Information processor

Country Status (1)

Country Link
JP (1) JPH04322363A (en)

Similar Documents

Publication Publication Date Title
US7692656B2 (en) Automatic synthesis of font tables for character layout
US20020093506A1 (en) Apparatus and method for storing and retrieving images for transmission to an output device
US6397233B1 (en) Document processing apparatus and computer program product therefor
KR100257843B1 (en) Character processing unit, character processing method and memory
JPH10289240A (en) Image processing apparatus and control method thereof
JP3500893B2 (en) Information processing apparatus and information processing method
JP2001005830A (en) Information processing apparatus and method, computer readable memory
JPH08185396A (en) Chinese kanji retrieval system
JPH06274145A (en) Character processor
JP2790186B2 (en) Character output method and device
JP3213991B2 (en) Word processor
JPH0930044A (en) Printer
JPH11272256A (en) Character display control device and control method therefor
JPH04251291A (en) Character string plotting system in raster image processing system
JP3119004B2 (en) Character processor
JPH08194702A (en) Information processing apparatus and character cache method thereof
JPH08221050A (en) Information processing device with character processing function
JPH06274144A (en) Character processor
JPH0765013A (en) Document retrieval device
JPH0854870A (en) Character pattern generator
JPH0981428A (en) Data processing device and data processing method
JPH07271338A (en) Character generator and method thereof
JPH10188022A (en) Image processing method and apparatus, and storage medium storing program for executing the method
JPH04318893A (en) Character processor
JPH08132687A (en) Print control device