[go: up one dir, main page]

JPH10254426A - Character generation method - Google Patents

Character generation method

Info

Publication number
JPH10254426A
JPH10254426A JP9060247A JP6024797A JPH10254426A JP H10254426 A JPH10254426 A JP H10254426A JP 9060247 A JP9060247 A JP 9060247A JP 6024797 A JP6024797 A JP 6024797A JP H10254426 A JPH10254426 A JP H10254426A
Authority
JP
Japan
Prior art keywords
code
character
font
registered
display
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
JP9060247A
Other languages
Japanese (ja)
Inventor
Yoshiaki Abe
好晃 安部
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.)
Juki Corp
Original Assignee
Juki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Juki Corp filed Critical Juki Corp
Priority to JP9060247A priority Critical patent/JPH10254426A/en
Publication of JPH10254426A publication Critical patent/JPH10254426A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the character generating method in which the number of display fonts is increased with a simple constitution without greatly changing a conventional display system. SOLUTION: Character fonts are registered by dividing a character generator 10 into a fixed region 10a and an exchanging region 10b. If the characters, which are to be displayed, are registered in the fixed region, the display code, which indicates the position in the generator, is written into a VRAM. If the characters are not registered, a character font is obtained from a memory 22 and is registered in the region 10b. By controlling the character font registered in region 10b and its display code and dynamically exchanging the character font in the region 10b, the apparent number of fonts, which are registered in the generator 10, is increased.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、文字発生方法、更
に詳細には、ダイナミックにフォントを差し換えること
によりフォント登録数を拡大できる文字発生方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generation method, and more particularly to a character generation method capable of expanding the number of registered fonts by dynamically replacing fonts.

【0002】[0002]

【従来の技術】従来、データエントリシステム(データ
入力装置)では、フォント(文字パターン)をキャラク
タジェネレータと呼ばれる部分に登録し、例えばキーボ
ードによるキー入力によりフォント表示の要求があった
ときには、VRAMと呼ばれるハードウェア資源に、表
示要求のあったフォントに対応する表示コードを書き込
むことによって文字及び記号を画面に表示することを実
現している。
2. Description of the Related Art Conventionally, in a data entry system (data input device), a font (character pattern) is registered in a portion called a character generator, and when a font display request is made by a key input from a keyboard, for example, a VRAM is called. Characters and symbols can be displayed on the screen by writing a display code corresponding to a font for which a display request has been made into hardware resources.

【0003】この場合、データエントリシステムのキャ
ラクタジェネレータでは、これまでユーザのフォント登
録範囲は8080〜FFFFhで、その内で5486個
が登録でき、使用できるフィンの数が限定されていた。
In this case, in the character generator of the data entry system, the font registration range of the user is from 8080 to FFFFh, of which 5486 can be registered, and the number of fins that can be used is limited.

【0004】[0004]

【発明が解決しようとする課題】しかし、表現したい文
字、記号等が増大する傾向にあり、それに応じてフォン
ト登録数の拡大要求が起こっている。しかし、フォント
登録数を左右するフォント登録領域のキャラクタジェネ
レータは、ハードウェア資源であり、その登録領域には
限界がある。フォント登録数を増大するためには、キャ
ラクタジェネレータの容量を増大させれば良いが、その
場合には、キャラクタジェネレータそれ自体のコストが
上昇するだけではなく、キャラクタジェネレータからV
RAM及びモニタに至る従来の表示システムをハードウ
ェア並びにソフトウェア的に大幅に変更しなければなら
ない、という問題がある。
However, there is a tendency for the number of characters, symbols, and the like to be expressed to increase, and accordingly, there is a demand for increasing the number of registered fonts. However, the character generator in the font registration area that affects the number of registered fonts is a hardware resource, and the registration area has a limit. In order to increase the number of registered fonts, the capacity of the character generator may be increased. In this case, not only does the cost of the character generator itself increase, but also the V
There is a problem that the conventional display system up to the RAM and the monitor must be largely changed in hardware and software.

【0005】従って、本発明は、このような問題点を解
決するためになされたもので、従来の表示システムを大
幅に変更することなく、簡単な構成で登録可能な文字フ
ォントを増大させることが可能な文字発生方法を提供す
ることをその課題とする。
Accordingly, the present invention has been made to solve such a problem, and it is possible to increase the number of character fonts that can be registered with a simple configuration without greatly changing the conventional display system. It is an object to provide a possible character generation method.

【0006】[0006]

【課題を解決するための手段】本発明によれば、上記課
題は、キャラクタジェネレータを第1と第2の領域に分
割し、文字フォントのうち所定数のフォントを前記第1
の領域に、また他のフォントをキャラクタジェネレータ
と別のメモリにそれぞれ登録し、表示しようとする文字
フォントがメモリに登録されている場合には、その文字
フォントをメモリから前記第2の領域に登録するととも
に、登録位置と該文字フォントとの対応付けを行ない、
表示しようとする文字フォントを第1あるいは第2の領
域から発生させることを特徴とする文字発生方法により
解決される。
According to the present invention, an object of the present invention is to divide a character generator into first and second areas and to convert a predetermined number of character fonts into the first one.
If the character font to be displayed is registered in the memory, the character font is registered from the memory to the second area. And the correspondence between the registered position and the character font is performed.
The problem is solved by a character generation method characterized in that a character font to be displayed is generated from the first or second area.

【0007】キャラクタジェネレータの第1の領域に
は、所定数(4486個)のフォントが登録され、その
登録位置と文字フォントとの対応は変化しないので、第
1の領域は、固定領域となる。また、第2の領域には、
第1の領域に登録されない他のフォントで、他の記憶媒
体(メモリ)に登録されているフォントが登録される。
表示しようとする文字フォントがメモリに登録されてい
る場合には、このメモリから第2の領域に登録され、そ
のとき登録位置と文字フォントとの対応付けをテーブル
等を介して管理することにより、第2の領域の登録文字
フォントをダイナミックに差し換えることが可能にな
る。従って、メモリに登録された分の文字フォントを第
2の領域に差し替えて登録することができるので、メモ
リに登録するフォント数を増大させることにより、キャ
ラクタジェネレータに登録できるフォント数を見かけ上
増大させることができる。
[0007] A predetermined number (4486) of fonts are registered in the first area of the character generator, and the correspondence between the registered positions and the character fonts does not change. Therefore, the first area is a fixed area. In the second area,
Fonts registered in other storage media (memory) are registered as other fonts not registered in the first area.
If the character font to be displayed is registered in the memory, the character font is registered in the second area from this memory. At this time, the correspondence between the registered position and the character font is managed through a table or the like, The registered character font in the second area can be dynamically replaced. Therefore, the character fonts registered in the memory can be replaced and registered in the second area. By increasing the number of fonts registered in the memory, the number of fonts that can be registered in the character generator is apparently increased. be able to.

【0008】文字フォントを第2の領域(差し換え領
域)に登録するときには、未だ対応付けが行なわれてい
ない位置に登録する。この対応付けのない位置が多けれ
ば多いほど、差し換えの可能性が増大するので、表示し
ようとする位置(VRAM、画面の位置)に、対応付け
のある文字フォントが表示されている場合には、その対
応付けを解除してから表示を行なう。また、表示文字を
クリアするとき、あるいは表示文字がスクロールにより
画面から消えるとき、表示位置の文字フォントが前記対
応付けのある文字フォントである場合には、その対応付
けを解除する。これらの処置により第2の領域を開放す
ることができる。
When registering a character font in the second area (replacement area), the character font is registered in a position that has not been associated yet. The greater the number of uncorrelated positions, the greater the possibility of replacement. Therefore, if a correlated character font is displayed at the position to be displayed (VRAM, screen position), The display is performed after the association is canceled. Further, when the displayed characters are cleared or when the displayed characters disappear from the screen due to scrolling, if the character font at the display position is the character font with the association, the association is canceled. By these measures, the second region can be opened.

【0009】第2の領域の登録位置と文字フォントとの
対応は、例えば、登録位置を示す表示コードと、その登
録文字フォントの文字コードと、その関連が対応したこ
とを示すフラグをテーブルの形式で管理することで行な
うことができる。通常、VRAMには、表示コードが書
き込まれ、この表示コードを介してキャラクタジェネレ
ータにアクセスがなされて文字フォントが表示される。
The correspondence between the registered position of the second area and the character font is determined by, for example, displaying a display code indicating the registered position, the character code of the registered character font, and a flag indicating that the association is associated with a table format. It can be done by managing with. Normally, a display code is written in the VRAM, and the character generator is accessed via the display code to display a character font.

【0010】メモリの容量を増大させれば、その分キャ
ラクタジェネレータの見かけ上の登録数は増大するが、
ユーザの設定によりメモリの容量を設定できるようにす
ると好ましい。これにより不必要に登録数を欲しないユ
ーザは、メモリを他の用途に供することが可能になる。
As the memory capacity is increased, the apparent number of registered character generators is correspondingly increased.
It is preferable that the capacity of the memory can be set by user setting. Thus, a user who does not need the number of registrations unnecessarily can use the memory for another use.

【0011】[0011]

【発明の実施の形態】以下、図面に示す実施の形態に基
づいて本発明を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on embodiments shown in the drawings.

【0012】[原理]図1は、本発明の原理を説明する
ためのもので、キャラクタジェネレータ10は8080
〜FFFFhの領域に16384個のフォントを登録す
ることが可能になっている。そのうちエントリシステム
が固定的に登録するシステム、JISフォントが108
98個あり、これらのフォントがすでに登録されている
ので、残りの5486個分がユーザフォントの最大登録
数となる。従って、例えば、20で示したように、ユー
ザフォント登録数が10000個ある場合、8080〜
FFFFhの領域にそのすべて登録するのは不可能であ
る。
[Principle] FIG. 1 illustrates the principle of the present invention.
It is possible to register 16384 fonts in the area of FFFFFFh. Among them, the entry system is a system for fixed registration, JIS font is 108
Since there are 98 fonts and these fonts have already been registered, the remaining 5486 fonts are the maximum number of registered user fonts. Therefore, for example, as shown by 20, when the number of registered user fonts is 10,000, 8080 to 8080
It is impossible to register all of them in the area of FFFFh.

【0013】そこで、本発明では、このキャラクタジェ
ネレータの登録領域を固定領域10aと差し換え領域1
0bに分割し、差し換え領域10bに登録されるフォン
トをダイナミックに切り替えることによりキャラクタジ
ェネレータに登録可能なフォント数を増大させている。
Therefore, in the present invention, the registration area of this character generator is replaced with the fixed area 10a and the replacement area 1
0b, and the number of fonts that can be registered in the character generator is increased by dynamically switching the fonts registered in the replacement area 10b.

【0014】例えばユーザフォント登録数が10000
個ある場合、固定領域10aにユーザフォントを448
6個まで登録し、差し換え領域に1000フォント分の
領域を確保する。つぎに、固定領域に登録されない残り
の5514(=10000−4486)個のフォント2
1をメモリ22に格納する。そして、5514個内のフ
ォント表示の要求があったならば、1000個分の差し
換え領域10bにダイナミックに差し換えて登録を行い
表示させる。
For example, if the number of registered user fonts is 10,000
If there are 448 user fonts in the fixed area 10a
Register up to six, and secure an area for 1000 fonts in the replacement area. Next, the remaining 5514 (= 10000-4486) fonts 2 not registered in the fixed area
1 is stored in the memory 22. If there is a request for displaying 5514 fonts, the fonts are dynamically replaced and registered in the replacement area 10b for 1000 fonts and displayed.

【0015】このようにして、最大登録数を超える54
87〜10000個のフォントを8080〜FFFFh
に登録しているように見せかけることにより、ユーザフ
ォント登録数を10000個に増大させることが可能に
なる。
[0015] In this way, 54
87 to 10000 fonts from 8080 to FFFFh
, It is possible to increase the number of registered user fonts to 10,000.

【0016】[機能詳細]このダイナミックなフォント
切り換えによる文字発生に必要な資源には、既存のキャ
ラクタジェネレータとVRAMのハードウェア資源と、
それに新たに追加する資源として、差し換えフォントテ
ーブル、コード管理テーブル、差し換えコード管理テー
ブルの3点があり、これらをメモリに追加して、ソフト
ウェアで管理する。以下に各資源を説明する。
[Details of Function] Resources required for character generation by this dynamic font switching include existing character generator and VRAM hardware resources,
There are three new resources to be added: a replacement font table, a code management table, and a replacement code management table. These are added to a memory and managed by software. The following describes each resource.

【0017】キャラクタジェネレータ(CG)は、80
80〜FFFFhのフォント登録領域を管理しているハ
ードウェア資源であり、図2に図示したように、808
0〜FFFFhの領域にフォントが登録され、本発明の
実施形態では、固定領域10aと差し換え領域10bに
分割されている。
The character generator (CG) is 80
It is a hardware resource that manages the font registration area of 80 to FFFFh. As shown in FIG.
A font is registered in an area of 0 to FFFFh, and in the embodiment of the present invention, is divided into a fixed area 10a and a replacement area 10b.

【0018】VRAMは、通常のビデオRAMであり、
画面に表示させるフォントの表示コード(文字コード及
び表示コード参照)を管理しているハードウェア資源で
ある。フォントの画面への表示は、文字コードをある変
換規則によって変換させた表示コードをVRAMに書き
込むことによって実現している。
VRAM is a normal video RAM,
It is a hardware resource that manages a display code (refer to a character code and a display code) of a font to be displayed on a screen. Display of the font on the screen is realized by writing a display code obtained by converting a character code according to a certain conversion rule into a VRAM.

【0019】差し換えフォントテーブル30は、図2に
図示したように、文字コード(2バイト)とキャラクタ
ジェネレータ10の差し換え領域10bに登録するフォ
ントのアドレス(4バイト)を管理するテーブルであ
り、所望登録フォント数(10000個)の内すでに固
定領域10aに登録されたフォント数(4486個)の
残りの5514字分のデータ領域を持っている。
The replacement font table 30 manages the character code (2 bytes) and the address (4 bytes) of the font registered in the replacement area 10b of the character generator 10 as shown in FIG. It has a data area for the remaining 5,514 characters of the font number (4486) already registered in the fixed area 10a out of the font number (10000).

【0020】フォントファイル36は、差し換えフォン
トテーブル30のフォントアドレスとそこに登録される
実際のフォントデータ(72バイトのビットマップ)の
対応を示すものである。
The font file 36 shows the correspondence between the font address of the replacement font table 30 and the actual font data (bit map of 72 bytes) registered therein.

【0021】コード管理テーブル32は、キャラクタジ
ェネレータ10の固定領域10aに登録される4486
個のフォントの文字コード(2バイト)と表示コード
(2バイト)を管理するテーブルである。このテーブル
は、固定領域10aを管理することになるので、文字コ
ードと表示コードの対応関係は確立しており、変化する
ことはない。従って、固定領域の表示コードのフォント
の内容は、コード管理テーブル32を介して常に知るこ
とが可能である。
The code management table 32 has 4486 registered in the fixed area 10a of the character generator 10.
It is a table for managing character codes (2 bytes) and display codes (2 bytes) of the fonts. Since this table manages the fixed area 10a, the correspondence between the character code and the display code is established, and does not change. Therefore, the contents of the font of the display code in the fixed area can always be known through the code management table 32.

【0022】一方、差し換えコード管理テーブル34
は、キャラクタジェネレータ10の差し換え領域10b
に登録されるフォントの文字コード(2バイト)と表示
コード(2バイト)のデータを管理する。その数は差し
換え領域の登録可能数に対応して1000個となる。こ
の差し換えコード管理テーブル34の画面表示管理領域
34aには、文字コードが示すフォントが画面上に表示
されているかどうかの情報が入力されている。表示して
いない場合には、フラグ=0が、また表示されている場
合にはフラグ=1が登録される。
On the other hand, the replacement code management table 34
Is the replacement area 10b of the character generator 10.
Manages the character code (2 bytes) and display code (2 bytes) data of the font registered in. The number is 1000 corresponding to the number of replaceable areas that can be registered. In the screen display management area 34a of the replacement code management table 34, information as to whether or not the font indicated by the character code is displayed on the screen is input. When not displayed, flag = 0 is registered, and when displayed, flag = 1 is registered.

【0023】差し換えコード管理テーブル34は、コー
ド管理テーブル32の場合と違って、文字コードと表示
コードの対応が差し換えに従ってダイナミックに変化す
る。フラグ=1の場合には、表示コードと文字コードの
対応付けが可能であり、フラグ=0の場合には、対応付
けが解除されることになる。
In the replacement code management table 34, unlike the case of the code management table 32, the correspondence between the character code and the display code dynamically changes according to the replacement. When the flag = 1, the display code and the character code can be associated with each other, and when the flag = 0, the association is released.

【0024】本発明では、固定領域にない文字フォント
を表示しようとする場合、フラグ=0のところをサーチ
し、見つかった場合その表示コードに文字コードを対応
付けるとともに、差し換え領域の表示コード位置にその
文字コードに対応するフォントを登録し、そのときフラ
グ=を0から1に変換させるようにして、キャラクタジ
ェネレータの差し換え領域に登録される文字フォントと
登録位置の関係を確定させている。
According to the present invention, when a character font which is not in the fixed area is to be displayed, a search is performed for a flag = 0, and if found, a character code is associated with the display code, and the character code is assigned to the display code position of the replacement area. The font corresponding to the character code is registered, and at that time, the flag is changed from 0 to 1 to determine the relationship between the character font registered in the replacement area of the character generator and the registration position.

【0025】なお、本発明において、文字コードとは、
72バイトの文字フォントデータに対応しているコード
のことをいい、一方、表示コードは、キャラクタジェネ
レータにフォントデータを登録するときその登録位置に
対応するコードある。例えば、図2に図示したように、
文字コードが7070hの「漢」というフォントをキャ
ラクタジェネレータのFFA0hの位置に登録したとす
ると、文字コードは7070h、表示コードはFFA0
hとなる。
In the present invention, the character code is
This refers to a code corresponding to 72-byte character font data. On the other hand, the display code is a code corresponding to the registration position when font data is registered in the character generator. For example, as shown in FIG.
Assuming that the font “Chinese” with a character code of 7070h is registered at the position of FFA0h of the character generator, the character code is 7070h and the display code is FFA0.
h.

【0026】[ユーザフォントのキャラクタジェネレー
タへの登録]次に、図3を参照してユーザフォントのキ
ャラクタジェネレータへの登録の流れを説明する。
[Registration of User Font to Character Generator] Next, the flow of registration of a user font to the character generator will be described with reference to FIG.

【0027】まず、ステップS1において、ドライバの
イニシャル時に、差し換えコード管理テーブル34の表
示コードにキャラクタジェネレータ10の差し換え領域
10bの表示コードを入力する。例えば、差し換え領域
10bがF5D8〜FFFFhであるとすると、差し換
えコード管理テーブル34の表示コード欄にこれらの表
示コードが順次登録されていく。このとき、画面にはま
だ表示が行なわれていないので、差し換えコード管理テ
ーブル34の画面表示管理領域34aにはそれぞれフラ
グ=0が入力される(ステップS2)。
First, in step S1, when the driver is initialized, the display code of the replacement area 10b of the character generator 10 is input to the display code of the replacement code management table 34. For example, if the replacement area 10b is F5D8 to FFFFh, these display codes are sequentially registered in the display code column of the replacement code management table 34. At this time, since the screen has not been displayed yet, the flag = 0 is input to the screen display management area 34a of the replacement code management table 34 (step S2).

【0028】登録を行う際は、キャラクタジェネレータ
のユーザフォント登録領域の先頭[80A0h]から登
録していく。これは、登録すべきフォントをフォントデ
ータから獲得し(ステップS3)、このフォントデータ
をキャラクタジェネレータの[80A0h]から順番に
登録することにより行なわれる(ステップS5)。
When performing registration, registration is performed from the head [80A0h] of the user font registration area of the character generator. This is performed by acquiring the font to be registered from the font data (step S3) and registering the font data in order from [80A0h] of the character generator (step S5).

【0029】[FFA0h]までは、固定領域であるの
で、登録ごとに図2のコード管理テーブル32に文字コ
ードと表示コードを登録する(ステップS6)。例え
ば、最初のフォントの文字コードが[0001]である
場合には、テーブル32の第1番目には、文字コード
[0001]、表示コード[80A0h]が登録され
る。
Since [FFA0h] is a fixed area, a character code and a display code are registered in the code management table 32 of FIG. 2 for each registration (step S6). For example, when the character code of the first font is [0001], the character code [0001] and the display code [80A0h] are registered in the first table 32.

【0030】キャラクタジェネレータの固定領域には、
4486文字まで登録できるので、その数だけ上記ステ
ップを繰り返す。ステップS4において、4487文字
目以降のフォントであると判断された場合には、ステッ
プS7に移行し、フォントをフォントデータ領域(フォ
ントファイル)に登録する。これは、図2のフォントフ
ァイル36の各アドレスにフォントデータ(72バイ
ト)を登録することにより行なわれる。このときそのフ
ォントアドレスと文字コードを、差し換えフォントテー
ブル30に入力する(ステップS8)。
In the fixed area of the character generator,
Since up to 4486 characters can be registered, the above steps are repeated for that number. If it is determined in step S4 that the font is the font after the 4487th character, the process proceeds to step S7, and the font is registered in the font data area (font file). This is performed by registering font data (72 bytes) at each address of the font file 36 in FIG. At this time, the font address and the character code are input to the replacement font table 30 (step S8).

【0031】このフォントファイル36へのフォントデ
ータの登録と差し換えフォントテーブル30への入力
は、5514個分のフォントに対して行なわれ、ステッ
プS9において全てのフォントデータが登録されたと判
断されると、処理を終了する。
The registration of the font data in the font file 36 and the input to the replacement font table 30 are performed for 5514 fonts. If it is determined in step S9 that all the font data has been registered, The process ends.

【0032】なお、上記の差し換えフォントテーブル3
0、コード管理テーブル32、差し換えコード管理テー
ブル34の各テーブルは、コンソールドライバによって
管理される。また、各テーブル及びフォントファイルは
一つのメモリに格納するようにしても、また個別にそれ
ぞれメモリに格納するようにしてもよい。
The above-mentioned replacement font table 3
0, the code management table 32, and the replacement code management table 34 are managed by the console driver. Further, each table and font file may be stored in one memory, or may be stored individually in each memory.

【0033】[文字表示]次に上記のようにしてフォン
トが登録されるキャラクタジェネレータを用いての文字
表示を説明する。
[Character Display] Next, character display using the character generator in which the font is registered as described above will be described.

【0034】図4のステップS10〜S14は、文字を
表示すべくVRAMに表示コードを書き込む場合、現在
この書き込み位置にあるVRAMの表示コードが差し換
え領域の表示コードである場合には、その表示コードの
フラグを0にするためのものである。
Steps S10 to S14 in FIG. 4 are performed when the display code is written to the VRAM to display the character, and when the display code of the VRAM at the current writing position is the display code of the replacement area, the display code is displayed. Is set to 0.

【0035】まず、ステップS10においてVRAMの
コード書き込み位置から表示コードを獲得する。ステッ
プS11において全角表示コード(全角コードは4バイ
トで、後半2バイトはヌルコードが入力されている)か
否かが判断される。半角コードの場合には、固定領域に
登録され、差し換え領域の表示コードではないので、ス
テップS11からステップS15に分岐する。
First, in step S10, a display code is obtained from the code writing position of the VRAM. In step S11, it is determined whether or not a double-byte display code (the double-byte code is 4 bytes and a null code is input in the latter 2 bytes). In the case of a half-width code, since it is registered in the fixed area and is not a display code of the replacement area, the process branches from step S11 to step S15.

【0036】一方、全角表示コードならば、差し換えコ
ード管理テーブル34をサーチする(ステップS1
2)。ステップS13において、ヒットなしの場合は、
固定領域の表示コードなので、同様にステップS15に
分岐する。一方、ステップS13においてその表示コー
ドがサーチされた場合には、差し換えコード管理テーブ
ル34の画面表示管理領域34aに0をセットする(ス
テップS14)。この処理は、VRAMに表示コードを
書き込むときは必ず行なうようにする。これにより、差
し換え領域の表示コードの画面表示管理領域が0のとこ
ろが作成でき、その表示コードに対応する差し換え領域
の位置のフォントの差し換えが可能になる。
On the other hand, if it is a double-byte display code, the replacement code management table 34 is searched (step S1).
2). In step S13, if there is no hit,
Since the display code is for the fixed area, the process similarly branches to step S15. On the other hand, when the display code is searched in step S13, 0 is set in the screen display management area 34a of the replacement code management table 34 (step S14). This process is always performed when the display code is written in the VRAM. As a result, a place where the screen display management area of the display code of the replacement area is 0 can be created, and the font of the position of the replacement area corresponding to the display code can be replaced.

【0037】上記の処理が終了したならば、アプリケー
ションから受け取った上位モジュールから文字コードを
取得する(ステップS15)。この文字コードがシステ
ム、JISコードである場合には(ステップS16、S
17)、それに対応する表示コードが確定しているの
で、ステップS21において、VRAMにその表示コー
ドを書き込む。
When the above processing is completed, a character code is obtained from the upper module received from the application (step S15). If the character code is a system or JIS code (steps S16 and S16)
17) Since the corresponding display code has been determined, the display code is written to the VRAM in step S21.

【0038】一方、文字コードがシステム、JISコー
ドでない場合には、ステップS18において、その文字
コードでコード管理テーブル32をサーチする。ステッ
プS19において、ヒットしたと判断された場合には、
ステップS20においてその文字コードに対応する表示
コードに変換して、ステップS21においてその表示コ
ードをVRAMに書き込む。
On the other hand, if the character code is not the system or JIS code, the code management table 32 is searched with the character code in step S18. If it is determined in step S19 that a hit has occurred,
In step S20, the display code is converted into a display code corresponding to the character code, and in step S21, the display code is written in the VRAM.

【0039】この状態が図5に図示されている。例え
ば、アプリケーションから文字コード=0001が渡さ
れると、この文字コードは、コード管理テーブル32に
登録されているので、サーチがヒットし、それに対応す
る表示コード=80A0がVRAM40に書き込まれ
る。コード管理テーブル32においてヒットする場合に
は、この文字コードに対応するフォントは、キャラクタ
ジェネレータの固定領域に登録されていることを意味す
るので、キャラクタジェネレータへの登録は行なわれな
い。
This state is shown in FIG. For example, when the character code = 0001 is passed from the application, since the character code is registered in the code management table 32, the search is hit, and the corresponding display code = 80A0 is written to the VRAM 40. When a hit is found in the code management table 32, it means that the font corresponding to this character code is registered in the fixed area of the character generator, so that the font is not registered in the character generator.

【0040】一方、ステップS19において、コード管
理テーブル32でヒットしなかったことが判断された場
合には、ステップS22において差し換えフォントテー
ブル30をサーチする。例えば、アプリケーションから
文字コード=7070が渡されると、この文字コード
は、差し換えフォントテーブル30でヒットするので
(ステップS23)、そのときその文字コードに対応す
るフォントアドレスを獲得する(ステップS24)。こ
の状態が、図6の上段に図示されており、差し換えフォ
ントテーブル30により文字コード=7070からフォ
ントアドレス=1000が取得される。
On the other hand, if it is determined in step S19 that no hit has occurred in the code management table 32, the replacement font table 30 is searched in step S22. For example, when the character code = 7070 is passed from the application, the character code hits in the replacement font table 30 (step S23), and at that time, the font address corresponding to the character code is acquired (step S24). This state is shown in the upper part of FIG. 6, and the font address = 1000 is obtained from the character code = 7070 by the replacement font table 30.

【0041】次に、ステップS25において、差し換え
コード管理テーブル34の画面表示管理領域が0にセッ
トされている(画面に表示されていない)ものをサーチ
する。ステップS26においてヒットが確認されたなら
ば、表示コードを獲得する。例えば、図6の左中段に図
示したように、差し換えコード管理テーブル34の画面
表示管理領域34aが0であることろをサーチすると、
表示コード=FFA0が0であるので、その表示コード
を取得する。
Next, in step S25, a search is made for one in which the screen display management area of the replacement code management table 34 is set to 0 (not displayed on the screen). If a hit is confirmed in step S26, a display code is obtained. For example, as shown in the middle left part of FIG. 6, when searching for the fact that the screen display management area 34a of the replacement code management table 34 is 0,
Since the display code = FFA0 is 0, the display code is obtained.

【0042】次に、上記のようにして表示コードを取得
した場合には、ステップS27、S28においてその表
示コードに対応する画面表示管理領域34aを1にセッ
トするとともに、文字コード領域に文字コード=707
0をセットする(図6の左下の差し換えコード管理テー
ブルを参照)。
Next, when the display code is obtained as described above, the screen display management area 34a corresponding to the display code is set to 1 in steps S27 and S28, and the character code is set in the character code area. 707
0 is set (see the replacement code management table at the lower left of FIG. 6).

【0043】続いて、ステップS29において、VRA
M40に表示コードを書き込むとともに、表示コードが
示すキャラクタジェネレータ10の位置にフォントアド
レスの示すフォントを登録する。図6を参照するなら
ば、VRAM40に表示コード=FFA0がセットさ
れ、キャラクタジェネレータ10のFFA0の位置にフ
ォントファイル36のアドレス=1000に対応するフ
ォントデータ「漢」が登録されることになる。
Subsequently, in step S29, VRA
The display code is written into M40, and the font indicated by the font address is registered at the position of the character generator 10 indicated by the display code. Referring to FIG. 6, the display code = FFA0 is set in the VRAM 40, and the font data “han” corresponding to the address = 1000 of the font file 36 is registered at the position of FFA0 of the character generator 10.

【0044】一方、ステップS26において、ヒットし
なかったならば、フォントが割り付けられていないコー
ドであるから、Hex表示コードに変換する(ステップ
S30)。ヒットしない場合は、ダイナミックフォント
の表示数が1000を超えているため、Hex表示コー
ドに変換する。
On the other hand, if no hit is found in step S26, the code is converted to a Hex display code because the font is not assigned (step S30). If there is no hit, since the number of displayed dynamic fonts exceeds 1000, it is converted to Hex display code.

【0045】[文字削除]次に、文字削除を説明する。[Character Deletion] Next, character deletion will be described.

【0046】文字削除は、4040h(スペースコー
ド)を入力することにより行なわれる。文字削除の要求
があった時は、図7のステップS40に図示されたよう
に、VRAM40の4040h書き込み位置の表示コー
ドを獲得する。ステップS41においてそれが全角表示
コードであると判断された場合には、その表示コードで
差し換えコード管理テーブル34をサーチする(ステッ
プS42)。
Character deletion is performed by inputting 4040h (space code). When there is a request to delete characters, as shown in step S40 of FIG. 7, the display code of the writing position of 4040h of the VRAM 40 is obtained. If it is determined in step S41 that the code is a full-width display code, the replacement code management table 34 is searched with the display code (step S42).

【0047】ステップS43において、ヒットが確認さ
れたならば、その画面表示管理領域に0をセットする
(ステップS44)。続いて、ステップS45におい
て、VRAMに4040h(スペースコード)を書き込
む。例えば、図8に図示されたように、4040hを書
き込む位置のVRAM40の表示コードがFFFFの場
合、表示コード=FFFFを取得して、このコードで差
し換えコード管理テーブル34をサーチし、この表示コ
ードのある画面表示管理領域34aを0にセットする。
If a hit is confirmed in step S43, 0 is set in the screen display management area (step S44). Subsequently, in step S45, 4040h (space code) is written to the VRAM. For example, as shown in FIG. 8, when the display code of the VRAM 40 at the position where 4040h is written is FFFF, the display code = FFFF is obtained, the replacement code management table 34 is searched with this code, and A certain screen display management area 34a is set to 0.

【0048】一方、ステップS43においてヒットしな
かった場合は、システムフォントないし固定領域の表示
コードなので、そのまま、VRAMに4040hを書き
込む。
On the other hand, if no hit is found in step S43, since it is a display code for a system font or a fixed area, 4040h is written to the VRAM as it is.

【0049】[スクロール]次に、画面のスクロールが
あったときの文字表示を説明する。
[Scroll] Next, a description will be given of character display when the screen is scrolled.

【0050】図9に図示されたように、VRAM40は
画面表示領域40aより大きな容量を有しており、差し
換え領域にあるフォントの場合、基本的には、画面表示
領域40aでは表示コードを割り付け、一方その他の領
域では、文字コードを割り付けるようにする。これは、
画面表示領域以外の領域にも表示コードを割り付ける
と、差し換え領域のすべての表示コード(1000個)
が割り付けられてしまう恐れがあり、差し換えによるダ
イナミックフォントの表示が不可能になるからである。
従って、表示領域から離れる場合には、表示コードを文
字コードに変換するとともに、差し換え領域の表示コー
ドの場合には、その画面表示管理領域を0にセットし、
逆に画面領域に入る場合には、文字コードを表示コード
に変換し、差し換え領域の表示コードの場合には、その
画面表示管理領域を1にセットするようにする。
As shown in FIG. 9, the VRAM 40 has a larger capacity than the screen display area 40a. In the case of a font in the replacement area, a display code is basically allocated in the screen display area 40a. On the other hand, in other areas, character codes are assigned. this is,
If display codes are assigned to areas other than the screen display area, all display codes in the replacement area (1000)
Is assigned, and it becomes impossible to display a dynamic font by replacement.
Therefore, when leaving the display area, the display code is converted into a character code, and in the case of the replacement area display code, the screen display management area is set to 0,
Conversely, when entering the screen area, the character code is converted into a display code, and when the display code is in the replacement area, the screen display management area is set to 1.

【0051】まず、図10のステップS50に示したよ
うに、画面に対してスクロールの要求があったならば、
スクロールによって画面から消えてしまうVRAM行の
先頭から表示コードを獲得し、それが全角表示コードで
あるならば、その全角表示コードを取得する。
First, as shown in step S50 of FIG. 10, if there is a request to scroll the screen,
The display code is acquired from the head of the VRAM line that disappears from the screen by scrolling, and if it is a full-width display code, the full-width display code is acquired.

【0052】続いて、ステップS51において、コード
管理テーブル32をサーチする。ステップS52でヒッ
トが確認されたならば、ステップS56において、表示
コードを文字コードに変換する。
Subsequently, in step S51, the code management table 32 is searched. If a hit is confirmed in step S52, the display code is converted to a character code in step S56.

【0053】一方、ヒットしない場合には、ステップS
53において差し換えコード管理テーブル34をサーチ
する。そこでヒットしたならば、その表示コードを対応
する文字コードに変換するとともに、対応する画面表示
管理領域34aを0にセットする(ステップS55、S
56)。
On the other hand, if there is no hit, step S
At 53, the replacement code management table 34 is searched. If there is a hit, the display code is converted to the corresponding character code, and the corresponding screen display management area 34a is set to 0 (steps S55 and S55).
56).

【0054】続いて、上記のようにして取得した文字コ
ードをVRAMに書き込み(ステップS57)、上記ス
テップをサーチ範囲の全てについて繰り返す(ステップ
S58)。
Subsequently, the character code obtained as described above is written into the VRAM (step S57), and the above steps are repeated for the entire search range (step S58).

【0055】以上の状態が図11に図示されており、例
えばVRAMのスクロール前の画面表示領域40aの画
面から消されてしまう行に、例えば表示コード=808
A、FFA0が書き込まれているとする。表示コード=
808Aが取得された場合には、コード管理テーブル3
2でヒットするので、その文字コード=0001が、ま
た表示コード=FFA0の場合には、差し換えコード管
理テーブル34においてヒットするので、それに対応す
る文字コード=7070が引き出される。そのとき、そ
の画面表示管理領域34aが「1」から「0」にセット
される。
The above state is shown in FIG. 11, for example, in the line which is erased from the screen of the screen display area 40a before scrolling of the VRAM, for example, the display code = 808
Assume that A and FFA0 have been written. Display code =
If 808A is acquired, the code management table 3
2, the character code is 0001, and when the display code is FFA0, the replacement code management table 34 is hit, and the corresponding character code = 7070 is extracted. At that time, the screen display management area 34a is set from “1” to “0”.

【0056】次に、スクロールが進んで、今まで画面に
表示されていなかったものが、画面に表示される過程が
図10のステップS59以降に図示されている。
Next, the process in which scrolling is advanced and what has not been displayed on the screen until now is displayed on the screen is illustrated after step S59 in FIG.

【0057】画面に表示される行については、画面から
消えてしまう行と同じように表示される行の先頭からコ
ードを獲得し、全角文字コードであるならば、この全角
コードを獲得する(ステップS59)。全角の文字コー
ドを得たならば、文字コード→表示コード変換ルーチン
を通し、表示コードを得る(ステップS60)。この変
換ルーチンは図示されていないが、ステップS51〜S
56に図示した表示コード→文字コードの逆変換に対応
する。このように、表示コードが得られたら、そのコー
ドをVRAM表示位置に書き込み(ステップS61)、
これをサーチ範囲すべてにおいて繰り返す(ステップS
62)。
For a line displayed on the screen, a code is obtained from the head of the line displayed in the same manner as a line that disappears from the screen, and if it is a full-width character code, this full-width code is obtained (step S59). When a full-width character code is obtained, a display code is obtained through a character code → display code conversion routine (step S60). Although this conversion routine is not shown, steps S51 to S51
56 corresponds to the reverse conversion from the display code to the character code. Thus, when the display code is obtained, the code is written in the VRAM display position (step S61).
This is repeated for the entire search range (step S
62).

【0058】例えば、図11においてスクロールが進み
文字コード=0001が取得された場合には、コード管
理テーブル32を介して表示コード=808Aが得ら
れ、これがVRAMに書き込まれる。
For example, in FIG. 11, when scrolling proceeds and character code = 0001 is acquired, display code = 808A is obtained via code management table 32, and this is written to the VRAM.

【0059】[画面クリア]画面クリアは、図7に関連
して説明した文字削除を全画面の文字に付いて行なうこ
とに対応する。文字削除は、画面に現在表示されている
画面上のコードをクリア(VRAM画面表示域に404
0hを上書き)することであるので、画面の先頭から4
040hを書き込む位置の表示コードを獲得する(図1
2のステップS70)。
[Screen Clear] Screen clear corresponds to performing the character deletion described with reference to FIG. 7 for the characters on the entire screen. To delete characters, clear the code on the screen currently displayed on the screen (404 in the VRAM screen display area).
0h), so 4h from the top of the screen
Obtain the display code of the position to write 040h (FIG. 1
2 step S70).

【0060】ステップS71で全角表示コードであると
判断されたならば、その表示コードで差し換えコード管
理テーブル34をサーチする(ステップS72)。ステ
ップS73でヒットが確認されると、そのコードに対応
する画面表示管理領域を0にセットし(ステップS7
4)、その後、VRAMに4040hを上書きする(ス
テップS75)。
If it is determined in step S71 that the code is a double-byte display code, the replacement code management table 34 is searched with the display code (step S72). If a hit is confirmed in step S73, the screen display management area corresponding to the code is set to 0 (step S7).
4) Then, 4040h is overwritten on the VRAM (step S75).

【0061】この状態が図13に図示されている。クリ
アを開始して例えばVRAM40の画面表示領域におい
て全角表示コードFFA0000が書き込まれている場
合、表示コード=FFA0が獲得され、これで差し換え
コード管理テーブル34をサーチし、ヒットするので、
その画面表示管理領域が0にセットされ、VRAMの4
040が書き込まれている。
This state is shown in FIG. When clearing is started and, for example, the full-size display code FFA0000 is written in the screen display area of the VRAM 40, the display code = FFA0 is obtained, and the replacement code management table 34 is searched and hits.
The screen display management area is set to 0, and 4
040 has been written.

【0062】一方、ステップS71で全角コードでない
場合、あるいはステップS73でヒットしない場合は、
差し換え領域の表示コードではないのでそのまま404
0hを上書きし、この処理をクリアする範囲について行
う(ステップS76)。
On the other hand, if the code is not a full-width code in step S71 or if no hit is made in step S73,
Since it is not the display code of the replacement area,
0h is overwritten and the process is performed for a range in which this process is cleared (step S76).

【0063】[VRAMリード]アプリケーションから
VRAMをアクセスしてVRAMに書き込まれている文
字がどのような文字であるかを知るときにVRAMリー
ド(読み取り)の要求が出される。そのときの流れが、
図14に図示されており、まず、VRAMリードが要求
された時は、リード範囲にある1コードを読み出す(ス
テップS80)。そのコードが全角コードであるかない
かが確認され(ステップS81)、全角コードであるな
らばスクロール時と同様に表示コードを文字コードに変
換するルーチンを通す。
[VRAM Read] When an application accesses the VRAM and knows what kind of character is written in the VRAM, a VRAM read (read) request is issued. The flow at that time,
As shown in FIG. 14, when a VRAM read is requested, one code in the read range is read (step S80). It is confirmed whether or not the code is a full-width code (step S81). If the code is a full-width code, the routine goes through a routine for converting the display code into a character code as in scrolling.

【0064】すなわち、ステップS82でコード管理テ
ーブルをサーチし、ステップS83でヒットが確認され
た場合には、コード管理テーブルに従って表示コードを
文字コードに変換し(ステップS84)、ヒットしない
場合には、差し換えコード管理テーブルをサーチする
(ステップS85)。ステップS86で差し換えコード
管理テーブルでのヒットが確認されたら、ステップS8
7で差し換えコード管理テーブルに従って表示コードを
文字コードに変換する。なお、スクロールのときと相違
して、このとき画面表示管理領域は0にセットされるこ
とはない。
That is, the code management table is searched in step S82, and if a hit is confirmed in step S83, the display code is converted into a character code according to the code management table (step S84). The replacement code management table is searched (step S85). If a hit is found in the replacement code management table in step S86, step S8
In step 7, the display code is converted into a character code according to the replacement code management table. Note that, unlike the case of scrolling, the screen display management area is not set to 0 at this time.

【0065】次に、ステップS88において、変換した
コードをアプリケーションに渡す文字コード列に書き込
む。これをリード範囲について行う(ステップS8
9)。リード範囲が終了したならば、従来通り、リード
の要求をしたアプリケーションに渡す。
Next, in step S88, the converted code is written in a character code string to be passed to the application. This is performed for the read range (step S8).
9). When the read range is completed, the read range is passed to the application that made the read request as before.

【0066】この状態が図15に図示されており、例え
ばVRAMのリード範囲が40cであった場合、例えば
全角コード=FFA0が書き込まれている場合、差し換
えコード管理テーブルに従って、文字コード=7070
が獲得され、これがアプリケーションに渡す文字コード
列50に書き込まれる状態が図示されている。
FIG. 15 shows this state. For example, when the read range of the VRAM is 40c, for example, when the full-width code = FFA0 is written, the character code = 7070 according to the replacement code management table.
Is obtained, and is written in the character code string 50 to be passed to the application.

【0067】[VRAMライト]次に、アプリケーショ
ンから読み取りと逆に書き込み(ライト)の要求があっ
た場合を図16、図17を参照して説明する。
[VRAM Write] Next, the case where a write (write) request is made in reverse to the read from the application will be described with reference to FIGS.

【0068】まず、アプリケーションから受け取った文
字コード列を書き込むVRAMライト位置の1コードを
読み出し、全角コードであるかないかを確認する(ステ
ップS90、S91)。全角コードであるならば、差し
換えコード管理テーブル34をサーチする(ステップS
92)。
First, one code at the VRAM write position where the character code string received from the application is to be written is read, and it is checked whether the code is a full-width code (steps S90 and S91). If the code is a full-width code, the replacement code management table 34 is searched (step S).
92).

【0069】ステップS93でヒットが確認されたなら
ば、画面表示管理領域を0にセットする。これは、図4
の文字表示のときステップS11〜S14に示したのと
同じ考え方で、画面表示管理領域に0をセットして表示
コードを解放するためのものである。
If a hit is confirmed in step S93, the screen display management area is set to 0. This is shown in FIG.
When the character is displayed, the display code is set to 0 and the display code is released in the same manner as shown in steps S11 to S14.

【0070】その後、ステップS95において、アプリ
ケーションより渡された文字コード列から文字コードを
取得し、その文字コードが全角コードであるならば(ス
テップS96)、文字コード→表示コード変換ルーチン
に通して、表示コードに変換し(ステップS97)、そ
のコードをVRAMに書き込む(ステップS98)。
Thereafter, in step S95, a character code is obtained from the character code string passed from the application, and if the character code is a full-width code (step S96), the character code is passed through a character code → display code conversion routine. The code is converted into a display code (step S97), and the code is written into the VRAM (step S98).

【0071】なお、ステップS91、S93において否
定された場合は、差し換え領域の表示コードではないの
で、ステップS95に移行し、またステップS96で否
定された場合は、表示コードが確定しているので、直接
ステップS98に移行する。
If the result of the determination in steps S91 and S93 is negative, the process proceeds to step S95 because the display code is not the replacement area display code. If the result of the determination in step S96 is negative, the display code is determined. The process directly proceeds to step S98.

【0072】以上のステップをライト範囲が終了するま
で行う(ステップS99)。
The above steps are performed until the write range ends (step S99).

【0073】以上説明した例が図17に示されている。
例えば、ライト範囲40dでVRAMの表示コード=F
FB00000が取得されたとき、差し換えコード管理
テーブル34でヒットするので、表示コード=FFB0
の画面表示管理領域に0がセットされる。ライトの文字
コードが、図17の下段に示したように、7070であ
る場合には、文字コードから表示コード変換ルーチンに
より表示コードを獲得する。差し換えコード管理テーブ
ルでサーチしたとき表示コード=FFA0のフラグが0
であるので、表示コード=FFA0が獲得され、VRA
Mにその表示コードが書き込まれる。
FIG. 17 shows an example described above.
For example, in the light range 40d, the display code of the VRAM = F
When FB00000 is acquired, a hit is made in the replacement code management table 34, so that the display code = FFB0
Is set to 0 in the screen display management area. When the character code of the light is 7070 as shown in the lower part of FIG. 17, the display code is acquired from the character code by the display code conversion routine. Display code = FFA0 flag is 0 when searching in replacement code management table
Therefore, the display code = FFA0 is obtained and the VRA
The display code is written in M.

【0074】[キャラクタジェネレータのリード]キャ
ラクタジェネレータのリードは、VRAMを介さず、直
接キャラクタジェネレータにアクセスしてフォントを取
得する場合である。その場合の流れが図18に図示され
ている。
[Reading of Character Generator] Reading of the character generator is a case where the character generator is directly accessed to obtain a font without going through the VRAM. The flow in that case is shown in FIG.

【0075】まず、アプリケーションからキャラクタジ
ェネレータのリードの要求があった場合、ステップS1
00において文字コードで差し換えフォント管理テーブ
ルをサーチする。ステップS101でヒットが確認され
たならば、ステップS108に飛んで、フォントアドレ
スを獲得し、それをアプリケーションに渡す(ステップ
S109)。
First, when the application requests a read of the character generator, step S1
At 00, the replacement font management table is searched by the character code. If a hit is confirmed in step S101, the process jumps to step S108 to acquire a font address and pass it to the application (step S109).

【0076】一方、ヒットしなかったならば、差し換え
領域以外のフォントであるので、文字コードでコード管
理テーブルをサーチする(ステップS102)。ここで
ヒットが確認されたならば(ステップS103)、固定
領域のフォントであり、ステップS106において文字
コードを表示コードに変換してフォントアドレスを獲得
する。
On the other hand, if no hit is found, the font is outside the replacement area, and the code management table is searched using the character code (step S102). If a hit is confirmed here (step S103), the font is a fixed area font. In step S106, the character code is converted into a display code to obtain a font address.

【0077】一方、ステップS103でヒットせず、ど
ちらのテーブルでもヒットしなかった場合は、システ
ム、JISコードかフォント割り付けのないコードであ
るので、ステップS104、S105でそれをチェック
する。システム、JISコードならばステップS107
で表示コードからフォントアドレスを獲得する。また、
フォントが割り付けられていないコードならば、白色の
フォントをアプリケーションに返す。
On the other hand, if there is no hit in step S103 and there is no hit in either table, it is a system, JIS code or a code without font allocation, so it is checked in steps S104 and S105. If the system is JIS code, step S107
To get the font address from the display code. Also,
If the font is unassigned code, return a white font to the application.

【0078】また、システム、JISコードでない場合
には、ステップS110でエラーコードをセットする。
以上説明したように、本発明では、差し換え領域の文字
フォントをダイナミックに差し換えることが可能になる
ので、ユーザフォント登録範囲が拡張されることによっ
て、登録フォント数を増大させることができる。しか
し、図19の左側に図示したように、登録範囲が拡張さ
れるのは見かけ上であり、実際に登録するのは、右側の
8080〜FFFFhの範囲であって、この増加した分
のフォントは、メモリ(フォントファイル)上に確保管
理して画面上に表示される。
If the system is not a JIS code, an error code is set in step S110.
As described above, according to the present invention, the character fonts in the replacement area can be dynamically replaced, so that the number of registered fonts can be increased by extending the user font registration range. However, as shown on the left side of FIG. 19, it is apparent that the registration range is expanded, and the actual registration is in the range of 8080 to FFFFh on the right side. , Is secured and managed on the memory (font file) and displayed on the screen.

【0079】なお、ユーザのフォント登録数によって、
メモリの容量が相違するので、ユーザが操作できるディ
ップスイッチを設定し、メモリの段階的獲得を可能とし
た。これによりシステムのメモリ使用量を節約すること
が可能になる。
Note that, depending on the number of fonts registered by the user,
Since the capacity of the memory is different, a dip switch that can be operated by the user is set, and the memory can be obtained step by step. This makes it possible to save the memory usage of the system.

【0080】すなわち、図20に図示したように、ユー
ザフォント登録数によってディップスイッチを設定する
ことにより、メモリを段階的に獲得する。ディップスイ
ッチは、0000〜1010まで11段階の設定が可能
で、1011以降は、1010と同一の設定となる。こ
の場合、設定した登録数以上にフォントを登録させよう
としても、そのフォントは無視され登録されないことに
なる。
That is, as shown in FIG. 20, by setting the dip switch according to the number of registered user fonts, the memory is obtained step by step. The DIP switch can be set in 11 steps from 0000 to 1010, and after 1011, the setting is the same as 1010. In this case, even if an attempt is made to register more fonts than the set registration number, the font is ignored and not registered.

【0081】[0081]

【発明の効果】以上説明したように、本発明によれば、
キャラクタジェネレータが固定領域と差し換え領域に分
割され、差し換え領域に登録される文字フォントならび
にその表示コードないし登録位置を管理することにより
差し換え領域の文字フォントをダイナミックに差し換え
ることが可能になるので、キャラクタジェネレータに登
録できるフォント数を見かけ上増大させることが可能に
なる。
As described above, according to the present invention,
The character generator is divided into a fixed area and a replacement area, and by managing the character font registered in the replacement area and its display code or registered position, it becomes possible to dynamically replace the character font in the replacement area. The number of fonts that can be registered in the generator can be apparently increased.

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

【図1】本発明の原理を説明する説明図である。FIG. 1 is an explanatory diagram illustrating the principle of the present invention.

【図2】各種テーブルないしファイルと、キャラクタジ
ェネレータの関係を示した説明図である。
FIG. 2 is an explanatory diagram showing a relationship between various tables or files and a character generator.

【図3】フォントデータをキャラクタジェネレータに登
録する過程を示したフローチャート図である。
FIG. 3 is a flowchart showing a process of registering font data in a character generator.

【図4】文字が表示される流れを示したフローチャート
図である。
FIG. 4 is a flowchart illustrating a flow in which characters are displayed.

【図5】固定領域の文字が表示される状態を示した説明
図である。
FIG. 5 is an explanatory diagram showing a state in which characters in a fixed area are displayed.

【図6】差し換え領域に文字フォントが登録される状態
を示した説明図である。
FIG. 6 is an explanatory diagram showing a state in which a character font is registered in a replacement area.

【図7】文字を消去する場合の流れを示したフローチャ
ート図である。
FIG. 7 is a flowchart showing the flow of deleting characters.

【図8】差し換え領域の文字が消去されるときの状態を
示した説明図である。
FIG. 8 is an explanatory diagram showing a state when characters in a replacement area are deleted.

【図9】VRAMの画面表示領域とそれ以外の領域を示
した説明図である。
FIG. 9 is an explanatory diagram showing a screen display area of a VRAM and other areas.

【図10】画面をスクロールするときの流れを示したフ
ローチャート図である。
FIG. 10 is a flowchart showing the flow when scrolling the screen.

【図11】画面がスクロールするときのVRAMのコー
ド変換を示した説明図である。
FIG. 11 is an explanatory diagram showing VRAM code conversion when the screen is scrolled.

【図12】画面をクリアするときの流れを説明したフロ
ーチャート図である。
FIG. 12 is a flowchart illustrating a flow when the screen is cleared.

【図13】画面をクリアするときのVRAMとテーブル
関係を示した説明図である。
FIG. 13 is an explanatory diagram showing a relationship between a VRAM and a table when a screen is cleared.

【図14】VRAMリードの流れを示したフローチャー
ト図である。
FIG. 14 is a flowchart showing the flow of a VRAM read.

【図15】VRAMをリードしてアプリケーションに渡
す状態を示した説明図である。
FIG. 15 is an explanatory diagram showing a state in which a VRAM is read and passed to an application.

【図16】VRAMライトの流れを示したフローチャー
ト図である。
FIG. 16 is a flowchart showing the flow of a VRAM write.

【図17】VRAMライトの過程を説明した説明図であ
る。
FIG. 17 is an explanatory diagram illustrating a VRAM write process.

【図18】キャラクタジェネレータにアクセスしてフォ
ントデータを取得する流れを示したフローチャート図で
ある。
FIG. 18 is a flowchart showing a flow of accessing a character generator to obtain font data.

【図19】本発明によりキャラクタジェネレータの登録
範囲が見かけ上拡張される状態を示した説明図である。
FIG. 19 is an explanatory diagram showing a state where the registration range of the character generator is apparently expanded according to the present invention.

【図20】フォントが登録されるメモリの容量をディッ
プスイッチの設定で変化させる状態を示した表図であ
る。
FIG. 20 is a table showing a state in which the capacity of a memory in which fonts are registered is changed by setting a dip switch.

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

10 キャラクタジェネレータ 10a 固定領域 10b 差し換え領域 30 差し換えフォントテーブル 32 コード管理テーブル 34 差し換えコード管理テーブル 36 フォントファイル 40 VRAM 10 Character Generator 10a Fixed Area 10b Replacement Area 30 Replacement Font Table 32 Code Management Table 34 Replacement Code Management Table 36 Font File 40 VRAM

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 キャラクタジェネレータを第1と第2の
領域に分割し、 文字フォントのうち所定数のフォントを前記第1の領域
に、また他のフォントをキャラクタジェネレータと別の
メモリにそれぞれ登録し、 表示しようとする文字フォントがメモリに登録されてい
る場合には、その文字フォントをメモリから前記第2の
領域に登録するとともに、登録位置と該文字フォントと
の対応付けを行ない、 表示しようとする文字フォントを第1あるいは第2の領
域から発生させることを特徴とする文字発生方法。
1. A character generator is divided into a first area and a second area. A predetermined number of character fonts are registered in the first area, and other fonts are registered in a memory different from the character generator. If the character font to be displayed is registered in the memory, the character font is registered from the memory in the second area, and the registered position is associated with the character font. A character font to be generated from the first or second area.
【請求項2】 文字フォントを第2の領域に登録すると
きには、未だ対応付けが行なわれていない位置に登録す
ることを特徴とする請求項1に記載の文字発生方法。
2. The character generation method according to claim 1, wherein when registering the character font in the second area, the character font is registered at a position where no correspondence has been made yet.
【請求項3】 表示しようとする位置に、前記対応付け
のある文字フォントが表示されている場合には、その対
応付けを解除してから表示しようとする文字をキャラク
タジェネレータに登録し読み出すことを特徴とする請求
項1または2に記載の文字発生方法。
3. When a character font having the association is displayed at a position to be displayed, the character to be displayed is registered and read out from the character generator after the association is released. 3. The character generation method according to claim 1, wherein:
【請求項4】 表示文字をクリアするとき、あるいは表
示文字がスクロールにより画面から消えるとき、表示位
置の文字フォントが前記対応付けのある文字フォントで
ある場合には、その対応付けを解除することを特徴とす
る請求項1に記載の文字発生方法。
4. When the displayed character is cleared, or when the displayed character disappears from the screen by scrolling, and the character font at the display position is the character font with the association, the association is canceled. The method according to claim 1, wherein the character is generated.
【請求項5】 前記メモリの容量を登録文字フォント数
に応じて変化させることを特徴とする請求項1から4ま
でのいずれか1項に記載の文字発生方法。
5. The character generating method according to claim 1, wherein the memory capacity is changed according to the number of registered character fonts.
JP9060247A 1997-03-14 1997-03-14 Character generation method Pending JPH10254426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9060247A JPH10254426A (en) 1997-03-14 1997-03-14 Character generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9060247A JPH10254426A (en) 1997-03-14 1997-03-14 Character generation method

Publications (1)

Publication Number Publication Date
JPH10254426A true JPH10254426A (en) 1998-09-25

Family

ID=13136667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9060247A Pending JPH10254426A (en) 1997-03-14 1997-03-14 Character generation method

Country Status (1)

Country Link
JP (1) JPH10254426A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013169763A (en) * 2012-02-22 2013-09-02 Kyocera Document Solutions Inc Image forming apparatus, and character drawing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013169763A (en) * 2012-02-22 2013-09-02 Kyocera Document Solutions Inc Image forming apparatus, and character drawing program

Similar Documents

Publication Publication Date Title
US4663736A (en) File deletion system in a file unit
JPH024938B2 (en)
JPH10254426A (en) Character generation method
US6496829B1 (en) Information processing apparatus, information processing method, and computer-readable storage medium for storing information processing program
JPH06243006A (en) Character file access method
US8171409B2 (en) Interface for print control
JP2002197102A (en) Data retrieval device
JP4197679B2 (en) Print control apparatus and print control method
JP3240673B2 (en) How to manage character patterns
RU2120660C1 (en) Interface method for computer system
JPH10111744A (en) Operation history use supporting device and its method, storage medium storing program executing operation history use supporting function
KR100782823B1 (en) Method, apparatus and recording medium for managing images stored in a plurality of storage media provided or connected to an image forming apparatus
JP3896683B2 (en) User-defined character management device and storage medium
JP2775728B2 (en) Document processing device
JP3912849B2 (en) Character processing apparatus, character processing method, and recording medium
KR0146197B1 (en) Multi font apparatus for using video memory
JP3116425B2 (en) Document search device
JP3233555B2 (en) Information processing apparatus and key definition changing method
JPH06266766A (en) Document retrieving device
JPH1196028A (en) Display device, display method and storage medium
JPH07168929A (en) Electronic map display device
JP2006338159A (en) Position coordinate imparting device
JP2005078142A (en) Data structure, information display control device and program
JPH10312184A (en) Character processor
JPH02114379A (en) information retrieval device