JPH0321468A - Printer controller - Google Patents
Printer controllerInfo
- Publication number
- JPH0321468A JPH0321468A JP1260743A JP26074389A JPH0321468A JP H0321468 A JPH0321468 A JP H0321468A JP 1260743 A JP1260743 A JP 1260743A JP 26074389 A JP26074389 A JP 26074389A JP H0321468 A JPH0321468 A JP H0321468A
- Authority
- JP
- Japan
- Prior art keywords
- font
- storage means
- stored
- character
- printing
- 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
Links
- 238000000034 method Methods 0.000 claims abstract description 53
- 230000006837 decompression Effects 0.000 claims description 7
- 230000006835 compression Effects 0.000 claims description 4
- 238000007906 compression Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 abstract description 108
- 230000008569 process Effects 0.000 description 48
- 238000010586 diagram Methods 0.000 description 24
- 238000011161 development Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 108091008695 photoreceptors Proteins 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 235000012976 tarts Nutrition 0.000 description 1
- 125000000391 vinyl group Chemical group [H]C([*])=C([H])[H] 0.000 description 1
- 229920002554 vinyl polymer Polymers 0.000 description 1
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Fax Reproducing Arrangements (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は複数の印字モードで印字可能なプリンタの制
御装置に関し、特に各印字モードにおける印字されるべ
き文字の展開処理にかかわるプリンタ制御装置に関する
ものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a printer control device capable of printing in a plurality of print modes, and particularly relates to a printer control device that is involved in processing of developing characters to be printed in each print mode. It is something.
[従来の技術]
近年、多機能なプリンタが普及している。このためプリ
ントアウトされるフォーマットとして種々の型式を選択
することができる。通常このフォーマットの指定は送信
されるデータとともに送られる制御コマンドに基づいて
設定されることが多い。あるいは、制御コマンドが送信
されない場合には、プリンタ側に格納されている制御コ
マンドのデフォルト値によって印字のフォーマットの指
定がされたり、ユーザによる人力によってフォーマット
指定がされていた。[Prior Art] Multifunctional printers have become popular in recent years. Therefore, various formats can be selected as the printout format. Normally, this format specification is often set based on a control command sent with the data to be transmitted. Alternatively, when a control command is not transmitted, the printing format is specified by a default value of a control command stored on the printer side, or the format is specified manually by the user.
[発明が解決しようとする課題]
一般にプリンタ制御装置は複数のフォントを内蔵し、そ
のうちのいずれかのフォントが指定されて印字が行なわ
れる。このフォントの中には、ビットマップフォントと
呼ばれるフォントを忠実にドット化したもの(第IA図
)と、フォントの輪郭のみを表わしたアウトラインフォ
ント(ベクターフォント)(第IB図)などがある。ア
ウトラインフォントにおいては、フォントの輪郭が数値
または数式で表わされ、印字時にまず輪郭が描画され、
その後輪郭の内部が塗りつぶされる。フォントの拡大、
縮小が自由に行なわれ得るという長所がある。[Problems to be Solved by the Invention] Generally, a printer control device includes a plurality of fonts, and printing is performed by specifying one of the fonts. Among these fonts, there are fonts called bitmap fonts that are faithfully converted into dots (Fig. IA), and outline fonts (vector fonts) that express only the outline of the font (Fig. IB). In outline fonts, the outline of the font is expressed by a numerical value or mathematical formula, and when printing, the outline is first drawn,
The inside of the outline is then filled in. enlarge font,
It has the advantage that reduction can be carried out freely.
上記のような従来のプリンタ制御装置では、たとえばア
ウトラインフォントをデータ圧縮して記憶した場合、伸
張する時間が必要となり印字能力が低下する。また予め
すべてのフォントを伸張し、その伸張されたデータをメ
モリに記憶するには必要なメモリの容量が大きすぎる。In the conventional printer control device as described above, for example, when an outline font is compressed and stored, time is required to decompress the data, resulting in a decrease in printing performance. Furthermore, the required memory capacity is too large to decompress all fonts in advance and store the decompressed data in memory.
特開昭62−264377号公報よれば、文字パターン
がポイントlit位あるいは文字111位ごとに圧縮し
て格納され、特定のサイズのものあるいは、特定の文字
ごとに圧縮フォントデータメモリから元の文字へ展開処
理がなされている。According to Japanese Unexamined Patent Publication No. 62-264377, character patterns are compressed and stored in units of point lit or character 111, and data of a specific size or specific character is transferred from the compressed font data memory to the original character. Expansion processing is being performed.
しかし上記方法によれば、メモリ容量は小さくなるが、
印字を行なうごとにデータを伸張することが必要となり
、したがって処理速度も速くすることができないという
問題点がある。However, according to the above method, although the memory capacity becomes smaller,
There is a problem in that it is necessary to expand the data each time printing is performed, and therefore the processing speed cannot be increased.
特に近年普及が急速に進んでいるDTP (Desk
Top Publishing)では、処理速度は
大きな問題となっており、高速化のために高価なハード
ウェアが必要とされている。In particular, DTP (Desk) has become rapidly popular in recent years.
In Top Publishing, processing speed is a big issue, and expensive hardware is required to increase the speed.
この発明は上記のような問題点を解消するためになされ
たもので、少ないメモリ容量でかつ高速処理のできるプ
リンタ制御装置を提供することである。The present invention was made to solve the above-mentioned problems, and it is an object of the present invention to provide a printer control device that has a small memory capacity and can perform high-speed processing.
[課題を解決するための手段]
この発明にかかる指定された文字パターンならびに指定
および切換がh1能な複数の印字モードで印字が可能な
プリンタのプリンタ制御装置は、複数の文字パターンを
所定の方法で圧縮した文字パターン用データを記憶する
ための第1記憶手段と、圧縮された文字パターン用デー
タを圧縮前の元のパターンに伸張するための伸張手段と
、元のパターンに慎重された文字パターンを記憶するた
めの第2記憶手段と、元のパターンに伸張された文字を
印字するための印字手段と、印字モードの切換時に、予
め定められた印字モードに応じて第lの記憶手段に記憶
された予め定められた文字パターンを伸張して第2の記
憶手段に記憶するための手段と、指定された文字パター
ンが第2の記憶手段に記憶されている文字パターンか否
かを判定するための判定手・段と、指定された文字パタ
ーンが第2のfc!憶手段に記憶されている場合にはそ
れを印字し、指定された文字パターンが第2の記憶手段
に記憶されていない場合には、第1記憶手段に記憶され
た圧縮データを伸張し、第2の記憶手段に記憶した後印
字するように制御するための制御手段とを備えたもので
ある。[Means for Solving the Problems] A printer control device for a printer capable of printing in a specified character pattern and a plurality of print modes that can be specified and switched h1 according to the present invention prints a plurality of character patterns in a predetermined manner. a first storage means for storing the compressed character pattern data; a decompressing means for decompressing the compressed character pattern data into the original pattern before compression; and a character pattern that is carefully modified from the original pattern. a second storage means for storing characters, a printing means for printing characters expanded into the original pattern, and a first storage means for storing characters according to a predetermined printing mode when switching the printing mode. means for decompressing and storing the specified character pattern in the second storage means; and means for determining whether the specified character pattern is a character pattern stored in the second storage means. and the specified character pattern is the second fc! If the specified character pattern is stored in the storage means, it is printed, and if the specified character pattern is not stored in the second storage means, the compressed data stored in the first storage means is decompressed, and the specified character pattern is printed. and a control means for controlling printing after storing the information in the second storage means.
さらにこの発明の他の局面においては、指定された文字
パターン、ならびに指定および切換が可能な複数の印字
モードで印字が可能なプリンタのプリンタ制御装置は、
複数の文字パターンを所定の方法で圧縮した文γパター
ン用データを記憶するための第1記憶手段と、圧縮され
た文字パターン用データを圧縮前の元のパターンに伸張
するための伸張手段と、元のパターンに伸張された文字
パターンを記憶するための第2記憶手段と、元のパター
ンに伸張された文字を印字するための印字手段と、印字
モードに応じて予め伸張されるべき文字パターンおよび
そのうちの特定の文字が定められており、印字モードの
切換時に、予め定められた印字モードに応じて第1記憶
手段に記憶された予め定められた特定の文字の文字パタ
ーンを仲張して第2の記憶手段に記憶するための手段と
、指定された特定の文字の文字パターンが第2の記憶手
段に記憶されている文字の文字パターンか否かを判定す
るための判定手段と、指定された特定の文字の文字パタ
ーンが第2の記憶手段に記憶されている場合にはそれを
印字し、指定された特定の文字パターンが第2の記憶手
段に記憶されていない場合には、第1記憶手段に記憶さ
れた圧縮データを伸張し、第2の記憶手段に記憶した後
印字するように制御するための制御手段とを含む。Furthermore, in another aspect of the invention, a printer control device for a printer capable of printing in a specified character pattern and a plurality of print modes that can be specified and switched includes:
a first storage means for storing sentence γ pattern data obtained by compressing a plurality of character patterns in a predetermined manner; a decompression means for decompressing the compressed character pattern data into the original pattern before compression; a second storage means for storing the character pattern expanded into the original pattern; a printing means for printing the character pattern expanded into the original pattern; a character pattern to be expanded in advance according to the printing mode; A specific character among them is determined, and when switching the print mode, the character pattern of the predetermined specific character stored in the first storage means is intermediated according to the predetermined print mode, and the first means for storing in the second storage means, determination means for determining whether the character pattern of the designated specific character is the character pattern of the characters stored in the second storage means; If the specified character pattern is stored in the second storage means, it is printed, and if the specified character pattern is not stored in the second storage means, it is printed. and control means for controlling the compressed data stored in the storage means to be expanded, stored in the second storage means, and then printed.
[作用コ
この発明においては、印字モードごとに予め定められた
使用頻度が高いアウトラインフォントが予めメモリ上に
伸張され記憶される。そしてプリンタが印字するときに
、予め伸張され、記憶されたアウトラインフォントが選
択されたか否かが判定され、それが選択されたときには
、再度メモリ上に選択された文字を展開することなく直
ちに印字が行なわれる。[Operations] In the present invention, frequently used outline fonts predetermined for each print mode are expanded and stored in the memory in advance. When the printer prints, it is determined whether an outline font that has been expanded and stored in advance has been selected, and when it is selected, printing is performed immediately without expanding the selected characters in memory again. It is done.
この発明の他の局面においては、印字モードごとに予め
定められた使用頻度が高い特定の文字のアウトラインフ
ォントが予めメモリ上に伸張され記憶される。そしてプ
リンタが印字するときに、予め伸張され、記憶された特
定の文字のアウトラインフォントが選択されたか否かが
判定され、それが選択されたときには、再度メモリ上に
選択された文字を展開することなく直ちに印字が行なわ
れる。In another aspect of the invention, an outline font of a specific frequently used character predetermined for each printing mode is expanded and stored in the memory in advance. Then, when the printer prints, it is determined whether the outline font of a specific character that has been expanded and stored in advance has been selected, and when it is selected, the selected character is expanded onto the memory again. Printing will be performed immediately.
[実施例]
(1) 第1の実施例
第2図は、この発明の一実施例であるグラフィック描画
の可能なプリンタシステムによる処理システムの構成図
である。汎用のデータ処理装置1からのデータは、デー
タ処理装置1のスルーブットを改善するため、外部のフ
ァイルバッファ2にバスB1を介して一旦格納された後
、プリンタシステム10に出力される。[Embodiments] (1) First Embodiment FIG. 2 is a block diagram of a processing system using a printer system capable of drawing graphics, which is an embodiment of the present invention. In order to improve the throughput of the data processing apparatus 1, data from the general-purpose data processing apparatus 1 is temporarily stored in an external file buffer 2 via the bus B1, and then output to the printer system 10.
プリンタシステム10は、ビットマップ方式のデータ処
理装置3と、電子写真プロセスとレーザとを用いたプリ
ントエンジン4と、外部給紙ユニット5やソータ6等の
付属装置とからなる。The printer system 10 includes a bitmap data processing device 3, a print engine 4 using an electrophotographic process and a laser, and accessory devices such as an external paper feed unit 5 and a sorter 6.
第3図は第2図にて示したプリンタシステム10の外観
を示す斜視図である。FIG. 3 is a perspective view showing the appearance of the printer system 10 shown in FIG. 2.
図において、プリントエンジン4は、上記のビットマッ
プ方式データ処理装置3を内蔵しており、アクセサリと
しての外部給紙ユニット5と、ソータ6とが装着されて
いる。また、プリントエンジン4の上部前面には、シス
テムの状態を示す表示や簡t11な操作を行なうための
人力キーが配置された操作バネル44が装着されている
。In the figure, a print engine 4 incorporates the bitmap data processing device 3 described above, and is equipped with an external paper feed unit 5 and a sorter 6 as accessories. Further, an operation panel 44 is attached to the upper front surface of the print engine 4, on which a display indicating the status of the system and manual keys for performing simple operations are arranged.
第4図は、第2図にて示したプリンタシステム内のビッ
トマップ方式データ処理装置3とプリントエンジン4の
概略ブロック図である。FIG. 4 is a schematic block diagram of the bitmap data processing device 3 and print engine 4 in the printer system shown in FIG.
以下、図を参照してその構成について説明する。The configuration will be explained below with reference to the drawings.
ビットマップ方式データ処理装置3は、ビットマップ制
御部(BMC)30と、ビットマップ用のビットマップ
RAM (BM−RAM)と、このBM−RAM32に
描画を行なうビットマップ書込部(BMW)31と、ア
ウトラインフォントのような圧縮フォントが格納されて
いるフォント部33と伸張されたフォントが格納される
フォントRAM34とからなる。なお、フォント部33
に記憶された圧縮フォントは、ビットマップ制御部30
により伸張され、フォントRAM34に記憶される。プ
リントエンジン4との接続は、制御データ(プリント枚
数、アクセサリ制御など)用のバスB3とイメージデー
タ用のバスB4により行なう。また、外部のデータ処理
装置側との接続は、バスB2により行なう。The bitmap data processing device 3 includes a bitmap control unit (BMC) 30, a bitmap RAM (BM-RAM) for bitmaps, and a bitmap writing unit (BMW) 31 that performs drawing on this BM-RAM 32. It consists of a font section 33 in which compressed fonts such as outline fonts are stored, and a font RAM 34 in which decompressed fonts are stored. In addition, the font section 33
The compressed font stored in the bitmap control unit 30
, and stored in the font RAM 34. Connection with the print engine 4 is made through a bus B3 for control data (number of prints, accessory control, etc.) and a bus B4 for image data. Furthermore, connection with an external data processing device is made via bus B2.
プリントエンジン4は3つの制御部を中心に構威される
。まず、インターフェイス制御部(IFC)40は、ビ
ットマップ制御部30からの制御データの処理、操作パ
ネル制御、および内部バスB5を通じてプリントエンジ
ン4全体のタイミングの制御を行なう。電子写真制御部
41は、内部バスB5を通じてインターフエイス制御部
40から送られるデータに応じて、電子写真プロセス部
45の制御を行なう。The print engine 4 is mainly composed of three control sections. First, the interface control section (IFC) 40 processes control data from the bitmap control section 30, controls the operation panel, and controls the overall timing of the print engine 4 via the internal bus B5. The electrophotographic control section 41 controls the electrophotographic processing section 45 in accordance with data sent from the interface control section 40 through the internal bus B5.
プリントヘッド制御部(PHC)42には、内部バスB
4を通じてビットマップ書込部31から送られてくるイ
メージデータを書込むため、内部バスB5を通じてイン
ターフエイス制御部40から送られてくる情報に従って
、プリントヘッド部43の半導体レーザの発光やボリゴ
ン・モータの回転を制御する。The print head control unit (PHC) 42 has an internal bus B.
In order to write the image data sent from the bitmap writing section 31 through the internal bus B5, the semiconductor laser of the print head section 43 emit light and the polygon motor control the rotation of
また、外部給紙ユニット5やソータ6も、内部バスB5
を通じてインターフエイス制御部40から制御される。In addition, the external paper feed unit 5 and the sorter 6 are also connected to the internal bus B5.
It is controlled by the interface control unit 40 through.
以上に説明したプリンタシステム10は、ビットマップ
方式のレーザプリンタである。データ処理装置から送ら
れてくる印字データ(ほとんどはコードで表わされる)
は、ビットマップ方式処理装置3のBM−RAM32上
に丈際の印字イメージとして展開され、プリントエンジ
ン4に出力される。プリントエンジン4では、ビヅトマ
ツプ方式データ処理装置3からのデータに応じてレーザ
光を変調して感光体上に記録し、外部給紙ユニット5か
ら給紙される記録紙に転写する。The printer system 10 described above is a bitmap type laser printer. Print data sent from a data processing device (mostly expressed as a code)
is expanded on the BM-RAM 32 of the bitmap processing device 3 as a printed image of the length edge, and outputted to the print engine 4. The print engine 4 modulates the laser beam according to the data from the Vizutomap type data processing device 3, records the data on the photoreceptor, and transfers the data onto recording paper fed from the external paper feeding unit 5.
データ処理装置1から送られてくるデータには、印字デ
ータのほかに、書式の制御やプリントエンジンのモード
設定を行なうコードも含まれる。The data sent from the data processing device 1 includes not only print data but also codes for format control and print engine mode settings.
ビットマップ方式データ処理装置3では、印字データの
ほかにこれらのプロトコルの解析も行ない、書式の制御
や必要に応じてプリントエンジン4へ通紙やオプション
のモード変更等の指示を出す。プリントエンジン4では
、上記の記録制御のほかに、それに伴う電子写真系の制
御、記録紙のタイミング制御、さらに他のオプションへ
の通紙に同期した処理を行なう。プリントエンジン4の
制御は操作系を除いて、一般の電子写真複写機と同様で
ある。The bitmap data processing device 3 analyzes these protocols in addition to the print data, controls the format, and issues instructions to the print engine 4 to feed paper, change optional modes, etc. as necessary. In addition to the recording control described above, the print engine 4 performs associated electrophotographic control, recording paper timing control, and processing synchronized with paper feeding to other options. Control of the print engine 4 is similar to that of a general electrophotographic copying machine except for the operation system.
第5図は、第4図にて示したビットマップ制御部30の
ブロック図である。FIG. 5 is a block diagram of the bitmap control section 30 shown in FIG. 4.
以下、図を参照してのその構成について説明する。The configuration will be described below with reference to the drawings.
ビットマップ制御部30は、内部バスB301で接続さ
れたいくつかのブロックから構成される。The bitmap control unit 30 is composed of several blocks connected by an internal bus B301.
BM−CPU301は、ビットマップ方式データ処理装
置3のψ心となる制御部であり、データ処理装置インタ
ーフエイス308を通じてデータ処理装置1や外部のフ
ァイルバッファ2との通信を行なう。また、プリントデ
ータを変換し、ビットマップ書込部インターフエイス3
06を通じて、ビットマップ書込部31を制御し、プリ
ントエンジンインターフエイス307を通じてプリント
エンジン4をも制御する。SYS−ROM302は、B
M−CPU301のプログラムを記憶する。SYS−R
AM303は、BM−CPU301の作業用記憶エリア
であり、スタックや凰本フラグの記憶に用いる。The BM-CPU 301 is a central control unit of the bitmap data processing device 3 and communicates with the data processing device 1 and the external file buffer 2 through the data processing device interface 308. It also converts the print data and uses the bitmap writing section interface 3.
The bitmap writing unit 31 is controlled through the print engine interface 307, and the print engine 4 is also controlled through the print engine interface 307. SYS-ROM302 is B
Stores the program of M-CPU 301. SYS-R
AM303 is a working storage area of the BM-CPU 301, and is used for storing stacks and bookmark flags.
R−バッファ304は、外部(データ処理装置1やファ
イルバッファ2)との通信用バッファであり、BM−C
PU301の処理プログラムとデータ処理装置1との通
信を非同期でも処理化可能にすることを目的とする。The R-buffer 304 is a buffer for communication with the outside (data processing device 1 and file buffer 2).
The purpose is to enable communication between the processing program of the PU 301 and the data processing device 1 to be processed even asynchronously.
バケツトバッファ(以下、P−バッフ7と略す)305
は、データ処理装置1からのデータを、フォントの属性
から変換した、BM−RAM32への描画容易な・中間
コード(以下パケットと記す)として5己憶する。Bucket buffer (hereinafter abbreviated as P-buffer 7) 305
stores the data from the data processing device 1 as an intermediate code (hereinafter referred to as a packet) that is easy to draw in the BM-RAM 32 and is converted from the font attributes.
フォントの実際の描画はビットマップ書込部31で行な
われるが、ビットマップ書込部31への情報としては、
フォントのパターン内蔵アドレスや、BM−RAM32
への描画アドレス等のパラメータを計算する必要がある
が、これには所定の時間がかかる。そこで、BM−RA
M32のデータをプリント中に、次のページのデータを
前処理しておくことにより、処理の高速化を図るもので
ある。そのため、P−バッファ305内のデータの動き
は、FIFO(ファーストイン・ファーストアウト)と
なっている。The actual drawing of the font is performed by the bitmap writing section 31, but the information to the bitmap writing section 31 is as follows.
Font pattern built-in address and BM-RAM32
It is necessary to calculate parameters such as the drawing address for the image, but this takes a certain amount of time. Therefore, BM-RA
By pre-processing the data of the next page while the data of M32 is being printed, processing speed is increased. Therefore, the movement of data within the P-buffer 305 is FIFO (first in, first out).
F−バッファ309は、この発明による制御データの指
定に関する指定内容を.fc!憶しているメモリであっ
て、不揮発性RAMよりなる。すなわち、F−バッファ
の内容は電源をオフにしても失われることはない。また
、指定内容以外の他の制御データは、SYS−RAM3
03に記憶される。The F-buffer 309 stores specification contents regarding control data specification according to the present invention. fc! This memory is made up of non-volatile RAM. That is, the contents of the F-buffer are not lost when power is turned off. In addition, other control data other than the specified content is stored in SYS-RAM3.
03.
第6図は、このF−バッファ309の記憶内容を示す図
である。FIG. 6 is a diagram showing the storage contents of this F-buffer 309.
F−バッフ7には、予め標準フォーマットとして定めら
れたFORMエリアと、ユーザが制御コマンドを使い、
指定したフォーマットを記憶するUSERエリアとから
なる。各々のエリアには、フォント名、オリエンテーシ
ョンおよびマージンの指定を記憶できるようになってい
る。ここで、フォント名とは、各種印字の書体を示す変
数名であり、その変数により、字体名,文字の太さ,文
字の大きさ等が定められる。オリエンテーションとは、
ペーパーに対する印字方向を示し、ランドスケイブおよ
びポートレート印字がある。マージンは、ベーバーから
イメージエリアを除いた余白部分の幅を示すものであり
、レフト、ライト、トップおよびボトムマージンがある
。また, F−OFONTには指定されたフォーマット
で印字される確率の高い圧縮フォント書体名が変数で記
憶される。The F-buffer 7 includes a FORM area that is predefined as a standard format, and the user uses control commands to
It consists of a USER area that stores the specified format. Each area can store font name, orientation, and margin specifications. Here, the font name is a variable name indicating the font of various types of printing, and the font name, character thickness, character size, etc. are determined by the variable. What is orientation?
Indicates the printing direction on paper, and includes landscape and portrait printing. The margin indicates the width of the margin excluding the image area from the bar, and includes left, right, top, and bottom margins. In addition, the name of a compressed font typeface with a high probability of being printed in the specified format is stored in the F-OFONT as a variable.
第7A図はフォント部33の内容である。フォント部に
は、各書体ごとのフォント属性と文字コードごとの圧縮
データの格納位置を示すテーブルと、圧縮データが格納
されている。FIG. 7A shows the contents of the font section 33. The font section stores compressed data and a table indicating the storage location of compressed data for each font attribute and character code.
第7B図はフォントRAM34の内容である。FIG. 7B shows the contents of the font RAM 34.
フォントRAM34には格納されている書体のフォント
属性と、1文字の伸張データのバイト数と、伸張データ
が格納されている。ここで、同一書体の伸張データはど
の文字についても同じデータ量であるから(文字コード
×1文字のデータのバイト数)、伸張データの格納位置
を知ることができる。また、フォントRAM34を管理
するために、フォントRAMの先萌にアウトラインフォ
ントRAMテーブルを設け、どの書体の伸張データがど
の位置に格納されているかを記憶する。The font RAM 34 stores the font attributes of the stored typefaces, the number of bytes of decompressed data for one character, and decompressed data. Here, since the decompressed data of the same font has the same amount of data for every character (character code x number of bytes of data for one character), the storage position of the decompressed data can be known. Further, in order to manage the font RAM 34, an outline font RAM table is provided at the beginning of the font RAM to store which font's expanded data is stored at which position.
ここでフォント属性とは、フォントの字体、太さ等を示
すものであり、たとえば第7C図に示すようなものがあ
る。第7C図に対応する具体的なフォントの例が第7D
図に示される。ここでは字体としてイタリック体が選ば
れている。Here, the font attribute indicates the font, thickness, etc. of the font, and includes, for example, the one shown in FIG. 7C. A specific example of a font corresponding to Figure 7C is Figure 7D.
As shown in the figure. Here, italic font is chosen as the font.
第8A図および第8B図は、上記のイメージエリアを説
明するための図であって、ランドスケイブおよびポート
レート印字の場合をそれぞれ示している。FIGS. 8A and 8B are diagrams for explaining the above image area, and show the cases of landscape printing and portrait printing, respectively.
図において、全エリア(A1)で示される部分が、ペー
パーのサイズに相当する。マージンエリア(A2)は、
実際にベーバーにプリントを行なう際の余白部分で、印
字データの描画が行なわれるのは、残ったイメージエリ
ア(A3)の部分である。印字の開始は、イメージエリ
アの左上から行なわれ、文字は印字方向(A 1 0)
に従って順次印字される。途中、改行コードが人力され
た場合、改行方向(All)に、改行幅(A 1 2)
だけ次の印字位置が移動する。また、復行コードが入力
されると、イメージエリア左復行位置(Al3)に次の
印字位置が移動する。なお、イメージエリア周囲の余白
のレフト、ライト、トップおよびボトムマージンよりな
るマージンエリア(A2)は、ホストからの指定により
ページ単位に変更が可能である。In the figure, the portion indicated by the total area (A1) corresponds to the size of the paper. The margin area (A2) is
In the margin area when actually printing on the bar, the print data is drawn in the remaining image area (A3). Printing starts from the top left of the image area, and characters are printed in the printing direction (A 1 0).
are printed in sequence according to the following. If the line feed code is entered manually, the line feed width (A 1 2) is added in the line feed direction (All).
The next print position will move by the same amount. Furthermore, when the return code is input, the next printing position moves to the left return position (Al3) of the image area. Note that the margin area (A2) consisting of the left, right, top, and bottom margins around the image area can be changed on a page-by-page basis as specified by the host.
第9図は、第3図および第4図にて示した操作バネル4
4の詳細を示す平面図である。FIG. 9 shows the operation panel 4 shown in FIGS. 3 and 4.
FIG. 4 is a plan view showing details of FIG.
図に示すように、入力キー901〜906と表示素子9
11〜921が配列される。PAUSEキー901は、
プリント動作を一時停止させるためのものである。シフ
トキー903は、キー902と同時に押すことにより、
プリントを中断するCANCELキーとなる。キー90
2およびシフトキー903を同時に押すことにより中断
が機能するようにしたのは、不用意な操作による中断を
防止するためである。FORMキー904を押すことに
より、予め定められた特定用途のフォーマット、具体的
にはF−バッファ309のFORMエリアに記憶された
内容のフォーマットでデータを印字する指定モードが有
効となる。また、USERキー905を押すことにより
、ユーザが指定したフォーマット、具体的にはF−バッ
ファ309のUSERエリアに記憶された内容のフォー
マットでデータを印字する指定モードが有効となる。As shown in the figure, input keys 901 to 906 and display element 9
11 to 921 are arranged. The PAUSE key 901 is
This is for temporarily stopping the printing operation. By pressing the shift key 903 at the same time as the key 902,
This is the CANCEL key to interrupt printing. key 90
The reason why the interruption function is activated by pressing 2 and the shift key 903 at the same time is to prevent interruptions due to careless operations. By pressing the FORM key 904, a specified mode is enabled in which data is printed in a predetermined format for a specific purpose, specifically, in the format of the contents stored in the FORM area of the F-buffer 309. Furthermore, by pressing the USER key 905, a specification mode is enabled in which data is printed in a format specified by the user, specifically, in the format of the contents stored in the USER area of the F-buffer 309.
表示素子919および920は、上記のいずれかのフォ
ーマット指定が行なわれていることを表示するものであ
る。N O RMA Lキー906は、通常のフォーマ
ットでデータを印字するモードを指定する手段であり、
キー904および905で指定されたモードを解除する
役目をなす。また、電源投入時は初期設定としてこのモ
ードになるものである。Display elements 919 and 920 display that one of the above formats is specified. The N O RMA L key 906 is a means for specifying a mode in which data is printed in a normal format.
It serves to cancel the mode specified by keys 904 and 905. Furthermore, when the power is turned on, this mode is set as the initial setting.
第10A図および第10B図は、FORMキーおよびU
SERキーの人力によるそれぞれの指定モードによるイ
メージエリアの例を示す図である。Figures 10A and 10B show the FORM key and U
FIG. 7 is a diagram illustrating an example of an image area according to each manual specification mode of the SER key.
図において、FORMモードでは、フォントが明朝体の
9ポイント(MIN9)、レフト、ライト、トップおよ
びボトムマージンがすべて10mmとした標準的なフォ
ーマットとなっている。一方、USERモードでは、フ
ォントが明朝体の7ポイント(MIN7)、レフトマー
ジンが10mnl、ライトマージンが20mm1 トッ
プマージンが3Qmm,ボトムマージンが10mmとし
たユーザ指定のフォーマットとなっている。In the figure, in the FORM mode, the font is a standard format in which the font is Mincho, 9 points (MIN9), and the left, right, top, and bottom margins are all 10 mm. On the other hand, in the USER mode, the font is a 7-point Mincho typeface (MIN7), the left margin is 10mm, the right margin is 20mm, the top margin is 3Qmm, and the bottom margin is 10mm.
以下、この発明の一実施例によるプリンタシステムの制
御について第11図〜第18図のフローを用いて説明す
る。Control of a printer system according to an embodiment of the present invention will be explained below using the flows shown in FIGS. 11 to 18.
A. インターフェイス制御部のフロー第11図は、
インターフェイス制闘部40のメインルーチンの概略処
理フローである。A. Figure 11 shows the flow of the interface control section.
This is a schematic processing flow of the main routine of the interface control unit 40.
インターフエイス制御部40では、電源オン(#1)に
よって内部の初期化を行なった後(#2)、コマンド、
フラグ等の各パラメータの初期化を行なう(#3)。パ
ラメータの初期化の後、2つの割込み処理を許可し(#
4) 、さらに、バスB5を通してソータ6、外部給紙
ユニット5、電子写真$il御部41およびプリンタヘ
ッド制御部42に起動信号を出力(#5)Lた後、各種
の処理ループ(#6)に移る。なお、割込みにはビット
マップ制御部30からのコマンド等を受信するビットマ
ップ制御部割込みと、操作パネル44のコントロールや
タイマ処理を行なうシステムタイマ割込みとがある。After the interface control unit 40 performs internal initialization (#2) by turning on the power (#1), the command,
Initialize each parameter such as a flag (#3). After initializing the parameters, enable two interrupt processing (#
4) Furthermore, after outputting a start signal (#5) to the sorter 6, external paper feed unit 5, electrophotographic $il control unit 41, and printer head control unit 42 through the bus B5, various processing loops (#6) are output. ). Note that the interrupts include a bitmap control section interrupt for receiving commands and the like from the bitmap control section 30, and a system timer interrupt for controlling the operation panel 44 and performing timer processing.
ビットマップ制御部割込みでは、ビットマップ制御部3
0から送られるコマンドの受信処理を行なう。ビットマ
ップ制御部割込みでは、受信されたコマンドは直接実行
せず、インターフエイス制御部内のフラグをセットする
だけで、実際の処理は処理ループの中でこのフラグが検
出されたときに行なわれる。これは、処理ループとビッ
トマップ制御部30との通信を非同朋にして、処理ルー
プの構成を簡単にするためである。In the bitmap control unit interrupt, bitmap control unit 3
Performs reception processing of commands sent from 0. In the case of a bitmap controller interrupt, the received command is not directly executed, but only a flag in the interface controller is set, and actual processing is performed when this flag is detected in the processing loop. This is to make the communication between the processing loop and the bitmap control unit 30 non-uniform and to simplify the configuration of the processing loop.
次に、システムタイマ割込み(第12図#10〜20)
について説明する。Next, system timer interrupt (#10-20 in Figure 12)
I will explain about it.
システムタイマ割込みでは、操作バネル44の入出力処
理(#11、#12)、処理ループで設定されたタイマ
のカウント処理(#1B)、そして、入力されたキーの
状態に応じた処理を行なう。In the system timer interrupt, input/output processing of the operation panel 44 (#11, #12), counting processing of the timer set in the processing loop (#1B), and processing according to the state of the input key are performed.
FORMキー904がオンされると(#14でYES)
、ビットマップ制御部30へFORM ON信号をバ
スB3を介して出力する(9 1 5)。When the FORM key 904 is turned on (YES in #14)
, outputs a FORM ON signal to the bitmap control unit 30 via bus B3 (9 1 5).
また、USERキー905がオンされると、(#16で
YES)、ビットマップ制御部30へUSER ON
信号を出力する(# 1 7)。NORMALキー90
6がオンされると(#18でYES)、ビットマップ制
御部30へNORMAL ON信号が出力される(#
1 9)。上記の出力信号は、後に示すビットマップ
制御部30のフローの中のIFCコマンド処理において
処理される。それ以下のキーの場合は、PAUSEキー
、CANCELキー等のその他のキー処理(# 2 0
)を行なってリターンする。Also, when the USER key 905 is turned on (YES in #16), the USER key 905 is sent to the bitmap control unit 30.
Output a signal (#1 7). NORMAL key 90
6 is turned on (YES in #18), a NORMAL ON signal is output to the bitmap control unit 30 (#
19). The above output signal is processed in IFC command processing in the flow of the bitmap control unit 30 shown later. For keys below that, other key operations such as PAUSE key and CANCEL key (# 2 0
) and return.
88 ビットマップ制御部のフロー第13図は、ビ
ットマップ制御部30のメインルーチンの処理フローで
ある。88 Flow of Bitmap Control Unit FIG. 13 is a processing flow of the main routine of the bitmap control unit 30.
まず、電源が投入される(# 3 0)と、内部の初期
化( # 3 1 )を行ないF−バツファ309(不
揮発性RAM)以外の各バッファをクリアする(# 3
2)。次に、各種コマンドのパラメータおよび各フラ
グの初期化を行なう(#33、#34)。各フラグは、
オリエンテーション、およびマージンの制御コマンドの
変更を禁止することを示すフラグである。log−pa
ge−startフラグは、各ページの処理中を示すフ
ラグである。すなわち、各ページ対してR−バツファか
らデータを取出したらこのフラグがオンされ、PAGE
EJECTコードに出会うとオフされる(後述の第
15図参照)。First, when the power is turned on (#30), internal initialization is performed (#31) and each buffer except the F-buffer 309 (non-volatile RAM) is cleared (#3).
2). Next, parameters of various commands and flags are initialized (#33, #34). Each flag is
This flag indicates that changing the orientation and margin control commands is prohibited. log-pa
The ge-start flag is a flag indicating that each page is being processed. That is, when data is retrieved from the R-buffer for each page, this flag is turned on and the PAGE
When the EJECT code is encountered, it is turned off (see FIG. 15, which will be described later).
次に、割込みの許可(# 3 5)を行ない、フォント
属性を読込んだ(# 3 6)後、書式制御情報の初期
化を行なう(# 3 7)。Next, after enabling interrupts (#35) and reading font attributes (#36), format control information is initialized (#37).
第14図はこの書式制御情報の初期化の具体的内容を示
すフロー図である。FIG. 14 is a flow diagram showing the specific contents of initializing this format control information.
このフローにおいて、初期値としてペーパーオリエンテ
ーションは縦(ポートレート・・・第8B図参照)(#
50)に、各マージン値はすべて0に、フォントは一番
初めに登録されているフォントに各々選択される。すな
わち、オリエンテーションを示すフラグF−ORIに0
(#50)を(縦:F−ORI−0、横: F−OR
I−1) 、各マージン値を保持する変数F−LMAR
(レフトマージン) 、F−RMAR (ライトマー
ジン)、F一TMAR (}ップマージン)およびF−
BMAR(ボトムマージン)にそれぞれO (#51)
を代入し、イメージエリアを設定する(# 5 2)。In this flow, the initial paper orientation is portrait (portrait...see Figure 8B) (#
50), each margin value is all set to 0, and the font is selected to the first registered font. In other words, the flag F-ORI indicating orientation is set to 0.
(#50) (vertical: F-ORI-0, horizontal: F-OR
I-1), variable F-LMAR that holds each margin value
(Left Margin), F-RMAR (Right Margin), F-TMAR (Top Margin) and F-
O for each BMAR (bottom margin) (#51)
and set the image area (#52).
読込んだフォント属性(第13図#36)からフォント
を初期選択し(#53)、この選択されたフォント名を
、選択したフォントのフォント名を保持する変数F−F
ONTに代入する(#54)。A font is initially selected (#53) from the read font attributes (#36 in Figure 13), and the selected font name is stored in a variable F-F that holds the font name of the selected font.
Assign to ONT (#54).
ここでは、圧縮フォント以外のフォントを選択する。そ
の後、データ処理装置1からの受信データ処理と、パケ
ットへの変換を行なう受信データ処理と、プリントエン
ジン4からのデータを処理するIFCコマンド処理と、
パケットに応じたBM−RAM32への描画処理を行な
うパケット処理と、インターフエイス制御部40とのプ
リントシ一ケンスを処理するプリントコン1・ロールと
からなるメインループに入る(#38〜#41)。Here, select a font other than compressed fonts. After that, processing of received data from the data processing device 1, processing of received data for converting into packets, and IFC command processing for processing data from the print engine 4,
Enters the main loop consisting of packet processing, which performs drawing processing to the BM-RAM 32 according to the packet, and the print controller 1 roll, which processes the print sequence with the interface control unit 40 (#38 to #41). .
ところで、データ処理装置1から送られるデータは、通
信の効早を上げるため、受信バッファであるR−バッフ
7304に一度蓄えられる。By the way, the data sent from the data processing device 1 is once stored in the R-buffer 7304, which is a reception buffer, in order to increase the effectiveness of communication.
受信された文字データは、受信データ処理(#38)で
、R−バッファ304から取出されパケットに変換され
、P−バッファ305に一度蓄えられる。その後、パケ
ット処理(#4 0)で取出され、対応するフォントが
ビットマップ書込部31によりBM−RAM30に描画
される。パケットのうち、プリント要求コード(PAG
E.EJECT)を検出すると、プリントコントロール
(#4 1)により、実際のプリントが起動される。The received character data is extracted from the R-buffer 304, converted into a packet, and stored once in the P-buffer 305 in reception data processing (#38). Thereafter, the font is extracted by packet processing (#40), and the corresponding font is drawn in the BM-RAM 30 by the bitmap writing section 31. The print request code (PAG) is included in the packet.
E. EJECT), the print control (#4 1) starts actual printing.
これ以外に、プリントの一時停止や、処理の中断等の処
理が適宜行なわれる。In addition to this, processing such as temporary stopping of printing and interruption of processing is performed as appropriate.
く受信データ処理(#38)>
第15図は、受信データ処理の只体的内容を示すフロー
図である。Received Data Processing (#38)> FIG. 15 is a flow diagram showing the basic contents of received data processing.
上述のように、受信データは予めビットマップ書込み3
1への出力が容易なパケットに変換され、P−バッファ
305に蓄えられる。これは、プリント中もBM−RA
M32への受信データの変換を平行して行なうことによ
り、スループットを向上させるためである。As mentioned above, the received data is written in bitmap 3 in advance.
1 is converted into an easy packet and stored in the P-buffer 305. This also applies to BM-RA during printing.
This is to improve throughput by converting received data to M32 in parallel.
まず、P−バッファ305に空きがあることを確認し(
#60でYES)、さらに、データがR−ハッファ30
4に受信されていれば(#61でYES) 、R−バッ
ファ304より受信データを取出す(# 6 2)。そ
して、R−バッファからデータを取出したことからペー
ジ処理が始まっているとして、Log−page−st
artのフラグを1とする(#63)。P−バッファ3
05に空きがない場合、あるいはR−バッファにデータ
がない場合は、取出すべきデータがない場合や、あるい
は取出すべきデータがあってもP−バッファ305に格
納できないことを意味するのでこの状態でリターンする
。First, confirm that there is free space in the P-buffer 305 (
#60: YES), and the data is R-Huffer 30
4 (YES in #61), the received data is extracted from the R-buffer 304 (#62). Then, assuming that page processing has started since data was taken out from the R-buffer, Log-page-st
The flag of art is set to 1 (#63). P-buffer 3
If there is no space in 05, or if there is no data in the R-buffer, this means that there is no data to be taken out, or even if there is data to be taken out, it cannot be stored in the P-buffer 305, so return in this state. do.
受信データがプリントすべき文字コードである場合(#
64、#66、#69、#74、#77、#80でNo
)は、電源投入時に読込んだフォント属性に従って、パ
ケットに変換する(#83〜#86)。具体的な変換手
順としては、まずはその文字コードに対応するパターン
のフォントアドレスがP−バッファ305に出力され(
983)、順次、BM−RAM32への書込アドレスが
P−バッファ305に出力され(#84),ビットマッ
プ書込部31への書込モードが出力される(#85)。If the received data is a character code that should be printed (#
No for 64, #66, #69, #74, #77, #80
) converts it into a packet according to the font attributes read when the power is turned on (#83 to #86). As a concrete conversion procedure, first, the font address of the pattern corresponding to the character code is output to the P-buffer 305 (
983), the write address to the BM-RAM 32 is sequentially output to the P-buffer 305 (#84), and the write mode to the bitmap writing section 31 is output (#85).
そして最後に、今回のフォントの大きさ等に応じて次の
フォントのBM−RAM32への書込アドレスを更新し
てお< (#86)。Finally, update the write address of the next font to the BM-RAM 32 according to the current font size, etc. (#86).
次に、プリント枚数やオプションの動作等を設定するイ
ンターフエイス制御部関連コードである場合(#64で
YES)、前述の文字のパケット処理(#40)での処
理を同期させるため、文字とは異なる型式のパケットで
P−バッファ305に出力される(#65)。Next, if it is an interface control unit related code that sets the number of prints, option operation, etc. (YES in #64), in order to synchronize the processing in the character packet processing (#40) mentioned above, A different type of packet is output to the P-buffer 305 (#65).
PAGE.EJECTコード(# 6 6)は、実際に
プリントを起動させるコードであり、それ以前の文字が
BM−RAM32に書込まれたら、プリントを起動する
。このコードも前後の文字と処理を同期させるため、P
−バッファ305に出力される(#67)。このとき、
ページ処理が終了したものとしてlog−page−s
tartのフラグを0とする(#68)。PAGE. The EJECT code (#66) is a code that actually starts printing, and starts printing when the previous characters are written to the BM-RAM 32. This code also synchronizes processing with the preceding and following characters, so P
- Output to buffer 305 (#67). At this time,
log-page-s assuming page processing has finished
The tart flag is set to 0 (#68).
次に、受信データがUSER設定コマンドであると(#
6っでYES)、指定されているフォント名、オリエン
テーション、マージンおよびアウトラインフォント名F
−OFONTを新しいUSERモードの設定値とみなし
、F−バッファのUSER用エリアに書込む(#70)
。そして、USER ON信号を受信していなければ
リターンする。USER oN(3号を受信すれば(
#71でYES) 、USER設定処理を行なう(#
7 2)。このUSER設定処理については後述する。Next, if the received data is a USER setting command (#
6 (YES), specified font name, orientation, margin and outline font name F
-Regard OFONT as a new USER mode setting value and write it to the USER area of the F-buffer (#70)
. Then, if the USER ON signal is not received, the process returns. USER oN (If you receive No. 3 (
YES in #71), perform the USER setting process (#71).
7 2). This USER setting process will be described later.
受信データがフォント指定コマンドであれば(#74で
YES)、フォント設定処理を行なう(# 7 6)。If the received data is a font designation command (YES in #74), font setting processing is performed (#76).
受信データがマージン指定コマンドであれば(#77で
YES)、次にマージン変更禁止フラグC−MARを判
定し、0であれば(#78でYES) 、マージン設定
処理を行なう。C−MARが1であれば、マージン変更
は禁止されるのでリターンする。受信データがオリエン
テーション指定コマンドであれば(#80でYES)、
次にオリエンテーション変更禁止フラグC−ORIを判
定し、Oであれば(#81でYES)、オリエンテーシ
ョン設定処理を行なう。C−ORIが1であればリター
ンする。If the received data is a margin designation command (YES in #77), then the margin change prohibition flag C-MAR is determined, and if it is 0 (YES in #78), margin setting processing is performed. If C-MAR is 1, margin change is prohibited, and the process returns. If the received data is an orientation specification command (YES in #80),
Next, the orientation change prohibition flag C-ORI is determined, and if it is O (YES in #81), orientation setting processing is performed. If C-ORI is 1, return.
ここで、フォント設定処理、オリエンテーション設定処
理およびマージン設定処理の内容について説明する。Here, the contents of the font setting process, orientation setting process, and margin setting process will be explained.
第16A図は、フォント設定処理ルーチーンの具体的内
容を示すフロー図である。FIG. 16A is a flow diagram showing specific contents of the font setting processing routine.
フォント名の更新、すなわち、第14図#54で設定さ
れた変数F−FONTの更新が行なわれ(#90) 、
次に更新されたF−FONTに従ってフォント名による
フォントの選択が行なわれる(#91)。選択されたフ
ォントが圧縮フォントである場合は(#92でY)、そ
のフォントが既に伸張され、フォントRAM34に格納
されているかどうかかチェックされる。このチェックは
アウトラインフォントRAMテーブルの書体名が探索さ
れることによって行なわれる。既に伸張が行なわれてい
る場合には、(#93でY)、そのままリターンし、伸
張されていなければ(#93でN)、フォント展開処理
2 (#95)が行なわれ、F−FONTで指定される
フォントのビットマップ展開処理、すなわち、フォント
データを伸張する処理が行なわれる。また、選択された
フォントが圧縮フォントでない場合で(#92でN)、
Fバッファ内のF−OFONTで示される圧縮フォント
が既に伸張されている場合は(#96でY)、そのまま
リターンされる。一方F−OFONTが未だ伸張されて
いない場合は(#96でN)、フォント展開処理1 (
#87)が行なわれ、F−OFONTのビットマップ展
開処理が行なわれる。The font name is updated, that is, the variable F-FONT set in #54 in FIG. 14 is updated (#90),
Next, a font is selected based on the font name according to the updated F-FONT (#91). If the selected font is a compressed font (Y in #92), it is checked whether the font has already been decompressed and stored in the font RAM 34. This check is performed by searching the outline font RAM table for the typeface name. If decompression has already been performed (Y in #93), return is made; if decompression has not been performed (N in #93), font expansion processing 2 (#95) is performed and the F-FONT is A bitmap development process of the specified font, that is, a process of decompressing the font data is performed. Also, if the selected font is not a compressed font (N in #92),
If the compressed font indicated by F-OFONT in the F buffer has already been decompressed (Y in #96), the process returns as is. On the other hand, if F-OFONT has not been expanded yet (N in #96), font expansion processing 1 (
#87) is performed, and F-OFONT bitmap development processing is performed.
この処理によって、FORMキー904、USERキー
905によるフォーマット選択時(第19図、第20図
)には、F−OFONTで示される圧縮フォントを伸張
する処理を行なうことができる。By this process, when a format is selected by the FORM key 904 or USER key 905 (FIGS. 19 and 20), the compressed font indicated by F-OFONT can be expanded.
次に第16B図のフローについて説明する。Next, the flow shown in FIG. 16B will be explained.
第16B図は、フォント展開処理1の具体的内容を示す
フローチャートである。この処理では、まずF−OFO
NTで示される書体の圧縮データが伸張され(#140
,#141) 、フォントRAM34に格納される(#
1 4 2)。F−OFONTで示されるフォントの
すべての文字の伸張が終了するとアウトラインフォント
RAMテーブルに展開されたフォントの情報が書込まれ
る(#144)。FIG. 16B is a flowchart showing the specific contents of the font development process 1. In this process, first the F-OFO
The compressed data of the typeface indicated by NT is decompressed (#140
, #141) is stored in the font RAM 34 (#
1 4 2). When expansion of all characters of the font indicated by F-OFONT is completed, information on the expanded font is written to the outline font RAM table (#144).
次に第16C図について説明する。第16C図は、フォ
ント展開処理2の具体的内容を示すフローチャートであ
る。Next, FIG. 16C will be explained. FIG. 16C is a flowchart showing the specific contents of the font development process 2.
このルーチーンは、処理内容はフォント展開処理1のル
ーチーンと全く同じであるが、処理される対象のフォン
トはF−FONT,すなわち指定された圧縮フォントが
展開、すなわち伸張処理される(#150、#151)
。この点が第15B図と異なっている。The processing content of this routine is exactly the same as the font expansion processing 1 routine, but the font to be processed is F-FONT, that is, the specified compressed font is expanded, that is, decompressed (#150, # 151)
. This point differs from FIG. 15B.
次にフォント設定処理の具体的西容について説明する。Next, the specific contents of the font setting process will be explained.
第16A図に示すフォント設定処理のフローは、F−F
ONTには初期値としてアウトラインフォントが設定さ
れることはないということが前提となっている。したが
って処理が開始されたときに、最初に第16A図に処理
フローが進行したときには、選択されたフォントは圧縮
フォントである場合はない(# 9 2)。したがって
処理は#96に進む。ここでF−OFONTが既に伸張
されているかどうかが判断される。最初のルーチーンに
おいては、F−OFONTは伸張されていないからフロ
ーは#97へ進み、F−OFONTに設定されたアウト
ラインフォントが展開される。したがってユーザキーに
よる設定もしくはフォームキーによる設定が行なわれて
いる場合には、各モードにおいて設定されたF−OFO
NTに設定されたアウトラインフォントがフォントRA
M34に3己憶される。ここで各モード1こおけるF−
OFONTには使用頻度の高いフォントが予め設定され
ているため、次の処理において、選択されたフォントが
圧縮フォントである場合には(#92でY)、選択され
たフォントが既に伸張されているかどうかが判断される
(# 9 3)。このときに選択されたフォントが予め
#97で展開されたアウトラインフォントである場合に
は、再度のフォント展開をすることなくそのままリター
ンされる。したがってその分少ないメモリ容量で、高速
に印字が可能になる。The flow of the font setting process shown in FIG. 16A is as follows:
It is assumed that an outline font will not be set as an initial value in the ONT. Therefore, when the process is started and the process flow first proceeds to FIG. 16A, the selected font may not be a compressed font (#92). Therefore, the process proceeds to #96. Here, it is determined whether the F-OFONT has already been expanded. In the first routine, since F-OFONT is not expanded, the flow advances to #97, and the outline font set in F-OFONT is expanded. Therefore, if settings are made using user keys or form keys, the F-OFO set in each mode
Outline font set to NT is font RA
3 times are remembered in M34. Here, one F- is placed in each mode.
Since frequently used fonts are preset in OFONT, in the next process, if the selected font is a compressed font (Y in #92), check whether the selected font has already been decompressed or not. A decision is made as to whether it is possible (#93). If the font selected at this time is an outline font developed in advance in #97, the process returns without performing font development again. Therefore, high-speed printing is possible with a correspondingly smaller memory capacity.
なお#93において、選択されたフォントが未だに伸張
されていない場合(#93でNの場合)は、新たにフォ
ント展開処理2が行なわれる。Note that in #93, if the selected font has not been expanded yet (N in #93), font expansion processing 2 is newly performed.
ここでこの発明にかかるプリンタ制御装置を用いた場合
の具体的な使用例を説明する。USER設定モードとし
て手紙の印字モードを例にとって説明する。今、手紙の
レターヘッドはイタリックボールド書体で印字され、本
文はイタリックライト書体で印字されるとし、イタリッ
クボールド書体は圧縮フォントではなく、イタリックラ
イト書体は圧縮フォントであると仮定する。予めユーザ
は制御コマンドを用いてユーザモードのフォーマットを
指定する。すなわち、F−FONT名としてイタリック
ボールド書体に対応する変数たとえば10を入力し、F
−OFONTとして手紙の印字モードでよく使用される
イタリックライト書体に対応する変数、たとえば20を
人力する。ユーザがプリンタを用いて手紙を作成すると
きにキー905(第9図参照)を押す。すると、第16
A図に示すフローで以下の処理が行なわれる。F−FO
NTが10に更新される(# 9 0)。選択されたフ
ォントは圧縮フォントでないから(# 9 2)、F−
OFONTが伸張されているか否かが判断される(#9
・6)。F−OFONTは予め伸張されていないため、
フォント展開処理(# 9 7)が行なわれ、イタリッ
クライト書体がフォントRAM34上に展開される。こ
の状態で手紙の印字が開始される。レターヘッドに用い
られるイタリックボールド書体は圧縮されたフォントで
ないため、#92でNと判断され、F−OFONTは既
に伸張されているため、#96でYと判断されてリター
ンされる。次に本文が印刷されるとき、F−FONTは
F−OFONTに更新される。次に選択されたフォント
が圧縮フォントかどうかが判断される(# 9 2)。Here, a specific example of use of the printer control device according to the present invention will be described. A letter printing mode will be explained as an example of the USER setting mode. Now assume that the letterhead of the letter is printed in an italic bold font, and the text is printed in an italic light font, and that the italic bold font is not a compressed font and the italic light font is a compressed font. The user specifies the format of the user mode in advance using a control command. That is, input a variable corresponding to the italic bold font as the F-FONT name, for example 10, and enter the F-FONT name.
- As OFONT, a variable corresponding to the italic light font often used in the letter printing mode, for example 20, is input manually. The user presses key 905 (see FIG. 9) when creating a letter using the printer. Then, the 16th
The following processing is performed in the flow shown in Figure A. F-FO
NT is updated to 10 (#9 0). Since the selected font is not a compressed font (#92), F-
It is determined whether OFONT is expanded (#9
・6). F-OFONT is not pre-expanded, so
Font development processing (#97) is performed, and the italic light font is developed on the font RAM 34. Printing of the letter begins in this state. Since the italic bold font used for the letterhead is not a compressed font, it is determined to be N in #92, and since the F-OFONT has already been expanded, it is determined to be Y in #96 and the process returns. The next time the text is printed, F-FONT is updated to F-OFONT. Next, it is determined whether the selected font is a compressed font (#92).
F−OFONTは圧縮フォントであるからYと判断され
る。次に選択されたフォントが既に仲張されているか否
かが判断される(# 9 3)。選択されたフォントは
F−OFONTであり、既に伸張されているから、Yと
判断され、直ちに印字される。Since F-OFONT is a compressed font, it is determined to be Y. Next, it is determined whether the selected font has already been brokered (#93). Since the selected font is F-OFONT and has already been expanded, it is determined to be Y and is immediately printed.
したがって、この発明にかかるプリント制御装置におい
ては、印字モードごとに予め定められた使用頻度が高い
アウトラインフォントが予めビットマップ上に展開され
て記憶される。そしてプリンタが印字するときに予め展
開され、記憶されたアウトラインフォントが選択された
ときには、再度ビットマップ上に選択された文字を展開
することなく直ちに印字が行なわれる。Therefore, in the print control device according to the present invention, frequently used outline fonts predetermined for each print mode are developed in advance on a bitmap and stored. When the printer selects an outline font that has been developed and stored in advance for printing, printing is performed immediately without developing the selected characters on the bitmap again.
第17図はマージン設定処理の具体的内容を示すフロー
図である。FIG. 17 is a flowchart showing specific details of the margin setting process.
まず、log−page−s t a r tのフラグ
の判別がされる(# 1 0 0)。このフラグが1の
場合ページ処理が始まっていることになるのでマージン
設定処理が行なわれずリターンする。このフラグがOの
場合、各マージンの指定(#1.01,#103,$1
05)に従って、マージン値を保持する変数(F−LM
ARSF−RMARSF−TMARおよびF−BMAR
)の値をそれぞれ史新する(#102,#104,#1
06,#107)。First, the flag of log-page-start is determined (#100). If this flag is 1, it means that page processing has started, so margin setting processing is not performed and the process returns. If this flag is O, specify each margin (#1.01, #103, $1
05), a variable (F-LM
ARSF-RMARSF-TMAR and F-BMAR
) respectively (#102, #104, #1
06, #107).
第18図はオリエンテーション設定処理の具体的内容を
示すフロー図である。FIG. 18 is a flow diagram showing specific contents of the orientation setting process.
まず、l og−page−s t a r tのフラ
グの判別がされる(#110)、このフラグが1の場合
、ページ処理が始まっていることになるのでオリエンテ
ーション設定処理が行なわれずリターンする。このフラ
グが0の場合、オリエンテーションのフラグが判別され
る(#111)。このフラグが1の場合、ペーパーオリ
エンテーションは横にセット(F−ORIの値としてO
が代入される〉され、そのオリエンテーションに対応す
る座標系が設定される(#114)。オリエンテーショ
ンのフラグが1でないとき(#111でNo)’、ペー
パーオリエンテーションは縦にセット(F−ORIの値
に1が代入される)され、このオリエンテーションに対
応する座標系が設定される(#114)。First, the log-page-start flag is determined (#110). If this flag is 1, it means that page processing has started, and the process returns without performing orientation setting processing. If this flag is 0, the orientation flag is determined (#111). If this flag is 1, the paper orientation is set to horizontal (O
is substituted), and a coordinate system corresponding to that orientation is set (#114). When the orientation flag is not 1 (No in #111), the paper orientation is set vertically (1 is assigned to the value of F-ORI), and the coordinate system corresponding to this orientation is set (#114). ).
〈インターフエイス制御部コマンド処理(#39)〉
第19図は、インターフエイス制御コマンド処理の貝体
的内容を示すフロー図である。<Interface Control Unit Command Processing (#39)> FIG. 19 is a flow diagram showing the outline of the interface control command processing.
ここでは、操作パネル44のキー操作により、インター
フェイス制御部40で生じたコマンドやプリントシーケ
ンスの同調処理を行なう。Here, synchronization processing of commands and print sequences generated in the interface control section 40 is performed by key operations on the operation panel 44.
FORM指定が選択されたとき、すなわち操作バネル4
4の操作によってインターフエイス制御部40からバス
B3を介してFORM ON信号が出力されたとき(
#120でYES) 、FORM設定処理に移る。まず
、F−バッファからFORM用フォーマットデータを各
々読出し、各変数に代入する(# 1 2 1)。そし
て、このFORMのフォーマットで受信データの印字を
行なうために、データ処理装置から送られてくる制御コ
マンド(オリエンテーション指定、マージン指定)の実
行を禁止するために、C−ORISC−MARの各フラ
グを1とする(# 1 2 2)。続いて、フォント設
定処裡、マージン設定処理およびオリエンテーション設
定処理を行なう(#123〜#125)。これらの設定
処理の内容は、第16A,16B,16C図〜第17図
のフローに示したものと同様である。When FORM specification is selected, that is, operation panel 4
When the FORM ON signal is output from the interface control unit 40 via the bus B3 by the operation in step 4 (
YES in #120), the process moves to FORM setting processing. First, each FORM format data is read from the F-buffer and assigned to each variable (#1 2 1). In order to print the received data in this FORM format, each flag of C-ORISC-MAR is set to prohibit the execution of control commands (orientation specification, margin specification) sent from the data processing device. 1 (# 1 2 2). Subsequently, font setting processing, margin setting processing, and orientation setting processing are performed (#123 to #125). The contents of these setting processes are similar to those shown in the flows of FIGS. 16A, 16B, and 16C to FIG. 17.
USER指定が選択されたとき、すなわち、操作バネル
44の操作によってインターフエイス制御部40からバ
スB3を介してUSER ON信号が出力されたとき
(#126でYES)、ユーザ設定処理を行なう。When the USER designation is selected, that is, when the USER ON signal is output from the interface control unit 40 via the bus B3 by operating the operation panel 44 (YES in #126), user setting processing is performed.
第20図はUSER設定処理を示す。F−バツファから
ユーザ用のフォーマットデータを読出し各変数に代入し
(#127)、その後FORM指定の場合と同様の処理
を行なう(1128〜#131)。なお、USER設定
処理は第15図においても実行される。FIG. 20 shows the USER setting process. The user format data is read from the F-buffer and assigned to each variable (#127), and then the same processing as in the case of FORM specification is performed (1128 to #131). Note that the USER setting process is also executed in FIG. 15.
次に、NORMAL指定が選択されたとき、すなわち操
作バネル44においてNORMALキー906が押され
たときにおいて、または電源投入時においてNORMA
L ON信号が出力されたとき(#132でYES)
、NORMAL設定処理が行なわれる。ここでは、デ
ータ処理装置から送られてくる制御コマンドの実行を許
可するために、C−ORIおよびC−MARの各フラグ
をクリア(#133)L、次に、書式制御情報を初期化
(#134)する。この書式制御情報の初期化の処理内
容は、第14図のフローにて示されたものと同様である
。Next, when the NORMAL designation is selected, that is, when the NORMAL key 906 is pressed on the operation panel 44, or when the power is turned on, the NORMAL
When the L ON signal is output (YES in #132)
, NORMAL setting processing is performed. Here, in order to permit the execution of control commands sent from the data processing device, the C-ORI and C-MAR flags are cleared (#133)L, and then the format control information is initialized (#133). 134) Do. The contents of the format control information initialization process are similar to those shown in the flowchart of FIG. 14.
なお、上記実施例では、レーザプリンタにこの発明を適
用しているが、レーザ以外のたとえばLED等を用いた
電子写真複写機にも適用できる。In the embodiments described above, the present invention is applied to a laser printer, but it can also be applied to an electrophotographic copying machine using a device other than a laser, such as an LED.
また、上記実施例では、ビットマップ方式のプリンタに
適用しているが、キャラクタマップ方式やストリップマ
ップ方式等の他の方式のプリンタにも適用できることは
言うまでもない。Furthermore, although the embodiment described above is applied to a bitmap type printer, it goes without saying that the present invention can also be applied to printers of other types such as a character map type or a strip map type.
また、上記実施例では手紙を用いた場合のフオントの設
定例を示したが、その他各種用途に応じて自由にアウト
ラインフォントの設定が可能であり、その場合にも同様
の効果を奏する。Further, in the above embodiment, an example of setting a font when a letter is used is shown, but it is possible to freely set an outline font according to various other uses, and the same effect can be achieved in such cases.
さらに、上記実施例では、フォーマット設定用としてF
ROMモードとUSERモードとの2つのモードを設け
ているが、いずれか1のモードだけでもよく、あるいは
さらに他のモードを規定する設定キーを設けた3以上の
設定モードを有するプリンタとすることもjiJ能であ
る。Furthermore, in the above embodiment, F is used for format setting.
Although two modes, ROM mode and USER mode, are provided, it is sufficient to use only one of the modes, or the printer may have three or more setting modes with setting keys that specify other modes. jiJ Noh.
上記実施例では、圧縮したアウトラインフォントをメモ
リ上に伸張するものを示したが、ビットマップフォント
を圧縮したデータをメモリに伸張するようにしてもよい
。In the above embodiment, a compressed outline font is expanded into the memory, but data obtained by compressing a bitmap font may be expanded into the memory.
(2) 第2の実施例
この発明の第2の実施例においては、印字モードに応じ
て予め使用頻度の高いフォントのうちの特定の文字が展
開される。第2の実施例においては、その内容は第1の
実施例とほぼ同じであるので、異なる点のみを説明する
。(2) Second Embodiment In a second embodiment of the present invention, specific characters from frequently used fonts are developed in advance in accordance with the print mode. The contents of the second embodiment are almost the same as those of the first embodiment, so only the different points will be explained.
第2の丈施例においては、まずFバッファの記憶内容が
異なる。第21A図、第21B図は、第1の実施例の第
6図に対応する第21A図はFバッファの内容をマクロ
的に見たものであり、第21B図は各モードのエリア内
の情報を示す。第21B図に示すように、第2の実施例
においては、予め使用頻度の高い文字を特定するために
、その特定文字のコードテーブルが予め記憶される。In the second embodiment, first, the storage contents of the F buffer are different. 21A and 21B correspond to FIG. 6 of the first embodiment. FIG. 21A shows the contents of the F buffer in macro view, and FIG. 21B shows the information in the area of each mode. shows. As shown in FIG. 21B, in the second embodiment, in order to identify frequently used characters in advance, a code table of the specific characters is stored in advance.
この発明の第2の実施例においては、第22図に示すよ
うに、フォントRAMの内容も異なる。In the second embodiment of the invention, as shown in FIG. 22, the contents of the font RAM are also different.
この図は第1実施例の第7B図に対応する。第22図に
示すように、この発明の第2の実施例においては、特定
の文字を予め展開するため、特定の文字とそれ以外の文
字とを区別するために文字データ領域が登録情報エリア
と位置情報エリアに分けられる。そして各々のエリアは
それぞれ特定文字コードとそれ以外の文字コード用に分
けられる。This figure corresponds to FIG. 7B of the first embodiment. As shown in FIG. 22, in the second embodiment of the present invention, in order to develop specific characters in advance, a character data area is used as a registration information area to distinguish between specific characters and other characters. Divided into location information areas. Each area is divided into a specific character code and other character codes.
次に第2の失施例における受信データ処理のフローにつ
いて説明する。第2の実施例においては、第15図に示
す第1の火施例の受信データ処理において、ステップ#
80のオリエンテーション指定の判断のNoのラインと
ステップ#83のフォントアドレスをPバッファへ出力
というステップの間に第23図のフローが挿入される。Next, the flow of received data processing in the second failed example will be explained. In the second embodiment, in the received data processing of the first embodiment shown in FIG.
The flow shown in FIG. 23 is inserted between the "No" line of the determination of orientation designation in step #80 and the step of outputting the font address to the P buffer in step #83.
すなわちこの発明の第2の実施例においては、受信デー
タがプリントすべき特定の文字コードである場合(#2
01でYES)、そのフォントが圧縮フォントであり(
#202でYES) 、かつ、その文字コードで表わせ
る文字がまだ伸張されていない文字である場合(#20
3でNo) 、フォント展開処理4ルーチン(後述する
第26図参照)でその文字が伸張される。すなわち、こ
の発明の第2の実施例においては、受信データが所定の
フォントのうちの特定の文字コードである場合には、そ
の特定の文字が予め展開される。That is, in the second embodiment of the present invention, when the received data is a specific character code to be printed (#2
01 = YES), and the font is a compressed font (
YES in #202), and the character that can be represented by that character code is a character that has not yet been decompressed (#20
3 (No), the character is expanded in the font expansion processing routine 4 (see FIG. 26, which will be described later). That is, in the second embodiment of the present invention, if the received data is a specific character code of a predetermined font, the specific character is expanded in advance.
この発明の第2の失施例においては、フォント設定処理
のルーチン(第1実施例の第16A図に対応)も変更さ
れる。この発明の筆2の丈施例に係るフォント設定処理
ルーチンの具体的内容が第24図に示される。In the second embodiment of the present invention, the font setting processing routine (corresponding to FIG. 16A of the first embodiment) is also changed. The specific contents of the font setting processing routine according to the length embodiment of the brush 2 of this invention are shown in FIG.
フォント名の更新、すなわち第14図#54で設定され
た変数F−FONTの更新が行なわれ(#290)、次
に史新されたF−FONTに従ってフォント名によるフ
ォントの選択が行なわれる(#291>.次にフラグa
ddcharがリセットされる(# 2 9 2)。な
おここでフラグaddcha rは登録されている文字
がすべて伸張されたかどうかを示すフラグである。すべ
ての文字が伸張されるとこのフラグがセットされる。選
択されたフォントが圧縮フォントである場合は(# 2
9 3でY)、そのフォントが既に伸張され、フォン
トRAM34に洛納されているかどうかがチェックされ
る。このチェックはアウトラインフォントRAMテーブ
ルの書体名が探索されることによって行なわれる。既に
伸張が行なわれている場合には(#294でY)、フラ
グaddcharがセットされ(#295)、伸張され
ていなければ(#294でN)、フォント展開処理4(
#297)が行なわれ、F−FONTで指定される特定
の文字のビットマップ展開処理、すなわち、フォントデ
ータを伸張する処理を行なわれる。また、選択されたフ
ォントが圧縮フォントでない場合(8293でN)、F
バッファ内のF−OFONTで示される圧縮フォントが
既に伸張されている場合は(#298でY)、フラグa
ddcharがセットされ(#299)、リターンされ
る。The font name is updated, that is, the variable F-FONT set in #54 in Figure 14 is updated (#290), and then a font is selected by the font name according to the updated F-FONT (# 291>.Next flag a
ddchar is reset (#292). Note that the flag addchar here is a flag indicating whether all registered characters have been expanded. This flag is set when all characters have been expanded. If the selected font is a compressed font (#2
9 (Y at 3), it is checked whether the font has already been decompressed and stored in the font RAM 34. This check is performed by searching the outline font RAM table for the typeface name. If expansion has already been performed (Y in #294), the flag addchar is set (#295); if expansion has not been performed (N in #294), font expansion processing 4 (
#297) is performed, and a bitmap development process for a specific character specified by F-FONT, that is, a process to expand the font data is performed. Also, if the selected font is not a compressed font (N in 8293), F
If the compressed font indicated by F-OFONT in the buffer has already been decompressed (Y in #298), flag a
ddchar is set (#299) and the process returns.
一万F−OFONTが未だ伸張されていない場合は(#
298でN)、フォント展開処理3(#300)が行な
われ、F−OFONTのビットマップ展開処理が行なわ
れる。If 10,000 F-OFONTs have not been expanded yet (#
(N at 298), font development processing 3 (#300) is performed, and bitmap development processing of F-OFONT is performed.
次に第25図を参照してフォント展開処理3のフローに
ついて説明する。この処理では、F−OFONTで示さ
れる書体の圧縮データの伸張が行なわれる。伸張は書体
単位でなく、文字単位に行なわれる。具体的には第21
B図に示されるように、各フォントごとに使用頻度が高
いと思われる文字(そのフォントが選択されると同時に
事前に伸張される文字)が登録されている。フォント展
開処理は、選択された文字が登録されている文字か、そ
うでない文字かによって処理が2つに分けられる。Next, the flow of font development processing 3 will be explained with reference to FIG. In this process, the compressed data of the font indicated by F-OFONT is expanded. Stretching is done character by character, not by typeface. Specifically, the 21st
As shown in Figure B, characters that are considered to be used frequently are registered for each font (characters that are expanded in advance at the same time as the font is selected). The font development process is divided into two processes depending on whether the selected character is a registered character or a non-registered character.
まず登録されている文字を族開する場合(#240でY
)、その登録されている文字(展開指定文字)の展開が
終了するまで(#241でYになるまで)、F−バッフ
ァから登録されている文字コードを読出し(#242)
、順次伸張(#243)、伸張結果の書込み(#244
)を行なう。First, when opening a registered character into a family (Y in #240)
), reads the registered character code from the F-buffer (#242) until the expansion of the registered character (expansion specified character) is completed (until Y is reached in #241).
, sequential decompression (#243), writing of decompression results (#244)
).
すべての文字の伸張が終了したら(#241でY)、フ
ォントRAMテーブルに伸張されたフォントの情報を書
込む(#245)。フォントRAM領域の使用していな
い部分を登録されている文字以外の文字の伸張データを
格納するための追加エリアとする(#245)。その後
、登録されているフォントの伸張がすべて終了したとい
うことでフラグaddcha rをセットする(#24
6)。When all characters have been expanded (Y in #241), information on the expanded font is written to the font RAM table (#245). The unused portion of the font RAM area is used as an additional area for storing expanded data of characters other than registered characters (#245). After that, the flag addchar is set because all the registered fonts have been expanded (#24
6).
次に登録されている文字以外の文字の場合(#240で
N)は、フォントRAMの追加エリアに空きがあるかど
うかを判断し(#247)、空きがあれば(#247で
Y)、指定された文字の伸張を行ない(#248)、伸
張結果を書込む(#249)。追加エリアへの書込ポイ
ンタを更新する(# 2 5 0)。また追加エリアの
空きがない場合(#247でN)、追加エリアはリング
バッファ形式で使っているため、書込ポインタを先頭に
セットし(#251)、上記のように伸張処理を行なう
。Next, in the case of a character other than the registered character (N in #240), it is determined whether there is space in the additional area of the font RAM (#247), and if there is space (Y in #247), The specified character is expanded (#248) and the expansion result is written (#249). Update the write pointer to the additional area (#250). If there is no free space in the additional area (N in #247), the write pointer is set to the beginning (#251) and the expansion process is performed as described above, since the additional area is used in a ring buffer format.
次に第26図のフローについて説明する。Next, the flow shown in FIG. 26 will be explained.
第26図は、フォント展開処理4の具体的内容を示すフ
ローチャートである。この処理は基本的には第25図で
説明したフォント展開処理3と同じである。ただ異なる
点は、展開される対象のフォントが指定された圧縮フォ
ント(F−FONT)ある点であ゜る。したがって、内
容の説明は省略する。FIG. 26 is a flowchart showing the specific contents of the font development process 4. This process is basically the same as the font expansion process 3 explained in FIG. The only difference is that the font to be expanded is a specified compressed font (F-FONT). Therefore, the explanation of the contents will be omitted.
[発明の効果]
以上説明したとおり、この発明によれば、印字モードに
応じて予め使用頻度の高いアウトラインフォントが伸張
されメモリ上に記憶される。そしてプリンタが印字する
ときに予め伸張されたフォントが選択されたか否かが判
定され、それが選択されたときには再度メモリ上に伸張
されることなくその文字が直ちに印字される。その結果
少ないメモリ容量でかつ高速処理の可能なプリンタ制御
装置を提洪することができる。[Effects of the Invention] As described above, according to the present invention, frequently used outline fonts are expanded and stored in the memory in advance according to the print mode. Then, when the printer prints, it is determined whether or not a previously decompressed font is selected, and when the font is selected, the character is immediately printed without being decompressed onto the memory again. As a result, a printer control device capable of high-speed processing with a small memory capacity can be provided.
さらにこの発明の好ましい実施例によれば、印字モード
に応じて予め使用頻度の高い特定の文字が定められてお
り、そのフォントが伸張される。Further, according to a preferred embodiment of the present invention, specific frequently used characters are determined in advance according to the print mode, and the font thereof is expanded.
そしてプリンタが印字するときに予め伸張された特定の
文字のフォントが選択されたか否かが判定され、それが
選択されたときには再度メモリ上に伸張されることなく
その文字が直ちに印字される。Then, when the printer prints, it is determined whether or not a pre-expanded font of a specific character is selected, and when the font is selected, the character is immediately printed without being expanded on the memory again.
その結果、さらに少ないメモリ容量でかつ高速処狸の可
能なプリンタ制御装置を堤供することができる。As a result, it is possible to provide a printer control device that requires even less memory capacity and is capable of high-speed processing.
第IA図および第IB図は、フォントの例を示す図であ
り、第2図〜第19図はすべてこの発明の一実施例によ
るものであり、第2図はプリンタシステムによる処理シ
ステムの構成図、第3図はプリンタシステムの外観を示
す斜視図、第4図は第2図のビットマップ方式データ処
理装置とプリントエンジンとの構或を示すブロック図、
第5図は第4図のビットマップ制御部の構成を示すブロ
ック図、第6図は第5図のF−バッファの記憶内容を示
す図、第7A図はフォント部33の内容を示す図、第7
B図はフォントRAMの内容を示す図、第7C図はフォ
ントの属性の例を示す図、第7D図は第7C図に対応す
る具体的なフォントの例を示す図、第8A図および第8
B図はイメージエリアを説明するための図、T59図は
第3図の操作パネルの構成を示す平面図、第10A図お
よび第10B図はFORMおよびUSERモードの指定
例を示す図、第11図はインターフエイス制御部のメイ
ンルーチンの概略フロー図、第12図は第11図の割込
み許可の1つであるシステムタイマ割込み処理の具体的
内容を示すフロー図、第13図はビットマップ制御部の
メインルーチンの処理フロー図、第14図は第13図の
書式制御情報の初期化の具体的内容を示すフロー図、第
15図は第13図の受信データ処理の具体的内容を示す
フロー図、第16A図〜16C図は第15図のフォント
設定処理の具体的内容を示すフロー図、第17図は第1
5図のマージン設定処理の具体的内容を示すフロー図、
第18図は第15図のオリエンテーション設定処理の具
体的内容を示すフロー図、第19図はIFCコマンド処
理の具体的内容を示すフロー図、第20図はユーザ設定
処理を示すフロー図である。
第21A図〜第26図はこの発明の第2の実施例を説明
するための図である。
図において、3はビットマップ方式データ処理装置、4
はプリントエンジン、10はプリンタシステム、30は
ビットマップ制御部、31はビットマップ書込部、32
はBM−RAM,33はフォント部、40はインターフ
エイス制御部、41は電子写真制御部、44は操作パネ
ル、302はSYS−ROM,309はF−バッファ、
904はFORMキー、905はUSERキー、906
はNORMALキーである。
なお、各図中、同一符号は同一または相当部分を示す。
lJirIIA図
第4図
第1B図
第
6
図
73:ビニlトマリ7゜δ“Xア゛′−/ヌ凸理垂よ萱
″′4:Tソントエ.冫クン
第3図
第7A図
第
7B図
第7C図
第7D図
89図
第18図
第11図
第10A図
<FQRM冫
第108図
<tJsER>
第12図
第
13
図
萬14の
第16A図
1k94
第16B図
修145
第17図
第16C図
#154
第
20図
82jA図
第218図
萬23図
第2S図
第24図
第26図FIG. IA and FIG. IB are diagrams showing examples of fonts, and FIGS. 2 to 19 are all according to an embodiment of the present invention, and FIG. 2 is a block diagram of a processing system using a printer system. , FIG. 3 is a perspective view showing the external appearance of the printer system, and FIG. 4 is a block diagram showing the structure of the bitmap data processing device and print engine shown in FIG. 2.
5 is a block diagram showing the configuration of the bitmap control section in FIG. 4, FIG. 6 is a diagram showing the storage contents of the F-buffer in FIG. 5, FIG. 7A is a diagram showing the contents of the font section 33, 7th
Figure B shows the contents of the font RAM, Figure 7C shows an example of font attributes, Figure 7D shows an example of a specific font corresponding to Figure 7C, and Figures 8A and 8
Figure B is a diagram for explaining the image area, Figure T59 is a plan view showing the configuration of the operation panel in Figure 3, Figures 10A and 10B are diagrams showing examples of specifying the FORM and USER modes, and Figure 11. is a schematic flowchart of the main routine of the interface control section, FIG. 12 is a flowchart showing specific details of system timer interrupt processing, which is one of the interrupt permissions in FIG. 11, and FIG. 13 is a flowchart of the bitmap control section. A processing flow diagram of the main routine, FIG. 14 is a flow diagram showing specific details of format control information initialization in FIG. 13, FIG. 15 is a flow diagram showing specific details of received data processing in FIG. 13, 16A to 16C are flowcharts showing the specific contents of the font setting process in FIG. 15, and FIG.
A flow diagram showing the specific contents of the margin setting process in Figure 5,
FIG. 18 is a flowchart showing the specific content of the orientation setting process in FIG. 15, FIG. 19 is a flowchart showing the specific content of the IFC command process, and FIG. 20 is a flowchart showing the user setting process. FIGS. 21A to 26 are diagrams for explaining a second embodiment of the present invention. In the figure, 3 is a bitmap data processing device; 4 is a bitmap data processing device;
1 is a print engine, 10 is a printer system, 30 is a bitmap control unit, 31 is a bitmap writing unit, 32
is BM-RAM, 33 is a font section, 40 is an interface control section, 41 is an electrophotographic control section, 44 is an operation panel, 302 is a SYS-ROM, 309 is an F-buffer,
904 is the FORM key, 905 is the USER key, 906
is the NORMAL key. In each figure, the same reference numerals indicate the same or corresponding parts. 1JirIIA Figure 4 Figure 1B Figure 6 Figure 73: Vinyl Tomari 7゜δ" Figure 3 Figure 7A Figure 7B Figure 7C Figure 7D Figure 89 Figure 18 Figure 11 Figure 10A <FQRM Figure 108 <tJsER> Figure 12 Figure 13 Figure 16A of Figure 14 1k94 Figure 16B Modification 145 Figure 17 Figure 16C Figure #154 Figure 20 Figure 82jA Figure 218 Figure 23 Figure 2S Figure 24 Figure 26
Claims (2)
換えが可能な複数の印字モードで印字が可能なプリンタ
のプリンタ制御装置であって、複数の文字パターンを所
定の方法で圧縮した文字パターン用データを記憶するた
めの第1記憶手段と、 前記圧縮された文字パターン用データを圧縮前の元のパ
ターンに伸張するための伸張手段と、前記元のパターン
に伸張された文字パターンを記憶するための第2記憶手
段と、 前記元のパターンに伸張された文字を印字するための印
字手段と、 前記印字モードに応じて予め伸張されるべき前記文字パ
ターンが定められており、 前記印字モードの切換え時に、前記予め定められた印字
モードに応じて、前記第1記憶手段に記憶された前記予
め定められた文字パターンを伸張して前記第2の記憶手
段に記憶するための手段と、前記指定された文字パター
ンが前記第2の記憶手段に記憶されている文字パターン
か否かを判定するための判定手段と、 前記指定された文字パターンが前記第2の記憶手段に記
憶されている場合にはそれを印字し、前記指定された文
字パターンが前記第2の記憶手段に記憶されていない場
合には、前記第1記憶手段に記憶された圧縮データを伸
張し、前記第2の記憶手段に記憶した後印字するように
制御するための制御手段とを含むプリンタ制御装置。(1) A printer control device for a printer that is capable of printing in specified character patterns and multiple print modes that can be specified and switched, and that compresses character pattern data using a predetermined method. a first storage means for storing the data, a decompression means for decompressing the compressed character pattern data into the original pattern before compression, and a first storage means for storing the character pattern decompressed into the original pattern. 2 storage means, a printing means for printing the expanded characters in the original pattern, and the character pattern to be expanded in accordance with the printing mode is determined in advance, and when switching the printing mode, means for expanding the predetermined character pattern stored in the first storage means and storing it in the second storage means according to the predetermined printing mode; and the specified character. determining means for determining whether a pattern is a character pattern stored in the second storage means; and determining means for determining whether the specified character pattern is stored in the second storage means; After printing, if the specified character pattern is not stored in the second storage means, the compressed data stored in the first storage means is decompressed and stored in the second storage means; A printer control device including a control means for controlling printing.
換えが可能な複数の印字モードで印字が可能なプリンタ
のプリンタ制御装置であって、複数の文字パターンを所
定の方法で圧縮した文字パターン用データを記憶するた
めの第1の記憶手段と、 前記圧縮された文字パターン用データを圧縮前の元のパ
ターンに伸張するための伸張手段と、前記元のパターン
に伸張された文字パターンを記憶するための第2の記憶
手段と、 前記元のパターンに伸張された文字を印字するための印
字手段と、 前記印字モードに応じて予め伸張されるべき前記文字パ
ターンおよびそのうちの特定の文字が定められており、 前記印字モードの切換時に、前記予め定められた印字モ
ードに応じて、前記第1の記憶手段の記憶された前記予
め定められた特定の文字の文字パターンを伸張して前記
第2の記憶手段に記憶するための手段と、 前記指定された特定の文字の文字パターンが前記第2の
記憶手段に記憶されている文字の文字パターンか否かを
判定するための判定手段と、前記指定された特定の文字
パターンが前記第2の記憶されている場合にはそれを印
字し、前記指定された特定の文字の文字パターンが前記
第2の記憶手段に記憶されていない場合には、前記第1
記憶手段に記憶された圧縮データを伸張し、前記第2の
記憶手段に記憶した後印字するように制御するための制
御手段とを含むプリンタ制御装置。(2) A printer control device for a printer capable of printing in a specified character pattern and multiple print modes that can be specified and switched, which compresses character pattern data using a predetermined method. a first storage means for storing, a decompression means for decompressing the compressed character pattern data into the original pattern before compression, and a first storage means for storing the character pattern decompressed into the original pattern. a second storage means; a printing means for printing characters expanded into the original pattern; and the character pattern to be expanded and specific characters thereof are determined in advance according to the printing mode. , when switching the print mode, the character pattern of the predetermined specific character stored in the first storage means is expanded and stored in the second storage means according to the predetermined print mode; means for storing the specified character pattern in the second storage means; determining means for determining whether the character pattern of the designated specific character is the character pattern of the character stored in the second storage means; If a specific character pattern is stored in the second storage means, it is printed, and if the character pattern of the designated specific character is not stored in the second storage means, it is printed in the first storage means.
A printer control device comprising: control means for controlling the compressed data stored in the storage means to be decompressed, stored in the second storage means, and then printed.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1260743A JPH0321468A (en) | 1989-03-04 | 1989-10-05 | Printer controller |
| US07/487,142 US5097426A (en) | 1989-03-04 | 1990-03-02 | Printer controlling apparatus |
| DE4006891A DE4006891A1 (en) | 1989-03-04 | 1990-03-05 | PRINTER WITH CONTROL DEVICE |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1-52581 | 1989-03-04 | ||
| JP5258189 | 1989-03-04 | ||
| JP1260743A JPH0321468A (en) | 1989-03-04 | 1989-10-05 | Printer controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0321468A true JPH0321468A (en) | 1991-01-30 |
Family
ID=26393199
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1260743A Pending JPH0321468A (en) | 1989-03-04 | 1989-10-05 | Printer controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0321468A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06127837A (en) * | 1992-10-14 | 1994-05-10 | Towa Kogyo Kk | Conveyor device for cheese from winder to warper |
-
1989
- 1989-10-05 JP JP1260743A patent/JPH0321468A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06127837A (en) * | 1992-10-14 | 1994-05-10 | Towa Kogyo Kk | Conveyor device for cheese from winder to warper |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH111029A (en) | Color print system, color printer, and computer-readable recording medium storing computer-executable program | |
| JPH05318838A (en) | Image forming apparatus and method thereof | |
| US5097426A (en) | Printer controlling apparatus | |
| JPH0916149A (en) | Character processing device, character processing method, and memory | |
| JPH03136095A (en) | Image forming device | |
| JPH0321468A (en) | Printer controller | |
| JP3772407B2 (en) | Image processing device | |
| JPH0321469A (en) | Printer controller | |
| JPH02231165A (en) | Printer controller | |
| JPH1097391A (en) | Printer system and print control method | |
| JPH10114119A (en) | Print control apparatus, print control method, and storage medium storing computer-readable program | |
| JP2003237147A (en) | Image processing method and apparatus | |
| JP3574289B2 (en) | Printer and method of adjusting reception buffer size in printer | |
| JP3817077B2 (en) | Print processing system and image forming apparatus | |
| JPH06183074A (en) | Character processing device | |
| JP3241767B2 (en) | Image processing device | |
| JP2002096506A (en) | Rasterizing method, print control device, print system, and recording medium recording program | |
| JPH01281963A (en) | Document processing device | |
| KR100565792B1 (en) | How to save font data of printer | |
| JPH02120060A (en) | Printer controlling device | |
| JPH09230844A (en) | Font converting device | |
| JP2002132466A (en) | Image output device, image output system, image processing method, and storage medium | |
| JPH03112668A (en) | printing device | |
| JPH07178976A (en) | Printing method and printing apparatus | |
| JP2000033730A (en) | Printing apparatus, control method thereof, and printing system |