JPH04184487A - Font cache administration method - Google Patents

Font cache administration method

Info

Publication number
JPH04184487A
JPH04184487A JP2314605A JP31460590A JPH04184487A JP H04184487 A JPH04184487 A JP H04184487A JP 2314605 A JP2314605 A JP 2314605A JP 31460590 A JP31460590 A JP 31460590A JP H04184487 A JPH04184487 A JP H04184487A
Authority
JP
Japan
Prior art keywords
font
size
cache
stored
fonts
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
JP2314605A
Other languages
Japanese (ja)
Other versions
JP2892819B2 (en
Inventor
Katsuhide Kurihara
勝秀 栗原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2314605A priority Critical patent/JP2892819B2/en
Publication of JPH04184487A publication Critical patent/JPH04184487A/en
Application granted granted Critical
Publication of JP2892819B2 publication Critical patent/JP2892819B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To allow the efficient storage of variable size fonts by storing the fonts in the without a wastefull use of memorys font cache region corresponding to the size of the fonts when the fonts are stored in the font cache. CONSTITUTION:A secondary retrieval section 22 retrieves and reads out the fonts meeting character codes from a secondary memory device 14 if the fonts of the prescribed character codes are not stored in the font cache 13. A font side discriminating section 23 discriminates the size of the font read out of the secondary memory device 14 and stores the font into the small-size font cache 13a in the case of the small size below a prescribed size and stores the font into the large-size font cache 13b in the case of the large size above the prescribed size. The variable size fonts are efficiently stored into the memory without a wasteful use of memorys in this way even if the max. size of the variable size fonts are not limited.

Description

【発明の詳細な説明】 [目次] 概要 産業上の利用分野 従来の技術 (第14図〜第17図) 発明が解決しようとする課題 (第18図〜第20図) 課題を解決するための手段(第1図) 作用(第1図) 実施例 ・全体の構成(第2図) ・フォントキャッシュの構成(第3図)・フォントキャ
ッシュの検索処理(第4図)・個々のフォントキャッシ
ュの検索処理(第5図、第6図) ・優先処理(第7図、第8図) ・フォントフォルト処理 (第9図〜第11図) ・二次検索処理(第12図、第13図)発明の効果 [概要] コンピュータにより、各文字のフォントサイズが異なる
フォントを用いて、表示装置または印刷装置上に文字を
表示または印刷する場合のフォントキャッシュ管理方式
に関し。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Conventional technology (Figures 14 to 17) Problems to be solved by the invention (Figures 18 to 20) Problems to be solved by the invention Means (Figure 1) Effect (Figure 1) Example/Overall configuration (Figure 2) - Font cache configuration (Figure 3) - Font cache search process (Figure 4) - Individual font cache Search processing (Figures 5 and 6) - Priority processing (Figures 7 and 8) - Font fault processing (Figures 9 to 11) - Secondary search processing (Figures 12 and 13) Effects of the Invention [Summary] The present invention relates to a font cache management method when a computer displays or prints characters on a display device or a printing device using fonts in which each character has a different font size.

可変サイズフォントの最大サイズを制限しなくても、可
変サイズフォントをメモリに無駄なく、効率よく記憶す
ることができるフォントキャッシュ管理方式を提供する
ことを目的とし、フォントキャッシュにフォントのサイ
ズに対応させて複数のフォントキャッシュ領域を設け、
フォントをフォントキャッシュに記憶する場合において
、該フォントのサイズを判別し、サイズに応じたフォン
トキャッシュ領域にフォントを格納するするように構成
する。
The purpose of this method is to provide a font cache management method that can efficiently store variable-size fonts in memory without restricting the maximum size of variable-size fonts. Set up multiple font cache areas,
When storing a font in a font cache, the size of the font is determined and the font is stored in a font cache area according to the size.

[産業上の利用分野コ 本発明はフォントキャッシュ管理方式に係わり、特にコ
ンピュータにより、各文字のフォントサイズが異なるフ
ォントを用いて、表示装置または印刷装置上に文字を表
示または印刷する場合のフォントキャッシュ管理方式に
関する。
[Industrial Field of Application] The present invention relates to a font cache management system, and in particular to a font cache when characters are displayed or printed on a display device or a printing device by a computer using fonts in which each character has a different font size. Regarding management methods.

[従来の技術] 従来、文字を表示したり印刷するシステムでは。[Conventional technology] Conventionally, in systems that display or print characters.

一定の大きさの文字のみの表示あるいは印刷しかできな
かった。このようなシステムは第14図に示すような構
成となり、中央処理装置(CP U)1が主記憶装置2
に記憶されたプログラムに従って、入力装W3等から入
力された文字コードデータを主記憶袋!2に記憶し、そ
の文字コードに対応するフォントを主記憶装置2に記憶
しであるフォントデータから検索して、そのフォントを
表示装置4に表示し、あるいは印刷装置f5で印刷する
It was only possible to display or print characters of a certain size. Such a system has a configuration as shown in FIG. 14, in which a central processing unit (CPU) 1 has a main storage
According to the program stored in the main memory bag, the character code data input from the input device W3 etc. is stored in the main memory bag! 2, a font corresponding to the character code is retrieved from the font data stored in the main storage device 2, and the font is displayed on the display device 4 or printed on the printing device f5.

この場合、フォントは通常24 X 24または16X
16位の大きさからなるドツトイメージのデータである
In this case, the font is usually 24X24 or 16X
This is dot image data consisting of 16 sizes.

16X16の場合の例を第15図に示す。尚、以下では
、表示装置と印刷装置については同一に考えることがで
きるので、表示装置に限って説明するが、印刷装置につ
いては、「表示」を「印刷」に読み換えればよい。
An example in the case of 16×16 is shown in FIG. Note that in the following, since a display device and a printing device can be considered the same, only the display device will be explained, but with regard to a printing device, “display” may be replaced with “printing”.

ところで、文字コードに対応するフォントを主記憶袋r
I12から検索すると述べたが、実際は、日本語の文字
全てに対応するフォントを主記憶装置2に記憶しておく
わけにはいかない。なぜならば、日本語の文字数は1万
文字以上あるので、16X16ドツトのフォントでも、
格納するのに、320 Kバイ8以上要し、主記憶装置
を圧迫するからである。
By the way, the font corresponding to the character code is stored in the main memory bag r.
Although it has been stated that the search starts from I12, in reality, it is not possible to store fonts corresponding to all Japanese characters in the main storage device 2. This is because there are over 10,000 characters in Japanese, so even with a 16x16 dot font,
This is because it takes more than 320 Kby8 to store, which takes up space in the main memory.

また明朝体、ゴシック体のような複数の書体をサポート
するには、この容量の2倍、3倍の容量が必要になるこ
とから、この容量の問題は顕著になる。そのために、フ
ォントキャッシュという技術を利用して主記憶装置2に
一時に記憶するフォント数を少なくしている。
Furthermore, in order to support multiple fonts such as Mincho and Gothic, a capacity twice or three times this capacity is required, making this capacity problem more pronounced. To this end, a technology called font cache is used to reduce the number of fonts stored in the main storage device 2 at one time.

フォントキャッシュ管理は、主記憶装置2上に一定数の
フォントを格納する領域2aを用意し、この領域に使用
頻度の高いフォントを格納する。
In font cache management, an area 2a for storing a certain number of fonts is prepared on the main storage device 2, and frequently used fonts are stored in this area.

この領域2aのことをキャッシュあるいはフォントキャ
ッシュという0表示装置14に表示する文字コードに対
応するフォントが、このキャッシュ2aにある場合は、
そのフォントを利用して文字を高速に読み出して表示す
る。キャッシュ2a上に文字コードに対応するフォント
が存在しない場合は、二次記憶装置!(at気ディスク
装り6に格納しであるフォントデータを検索してフォン
トをキヤッシュ2aに格納すると共に、文字を表示する
This area 2a is referred to as a cache or font cache.0 If the font corresponding to the character code to be displayed on the display device 14 is in this cache 2a,
The font is used to read and display characters at high speed. If the font corresponding to the character code does not exist on cache 2a, the secondary storage device! (The font data stored in the at-temperature disk device 6 is retrieved, the font is stored in the cache 2a, and the characters are displayed.)

第16図及び第17図はかかる様子を図式化した説明図
である。第16図は「亜」を表示装M4に表示する場合
において、フォント「亜」がキャッシュ2a内に存在す
る場合であり、この場合にはフォント「亜」がキャッシ
ュ2aから読み出されて表示装!!4に表示される。第
17図は「娃」を表示装置f4に表示する場合において
、フォント[娃Jがキャッシュ2a内に存在しない場合
であり、この場合にはフォント「娃」が二次記憶装置6
から読み出されてキャッシュ2aに格納されると共に、
表示装置!4に表示される6 尚、キャッシュ2aに同時に格納できるフォント数には
制限があるので、既にキャッシュがフォントで一杯の時
にキャッシュ上にない文字を表示したい場合は、キャッ
シュ上のどれか1つのフォントを捨てて、新たに表示す
るフォントをそこに格納する。このように、主記憶装w
2上の少ないメモリを利用して、日本語のような大量の
文字を管理するのがフォントキャッシュ管理である。
FIG. 16 and FIG. 17 are explanatory diagrams illustrating such a situation. FIG. 16 shows a case where the font "A" exists in the cache 2a when "A" is displayed on the display device M4. In this case, the font "A" is read from the cache 2a and displayed on the display device M4. ! ! 4 will be displayed. FIG. 17 shows a case where the font [娃J does not exist in the cache 2a when displaying "娃" on the display device f4, and in this case, the font "娃" is displayed on the secondary storage device 6.
is read from and stored in the cache 2a, and
Display device! Note that there is a limit to the number of fonts that can be stored in cache 2a at the same time, so if you want to display a character that is not in the cache when the cache is already full of fonts, display one of the fonts in the cache. and store the new font to be displayed there. In this way, the main memory
Font cache management is a way to manage a large number of characters, such as Japanese, by using the small amount of memory on 2.

[発明が解決しようとする課題] フォントには、固定サイズフォントと可変サイ\ズフォ
ントがある。可変サイズフォントは、CADやデスクト
ップパブリッシングの世界で必要になってきたフォント
である。CADやデスクトップパブリッシングでは、利
用者が意図した大きさの文字を表示することが要求され
、このため任意の大きさで文字を表示できるストローク
フォント(ベクトルフォント)またはアウトラインフォ
ントが考案された。ストロークフォントは第18図に示
すように、文字が線分から構成されるものとして、その
線分の端点の座標値からなるフォントで、アウトライン
フォントは1文字を図形の多角形と考えて、多角形を形
作る座標値からなるフォントであり、それぞれ文字が複
雑になるほど情報数(バイト数)を多く必要とし、総称
して可変サイズフォントと呼ばれている。これらの可変
サイズフォントは、座標値からできているので、線分や
多角形が任意に座標変換できるため、文字の大きさを任
意に調整でき、しかも回転や傾いた文字を表示させるこ
とも容易であり、今後ますます、利用が期待されるフォ
ントである。
[Problems to be Solved by the Invention] Fonts include fixed size fonts and variable size fonts. Variable size fonts are fonts that have become necessary in the world of CAD and desktop publishing. In CAD and desktop publishing, it is required to display characters in the size intended by the user, and for this reason, stroke fonts (vector fonts) or outline fonts that can display characters in any size have been devised. As shown in Figure 18, a stroke font is a font that assumes that characters are composed of line segments, and is a font that consists of the coordinate values of the end points of the line segments, while an outline font considers each character to be a polygon of a figure, and is a font that consists of polygonal fonts. It is a font consisting of coordinate values that form a font, and the more complex the characters, the more information (bytes) is required, and they are collectively called variable-size fonts. These variable-size fonts are made from coordinate values, so the coordinates of line segments and polygons can be converted arbitrarily, so the size of the characters can be adjusted as desired, and it is also easy to display rotated or tilted characters. Therefore, it is a font that is expected to be used more and more in the future.

フォントキャッシュ管理は管理するフォントのサイズが
固定の場合はなんら問題はないが、管理するフォントの
サイズが可変である場合には次のような問題が生じる。
There is no problem with font cache management when the size of the managed font is fixed, but when the size of the managed font is variable, the following problem occurs.

すなわち、フォントが固定サイズの場合は、第19図(
a)に示すように該固定フォントサイズを単位としてキ
ャッシュ2aを区分し、順次フォントを無駄なく記憶す
ることができる。しかし、可変サイズフォントの場合は
、キャッシュ領域に格納する全フォントが最大サイズで
ある場合を考慮すると、第19図(b)に示すように最
大サイズを単位としてキャッシュ2aを区分し、可変サ
イズフォントを記憶する必要がある。このため、固定フ
ォントサイズの場合にはキャッシュに無駄となる領域は
ないが、可変フォントサイズの場合には1つのフォント
を格納するのに常に最大サイズを必要とし、キャッシュ
に無駄となる領域が多く存在する問題がある。
In other words, if the font is a fixed size, the font shown in Figure 19 (
As shown in a), the cache 2a is divided into units of fixed font size, and fonts can be stored sequentially without waste. However, in the case of variable-size fonts, considering the case where all fonts stored in the cache area are of the maximum size, the cache 2a is divided into units of maximum size as shown in FIG. 19(b), and variable-size fonts are need to be memorized. Therefore, in the case of a fixed font size, there is no wasted space in the cache, but in the case of a variable font size, the maximum size is always required to store one font, and a lot of space is wasted in the cache. There are problems that exist.

第20図は、可変サイズフォントであるストロークフォ
ントのサイズ分布図であり、この分布図より明らかなよ
うに殆どのフォントのサイズは最大サイズの半分以下で
ある。このことは、フォントキャッシュ2aとして主記
憶袋W2に取った領域の半分以上を無駄にしていること
を意味している。
FIG. 20 is a size distribution diagram of stroke fonts, which are variable size fonts. As is clear from this distribution diagram, the size of most fonts is less than half of the maximum size. This means that more than half of the area reserved for the main memory bag W2 as the font cache 2a is wasted.

以上から、逆に可変サイズフォントの最大サイズをあま
り大きくならないように抑えることが考えられるが、こ
のためにはフォントの最大サイズが大きくならないよう
にデザインするしがない。
From the above, it is conceivable to suppress the maximum size of a variable size font so that it does not become too large, but in order to do this, there is no choice but to design the font so that the maximum size does not become large.

しかし、サイズを制限すると、美しい文字でなくなって
しまう恐れがあるし、利用者定義文字をサポートしてい
る装置では、利用者が望むフォントを定義できなくなっ
てしまい実現性がない。
However, if the size is limited, there is a risk that the characters will not be beautiful, and devices that support user-defined characters will not be able to define the font that the user desires, making it impractical.

以上から本発明の目的は、可変サイズフォントの最大サ
イズを制限しなくても、可変サイズフォントをメモリに
無駄なく、効率よく記憶することができるフォントキャ
ッシュ管理方式を提供することである。
From the above, it is an object of the present invention to provide a font cache management method that can efficiently store variable-size fonts in memory without wasting any waste, without limiting the maximum size of variable-size fonts.

[課題を解決するための手段] 第1図は本発明の原理説明図である6 13はフォントキャッシュであり、小さいサイズのフォ
ントを記憶する小サイズフォントキャッシュ13aと、
大きいサイズのフォントを記憶する大サイズフォントキ
ャッシュ13bを有している。14は全文字のフォント
を記憶する磁気ディスク装置等の二次記憶装置、21は
与えられた文字コードに応じたフォントがフォントキャ
ッシュ13に記憶されているか検索するフォントキャッ
シュ検索部、22は文字コードのフォントがフォントキ
ャッシュに記憶されていない場合に二次記憶装置から検
索して出力する二次検索部、23は二次記憶装置から読
出されたフォントのサイズ(バイト数)を判断するフォ
ントサイズ判別部である。
[Means for Solving the Problems] Fig. 1 is a diagram explaining the principle of the present invention 6 13 is a font cache, a small size font cache 13a that stores small size fonts,
It has a large size font cache 13b that stores large size fonts. 14 is a secondary storage device such as a magnetic disk device that stores fonts of all characters; 21 is a font cache search unit that searches whether a font corresponding to a given character code is stored in the font cache 13; 22 is a character code 23 is a font size determination unit that determines the size (number of bytes) of the font read from the secondary storage device; Department.

[作用] フォントキャッシュ13にフォントのサイズに対応させ
て複数のフォントキャッシュ領域1例えば、所定サイズ
以下の小さいフォントを記憶する小サイズフォントキャ
ッシュ13aと、所定サイズ以上の大きいフォントを記
憶する大サイズフォントキャッシュ13bを設ける。
[Operation] The font cache 13 has a plurality of font cache areas 1 corresponding to the font size, for example, a small font cache 13a that stores small fonts of a predetermined size or less, and a large font cache 13a that stores large fonts of a predetermined size or more. A cache 13b is provided.

そして、全文字の可変サイズフォントを二次記憶装[1
4に記憶すると共に、最新に使用された所定数の可変サ
イズフォントを、サイズに応じてフォントキャッシュ1
3の小サイズフォントキャッシュ13a、大サイズフォ
ントキャッシュ13bに記憶しておく。
Then, the variable size font of all characters is stored in secondary storage [1
At the same time, a predetermined number of recently used variable size fonts are stored in the font cache 1 according to the size.
3 is stored in the small size font cache 13a and the large size font cache 13b.

かかる状態において所定の文字コードが発生した時、フ
ォントキャッシュ検索部21は該文字コードのフォント
がフォントキャッシュ13に記憶されているか検索し、
記憶されている場合には、該フォントキャッシュよりフ
ォントを読み出す。
When a predetermined character code occurs in such a state, the font cache search unit 21 searches whether the font of the character code is stored in the font cache 13,
If the font is stored, the font is read from the font cache.

所定文字コードのフォントがフォントキャッシュ13に
記憶されていない場合には、二次検索部22は二次記憶
装[14から該文字コードに応じたフォントを検索して
読み出し、フォントサイズ判別部23は、二次記憶装置
から読出されたフォントのサイズを判別し、所定サイズ
以下の小サイズの場合には小サイズフォントキャッシュ
13aに記憶し、所定サイズ以上の大サイズの場合には
大サイズフォントキャッシュ13bに記憶する。
If the font with the predetermined character code is not stored in the font cache 13, the secondary search unit 22 searches and reads out the font corresponding to the character code from the secondary storage [14], and the font size determination unit 23 , determines the size of the font read from the secondary storage device, and stores it in the small size font cache 13a if it is a small size below a predetermined size, and stores it in the large size font cache 13b if it is a large size above a predetermined size. to be memorized.

このように、フォントキャッシュにフォントのサイズに
対応させて複数のフォントキャッシュ領域を設け、フォ
ントをフォントキャッシュに記憶する場合において、該
フォントのサイズを判別し、サイズに応じたフォントキ
ャッシュ領域にフォントを格納するように構成したから
、可変サイズフォントの最大サイズを制限しなくても、
可変サイズフォントをメモリに無駄なく、効率よく記憶
することができる。
In this way, when storing multiple font cache areas in the font cache corresponding to the font size and storing fonts in the font cache, the size of the font is determined and the font is stored in the font cache area according to the size. Because you configured it to store variable-size fonts, you don't have to limit the maximum size of variable-size fonts.
To efficiently store variable size fonts in memory without waste.

又、各フォントキャッシュ領域に最新に使用された順に
フォントを記憶するようにすれば、使用可能性の高い順
に検索でき、所望フォントの検索効率を向上できる。
Furthermore, if fonts are stored in each font cache area in the order in which they were most recently used, it is possible to search in the order of the most likely to be used, thereby improving the efficiency of searching for a desired font.

更に、各フォントキャッシュ領域に、フォント毎に次の
フォントアドレスを指すポインタと、文字コードと、フ
ォント座標情報を記憶すると共に、空きフォントアドレ
スと、最新に使用されたフォントの記憶アドレスと、最
後に使用されたフォントの記憶アドレスを格納するよう
に構成すれば、容易に検索されたフォントを最も古いフ
ォントデータと置き換えて記憶でき、しかも容易にフォ
ントキャッシュ領域に最新に使用された順にフォントを
記憶することができる。
Furthermore, in each font cache area, a pointer pointing to the next font address, character code, and font coordinate information are stored for each font, as well as an empty font address, the storage address of the most recently used font, and the last one. If configured to store the memory addresses of used fonts, it is possible to easily store the found font by replacing it with the oldest font data, and also to easily store fonts in the font cache area in the order of most recently used fonts. be able to.

[実施−例] 念舊、lL皮 第2図は本発明にかかわるシステムの構成図であり、1
1は主制御装置[(CPU)、12は主記憶装置、13
は主記憶装置内に確保されたフォントキャッシュである
。フォントキャッシュ13は。
[Implementation-Example] For your convenience, Figure 2 is a configuration diagram of a system related to the present invention.
1 is the main control unit [(CPU), 12 is the main storage device, 13
is a font cache reserved in main memory. Font cache 13.

所定サイズより小さいサイズのフォントを記憶する小サ
イズフォントキャッシュ13aと、大きいサイズのフォ
ントを記憶する大サイズフォントキャッシュ13bを有
しており、最新に使用された所定数の可変サイズフォン
トが、サイズに応じて71%サイズフォントキャッシュ
13a、大サイズフォントキャッシュ13bに記憶され
る。
It has a small size font cache 13a that stores fonts smaller than a predetermined size, and a large size font cache 13b that stores fonts larger than a predetermined size. Accordingly, it is stored in the 71% size font cache 13a and the large size font cache 13b.

14は全文字のフォントを記憶する磁気ディスク装置等
の二次記憶装置、15は文字コード等各種データを入力
する入力装置、16はCRT、液晶デイスプレィ等の表
示装置、17は印刷装置。
14 is a secondary storage device such as a magnetic disk device for storing fonts of all characters; 15 is an input device for inputting various data such as character codes; 16 is a display device such as a CRT or liquid crystal display; and 17 is a printing device.

18はバスである。18 is a bus.

主制御装置1 (CPU)11は主記憶装置12に記憶
されたプログラムに従って、入力装置13等から入力さ
れた文字コードデータを主記憶装置12に記憶し、その
文字コードに対応するフォントがフォントキャッシュ1
3に格納されている場合には、該フォントキャッシュ1
3から検索して表示装置16に表示し、または印刷装置
15で印刷する。
The main control unit 1 (CPU) 11 stores character code data input from the input device 13 etc. in the main storage device 12 according to the program stored in the main storage device 12, and stores the font corresponding to the character code in the font cache. 1
3, the corresponding font cache 1
3 and display it on the display device 16 or print it on the printing device 15.

又1表示または印刷しようとするフォントがフォントキ
ャッシュ13に格納されていない場合には、二次記憶装
置14に格納されているフォントを検索して読み出し、
該読5み出されたフォントのサイズを判別し、所定サイ
ズ以下の小サイズの場合には小サイズフォントキャッシ
ュ13aに格納し5所定サイズ以上の大サイズの場合に
は大サイズフォントキャッシュ13bに格納する(この
処理をフォントフォルト処理という)。その後、フォン
トキャッシュ13上に格納されたフォントを使用して表
示又印刷を実行する。
In addition, if the font to be displayed or printed is not stored in the font cache 13, the font stored in the secondary storage device 14 is searched and read out.
5 Determine the size of the read font, and if it is a small size below a predetermined size, store it in the small size font cache 13a, and if it is a large size above a predetermined size, store it in the large size font cache 13b. (This process is called font fault processing.) Thereafter, display or printing is performed using the fonts stored in the font cache 13.

以上では、フォントサイズに応して大小2つのフォント
キャッシュを設けた場合であるが、フォントキャッシュ
は何も2つに限ったわけではなく、サイズに応じて3つ
以上設けてもよい。
In the above description, two large and small font caches are provided depending on the font size, but the number of font caches is not limited to two, and three or more may be provided depending on the size.

フォントキャッシュの 成 フォントキャッシュの検索処理やフォントフォルト処理
等をスムーズに行なうために、本発明では小サイズフォ
ントキャッシュ13a、大サイズフォントキャッシュ1
3bを第3図に示すように構成している。
Formation of Font Cache In order to smoothly perform font cache search processing, font fault processing, etc., the present invention uses a small size font cache 13a and a large size font cache 1.
3b is constructed as shown in FIG.

即ち、小サイズ、大サイズの各フォントキャッシュ13
a、13bはそれぞれ、フォントを記憶するフォント記
憶領域13a−1,13b−1と、空きフォントアドレ
スを格納する空きフォントアドレス記憶部13a−2,
13b−2と、最新に使用されたフォントを格納する領
域のアドレスを格納する最優先フォントアドレス記憶部
13a−3,13b−3と、最後に使用されたフォント
を記憶する領域のアドレスを格納する最低順位フォント
アドレス13a−4,13b−4を有している。
That is, each small size font cache 13 and large size font cache 13
a and 13b are font storage areas 13a-1 and 13b-1 for storing fonts, and empty font address storage areas 13a-2 and 13b for storing empty font addresses, respectively.
13b-2, the highest priority font address storage units 13a-3 and 13b-3 that store the address of the area that stores the most recently used font, and the address of the area that stores the most recently used font. It has the lowest order font addresses 13a-4 and 13b-4.

フォント記憶領域13a−1,13b−1には複数のフ
ォントを最新に使用された順に記憶できるようになって
おり、1フオント毎に次のフォントアドレスを指すポイ
ンタPNと、フォントの文字コードCDと、フォント座
標情報FIが記憶される。尚、空きがない場合には空き
フォントアドレス記憶部13a−2,13b−2にはO
が記憶され、またフォントキャッシュに何も記憶されて
いない場合には最優先フォントアドレス記憶部13a−
3,13b−3にOが格納され、更に最低順位フォント
アドレスが示す領域が記憶されるポインタ(最も古く使
用されたフォントのポインタ)はOとなる。
The font storage areas 13a-1 and 13b-1 are capable of storing a plurality of fonts in the order of latest use, and for each font, a pointer PN pointing to the next font address, a font character code CD, and the like are stored. , font coordinate information FI are stored. If there is no free space, the free font address storage units 13a-2 and 13b-2 contain O.
is stored in the font cache, and if nothing is stored in the font cache, the highest priority font address storage unit 13a-
O is stored in 3, 13b-3, and the pointer (pointer of the oldest used font) in which the area indicated by the lowest order font address is stored is O.

小サイズフォントキャッシュ13aのフォント記憶領域
13a−1は所定サイズで区分され、各区域に該サイズ
以下の小サイズのフォント(ポインタPNと、フォント
の文字コードCDと、フォント座標情報FI)が記憶さ
れる。又、大サイズフォントキャッシュ13bのフォン
ト記憶領域13b−1は、最大フォントサイズで区分さ
れ、各区域に所定サイズ以上の大サイズを有するフォン
ト(ポインタPNと、フォントの文字コードCDと、フ
ォント座標情報FI)が記憶される。
The font storage area 13a-1 of the small-sized font cache 13a is divided into predetermined sizes, and small-sized fonts (pointer PN, font character code CD, and font coordinate information FI) smaller than the specified size are stored in each area. Ru. Further, the font storage area 13b-1 of the large size font cache 13b is divided by maximum font size, and each area stores fonts (pointer PN, font character code CD, and font coordinate information) having a large size larger than a predetermined size. FI) is stored.

フォントキャ・・シュ  処理 フォントキャツシュ13全体での検索処理は、個々のフ
ォントキャッシュ13a、13bでの検索処理を順に行
ない1文字コードに対応するフォントが見つかった場合
には、検索処理はそこで終了する。一つのフォントキャ
ッシュでフォントが見つからなかった時は、次のフォン
トキャッシュを検索する。このようにして、すべてのフ
ォントキャッシュを調べてもフォントが見つからない場
合は、フォントフォルト処理を行なう。
Font cache Processing The search process in the entire font cache 13 is performed in the individual font caches 13a and 13b in order, and if a font corresponding to a single character code is found, the search process ends there. do. If a font is not found in one font cache, the next font cache is searched. In this way, if a font is not found even after checking all font caches, font fault processing is performed.

第4図はフォントキャッシュ検索処理の全体の流れ因で
ある。
FIG. 4 shows the overall flow of the font cache search process.

文字コードが与えられて該文字コードのフォントが要求
されると、サイズの異なるフォントキャッシュの数(第
2図の例では大小の2つのフォントキャッシュがあるか
ら2)をnとして設定する(ステップ101)。
When a character code is given and a font of the character code is requested, the number of font caches of different sizes (2 in the example of FIG. 2 since there are two large and small font caches) is set as n (step 101). ).

ついで、n > Oか判断しくステップ102)、n=
oの場合にはフォントキャッシュには該当フォントが存
在しないからフォントフォルトルーチンを実行する(ス
テップ103)。
Then, to determine whether n > O, step 102), n=
If o, the font does not exist in the font cache, so the font fault routine is executed (step 103).

一方、n ) Oであれば、個々のフォントキャッシュ
検索ルーチンを実行して、n番目のフォントキャッシュ
(大サイズフォントキャッシュを1番目、小サイズフォ
ントキャッシュを2番目とする)について個々のフォン
トキャッシュの検索処理を行なう(ステップ104)。
On the other hand, if n Search processing is performed (step 104).

個々のフォントキャッシュ検索ルーチンの実行により、
n番目のフォントキャッシュでフォントが見つかった監
視しくステップ105)、見つ力)れば、処理を終了し
、見つからなければnをカウントダウン(n=n−1)
 しくステップ1o6)、以後該当フォントが見つかる
まで、あるいはn=0となるまでステップ102以降の
処理を繰り返す。
By running individual font cache search routines,
If the font is found in the n-th font cache (step 105), the process ends; if it is not found, count down n (n=n-1).
After that, the process from step 102 onwards is repeated until the corresponding font is found or n=0.

個々のフォントキャッシュ   理 第5図は個々のフォントキャッシュの検索処理の流れ図
、第6図はその説明図である。
Individual Font Cache Figure 5 is a flowchart of the search process for individual font caches, and Figure 6 is an explanatory diagram thereof.

個々のフォントキャッシュ検索処理においては、記憶部
13a−3に記憶されている最優先フォントアドレスを
参照し、該アドレスがOかチエツクする(ステップ20
1)、Oであれば、n番目のフォントキャッシュにはま
だフォントが記憶されてし1ないと判断しくステップ2
02)、第4図のステップ105に戻り、以降の処理を
行なう。
In each font cache search process, the highest priority font address stored in the storage unit 13a-3 is referred to, and it is checked whether the address is O (step 20).
1) If it is O, it means that the font is not yet stored in the nth font cache.
02), the process returns to step 105 in FIG. 4 and the subsequent processing is performed.

一方、最優先フォントアドレスが0でない場合には、該
アドレスが示す領域からフォントの文字コードCDを読
み出しくステップ203)、該フォントの文字コードが
検索している文字の文字コードと一致するかチエツクし
くステップ204)、一致する場合には検索されたフォ
ントの検索順位を最優先にするための優先処理ルーチン
を実行する(ステップ2o5)。
On the other hand, if the highest priority font address is not 0, read the character code CD of the font from the area indicated by the address (step 203), and check whether the character code of the font matches the character code of the character being searched. If they match (step 204), a priority processing routine is executed to give top priority to the search order of the searched font (step 2o5).

ステップ204において、一致しない場合には。In step 204, if there is no match.

ポインタが示すフォントアドレスが0であるかチエツク
しくステップ206)−0であれば参照しているフォン
トが最後のフォントであり、従ってn番目のフォントキ
ャッシュには該当フォントが存在しないものと判定して
(ステップ2o7)、第4図におけるステップ105に
戻り、以降の処理を行なう。ポインタが示すフォントア
ドレスが0でなければ、該フォントアドレスの領域より
次のフォントの文字コードを読み出しくステップ208
)、以後ステップ204以降の処理を繰り返す6以上に
より、第6図(a)、(b)の符号(イ)。
Check whether the font address indicated by the pointer is 0. Step 206) - If it is 0, the font being referenced is the last font, and therefore it is determined that the corresponding font does not exist in the nth font cache. (Step 2o7), the process returns to step 105 in FIG. 4 and the subsequent processing is performed. If the font address indicated by the pointer is not 0, step 208 reads the character code of the next font from the area of the font address.
), after which the process from step 204 onward is repeated 6 or more, resulting in the symbol (a) in FIGS. 6(a) and (b).

(ロ)あるいは(イ)、(ロ)、()1)、(ニ)・・
の順にフォントの文字コードが検索文字コードと一致し
ているかのチエツクが行なわれる。
(b) Or (a), (b), ()1), (d)...
In this order, a check is made to see if the character code of the font matches the search character code.

i九五里 第7図は優先処理の流れ図、第8図は優先処理の説明図
である。
Figure 7 is a flowchart of priority processing, and Figure 8 is an explanatory diagram of priority processing.

個々のフォントキャッシュ検索処理ルーチン(第5図)
において、検索文字コードと一致するコードを有するフ
ォントが見つかれば、該フォントの検索順位を最優先に
する必要がある。即ち、各フォントのポインタを、最新
に使用された順に更新する必要がある(優先処理)。以
上から、検索文字コードと一致するコードを有するフォ
ントが見つかれば、以下の優先処理が行なわれる。尚、
優先順位を最優先に変更するフォントが記憶されている
領域のアドレスをA1、アドレスA1を指しているポイ
ンタを記憶する領域のアドレスをAO、アドレスA1の
ポインタが指しているアドレスをA2とする。
Individual font cache search processing routine (Figure 5)
If a font having a code that matches the search character code is found, it is necessary to give top priority to the search order of the font. That is, it is necessary to update the pointers of each font in the order of the most recently used fonts (priority processing). From the above, if a font having a code matching the search character code is found, the following priority processing is performed. still,
It is assumed that the address of the area where the font whose priority order is changed to the highest priority is stored is A1, the address of the area that stores the pointer pointing to address A1 is AO, and the address pointed to by the pointer of address A1 is A2.

検索文字コードと一致するコードを有するフォントが見
つかれば、該フォントが記憶されている領域のアドレス
A1が最低順位フォントアドレスであるか判断しくステ
ップ301)、最低順位フォントアドレスでなければ、
最優先フォントアドレス記憶部13a−3に記憶されて
いる最優先フォントアドレスを退避する(ステップ30
2)。
If a font having a code matching the search character code is found, it is determined whether the address A1 of the area where the font is stored is the lowest rank font address (step 301); if it is not the lowest rank font address, then
The highest priority font address stored in the highest priority font address storage unit 13a-3 is saved (step 30
2).

ついで、前記検索文字コードのフォントが記憶されてい
た領域を示すアドレスA1を最優先フォントアドレス記
憶部13a−3に記憶する(ステップ303)。
Next, the address A1 indicating the area where the font of the search character code was stored is stored in the highest priority font address storage section 13a-3 (step 303).

しかる後、アドレスA1を指しているポインタ(アドレ
スAOの領域に記憶されているポインタ)を、アドレス
A1の領域に記憶されているポインタ(A2)に変更し
くステップ304)、ついでアドレスA1のポインタを
前記退避しである値に変更する(ステップ305)。
After that, the pointer pointing to address A1 (the pointer stored in the area of address AO) is changed to the pointer (A2) stored in the area of address A1 (step 304), and then the pointer of address A1 is changed to the pointer (A2) stored in the area of address A1. The saved value is changed to a certain value (step 305).

第8図ではフォント「い」が検索された場合の優先処理
後のポインタと最優先フォントアドレスの変化の様子を
示している。
FIG. 8 shows how the pointer and the highest priority font address change after priority processing when the font "i" is retrieved.

一方、第7図のステップ301において、検索文字コー
ドのフォントが記憶されていた領域を示すアドレスA1
が最低順位フォントアドレスであれば、最優先フォント
アドレス記憶部13a−3に記憶されている最優先フォ
ントアドレスを退避する(ステップ306)。
On the other hand, in step 301 of FIG. 7, address A1 indicating the area where the font of the search character code was stored
If is the lowest priority font address, the highest priority font address stored in the highest priority font address storage section 13a-3 is saved (step 306).

ついで、アドレスA1を最優先フォントアドレス記憶部
13a−3に記憶する(ステップ307)。
Next, address A1 is stored in the highest priority font address storage section 13a-3 (step 307).

しかる後、最低順位フォントアドレス記憶部13a−4
に、アドレスA1を指しているポインタを記憶する領域
のアドレスAOを格納すると共に(ステップ308)、
アドレスAOのポインタを0にする(ステップ309)
After that, the lowest order font address storage section 13a-4
In addition to storing the address AO of the area for storing the pointer pointing to the address A1 (step 308),
Set the pointer of address AO to 0 (step 309)
.

ついで、アドレスA1のポインタを前記退避しである値
に変更する(ステップ310)。
Next, the pointer at address A1 is changed to a certain value by the above-mentioned save (step 310).

フォントフォルト処理 第9図はフォントフォルト処理の流れ図である。Font fault handling FIG. 9 is a flowchart of font fault processing.

フォントキャッシュに検索文字コートに応じたフォント
が存在しない場合には、該フォントを二次記憶装置14
から読出し、読み出されたフォントのサイズを判別し、
所定サイズ以下の小サイズの場合には小サイズフォント
キャッシュ13aに格納し、所定サイズ以上の大サイズ
の場合には大サイズフォントキャッシュ13bに格納す
る処理(フォントフォルト処理)が実行される。即ち、
フォントキャッシュに検索文字コードに応じたフォント
が存在しない場合には、二次記憶装置14から文字コー
ドに対応するフォントを検査する二次検索処理ルーチン
を実行する(ステップ401)。尚、二次記憶装置14
には全てのフォントが格納されているから、対応するフ
ォントは必ず見つかる。
If the font corresponding to the search character code does not exist in the font cache, the font is stored in the secondary storage device 14.
, determine the size of the read font,
If the size is smaller than a predetermined size, the font is stored in the small font cache 13a, and if the font is larger than the predetermined size, the font is stored in the large font cache 13b (font fault processing). That is,
If the font corresponding to the search character code does not exist in the font cache, a secondary search processing routine is executed to check the font corresponding to the character code from the secondary storage device 14 (step 401). In addition, the secondary storage device 14
All fonts are stored in , so you are sure to find the corresponding font.

検索文字コードに対応するフォントが見つかれば、その
サイズ(バイト数)を判別し、該サイズが予め定められ
た所定サイズより大きいかチエツクし、所定サイズ以下
の場合には小サイズフォントキャッシュ13aに格納す
るものとし、また所定サイズ以上の大サイズの場合には
大サイズフォントキャッシュ13bに格納するものとす
る(ステップ402)。
If a font corresponding to the search character code is found, its size (number of bytes) is determined, it is checked whether the size is larger than a predetermined size, and if it is less than the predetermined size, it is stored in the small size font cache 13a. If the size is larger than a predetermined size, it is stored in the large size font cache 13b (step 402).

・フォントを格納するフォントキャッシュが決定される
と、該フォントキャッシュに空きがあるかチエツクする
(ステップ403 )’。実際には、空きフォントアド
レスが○であるかチエツクし、0であれば空きなし、0
でなければ空きありと判断する。
- Once the font cache that stores the font is determined, it is checked whether there is space in the font cache (step 403)'. Actually, it checks whether the free font address is ○, and if it is 0, there is no free font address.
If not, it is determined that there is a vacancy.

空きが存在する場合には、空きフォントアドレスが指す
領域にフォントを格納すると共に、空きアドレスを次に
進め(ステップ404,405)、以後第7図の優先処
理ルーチンを実行し、格納したフォントの検索順位を最
優先にすると共に、各フォントのポインタを最新に使用
された順に更新する(ステップ406)。
If there is space, the font is stored in the area pointed to by the free font address, the free address is advanced to the next step (steps 404, 405), and the priority processing routine shown in FIG. 7 is then executed to store the stored font. The search ranking is given top priority, and the pointers of each font are updated in the order of latest use (step 406).

そして、優先順位処理が終了すれば、二次記憶検索処理
ルーチンでオープンしたフォントパターンファイルをク
ローズしくステップ407)、全検索処理を終了する。
When the priority processing is completed, the font pattern file opened in the secondary storage search processing routine is closed (step 407), and the entire search processing is ended.

第10図は空きがある場合のフォントフォルト処理の説
明図であり、フォント「い」が新たに検索された場合で
ある。空きフォントアドレスは次の空きアドレスを示す
ようになり、又最優先フォントアドレスは新たに検索さ
れたフォント「い」が記憶される領域のアドレスとなり
、新たに検索されたフォントと「い」のポインタはそれ
までの最優先フォント「あ」を格納する領域のアドレス
となる。
FIG. 10 is an explanatory diagram of font fault processing when there is space, and this is a case where the font "i" is newly searched. The free font address now indicates the next free address, and the top priority font address becomes the address of the area where the newly searched font "i" is stored, and the pointer of the newly searched font and "i" is stored. is the address of the area that stores the highest priority font "A" up to that point.

一方、第9図のステップ403において、フォントキャ
ッシュに空きがない場合には、フォントキャッシュ内の
フォントで最も古く検索された文字の領域に、二次記憶
装置14から検索されたフォントを記憶する(ステップ
ステップ4o7)。
On the other hand, in step 403 of FIG. 9, if there is no free space in the font cache, the font retrieved from the secondary storage device 14 is stored in the area of the oldest retrieved character of the font in the font cache ( Step Step 4o7).

即ち、最低順位フォントアドレスが示す領域に検索され
たフォントを記憶する。
That is, the searched font is stored in the area indicated by the lowest rank font address.

しかる後、優先処理ルーチンを実行し、格納したフォン
トの検索順位を最優先にすると共に、各フォントのポイ
ンタを最新に使用された順に更新し、フォントパターン
ファイルをクローズして(ステップ406,407) 
、全検索処理を終了する。
Thereafter, a priority processing routine is executed to give the stored fonts the highest priority in the search order, update the pointers of each font in the order of latest use, and close the font pattern file (steps 406 and 407).
, completes all search processing.

第11図は空きがない場合のフォントフォルト処理の説
明図であり、フォント「お」が新たに検索された場合で
ある。最も古く検索されたフォント「あ」の領域に新た
に検索されたフォント「お」が格納され、最優先フォン
トアドレスは該フォント「お」が記憶される領域のアド
レスとなり、最低順位アドレスはフォント「あ」を指し
ていたフォント「いJを記憶する領域のアドレスとなり
FIG. 11 is an explanatory diagram of font fault processing when there is no space available, and is a case where the font "O" is newly searched. The newly searched font "O" is stored in the area of the oldest searched font "A", the highest priority font address is the address of the area where the font "O" is stored, and the lowest priority address is the font "O". This is the address of the area that stores the font "iJ" that was pointing to "a".

該フォント「い」のポインタはOとなり、又新たに検索
されたフォント「お」のポインタはそれまでの最優先フ
ォント「え」を格納する領域のアドレスとなる。
The pointer of the font "i" becomes O, and the pointer of the newly searched font "o" becomes the address of the area storing the previous highest priority font "e".

二夕111(i 第12図は二次検索処理の流れ図であり、第13図は二
次記憶装置におけるファイル構成図である。
111 (i) FIG. 12 is a flowchart of the secondary search process, and FIG. 13 is a file configuration diagram in the secondary storage device.

二次記憶装置14のフォントファイルには第13図に示
すように、フォントパターンファイルFPFとフォント
インデックスファイルPIFがある。フォントパターン
ファイルFPFはフォントデータをコード順に格納した
ファイルであり、フォントインデックスファイルPIF
はコード順に各フォントデータのフォントパターンファ
イルFPF内のオフセット(フォントパターンファイル
の先頭から何バイト目にフォントデータでかあるかを示
す)を格納したファイルである。
As shown in FIG. 13, the font files in the secondary storage device 14 include a font pattern file FPF and a font index file PIF. The font pattern file FPF is a file that stores font data in code order, and the font index file PIF
is a file that stores the offset (indicating which byte from the beginning of the font pattern file is the font data) of each font data in the font pattern file FPF in code order.

二次検索に際しては、まずフォントインデックスファイ
ルPIFをオープンしくステップ5o1)、ついで、文
字コードとオフセット値のサイズがら文字コードに対応
するオフセットが格納しである位置を計算する(ステッ
プ502>、文字コード(2バイトコード)がO〜65
535の値をとるとして、オフセット値のサイズを4バ
イトとすると、文字コードのオフセットが格納しである
位置は次式で定まる。
In the secondary search, first open the font index file PIF (step 5o1), then calculate the position where the offset corresponding to the character code is stored based on the size of the character code and offset value (step 502>, character code (2-byte code) is 0~65
535 and the size of the offset value is 4 bytes, the location where the character code offset is stored is determined by the following equation.

フォントインデックスファイル内の先頭からのバイト数
=文字コードXオフセット値のサイズフォントインデッ
クスファイル内の先頭からのバイト数が求まれば、フォ
ントインデックスファイルPIFを該バイト数分シーク
し、オフセットを読み出す(ステップ503.504)
Number of bytes from the beginning in the font index file = Character code 503.504)
.

ついで、フォントインデラックスファイルPIFをクロ
ーズし、代わってフォントパターンファイルFPFをオ
ープンする(ステップ505,506)。
Next, the font index file PIF is closed and the font pattern file FPF is opened in its place (steps 505, 506).

フォントパターンファイルFPFをオープン後、ステッ
プ504で読み取ったオフセット分シークし、フォント
データを読み出しくステップ507)、フォントフォル
ト処理(第9図)のステップ4O2にリターンする9 以上では、小サイズフォントキャッシュと大サイズフォ
ントキャッシュの2つを設けた場合であるが、適当に境
界のサイズを設定して3以上設けるように構成してもよ
い。
After opening the font pattern file FPF, seek by the offset read in step 504 and read the font data (step 507), return to step 4O2 of font fault processing (Figure 9)9. Although this is a case in which two large size font caches are provided, three or more may be provided by appropriately setting the boundary size.

以上、本発明を実施例により説明したが1本発明は請求
の範囲に記載した本発明の主旨に従い種々の変形が可能
であり、本発明はこれらを排除するものではない。
Although the present invention has been described above with reference to examples, the present invention can be modified in various ways according to the gist of the present invention as described in the claims, and the present invention does not exclude these modifications.

[発明の効果] 以上本発明によれば、フォントキャッシュにフォントの
サイズに対応させて複数のフォントキャッシュ領域を設
け、フォントをフォントキャッシュに記憶する場合にお
いて、該フォントのサイズを判別し、サイズに応じたフ
ォントキャッシュ領域にフォントを格納するように構成
したから、可変サイズフォントの最大サイズを制限しな
くても、可変サイズフォントをメモリに無駄なく、効率
よく記憶することができる。
[Effects of the Invention] According to the present invention, when a font cache is provided with a plurality of font cache areas corresponding to the font size and a font is stored in the font cache, the size of the font is determined and the size is adjusted. Since the fonts are stored in corresponding font cache areas, the variable size fonts can be efficiently stored in the memory without any waste, even without restricting the maximum size of the variable size fonts.

又本発明によれば、各フォントキャッシュ領域に最新に
使用された順にフォントを記憶するようにしたから、使
用可能性の高い順に検索でき、所望フォントの検索効率
を向上できる。
Further, according to the present invention, since fonts are stored in each font cache area in the order of most recently used fonts, it is possible to search in the order of the most likely to be used, thereby improving the efficiency of searching for a desired font.

更に本発明によれば、各フォントキャッシュ領域に、フ
ォント毎に次のフォントアドレスを指すポインタと1文
字コードと、フォント座標情報を記憶すると共に、空き
フォントアドレスと、最優先フォントアドレスと、最低
順位フォントアドレスを記憶するように構成したから、
容易に検索されたフォントを最も古いフォントデータと
置き換えて記憶でき、しかも容易にフォントキャッシュ
領域に最新に使用された順にフォントを記憶することが
できる。
Furthermore, according to the present invention, in each font cache area, a pointer pointing to the next font address, a one-character code, and font coordinate information are stored for each font, as well as an empty font address, the highest priority font address, and the lowest priority font address. Since I configured it to remember the font address,
To easily store a searched font replacing the oldest font data, and to easily store fonts in the font cache area in the order of latest use.

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

第1図は本発明の原理図、 第2図は本発明に係わるシステムの構成図、第3図はフ
ォントキャッシュの構成図、第4図はフォントキャッシ
ュ検索処理の全体の流れ図、 第5図は個々のフォントキャッシュ検索処理の流れ図。 第6図は個々のフォントキャッシュ検索処理の説明図、 第7図は優先処理の流れ図、 第8図は優先処理の説明図。 第9図はフォントフォルト処理の流れ図。 第10図は空きがある場合のフォルト処理の説明図、 第11図は空きがない場合のフォルト処理の説明図、 第12図は二次記憶検索処理の流れ図、第13図は二次
記憶装置におけるファイル構成図、 第14図は従来のシステム構成図、 第15図はフォントイメージ説明図、 第16図はキャッシュに該当フォントがある場合のフォ
ントキャッシュ管理の説明図、第17図はキャッシュに
該当フォントがない場合の7オントキヤツシユ管理の説
明図、第18図はストロークフォントの説明図、第19
図はキャッシュへのフォント記憶状態説明図、 第20図はストロークフォントのサイズ分布図である。 13・・フォントキャッシュ 13a・・小サイズフォントキャッシュ13b・・大サ
イズフォントキャッシュ14・・二次記憶装置 21・・フォントキャッシュ検索部 22・・二次検索部 23・・フォントサイズ判別部 ツ 淳=S=月の原理り 第1図 本音B月1:作るシステムの澗町庁d口第2図 (σ)                     (
bノフォント〜ツンエのmii 方ントAヤッシー1受案夕囚ゼPUや体の〉を札回第4
図 @りのフォント〜ヤッンユ彩1象幻、埋の流水」η第5
図 イ司マめフ不ント〜ヤッシ1襖案Xバ埋の琶え明圀第6
図 a先タ囚工〒の力覧般口 第7図 !(フォントアドレス               
    宇をフォントアドレス優先4四理の説明図 第8図 フォントフォlレト免す甲のオド札F 第9図 ψ子フォント了ドレス               
    !々・フォントアドレス空乏Ovあう場合0フ
オントフ第1レトズ巧理の言也口月η空さびないすb合
のフォントフオ)レト@fの宣叱明固二ン欠右[り)−
町、セ(1星F°夕医埋のニダLれ圓第12図 二次官こJ態牙イif)ファイIV利昨成閉第13図 弔し米のシスエム構ハ討口 第14図 フォントイメージ宮た明正 第15図 ストロークフォント0言分り■町 第18図 Nヤッンゴ信亥当フォントがp)う側艷4ン/7iント
キャッ笈ヤ3里の吉tす1旧第16図 Iy7シよ1茨当7オントが−υ)A11めにント〜仲
ンユ’gun日7[]第11図 (Q)                      
 (b)〜ヤッAへのフォント龍砿ジ4友W9且定呼■
口第19図
Fig. 1 is a diagram of the principle of the present invention, Fig. 2 is a block diagram of a system related to the present invention, Fig. 3 is a block diagram of a font cache, Fig. 4 is a flowchart of the entire font cache search process, and Fig. 5 is a block diagram of a system related to the present invention. Flowchart of individual font cache search processing. FIG. 6 is an explanatory diagram of individual font cache search processing, FIG. 7 is a flowchart of priority processing, and FIG. 8 is an explanatory diagram of priority processing. FIG. 9 is a flowchart of font fault processing. Fig. 10 is an explanatory diagram of fault processing when there is free space, Fig. 11 is an explanatory diagram of fault processing when there is no free space, Fig. 12 is a flowchart of secondary storage search processing, and Fig. 13 is a secondary storage device. Figure 14 is a diagram of the conventional system configuration, Figure 15 is an illustration of font images, Figure 16 is an illustration of font cache management when the relevant font is in the cache, and Figure 17 is applicable to the cache. Figure 18 is an explanatory diagram of ont cache management when there are no fonts, Figure 18 is an explanatory diagram of stroke fonts, and Figure 19 is
The figure is an explanatory diagram of the state of font storage in the cache, and FIG. 20 is a size distribution diagram of stroke fonts. 13...Font cache 13a...Small size font cache 13b...Large size font cache 14...Secondary storage device 21...Font cache search unit 22...Secondary search unit 23...Font size determination unit Tsujun= S = Moon's principle Figure 1 Honest opinion B Month 1: Creating a system Town Hall d Exit Figure 2 (σ) (
bno font~Tsun's mii font A Yashi 1 acceptance of the evening prisoner PU and body> of the tag 4th
Diagram @ Ri's Font ~ Yanyu Aya 1 Elegance, Buried Flowing Water'' η No. 5
Figure Ishimamefuunto ~ Yasshi 1 Fusuma plan
Figure 7 of the general entrance to the power list! (font address
Explanation diagram of the 4 four principles of giving priority to font address Figure 8 Font Follet Ignore A's odd bill F Figure 9 ψ child font end dress
!・Font address depletion Ov If it matches 0 font 1st Retoz Takuri's word ya mouth month η empty Rust b case font foo) Reto@f's proclamation Ming Goku 2 missing right [ri) -
Machi, Se (1 star F ° Evening doctor's Nida L Reen Figure 12 Second Vice-Minister Ko J status fan if) Phi IV Rishi Seiji Figure 13 Condolence rice system system structure ha mouth Figure 14 Font Image Miyata Akimasa Figure 15 Stroke font 0 words ■ Town Figure 18 N Yango Shinhai To font is p) U side 4 / 7 i Tokya 3 ri no kichi tsu 1 Old Figure 16 Iy 7 shi 1 thorns 7 ont -υ) A11 day ~ Nakaunyu'gun day 7 [] Figure 11 (Q)
(b) ~ Font Ryukouji 4 friends W9 and regular call to Yaa A ■
Mouth Figure 19

Claims (3)

【特許請求の範囲】[Claims] (1)フォントの個々の大きさが固定でない可変サイズ
フォントを二次記憶装置に記憶すると共に、最近使用さ
れた所定数の可変サイズフォントをフォントキャッシュ
に記憶しておき、所定の文字コードが発生した時、該文
字コードのフォントがフォントキャッシュに記憶されて
いるか調べ、フォントキャッシュに記憶されている場合
には、該フォントキャッシュよりフォントを読み出し、
記憶されていない場合には、二次記憶装置から前記文字
コードに応じたフォントを読み出すと共に、フォントキ
ャッシュに記憶するフォントキャッシュ管理方式におい
て、 フォントキャッシュにフォントのサイズに対応させて複
数のフォントキャッシュ領域を設け、フォントをフォン
トキャッシュに記憶する場合において、該フォントのサ
イズを判別し、 サイズに応じたフォントキャッシュ領域にフォントを格
納することを特徴とするフォントキャッシュ管理方式。
(1) A variable-size font whose individual size is not fixed is stored in a secondary storage device, and a predetermined number of recently used variable-size fonts are stored in a font cache, and a predetermined character code is generated. , check whether the font of the character code is stored in the font cache, and if it is stored in the font cache, read the font from the font cache,
If the font is not stored, the font cache management method reads the font corresponding to the character code from the secondary storage device and stores it in the font cache. 1. A font cache management method characterized in that, when a font is stored in a font cache, the size of the font is determined and the font is stored in a font cache area according to the size.
(2)各フォントキャッシュ領域に最新に使用された順
にフォントを記憶することを特徴とする請求項1記載の
フォントキャッシュ管理方式。
(2) The font cache management method according to claim 1, wherein fonts are stored in each font cache area in the order in which they were most recently used.
(3)各フォントキャッシュ領域に、フォント毎に次の
フォントアドレスを指すポインタと、文字コードと、フ
ォント座標情報を格納すると共に、空きフォントアドレ
スと、最新に使用されたフォントを記憶している領域の
アドレスと、最後に使用されたフォントを記憶する領域
のアドレスを格納することを特徴とする請求項1記載の
フォントキャッシュ管理方式。
(3) Each font cache area stores a pointer pointing to the next font address, character code, and font coordinate information for each font, as well as an area that stores free font addresses and the most recently used font. 2. The font cache management method according to claim 1, wherein the address of the font and the address of an area for storing the last used font are stored.
JP2314605A 1990-11-20 1990-11-20 Font cache management method Expired - Fee Related JP2892819B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2314605A JP2892819B2 (en) 1990-11-20 1990-11-20 Font cache management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2314605A JP2892819B2 (en) 1990-11-20 1990-11-20 Font cache management method

Publications (2)

Publication Number Publication Date
JPH04184487A true JPH04184487A (en) 1992-07-01
JP2892819B2 JP2892819B2 (en) 1999-05-17

Family

ID=18055311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2314605A Expired - Fee Related JP2892819B2 (en) 1990-11-20 1990-11-20 Font cache management method

Country Status (1)

Country Link
JP (1) JP2892819B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012252574A (en) * 2011-06-03 2012-12-20 Casio Comput Co Ltd Character display device, character display method and program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62241047A (en) * 1986-04-11 1987-10-21 Mitsubishi Electric Corp Shared control method for input/output buffer by data base control system
JPS6375788A (en) * 1986-09-19 1988-04-06 富士通株式会社 Dot pattern storing system
JPS63150724A (en) * 1986-12-16 1988-06-23 Mitsubishi Electric Corp Data access processing system
JPS63228194A (en) * 1987-03-18 1988-09-22 株式会社日立製作所 Holding of character font
JPS6476344A (en) * 1987-09-18 1989-03-22 Fujitsu Ltd Disk cache control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62241047A (en) * 1986-04-11 1987-10-21 Mitsubishi Electric Corp Shared control method for input/output buffer by data base control system
JPS6375788A (en) * 1986-09-19 1988-04-06 富士通株式会社 Dot pattern storing system
JPS63150724A (en) * 1986-12-16 1988-06-23 Mitsubishi Electric Corp Data access processing system
JPS63228194A (en) * 1987-03-18 1988-09-22 株式会社日立製作所 Holding of character font
JPS6476344A (en) * 1987-09-18 1989-03-22 Fujitsu Ltd Disk cache control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012252574A (en) * 2011-06-03 2012-12-20 Casio Comput Co Ltd Character display device, character display method and program

Also Published As

Publication number Publication date
JP2892819B2 (en) 1999-05-17

Similar Documents

Publication Publication Date Title
EP0136711B1 (en) Control structure in a document processing system
US7697000B2 (en) Method and apparatus for typographic glyph construction including a glyph server
EP0136710A2 (en) Data structure in a document processing system
JPH03266039A (en) Free format data link processing system
US5555003A (en) Method for selecting an item on a graphics screen
CN109446362A (en) Chart database structure, diagram data storage method, device based on external memory
US11068404B2 (en) Efficient computer-implemented techniques for managing graphics memory
EP0121126B1 (en) Character generator
WO2023071242A1 (en) Text generation method and apparatus, and storage medium
JP3083314B2 (en) Document processing method and apparatus
US4835735A (en) Card image data processing system
JPH04184487A (en) Font cache administration method
JPH0426890A (en) Character display device
JPH1153381A (en) Device and method for retrieving similar document
JP2577397B2 (en) Graphic display device
JP4345985B2 (en) Image display processing device
JPH04101273A (en) Map retrieving method
JPH10283231A (en) Data processor
CN110134933A (en) Data processing method, device, terminal and storage medium
JPH04188271A (en) Document processor
JPH0869399A (en) File management device
JPS62271044A (en) Document producing device
JPH01162951A (en) File managing system
JPS63228194A (en) Holding of character font
JPS62295169A (en) Character display system based upon image processor

Legal Events

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