JPH06324663A - Font cache backup mechanism - Google Patents
Font cache backup mechanismInfo
- Publication number
- JPH06324663A JPH06324663A JP5110151A JP11015193A JPH06324663A JP H06324663 A JPH06324663 A JP H06324663A JP 5110151 A JP5110151 A JP 5110151A JP 11015193 A JP11015193 A JP 11015193A JP H06324663 A JPH06324663 A JP H06324663A
- Authority
- JP
- Japan
- Prior art keywords
- cache
- font
- cache buffer
- buffer
- application program
- 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
Links
- 230000007246 mechanism Effects 0.000 title claims description 29
- 238000000034 method Methods 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Landscapes
- Record Information Processing For Printing (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、フォントアクセスの高
速化技術に関し、特にパーソナルコンピュータに搭載さ
れるROMフォントやファイルフォントに対する展開・
修飾済みのフォントパターンを記憶するキャッシュバッ
ファをバックアップすることにより高速なレスポンスを
得るためのフォントキャッシュバックアップ機構に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for accelerating font access, and more particularly to developing and expanding ROM fonts and file fonts installed in personal computers.
The present invention relates to a font cache backup mechanism for obtaining a high-speed response by backing up a cache buffer that stores modified font patterns.
【0002】[0002]
【従来の技術】従来、パーソナルコンピュータに搭載さ
れるROMフォントやファイルフォントに対するフォン
トアクセスの高速化技術は、展開・修飾済みのフォント
パターンをキャッシュ化することによる方式をとってい
る(例えば、特開昭61−262785号公報参照)。2. Description of the Related Art Conventionally, a technique for speeding up font access to ROM fonts and file fonts installed in a personal computer has adopted a method of caching a developed and modified font pattern (for example, Japanese Patent Laid-Open No. 2000-242242). (See Japanese Patent Laid-Open No. 61-262785).
【0003】[0003]
【発明が解決しようとする課題】従来のフォントアクセ
ス高速化技術では、アプリケーションプログラムの起動
と連動して、キャッシュ処理を開始し、アプリケーショ
ンプログラムの終了ととともにキャッシュの解放を行っ
ているために、アプリケーションプログラムを起動して
からキャッシュの効果が機能するまでに時間がかかり、
即時に高速なレスポンスが得られないという問題があっ
た。In the conventional font access acceleration technology, the cache processing is started in conjunction with the activation of the application program, and the cache is released when the application program ends. It takes time for the cache effect to work after starting the program,
There was a problem that a quick response could not be obtained immediately.
【0004】本発明の目的は、展開・修飾済みのフォン
トパターンを記憶するキャッシュバッファの内容をアプ
リケーションプログラムの起動/終了と連動して復帰/
退避することにより、即時にキャッシュの効果を得るこ
とができるフォントキャッシュバックアップ機構を提供
することにある。It is an object of the present invention to restore / restore the contents of a cache buffer which stores a developed / modified font pattern in association with the start / end of an application program.
It is to provide a font cache backup mechanism that can immediately obtain the cache effect by saving.
【0005】[0005]
【課題を解決するための手段】本発明によるフォントキ
ャッシュバックアップ機構は、フォントに対する展開・
修飾済みのフォントパターンを記憶するキャッシュバッ
ファに対し、アプリケーションプログラムの終了時にキ
ャッシュバッファの内容を一括してキャッシュバッファ
退避装置に退避するキャッシュ退避制御部と、アプリケ
ーションプログラムが再実行された時にキャッシュバッ
ファ退避装置の内容をキャッシュバッファに一括復帰す
るキャッシュ復帰制御部とを有することを特徴とする。A font cache backup mechanism according to the present invention expands and expands a font.
For the cache buffer that stores the modified font pattern, the cache save control unit that saves the contents of the cache buffer to the cache buffer save device at the end of the application program, and the cache buffer save when the application program is re-executed A cache restoration control unit that collectively restores the contents of the device to the cache buffer.
【0006】[0006]
【作用】本発明のフォントキャッシュバックアップ機構
は、アプリケーションプログラムの終了時に、キャッシ
ュ退避制御部がキャッシュバッファの内容を一括してキ
ャッシュバッファ退避装置に退避する。アプリケーショ
ンプログラムが再実行された時に、キャッシュ復帰制御
部がキャッシュバッファ退避装置の内容をキャッシュバ
ッファに一括復帰する。これにより、レスポンスの高速
化を図る。In the font cache backup mechanism of the present invention, when the application program ends, the cache save control unit saves the contents of the cache buffer in a batch to the cache buffer save device. When the application program is re-executed, the cache restoration control unit collectively restores the contents of the cache buffer saving device to the cache buffer. As a result, the response speed is increased.
【0007】[0007]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0008】図1に本発明の一実施例によるフォントキ
ャッシュバックアップ機構を示す。図示のフォントキャ
ッシュバックアップ機構は、フォントを使用するアプリ
ケーションプログラム1と、フォントキャッシュ制御機
構2と、展開・修飾済みフォントパターンデータをキャ
ッシュ(記憶)するキャッシュバッファ3と、キャッシ
ュバッファ3の内容を退避するためのキャッシュバッフ
ァ退避装置4と、フォントパターン情報ファイルである
フォントファイル5とを有する。フォントキャッシュ制
御機構2は、キャッシュバッファ制御部6と、フォント
ファイル制御部7と、キャッシュ退避制御部8と、キャ
ッシュ復帰制御部9とから構成されている。FIG. 1 shows a font cache backup mechanism according to an embodiment of the present invention. The illustrated font cache backup mechanism saves an application program 1 that uses a font, a font cache control mechanism 2, a cache buffer 3 that caches (stores) expanded / modified font pattern data, and the contents of the cache buffer 3. A cache buffer saving device 4 for storing the data and a font file 5 which is a font pattern information file. The font cache control mechanism 2 is composed of a cache buffer control unit 6, a font file control unit 7, a cache save control unit 8, and a cache restoration control unit 9.
【0009】キャッシュバッファ制御部6は、アプリケ
ーションプログラム1とのコマンド送受及びキャッシュ
バッファ3の制御を行う。フォントファイル制御部7
は、フォントパターンROM(図示せず)またはフォン
トパターンファイル(図示せず)からフォントパターン
情報の読み取り、展開及び修飾を行う。キャッシュ退避
制御部8はキャッシュバッファ3内データをキャッシュ
バッファ退避装置4に退避する処理を行う。キャッシュ
復帰制御部9はキャッシュバッファ退避装置4からキャ
ッシュバッファ4へデータの復帰を行う。The cache buffer control unit 6 sends and receives commands to and from the application program 1 and controls the cache buffer 3. Font file control unit 7
Reads, develops and modifies font pattern information from a font pattern ROM (not shown) or a font pattern file (not shown). The cache save controller 8 saves the data in the cache buffer 3 to the cache buffer save device 4. The cache restoration control unit 9 restores data from the cache buffer saving device 4 to the cache buffer 4.
【0010】以下に、フォントキャッシュバックアップ
機構の処理の流れについて説明する。はじめに、キャッ
シュバッファ3に展開・修飾済みのフォントパターンが
蓄積されるまでの流れを示す。アプリケーションプログ
ラム1は、文字コード、修飾情報を含むフォントパター
ンの取得をフォントキャッシュ制御機構2に要求する。
フォントキャッシュ制御機構2内のキャッシュバッファ
制御部6は、フォントパターン取得要求を受け取ると、
指定のフォントパターンがキャッシュバッファ3に存在
するか否かをチェックし、存在する場合そのフォントパ
ターンをアプリケーションプログラム1に転送し処理を
終了する。キャッシュバッファ3にフォントパターンが
存在しない場合、キャッシュバッファ制御部6はフォン
トファイル制御部7に制御を渡す。フォントファイル制
御部7は、フォントファイル5よりフォントパターンを
読み出し、展開・修飾を行った後、キャッシュバッファ
制御部6に制御を戻す。キャッシュバッファ制御部6
は、キャッシュバッファ3を更新した後、フォントパタ
ーンをアプリケーションプログラム1に転送し処理を終
了する。The process flow of the font cache backup mechanism will be described below. First, the flow until the expanded and modified font pattern is accumulated in the cache buffer 3 is shown. The application program 1 requests the font cache control mechanism 2 to acquire a font pattern including a character code and modification information.
When the cache buffer control unit 6 in the font cache control mechanism 2 receives the font pattern acquisition request,
It is checked whether or not the designated font pattern exists in the cache buffer 3, and if it exists, the font pattern is transferred to the application program 1 and the process ends. When the font pattern does not exist in the cache buffer 3, the cache buffer control unit 6 transfers control to the font file control unit 7. The font file control unit 7 reads a font pattern from the font file 5, expands and modifies it, and then returns control to the cache buffer control unit 6. Cache buffer control unit 6
Updates the cache buffer 3, transfers the font pattern to the application program 1, and ends the processing.
【0011】以上、アプリケーションプログラム1がフ
ォントパターンの取得を繰り返すことにより、キャッシ
ュバッファ4に種々のフォントパターンが蓄積されキャ
ッシュヒット率が向上していく。As described above, the application program 1 repeats the acquisition of font patterns, so that various font patterns are accumulated in the cache buffer 4 and the cache hit rate is improved.
【0012】次に、キャッシュバッファ退避装置3にキ
ャッシュバッファ3に蓄積されたフォントパターン情報
を退避するまでの流れについて説明する。アプリケーシ
ョンプログラム1が、フォントキャッシュ制御機構2に
対しフォントパターン取得終了宣言を行うと、フォント
キャッシュ制御機構2内のキャッシュバッファ制御部6
は、キャッシュ退避制御部8に対しキャッシュバッファ
3内のフォントパターン情報の退避を要求する。キャッ
シュ退避制御部8は、キャッシュバッファ3から蓄積さ
れているフォントパターン情報を読み出し、バックアッ
プメモリまたはファイル装置で構成されているキャッシ
ュバッファ退避装置4に出力し、処理を完了する。Next, the flow until the cache buffer saving device 3 saves the font pattern information accumulated in the cache buffer 3 will be described. When the application program 1 declares a font pattern acquisition end to the font cache control mechanism 2, the cache buffer control unit 6 in the font cache control mechanism 2
Requests the cache save control unit 8 to save the font pattern information in the cache buffer 3. The cache evacuation control unit 8 reads the accumulated font pattern information from the cache buffer 3, outputs it to the cache buffer evacuation device 4 composed of a backup memory or a file device, and completes the processing.
【0013】なお、アプリケーションプログラム1がフ
ォントパターン取得終了宣言を行わずにプログラムを終
了した場合、オペレーティングシステム内のタスク管理
機構(図示せず)からフォントキャッシュ制御機構2に
対しアプリケーションプログラム1が終了したことが通
知されることにより、キャッシュバッファ3の退避処理
を前述と同様に行う。When the application program 1 ends the program without declaring the end of font pattern acquisition, the task management mechanism (not shown) in the operating system terminates the application program 1 to the font cache control mechanism 2. By this notification, the saving process of the cache buffer 3 is performed in the same manner as described above.
【0014】次に、キャッシュバッファ退避装置4に蓄
積されたフォントパターン情報をキャッシュバッファ3
に復帰するまでの流れについて説明する。アプリケーシ
ョンプログラム1が再起動され、フォントキャッシュ制
御機構2に対しフォントパターン取得開始宣言を行う
と、フォントキャッシュ制御機構2内のキャッシュバッ
ファ制御部6は、キャッシュ復帰制御部9に対しキャッ
シュバッファ3内にフォントパターン情報の復帰を要求
する。キャッシュ復帰制御部9は、バックアップメモリ
またはファイル装置で構成されるキャッシュバッファ退
避装置4に退避されているフォントパターンを読み出
し、キャッシュバッファ3に出力し処理を完了する。Next, the font pattern information accumulated in the cache buffer saving device 4 is transferred to the cache buffer 3
The flow until returning to is explained. When the application program 1 is restarted and the font pattern acquisition start declaration is made to the font cache control mechanism 2, the cache buffer control unit 6 in the font cache control mechanism 2 causes the cache restoration control unit 9 to be in the cache buffer 3. Requests restoration of font pattern information. The cache restoration control unit 9 reads the font pattern saved in the cache buffer saving device 4 including a backup memory or a file device, outputs the font pattern to the cache buffer 3, and completes the processing.
【0015】なお、アプリケーションプログラム1がフ
ァントパターン取得開始宣言を行わずにフォントパター
ンの要求を行った場合、フォントキャッシュ制御機構2
は、フォント取得処理に先立ち、前述のキャッシュバッ
ファ3への復帰処理を行う。If the application program 1 requests a font pattern without declaring the start of phantom pattern acquisition, the font cache control mechanism 2
Performs the above-mentioned return processing to the cache buffer 3 prior to the font acquisition processing.
【0016】[0016]
【発明の効果】以上説明したように本発明のフォントキ
ャッシュバックアップ機構は、従来のフォントキャッシ
ュ機構に比べ、過去にキャッシュしたデータがディスク
装置またはバックアップメモリに退避され、アプリケー
ションプログラム又はシステムにカストマイズされた状
態でフォントキャッシュ機構が動作し、即時に高速なレ
スポンスを得ることができる。また、システムの再起動
を行った場合においても同様に高速なレスポンスを得る
ことができる。As described above, in the font cache backup mechanism of the present invention, compared to the conventional font cache mechanism, the data cached in the past is saved in the disk device or the backup memory and customized in the application program or the system. The font cache mechanism operates in this state, and a high-speed response can be immediately obtained. In addition, even when the system is restarted, similarly high-speed response can be obtained.
【図1】本発明の一実施例によるフォントキャッシュバ
ックアップ機構を示すブロック図である。FIG. 1 is a block diagram showing a font cache backup mechanism according to an embodiment of the present invention.
1 アプリケーションプログラム 2 フォントキャシュ制御機構 3 キャッシュバッファ 4 キャッシュバッファ退避装置 5 フォントファイル 6 キャッシュバッファ制御部 7 フォントファイル制御部 8 キャッシュ退避制御部 9 キャッシュ復帰制御部 1 application program 2 font cache control mechanism 3 cache buffer 4 cache buffer save device 5 font file 6 cache buffer control unit 7 font file control unit 8 cache save control unit 9 cache restore control unit
Claims (5)
ントパターンを記憶するキャッシュバッファに対し、ア
プリケーションプログラムの終了時に前記キャッシュバ
ッファの内容を一括してキャッシュバッファ退避装置に
退避するキャッシュ退避制御部と、 前記アプリケーションプログラムが再実行された時に前
記キャッシュバッファ退避装置の内容を前記キャッシュ
バッファに一括復帰するキャッシュ復帰制御部とを有す
ることを特徴とするフォントキャッシュバックアップ機
構。1. A cache evacuation control unit that collectively evacuates the contents of the cache buffer to a cache buffer evacuation device at the end of an application program for a cache buffer that stores a font pattern that has been expanded / modified to a font. A font cache backup mechanism comprising: a cache restoration control unit for collectively restoring the contents of the cache buffer saving device to the cache buffer when an application program is re-executed.
に搭載されるROMフォントである請求項1記載のフォ
ントキャッシュバックアップ機構。2. The font cache backup mechanism according to claim 1, wherein the font is a ROM font installed in a personal computer.
に搭載されるファイルフォントである請求項1記載のフ
ォントキャッシュバックアップ機構。3. The font cache backup mechanism according to claim 1, wherein the font is a file font installed in a personal computer.
スク装置である請求項1記載のフォントキャッシュバッ
クアップ機構。4. The font cache backup mechanism according to claim 1, wherein the cache buffer saving device is a disk device.
クアップメモリである請求項1記載のフォントキャッシ
ュバックアップ機構。5. The font cache backup mechanism according to claim 1, wherein the cache buffer saving device is a backup memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5110151A JPH06324663A (en) | 1993-05-12 | 1993-05-12 | Font cache backup mechanism |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5110151A JPH06324663A (en) | 1993-05-12 | 1993-05-12 | Font cache backup mechanism |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06324663A true JPH06324663A (en) | 1994-11-25 |
Family
ID=14528351
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5110151A Pending JPH06324663A (en) | 1993-05-12 | 1993-05-12 | Font cache backup mechanism |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06324663A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0218644A (en) * | 1988-07-06 | 1990-01-22 | Hokuriku Nippon Denki Software Kk | Cache memory control system |
| JPH0566757A (en) * | 1991-09-09 | 1993-03-19 | Seiko Epson Corp | Font generator |
-
1993
- 1993-05-12 JP JP5110151A patent/JPH06324663A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0218644A (en) * | 1988-07-06 | 1990-01-22 | Hokuriku Nippon Denki Software Kk | Cache memory control system |
| JPH0566757A (en) * | 1991-09-09 | 1993-03-19 | Seiko Epson Corp | Font generator |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5752268A (en) | Minimum-delay recoverable disk control system using checkpoints and nonvolatile memory | |
| JPH06324663A (en) | Font cache backup mechanism | |
| US20010037425A1 (en) | Interrupt processing method in an operation processing device and the device using the same | |
| JPH04284548A (en) | Data base exclusive controlling system | |
| JP3705354B2 (en) | IO access control method and program for information processing system | |
| JPH02178855A (en) | Dead lock processing system for data base | |
| JPH0659828A (en) | Printer | |
| JP2885210B2 (en) | Graphic processing system | |
| US5841429A (en) | Method and apparatus for managing a character pattern | |
| JP3729573B2 (en) | Processing takeover method for parallel processing system | |
| JP5577518B2 (en) | Memory management method, computer and memory management program | |
| JP4371043B2 (en) | Storage system, snapshot control method and program | |
| JPH0713862A (en) | Starting method for application program | |
| JPS582936A (en) | Forced check point processing system | |
| JPH04340637A (en) | Cache control method | |
| JP2001265750A (en) | Memory controller | |
| JPH10507550A (en) | Method and apparatus for processing memory data and communication device including the same | |
| JPH01303546A (en) | Memory control system | |
| JP3014229B2 (en) | Font image generator | |
| JPH06289838A (en) | Font cache controller and its applying method | |
| JPH04188326A (en) | Stack area managing system | |
| JPS60239243A (en) | X-Y plotter | |
| JP2913774B2 (en) | Editing data storage control method for data processing system | |
| JPH0540549A (en) | Control computer automatic initializing system | |
| JPH02234287A (en) | Font pattern forming device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19970107 |