JP2595978B2 - Font management device - Google Patents

Font management device

Info

Publication number
JP2595978B2
JP2595978B2 JP62186455A JP18645587A JP2595978B2 JP 2595978 B2 JP2595978 B2 JP 2595978B2 JP 62186455 A JP62186455 A JP 62186455A JP 18645587 A JP18645587 A JP 18645587A JP 2595978 B2 JP2595978 B2 JP 2595978B2
Authority
JP
Japan
Prior art keywords
font
bank
fcb
information
character
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.)
Expired - Lifetime
Application number
JP62186455A
Other languages
Japanese (ja)
Other versions
JPS6428687A (en
Inventor
高志 森川
義和 池ノ上
Original Assignee
ミノルタ株式会社
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 ミノルタ株式会社 filed Critical ミノルタ株式会社
Priority to JP62186455A priority Critical patent/JP2595978B2/en
Publication of JPS6428687A publication Critical patent/JPS6428687A/en
Priority to US07/598,809 priority patent/US5142613A/en
Application granted granted Critical
Publication of JP2595978B2 publication Critical patent/JP2595978B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、選択されたフォントに基き文字を発生する
文字発生装置のフォント管理装置に関する。
Description: TECHNICAL FIELD The present invention relates to a font management device of a character generator for generating a character based on a selected font.

(従来の技術) 文字発生装置においては、多種のフォントによる文字
の発生を可能にするため、フォントデータを格納した複
数組のフォントをフォント管理装置で管理するようにし
たものがある。
(Prior Art) In a character generation device, a plurality of sets of fonts storing font data are managed by a font management device in order to enable generation of characters by various fonts.

プリンタが、このような文字発生装置を持つ場合に
は、使用者がホストターミナルで文章を作成すると、そ
の文章のデータ(コードデータ)をプリンタの文字発生
装置に送る。文字発生装置では、このデータを、フォン
トのフォントデータを参照してビットイメージに変換し
て、プリントエンジンに出力し、文章を印字する。複数
組のフォントを管理する文字発生装置のフォント管理装
置では、管理装置が管理する複数組のフォントより使用
するフォントを選択し、選択したフォントのフォントデ
ータに基いて文字が発生される。
In the case where the printer has such a character generating device, when the user creates a text at the host terminal, the data (code data) of the text is sent to the character generating device of the printer. The character generator converts the data into a bit image by referring to the font data of the font, outputs the bit image to the print engine, and prints the text. In a font management device of a character generation device that manages a plurality of sets of fonts, a font to be used is selected from a plurality of sets of fonts managed by the management device, and characters are generated based on font data of the selected font.

(発明が解決使用とする問題点) ところで、このようなフォント管理装置では、種々の
文章に対応できるように、管理するフォントを入れ替え
ることが可能であるが、文字画像編集中にフォントの入
れ替えが行われると、現在選択されているフォントの管
理情報等が変更されるため、再度、フォントを選択する
必要がある。
(Problems to be Solved and Used by the Invention) In such a font management device, the fonts to be managed can be exchanged so as to correspond to various sentences. When this operation is performed, the management information and the like of the currently selected font are changed, so that it is necessary to select the font again.

従来、この再選択は、使用者が再度選択し直す必要が
あり、煩わしいものであった。
Conventionally, this re-selection requires the user to make a re-selection, which is cumbersome.

本発明は、上記不都合を解決することを目的とする。 The present invention aims to solve the above disadvantages.

(問題点を解決するための手段) 本発明のフォント管理装置は、選択されたフォントに
基き文字を発生する文字発生装置のフォント管理装置で
あって、複数組のフォントを格納するフォント記憶手段
と、フォント記憶手段に格納されたフォントの属性を記
憶するフォント管理情報記憶手段と、文字発生に使用す
るフォントを指定するフォント指定情報を入力する入力
手段と、入力手段によって入力されたフォント指定情報
を記憶するフォント指定情報記憶手段と、フォント管理
情報記憶手段に記憶されたフォントの属性を参照し、フ
ォント指定情報で指定されたフォントを選択する選択手
段と、フォント記憶手段に格納されたフォントの変更を
検出した場合、フォント記憶手段に格納されたフォント
の属性を読み出し、フォント管理情報記憶手段に記憶さ
れたフォントの属性を更新する更新手段と、更新された
フォント管理情報記憶手段のフォントの属性を参照し、
フォント指定情報記憶手段に記憶されているフォント指
定情報が指定するフォントを再選択する再選択手段とを
備えたことを特徴とする。
(Means for Solving the Problems) A font management device of the present invention is a font management device of a character generation device that generates characters based on a selected font, and includes a font storage device that stores a plurality of sets of fonts. A font management information storage means for storing font attributes stored in the font storage means, an input means for inputting font specification information for specifying a font to be used for character generation, and a font specification information input by the input means. Font specification information storage means to be stored; selection means for selecting a font specified by font specification information by referring to font attributes stored in the font management information storage means; and change of font stored in the font storage means Is detected, the attribute of the font stored in the font storage means is read out, and the font management information is stored. Updating means for updating the font attribute stored in the means, and referring to the updated font attribute in the font management information storage means,
Reselection means for reselecting a font specified by the font specification information stored in the font specification information storage means.

(作用) 入力手段より入力されたフォント指定情報を、フォン
ト指定情報記憶手段に記憶する。フォント記憶手段に格
納されたフォントの変更を検出した場合、フォント記憶
手段に格納されたフォントの属性を読み出してフォント
管理情報記憶手段に記憶されたフォントの属性を更新す
る。更新したフォントの属性を参照して記憶しているフ
ォント指定情報が指定するフォントを再選択する。
(Operation) The font designation information input from the input means is stored in the font designation information storage means. When the change of the font stored in the font storage unit is detected, the font attribute stored in the font storage unit is read and the font attribute stored in the font management information storage unit is updated. The font specified by the stored font specification information is selected again with reference to the updated font attribute.

(実施例) 以下、添付の図面を参照して、次の順で本発明の実施
例を説明する。
(Example) Hereinafter, an example of the present invention will be described in the following order with reference to the accompanying drawings.

a.電子写真プリンタの構成 b.フォントカートリッジとフォント c.フォント選択 d.文字画像編集と初期設定 e.フォント選択制御 本発明に関連する実施例部分は、(b)節、(c)節
の他、(d)節のステップ#11,#12,#15〜#19(第1
図)である。
a. Configuration of electrophotographic printer b. Font cartridge and font c. Font selection d. Character image editing and initial setting e. Font selection control The embodiments related to the present invention are described in sections (b) and (c). In addition, steps # 11, # 12, # 15 to # 19 in section (d) (first
Figure).

(a) 電子写真プリンタの構成 第2図は、本発明の実施例であるグラフィック描画の
可能なプリンタ・システム10による処理システムの構成
である。
(A) Configuration of Electrophotographic Printer FIG. 2 shows the configuration of a processing system using a printer system 10 capable of graphic drawing according to an embodiment of the present invention.

汎用のコンピュータなどのデータ処理装置1からのデ
ータは、データ処理装置1のスループットを改善するた
め、外部のファイルバッファ2に一旦格納された後、プ
リンタ・システム10に出力される。
Data from a data processing device 1 such as a general-purpose computer is temporarily stored in an external file buffer 2 and then output to a printer system 10 in order to improve the throughput of the data processing device 1.

プリンタ・システム10は、ビットマップ方式のデータ
処理装置(BMU)3と、電子写真プロセスとレーザーを
用いたプリントエンジン4と、外部給紙ユニット5やソ
ータ6等の付属装置よりなる。
The printer system 10 includes a bitmap type data processing unit (BMU) 3, a print engine 4 using an electrophotographic process and a laser, and auxiliary devices such as an external paper supply unit 5 and a sorter 6.

第3図は、プリンタ・システム10の概略ブロック図で
ある。
FIG. 3 is a schematic block diagram of the printer system 10.

ビットマップ方式データ処理装置3は、ビットマップ
制御分(BMC)30(第4図参照)、ビットマップ用のビ
ットマップRAM(BM−RAM)32、このBM−RAM32に描画を
行うビットマップ書込部(BMW)31およびフォント部33
よりなる。プリントエンジン4との接続は、制御データ
(枚数、アクセサリー制御など)用のバスB3とイメージ
データ用のバスB4により行う。
The bitmap type data processing device 3 includes a bitmap control component (BMC) 30 (see FIG. 4), a bitmap RAM (BM-RAM) 32 for bitmap, and a bitmap writing for performing drawing in the BM-RAM 32. Section (BMW) 31 and font section 33
Consisting of The connection with the print engine 4 is performed by a bus B3 for control data (number of sheets, accessory control, etc.) and a bus B4 for image data.

プリントエンジン4は、3つのコントローラを中心に
構成される。まず、インターフェイス制御部(IFC)40
はビットマップ制御部30からの制御データの処理、操作
パネル44の制御、および内部バスB5を通じてのプリンタ
4全体のタイミングの制御を行う。電子写真制御部41
は、内部バスB5を通じてインターフェイス制御部40から
送られるデータに応じて、電子写真プロセス部45の制御
を行う。
The print engine 4 is composed mainly of three controllers. First, the interface controller (IFC) 40
Performs processing of control data from the bitmap control unit 30, control of the operation panel 44, and control of the timing of the entire printer 4 through the internal bus B5. Electrophotographic control unit 41
Controls the electrophotographic process unit 45 in accordance with the data sent from the interface control unit 40 via the internal bus B5.

プリントヘッド制御部(PHC)42は、内部バスB4を通
じてビットマップ書込部31から送られてくるイメージデ
ータを電子写真プロセス部の感光体に書き込むため、内
部バスB5を通じてインターフェイス制御部40から送られ
てくる情報に従ってプリントヘッド部43の半導体レーザ
ーの発光やポリゴン・モータの回転を制御する。
The print head control unit (PHC) 42 is sent from the interface control unit 40 through the internal bus B5 to write the image data sent from the bitmap writing unit 31 through the internal bus B4 to the photoconductor of the electrophotographic process unit. The light emission of the semiconductor laser of the print head unit 43 and the rotation of the polygon motor are controlled in accordance with the received information.

また、外部給紙ユニット5やソータ6も、内部バスB5
を通じて、インターフェイス制御部40から制御される。
The external paper feed unit 5 and the sorter 6 are also connected to the internal bus B5.
Through the interface control unit 40.

以上に説明したプリンタシステム10は、ビットマップ
方式のレーザープリンタである。データ処理装置1から
送られてくる印字データ(ほとんどはコードで表わされ
る)は、ビットマップ方式処理装置3のBM−RAM32上に
実際の印字イメージとして展開され、プリントエンジン
4に出力される。プリントエンジン4では、ビットマッ
プ方式データ処理装置3からのデータに応じてレーザー
光を変調して感光体上に記録し、さらに記録紙に転写す
る。
The printer system 10 described above is a bitmap laser printer. The print data (mostly represented by a code) sent from the data processing device 1 is developed as an actual print image on the BM-RAM 32 of the bitmap type processing device 3 and output to the print engine 4. The print engine 4 modulates the laser beam according to the data from the bitmap type data processing device 3, records the modulated laser beam on the photoconductor, and transfers the modulated laser beam to recording paper.

データ処理装置1から送られてくるデータには、印字
データの他に、書式の制御やエンジンのモード設定を行
なうコードも含まれる。
The data sent from the data processing device 1 includes codes for controlling the format and setting the mode of the engine in addition to the print data.

ビットマップ方式データ処理装置3では、印字データ
の他にこれらのプロトコルの解析も行ない、書式の制御
や必要に応じてプリントエンジン4へ通紙やオプション
のモード変更等の指示を出す。プリントエンジン4で
は、上記の記録制御の他に、それに伴なう電子写真系の
制御、記録紙のタイミング制御、さらに、他のオプショ
ンへの通紙に同期した処理を行う。プリントエンジン4
の制御は、走査系を除いて、電子写真複写機と同様であ
る。
The bitmap data processor 3 also analyzes these protocols in addition to the print data, and controls the format and issues an instruction to the print engine 4 such as passing a paper or changing an optional mode to the print engine 4 as necessary. In addition to the above-described recording control, the print engine 4 performs control of an electrophotographic system accompanying the recording control, timing control of recording paper, and processing synchronized with paper passing to another option. Print engine 4
Is the same as that of the electrophotographic copying machine except for the scanning system.

第4図は、ビットマップ制御部40のブロック図であ
る。ビットマップ制御部30は、内部バスB301で接続さた
いくつかのブロックから構成される。BM−CPU301は、ビ
ットマップ方式データ処理装置3の中心となる制御部で
あり、データ処理装置インターフェイス308を通じてデ
ータ処理装置1や外部のファイルバッファ2との通信を
行ったり、プリントデータを変換し、ビットマップ書込
部インターフェイス306を通じて、ビットマップ書込部3
1を制御し、プリントエンジンインターフェイス307を通
じてプリントエンジン4を制御する。SYS−ROM302は、B
M−CPU301のプロクグムを記憶する。SYS−RAM303は、BM
−CPU301の作業用記憶エリアであり、スタックや基本フ
ラグの記憶に用いる。
FIG. 4 is a block diagram of the bitmap control unit 40. The bitmap control unit 30 is composed of several blocks connected by an internal bus B301. The BM-CPU 301 is a central control unit of the bitmap type data processing device 3, communicates with the data processing device 1 and the external file buffer 2 through the data processing device interface 308, converts print data, Bitmap writer 3 through bitmap writer interface 306
1 and the print engine 4 via the print engine interface 307. SYS-ROM 302 is B
The program of the M-CPU 301 is stored. SYS-RAM303 is BM
-A working storage area of the CPU 301, which is used for storing stacks and basic flags.

R−バッファ304は、外部(データ処理装置1やファ
イルバッファ2)との通信用バッファであり、BM−CPU3
01の処理プログラムとデータ処理装置1との通信を非同
期でも処理化可能にすることを目的とする。
The R-buffer 304 is a buffer for communication with the outside (the data processing device 1 and the file buffer 2), and the BM-CPU 3
The object of the present invention is to enable processing between the processing program of No. 01 and the data processing device 1 to be processed even asynchronously.

パケットバッファ(以下、P−バッファと略する)30
5は、データ処理装置1からのデータを、フォントの属
性から変換したBM−RAM32への描画が容易な中間コード
(以下パケットと記す)として記憶する。
Packet buffer (hereinafter abbreviated as P-buffer) 30
Reference numeral 5 stores data from the data processing device 1 as an intermediate code (hereinafter, referred to as a packet) converted from font attributes and easily drawn on the BM-RAM 32.

フォント部33は、8個のフォントカートリッジが実装
可能であり、各フォントカートリッジには、後に説明す
るように、最大で8種のフォントのパターンデータが格
納されている。この複数種のフォントのなかで、データ
処理装置1は、後で説明するようにフォントを選択す
る。
The font section 33 can mount eight font cartridges, and each font cartridge stores pattern data of up to eight types of fonts, as described later. Among the plurality of fonts, the data processing device 1 selects a font as described later.

また、フォントは文字画像編集中に交換可能である。 Fonts can be exchanged during character image editing.

フォントの実際の描画はビットマップ書込部31で行わ
れるが、ビットマップ書込部31への情報としては、デー
タ処理装置1より選択されたフォントのパターン内蔵ア
ドレスや、BM−RAM32への描画アドレス等のパラメータ
を計算する必要がある。これには所定の時間がかかる。
そこで、BM−RAM32のデータをプリント中に、次のペー
ジのデータを前処理しP−バッファ305に記憶しておく
ことにより、処理の高速化を計るものである。そのた
め、P−バッファ305内のデータの動きは、FIFO(ファ
ーストイン・ファーストアウト)となっている。
The actual drawing of the font is performed by the bitmap writing unit 31. The information to the bitmap writing unit 31 includes the pattern built-in address of the font selected by the data processing device 1 and the drawing to the BM-RAM 32. It is necessary to calculate parameters such as addresses. This takes a certain amount of time.
Therefore, while printing the data of the BM-RAM 32, the data of the next page is pre-processed and stored in the P-buffer 305, thereby speeding up the processing. Therefore, the movement of data in the P-buffer 305 is FIFO (first-in first-out).

プリントエンジンインターフェイス307は、プリント
エンジン4とのインターフェイスであり、プリント枚数
などのJOB情報や、プリントコマンドなどのJOB制御コマ
ンドをプリントエンジン4のインターフェイスとバスB3
を通じてやりとりする。
A print engine interface 307 is an interface with the print engine 4, and sends JOB information such as the number of prints and JOB control commands such as print commands to the interface of the print engine 4 and the bus B3.
Interact through.

(b) フォントカートリッジとフォント管理(フォン
ト管理情報(FCB)、ディレクトリ登録エリア(D−BAN
K)、フォント登録情報(VFCB)) フォントカートリッジの構成 第5図は、フォントカートリッジ内のフォントの構成
を示す。1つのカートリッジの占めるメモリのエリアを
スロットSLOTと呼び、各スロットは、8つのバンクF−
BANKφ〜F−BANK7と呼ばれる小区分のROMまたはRAMに
分割されている。各フォントは、1つまたはそれ以上の
バンクにまたがって記憶されている。漢字等の大容量フ
ォントに対しては複数のバンクを使用する。ただし、1
つのバンクに2つ以上の種類のフォントが入ったり、1
つのフォントが複数のスロットにまたがることはない。
(B) Font cartridge and font management (font management information (FCB), directory registration area (D-BAN)
K), Font Registration Information (VFCB)) Configuration of Font Cartridge FIG. 5 shows the configuration of the font in the font cartridge. The memory area occupied by one cartridge is called a slot SLOT, and each slot has eight banks F-
It is divided into small sections of ROM or RAM called BANKφ to F-BANK7. Each font is stored across one or more banks. Multiple banks are used for large fonts such as kanji. However, 1
One bank contains two or more fonts,
A font does not span multiple slots.

たとえば、スロットNo.1では、4つのフォントFONT1,
FONT2,FONT3,FONT4が、それぞれ、バンクF−BANKφ,F
−BANK1とF−BANK2,F−BANK3,F−BANK4からF−BANK6
に記憶されている。バンクF−BANK7は空である。各フ
ォントFONT1〜FONT4には、それぞれ、フォントに対応す
る内部論理コードφ,1,2,3と先頭のF−BANKを示すF−
BANK No.φ,1,3,4が対応する。
For example, in slot No. 1, four fonts FONT1,
FONT2, FONT3, and FONT4 are the banks F-BANKφ, F, respectively.
-BANK1 and F-BANK2, F-BANK3, F-BANK4 to F-BANK6
Is stored in Bank F-BANK7 is empty. Each of the fonts FONT1 to FONT4 has an internal logical code φ, 1,2,3 corresponding to the font and an F-
BANK No.φ, 1,3,4 correspond.

他のスロットについても同様である。 The same applies to other slots.

このスロットNo.(スロット番号)とF−BANK No.
(F−BANK番号)とは、後に説明するように、フォント
の選択のために使用できる。
This slot No. (slot number) and F-BANK No.
(F-BANK number) can be used for selecting a font, as described later.

フォントカートリッジ内のメモリには、フォントROM
と書き替え可能で着脱可能なフォントRAMとがある。フ
ォントRAMは、ホストコンピュータ等からのフォントの
ダウンロードのためのメモリとして使用され、すでにフ
ォントデータがダウンロードされている場合とそうでな
い場合がある。また、フォントRAMには、バックアップ
電源付きのもので外部入力スイッチ付きのもの(フォン
トデータの記憶が保持可能)とそうでないものがある。
後で説明するように、フォントRAMの先頭バイトは識別
情報として使用される。外部入力スイッチまたは管理情
報(FCB)によりフォントデータが書き込みずみと判断
されるフォントRAMは、loaded RAMとして登録される
(第16図参照)。
The font ROM is stored in the memory inside the font cartridge.
And rewritable and removable font RAM. The font RAM is used as a memory for downloading fonts from a host computer or the like, and may or may not have font data already downloaded. Font RAMs include those with a backup power supply and those with an external input switch (capable of storing font data) and those without.
As will be described later, the first byte of the font RAM is used as identification information. Font RAMs for which font data has been determined to have been written based on external input switches or management information (FCB) are registered as loaded RAMs (see FIG. 16).

各フォントについて、それぞれ所定の位置にフォント
グローバルデータ(第8図参照)、ディレクトリおよび
ドットパターンが格納されている。
Font global data (see FIG. 8), directories, and dot patterns are stored at predetermined positions for each font.

フォントグローバルデータには、ASCII6バイトのフォ
ントネームが含まれる。このフォントネームは、後で説
明するように、フォントの選択のために使用できる。
The font global data includes an ASCII 6-byte font name. This font name can be used for font selection, as described below.

第6図(a)は、フォントグローバルデータの中の文
字種コードの構成を示す。上位3ビットは大分類を示
し、下位5ビットは小分類を示す。大分類は、フォント
管理上の最も上位の識別情報であり、表に例を示す。
FIG. 6A shows the structure of the character type code in the font global data. The upper three bits indicate a major classification, and the lower five bits indicate a minor classification. The major classification is the highest identification information in font management, and an example is shown in the table.

第6図(b)は、小分類の一例として、JIS漢字コー
ド系フォント(大分類コード=4)の小分類構成につい
て示す。上位3ビットの書体コードと下位2ビットの組
み合わせ情報からなる。ここで、ANKはアルファベット
及びカナ文字を示す。
FIG. 6 (b) shows a small classification configuration of a JIS kanji code font (large classification code = 4) as an example of the small classification. It consists of upper 3 bits of typeface code and lower 2 bits of combination information. Here, ANK indicates alphabets and kana characters.

小分類構成は、各大分類固有の形式を有している。 The minor classification configuration has a format specific to each major classification.

フォントグローバルデータは、後で説明するように、
電源投入時やフォントカートリッジ交換時に読み込まれ
(第1図#3、第15図#73)、フォント情報登録(第15
図#77)の際にSYS−RAM303のフォント管理情報(以
下、FCBともいう)に記憶される。
Font global data, as explained later,
It is read when the power is turned on or when the font cartridge is replaced (# 3 in FIG. 1, # 73 in FIG. 15), and the font information is registered (FIG.
At the time of FIG. 77), it is stored in the font management information (hereinafter, also referred to as FCB) of the SYS-RAM 303.

フォント管理情報(FCB) ビットマップ制御部30は、後で説明するように、FCB
の登録整理番号である内部論理コードにより基本的な管
理を行う。
The font management information (FCB) bitmap control unit 30, as described later,
The basic management is performed by the internal logical code which is the registration reference number of.

第7図(a)は、フォント管理情報(FCB)の構成を
示す。第7図(b)に示すように、FCBはSYS−RAM303に
その時点で装着されている各フォントについて1セット
ずつ記憶される。各セットは、FCBステータス、FCB情
報、物理位置情報、カートリッジ情報および論理フォン
ト属性からなる。論理フォント属性は、スロットに装着
されているフォント(または内臓されているフォント)
のフォント管理情報に登録されている属性であり、後述
のVFCBの仮想フォント属性に記憶されているグローバル
情報と同じである。
FIG. 7A shows the structure of font management information (FCB). As shown in FIG. 7B, one set of FCBs is stored in the SYS-RAM 303 for each font currently mounted. Each set includes FCB status, FCB information, physical position information, cartridge information, and logical font attributes. The logical font attribute is the font installed in the slot (or the built-in font)
This attribute is registered in the font management information, and is the same as the global information stored in the virtual font attribute of the VFCB described later.

第8図は、フォント管理情報(FCB)の構成をより詳
細に示す。FCBは、FCBステータス、FCB情報、物理位置
情報、カートリッジ情報、論理フォント属性からなる。
前の三者に関するアドレスφ1〜1FHのデータは、フォ
ントセレクト時に作成される。この中のスロット番号
(2番地)とスロット内バンク番号(18H〜19H番地)
は、それぞれ、フォントセレクトのために使用される。
なお、20H番地以下のデータは、フォントカートリッジ
から読み取ったフォントグローバルデータ(カートリッ
ジ情報)である。
FIG. 8 shows the structure of the font management information (FCB) in more detail. The FCB includes FCB status, FCB information, physical position information, cartridge information, and logical font attributes.
The data of the addresses φ1 to 1FH relating to the former three are created at the time of font selection. The slot number (address 2) and the bank number in the slot (addresses 18H to 19H)
Are used for font selection, respectively.
The data below the address 20H is font global data (cartridge information) read from the font cartridge.

まず、FCBステータスは、各種フラグの状態を示す。
フラグには、FCB登録済フラグBUILD、フォントスタイル
を示すフォントフラグFONT、フォントカートリッジがRO
M又はRAMかを示すフラグROM/RAM漢字フラグKANZI、シス
テムプログラム等をダウンロードするためのフォントカ
ートリッジであることを示すダウンロードフラグDOWNLO
AD、フォントセレクト可能状態を示すフラグREADY、RAM
フォントにフォントがロード済かどうかを示すフラグLO
ADED、ディレクトリ登録フラグFDIR、スペシャルフォン
トであることを示すSPESIALがある。
First, the FCB status indicates the status of various flags.
Flags include FCB registered flag BUILD, font flag FONT indicating font style, and RO
Flag indicating M or RAM ROM / RAM Kanji flag KANZI, Download flag DOWNLO indicating that it is a font cartridge for downloading system programs, etc.
AD, flag READY indicating the font selectable state, RAM
Flag LO indicating whether the font has been loaded into the font
There are ADED, directory registration flag FDIR, and SPESIAL indicating that the font is special.

FCB情報としては、スロット番号、スロット内でリニ
アアドレスで設定されるフォントアドレス、フォントデ
ィレクトリ登録トップバンク番号、フォントディレクト
リ登録バンク数であるD−BANK数、フォントバンク数を
示すF−BANKサイズ、スロット内の漢字フォントパター
ンの先頭アドレスを示す漢字フォントパターン開始アド
レス、フォントパターン構成バイド数を示すフォントサ
イズ、ディレクトリ有の最大文字コードを示す最大文字
コード、フォントの全容量を示すフォント全バイト数が
ある。
The FCB information includes a slot number, a font address set as a linear address in the slot, a font directory registration top bank number, a D-BANK number which is the number of font directory registration banks, an F-BANK size indicating the number of font banks, and a slot. There is a kanji font pattern start address that indicates the start address of the kanji font pattern in the font, a font size that indicates the number of bytes in the font pattern configuration, a maximum character code that indicates the maximum character code in the directory, and a total number of font bytes that indicates the total font capacity .

論理位置情報としては、フォントアクセスアドレス生
成時のバンクオフセット値を示すバンクオフセット、ス
ロット内のバンク番号を示すF−BANK番号がある。
The logical position information includes a bank offset indicating a bank offset value at the time of generating a font access address, and an F-BANK number indicating a bank number in a slot.

カートリッジ情報(フォントグローバル情報)として
は、フォント用途種類を示すフォントスタイル、フォン
ト文字種類を示すフォントタイプ、ネームによってフォ
ント選択する場合使用するフォント名称、フォント最大
文字コード、最大文字幅を示すフォントセル幅、最大文
字高さを示すフラグセル高さ、ベースライン位置、製品
整理No.を示すフォント改訂No.、組み合せ情報及びバン
クサイズ情報を示すフォント容量情報、バンクサイズ
係数を示すフォント容量情報がある。
The cartridge information (font global information) includes a font style indicating a font usage type, a font type indicating a font character type, a font name used when selecting a font by name, a font maximum character code, and a font cell width indicating a maximum character width. , A flag cell height indicating the maximum character height, a baseline position, a font revision number indicating a product rearrangement number, font capacity information indicating combination information and bank size information, and font capacity information indicating a bank size coefficient.

また、論理フォント属性エリアは、カートリッジ情報
の次にあり、第8図には図示していないが、論理フォン
ト属性データには第12図のVFCBの図に示すように、用途
別コード、文字タイプ、文字種、文字ピッチ、文字高
さ、文字スタイル、文字ウエイトがある。
The logical font attribute area is located next to the cartridge information and is not shown in FIG. 8, but the logical font attribute data includes a code for each application and a character type as shown in the VFCB diagram in FIG. , Character type, character pitch, character height, character style, and character weight.

ディレクトリ登録エリア(D−BANK) フォントディレクトリは、フォントROM上の各文字に
対応する管理情報であるが、一文字毎にフォントROMを
アクセスするのでは文字描画との平行処理が不可能なた
めスループットが低下する。そこで、セレクトされたフ
ォントについては、SYS−RAM303内にロードしておくこ
とにより処理時間の短縮となる。SYS−RAM303におい
て、ディレクトリ登録エリアは、FCBエリアのあとに設
けられ、第9図(a)に示すように、リングバッファ構
成のD−BANKφ〜D−BANK7の8バンク(1バンク=2K
バイト)が用意される。D−BANKとは、ディレクトリ登
録エリアの小区分をいう。
Directory registration area (D-BANK) The font directory is management information corresponding to each character in the font ROM. However, if the font ROM is accessed for each character, parallel processing with character drawing is impossible, so throughput is low. descend. Therefore, processing time is reduced by loading the selected font into the SYS-RAM 303. In the SYS-RAM 303, the directory registration area is provided after the FCB area, and as shown in FIG. 9A, eight banks D-BANKφ to D-BANK7 of a ring buffer configuration (one bank = 2K).
Byte) is prepared. D-BANK is a subsection of the directory registration area.

登録の際は、F−BANKと同様に、ディレクトリサイズ
に応じ、複数バンクを使用する。第9図(b)は、第9
図(a)の有効空きバンクが8個ある状態から4種のフ
ォントのディレクトリが登録された状態を示す(斜線部
が登録に使用されたバンクを示す)。各ディレクトリに
対し、トップバンクNo.とディレクトリサイズ(バンク
数)が定まる。ディレクトリトップバンクNo.及びディ
レクトリバンクサイズは、FCBの7番地と8番地にそれ
ぞれ登録される(第8図参照)。また、FCBステータス
(0番地)には、ディレクトリがD−BANKに登録されて
いることを示すディレクトリ登録フラグとFCB上のフォ
ント管理情報の有効性を示すステータス有効フラグが含
まれる。
At the time of registration, as in the case of F-BANK, a plurality of banks are used according to the directory size. FIG. 9 (b)
FIG. 7A shows a state in which directories of four kinds of fonts are registered from a state in which there are eight valid empty banks (a hatched portion indicates a bank used for registration). The top bank No. and directory size (number of banks) are determined for each directory. The directory top bank No. and directory bank size are registered at addresses 7 and 8 of the FCB, respectively (see FIG. 8). The FCB status (address 0) includes a directory registration flag indicating that the directory is registered in the D-BANK and a status valid flag indicating the validity of the font management information on the FCB.

なお、各D−BANKには、ディレクトリ情報の有無を示
すD−BANKフラグが設けられている。
It should be noted that each D-BANK is provided with a D-BANK flag indicating presence / absence of directory information.

第10図(a),(b),(c)に、フォントディレク
トリ更新時のBANKポインタの動作について示す。第10図
(a)における空バンクは、1バンクであるのに対し、
次にフォントF5(3バンクの容量)がセレクトされる
と、フォントF5は、ディレクトリ未登録であり、ダウン
ロードするのに3バンク分の容量を必要とするため、D
−BANK No.φ〜2のD−BANKフラグがオフされ(第10
図(b))、D−BANK No.7よりディレクトリをダウン
ロードする(第10図(c))。
FIGS. 10 (a), (b) and (c) show the operation of the BANK pointer when updating the font directory. While the empty bank in FIG. 10 (a) is one bank,
Next, when the font F5 (capacity of 3 banks) is selected, the font F5 is not registered in the directory, and requires a capacity of 3 banks to download.
-The D-BANK flags of BANK Nos.
(FIG. 10B), a directory is downloaded from D-BANK No. 7 (FIG. 10C).

フォント登録エリア(VFCB) 使用者がID番号でフォント番号を指定する場合、その
フォントについての情報は、SYS−RAM303上のフォント
登録エリア(以下、VFCBと記す)に格納される。
Font Registration Area (VFCB) When a user specifies a font number by ID number, information on the font is stored in a font registration area (hereinafter referred to as VFCB) on the SYS-RAM 303.

なお、ID番号でフォントをセレクトする場合、ID番号
登録以降に対応するフォントが抜きさられても、近い属
性のフォントがあれば、セレクトされ、VFCB内の論理フ
ォントコードが更新される。この様にVFCBは論理フォン
トコードの様に特定のフォントと対応しない場合がある
ため、仮想フォントとも呼ぶ。なお、ID番号はVFCBコー
ド又は仮想フォントコードと呼ぶ場合がある。
When a font is selected by ID number, even if the font corresponding to the ID number registration is removed, if there is a font having a similar attribute, the font is selected and the logical font code in the VFCB is updated. Since the VFCB may not correspond to a specific font like a logical font code, it is also called a virtual font. Note that the ID number may be called a VFCB code or a virtual font code.

第11図(a)は、フォント(VFCB)登録エリアの構成
を示す。VFCBは、SYS−RAM303(第4図参照)上に設定
される。拡張性を考慮して、32バイトのエリアをとる。
第11図(b)に示すように、VFCBは、その時点で装着さ
れている各フォントについて1セットずつ記憶される。
FIG. 11A shows the configuration of a font (VFCB) registration area. VFCB is set on SYS-RAM 303 (see FIG. 4). It takes an area of 32 bytes in consideration of expandability.
As shown in FIG. 11 (b), one set of VFCB is stored for each font currently mounted.

VFCBは、ID番号設定時に対応するVFCBステータス、論
理フォントコードおよび仮想フォント属性を有する。VF
CBステータスは、VFCBが登録済みでかつ有効であること
を示すフラグを含む。論理フォントコードは、内部処理
における、フォント管理上の登録番号であり、各フォン
トが登録されているFCBエリアを表わしている。仮想フ
ォント属性は、データ処理装置1のプロトコルにより使
用者が設定するVFCBとのフォント属性であり、第12図に
詳細に示すように、優先順位順で用途別コード、文字タ
イプ、文字種、文字ピッチ、文字高さ、文字スタイル、
文字ウェイトがあり、それぞれ図示のグローバルデータ
に対応している。なお、仮想フォント属性は、FCBの論
理フォント属性と同じ構成となっている。
The VFCB has a VFCB status, a logical font code, and a virtual font attribute corresponding to the ID number setting. VF
The CB status includes a flag indicating that the VFCB is registered and valid. The logical font code is a registration number for font management in internal processing, and represents an FCB area in which each font is registered. The virtual font attribute is a font attribute with the VFCB set by the user in accordance with the protocol of the data processing device 1. As shown in detail in FIG. 12, the application-specific code, character type, character type, and character pitch are arranged in the order of priority. , Character height, character style,
There are character weights, each corresponding to the global data shown. The virtual font attribute has the same configuration as the FCB logical font attribute.

(c) フォント選択 後に詳細に説明するように、画像編集処理(第1図)
において、フォント選択処理を行なうステージが3つ存
在する。電源投入時の初期フォント選択、データ処理装
置1からのプロトコルによるフォント選択、及び、フォ
ントカートリッジ交換後のフォント選択処理である。
(C) Font selection As will be described in detail later, image editing processing (FIG. 1)
, There are three stages for performing a font selection process. Initial font selection at power-on, font selection based on a protocol from the data processing apparatus 1, and font selection processing after font cartridge replacement.

プリンタの電源投入時は、データ処理装置1からの選
択が何もなされない。そこでプリンタは初期設定(#
4)のためのデフォルト値を有しているが、フォント選
択もその1つであり、フォント選択のデフォルト値に従
い、フォントセレクト処理がなされる。
When the power of the printer is turned on, nothing is selected from the data processing device 1. Therefore, the printer is initialized (#
There is a default value for 4), but font selection is one of them, and font selection processing is performed according to the default value of font selection.

電源投入後によるデータ処理装置1からのプロトコル
によるフォントの選択方法には、第13図に示すように以
下の3つがある。
As shown in FIG. 13, there are the following three methods for selecting a font by a protocol from the data processing device 1 after the power is turned on.

スロット及びバンクセレクト 第5図に示したように、装着されているフォントカー
トリッジに対しては、スロット番号とF−BANK番号と
が、フォント属性の読み込み(第1図#3)において割
り当てられ、FCBに登録される。そこで、データ処理装
置1よりフォントカートリッジの装着されているスロッ
ト及び各スロット内のバンク番号とを指定して、フォン
トを直接的に選択できる(第24図参照)。
Slot and Bank Select As shown in FIG. 5, the slot number and the F-BANK number are assigned to the installed font cartridge in reading the font attributes (# 3 in FIG. 1), and the FCB is assigned. Registered in. Therefore, the font can be directly selected by designating the slot in which the font cartridge is mounted and the bank number in each slot from the data processing device 1 (see FIG. 24).

フォントネームセレクト FCBのグローバル情報(第8図)にはフォントのネー
ムが含まれている。そこで、データ処理装置1よりフォ
ントネームを指定して間接的にフォントを選択できる
(第25図参照)。
Font Name Select The global information (FIG. 8) of the FCB contains the name of the font. Thus, the font can be indirectly selected by designating the font name from the data processing device 1 (see FIG. 25).

IDセレクト 使用者は、各フォントに対し、ID番号を自由に設定す
ることが可能である。そこで、データ処理装置1よりス
ロットやバンクに無関係なリニア番号を指定することに
よりフォント選択が可能となる(第27図参照)。
ID Select The user can freely set the ID number for each font. Therefore, the font can be selected by specifying a linear number irrelevant to the slot or bank from the data processing apparatus 1 (see FIG. 27).

フォントがセレクトされると、そのフォント(また
は、そのフォントが装着されていない場合は、そのフォ
ントに最も近いフォント)の内部論理コード(論理フォ
ントコード、スロット番号、バンク番号、フォントネー
ム、ID番号など)がセレクトされる。セレクト情報は、
第14図に示すように、この各セレクト値とラストセレク
トモードより構成されている。そして、ラストセレクト
モードのコードに対応するエリアに各モードに対するセ
レクトモードが、セットされる。フォント選択時のセレ
クト情報の更新では、このラストセレクトモード及び、
対応するセレクト値が、変更される。
When a font is selected, the internal logical code (logical font code, slot number, bank number, font name, ID number, etc.) of the font (or the font closest to the font if the font is not installed) ) Is selected. Select information
As shown in FIG. 14, each of these select values and the last select mode are constituted. Then, a select mode for each mode is set in an area corresponding to the code of the last select mode. In the update of the select information at the time of font selection, this last select mode and
The corresponding select value is changed.

フォントカートリッジ交換後、フォントダウンロード
後、および各種エミュレータによる選択の際のフォント
再選択は、再度フォント属性の読み込みを行った後、フ
ォントカートリッジ交換などの前のラストセレクトモー
ド(第14図参照)を読み込み、それに該当するセレクト
値によりフォントを選択する(第1図#15〜#17)。こ
の選択が不可能である場合は、電源投入時と同じくデフ
ォルトフォントの選択を行う。
After replacing the font cartridge, downloading the font, and reselecting the font when selecting with various emulators, read the font attributes again and then read the last select mode before font cartridge replacement etc. (see Fig. 14) The font is selected by the corresponding select value (FIG. 1, # 15 to # 17). If this selection is not possible, the default font is selected as when the power was turned on.

フォントRAMは、次のように取扱われる。 The font RAM is handled as follows.

バックアップ電源なしのフォントRAMの場合、FCBにフ
ォントが登録されていないものは、まだダウンロードさ
れていないか、抜き差しされたものとして更新時にRAM
として登録される。
In the case of font RAM without a backup power supply, fonts that are not registered in the FCB have not been downloaded yet or have been removed and inserted in the RAM when updating.
Registered as

バックアップ電源付きフォントRAMの場合、フォントR
OMと同様、フォント交換時に付加される可能性があり、
その場合FCBに登録されていないためフォントRAMの外部
入力スイッチよりセットされる情報によりダウンロード
済みかどうかを判断する。
Font R for font RAM with backup power supply
Like OM, it may be added at the time of font exchange,
In this case, since it has not been registered in the FCB, it is determined whether or not downloading has been performed based on information set from the external input switch of the font RAM.

(d) 画像編集と初期設定 本発明の実施例に係るビットマップ方式の文字発生装
置による画像編集について、第1図のCPU301のフローに
より説明する。
(D) Image Editing and Initial Setting Image editing by the bitmap type character generator according to the embodiment of the present invention will be described with reference to the flow of the CPU 301 in FIG.

電源オン時に、内部の初期化を行ない(ステップ#
1。以下「ステップ」を略する。)、RAM303,32をクリ
アし(#2)、フォント部33より、セルサイズ等のフォ
ントの属性を読み込み(#3)、スイッチによる初期設
定、内部デフォルト値(フォント選択のデフォルト値を
含む)の初期設定及び初期フォント選択処理(第19図、
第20図)などの初期設定を行なう(#4)。スイッチ設
定による初期設定としては、解像度(編集時)、プロト
コル変換テーブル(各種プロトコル対応)、インターフ
ェイス切換(セントロニクス、RS232C)等がある。内部
デフォルト値による初期設定としては、初期フォント、
マージン等がある。そして、データ処理装置1からの受
信データの処理ループに入る。
When power is turned on, internal initialization is performed (step #
One. Hereinafter, “step” is abbreviated. ), RAMs 303 and 32 are cleared (# 2), font attributes such as cell size are read from the font section 33 (# 3), initial settings by switches, internal default values (including default values for font selection) Initial setting and initial font selection processing (Fig. 19,
Initial settings such as FIG. 20) are made (# 4). Initial settings by switch setting include resolution (at the time of editing), protocol conversion table (corresponding to various protocols), interface switching (Centronics, RS232C), and the like. Initial settings using internal default values include initial font,
There are margins. Then, the process enters a processing loop for data received from the data processing device 1.

フォントカートリッジ交換時(#11)またはフォント
ダウンロード時(#12)には、フォントの装着状況が変
わっているため、電源投入時と同じく、まず、フォント
属性の読み込み処理を行なう(#15、第16図参照)。交
換前のラストセレクトモード(第14図参照)を読み込み
(#16)、それに該当するセレクト値によりフォント選
択を行なう(#17)。選択が可能であれば(#18)、処
理終了であるが、選択不可能時は、電源投入時と同様、
最小番号のスロットの最小番号のバンクのフォント(デ
フォルトフォント)の選択を行なう(#19、第19図参
照)。
When the font cartridge is replaced (# 11) or when the font is downloaded (# 12), the font mounting state has changed. Therefore, as in the case of power-on, first, font attribute reading processing is performed (# 15, 16th). See figure). The last select mode before replacement (see FIG. 14) is read (# 16), and font selection is performed based on the corresponding select value (# 17). If the selection is possible (# 18), the process is terminated.
The font (default font) of the lowest-numbered bank of the lowest-numbered slot is selected (# 19, see FIG. 19).

次にP−RAM305の空き及びR−バッファ304のデータ
の有無を調べ(#21,#22)どちらも有る場合にはR−
バッファ304よりデータを読み出し(#23)、書式制御
やフォントセレクト等のプロトコル解析及びそれに伴う
処理を行なう(#24)。フォントセレクトは、データ処
理装置1からのプロトコルに応じて第24図、第25図、第
27図に示される処理手順により行われる。P−RAM305に
空きが無い又はR−バッファ304にデータが受信されて
いない場合には無処理となる。
Next, the presence or absence of the P-RAM 305 and the existence of data in the R-buffer 304 are checked (# 21, # 22).
Data is read out from the buffer 304 (# 23), and protocol analysis such as format control and font selection and associated processing are performed (# 24). Font selection is performed according to the protocol from the data processing device 1 in FIGS.
This is performed according to the processing procedure shown in FIG. If there is no free space in the P-RAM 305 or no data is received in the R-buffer 304, no processing is performed.

次に、プリント中でなくBM−RAM32がアクセス可能で
あり(#31)、マルチプリント中でなく、すなわち、JO
BACTフラグがセットされてなく(#32)、前文字のBM−
RAM書き込み中でない(#33)場合、P−RAM305のデー
タがあれば(#34)、そのデータを読み出し(#35)、
解析及び処理を行なう(#36)。解析の結果、そのデー
タがPAGE EJECTを意味する制御コードであれば(#3
7)、JOBACTフラグをセットし(#41)、プリント動作
に入る。PAGE EJECTでなければ(#37)、ステップ#1
1に戻り、次のデータの検索を行なう。プリント中でな
い場合でも(#32)、BM−RAM書き込み中(#33)、又
はP−RAM305にデータがなければ(#34)、上記の処理
は行わない。JOBACTフラグをセットした場合(#41)、
給紙コマンドPFCMDを出力し(#42)、プリントヘッド
制御部42のインターフェイスをプリント可能状態にし
(#43)、インターフェイス制御部40に対し、プリント
コマンドを出力することにより(#44)、プリント動作
にはいる。インターフェイス制御部40より露光終了コマ
ンド(EXPEND)を受けることにより(#45)、枚数管理
を行なう。設定枚数のプリントの終了を示すJOBENDが検
出された時、JOBACTフラグをリセットしプリント状態を
解除し、BM−RAM32をクリアする(#47)。
Next, the BM-RAM 32 can be accessed without printing (# 31).
The BACT flag is not set (# 32) and the previous character BM-
When data is not being written into the RAM (# 33), if there is data in the P-RAM 305 (# 34), the data is read out (# 35).
Analysis and processing are performed (# 36). As a result of the analysis, if the data is a control code meaning PAGE EJECT (# 3
7) The JOBACT flag is set (# 41), and the printing operation starts. If not PAGE EJECT (# 37), step # 1
Return to 1 and search for the next data. Even when printing is not being performed (# 32), during BM-RAM writing (# 33), or when there is no data in the P-RAM 305 (# 34), the above processing is not performed. When the JOBACT flag is set (# 41),
The paper feed command PFCMD is output (# 42), the interface of the print head control unit 42 is set to a printable state (# 43), and a print command is output to the interface control unit 40 (# 44), thereby performing a printing operation. Enter. Upon receiving an exposure end command (EXPEND) from the interface control unit 40 (# 45), the number of sheets is managed. When JOBEND indicating the end of the printing of the set number is detected, the JOBACT flag is reset, the print state is released, and the BM-RAM 32 is cleared (# 47).

第15図は、フォントカートリッジからのフォント属性
の読込みのフローを示す。この処理は、電源投入時(#
3)およびカートリッジ形態のフォント交換時など(#
11)に、フォント選択のためのフォント管理情報を生成
するために行う。
FIG. 15 shows a flow of reading font attributes from the font cartridge. This processing is performed when the power is turned on (#
3) and when replacing fonts in cartridge form (#
11) is performed to generate font management information for font selection.

まず、RAMカートリッジのための前処理(#61、第16
図参照)を行う。
First, pre-processing for RAM cartridge (# 61, 16th
Refer to the figure).

次に、各フォントカートリッジをチェックする。先頭
スロットの先頭バンクF−BANKφの先頭の1バイトのリ
ード/ライトチェックを行う(#71)。フォントRAMで
ない場合は(#72)、ただちにフォントグローバルデー
タを読み込む(#73)。フォントスタイルが、φFFHで
あれば(#74でYES)、フォントカートリッジが無いと
判断する。そうでなければ(#74でNO)、FCBステータ
スのROMフラグをセットし(#75)、スタイルステータ
スFONTフラグ(フォントスタイルを示すフラグ)をセッ
トし(#76)、第8図のフォント管理情報(FCB)に登
録する(#77)。
Next, each font cartridge is checked. A read / write check of the first byte of the first bank F-BANKφ of the first slot is performed (# 71). If it is not the font RAM (# 72), the font global data is immediately read (# 73). If the font style is φFFH (YES in # 74), it is determined that there is no font cartridge. Otherwise (NO in # 74), the ROM flag of the FCB status is set (# 75), the style status FONT flag (flag indicating the font style) is set (# 76), and the font management information in FIG. (FCB) (# 77).

ステップ#72でフォントRAMであると判断すると、次
に、FCBステータスのRAMフラグをセットし(#81)、FC
Bステータス内のスタイルステータスをスペシャル仕様
にセットする(#82)。次にF−BANK先頭のフォントス
タイル(第8図)を再チェックし(#83)、ステータス
初期設定の処理(#61、第16図)において、クリア(#
104、第16図)されていなければ有効フォントとして、F
CBステータスのLOADEDフラグをセットし(#84)、グロ
ーバルデータを読み込み(#85)、第8図の各フォント
管理情報に登録する(#77)。
If it is determined in step # 72 that the font is a RAM, then the FCB status RAM flag is set (# 81), and the
Set the style status in the B status to the special specification (# 82). Next, the font style at the head of the F-BANK (FIG. 8) is re-checked (# 83), and in the status initial setting process (# 61, FIG. 16), clear (#
104, Fig. 16) If not, F
The LOADED flag of the CB status is set (# 84), the global data is read (# 85), and registered in each font management information of FIG. 8 (# 77).

以上の様にして、全F−BANK(#91)及び全スロット
(#92)に対し、フォント属性の解析が行なわれる。
As described above, the font attribute is analyzed for all F-BANK (# 91) and all slots (# 92).

第16図は、フォントステータス初期設定のフローを示
す。
FIG. 16 shows a flow of font status initialization.

フォントROMを交換する際、現在選択されているフォ
ントが抜き去られたり、他のスロットに移されることが
あり、また、フォントRAMにおいては、抜き差し動作に
より、フォントデータが破壊されてしまう。よって、本
フローにより、このような場合に必要なフォント管理情
報を更新の処理を行う。
When replacing the font ROM, the currently selected font may be removed or moved to another slot, and font data may be destroyed in the font RAM due to the insertion / removal operation. Therefore, according to this flow, processing for updating the font management information necessary in such a case is performed.

まず、FCBの先頭番地を示すFCBポインタを初期化する
(#101)。FCB内のFCBステータスによりRAMフォントで
ない場合(#102でNO)、RAMフォントであるが(#10
2)、loadedとして登録されていない場合(#103)、F
−BANK先頭の1バイトをクリアする(φFFHを書き込
む)(#104)。RAMフォントがloadedとして登録されて
いる場合(#103)、全スロット及び全F−BANKのグロ
ーバル情報と比較し(#105)、同一のRAMカートリッジ
が見つからなければ(#106)、そのフォントについて
は抜きさられたものと判断して、同様にF−BANK先頭の
1バイトをクリアする(#104)。スロット及びバンク
の位置は、FCBにより決定する。フォントROMの場合はク
リアできないので問題はない。同一のRAMカートリッジ
が見つかれば(#106)、何の処理も行わない。FCBに登
録可能なフォントの個数分だけ上記の処理を行なう(#
107)。
First, the FCB pointer indicating the start address of the FCB is initialized (# 101). If it is not a RAM font due to the FCB status in the FCB (NO in # 102), it is a RAM font (# 10
2) If not registered as loaded (# 103), F
-Clear the first byte of BANK (write φFFH) (# 104). If the RAM font is registered as loaded (# 103), it is compared with the global information of all slots and all F-BANKs (# 105). If the same RAM cartridge is not found (# 106), the font is It is determined that the data has been removed, and the first byte of the F-BANK is similarly cleared (# 104). Slot and bank positions are determined by the FCB. There is no problem because the font ROM cannot be cleared. If the same RAM cartridge is found (# 106), no processing is performed. Perform the above processing for the number of fonts that can be registered in the FCB (#
107).

次に全BANKについて、loaded RAMとして登録されて
いなBANKの先頭をクリアする(#108)。その後、FCBエ
リアをすべてクリアする(#109)。
Next, the head of the bank that is not registered as loaded RAM is cleared for all banks (# 108). After that, all FCB areas are cleared (# 109).

以上の処理により、loaded RAM及びフォントROM以外
の全F−BANKの先頭には、φFFHが記憶されることにな
り(空きスロットを含む)、フォント属性の読み込み処
理(第15図参照)時に必要となる識別情報の更新が行な
われる。
By the above processing, φFFH is stored at the head of all the F-BANKs other than the loaded RAM and the font ROM (including empty slots), which is necessary for the font attribute reading processing (see FIG. 15). Is updated.

第17図にフォント情報登録(#77)のフローを示す。
本実施例では、カートリッジとしては前記の表に示す様
に2種の欧文漢字フォント及びオーバレイカートリッジ
を用意している。有効フォントのグローバル情報が読み
込まれたときに、本フローによりフォント情報を登録す
る。まず、グローバル情報のフォントスタイルを読み込
む(#121)。漢字フォント(#122)またはスペシャル
フォント(#125)と識別された場合は、各々個数のFCB
ステータスをセットする(#123,#126)。漢字フォン
トについては、通常のフォントの管理情報登録と共に、
漢字フォント固有の管理情報(第12図スロット内漢字フ
ォントパターン先頭アドレス)を登録する(#124)。
FIG. 17 shows a flow of font information registration (# 77).
In this embodiment, two types of European Kanji fonts and an overlay cartridge are prepared as shown in the above table. When the global information of the effective font is read, the font information is registered by this flow. First, the font style of the global information is read (# 121). If it is identified as a kanji font (# 122) or special font (# 125), the number of FCBs
The status is set (# 123, # 126). For kanji fonts, along with normal font management information registration,
The management information unique to the kanji font (the top address of the kanji font pattern in the slot in FIG. 12) is registered (# 124).

欧文フォントの場合は、FCBの各情報のみを登録する
(#127)、最後に、該当FCBの情報が確定したことを示
すFCB登録ずみフラグを、FCBステータスにセットする
(#128)。
In the case of the European font, only the information of the FCB is registered (# 127). Finally, the FCB registration flag indicating that the information of the FCB is determined is set to the FCB status (# 128).

以上の処理により電源投入時に装備されているフォン
トについては、フォント管理情報(FCB)がシステムRAM
303上に登録される。
With the above processing, font management information (FCB) is stored in the system RAM for fonts installed when the power is turned on.
Registered on 303.

第18図に、フォントディレクトリ登録処理のフローを
示す。電源投入時(第1図#4)においてデフォルトフ
ォントのディレクトリのみがセレクトされた時に、D−
BANK数を読み込み(#141)、D−BANK No.φより登録
されたフォントがセレクトされる毎に、D−BANKのワー
クエリア内の空バンクにディレクトリが登録される(14
6)。そして、使用したフォントの論理番号を添付し
(#147)、同時にFCBには使用したD−BANKの先頭バン
クを記憶しておき(#148)、書式制御の際に対応する
ディレクトリを取り出す。
FIG. 18 shows a flow of the font directory registration processing. When only the default font directory is selected at power-on (# 4 in FIG. 1), D-
The number of banks is read (# 141), and each time a font registered from D-BANK No. φ is selected, a directory is registered in an empty bank in the work area of D-BANK (14).
6). Then, the logical number of the used font is attached (# 147), and at the same time, the head bank of the used D-BANK is stored in the FCB (# 148), and the directory corresponding to the format control is taken out.

D−BANKは、リングバッファ構造であり、空きバンク
が不足した場合には(#142)、第10図に示すように、
使用中のバンクを除いて(#143)、再びNo.φより使用
される。このとき、FCBステータス上の選択済みフラグ
はクリアされ(#144)、古いフォントのディレクトリ
は無効となる(#145)。
D-BANK has a ring buffer structure, and when an empty bank runs short (# 142), as shown in FIG.
Except for the bank in use (# 143), it is used again from No. φ. At this time, the selected flag on the FCB status is cleared (# 144), and the directory of the old font becomes invalid (# 145).

第19図は、初期設定(第1図#4)における初期フォ
ント選択処理のフローを示す。デフォルトフォントは装
備されているフォントカートリッジのうち、最も小さい
番号のスロット及びバンクのフォントが決定されてい
る。
FIG. 19 shows the flow of the initial font selection process in the initial setting (# 4 in FIG. 1). As the default font, the font of the slot and the bank of the smallest number among the installed font cartridges is determined.

まず、論理フォントコードを1とする(#161)。FCB
に登録されているフォントについて、フォント選択処理
(#162、第20図参照)が行なわれる。正常にセレクト
された場合は(#163)、現在のフォントのセレクト情
報としてデフォルトモードが記憶される(#164)。
First, the logical font code is set to 1 (# 161). FCB
A font selection process (# 162, see FIG. 20) is performed for the fonts registered in. If the font is normally selected (# 163), the default mode is stored as the current font selection information (# 164).

もしFCBに選択可能なフォントが登録されていない場
合には(#163)、フォントがセットされていない、も
しくは、何らかの原因でフォントデータをBM−CPU301が
読み込めないため、印字を行なう処理が行えない。その
ため、ラストフォントでなければ(#165)、論理フォ
ントコードのインクリメントを行い(#166)、再度フ
ォント選択(#162)を行う。ラストフォントでもフォ
ントが選択できない場合は、エラー表示等のエラー処理
が行なわれる(#167)。
If the selectable font is not registered in the FCB (# 163), the font is not set, or the font data cannot be read by the BM-CPU 301 for some reason, so that the printing process cannot be performed. . Therefore, if the font is not the last font (# 165), the logical font code is incremented (# 166), and the font is selected again (# 162). If the last font cannot be selected, error processing such as error display is performed (# 167).

第20図に、論理フォントコードによるフォント選択処
理フローを示す。
FIG. 20 shows a flow of a font selection process using a logical font code.

まず、選択された論理フォントコードを読み込む(#
181)。フォントが既に選択済みでなければ(#182)、
FCBポインタをそのコードにより移し(#183)、FCBス
テータスを読み込む(#184)。登録済みフラグオンで
あり(#185)、かつフォントである場合(#186)は、
次にディレクトリ登録済みかを調べ(#187)、ディレ
クトリ未登録時はディレクトリ登録処理(第19図)を行
ない(#188)、次にフォントセルを設定する(#189、
第21図参照)。そして、選択済みフラグをオンする(#
190)。すでに選択済みである場合(#182)は、直ち
に、そのFCBに登録されているフォントがセレクトされ
ていることを示す選択済みフラグをオンする(#19
0)。
First, read the selected logical font code (#
181). If the font is not already selected (# 182)
The FCB pointer is moved by the code (# 183), and the FCB status is read (# 184). If the registered flag is on (# 185) and the font is (# 186),
Next, it is checked whether the directory has already been registered (# 187). If the directory has not been registered, the directory registration process (FIG. 19) is performed (# 188), and then the font cell is set (# 189,
See FIG. 21). Then, the selected flag is turned on (#
190). If the font has already been selected (# 182), the selected flag indicating that the font registered in the FCB has been selected is immediately turned on (# 19).
0).

登録済フラグがオンでない場合(#185)やフォント
でない場合は(#186)、何の処理も行なわない。
If the registered flag is not on (# 185) or if it is not a font (# 186), no processing is performed.

第21図は、フォントセル設定(第20図、#189)の処
理フローを示す。
FIG. 21 shows a processing flow of setting a font cell (FIG. 20, # 189).

この処理はキャラクター単位にカーソルを移動する場
合(タブ処理,CR処理)に用いるキャラクタスペース、
ラインスペースを登録しておくものである。
This process is the character space used when moving the cursor in character units (tab processing, CR processing),
The line space is registered.

スペースについては使用者設定が可能であるため、指
定されているか否かをみて(#200、#205)、指定され
ていれば、以下のスペース登録処理を行わない。指定さ
れていなければ、第8図に示したFCBフォントグローバ
ルデータより最大文字幅を読み込み(#201)、データ
処理装置1からのプロトコルにより横倍角指定がされて
いれば(#202)それを2倍し(#203)、キャラクタス
ペースとして登録する(#204)。
Since the user can set the space, it is checked whether or not the space is specified (# 200, # 205). If the space is specified, the following space registration processing is not performed. If it is not specified, the maximum character width is read from the FCB font global data shown in FIG. 8 (# 201), and if the double-width character is specified by the protocol from the data processing device 1 (# 202), it is changed to 2 Double (# 203) and register as a character space (# 204).

次に、フォントグローバルデータより最大文字高さを
読み込み(#206)、縦倍角指定がされていれば(#20
7)、それを2倍し(#208)、ラインスペースとして登
録する(#209)。
Next, the maximum character height is read from the font global data (# 206).
7) Then, it is doubled (# 208) and registered as a line space (# 209).

第22図は、VFCBエリアの仮想フォント更新処理フロー
を示す。この処理は電源投入時や、フォントカートリッ
ジ交換時に最適なフォントを常時対応させるため行う。
まず、VFCBポインタをVFCBエリアの先頭にもっていく
(#221)。VFCBに登録ずみであれば(#222)、論理フ
ォントコードのVFCB登録処理を行う(#223)。以上の
処理を全VFCBにつき行う(#224)。
FIG. 22 shows a virtual font update processing flow of the VFCB area. This processing is performed at the time of turning on the power or replacing the font cartridge in order to always deal with the optimum font.
First, the VFCB pointer is moved to the head of the VFCB area (# 221). If the VFCB has not been registered in the VFCB (# 222), the logical font code is registered in the VFCB (# 223). The above processing is performed for all VFCBs (# 224).

第23図にVFCBにおける論理フォントコード登録処理
(#223)のフローを示す。ここでは現在各VFCBが有す
る属性に最も近いフォントを対応させている。まず該当
VFCBエリア先頭のステータスを読みこむ(#241)。登
録されていれば(#242)、有効なVFCBとしてFCBの中か
ら最も近いフォントをさがし出す。
FIG. 23 shows a flow of the logical font code registration process (# 223) in the VFCB. Here, the font closest to the attribute of each VFCB is made to correspond. First applicable
The status at the head of the VFCB area is read (# 241). If registered (# 242), find the closest font from the FCB as a valid VFCB.

まず最も近いフォントコードLFNOとそのマッチング深
度MAX_MATCHを初期化する(#243)。そして、登録され
ている先頭FCBより、論理フォント属性を読み込み(#2
44)、第12図に示される仮想フォント属性及び論理フォ
ント属性のマッチングの深度を表わすパラメータMATCH
を初期化する(#245)。
First, the nearest font code LFNO and its matching depth MAX_MATCH are initialized (# 243). Then, the logical font attribute is read from the registered first FCB (# 2
44), a parameter MATCH representing the depth of matching of the virtual font attribute and the logical font attribute shown in FIG.
Is initialized (# 245).

論理属性との比較は、用途別コードより文字ウェイト
まで順次行なわれる。VFCBの仮想フォント属性を読み込
み(#246)、論理属性と比較し(#247)、一致してい
れば、MATCHを1つインクリメントする(#248)。比較
方法は、通常コードが全く等しい場合に有効となるが、
ピッチや高さについては最も近いフォントを有効とす
る。
The comparison with the logical attribute is performed sequentially from the use-specific code to the character weight. The VFCB virtual font attribute is read (# 246), compared with the logical attribute (# 247), and if they match, the MATCH is incremented by one (# 248). The comparison method is usually effective when the codes are exactly the same,
For pitch and height, the closest font is valid.

7種のフォント属性について比較を終了すれば(#24
9)、これまでのLFNOのMAX_MATCHと比較してより近けれ
ば(#250)、両パラメータを更新する(#251)。
If the comparison is completed for the seven font attributes (# 24
9) If both are closer than the previous LFNO MAX_MATCH (# 250), both parameters are updated (# 251).

次FCBの論理属性とも同様に比較する。登録されてい
る全フォントについて属性比較を行ない(#252)、MAT
CHが最大であるFCBの論理フォントコードをVFCBの論理
フォントコードとして登録する(#253)。
The same is compared with the logical attribute of the next FCB. Attribute comparison is performed for all registered fonts (# 252), MAT
The logical font code of the FCB with the largest CH is registered as the logical font code of the VFCB (# 253).

(e) フォント再選択 データ処理装置1からフォント選択が指示された場
合、(b)節で説明したように、3種のフォントにつき
選択されたものに対する処理が行われる。
(E) Font reselection When font selection is instructed from the data processing device 1, as described in section (b), processing is performed on the selected fonts for the three fonts.

スロット及びバンクによるフォント選択 第24図にスロット及びバンクによるフォント選択の処
理フローを示す。スロットセレクトとバンクセレクト
は、データ処理装置1からのコマンドとしては別個のも
のとして用意されている。スロットセレクトに対して
は、該当スロットの先頭バンクのフォントを選択し、バ
ンクセレクトに対しては、現にセレクトされているスロ
ットの該当スロット内F−BANK No.のフォントを選択
する。
FIG. 24 shows a processing flow of font selection by slot and bank. The slot select and the bank select are prepared as separate commands from the data processing device 1. For the slot select, the font of the first bank of the slot is selected, and for the bank select, the font of the F-BANK No. in the corresponding slot of the currently selected slot is selected.

データ処理装置1からのコマンドによりフォント選択
は、受信データの解析(#24、第1図)で行われる。
Font selection based on a command from the data processing device 1 is performed by analysis of received data (# 24, FIG. 1).

まず、現在選択されているスロット(バンク)番号を
読み込む(#271)。データ処理装置1のコマンドによ
り指定されたスロット(バンク)番号と同じであれば
(#272)、選択済みであるので、以下の検索処理を行
わない。
First, the currently selected slot (bank) number is read (# 271). If it is the same as the slot (bank) number specified by the command of the data processing device 1 (# 272), it has already been selected and the following search processing is not performed.

選択されていなければ検索処理のループカウンタとし
て登録可能な最大フォント種数を設定し(#273)、FCB
の先頭アドレスであるFCBポインタを初期化(=φ)に
設定する(#274)。そして、スロットセレクト処理時
は(#277でYES)、スロットNo.を読み込み(#275)、
バンクセレクト処理時(#277でNO)は、スロットNo.
(#275)及びスロット内F−BANK No.(#278)を逐
次読み込み、データ処理装置1からの指定スロット番号
及び指定スロット内F−BANK No.と比較する(#276、
#279)。該当フォントが見つかるまで検索を行なう。
スロットセレクトコマンドの場合、全スロットが検索の
対象であり、バンクセレクトコマンドの場合、1つのス
ロット内の全バンクが検索の対象である。
If not selected, the maximum number of font types that can be registered as a loop counter for search processing is set (# 273), and the FCB
Of the FCB pointer, which is the start address of, is initialized (= φ) (# 274). At the time of slot selection processing (YES in # 277), the slot number is read (# 275),
During bank select processing (NO in # 277), slot No.
(# 275) and the F-BANK No. in the slot (# 278) are sequentially read and compared with the designated slot number and the F-BANK No. in the designated slot from the data processing device 1 (# 276,
# 279). Search until the font is found.
In the case of the slot select command, all slots are to be searched, and in the case of the bank select command, all banks in one slot are to be searched.

該当スロット及びF−BANKがない場合、又は、該当ス
ロット及びスロット内F−BANKがFCB登録されていない
場合は、終了する(#280)。
If there is no corresponding slot and F-BANK, or if the corresponding slot and F-BANK in the slot are not registered in the FCB, the process ends (# 280).

次に、検索された該当フォントのFCBステータスを読
み込む(#281)。フォントフラグFONTがセットされて
いれば、フォントが認識され(#282)、FCBに管理情報
が登録済みであれば(#283)、有効なフォントとみな
す。次に、ディレクトリ登録フラグFDIRを見て、登録さ
れていなければ(#284)、ディレクトリ登録処理(第1
8図参照)を行う(#285)。ディレクトリには、各文字
に関する情報(文字のサイズ、対応するドットパターン
のアドレスなど)が含まれる。
Next, the FCB status of the searched font is read (# 281). If the font flag FONT is set, the font is recognized (# 282), and if the management information is registered in the FCB (# 283), it is regarded as a valid font. Next, looking at the directory registration flag FDIR, if it is not registered (# 284), the directory registration process (first
(See Fig. 8)) (# 285). The directory contains information on each character (character size, address of corresponding dot pattern, etc.).

次に、フォントセル設定処理(第21図参照)を行い、
書式制御のためのキャラクタースペース及びラインスペ
ースをセレクトしたフォントに応じて更新し(#28
6)、選択済みフラグをオンにする(#287)。最後にセ
レクト情報の更新を行う(#288)。ここではラストレ
セクトモードと、スロットまたはバンクあるいはその両
方がセレクト方法に応じて更新される。
Next, a font cell setting process (see FIG. 21) is performed.
Update character space and line space for format control according to the selected font (# 28
6) Turn on the selected flag (# 287). Finally, the selection information is updated (# 288). Here, the last recover mode, the slot and / or the bank are updated according to the selection method.

フォントが認識されず(#282)、FCBに登録済みでな
ければ(#283)、ステップ#284以下の処理は行わな
い。
If the font is not recognized (# 282) and the font is not registered in the FCB (# 283), the processing of step # 284 and thereafter is not performed.

フォントネームによるフォント選択 第25図にフォントネームによるフォント選択の処理フ
ローをしめす。
Font Selection by Font Name FIG. 25 shows the processing flow of font selection by font name.

処理手順は前述のスロット及びバンク番号によるフォ
ント選択(第24図)と同様であるが、検索条件及びセレ
クト情報が6文字のフォントネームである点が異なる。
The processing procedure is the same as the above-described font selection based on the slot and bank number (FIG. 24), except that the search condition and the select information are six-character font names.

まず、現在選択されているフォントネームを読み込む
(#301)。データ処理装置1のコマンドにより指定さ
れたフォントネームと同じであれば(#302)、選択済
みであるので、以下の検索処理をとばす。
First, the currently selected font name is read (# 301). If the font name is the same as the font name specified by the command of the data processing device 1 (# 302), it is already selected, and the following search processing is skipped.

選択されていなければ、FCBの先頭アドレスであるFCB
ポインタを初期値(=φ)に設定する(#303)。そし
て、FCBのフォントネームを読み込み(#304)、データ
処理装置1からのフォントネームと比較する(#30
5)。該当フォントが見つかるまで検索を行なう。
If not selected, FCB which is the start address of FCB
The pointer is set to an initial value (= φ) (# 303). Then, the font name of the FCB is read (# 304) and compared with the font name from the data processing device 1 (# 30).
Five). Search until the font is found.

該当フォントネームがラストフォントまでない場合
は、終了する(#306)。
If there is no corresponding font name up to the last font, the process ends (# 306).

次に、検索された該当フォントのFCBステータスを読
み込む(#311)。フォントフラグFONTがセットされて
いれば、FCBに登録済みであり(#312)、フォントが認
識されていれば(#313)、有効なフォントとみなす。
次に、ディレクトリ登録フラグFDIRを見て、登録されて
いなければ(#314)、ディレクトリ登録処理(第18図
参照)を行う(#315)。ディレクトリには、各文字に
関する情報(文字のサイズ、対応するドットパターンの
アドレスなど)が含まれる。
Next, the FCB status of the found font is read (# 311). If the font flag FONT is set, it is registered in the FCB (# 312), and if the font is recognized (# 313), it is regarded as a valid font.
Next, looking at the directory registration flag FDIR, if it is not registered (# 314), a directory registration process (see FIG. 18) is performed (# 315). The directory contains information on each character (character size, address of corresponding dot pattern, etc.).

次に、フォントセル設定処理(第21図参照)を行い、
書式設定のためのキャラクタースペース及びラインスペ
ースをセレクトしたフォントに応じて更新し(#31
6)、選択済みフラグをオンにする(#317)。最後にセ
レクト情報の更新を行う(#318)。
Next, a font cell setting process (see FIG. 21) is performed.
Update character space and line space for formatting according to the selected font (# 31
6) Turn on the selected flag (# 317). Finally, the selection information is updated (# 318).

FCBに登録済みでなく(#312)、フォントが認識され
ていなければ(#312)、ステップ#314以下の処理は行
わない。
If the font has not been registered in the FCB (# 312) and the font has not been recognized (# 312), the processing after step # 314 is not performed.

ID番号によるフォント選択 使用者がデータ処理装置1よりID番号を設定すると、
受信データの解析、処理(第1図#24)において登録さ
れる。そして、ID番号によりフォントを変更できる。
Font selection by ID number When the user sets the ID number from the data processing device 1,
It is registered in the analysis and processing of received data (FIG. 1, # 24). Then, the font can be changed by the ID number.

第26図は、フォントID登録処理のフローを示す。ま
ず、指定されたID番号(VFCBコード)を入力し(#33
1)、現在セレクトされている論理フォントコードを指
定されたVFCBに登録し(#332)、論理フォント属性も
登録し(#333)、VFCB登録済フラグをオンする(#33
4)。
FIG. 26 shows a flow of the font ID registration process. First, enter the specified ID number (VFCB code) (# 33
1) The currently selected logical font code is registered in the designated VFCB (# 332), the logical font attribute is also registered (# 333), and the VFCB registered flag is turned on (# 33).
Four).

第27図は、以上のID登録処理(第26図)により作成さ
れたVFCBを用いたフォント選択の処理フローである。デ
ータ処理装置1からのコマンドによりID選択が指定され
るとフォント選択のID番号を読み込み(#351)、その
番号によりVFCBに登録されているフォントの有無を検索
し(#352)、該当論理フォントコードを読み込み(#3
53)、第20図に示した方法により、フォント選択処理を
行ない(#354)、セレクト情報を更新しておく(#35
5)。ここでは、IDモード及びID番号が更新される。
FIG. 27 is a processing flow of font selection using the VFCB created by the above ID registration processing (FIG. 26). When ID selection is specified by a command from the data processing device 1, the ID number of the font selection is read (# 351), and the presence or absence of the font registered in the VFCB is searched by that number (# 352), and the corresponding logical font is searched. Load the code (# 3
53), a font selection process is performed by the method shown in FIG. 20 (# 354), and the select information is updated (# 35).
Five). Here, the ID mode and the ID number are updated.

なお、ID番号の登録は、本実施例では、ID番号登録時
に、セレクトされているフォントに対応させたが、フォ
ントネーム等、特定の属性を組み合わせて行なっても良
い。しかし、この方法ではプロトコルが複雑なため、本
実施例では他のフォントセレクトのプロトコルと併用す
ることを可能とした。
In this embodiment, the registration of the ID number is made to correspond to the selected font at the time of registering the ID number. However, the ID number may be registered in combination with a specific attribute such as a font name. However, since the protocol is complicated in this method, it is possible in this embodiment to use it together with another font selection protocol.

(発明の効果) 本発明においては、入力手段より入力されたフォント
指定情報を、フォント指定情報記憶手段に記憶する。フ
ォント記憶手段に格納されたフォントの変更を検出した
場合、フォント記憶手段に格納されたフォントの属性を
読み出してフォント管理情報記憶手段に記憶されたフォ
ントの属性を更新する。更新したフォントの属性を参照
して記憶しているフォント指定情報が指定するフォント
を再選択する。従って、フォント再選択は、フォントの
変更に応じて自動的に行われることになり、使用者の再
選択が不要となる。
(Effect of the Invention) In the present invention, the font designation information input from the input means is stored in the font designation information storage means. When the change of the font stored in the font storage unit is detected, the font attribute stored in the font storage unit is read and the font attribute stored in the font management information storage unit is updated. The font specified by the stored font specification information is selected again with reference to the updated font attribute. Therefore, font reselection is automatically performed according to the font change, and the user does not need to reselect.

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

第1図は、画像編集のフローチャートである。 第2図は、本発明の実施例に係るプリンタシステムのブ
ロック図である。 第3図は、ビットマップ方式データ処理装置とプリント
エンジンのブロック図である。 第4図は、ビットマップ制御部のブロック図である。 第5図は、フォントカートリッジ内の構成を示す図であ
る。 第6図(a),(b)は、それぞれ、フォントグローバ
ルデータの文字種コードの構成を示す図である。 第7図(a),(b)は、それぞれ、FCBの構成を示す
図である。 第8図は、FCBの構成を詳細に示す図である。 第9図(a),(b)は、ディレクトリ登録エリアへの
ディレクトリ登録のようすを示す図である。 第10図(a),(b),(c)は、フォントディレクト
リ更新の様子を順次示す図である。 第11図(a),(b)は、それぞれ、VFCBの構成を示す
図である。 第12図は、VFCBの構成を詳細に示す図である。 第13図は、データ処理装置からのフォントセレクト処理
のフローを示す図である。 第14図は、セレクト情報の図である。 第15図は、フォント属性の読み込みのフローチャートで
ある。 第16図は、フォントステータス初期設定のフローチャー
トである。 第17図は、フォント情報登録のフローチャートである。 第18図は、フォントディレクトリ登録処理のフローチャ
ートである。 第19図は、初期フォント選択処理のフローチャートであ
る。 第20図は、論理フォントコードによるフォント選択のフ
ローチャートである。 第21図は、フォントセル設定のフローチャートである。 第22図は、仮想フォント更新のフローチャートである。 第23図は、VFCB登録処理のフローチャートである。 第24図は、スロット及びバンクによるフォント選択のフ
ローチャートである。 第25図は、フォントネームによるフォント選択のフロー
チャートである。 第26図は、フォントID番号登録のフローチャートであ
る。 第27図は、ID番号によるフォント選択のフローチャート
である。 1……データ処理装置、 3……ビットマップ方式文字発生装置、 30……ビットマップ制御部、 33……フォント部、 301……BM−CPU、 303……SYS−RAM(記憶手段)、 308……データ処理装置インターフェイス。
FIG. 1 is a flowchart of image editing. FIG. 2 is a block diagram of the printer system according to the embodiment of the present invention. FIG. 3 is a block diagram of a bitmap data processing device and a print engine. FIG. 4 is a block diagram of a bitmap control unit. FIG. 5 is a diagram showing a configuration inside the font cartridge. 6 (a) and 6 (b) are diagrams each showing the structure of the character type code of the font global data. FIGS. 7 (a) and 7 (b) are diagrams each showing the configuration of the FCB. FIG. 8 is a diagram showing the configuration of the FCB in detail. FIGS. 9 (a) and 9 (b) are diagrams showing how a directory is registered in a directory registration area. FIGS. 10 (a), (b), and (c) are diagrams sequentially showing how font directories are updated. 11 (a) and 11 (b) are diagrams each showing a configuration of a VFCB. FIG. 12 is a diagram showing the configuration of the VFCB in detail. FIG. 13 is a diagram showing a flow of a font selection process from the data processing device. FIG. 14 is a diagram of select information. FIG. 15 is a flowchart of reading font attributes. FIG. 16 is a flowchart of font status initialization. FIG. 17 is a flowchart of font information registration. FIG. 18 is a flowchart of the font directory registration process. FIG. 19 is a flowchart of the initial font selection process. FIG. 20 is a flowchart of font selection by a logical font code. FIG. 21 is a flowchart for setting a font cell. FIG. 22 is a flowchart of updating a virtual font. FIG. 23 is a flowchart of the VFCB registration process. FIG. 24 is a flowchart of font selection by slot and bank. FIG. 25 is a flowchart of font selection by font name. FIG. 26 is a flowchart of font ID number registration. FIG. 27 is a flowchart of font selection by ID number. 1 Data processing device 3 Bitmap type character generator 30 Bitmap control unit 33 Font unit 301 BM-CPU 303 SYS-RAM (storage means) 308 … Data processing device interface.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】選択されたフォントに基き文字を発生する
文字発生装置のフォント管理装置であって、 複数組のフォントを格納するものであり、かつ、文字画
像編集中に格納フォントを変更可能なフォント記憶手段
と、 フォント記憶手段に格納されたフォントの属性を記憶す
るフォント管理情報記憶手段と、 文字発生に使用するフォントを指定するフォント指定情
報を入力する入力手段と、 入力手段によって入力されたフォント指定情報を記憶す
るフォント指定情報記憶手段と、 フォント管理情報記憶手段に格納されたフォントの属性
を参照し、フォント指定情報で指定されたフォントを選
択する選択手段と、 フォント記憶手段に格納されたフォントの変更を検出し
た場合、フォント記憶手段に記憶されたフォントの属性
を読み出し、フォント管理情報記憶手段に記憶されたフ
ォントの属性を更新する更新手段と、 更新されたフォント管理情報記憶手段のフォントの属性
を参照し、フォント指定情報記憶手段に記憶されている
フォント指定情報が指定するフォントを再選択する再選
択手段と、 を備えたことを特徴とするフォント管理装置。
1. A font management device for a character generator for generating a character based on a selected font, storing a plurality of sets of fonts, and capable of changing a storage font during editing of a character image. Font storage means; font management information storage means for storing font attributes stored in the font storage means; input means for inputting font specification information for specifying a font to be used for character generation; Font designation information storage means for storing font designation information; selection means for selecting a font designated by the font designation information by referring to font attributes stored in the font management information storage means; and font information stored in the font storage means. When the font change is detected, the font attribute stored in the font storage unit is read out, and the font is changed. Updating means for updating the font attributes stored in the font management information storage means, and specifying the font specification information stored in the font specification information storage means by referring to the updated font attributes in the font management information storage means. Reselection means for reselecting a font to be used.
JP62186455A 1987-07-23 1987-07-23 Font management device Expired - Lifetime JP2595978B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62186455A JP2595978B2 (en) 1987-07-23 1987-07-23 Font management device
US07/598,809 US5142613A (en) 1987-07-23 1990-10-17 Font managing apparatus for a character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62186455A JP2595978B2 (en) 1987-07-23 1987-07-23 Font management device

Publications (2)

Publication Number Publication Date
JPS6428687A JPS6428687A (en) 1989-01-31
JP2595978B2 true JP2595978B2 (en) 1997-04-02

Family

ID=16188760

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62186455A Expired - Lifetime JP2595978B2 (en) 1987-07-23 1987-07-23 Font management device

Country Status (1)

Country Link
JP (1) JP2595978B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100784497B1 (en) * 2004-10-06 2007-12-11 삼성전자주식회사 Film substrate of semiconductor package and manufacturing method thereof
JP4199817B1 (en) 2007-08-21 2008-12-24 株式会社コナミデジタルエンタテインメント Image generating apparatus, image generating method, and program

Also Published As

Publication number Publication date
JPS6428687A (en) 1989-01-31

Similar Documents

Publication Publication Date Title
KR0167617B1 (en) Printing control apparatus and method of the same
EP0423051A2 (en) Page printer on which plotter graphics are merged within a text
WO2000064674A1 (en) Method and apparatus for replacing or modifying a postscript built-in font in a printer
EP0777175B1 (en) Printer with code conversion tables
JPS62182795A (en) Data managing system for font cartridge
EP0571169A1 (en) Font pattern generation apparatus and method
JP2993276B2 (en) Printer
JP3962649B2 (en) Font downloading apparatus and method
US5732197A (en) Printing control apparatus
JP2595978B2 (en) Font management device
JPH06106810A (en) Method for forming image and its device
JP2913941B2 (en) Printer control device
JP3218088B2 (en) Printer
JPH09190313A (en) Printer control device and method therefor
JP3173716B2 (en) Output device, information processing system and data output method
JP4109755B2 (en) Printing device
JPH0293A (en) Font controller
JP2913942B2 (en) Printer control device
JP3473287B2 (en) Font management device
JPH0916355A (en) Information processor and storage medium for storing font down load managing program
JPH07325808A (en) Document processor and processing method therefor
JP2001216110A (en) Method for controlling cache, printing controller using the method, character processor, and its method
JP2000033730A (en) Printer, control thereof and printing system
JPH08282024A (en) Printing device
JPH04314559A (en) Printer

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080109

Year of fee payment: 11