JPH0863145A - Pattern generating method and device therefor - Google Patents

Pattern generating method and device therefor

Info

Publication number
JPH0863145A
JPH0863145A JP6201892A JP20189294A JPH0863145A JP H0863145 A JPH0863145 A JP H0863145A JP 6201892 A JP6201892 A JP 6201892A JP 20189294 A JP20189294 A JP 20189294A JP H0863145 A JPH0863145 A JP H0863145A
Authority
JP
Japan
Prior art keywords
information
pattern
address
rom
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.)
Withdrawn
Application number
JP6201892A
Other languages
Japanese (ja)
Inventor
Hideki Tanaka
秀樹 田中
Shinji Takagi
真二 高木
Hiroyuki Tawaraya
啓之 俵谷
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP6201892A priority Critical patent/JPH0863145A/en
Publication of JPH0863145A publication Critical patent/JPH0863145A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To provide a pattern generating method and device capable of a pattern expansion while reading out effectively a pattern correspoding to a code information. CONSTITUTION: Plural pattern information are stored in CG-ROMs 104-1 to 104-6 by being compressed at every prescribed font kinds and pattern address information of every font kinds stored in these CG-ROMs 104 are stored in an ROM 103-1. Then, when the code information and a corresponding font kind information are inputted, an address correspoding to the font kind information is determined based on address information of the ROM 103-1 and then the stored address of a compressed pattern information corresponding to the code information is calculated by referring to a CG-ROM table 105 based on the determined address and the code imformation. A corrspoding compressed pattern information is read out from the address calculated in such a way and then a pattern information corresponding to the inputted code information is generated by expanding the read compressed information with an expading circuit 107.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コード情報を入力して
対応するパターンデータを発生するパターン発生方法及
び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern generating method and apparatus for inputting code information and generating corresponding pattern data.

【0002】[0002]

【従来の技術】ホストコンピュータ等から文字コード等
を含む印刷データを受取って印刷をするプリンタ装置で
は、複数のフォントデータを内蔵しており、受信した文
字コードを、対応するフォントデータを参照してパター
ン展開してビットイメージに変換することにより印刷を
行っている。このようなプリンタ装置に内蔵されるフォ
ントデータは、プリンタ装置の高解像度、高機能化に伴
って、その種類が多くなってきている。
2. Description of the Related Art A printer which receives print data including a character code from a host computer or the like for printing has a plurality of built-in font data, and the received character code is referred to by the corresponding font data. Printing is performed by expanding the pattern and converting it to a bit image. The types of font data contained in such printer devices are increasing with the increase in resolution and functionality of printer devices.

【0003】これらフォントデータには、ビットマップ
と呼ばれる文字パターンの形状を忠実にドットの配列で
表現したフォントデータと、文字パターンの輪郭を数値
や数式などで表したアウトラインフォント等がある。こ
れらフォントデータは、プリンタ装置に実装される場合
は、ある方法で圧縮されて例えばROM等に記憶されて
おり、実際に印刷に使用される場合には、その圧縮され
たフォントデータを、専用のハードウェアやCPU等に
よる処理により伸張され、ビットイメージデータに変換
される。
These font data include font data called a bitmap, which faithfully expresses the shape of a character pattern by an array of dots, and outline fonts which express the outline of the character pattern by numerical values or mathematical expressions. When these font data are installed in the printer device, they are compressed by a certain method and stored in, for example, a ROM, and when they are actually used for printing, the compressed font data is stored in a dedicated format. It is decompressed by processing by hardware or a CPU and converted into bit image data.

【0004】即ち、このようなプリンタ装置に内蔵され
るフォントデータは、フォントデータの圧縮率を高めて
ROM等のメモリ容量を削減でき、かつ伸張処理が容易
な(ハードウェアの負荷が少なくかつ処理時間の短い)
圧縮方法により圧縮されているのが望ましい。例えば、
ビットマップフォントデータでは、そのデータ配列が単
純なことから、圧縮方法としてはランレングス法を用い
たものや、ビットマップデータの構成を、ランレングス
法での圧縮率が上がる様に、一定の方法で変更してから
ランレングス符号化するもの等がある。
That is, the font data contained in such a printer device can increase the compression rate of the font data to reduce the memory capacity of the ROM and the like, and the decompression processing is easy (the load on the hardware is small and the processing is small). Short time)
It is preferably compressed by a compression method. For example,
Bitmap font data has a simple data array, so the run length method is used as the compression method, and the bitmap data structure is set to a fixed method so that the compression rate in the run length method increases. There is a method of performing run-length coding after changing it in.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、最近で
はプリンタに内蔵するフォントの種類は増加する傾向に
あり、特に、日本語等の様に1つの文字コードが1ワー
ドで表される文字などのフォントも増加しており、この
ような文字には書体の多さもさることながら、文字種の
多さに伴ってプリンタ装置に搭載されるROMのメモリ
容量は増加の一途をたどっている。更に、圧縮されたフ
ォントデータから、1つの文字を検索するための圧縮フ
ォントのテーブルメモリにおいても、同様に増加してお
り、製品全体のコストや実装面積の点でも大きな影響を
与えている。
However, recently, the kinds of fonts built into printers are increasing, and especially fonts such as characters in which one character code is represented by one word, such as Japanese, are used. In addition to the large number of typefaces for such characters, the memory capacity of the ROM mounted in the printer device is increasing steadily due to the large number of character types. Further, in the table memory of the compressed font for searching one character from the compressed font data, the number is similarly increasing, which greatly affects the cost of the entire product and the mounting area.

【0006】本発明は上記従来例に鑑みてなされたもの
で、コード情報に対応するパターンを効率良く読み出し
てパターン展開できるパターン発生方法及び装置を提供
することを目的とする。
The present invention has been made in view of the above conventional example, and an object of the present invention is to provide a pattern generating method and apparatus capable of efficiently reading out a pattern corresponding to code information and developing the pattern.

【0007】本発明の目的は、圧縮されて記憶されてい
るパターンデータをコード情報に基づいて読み出し、伸
長して出力できるパターン発生方法及び装置を提供する
ことにある。
It is an object of the present invention to provide a pattern generating method and apparatus capable of reading out compressed and stored pattern data based on code information, decompressing it and outputting it.

【0008】また本発明の目的は、少ないメモリ空間に
記憶されているフォントデータを効率良く読み出してパ
ターン展開できるパターン発生方法及び装置を提供する
ことにある。
It is another object of the present invention to provide a pattern generating method and apparatus capable of efficiently reading out font data stored in a small memory space and developing a pattern.

【0009】更に本発明の目的は、各コード情報に対応
するパターン情報を各カテゴリー毎に記憶しておき、そ
れらを効率良く読み出してパターン展開できるパターン
発生方法及び装置を提供することにある。
A further object of the present invention is to provide a pattern generating method and apparatus capable of storing pattern information corresponding to each code information for each category and efficiently reading out the pattern information to develop the pattern.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に本発明のパターン発生方法は以下のような構成を備え
る。即ち、コード情報を入力し対応するパターン情報に
展開して出力するパターン発生方法であって、複数のパ
ターン情報を所定のカテゴリー毎に圧縮して記憶すると
ともに、記憶されているカテゴリー毎のパターンアドレ
ス情報を記憶する工程と、コード情報に対応するカテゴ
リー情報を入力して、当該カテゴリー情報に対応するア
ドレスを前記パターンアドレス情報に基づいて決定する
工程と、その決定された前記アドレスと前記コード情報
とに基づいて前記コード情報に対応する圧縮パターン情
報の格納アドレスを求めて読み出す工程と、その読み出
された圧縮パターン情報を伸張して前記コード情報に対
応するパターン情報を発生する工程とを有する。
In order to achieve the above object, the pattern generating method of the present invention has the following configuration. That is, it is a pattern generation method in which code information is input, expanded into corresponding pattern information, and output, in which a plurality of pattern information is compressed and stored for each predetermined category, and the pattern address for each stored category is also stored. Storing information, inputting category information corresponding to the code information, and determining an address corresponding to the category information based on the pattern address information, the determined address and the code information The step of obtaining and reading the storage address of the compressed pattern information corresponding to the code information based on the above, and the step of expanding the read compressed pattern information to generate the pattern information corresponding to the code information.

【0011】上記目的を達成するために本発明のパター
ン発生装置は以下のような構成を備える。即ち、コード
情報を入力し対応するパターン情報に展開して出力する
パターン発生装置であって、複数のパターン情報を所定
のカテゴリー毎に圧縮して記憶する記憶手段と、前記記
憶手段に記憶されている前記カテゴリー毎のパターンア
ドレス情報を記憶するアドレス記憶手段と、前記コード
情報に対応するカテゴリー情報を入力して、当該カテゴ
リー情報に対応するアドレスを前記パターンアドレス情
報に基づいて決定する決定手段と、前記決定手段により
決定された前記アドレスと前記コード情報とに基づいて
前記コード情報に対応する圧縮パターン情報の格納アド
レスを求めて前記記憶手段より読み出す読出手段と、前
記読出手段により読み出された圧縮パターン情報を伸張
して前記コード情報に対応するパターン情報を発生する
伸張手段とを有する。
In order to achieve the above object, the pattern generator of the present invention has the following configuration. That is, it is a pattern generator which inputs code information, expands it into corresponding pattern information and outputs it, and a storage means for compressing and storing a plurality of pattern information for each predetermined category, and a storage means stored in the storage means. Address storing means for storing pattern address information for each category, and determining means for inputting category information corresponding to the code information and determining an address corresponding to the category information based on the pattern address information, A read-out means for obtaining a storage address of compression pattern information corresponding to the code information on the basis of the address decided by the decision means and the code information and reading it from the storage means, and a compression read by the read-out means. Decompression for decompressing pattern information to generate pattern information corresponding to the code information And a stage.

【0012】[0012]

【作用】以上の構成において、複数のパターン情報を所
定のカテゴリー毎に圧縮して記憶手段に記憶し、その記
憶手段に記憶されているカテゴリー毎のパターンアドレ
ス情報を、アドレス記憶手段に記憶する。そして、コー
ド情報に対応するカテゴリー情報を入力すると、そのカ
テゴリー情報に対応するアドレスをパターンアドレス情
報に基づいて決定し、その決定されたアドレスとコード
情報とに基づいてそのコード情報に対応する圧縮パター
ン情報の格納アドレスを求めて記憶手段より読み出し、
その読み出した圧縮パターン情報を伸張して、入力した
コード情報に対応するパターン情報を発生するように動
作する。
In the above structure, a plurality of pattern information is compressed for each predetermined category and stored in the storage means, and the pattern address information for each category stored in the storage means is stored in the address storage means. When the category information corresponding to the code information is input, the address corresponding to the category information is determined based on the pattern address information, and the compression pattern corresponding to the code information is determined based on the determined address and the code information. Obtain the storage address of the information and read it from the storage means,
The read compressed pattern information is expanded to generate pattern information corresponding to the input code information.

【0013】[0013]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。以下、本実施例を説明する前
に、図3を参照して本実施例のレーザビームプリンタの
構成を説明する。尚、本発明はこのようなプリンタ装置
に限定されるものでなく、例えばインクジェットプリン
タなどの他の記録方式のプリンタ装置或はコード情報を
入力してパターン情報に展開して出力するディスプレイ
装置などにも適用できる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will now be described in detail with reference to the accompanying drawings. Before describing the present embodiment, the configuration of the laser beam printer of the present embodiment will be described below with reference to FIG. The present invention is not limited to such a printer device, and may be applied to other recording type printer devices such as an ink jet printer or a display device that inputs code information and develops it into pattern information and outputs it. Can also be applied.

【0014】図3は本実施例のレーザビームプリンタ
(LBP)1000の内部構造を示す断面図で、このL
BP1000は不図示のデータ源(図1のホストコンピ
ュータ109等)から文字パターンの登録や定型書式
(フォームデータ)等の登録が行えるように構成されて
いる。
FIG. 3 is a sectional view showing the internal structure of the laser beam printer (LBP) 1000 of this embodiment.
The BP 1000 is configured so that a character source, a fixed form (form data), etc. can be registered from a data source (not shown) (such as the host computer 109 in FIG. 1).

【0015】図3において、1000はLBP本体を示
し、外部に接続されているホストコンピュータ等から供
給される文字情報(文字コード)やフォーム情報或いは
マクロ命令等を入力して記憶するとともに、それらの情
報に従って対応する文字パターンやフォームパターン等
を作成し、記録媒体である記録紙上に像を形成する。1
012は操作のための各種スイッチ及びLED表示器等
が配されている操作パネル、1001はLBP1000
全体の制御及びホストコンピュータから供給される文字
情報等を解析するプリンタ制御ユニットである。このプ
リンタ制御ユニット1001は主に文字情報を対応する
文字パターンのビデオ信号に変換してレーザドライバ1
002に出力する。
In FIG. 3, reference numeral 1000 denotes an LBP main body, which inputs and stores character information (character code) supplied from an externally connected host computer or the like, form information, macro commands, and the like. A corresponding character pattern, form pattern, or the like is created according to the information, and an image is formed on a recording paper, which is a recording medium. 1
Reference numeral 012 is an operation panel on which various switches for operation and an LED display are arranged, and 1001 is an LBP1000.
A printer control unit for controlling the entire system and analyzing character information and the like supplied from the host computer. The printer control unit 1001 mainly converts the character information into a video signal of a corresponding character pattern and converts the character signal into a laser driver 1.
Output to 002.

【0016】レーザドライバ1002は半導体レーザ1
003を駆動するための回路であり、入力されたビデオ
信号に応じて半導体レーザ1003をオン・オフ切替し
ている。レーザ光1004は回転多面鏡1005で左右
方向に振られて静電ドラム1006上を走査する。これ
により、静電ドラム1006上には文字パターンの静電
潜像が形成される。この潜像は静電ドラム1006の周
囲の現像ユニット1007により現像された後、記録紙
に転写される。この記録紙にはカットシートを用い、カ
セット記録紙はLBP1000に装着した用紙カセット
1008に収納され、給紙ローラ1009及び搬送ロー
ラ1010と1011とにより装置内に取り込まれて、
静電ドラム1006に供給される。
The laser driver 1002 is a semiconductor laser 1
This is a circuit for driving 003, and switches the semiconductor laser 1003 on / off according to the input video signal. The laser light 1004 is swung in the left-right direction by the rotating polygon mirror 1005 to scan the electrostatic drum 1006. As a result, an electrostatic latent image having a character pattern is formed on the electrostatic drum 1006. This latent image is developed by a developing unit 1007 around the electrostatic drum 1006 and then transferred to a recording paper. A cut sheet is used for this recording paper, and the cassette recording paper is stored in a paper cassette 1008 attached to the LBP1000, and is taken into the apparatus by a paper feed roller 1009 and conveyance rollers 1010 and 1011.
It is supplied to the electrostatic drum 1006.

【0017】図1は、本実施例のプリンタ装置1000
のプリンタ制御ユニット1001の構成を示すブロック
図、図2はフォントデータを記憶するCG・ROM10
4の構成を示す図である。
FIG. 1 shows a printer apparatus 1000 according to this embodiment.
2 is a block diagram showing the configuration of the printer control unit 1001 of FIG. 2, and FIG. 2 is a CG / ROM 10 for storing font data.
It is a figure which shows the structure of No. 4.

【0018】図1において、101はCPUで、本実施
例のプリンタ装置1000の制御やホストコンピュータ
109より受信した印刷データの解析、パターン展開等
を行っている。102はRAMで、CPU101による
各種制御処理の実行時にワークエリア等として使用さ
れ、各種データを一時的に保存している。103はRO
Mで、CPU101により実行される制御プログラムや
各種データ等を記憶している。103−1はCG・RO
Mデータ量で、CG・ROM104−1〜104−6の
それぞれが記憶しているデータ量(全アドレス)を記憶
している。104−1〜104−6は、それぞれが異な
る書体の文字フォントデータを圧縮して記憶しているC
G(キャラクタジェネレータ)ROMであり、各CG・
ROMが記憶している文字フォントの数は同一である。
即ち、例えば各CG・ROMは、漢字の第1及び第2水
準の文字フォントデータを記憶しており、CG・ROM
104−1は12ポイントの明朝体フォント、CG・R
OM104−2は12ポイントのゴシック体の文字フォ
ントというように記憶している。105はCG・ROM
104−1〜104−6に対応して、所望の文字の圧縮
フォントデータがCG・ROM104−1〜104−6
のどこに記憶されているかを記憶しているCG・ROM
テーブルである。106は実際に印刷されるイメージデ
ータを記憶する描画バッファで、RAM等で構成され文
字データ等のビットマップイメージを記憶している。
In FIG. 1, a CPU 101 controls the printer 1000 of this embodiment, analyzes print data received from the host computer 109, develops a pattern, and the like. A RAM 102 is used as a work area or the like when the CPU 101 executes various control processes, and temporarily stores various data. 103 is RO
M stores a control program executed by the CPU 101, various data, and the like. 103-1 is CG / RO
The M data amount stores the data amount (all addresses) stored in each of the CG / ROMs 104-1 to 104-6. Reference numerals 104-1 to 104-6 are C storing compressed character font data of different typefaces.
G (character generator) ROM for each CG
The number of character fonts stored in the ROM is the same.
That is, for example, each CG / ROM stores character font data of the first and second levels of Chinese characters.
104-1 is a 12-point Mincho font, CG / R
The OM 104-2 is stored as a 12-point Gothic character font. 105 is CG ROM
Corresponding to 104-1 to 104-6, compressed font data of a desired character is CG / ROM 104-1 to 104-6.
CG ROM that stores where it is stored
It's a table. Reference numeral 106 denotes a drawing buffer that stores image data to be actually printed, which is composed of a RAM or the like and stores a bitmap image such as character data.

【0019】107はCG・ROMテーブル105で検
索されたCG・ROM104−1〜104−6の圧縮文
字データを伸張するフォント伸張回路である。又、10
8はCPU101と各デバイスとを結ぶバスラインであ
る。又、109はホストコンピュータで、インターフェ
ース部110を介して実施例のプリンタ装置に接続さ
れ、各種印刷データやコマンドなどを送受信している。
A font decompression circuit 107 decompresses the compressed character data of the CG / ROMs 104-1 to 104-6 retrieved by the CG / ROM table 105. Again 10
A bus line 8 connects the CPU 101 and each device. Further, 109 is a host computer, which is connected to the printer apparatus of the embodiment via an interface unit 110 and transmits and receives various print data and commands.

【0020】以上の構成において、ホストコンピュータ
109から印刷をうながすコマンドがインターフェース
部110を経由してCPU101に転送されてくると、
CPU101は、プリンタ機構部等の状態をチェックし
た後、印刷可能であればインターフェース部110を経
由してホストコンピュータ109に印刷データの受信が
可能であることを伝える。これにより、ホストコンピュ
ータ109は、印刷をしたい文書を表わす文字コードや
各種制御情報、更にはグラフィックデータ等をプリンタ
装置に伝送する。
In the above configuration, when a command prompting printing from the host computer 109 is transferred to the CPU 101 via the interface section 110,
After checking the states of the printer mechanism unit and the like, the CPU 101 notifies the host computer 109 via the interface unit 110 that print data can be received if printing is possible. As a result, the host computer 109 transmits the character code representing the document to be printed, various control information, and further graphic data to the printer device.

【0021】こうしてホストコンピュータ109より伝
送されたデータは、一時RAM102の受信バッファエ
リアに記録される。その受信データには文字コードや、
その文字コードの書体情報(使用するフォント情報)等
も含まれている。従って、CPU101は、その書体情
報に基づいてROM103のCG・ROMデータ量10
3−1を参照してCG・ROM104のアドレスを求め
る。即ち、いま例えば使用したいフォント情報がCG・
ROM104−3に記憶されているとすると、書体情報
として“2”が与えられ、CG・ROMデータ量103
−1(例えば1バイト)に記憶されているアドレスにこ
の定数“2”がかけられる。こうして乗算されたアドレ
スは、CG・ROM104−3の先頭アドレスとなる。
The data thus transmitted from the host computer 109 is recorded in the reception buffer area of the temporary RAM 102. The character code and the received data
The font information of the character code (font information to be used) and the like are also included. Therefore, the CPU 101 determines the CG / ROM data amount of the ROM 103 based on the font information.
The address of the CG / ROM 104 is obtained by referring to 3-1. That is, for example, the font information that you want to use is CG.
If it is stored in the ROM 104-3, "2" is given as the typeface information, and the CG / ROM data amount 103
This constant "2" is multiplied to the address stored in -1 (for example, 1 byte). The address thus multiplied becomes the start address of the CG ROM 104-3.

【0022】こうして使用するフォンとデータが記録さ
れているCG・ROMが特定されると、次にCG・RO
Mテーブル105を参照し、そのCG・ROM104
(前述の例ではCG・ROM104−3)の対応するフ
ォントデータが記憶されているアドレスを求める。こう
して所望のフォントデータのアドレスを求めると、その
文字コードに対応する圧縮フォントデータを、該当する
CG・ROM104から読み出す。その読み出したフォ
ントデータは、フォント伸張回路107に転送されて伸
長される。フォント伸張回路107は、文字のサイズ情
報等を参照してビットマップデータに伸張した後、描画
バッファ106に記憶する。
When the phone to be used and the CG / ROM in which the data is recorded are specified, the CG / RO is next specified.
Referring to the M table 105, the CG / ROM 104
The address where the corresponding font data of the CG / ROM 104-3 in the above example is stored is obtained. When the address of the desired font data is obtained in this way, the compressed font data corresponding to the character code is read from the corresponding CG / ROM 104. The read font data is transferred to the font expansion circuit 107 and expanded. The font expansion circuit 107 refers to the character size information and the like to expand the bitmap data, and then stores it in the drawing buffer 106.

【0023】以上の作業を繰り返し、ホストコンピュー
タ109から送られてくるデータを描画バッファ106
に記憶していく。また、ホストコンピュータ109から
伝送される印刷データは、途中でフォントの種類を変更
するコマンドを含んでいる場合もあるため、その場合は
CG・ROMテーブル105から、その変更されたフォ
ントデータに対応するテーブルを選択し直すことによ
り、その文字のフォントを変更する。こうしてホストコ
ンピュータ109から送られてくる印刷データを順次ビ
ットマップに展開して描画バッファ106に記憶してい
く。なお、この描画バッファ106は、印刷用のバッフ
ァも兼ねており、適当な量のデータが描画されると、そ
のままプリンタ装置に描画バッファ106の内容を転送
して印刷を行なう。
By repeating the above operation, the data sent from the host computer 109 is converted into the drawing buffer 106.
I will remember. Further, since the print data transmitted from the host computer 109 may include a command for changing the font type in the middle, in this case, the CG / ROM table 105 corresponds to the changed font data. Change the font for that character by reselecting the table. In this way, the print data sent from the host computer 109 is sequentially developed into a bitmap and stored in the drawing buffer 106. The drawing buffer 106 also serves as a printing buffer, and when an appropriate amount of data is drawn, the contents of the drawing buffer 106 are transferred to the printer as they are for printing.

【0024】以上説明した様に、ホストコンピュータ1
09から送られてくる印刷データに対して最適なフォン
トデータを用いて印刷を行なうことが可能である。
As described above, the host computer 1
It is possible to perform printing using the optimum font data for the print data sent from 09.

【0025】図2は、CG・ROMテーブル105とC
G・ROM104−1〜104−6との構成を表した図
で、ある1つの文字を描画する際、CG・ROM104
−1〜104−6の中から所望の文字フォントを検索す
る方法を示す図である。ここでは、例えば漢字「愛」を
検索する場合で説明する。
FIG. 2 shows the CG / ROM table 105 and C.
It is a figure showing the composition with G-ROM104-1 to 104-6, and when drawing a certain character, CG-ROM104
It is a figure which shows the method of searching for a desired character font from -1 to 104-6. Here, for example, a case of searching for the Chinese character “love” will be described.

【0026】図1において、始めCG・ROM104−
1が選択されており、漢字「愛」を表わす文字コードが
送られてくると、現在、CG・ROM104−1が選択
されているためにCG・ROMデータ量103−1を参
照することなく、CG・ROMテーブル105を参照し
て漢字「愛」の圧縮されているフォントデータが格納さ
れているアドレスを検索する。そして、そのアドレスに
対応するCG・ROM104−1より、圧縮された漢字
「愛」のフォントデータを読出して、フォント伸張回路
107に転送し、ビットマップデータに伸張して、描画
バッファ108に記憶する。
In FIG. 1, first, the CG / ROM 104-
When 1 is selected and the character code representing the Chinese character “love” is sent, since the CG / ROM 104-1 is currently selected, the CG / ROM data amount 103-1 is not referred to, By referring to the CG / ROM table 105, the address where the compressed font data of the Chinese character “love” is stored is searched. Then, the compressed font data of the Chinese character “love” is read from the CG / ROM 104-1 corresponding to the address, transferred to the font expansion circuit 107, expanded to bitmap data, and stored in the drawing buffer 108. .

【0027】次に、その漢字の書体が変更され、CG・
ROM104−4を選択する場合を説明する。この場合
には、書体情報として“3”が指定されるので、CG・
ROMデータ量103−1に記憶されているアドレスデ
ータに“3”を乗算したアドレスデータを求める。これ
はCG・ROM104−4の先頭アドレスとなる。そし
てこの状態で漢字「愛」の文字コードが送られてくる
と、CG・ROMテーブル105を参照して、CG・R
OM104−4における漢字「愛」の圧縮フォントデー
タのアドレスを求める。こうして得られたアドレスより
圧縮された漢字「愛」のフォントデータを読み出してフ
ォント伸張回路107に転送し、ビットマップデータに
伸張した後、描画バッファ108に記憶する。
Next, the typeface of the kanji is changed to CG.
A case where the ROM 104-4 is selected will be described. In this case, "3" is specified as the typeface information, so CG
The address data stored in the ROM data amount 103-1 is multiplied by "3" to obtain the address data. This is the start address of the CG / ROM 104-4. When the character code of the Chinese character “love” is sent in this state, the CG / R table 105 is referred to and the CG / R
The address of the compressed font data of the Chinese character "love" in OM104-4 is calculated. The compressed font data of the Chinese character "love" is read from the obtained address, transferred to the font expansion circuit 107, expanded into bitmap data, and then stored in the drawing buffer 108.

【0028】ここで、この漢字「愛」のフォント圧縮率
が一番低いフォントは、CG・ROM#6(104−
6)に記憶されており、他のフォントCG・ROM10
4−1〜104−5のフォントデータ量は、CG・RO
M104−6のデータ量に等しく設定されいる。そし
て、図2の各フォントデータの201−1〜201−6
の白抜き部分で示すように“0”等の無関係なデータ
で、その空いた部分を埋めることにより、各CG・RO
Mにおいて、ある文字コードに対するフォントアドレス
が共通になるようにしている。
Here, the font having the lowest font compression rate of the Chinese character "ai" is CG ROM # 6 (104-
6) Other fonts stored in CG / ROM10
The font data amount of 4-1 to 104-5 is CG / RO.
It is set equal to the data amount of M104-6. Then, 201-1 to 201-6 of each font data in FIG.
Each CG / RO can be filled by filling in the vacant part with irrelevant data such as "0" as shown by the white part.
In M, the font address for a certain character code is common.

【0029】以上説明したように本実施例によれば、C
G・ROMデータ量103−1に記憶されたデータは1
つであり、使用するフォントに応じてCG・ROM10
4の対応するフォントデータが格納されたCG・ROM
の先頭アドレスを求めている。そして、各CG・ROM
におけるフォントデータのアドレスは共通しているの
で、容易に所望の書体の文字フォントを得ることができ
る。尚、この場合は、各CG・ROM104−1〜10
4−6それぞれのデータ量は、すべて等しいことが前提
である。即ち、それぞれの書体の文字フォントデータの
量は、各書体毎に同一文字フォントについて等しいこと
を意味している。そうするために本実施例では、例えば
一つの文字フォントについて、圧縮率が高いものは圧縮
率の一番低いフォントデータ量に一致するように各CG
・ROMに記憶されている。ここでは圧縮率が高いもの
は、そのCG・ROMエリアに意味のないデータを記憶
して、どのCG・ROMでもある文字の先頭アドレスが
一致するようにしている。即ち、各フォントにおける各
文字はそのフォントの先頭アドレスから同じオフセット
量(CG・ROMテーブル105のデータ)となってい
る。
As described above, according to this embodiment, C
The data stored in the G-ROM data amount 103-1 is 1
CG / ROM10 depending on the font used
CG ROM storing the corresponding font data of 4
Is seeking the start address of. And each CG ROM
Since the address of the font data in is common, a character font of a desired typeface can be easily obtained. In this case, each CG ROM 104-1 to 10
It is premised that the data amounts of 4-6 are all equal. That is, it means that the amount of character font data of each typeface is the same for the same character font for each typeface. In order to do so, in the present embodiment, for example, for one character font, each CG has a high compression rate so that it matches the font data amount with the lowest compression rate.
-It is stored in ROM. Here, if the compression rate is high, meaningless data is stored in the CG / ROM area so that the start addresses of the characters in any CG / ROM match. That is, each character in each font has the same offset amount (data of the CG / ROM table 105) from the head address of the font.

【0030】ところで、同一文字であれば、その圧縮率
が各書体に応じてそれ程大きく変わることはなく、例え
ばバイト単位でフォントデータを記憶している場合等で
は、ほとんど同じにメモリ容量となり、CG・ROMに
不要データを多く格納してメモリを無駄にするといった
不具合が生じない。
By the way, if the same character, the compression rate does not change so much depending on each typeface. For example, when the font data is stored in byte units, the memory capacity becomes almost the same and CG -There will be no problem of wasting memory by storing a lot of unnecessary data in ROM.

【0031】実際、日本語の漢字等を例にとると、6つ
の書体のフォントの場合、圧縮率に見合った記憶をして
いる場合で比べると、そのフォントデータ量の差が数百
バイトしかないことが判明しており、これは各フォント
データ毎に、CG・ROMテーブル105を持たせる場
合よりも、より少ないデータ量となる。
In fact, taking Japanese Kanji characters as an example, in the case of 6 typeface fonts, the difference in the font data amount is only several hundred bytes as compared with the case where memory is stored corresponding to the compression rate. It has been proved that the font data does not exist, and this results in a smaller data amount than in the case where the CG / ROM table 105 is provided for each font data.

【0032】また、フォントデータの圧縮方法として
は、フォントの輪郭を数値や数式で表したアウトライン
フォントを圧縮したものや、ビットマップデータの構成
をランレングスによる圧縮率が上がる様に、一定の方法
で構成を変更してから、ランレングスによる符号化処理
を行なうことにより、圧縮率が均一となってデータ量が
ほぼ同等になる傾向がある。
As a font data compression method, an outline font in which the outline of the font is expressed by numerical values or mathematical expressions is compressed, or a certain method is adopted so that the compression rate by the run length of the bitmap data structure is increased. By performing the encoding process by the run length after changing the configuration in (3), the compression rate tends to be uniform and the data amount tends to be almost equal.

【0033】図4は本実施例のプリンタ装置1000に
おける1ページのプリント処理を示すフローチャート
で、この処理を実行する制御プログラムはROM103
に記憶され、CPU101により実行される。
FIG. 4 is a flow chart showing a printing process for one page in the printer apparatus 1000 of this embodiment. The control program for executing this process is the ROM 103.
And is executed by the CPU 101.

【0034】まずステップS1で、ホストコンピュータ
109よりコードデータなどを含む印刷データを受信す
るとステップS2に進み、RAM102の受信バッファ
エリアに格納する。ステップS3では、1ページ分の印
刷データを入力してプリントの開始タイミングになった
かどうかを調べ、1ページのプリント開始でないとき
は、ステップS1に戻って、引き続きデータ受信を行
う。ステップS3で、1ページのプリントデータを受信
してプリント可能になったときはステップS4に進み、
印刷データに含まれている文字コードとそのフォント情
報(書体情報など)を読み出す。そしてステップS5に
進み、ROM103の103−1に記憶されているCG
・ROMデータ量に、ステップS4で読み出したフォン
ト情報で指定されている定数(フォント種)を乗算し
て、CG・ROM104の中の所望するフォントデータ
が記憶されているCG・ROMを求める。
First, when print data including code data and the like is received from the host computer 109 in step S1, the process proceeds to step S2 and is stored in the receive buffer area of the RAM 102. In step S3, print data for one page is input, and it is checked whether the print start timing has come. If not, the process returns to step S1 to continue data reception. In step S3, when print data for one page is received and printing becomes possible, the process proceeds to step S4,
Read the character code and font information (typeface information, etc.) included in the print data. Then, the process proceeds to step S5 and the CG stored in the ROM 103-1.
The ROM data amount is multiplied by the constant (font type) designated by the font information read in step S4 to obtain the CG-ROM in which the desired font data in the CG-ROM 104 is stored.

【0035】次にステップS6に進み、ステップS4で
読み出した文字コードに基づいて、ステップS5で選択
されたCG・ROMにおけるフォントアドレスを決定す
る。次にステップS7に進み、その決定されたアドレス
より該当するフォントデータを読み出し、その読み出し
たフォントデータを伸長回路107に出力して伸長す
る。そしてステップS8に進み、描画バッファ106
に、その伸長されたフォントデータ(文字パターンデー
タ)を格納し、次にステップS9に進んで、1ページの
パターン展開が終了したかどうかをみる。こうして描画
バッファ106に1ページ分のパターンデータが展開さ
れるとステップS10に進み、そのパターンデータに基
づいてプリントを行う。
Next, in step S6, the font address in the CG / ROM selected in step S5 is determined based on the character code read in step S4. Next, in step S7, the corresponding font data is read from the determined address, and the read font data is output to the expansion circuit 107 and expanded. Then, the process proceeds to step S8, and the drawing buffer 106
The decompressed font data (character pattern data) is stored in, and the process proceeds to step S9 to check whether the pattern development for one page is completed. When one page of pattern data is developed in the drawing buffer 106 in this way, the process proceeds to step S10, and printing is performed based on the pattern data.

【0036】以上説明したように、複数種の書体情報に
対して、CG・ROMデータ量103−1のデータと、
共通に使用できるCG・ROMテーブル105だけで、
すべての文字のフォントデータのアドレスを算出するこ
とができ、各CG・ROM104にデータの冗長性があ
っても、最終的にはROM容量を削減することが可能で
ある。 [第2実施例]図5は本実施例のプリンタ装置のプリン
タ制御部の概略構成を示すブロック図、図6は、図5に
おける圧縮されたフォントROM及びそのテーブルとの
関係を示す図である。図5及び図6において、前述の第
1実施例で説明した図1及び図2と同一の構成部分には
同じ番号を付し、それらの説明を省略する。
As described above, for a plurality of types of typeface information, the data of the CG / ROM data amount 103-1,
Only the CG / ROM table 105 that can be used in common,
The addresses of font data of all characters can be calculated, and even if each CG / ROM 104 has data redundancy, the ROM capacity can be finally reduced. [Second Embodiment] FIG. 5 is a block diagram showing the schematic arrangement of a printer control unit of a printer apparatus according to this embodiment, and FIG. 6 is a diagram showing the relationship between the compressed font ROM and its table in FIG. . In FIGS. 5 and 6, the same components as those of FIGS. 1 and 2 described in the first embodiment described above are designated by the same reference numerals, and the description thereof will be omitted.

【0037】図5において、105−1はCG・ROM
104−1〜104−3に対応しており、必要な文字フ
ォントの圧縮データが各CG・ROM内のどこに記憶さ
れているかを記憶しているCG・ROMテーブルであ
り、同様に105−2はCG・ROM104−4〜10
4−6に対応して、必要な文字フォントの圧縮データが
各CG・ROM内のどこに記憶されているかを記憶して
いるCG・ROMテーブルである。このROMテーブル
は、CG・ROM104−1〜104−6に対して2つ
しかなく、CG・ROMテーブル105−1はCG・R
OM104−1〜104−3について共通であり、CG
・ROMテーブル105−2はCG・ROM104−4
〜104−6について共通である。
In FIG. 5, 105-1 is a CG / ROM
CG-ROM table corresponding to 104-1 to 104-3 and storing where in each CG-ROM the compressed data of the required character font is stored. Similarly, 105-2 is a table. CG / ROM 104-4 to 10
4 is a CG / ROM table that stores where the compressed data of the required character font is stored in each CG / ROM corresponding to 4-6. There are only two ROM tables for the CG / ROMs 104-1 to 104-6, and the CG / ROM table 105-1 is CG / R.
Common to OM104-1 to 104-3, CG
-ROM table 105-2 is CG-ROM 104-4
It is common about 104-6.

【0038】また、ROM103内部の103−1及び
103−2は各CG・ROMのフォントデータ量を記憶
しており、CG・ROMデータ量103−1は、CG・
ROM104−1〜104−3に対して共通であり、C
G・ROMデータ量103−2はCG・ROM104−
4〜104−6に対して共通である。
Further, 103-1 and 103-2 in the ROM 103 store the font data amount of each CG / ROM, and the CG / ROM data amount 103-1 is CG / ROM.
Common to the ROMs 104-1 to 104-3, C
G / ROM data amount 103-2 is CG / ROM 104-
4 to 104-6 are common.

【0039】この場合の動作を説明すると、ホストコン
ピュータ109から、印刷をうながすコマンドがインタ
ーフェース部110を経由して伝送されてくると、CP
U101はプリンタ側の状態をチェックし、印刷可能で
あればインターフェース部110を経由してホストコン
ピュータ109に印刷データの受信が可能であることを
伝える。これによりホストコンピュータ109は印刷を
したい文字データやグラフィックデータを、このプリン
タ装置に伝送する。こうして伝送されたデータはRAM
102に一時記憶され、この記憶されたデータに含まれ
る文字コード、使用フォントの情報(書体情報)が解析
される。
The operation in this case will be described. When a command prompting printing is transmitted from the host computer 109 via the interface section 110, the CP
The U 101 checks the status on the printer side and, if printing is possible, notifies the host computer 109 via the interface unit 110 that print data can be received. As a result, the host computer 109 transmits the character data and graphic data to be printed to this printer device. The data transmitted in this way is RAM
The data is temporarily stored in 102, and the character code and used font information (typeface information) included in the stored data are analyzed.

【0040】CPU101は、文字コードと、その書体
情報によりCG・ROMデータ量103−1または10
3−2からデータを選び出し、このデータに対して、書
体情報で指定された使用フォント情報に基づく定数を乗
算する。このデータは、例えば1バイトのデータで、C
G・ROM104−1〜104−3(CG・ROMデー
タ量103−1の場合)、又はCG・ROM104−4
〜104−6(CG・ROMデータ量103−2の場
合)に記憶されているアドレスの関係を表した数値であ
る。いま例えば、CG・ROM104−3が使用フォン
トであるとすると、CG・ROMデータ量103−1の
データに“2”を乗算したデータがCG・ROM104
−3の先頭アドレスとなる。また、CG・ROMテーブ
ル105−1の内容は、CG・ROM104−1〜10
4−3の各フォントデータのROM内におけるアドレス
を示しているが、そのアドレスは、各文字コードに対応
するフォントアドレスである。即ち、例えばCG・RO
M104−1〜104−3いずれの書体のフォントデー
タを使用する場合にも、CG・ROMテーブル105−
1の内容を使用する。そして、どの書体のフォントデー
タを使用するかは、CG・ROMデータ量103−1の
データを使用して決定する。こうして得られたフォント
データを伸長して印刷する手順は前述の実施例と同様で
ある。
The CPU 101 determines the CG / ROM data amount 103-1 or 10 depending on the character code and the font information.
Data is selected from 3-2, and this data is multiplied by a constant based on the used font information specified by the typeface information. This data is, for example, 1-byte data, and is C
G-ROM 104-1 to 104-3 (in the case of CG-ROM data amount 103-1) or CG-ROM 104-4
It is a numerical value showing the relationship of the addresses stored in 104-4 (in the case of CG / ROM data amount 103-2). For example, assuming that the CG / ROM 104-3 is the font used, the data obtained by multiplying the data of the CG / ROM data amount 103-1 by “2” is CG / ROM 104-3.
-3 is the start address. The contents of the CG / ROM table 105-1 are CG / ROMs 104-1 to 10-4.
The address of each font data 4-3 in the ROM is shown, and the address is a font address corresponding to each character code. That is, for example, CG / RO
When using the font data of any of the M104-1 to 104-3 fonts, the CG / ROM table 105-
Use the contents of 1. Then, which typeface font data to use is determined by using the data of the CG / ROM data amount 103-1. The procedure for decompressing and printing the font data thus obtained is the same as in the above-described embodiment.

【0041】以上の処理を繰り返し、ホストコンピュー
タ109から送られてくるデータを描画バッファ106
に展開して記憶し、また、ホストコンピュータ109か
ら途中でフォントの種類を変更するコマンドが入力され
ると、その場合はCG・ROMデータ量103−1また
は103−2を参照して、対応するCG・ROMを選択
して、文字コードを指定された文字パターンに展開す
る。
By repeating the above processing, the data sent from the host computer 109 is transferred to the drawing buffer 106.
When a command for changing the font type is input from the host computer 109 in the middle, the CG / ROM data amount 103-1 or 103-2 is referred to and the corresponding Select CG / ROM and expand the character code into the specified character pattern.

【0042】以上説明した様に、ホストコンピュータ1
09から送られてくる印刷データに対し、所望のフォン
トデータを用いてパターン展開して印刷できる。
As described above, the host computer 1
With respect to the print data sent from 09, pattern development can be performed using desired font data and printing can be performed.

【0043】図6はCG・ROMテーブル105−1、
CG・ROMテーブル105−2およびCG・ROM1
04−1〜104−6との関連を表した図である。
FIG. 6 shows a CG / ROM table 105-1.
CG / ROM table 105-2 and CG / ROM 1
It is a figure showing the relation with 04-1 to 104-6.

【0044】初期状態では、前述の実施例と同様に、C
G・ROM104−1が選択されており、今例えば漢字
「愛」の文字ーコードが入力されると、CG・ROM1
04−1が選択されているために、CG・ROMデータ
量103−1に記憶されているデータを参照することな
く、CG・ROMテーブル105−1を参照して、漢字
「愛」の圧縮されているフォントデータが格納されてい
るCG・ROM104−1のアドレスを求める。そし
て、そのアドレスより、圧縮された漢字「愛」のフォン
トデータを読出してフォント伸張回路107に転送し、
ビットマップデータに伸張した上で描画バッファ106
に記憶する。
In the initial state, as in the previous embodiment, C
If the G-ROM 104-1 is selected and the character-code of the kanji "love" is entered, for example, the CG-ROM1
Since 04-1 is selected, the Chinese character “love” is compressed by referring to the CG / ROM table 105-1 without referring to the data stored in the CG / ROM data amount 103-1. Then, the address of the CG / ROM 104-1 in which the font data is stored is obtained. Then, the compressed font data of the Chinese character "love" is read from the address and transferred to the font expansion circuit 107,
Drawing buffer 106 after decompressing to bitmap data
To memorize.

【0045】次に、例えば書体(フォント)が変更さ
れ、CG・ROM104−5が選択されたとすると、C
G・ROMデータ量103−2のデータに“1”を乗算
してアドレスを求め、このアドレスをCG・ROMテー
ブル105−2のオフセットデータとして使用する。こ
こで同様に、漢字「愛」の文字コードを受信すると、C
G・ROMテーブル105−2にCG・ROMデータ量
103−2のデータに“1”を乗算したオフセットデー
タから、漢字「愛」の圧縮されているフォントデータが
格納されているアドレスを求める。
Next, for example, if the font (font) is changed and CG / ROM 104-5 is selected, C
The data of the G / ROM data amount 103-2 is multiplied by "1" to obtain the address, and this address is used as the offset data of the CG / ROM table 105-2. Similarly, when the character code of the Chinese character "love" is received, C
From the offset data obtained by multiplying the data of the CG / ROM data amount 103-2 in the G / ROM table 105-2 by “1”, the address at which the compressed font data of the Chinese character “love” is stored is obtained.

【0046】そして、このアドレスに対応する、図中C
G・ROM#5の401−5より、圧縮された漢字
「愛」のフォントデータを読出してフォント伸張回路1
07に伝送する。こうしてビットマップデータに伸張し
た後、描画バッファ108に記憶する。この実施例にお
いても、CG・ROM104−1〜104−3の中、圧
縮率が一番最低いフォントがCG・ROM104−3と
すると、他のフォントCG・ROMのデータ量(アドレ
ス)を、このROMと同じにするために、図中白抜き部
分で示すように、“0”等の無関係データが記憶されて
いる。
Then, C in the figure corresponding to this address
The font expanding circuit 1 reads the compressed font data of the Chinese character "love" from the ROM 401-5 of the G-ROM # 5.
It transmits to 07. After decompressing the bitmap data in this way, it is stored in the drawing buffer 108. Also in this embodiment, assuming that the font with the lowest compression rate among the CG-ROMs 104-1 to 104-3 is the CG-ROM 104-3, the data amount (address) of another CG-ROM is In order to make it the same as that of the ROM, irrelevant data such as "0" is stored as shown by the blank portion in the figure.

【0047】以上説明したように本実施例によれば、C
G・ROMデータ量103のデータは2つであり、使用
するフォントによりCG・ROM104−1又はCG・
ROM104−4を先頭とするアドレスよりデフォルト
として求めている。
As described above, according to this embodiment, C
There are two data of G / ROM data amount 103. Depending on the font used, CG / ROM 104-1 or CG / ROM
It is obtained as a default from an address starting from the ROM 104-4.

【0048】以上説明したように本実施例によれば、複
数のフォントに対してCG・ROMデータ量103のデ
ータと、共通に使用できるCG・ROMテーブル105
だけで、全ての文字コードの、各書体に対応するフォン
トアドレスを算出することが可能となり、CG・ROM
104にデータ量を削減することができる。
As described above, according to this embodiment, the data of the CG / ROM data amount 103 for a plurality of fonts and the CG / ROM table 105 that can be used in common are used.
It is possible to calculate the font address corresponding to each typeface of all the character codes just by
The amount of data can be reduced to 104.

【0049】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置に本発明
を実施するプログラムを供給することによって達成され
る場合にも適用できる。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. The present invention can also be applied to the case where it is achieved by supplying a program for implementing the present invention to a system or an apparatus.

【0050】以上説明したように本実施例によれば、圧
縮率がほぼ一致しているフォントデータを1つのグルー
プにして1つのCG・ROMテーブルとすることによ
り、CG・ROMのデータ量を削減することが可能であ
り、電気実装やコストのメリットがある。
As described above, according to the present embodiment, font data whose compression ratios are substantially the same is grouped into one CG / ROM table to reduce the amount of CG / ROM data. It is possible, and there is a merit of electrical mounting and cost.

【0051】[0051]

【発明の効果】以上説明したように本発明によれば、コ
ード情報に対応するパターンを効率良く読み出してパタ
ーン展開できる効果がある。
As described above, according to the present invention, the pattern corresponding to the code information can be efficiently read and the pattern can be developed.

【0052】また本発明によれば、圧縮されて記憶され
ているパターンデータをコード情報に基づいて読み出
し、伸長して出力できる効果がある。
Further, according to the present invention, there is an effect that the compressed and stored pattern data can be read out based on the code information, expanded and output.

【0053】また本発明によれば、少ないメモリ空間に
記憶されているフォントデータを効率良く読み出してパ
ターン展開できる効果がある。
Further, according to the present invention, there is an effect that font data stored in a small memory space can be efficiently read out and a pattern can be developed.

【0054】[0054]

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

【図1】本発明の第1実施例のプリンタ装置の制御部の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a control unit of a printer device according to a first embodiment of the present invention.

【図2】本発明の第1実施例に関するフォントデータの
検索処理を説明する図である。
FIG. 2 is a diagram illustrating a font data search process according to the first embodiment of the present invention.

【図3】本実施例のプリンタ装置の構成を示す構造断面
図である。
FIG. 3 is a structural cross-sectional view showing the configuration of the printer device of the present embodiment.

【図4】本実施例のプリンタ装置における1ページのプ
リント処理を示すフローチャートである。
FIG. 4 is a flowchart showing a printing process for one page in the printer device of the present embodiment.

【図5】本発明の第2実施例のプリンタ装置の制御部の
構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a control unit of a printer device according to a second embodiment of the present invention.

【図6】本発明の第2実施例に関するフォントデータの
検索処理を説明する図である。
FIG. 6 is a diagram illustrating a font data search process according to the second embodiment of the present invention.

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

101 CPU 102 RAM 103 RROM 103−1 CG・ROMデータ量 104 CG・ROM 105 CG・ROM_テーブル 106 描画バッファ 107 フォント伸張回路 1000 プリンタ装置(LBP) 1001 プリンタ制御ユニット 101 CPU 102 RAM 103 RROM 103-1 CG / ROM data amount 104 CG / ROM 105 CG / ROM_table 106 Drawing buffer 107 Font expansion circuit 1000 Printer device (LBP) 1001 Printer control unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 17/21 G06T 9/00 G06F 15/66 330 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 17/21 G06T 9/00 G06F 15/66 330 A

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 コード情報を入力し対応するパターン情
報に展開して出力するパターン発生装置であって、 複数のパターン情報を所定のカテゴリー毎に圧縮して記
憶する記憶手段と、 前記記憶手段に記憶されている前記カテゴリー毎のパタ
ーンアドレス情報を記憶するアドレス記憶手段と、 前記コード情報に対応するカテゴリー情報を入力して、
当該カテゴリー情報に対応するアドレスを前記パターン
アドレス情報に基づいて決定する決定手段と、 前記決定手段により決定された前記アドレスと前記コー
ド情報とに基づいて前記コード情報に対応する圧縮パタ
ーン情報の格納アドレスを求めて前記記憶手段より読み
出す読出手段と、 前記読出手段により読み出された圧縮パターン情報を伸
張して前記コード情報に対応するパターン情報を発生す
る伸張手段と、を有することを特徴とするパターン発生
装置。
1. A pattern generator for inputting code information, expanding the pattern information into corresponding pattern information, and outputting the pattern information, wherein the storing means stores a plurality of pattern information by compressing the pattern information into predetermined categories and storing the compressed pattern information. An address storage unit that stores the stored pattern address information for each category, and input the category information corresponding to the code information,
Determining means for determining an address corresponding to the category information based on the pattern address information, and a storage address of the compressed pattern information corresponding to the code information based on the address and the code information determined by the determining means And a decompressing unit for decompressing the compressed pattern information read by the reading unit to generate pattern information corresponding to the code information. Generator.
【請求項2】 前記コード情報は文字コードを含み、前
記カテゴリー情報は当該文字の書体情報を含むことを特
徴とする請求項1に記載のパターン発生装置。
2. The pattern generating apparatus according to claim 1, wherein the code information includes a character code, and the category information includes typeface information of the character.
【請求項3】 前記記憶手段は、各コードに対応する圧
縮パターン情報を、各カテゴリー毎に同じ相対アドレス
に記憶していることを特徴とする請求項1に記載のパタ
ーン発生装置。
3. The pattern generation device according to claim 1, wherein the storage means stores the compression pattern information corresponding to each code at the same relative address for each category.
【請求項4】 前記パターンアドレス情報は、各カテゴ
リーに対応する圧縮パターン情報の先頭アドレスである
ことを特徴とする請求項1に記載のパターン発生装置。
4. The pattern generating apparatus according to claim 1, wherein the pattern address information is a start address of compressed pattern information corresponding to each category.
【請求項5】 コード情報を入力し対応するパターン情
報に展開して出力するパターン発生方法であって、 複数のパターン情報を所定のカテゴリー毎に圧縮して記
憶するとともに、記憶されているカテゴリー毎のパター
ンアドレス情報を記憶する工程と、 コード情報に対応するカテゴリー情報を入力して、当該
カテゴリー情報に対応するアドレスを前記パターンアド
レス情報に基づいて決定する工程と、 その決定された前記アドレスと前記コード情報とに基づ
いて前記コード情報に対応する圧縮パターン情報の格納
アドレスを求めて読み出す工程と、 その読み出された圧縮パターン情報を伸張して前記コー
ド情報に対応するパターン情報を発生する工程と、を有
することを特徴とするパターン発生方法。
5. A pattern generation method for inputting code information, expanding the corresponding pattern information and outputting the same, wherein a plurality of pattern information is compressed and stored for each predetermined category, and each stored category is stored. Storing the pattern address information, and inputting the category information corresponding to the code information, and determining the address corresponding to the category information based on the pattern address information, the determined address and the A step of obtaining and reading a storage address of the compressed pattern information corresponding to the code information based on the code information; and a step of expanding the read compressed pattern information to generate pattern information corresponding to the code information. A method for generating a pattern, comprising:
【請求項6】 前記コード情報は文字コードを含み、前
記カテゴリー情報は当該文字の書体情報を含むことを特
徴とする請求項5に記載のパターン発生方法。
6. The pattern generation method according to claim 5, wherein the code information includes a character code, and the category information includes typeface information of the character.
【請求項7】 各コードに対応する圧縮パターン情報
は、各カテゴリー毎に同じ相対アドレスに記憶されてい
ることを特徴とする請求項5に記載のパターン発生方
法。
7. The pattern generating method according to claim 5, wherein the compression pattern information corresponding to each code is stored at the same relative address for each category.
JP6201892A 1994-08-26 1994-08-26 Pattern generating method and device therefor Withdrawn JPH0863145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6201892A JPH0863145A (en) 1994-08-26 1994-08-26 Pattern generating method and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6201892A JPH0863145A (en) 1994-08-26 1994-08-26 Pattern generating method and device therefor

Publications (1)

Publication Number Publication Date
JPH0863145A true JPH0863145A (en) 1996-03-08

Family

ID=16448563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6201892A Withdrawn JPH0863145A (en) 1994-08-26 1994-08-26 Pattern generating method and device therefor

Country Status (1)

Country Link
JP (1) JPH0863145A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012147061A (en) * 2011-01-07 2012-08-02 Yamaha Corp Data structure and access method of font set compression data
JP2018027110A (en) * 2016-08-15 2018-02-22 株式会社ユニバーサルエンターテインメント Game machine
JP2019171110A (en) * 2019-06-04 2019-10-10 株式会社ユニバーサルエンターテインメント Game machine
JP2021130057A (en) * 2017-05-23 2021-09-09 株式会社ユニバーサルエンターテインメント Game machine
JP2022000228A (en) * 2020-07-15 2022-01-04 株式会社ユニバーサルエンターテインメント Game machine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012147061A (en) * 2011-01-07 2012-08-02 Yamaha Corp Data structure and access method of font set compression data
JP2018027110A (en) * 2016-08-15 2018-02-22 株式会社ユニバーサルエンターテインメント Game machine
JP2021130057A (en) * 2017-05-23 2021-09-09 株式会社ユニバーサルエンターテインメント Game machine
JP2019171110A (en) * 2019-06-04 2019-10-10 株式会社ユニバーサルエンターテインメント Game machine
JP2022000228A (en) * 2020-07-15 2022-01-04 株式会社ユニバーサルエンターテインメント Game machine

Similar Documents

Publication Publication Date Title
JP3297445B2 (en) Output method and device
US6016155A (en) Character processing apparatus, character processing method, and memory
JPH05318838A (en) Image forming device and formation thereof
JPH0863145A (en) Pattern generating method and device therefor
JPH06106810A (en) Method for forming image and its device
KR960010410B1 (en) Output method and apparatus
JP2973260B2 (en) Print information processing device
JPH09331434A (en) Image forming device
JP3203660B2 (en) Image recording device
JP3204136B2 (en) Image processing apparatus and compression processing method
JP3110870B2 (en) Pattern generation method and apparatus
JP3143520B2 (en) Character processing apparatus and method
JP3009552B2 (en) Image forming method and apparatus
JPH04323058A (en) Output method and apparatus
JPH0911552A (en) Page printer
JP2000033730A (en) Printer, control thereof and printing system
JP2790198B2 (en) Output control method and device
JP2737880B2 (en) Character processing apparatus and method
JPH07137355A (en) Image processor
JP2942118B2 (en) Output control method
JPH08282024A (en) Printing device
JPH01173094A (en) Image output device having character indicator
JPH0924642A (en) Method and apparatus for processing character
JP2002132466A (en) Image output unit, image output system, image processing method and storage medium
JPH05281946A (en) Method and device for character output

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011106