JPH03126992A - Font controller - Google Patents

Font controller

Info

Publication number
JPH03126992A
JPH03126992A JP1265099A JP26509989A JPH03126992A JP H03126992 A JPH03126992 A JP H03126992A JP 1265099 A JP1265099 A JP 1265099A JP 26509989 A JP26509989 A JP 26509989A JP H03126992 A JPH03126992 A JP H03126992A
Authority
JP
Japan
Prior art keywords
dot pattern
pattern data
section
font
data
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
JP1265099A
Other languages
Japanese (ja)
Inventor
Shuji Ayukawa
鮎川 修二
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1265099A priority Critical patent/JPH03126992A/en
Publication of JPH03126992A publication Critical patent/JPH03126992A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the degradation in throughput by providing a dot pattern data memory section which allows the reading and writing of the dot pattern data with which development ends and using the developed dot pattern data when this data is stored. CONSTITUTION:A font section 2 stores the font consisting of the compressed data of the dot pattern data of a prescribed typeface and a control section 3 reads out the stored and compressed data in the section 2, subjects the data to development processing, and sends the data to a purpose section 1. The dot pattern data storage section 4 stores the dot pattern data subjected to the development processing by the control section 3. The character code sent from a host device is decided and the corresponding compressed data is read out of the font section 2. The display control or printing control of the purpose section 1 is executed in accordance with the dot pattern data stored in the dot pattern data storage section 4 by the control section 3 when the corresponding compressed data is already developed. The degradation in the throughput of the font consisting of the compressed data is prevented in this way.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ドツトマトリクスのフォントで表示又は印刷
する装置のフォントデータの制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a font data control device for a device that displays or prints in a dot matrix font.

(従来の技術) 一般に、コンピュータで使用されるデイスプレィやプリ
ンタに、表示又は印刷される文字には、各種の書体の文
字がある。例えば、明朝体の文字や拡大文字や斜体化さ
れた文字等である。ここに、同一の書体の文字の−揃い
は、フォントと呼ばれている。一般に、文字は、マトリ
クス状に配列したドツト、即ちドツトマトリクスにより
表示又は印刷される。
(Prior Art) Generally, characters displayed or printed on a display or printer used in a computer include characters in various fonts. For example, the characters are Mincho type characters, enlarged characters, italicized characters, etc. Here, a set of characters in the same typeface is called a font. Generally, characters are displayed or printed by dots arranged in a matrix, ie, a dot matrix.

従来、ドツトマトリクスのフォントを使用して、表示又
は印刷するデイスプレィやプリンタ等の装置は、必要と
するフォントの数及び種類が少ない。従って、フォント
のドツトパターンデータをそれぞれそのまま装置に持た
せても問題は少なかった。しかしながら、近年では、ユ
ーザによって要求されるフォントの数や種類が飛躍的に
増加してきている。しかも、フォント自体の見易さが求
められるようになり、ドツトを細密化した高品位のフォ
ントもある。このような高品位のフォントは、大量のデ
ータが必要となり、そのための記憶装置の大容量化が要
求されるようになっている。このため、必要とするフォ
ントのドツトパターンデータなそのままの形で持つこと
が困難な場合、ある一定のアルゴリズムに従い、各文字
のドツトパターンデータを圧縮した圧縮データとして持
ち、必要な場合、一定のアルゴリズムに従い、ドツトパ
ターンデータへの展開を行なってからデイスプレィやプ
リンタへの表示や印刷を行なうようにしている。
Conventionally, devices such as displays and printers that display or print using dot matrix fonts require a small number and types of fonts. Therefore, there are few problems even if the dot pattern data of each font is stored in the device as is. However, in recent years, the number and types of fonts requested by users have increased dramatically. Moreover, as fonts themselves are required to be easy to read, there are also high-quality fonts with finer dots. Such high-quality fonts require a large amount of data, which requires a storage device with a large capacity. Therefore, if it is difficult to have the dot pattern data of the required font in its original form, the dot pattern data of each character can be stored as compressed data according to a certain algorithm. Accordingly, the data is developed into dot pattern data before being displayed on a display or printer or printed.

第2図は、従来のフォント制御装置の構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing the configuration of a conventional font control device.

図示の装置は、目的部1と、フォント部2と、制御部3
とから成る。
The illustrated device includes an object section 1, a font section 2, and a control section 3.
It consists of

目的部1は、表示部又は印刷部から成る。表示部の場合
は、CRT等から成るデイスプレィにより構成される。
The objective section 1 consists of a display section or a printing section. In the case of the display unit, it is constituted by a display such as a CRT.

制御部の場合は、例えばワイヤドツト式プリンタ等によ
り構成される。
In the case of the control section, it is constituted by, for example, a wire dot type printer.

フォント部2は、ROM (リード・オンリ・メモリ)
等から成り、所定の書体のドツトパターンの圧縮データ
から成るフォントを格納している。
Font section 2 is ROM (read only memory)
etc., and stores fonts consisting of compressed data of dot patterns of predetermined fonts.

制御部3は、フォント部2に格納された圧縮データを読
み出して展開処理し、目的部1へ送るものである。
The control section 3 reads the compressed data stored in the font section 2, decompresses it, and sends it to the destination section 1.

次に、上述した装置の動作を説明する。Next, the operation of the above-described device will be explained.

第3図は、従来の装置の処理手順を説明するフローチャ
ートである。
FIG. 3 is a flowchart illustrating the processing procedure of a conventional device.

まず、ステップS31では、上位装置から送られた文字
コードを判定する処理を行ない、該当する圧縮データを
フォント部2から読み出す。次に、ステップS32では
、圧縮データが、制御部3により展開処理され、ドツト
パターンデータとして目的部1に送られる。ステップS
33では、制御部3により、このドツトパターンデータ
に基づいて目的部lの表示制御又は印刷制御が行なわれ
る。
First, in step S31, a process is performed to determine the character code sent from the host device, and the corresponding compressed data is read from the font unit 2. Next, in step S32, the compressed data is expanded by the control section 3 and sent to the destination section 1 as dot pattern data. Step S
At step 33, the control section 3 performs display control or printing control of the target section 1 based on this dot pattern data.

ドツトパターンデータを圧縮する具体的な方法としては
、次のようなものがある。
Specific methods for compressing dot pattern data include the following.

まず、文字を構成するドツトマトリクスを複数の部分マ
トリクスに分割する。また、各部分マトリクス毎に隣の
部分マトリクスとドツトパターンの異同を比較する。そ
して、ドツトパターンの異同を区別するセパレータピッ
トを各部分マトリクス単位で記憶する。部分マトリクス
のドツトパターンが隣の部分マトリクスのドツトパター
ンと同じときには、セパレータピットにその旨を表示し
、当該ドツトパターンデータは、削除する(例えば、特
公昭57−27477号公報参照)。
First, a dot matrix that constitutes a character is divided into multiple partial matrices. Also, each partial matrix is compared with the adjacent partial matrix for differences in dot patterns. Then, separator pits for distinguishing between different dot patterns are stored for each partial matrix. When the dot pattern of a partial matrix is the same as the dot pattern of the adjacent partial matrix, this fact is displayed on the separator pit, and the dot pattern data is deleted (see, for example, Japanese Patent Publication No. 57-27477).

展開処理のときは、部分マトリクス毎にセパレータピッ
トを参照して、ドツトパターンデータの省略が行なわれ
ているときは、隣の部分マトリクスのドツトパターンデ
ータを複写するようにする。
During expansion processing, the separator pits are referred to for each partial matrix, and if dot pattern data is omitted, the dot pattern data of the adjacent partial matrix is copied.

(発明が解決しようとする課題) しかしながら、上述した従来の装置には、次のような問
題点があった。
(Problems to be Solved by the Invention) However, the conventional device described above has the following problems.

即ち、印刷の都度、圧縮データをドツトパターンデータ
に展開する必要があり、同じ文字が多数回出現する場合
は、全く同じ展開処理を繰り返さなければならなかった
。また、一般に、圧縮度が高まるほど、圧縮及び展開の
アルゴリズムは、複雑になる。従って、展開処理の時間
がかかり、装置全体のスルーブツトが低下するという問
題があった。
That is, it is necessary to expand compressed data into dot pattern data each time printing is performed, and if the same character appears many times, the exact same expansion process must be repeated. Additionally, in general, the higher the degree of compression, the more complex the compression and decompression algorithms. Therefore, there is a problem in that the expansion process takes time and the throughput of the entire device decreases.

本発明は以上の点に着目してなされたもので、圧縮デー
タから成るフォントのスルーブツトの低下を防ぎ、装置
全体のスルーブツトの向上が図られるようにしたフォン
ト制御装置を提供することを目的とするものである。
The present invention has been made with attention to the above points, and an object of the present invention is to provide a font control device that prevents a decrease in the throughput of a font made of compressed data and improves the throughput of the entire device. It is something.

(課題を解決するための手段) 本発明のフォント制御装置は、表示又は印刷する文字を
表わすドツトパターンデータを圧縮した圧縮データから
成るフォントを使用し、当該フォントの圧縮データをド
ツトパターンデータに展開する展開処理を行なうものに
おいて、展開処理の終了したドツトパターンデータを読
み書きできるドツトパターンデータ記憶部を設け、印刷
時に、当該ドツトパターンデータ記憶部に所望の文字を
表わすドツトパターンデータが記憶されているか否かを
判断し、所望の文字を表わすドツトパターンデータが記
憶されているときは、当該ドツトパターンデータ記憶部
から該当するドツトパターンデータを読出して表示又は
印刷することを特徴とするものである。
(Means for Solving the Problems) The font control device of the present invention uses a font consisting of compressed data obtained by compressing dot pattern data representing characters to be displayed or printed, and develops the compressed data of the font into dot pattern data. A dot pattern data storage unit that can read and write the dot pattern data after the expansion process is provided, and at the time of printing, whether the dot pattern data representing the desired character is stored in the dot pattern data storage unit. If the dot pattern data representing the desired character is stored, the corresponding dot pattern data is read out from the dot pattern data storage section and displayed or printed.

(作用) 上述した装置においては、文字の印刷の際に当該文字デ
ータに対応する圧縮データをドツトパターンデータに展
開したときは、展開処理の終了したドツトパターンデー
タがドツトパターンデータ記憶部に格納される。
(Function) In the above-mentioned apparatus, when compressed data corresponding to character data is expanded into dot pattern data when printing characters, the dot pattern data that has been expanded is stored in the dot pattern data storage section. Ru.

そして、次の印刷の際は、ドツトパターンデータ記憶部
に所望の文字を表わすドツトパターンデータが記憶され
ているときは、このドツトパターンデータが読み出され
る。従って、圧縮データをドツトパターンデータに展開
する処理を省くことができ、装置全体のスルーブツトの
向上を図ることかできる。
Then, during the next printing, if dot pattern data representing a desired character is stored in the dot pattern data storage section, this dot pattern data is read out. Therefore, the process of expanding compressed data into dot pattern data can be omitted, and the throughput of the entire apparatus can be improved.

(実施例) 第1図は、本発明のフォント制御装置の構成を示すブロ
ック図である。
(Embodiment) FIG. 1 is a block diagram showing the configuration of a font control device of the present invention.

図示の装置は、目的部1と、フォント部2と、制御部3
と、ドツトパターンデータ記憶部4とから成る。
The illustrated device includes an object section 1, a font section 2, and a control section 3.
and a dot pattern data storage section 4.

目的部lは、従来と同様に、表示部又は印刷部から成る
。表示部の場合は、CRT等から成るデイスプレィによ
り構成される。制御部の場合は、例えばワイヤドツト式
プリンタ等により構成される。
The objective section 1 consists of a display section or a printing section, as in the conventional case. In the case of the display unit, it is constituted by a display such as a CRT. In the case of the control section, it is constituted by, for example, a wire dot type printer.

フォント部2は、従来と同様に、ROM (リード・オ
ンリ・メモリ)等から戊り、所定の書体のドツトパター
ンの圧縮データから成るフォントを格納している。
As in the past, the font unit 2 stores a font that is extracted from a ROM (read only memory) or the like and is composed of compressed data of a dot pattern of a predetermined font.

制御部3は、フォント部2に格納された圧縮データを読
み出して展開処理し、目的部1へ送るものである。また
、制御部3は、ドツトパターンデータ記憶部4の読み出
し及び書き込みの制御も行なう。
The control section 3 reads the compressed data stored in the font section 2, decompresses it, and sends it to the destination section 1. The control section 3 also controls reading and writing of the dot pattern data storage section 4.

ドツトパターンデータ記憶部4は、RAM (ランダム
・アクセス・メモリ)等から成り、制御部3により展開
処理されたドツトパターンデータな記憶する。
The dot pattern data storage section 4 is comprised of a RAM (random access memory), etc., and stores dot pattern data developed by the control section 3.

次に、上述した装置の動作を説明する。Next, the operation of the above-described device will be explained.

第4図は、本発明の装置の処理手順を説明するフローチ
ャートである。
FIG. 4 is a flowchart illustrating the processing procedure of the apparatus of the present invention.

まず、ステップS41では、上位装置から送られた文字
コードを判定する処理を行ない、該当する圧縮データを
フォント部2から読み出す。次に、ステップS42では
、該当する圧縮データが展開源か否かを判定する。この
答が肯定(Yes)のときは、ステップS43〜S45
の処理は飛ばして、ステップS46に進み、制御部3に
より、ドツトパターンデータ記憶部4に記憶されたドツ
トパターンデータに基づいて目的部lの表示制御又は印
刷制御が行なわれる。
First, in step S41, a process is performed to determine the character code sent from the host device, and the corresponding compressed data is read out from the font section 2. Next, in step S42, it is determined whether the corresponding compressed data is the expansion source. If this answer is affirmative (Yes), steps S43 to S45
Skipping this process, the process proceeds to step S46, where the control section 3 performs display control or printing control of the target section 1 based on the dot pattern data stored in the dot pattern data storage section 4.

ステップS42の答が否定(No)のときは、ステップ
S43で、圧縮データが、制御部3により展開処理され
、ドツトパターンデータが作成される。そして、次のス
テップS44では、展開されたドツトパターンデータな
記憶部4に記憶するか否かが判断される。この判断の方
法としては、例えば、記憶部4が満杯か否かを判断し、
満杯でない限り、記憶を行なうようにする方法がある。
When the answer to step S42 is negative (No), the compressed data is expanded by the control unit 3 in step S43, and dot pattern data is created. Then, in the next step S44, it is determined whether or not the expanded dot pattern data is to be stored in the storage section 4. As a method for this determination, for example, it is determined whether the storage section 4 is full or not;
There is a way to make it remember as long as it is not full.

この方法によれば、印字の開始から出現した一定数のド
ツトパターンデータが格納される。
According to this method, a certain number of dot pattern data that have appeared since the start of printing are stored.

ステップS44の判別結果が肯定(Yes)のときは、
次のステップS45で展開されたドツトパターンデータ
をドツトパターンデータ記憶部4に記憶する。一方、ス
テップS44の判別結果が否定(No)のときは、この
ような記憶を行なわずにステップS46に進む。
When the determination result in step S44 is affirmative (Yes),
In the next step S45, the developed dot pattern data is stored in the dot pattern data storage section 4. On the other hand, when the determination result in step S44 is negative (No), the process proceeds to step S46 without performing such storage.

ステップS46では、制御部3により、ドツトパターン
データ記憶部4から読み出されたドツトパターンデータ
又はステップ343で展開処理されたドツトパターンデ
ータに基づいて目的部1の表示制御又は印刷制御が行な
われる。
In step S46, the control section 3 performs display control or printing control on the target section 1 based on the dot pattern data read from the dot pattern data storage section 4 or the dot pattern data expanded in step 343.

以上のようにして、ドツトパターンデータ記憶部4を設
けることにより、展開処理の終了したドツトパターンデ
ータを保存するようにして、展開処理の回数を減らし、
装置全体のスルーブツトの向上を図ることが可能となる
As described above, by providing the dot pattern data storage section 4, the dot pattern data that has been expanded is saved, thereby reducing the number of times that the expansion process is performed.
It becomes possible to improve the throughput of the entire device.

尚、本発明は、上述した実施例に限定されるものではな
い。
Note that the present invention is not limited to the embodiments described above.

例えば、第4図のステップS44における展開されたド
ツトパターンデータを記憶するか否かの判断の例として
、初めから一定量のドツトパターンデータを記憶する例
を挙げたが、これに限らず、常に、新しく出現した文字
のドツトパターンデータを記憶するようにしてもよい。
For example, as an example of determining whether or not to store the developed dot pattern data in step S44 in FIG. , dot pattern data of newly appearing characters may be stored.

また、各文字が出現した回数を各文字ごとに記憶してお
き、この回数が多い文字に対し高いプライオリティを与
え、プライオリティの高い文字のドツトパターンデータ
な一定量記憶するようにしてもよい。このように、記憶
するドツトパターンデータの選択が必要となるのは、ド
ツトパターンデータ記憶部4の容量に制限があるからで
あるが、いずれの選択方法を採るにしても、装置が持っ
ているフォントデータ数に対し、実際に使用される文字
の種類はそれほど多くない場合が多いので、本発明によ
る効果が非常に大きいことが期待できる。
Alternatively, the number of times each character has appeared may be stored for each character, and characters with a higher number of occurrences may be given higher priority, and a certain amount of dot pattern data of the higher priority characters may be stored. The reason why it is necessary to select the dot pattern data to be stored is that the capacity of the dot pattern data storage section 4 is limited. Since the number of types of characters actually used is often not that large compared to the number of font data, the present invention can be expected to have a very large effect.

(発明の効果) 以上説明したように、本発明のフォント制御装置によれ
ば、展開の終了したドツトパターンデータの読み書きが
可能なドツトパターンデータ記憶部を設けることにより
、このドツトパターンデータ記憶部に展開済のドツトパ
ターンデータが記憶されているときは、当該記憶部に記
憶されたドツトパターンデータを使用するようにしたの
で、次のような効果がある。
(Effects of the Invention) As explained above, according to the font control device of the present invention, by providing a dot pattern data storage unit that can read and write dot pattern data that has been expanded, the dot pattern data storage unit can When developed dot pattern data is stored, the dot pattern data stored in the storage section is used, so that the following effects can be obtained.

即ち、圧縮されたフォントデータな使用する装置のスル
ーブツトの低下を最小限にすることができる。また、ス
ルーブツトを高く維持することが要求されているために
、圧縮データから成るフォントが使用できず、大容量の
フォントデータを使用していた装置においても、小容量
の圧縮フォントの使用が可能となる。
That is, it is possible to minimize the reduction in throughput of the device using the compressed font data. Additionally, because it is required to maintain high throughput, fonts made of compressed data cannot be used, and even devices that used large amounts of font data can now use small-sized compressed fonts. Become.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のフォント制御装置の構成を示すブロッ
ク図、第2図は従来のフォント制御装置の構成を示すブ
ロック図、第3図は従来の装置の処理手順を示すフロー
チャート、第4図は本発明の装置の処理手順を示すフロ
ーチャートである。 1・・・目的部、2・・・フォント部、3・・・制御部
、4・・・ドツトパターンデータ記憶部。
FIG. 1 is a block diagram showing the configuration of the font control device of the present invention, FIG. 2 is a block diagram showing the configuration of a conventional font control device, FIG. 3 is a flowchart showing the processing procedure of the conventional device, and FIG. 4 is a flowchart showing the processing procedure of the apparatus of the present invention. DESCRIPTION OF SYMBOLS 1...Object part, 2... Font part, 3... Control part, 4... Dot pattern data storage part.

Claims (1)

【特許請求の範囲】  表示又は印刷する文字を表わすドットパターンデータ
を圧縮した圧縮データから成るフォントを使用し、当該
フォントの圧縮データをドットパターンデータに展開す
る展開処理を行なうものにおいて、 展開処理の終了したドットパターンデータを読み書きで
きるドットパターンデータ記憶部を設け、 印刷時に、当該ドットパターンデータ記憶部に所望の文
字を表わすドットパターンデータが記憶されているか否
かを判断し、 所望の文字を表わすドットパターンデータが記憶されて
いるときは、当該ドットパターンデータ記憶部から該当
するドットパターンデータを読出して表示又は印刷する
ことを特徴とするフォント制御装置。
[Scope of Claims] A font that uses a font consisting of compressed data obtained by compressing dot pattern data representing characters to be displayed or printed, and performs a decompression process of decompressing the compressed data of the font into dot pattern data, A dot pattern data storage unit that can read and write completed dot pattern data is provided, and when printing, it is determined whether dot pattern data representing a desired character is stored in the dot pattern data storage unit, and the desired character is represented. A font control device characterized in that when dot pattern data is stored, the corresponding dot pattern data is read out from the dot pattern data storage section and displayed or printed.
JP1265099A 1989-10-13 1989-10-13 Font controller Pending JPH03126992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1265099A JPH03126992A (en) 1989-10-13 1989-10-13 Font controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1265099A JPH03126992A (en) 1989-10-13 1989-10-13 Font controller

Publications (1)

Publication Number Publication Date
JPH03126992A true JPH03126992A (en) 1991-05-30

Family

ID=17412593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1265099A Pending JPH03126992A (en) 1989-10-13 1989-10-13 Font controller

Country Status (1)

Country Link
JP (1) JPH03126992A (en)

Similar Documents

Publication Publication Date Title
JP3327650B2 (en) Recording device
JPH06222747A (en) Font compression device and font restoration device
JPH03126992A (en) Font controller
JP2887928B2 (en) Image data output device
JP3218088B2 (en) Printer
JPH04215189A (en) Picture recorder
JP2972466B2 (en) Dot pattern compression method and apparatus and output method and apparatus
JPS6370890A (en) Graphic processor
JP2580965B2 (en) Printer device
JP2849319B2 (en) Character pattern compression method
JPH02287739A (en) Memory access method
JPH08279915A (en) Method for compressing data in page printer
KR960016738B1 (en) Method and apparatus for processing information
JPS60109888A (en) Character processor
JPH03174588A (en) Document processor
JP3757686B2 (en) Character data generator and character output device
JP3109727B2 (en) Character processing method and character processing device
JP2901860B2 (en) How to generate character data
JPH05281948A (en) Font pattern compressing and storing method
JPH0325495A (en) Printer
JPH0895548A (en) Device and method for outputting character
JPH02225066A (en) Printing device
JPS61264377A (en) Character pattern generator
JPS63242561A (en) Font reducing system
JPH0883061A (en) Method and device for generating character pattern