JPH05158453A - Character retrieving system - Google Patents

Character retrieving system

Info

Publication number
JPH05158453A
JPH05158453A JP3320595A JP32059591A JPH05158453A JP H05158453 A JPH05158453 A JP H05158453A JP 3320595 A JP3320595 A JP 3320595A JP 32059591 A JP32059591 A JP 32059591A JP H05158453 A JPH05158453 A JP H05158453A
Authority
JP
Japan
Prior art keywords
character
size
expanded
characters
expansion
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
JP3320595A
Other languages
Japanese (ja)
Inventor
Takashi Kushida
隆 櫛田
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 JP3320595A priority Critical patent/JPH05158453A/en
Publication of JPH05158453A publication Critical patent/JPH05158453A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To speed up the retrieval of character expansion tables by preparing cache tables for each character size as character expansion destination address tables. CONSTITUTION:Characters are read out from a character storage memory 2, each size of the characters is expanded in an expansion pattern storage memory 3 and cache tables 5 for each character size, which summarize character expansion destination addresses at each character size, are formed as the tables for retrieving the expanded characters. When a request is issued for a desired size of character, the tables 5 are retrieved for each character size, the desired size is retrieved, the table, which contains the size characters, is retrieved, the address of the desired character is read out, that size character is read out from the table 3 and that character is expanded in an output memory 4. Since the number of the kinds of character sizes is small, the retrieval of the desired size is performed in a short time and since the number of the tables 5 equals to only the number of the expanded characters, the retrieval of the desired character is performed in a short time.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はベクトルフォントなどの
ように基準寸法の文字を所望の大きさに展開し、この展
開した文字を検索して出力する出力装置の文字検索方式
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character retrieval system for an output device, such as a vector font, which develops a character having a standard size to a desired size and retrieves and outputs the developed character.

【0002】[0002]

【従来の技術】ディスプレイやプリンタに用いられるフ
ォントには、文字をビットパターンで記憶するビットマ
ップフォント、文字をベクトル情報で記憶するベクトル
フォント、文字の黒い部分の始まりと長さの情報で記憶
するランレングスフォントなどがある。
2. Description of the Related Art Fonts used for displays and printers are bitmap fonts for storing characters as bit patterns, vector fonts for storing characters as vector information, and information for the start and length of black portions of characters. There is a run length font.

【0003】図2はビットマップフォントの一例を示
す。文字のサイズが異なる場合は、各サイズ毎にビット
マップフォントが必要となる。図3はベクトルフォント
の一種のアウトラインフォントの一例を示す。アウトラ
インフォントは文字の外形(アウトライン)を直線や曲
線で表わし、この各直線や曲線の座標をデータとして保
持する。(b)は保持データを示す。アウトラインフォ
ントは基準寸法の文字の座標データを保持しておき、サ
イズの異なる文字は基準寸法を拡大、縮小して得ること
ができるので、ビットマップフォントと比べると格納す
るメモリ領域が少なくてすむという特徴がある。
FIG. 2 shows an example of a bitmap font. If the character size is different, a bitmap font is required for each size. FIG. 3 shows an example of a kind of outline font of a vector font. The outline font represents the outer shape (outline) of a character by a straight line or a curve, and holds the coordinates of each straight line or curve as data. (B) shows the retained data. The outline font holds the coordinate data of the characters of the standard size, and characters of different sizes can be obtained by enlarging or reducing the standard size, so it requires less memory area than the bitmap font. There are features.

【0004】アウトラインフォントなどのベクトルフォ
ントを用いる場合、基準の大きさの文字を所望の大きさ
の文字にメモリ上に展開しておき、文字とその大きさが
指定されると展開されたメモリ上より指定された大きさ
の文字を検索する必要がある。この検索にはキャッシュ
制御方式が多く用いられる。これは基準の大きさの文字
をメモリ上に展開したか否かを示すキャッシュテーブル
を作成し、このキャッシュテーブルを検索する方式であ
る。
When a vector font such as an outline font is used, a character of a standard size is expanded into a character of a desired size in a memory, and when the character and its size are designated, the expanded memory is displayed. It is necessary to search for a character of a specified size. A cache control method is often used for this search. This is a method of creating a cache table indicating whether or not a character of a standard size has been expanded on a memory and searching this cache table.

【0005】図4は文字出力のキャッシュ制御方式と一
般の制御方式を示した図で、例として、同一文字、例え
ばAを4文字連続して印字または表示する場合、(a)
に示すキャッシュ制御方式では、出力を要求された文字
の大きさに1回、メモリ上に展開すれば、そのデータに
より4文字連続して印字でき高速化が実現できる。
(b)はキャッシュ制御方式を用いない場合で、4文字
共メモリ上に1字づつ展開し、1字づつ印字を行う。こ
のため、文字の出力速度は遅くなる。
FIG. 4 is a diagram showing a character output cache control system and a general control system. As an example, when printing or displaying the same character, for example, four A characters in succession, (a)
In the cache control method shown in (4), if the output is expanded once in the required character size on the memory, four characters can be printed continuously by the data, and high speed can be realized.
(B) is a case where the cache control method is not used, and four characters are developed on the memory one by one and printed one by one. For this reason, the output speed of the characters becomes slow.

【0006】図5はキャッシュ制御方式を用いた場合の
文字検索の一例を示す図である。字母格納メモリ2には
基準の大きさの文字が格納されている。展開パターン格
納メモリ3には字母格納メモリ2の文字の大きさを種々
の大きさの文字に展開したデータが格納されている。キ
ャッシュテーブル1は展開パターン格納メモリ3に展開
された文字とサイズと展開先のアドレスのテーブルであ
る。元文字パターン格納アドレスは、字母格納メモリ2
内の文字のアドレスを示し、このアドレスに示された文
字が、展開されたサイズ別にテーブル中の展開先アドレ
スに示されたアドレスに格納されている。
FIG. 5 is a diagram showing an example of character search when the cache control method is used. Characters of a standard size are stored in the character storage memory 2. The expansion pattern storage memory 3 stores data in which the character sizes of the character storage memory 2 are expanded into characters of various sizes. The cache table 1 is a table of characters and sizes expanded in the expansion pattern storage memory 3 and addresses of expansion destinations. The original character pattern storage address is the character storage memory 2
The address of the character in the table is indicated, and the character indicated by this address is stored in the address indicated by the expansion destination address in the table according to the expanded size.

【0007】例えば「富」という文字は字母格納メモリ
2の20001000のアドレスに格納されており、この「富」
という文字は20,50,12,15,54,24ポイントの大きさ
に展開され、展開先アドレスに示す位置に格納されてい
る。出力用メモリ4は出力要求のあった文字をキャッシ
ュテーブル1を検索して展開先のアドレスを求め、展開
パターン格納メモリ3より読み出して格納する。
For example, the character "wealth" is stored at the address 20001000 of the character storage memory 2, and this "wealth" is stored.
Is expanded to 20, 50, 12, 15, 54, and 24 points, and stored at the position indicated by the expansion destination address. The output memory 4 searches the cache table 1 for an output-requested character to obtain an expansion destination address, reads it from the expansion pattern storage memory 3, and stores it.

【0008】次に動作について説明する。出力依頼のあ
った文字が、展開パターン格納メモリ3に展開済か、キ
ャッシュテーブル1を検索し、該当する文字が展開済み
であった場合は、その文字を出力用メモリ4に展開す
る。展開済みでない場合は、字母格納メモリ2を検索
し、文字を取り出し要求サイズにして展開パターン格納
メモリ3に展開して、出力用メモリ4に出力すると共に
キャッシュメモリ1をこのデータに基づき更新する。
Next, the operation will be described. The cache table 1 is searched for whether the output-requested character has been expanded in the expansion pattern storage memory 3, and if the corresponding character has been expanded, that character is expanded in the output memory 4. If the character has not been expanded, the character storage memory 2 is searched, and the character is extracted and expanded into the expansion pattern storage memory 3 in the required size and output to the output memory 4 and the cache memory 1 is updated based on this data.

【0009】[0009]

【発明が解決しようとする課題】図5に示すように、キ
ャッシュテーブルは文字毎に複数のサイズの文字がまと
められている。このため、展開されている文字サイズ分
の検索が必要となり、検索に非常に時間がかかる場合が
多く発生するようになった。このため、極端な場合、キ
ャッシュ制御を行うことにより、反って検索時間がかか
ってしまうこともあった。
As shown in FIG. 5, in the cache table, characters of a plurality of sizes are collected for each character. Therefore, it is necessary to search for the expanded character size, and the search often takes a very long time. For this reason, in an extreme case, the cache control may warp the search time.

【0010】本発明は、上述の問題点に鑑みてなされた
もので、文字サイズ毎に文字テーブルを設け、キャッシ
ュ検索の高速化を図ることを目的とする。
The present invention has been made in view of the above problems, and an object thereof is to provide a character table for each character size to speed up cache search.

【0011】[0011]

【課題を解決するための手段】図1は本発明の原理図で
ある。字母格納メモリ2より文字を読み出し、展開パタ
ーン格納メモリ3に各サイズの文字を展開するが、この
展開した文字を検索するのに用いるテーブルを文字のサ
イズ別に文字の展開先のアドレスをまとめた文字サイズ
別キャッシュテーブル5を作成する。検索した文字は出
力用メモリ4に展開する。
FIG. 1 shows the principle of the present invention. A character is read from the character storage memory 2 and the character of each size is expanded in the expansion pattern storage memory 3. The table used to search the expanded character is a character that collects the expansion destination address of the character according to the character size. The size-based cache table 5 is created. The retrieved character is expanded in the output memory 4.

【0012】[0012]

【作用】所望のサイズの文字の要求が出されると、文字
サイズ別キャッシュテーブル5をまず文字サイズ別に検
索し、所望のサイズを検索し、次にそのサイズの文字の
テーブルを検索して所望の文字のアドレスを読み出し、
展開パターン格納メモリ3よりそのサイズの文字を読み
出し、出力用メモリ4に展開する。文字のサイズの種類
は少ないので、所望のサイズの検索は短時間に行なわ
れ、次にそのサイズのテーブルから所望の文字の検索を
行うが、このテーブルは展開された文字の数しかないの
で、短時間に検索できる。
When a request for a character of a desired size is issued, the character size cache table 5 is first searched for by character size, then the desired size is searched, and then the character table of that size is searched for and the desired character is searched. Read the address of the character,
A character of that size is read from the expansion pattern storage memory 3 and expanded in the output memory 4. Since there are few types of character size, the search for the desired size is performed in a short time, and then the desired character is searched from the table of that size. Since this table has only the number of expanded characters, You can search in a short time.

【0013】なお、文字サイズ別キャッシュテーブル5
に所望のサイズがなかったり、またはサイズはあっても
そのサイズの展開文字アドレステーブルに所望の文字が
ない場合は、字母格納メモリ2より所望の文字を読み出
し、所望のサイズで展開パターン格納メモリ3に展開
し、出力用メモリ4に出力すると共にこのサイズ、また
はこのサイズの文字で文字サイズ別キャッシュテーブル
5を更新する。これにより以降のこの文字に対する検索
が迅速に行なわれる。
The character size cache table 5
If there is no desired size in the text, or if there is a size but there is no desired character in the expanded character address table of that size, the desired character is read from the character storage memory 2 and the expanded pattern storage memory 3 with the desired size is read. To the output memory 4, and at the same time, the character size cache table 5 is updated with this size or a character of this size. This allows subsequent searches for this character to be performed quickly.

【0014】[0014]

【実施例】以下、本発明の実施例を図面を参照して説明
する。図6はキャッシュテーブルを示し、図7は字母格
納メモリ2、展開パターン格納メモリ3と出力用メモリ
4を示す。キャッシュテーブルは文字サイズテーブル6
と各文字サイズ毎の展開先情報テーブル7から構成され
る。文字サイズテーブル6は文字サイズと、各文字サイ
ズの文字が展開されている展開先情報テーブル7のアド
レスを示す。展開先情報テーブル7は各文字の字母格納
メモリ2上のアドレスとそのアドレスの文字が展開パタ
ーン格納メモリ3に展開されているアドレスを示す。
Embodiments of the present invention will be described below with reference to the drawings. 6 shows a cache table, and FIG. 7 shows a character storage memory 2, a developed pattern storage memory 3 and an output memory 4. Character size table 6 for cache table
And the expansion destination information table 7 for each character size. The character size table 6 shows the character size and the address of the expansion destination information table 7 in which the character of each character size is expanded. The expansion destination information table 7 shows the address of each character on the character storage memory 2 and the address at which the character at that address is expanded in the expansion pattern storage memory 3.

【0015】次に動作について説明する。文字展開が要
求されたら、まず図6に示す文字サイズテーブル6を検
索する。そこで展開要求のあった文字サイズの先頭アド
レス情報にアドレス値が書き込まれていたら、該当文字
が展開されている可能性があるため、その先頭アドレス
情報の指す展開先情報テーブル7の検索を行う。
Next, the operation will be described. When the character expansion is requested, first, the character size table 6 shown in FIG. 6 is searched. Therefore, if the address value is written in the start address information of the character size for which the expansion request is made, there is a possibility that the corresponding character has been expanded. Therefore, the expansion destination information table 7 indicated by the start address information is searched.

【0016】次に、展開要求のあった文字の字母格納メ
モリ2上のアドレスが展開先情報テーブル7の字母アド
レスの情報にあるか否かの検索を行う。この検索で、該
当する字母アドレスの情報があった場合は、そのアドレ
スに対応する展開アドレスに従って、展開パターン格納
メモリ3から文字パターンを出力用メモリ4に転送(展
開)する。
Next, it is searched whether or not the address on the character storage memory 2 of the character for which the expansion request is made is in the character address information of the expansion destination information table 7. If there is information on the corresponding character address in this search, the character pattern is transferred (developed) from the expansion pattern storage memory 3 to the output memory 4 in accordance with the expansion address corresponding to that address.

【0017】なお、該当するサイズが文字サイズテーブ
ル6になかったり、該当する字母アドレスが展開先情報
テーブル7にない場合は、該当する文字を字母格納メモ
リ2より読み出し、所望のサイズで所望の文字を展開し
展開パターン格納メモリ3に格納して出力用メモリ4に
出力すると共に、文字サイズテーブル6や展開先情報テ
ーブル7を更新する。
If the corresponding size is not in the character size table 6 or the corresponding character address is not in the expansion destination information table 7, the corresponding character is read from the character storage memory 2 and the desired character in the desired size is read. Is expanded and stored in the expansion pattern storage memory 3 and output to the output memory 4, and the character size table 6 and the expansion destination information table 7 are updated.

【0018】以上の説明から明らかなように、本発明
は、キャッシュテーブルを文字のサイズ別に文字の展開
先アドレステーブルを作成することにより、キャッシュ
テーブルの検索にかかっていた処理時間を大幅に軽減で
き、文字展開全体の処理も高速化できる。
As is apparent from the above description, according to the present invention, the processing time required for searching the cache table can be greatly reduced by creating the character expansion destination address table for each character size of the cache table. , The processing of the entire character expansion can be speeded up.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】ビットマップフォントの一例を示す図である。FIG. 2 is a diagram showing an example of a bitmap font.

【図3】アウトラインフォントの一例を示す図である。FIG. 3 is a diagram showing an example of an outline font.

【図4】キャッシュ制御方式と、キャッシュ制御方式を
用いない場合の比較説明図である。
FIG. 4 is a comparative explanatory diagram of a cache control method and a case where the cache control method is not used.

【図5】従来のキャッシュ制御方式を説明する図であ
る。
FIG. 5 is a diagram illustrating a conventional cache control method.

【図6】実施例のキャッシュテーブルを示す図である。FIG. 6 is a diagram showing a cache table of the embodiment.

【図7】実施例の字母格納メモリ、展開パターン格納メ
モリおよび出力用メモリの格納例を示した図である。
FIG. 7 is a diagram showing a storage example of a character storage memory, a developed pattern storage memory, and an output memory according to the embodiment.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 基準寸法の文字より所定の寸法の文字に
メモリ上に展開し、この寸法と文字をテーブルにして所
望の文字とその寸法の要求があったとき、このテーブル
を検索してメモリ上に展開した文字を取り出す文字検索
方式において、前記テーブルを文字寸法毎に文字を集め
たテーブルとしたことを特徴とする文字検索方式。
1. When a character having a predetermined size is expanded from a character having a standard size on a memory and the size and the character are used as a table, a desired character and the size are requested, the table is searched and the memory is searched. A character search method for extracting a character expanded above, wherein the table is a table in which characters are collected for each character size.
JP3320595A 1991-12-04 1991-12-04 Character retrieving system Pending JPH05158453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3320595A JPH05158453A (en) 1991-12-04 1991-12-04 Character retrieving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3320595A JPH05158453A (en) 1991-12-04 1991-12-04 Character retrieving system

Publications (1)

Publication Number Publication Date
JPH05158453A true JPH05158453A (en) 1993-06-25

Family

ID=18123172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3320595A Pending JPH05158453A (en) 1991-12-04 1991-12-04 Character retrieving system

Country Status (1)

Country Link
JP (1) JPH05158453A (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

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

Similar Documents

Publication Publication Date Title
US5481277A (en) Character generator
JPH05158453A (en) Character retrieving system
JP2850979B2 (en) Character processing apparatus and method
JP2892819B2 (en) Font cache management method
JP2900384B2 (en) Character information processing device
JP2900383B2 (en) Character information processing device
JP2590327B2 (en) How to manage drawing information
JP3423113B2 (en) Cache control device and character output device
JPH02241267A (en) Picture information processor
KR950011809B1 (en) Korean character compound writing method in laser printer
JPH0273455A (en) Character processing system
JP2536619B2 (en) Graphic processing device
JPH048473Y2 (en)
JPH07230469A (en) Retrieval device
JP2846349B2 (en) Font cache control method in character processing system
JPH0667641A (en) Character drawing processor
JPH11272256A (en) Character display control device and its control method
JPH0796639A (en) Printer
JPH06149208A (en) Character generating device
JPH0419791A (en) Information processor equipped with character pattern generating function using outline font
JPH0619650A (en) Printer
JPH0580739A (en) Control system for outline font
JPH06166235A (en) Character editing device
JPH02300848A (en) System for retrieving font for different-form character font retrieving system
JPH03132873A (en) Display system for page retrieval

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010508