JPH0659742B2 - Font pattern generator - Google Patents
Font pattern generatorInfo
- Publication number
- JPH0659742B2 JPH0659742B2 JP60118304A JP11830485A JPH0659742B2 JP H0659742 B2 JPH0659742 B2 JP H0659742B2 JP 60118304 A JP60118304 A JP 60118304A JP 11830485 A JP11830485 A JP 11830485A JP H0659742 B2 JPH0659742 B2 JP H0659742B2
- Authority
- JP
- Japan
- Prior art keywords
- sector
- character
- sector address
- font
- address
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K15/00—Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Dot-Matrix Printers And Others (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明はフォントパターン発生装置、特にプリンタ装置
における文字フォントパターン発生装置に関するもので
ある。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a font pattern generator, and more particularly to a character font pattern generator in a printer.
従来の技術 従来のフォントパターン発生装置としては、例えば特開
昭56−16178号公報に示されている。第6図はこ
の従来のフォントパターン発生装置の構成を示すブロッ
ク図である。1はフォントパターンが格納されている外
部記憶装置、2は外部記憶装置1から読み出したフォン
トパターンを一時格納するフォントパターンバッファ、
3は外部記憶装置1とフォントパターンバッファ2を制
御する制御部、4はフォントパターンバッファ2に該当
するパターンが存在するかどうかを判断する判断部であ
る。以上のように構成された従来のフォントパターン発
生装置に於いては、判断部4が文字コードを受け取る
と、その文字コードに対応するフォントパターンがフォ
ントパターンバッファ2に存在するかどうかを判断す
る。フォントパターンバッファ2に存在した場合はフォ
ントパターンバッファ2よりフォントパターンを読み出
す。存在しなかった場合は、外部記憶装置1より対応す
るフォントパターンが格納されているセクタをフォント
パターンバッファ2に読み出し、次に外部に読み出す。2. Description of the Related Art A conventional font pattern generator is disclosed, for example, in Japanese Patent Laid-Open No. 56-16178. FIG. 6 is a block diagram showing the configuration of this conventional font pattern generator. Reference numeral 1 is an external storage device in which font patterns are stored, 2 is a font pattern buffer for temporarily storing the font patterns read from the external storage device 1,
Reference numeral 3 is a control unit that controls the external storage device 1 and the font pattern buffer 2, and 4 is a determination unit that determines whether or not a corresponding pattern exists in the font pattern buffer 2. In the conventional font pattern generating device configured as described above, when the judging section 4 receives a character code, it judges whether or not the font pattern corresponding to the character code exists in the font pattern buffer 2. If it exists in the font pattern buffer 2, the font pattern is read from the font pattern buffer 2. If it does not exist, the sector in which the corresponding font pattern is stored is read from the external storage device 1 to the font pattern buffer 2 and then to the outside.
発明が解決しようとする問題点 しかしながら上記のような構成では、以下の様な欠点を
有していた。Problems to be Solved by the Invention However, the above-mentioned configuration has the following drawbacks.
(1)フォントパターンバッファ2にバッファリングされ
るパターンに限度があり、読み出す文字種が多くなると
外部記憶装置1とのアクセス回数が増加する。(1) There is a limit to the patterns that can be buffered in the font pattern buffer 2, and when the number of character types to be read increases, the number of accesses to the external storage device 1 increases.
(2)外部記憶装置1がフロッピーディスク装置等の場合
には、アクセスの方法によっては物理的な制限によるア
クセス時間(例えば、目的セクタへのヘッドシーク時
間)が増加する。(2) When the external storage device 1 is a floppy disk device or the like, the access time (for example, head seek time to the target sector) increases due to physical restrictions depending on the access method.
(3)例えば同時に多国語のフォントパターンを用いる場
合等には、フォントパターンの物理的な格納位置が極め
て離れている事があり、上記(2)の点がより問題とな
る。(3) For example, when multilingual font patterns are used at the same time, the physical storage positions of the font patterns may be extremely distant from each other, and the above point (2) becomes more problematic.
問題点を解決するための手段 本発明はコード変換回路と、フォントグループ開始アド
レス変換回路と、加算器と、比較部と、ソート部と、切
り出し処理部を備えたフォントパターン発生装置であ
る。Means for Solving the Problems The present invention is a font pattern generation device including a code conversion circuit, a font group start address conversion circuit, an adder, a comparison unit, a sorting unit, and a cutout processing unit.
作用 本発明は前記した構成により、多種多様なフォントパタ
ーンが必要とされる場合に、コード変換回路と、フォン
トグループ開始アドレス変換回路により物理セクタアド
レスを生成し、ソートする。次に切り出し処理部にて決
定された複数セクタのフォントパターンを一度に読み込
む事により、ディスクのアクセス回数及び、物理的な動
作に起因するアクセス時間を減少させることが出来る。With the above-described configuration, the present invention generates and sorts physical sector addresses by the code conversion circuit and the font group start address conversion circuit when a wide variety of font patterns are required. Next, by reading the font patterns of a plurality of sectors determined by the cut-out processing unit at one time, it is possible to reduce the number of disk accesses and the access time due to physical operation.
実施例 第1図は本発明の一実施例のブロック図を示すものであ
る。外部記憶装置1には、サイズ,字体,字種毎にグル
ープ化されたフォントパターンが格納されている。作業
用バッファ8はセクタアドレス部と、セクタ内文字番号
(セクタ内で何個目のパターンかを示す番号)部と、格
納順序部に分かれている。格納順序部には予め0,1,
2……と番号が格納されている。コード変換回路5は文
字コード列aと文字サイズ選択信号bをセクタ番号50
1とセクタ内文字番号502に変換する。フォントグル
ープ開始アドレス変換回路6は、文字サイズ選択信号
b、字体選択信号c、字種選択信号dを与える事によ
り、その組み合わせに対応するフォントグループの開始
セクタアドレス601を出力する。加算器7は、フォン
トグループ開始アドレス601とセクタ番号501を加
算し、文字コードに対応する文字フォントパターンの格
納されているセクタアドレス701を出力する。文字コ
ードは順次セクタアドレス701とセクタ内文字番号5
02に変換され、作業用バッファ8に格納される。不良
セクタテーブル10には外部記憶装置1の不良セクタア
ドレスと、その代替セクタアドレスが対になって格納さ
れている。比較部11は作業用バッファ8のデータ80
1のうち、セクタアドレスを不良セクタテーブル12の
不良セクタアドレスと逐一比較し、一致する場合は対の
代替セクタアドレスと入れ替える。ソース部12は、作
業用バッファ8のデータのうちセクタアドレスをキーと
してソートし、再び作業用バッファ8に格納し直す。切
り出し処理部14は作業用バッファ8を探索し、定めら
れた読み出しセクタ数以内で読み出し開始セクタアドレ
スとセクタ数を決定し、外部記憶装置制御部13に送出
する。外部記憶装置1は、外部記憶装置制御部13によ
り指定されたセクタアドレスから指定されたセクタ数分
のフォントパターンデータをフォントパターンバッファ
16に読み込む。転送制御部15は、作業用バッファ1
3のデータのうちセクタ内番号部と格納順序部の情報を
基にフォントパターンバッファ16の必要なフォントパ
ターンのみを指定されたメモリ領域に転送する。Embodiment FIG. 1 shows a block diagram of an embodiment of the present invention. The external storage device 1 stores font patterns grouped by size, font, and character type. The work buffer 8 is divided into a sector address part, a character number in the sector (a number indicating the number of pattern in the sector) part, and a storage order part. The storage order section contains 0, 1,
2 ... and the number are stored. The code conversion circuit 5 sends the character code string a and the character size selection signal b to the sector number 50.
1 and the sector character number 502. The font group start address conversion circuit 6 outputs the start sector address 601 of the font group corresponding to the combination by applying the character size selection signal b, the font style selection signal c, and the character type selection signal d. The adder 7 adds the font group start address 601 and the sector number 501, and outputs the sector address 701 in which the character font pattern corresponding to the character code is stored. The character code is the sector address 701 and the sector character number 5 in order.
It is converted to 02 and stored in the work buffer 8. The defective sector table 10 stores the defective sector address of the external storage device 1 and its alternative sector address in pairs. The comparison unit 11 uses the data 80 of the work buffer 8.
The sector address of 1 is compared with the defective sector address of the defective sector table 12 one by one, and if they match each other, they are replaced with a pair of alternative sector addresses. The source unit 12 sorts the data in the work buffer 8 using the sector address as a key, and stores it again in the work buffer 8. The cut-out processing unit 14 searches the work buffer 8, determines the read start sector address and the number of sectors within the determined number of read sectors, and sends them to the external storage device control unit 13. The external storage device 1 reads into the font pattern buffer 16 font pattern data for a specified number of sectors from the sector address specified by the external storage device control unit 13. The transfer control unit 15 uses the work buffer 1
Of the data of No. 3, only the necessary font pattern of the font pattern buffer 16 is transferred to the designated memory area based on the information of the sector number part and the storage order part.
以上の様に構成された本実施例のフォントパターン発生
装置について、以下その動作を説明する。文字コード
a、文字サイズ選択信号bは、コード変換回路5にてセ
クタ番号501とセクタ内文字番号502に変換され
る。セクタ内文字番号502は作業用バッファ8のセク
タ内番号部に格納する。フォントグループ開始アドレス
選択回路6は、文字サイズ選択信号b、字体選択信号
c、字種選択信号dを、各サイズ,字体,字種毎にグル
ープ化されたフォントパターンの開始セクタアドレスに
変換する。加算器7は、セクタ番号501と開始セクタ
アドレス601を加算し、そのフォントパターンが含ま
れているセクタアドレスを算出し、作業用バッファ8の
セクタアドレス部に格納する。前記手順に従って、複数
個の文字コードが1つずつセクタ番号501とセクタ内
文字番号502に変換され、作業用バッファ8に格納さ
れていく。第2図aはこの状態を示したもので、第2図
のイはセクタアドレス部、ロはセクタ内文字番号部、ハ
は格納順序部である。不良セクタテーブル10は第3図
に示す様に、不良セクタアドレスと代替セクタアドレス
が対になって格納されている。第3図でニは不良セクタ
部、ホは代替セクタア部である。比較部9は、作業用バ
ッファ8のセクタアドレス部と不良セクタテーブル10
の不良セクタアドレス部を1要素ずつ比較し、一致する
かどうかを調べる。第3図で例をとるとセクタアドレス
5713が不良セクタとして登録されており、第2図a
の4番目の要素と一致するので、その代替セクタアドレ
ス5722と入れ替える。この結果を第2図bに示す。
ソート部11は作業用バッファ8のセクタアドレス部を
キーとして例えば昇順にソートする。この結果を第2図
cに示す。切り出し処理部12は作業用バッファ8のセ
クタアドレス部を参照し、読み出すセクタアドレスとセ
クタ数を決定し、外部記憶装置制御部13に送出する。
ここでは、例えばセクタアドレス1609から21セク
タ即ち1619セクタまで読み込むものとする。外部記
憶装置制御部13は外部記憶装置1より該当するセクタ
を読み出し、フォントパターンバッファ14に格納す
る。第4図にこの結果を示す。転送制御部15は作業用
バッファ8のセクタ内番号部と格納順序部の情報を基に
して、指定されたメモリ領域に必要とするフォントパタ
ーンを転送する。第2図cにおいてはセクタアドレス1
609、セクタ内文字番号0のフォントパターンを1番
目の格納位置に転送し、セクタアドレス1618、セク
タ内文字番号2のフォントパターンを5番目の格納位置
に転送する。第5図にこの結果を示す。以上の手順を全
てのフォントパターンを外部記憶装置1より読み出し、
転送し終わるまで繰り返す。The operation of the font pattern generating device of this embodiment having the above-described configuration will be described below. The character code a and the character size selection signal b are converted by the code conversion circuit 5 into a sector number 501 and a sector character number 502. The in-sector character number 502 is stored in the in-sector number part of the work buffer 8. The font group start address selection circuit 6 converts the character size selection signal b, the character style selection signal c, and the character type selection signal d into the starting sector address of the font pattern grouped for each size, character style, and character type. The adder 7 adds the sector number 501 and the start sector address 601 to calculate the sector address including the font pattern, and stores it in the sector address portion of the working buffer 8. According to the above procedure, a plurality of character codes are converted into a sector number 501 and a sector character number 502 one by one and stored in the work buffer 8. FIG. 2a shows this state. In FIG. 2, a is a sector address part, b is a character number part within a sector, and c is a storage order part. As shown in FIG. 3, the defective sector table 10 stores defective sector addresses and alternative sector addresses in pairs. In FIG. 3, D is a defective sector part and E is a substitute sector part. The comparison unit 9 includes a sector address section of the working buffer 8 and a defective sector table 10.
The defective sector address areas of are compared element by element to check if they match. Taking the example in FIG. 3, the sector address 5713 is registered as a defective sector.
Since it coincides with the fourth element of, the replacement sector address 5722 is replaced. The results are shown in Figure 2b.
The sorting unit 11 sorts, for example, in ascending order using the sector address portion of the work buffer 8 as a key. The results are shown in Figure 2c. The cut-out processing section 12 refers to the sector address section of the work buffer 8, determines the sector address and the number of sectors to be read, and sends them to the external storage device control section 13.
Here, for example, it is assumed that the sector addresses 1609 to 21 sectors, that is, 1619 sectors are read. The external storage device controller 13 reads the corresponding sector from the external storage device 1 and stores it in the font pattern buffer 14. This result is shown in FIG. The transfer control unit 15 transfers the required font pattern to the designated memory area based on the information of the in-sector number section and the storage order section of the work buffer 8. In FIG. 2c, sector address 1
609, the font pattern with the character number 0 in the sector is transferred to the first storage position, and the font pattern with the sector address 1618 and the character number 2 in the sector is transferred to the fifth storage position. This result is shown in FIG. According to the above procedure, all font patterns are read from the external storage device 1,
Repeat until the transfer is complete.
発明の効果 以上説明した様に本発明によれば、多様な文字サイズ,
多種の字体,多様な字種のフォントパターンを読み出す
様な場合でも、物理的なアクセス回数、アクセス時間が
減少する。そのため、希望するフォントパターンを高速
に得る事ができ、その実用的効果は大きい。As described above, according to the present invention, various character sizes,
Even when reading out various fonts and font patterns of various character types, the number of physical accesses and access time are reduced. Therefore, a desired font pattern can be obtained at high speed, and its practical effect is great.
第1図は本発明における一実施例のフォントパターン発
生装置のブロック図、第2図は同実施例の作業用バッフ
ァの変化を示す図、第3図は不良セクタテーブルの内容
の一例を示す図、第4図は1回のアクセスでフォントパ
ターンバッファに読み込まれたデータの様子を示す図、
第5図は指定されたメモリ領域に必要なフォントパター
ンデータだけが転送された様子を示す図、第6図は従来
のフォントパターン発生装置のブロック図である。 5……コード変換部、6……フォントグループ開始アド
レス変換回路、7……加算器、8……作業用バッファ、
9……比較部、10……不良セクタテーブル、11……
ソート部、12……切り出し処理部、15……転送制御
部。FIG. 1 is a block diagram of a font pattern generator according to an embodiment of the present invention, FIG. 2 is a diagram showing changes in a working buffer of the embodiment, and FIG. 3 is a diagram showing an example of contents of a bad sector table. , FIG. 4 is a diagram showing a state of data read into the font pattern buffer by one access,
FIG. 5 is a diagram showing a state where only necessary font pattern data is transferred to a designated memory area, and FIG. 6 is a block diagram of a conventional font pattern generator. 5 ... Code conversion unit, 6 ... Font group start address conversion circuit, 7 ... Adder, 8 ... Work buffer,
9 ... Comparison section, 10 ... Bad sector table, 11 ...
Sorting unit, 12 ... Cutout processing unit, 15 ... Transfer control unit.
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/26 8121−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Office reference number FI technical display location G09G 5/26 8121-5G
Claims (1)
装置と、文字コードと文字サイズ選択信号を与えること
により、対応するセクタ番号とセクタ内文字番号を出力
するコード変換回路と、字種選択信号,字体選択信号,
文字サイズ選択信号により、対応するグループのフォン
トパターンが格納されている開始セクタアドレスを出力
するフォントグループ開始アドレス変換回路と、前記セ
クタ番号と前記開始セクタアドレスを加算しセクタアド
レスを算出する加算器と、前記セクタアドレスと前記セ
クタ内文字番号を格納する作業用バッファと、前記外部
記憶装置の不良セクタアドレスと代替セクタアドレスを
保持する不良セクタテーブルと、前記作業用バッファに
格納されているセクタアドレスと前記不良セクタテーブ
ルに格納されている不良セクタアドレスを比較し、一致
した不良セクタアドレスを代替セクタアドレスに置き換
える比較部と、前記作業用バッファに格納されているセ
クタアドレスをキーとしてソートするソート部と、前記
作業用バッファより読み出し開始セクタアドレスと、セ
クタ数を切り出す切り出し処理部と、前記切り出し処理
部より信号をうけて前記外部記憶装置を制御する外部記
録制御部よりなるフォントパターン発生装置。1. An external storage device for storing a character font pattern, a code conversion circuit for outputting a corresponding sector number and a character number within a sector by giving a character code and a character size selection signal, and a character type selection signal, Font selection signal,
A font group start address conversion circuit that outputs a start sector address in which a font pattern of a corresponding group is stored according to a character size selection signal; and an adder that calculates the sector address by adding the sector number and the start sector address. A work buffer for storing the sector address and the character number in the sector; a bad sector table for holding a bad sector address and an alternate sector address of the external storage device; and a sector address stored in the work buffer. A comparing unit that compares the defective sector addresses stored in the defective sector table and replaces the matched defective sector address with an alternative sector address; and a sorting unit that sorts using the sector address stored in the working buffer as a key. , The working buffer Read the start sector address, and the clipping processing unit for cutting the number of sectors, the clipping processing unit font pattern generating device having the external recording control unit that controls the external storage device in response to the signal from.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60118304A JPH0659742B2 (en) | 1985-05-31 | 1985-05-31 | Font pattern generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60118304A JPH0659742B2 (en) | 1985-05-31 | 1985-05-31 | Font pattern generator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61274956A JPS61274956A (en) | 1986-12-05 |
| JPH0659742B2 true JPH0659742B2 (en) | 1994-08-10 |
Family
ID=14733366
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60118304A Expired - Lifetime JPH0659742B2 (en) | 1985-05-31 | 1985-05-31 | Font pattern generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0659742B2 (en) |
-
1985
- 1985-05-31 JP JP60118304A patent/JPH0659742B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61274956A (en) | 1986-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH074952B2 (en) | Printer controller | |
| JPH0659742B2 (en) | Font pattern generator | |
| JPH02280195A (en) | Character processing device and method | |
| JPS5831443A (en) | Printer | |
| JPS62255993A (en) | Image output unit | |
| JP2786061B2 (en) | Control device for disk storage device | |
| JPS6246874B2 (en) | ||
| JP3847836B2 (en) | Character string search method and apparatus | |
| JPS61249772A (en) | character pattern generator | |
| JPS63202476A (en) | document output device | |
| JP2916274B2 (en) | Extended pattern processing method for printer | |
| JP2566652B2 (en) | Dot line recorder | |
| JPH0394325A (en) | data processing equipment | |
| JP3054157B2 (en) | Character processing device and character processing method | |
| JPS6095653A (en) | Zone generating circuit | |
| JPH051491B2 (en) | ||
| JPS62135883A (en) | character pattern generator | |
| JPH0486276A (en) | Font information storage system | |
| JPS61179751A (en) | pattern conversion device | |
| JPH04141464A (en) | Printer | |
| JPS62293289A (en) | Character pattern generation circuit | |
| JPS59142591A (en) | Generation of character pattern | |
| JPS59191649A (en) | Program production system | |
| JPS6163891A (en) | Format rotation method | |
| JPS63199647A (en) | document output device |