JP2793349B2 - Printing equipment - Google Patents
Printing equipmentInfo
- Publication number
- JP2793349B2 JP2793349B2 JP2257255A JP25725590A JP2793349B2 JP 2793349 B2 JP2793349 B2 JP 2793349B2 JP 2257255 A JP2257255 A JP 2257255A JP 25725590 A JP25725590 A JP 25725590A JP 2793349 B2 JP2793349 B2 JP 2793349B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- line
- printing
- enlarged
- printed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、文字を拡大シフトさせて印刷する機能を備
えた印刷装置に関するものである。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus having a function of printing characters by enlarging and shifting characters.
[従来の技術] 従来、ドットマトリックスプリンタを用いて縦方向に
文字を拡大する場合、文字フォントを表わす四角形のボ
ックスをそのまま拡大し、2回に分割して印字してい
る。2. Description of the Related Art Conventionally, when characters are enlarged in the vertical direction using a dot matrix printer, a rectangular box representing a character font is directly enlarged and printed twice.
第10図は、上述した文字フォントの展開図である。こ
こで、第10図(A)は文字“E"を標準に展開した図であ
り、横36×縦40ドットにより構成されている。文字ドッ
トの最下部のラインはベースラインと呼ばれ、また文字
フォントを表わす四角形のボックスの最下部がフットラ
インと呼ばれている。FIG. 10 is a development view of the character font described above. Here, FIG. 10 (A) is a view in which the character "E" is developed as a standard, and is composed of 36 (horizontal) × 40 (vertical) dots. The bottom line of a character dot is called a baseline, and the bottom of a rectangular box representing a character font is called a footline.
第10図(B)は文字“E"を2倍に拡大展開した図であ
り、横72×縦80ドットにより構成される。この場合に
は、(A)に示したフォントを単純に拡大しているの
で、ベースラインが上がってしまっている。これを補正
するために、(B)のフォント全体を下側へシフトさせ
たのが第10図(C)である。FIG. 10 (B) is a diagram in which the character “E” is expanded twice and is composed of 72 horizontal × 80 vertical dots. In this case, since the font shown in (A) is simply enlarged, the baseline has risen. To correct this, FIG. 10 (C) shifts the entire font of (B) downward.
第10図(C)において、ベースラインは同図(A)の
展開図と同じ位置に来ているが、斜線で示すはみ出し部
が生じている。図示した(文字“E")では、このはみ出
し部に文字データは存在しないが、文字によっては(例
えば“g",“P",“J"等)ここにデータが存在する場合が
ある。In FIG. 10 (C), the baseline is located at the same position as the developed view of FIG. 10 (A), but there is a protruding portion shown by oblique lines. In the illustrated case (character “E”), character data does not exist in the protruding portion, but data may exist here depending on the character (for example, “g”, “P”, “J”).
[発明が解決しようとする課題] このように、従来例では単純に文字フォントの四角形
のボックスを拡大するだけであるので、文字のベースラ
インが拡大した文字と拡大しない文字で揃っていなかっ
た。そのため、文字列のバランスが悪く見難い印字が得
られるという欠点がある。[Problem to be Solved by the Invention] As described above, in the conventional example, since the rectangular box of the character font is simply enlarged, the baseline of the character is not aligned with the enlarged character and the non-enlarged character. For this reason, there is a drawback in that the printing is difficult to see because the character string balance is poor.
また、ベースライン揃えをするために、拡大したデー
タを下方向へシフトしたり、ベースラインを基準として
文字を拡大すると、フットラインより下側に文字フォン
トの四角形のボックスが存在することになるので(第10
図参照)印字が3回に分割されてしまい、印字スピード
が落ちるという欠点がある。Also, if the enlarged data is shifted downward or the characters are enlarged based on the baseline in order to align the baseline, there will be a square box of the character font below the footline. (No. 10
(See the figure.) There is a disadvantage that printing is divided into three times and the printing speed is reduced.
よって本発明の目的は、上述の点に鑑み、文字を拡大
シフトさせて印刷する機能を短時間かつ容易に実行し得
るよう構成した印刷装置に提供することにある。SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a printing apparatus configured to execute a function of enlarging and shifting a character and printing it in a short time and easily in view of the above points.
[課題を解決するための手段] 上記の目的を達成するために、本発明に係る印刷装置
は、文字のフットラインを基準にヘッドを走査させて文
字を印刷する印刷手段と、文字のパターンを拡大すると
共にシフトさせる編集手段と、前記編集手段により文字
のパターンを拡大シフトさせて印刷する場合に、その拡
大シフトさせた文字のパターンが前記フットラインから
はみ出て印刷されるか否かを示すフットライン下情報を
各文字に対応して記憶する記憶手段と、印刷すべき行の
拡大シフトさせた文字のパターンが前記フットラインか
らはみ出て印刷されるか否かを前記フットライン下情報
に基づき判別する判別手段と、前記判別手段による印刷
すべき行の拡大シフトさせた文字のパターンが前記フッ
トラインからはみ出て印刷されるか否かの判別結果によ
って前記印刷手段によるヘッドの走査回数を異ならせて
印刷させるように、前記印刷手段を制御する制御手段と
を具備したものである。Means for Solving the Problems In order to achieve the above object, a printing apparatus according to the present invention includes a printing unit that prints a character by scanning a head with reference to a footline of the character, and a printing device that prints a character pattern. Editing means for enlarging and shifting, and when the character pattern is enlarged and shifted by the editing means for printing, a foot indicating whether or not the enlarged and shifted character pattern is printed out of the foot line. A storage unit for storing under-line information corresponding to each character; and determining whether or not a pattern of a character whose line to be printed is enlarged and shifted out of the foot line is printed based on the under-line information. Determination means for determining whether or not a character pattern obtained by enlarging and shifting a line to be printed by the determination means protrudes from the foot line and is printed. And control means for controlling the printing means so that the number of times of scanning of the head by the printing means is changed according to different results.
[作 用] 上記の構成を有する本発明では、フットライン下情報
を予め記憶してあるので、このフットライン下情報によ
り、印刷すべき行の拡大シフトされた文字のパターンが
フットラインからはみ出て印刷される場合が有るか否か
を、容易かつ短時間に判別し、その判別結果に応じてヘ
ッドの走査回数を異ならせて印刷させることができる。[Operation] In the present invention having the above-described configuration, since the under-footline information is stored in advance, the enlarged and shifted character pattern of the line to be printed protrudes from the footline by the under-footline information. It is possible to easily and quickly determine whether or not there is a case where printing is performed, and to perform printing by changing the number of times of scanning of the head according to the determination result.
例えば、本発明の一実施例によれば、文字を拡大する
際に所定方向へフォントデータをシフトすることによ
り、文字のベースライン揃えを行なうことができる。For example, according to an embodiment of the present invention, when enlarging a character, the font data is shifted in a predetermined direction, whereby the baseline of the character can be aligned.
また、上記ベースライン揃えをした時に基準ライン
(フットライン)より下側にドットが来るか否かを判別
することにより、基準ライン(フットライン)より下側
にドットが来ない時は印字をN分割(例えば2分割)で
済ませ、フットラインより下側にドットが来る時は印字
をN+1分割(例えば、3分割するようにしている。Further, by determining whether or not a dot comes below the reference line (foot line) when the base line is aligned, if the dot does not come below the reference line (foot line), the print is set to N. The printing is divided (for example, divided into two), and when a dot comes below the foot line, the print is divided into N + 1 (for example, divided into three).
さらに、行単位の印字を行なう場合には、基準ライン
(フットライン)より下側に存在するドットについて
は、次行の印字要求があるときは次行のドットと同時に
印字し、次行の印字要求がないときは基準ライン(フッ
トライン)より下側のみを印字する。Furthermore, when printing is performed in line units, dots below the reference line (foot line) are printed simultaneously with the dots in the next line when there is a print request for the next line, and printed in the next line. When there is no request, only the area below the reference line (foot line) is printed.
[実施例] 第1図は、本発明を適用したドットマトリックスプリ
ンタの概略構成を示す。本ドットマトリックスプリンタ
は図に示すように、標準文字フォントを拡大して得たド
ット展開情報を記憶する記憶手段Aと、前記ドット展開
情報によって形成される拡大文字のベースラインを所定
の基準ラインに一致させるようシフトさせるシフト制御
手段Bと、前記シフト制御による結果、前記基準ライン
を超えてフォント情報が存在するか否かを判別する判別
手段Cと、前記判別によりフォント情報が存在しないと
された場合には当該拡大文字をN回に分割して印字し
(N=2,3…)、前記判別によりフォント情報が存在す
るとされた場合には当該拡大文字を(N+1)回に分割
して印字する印字制御手段Dと、プリンタEを具備した
ものである。ここで、前記(N+1)回に分割して印字
を行う際に、最終回の分割印字を次行の印字と同時に行
うのが好適である。Embodiment FIG. 1 shows a schematic configuration of a dot matrix printer to which the present invention is applied. As shown in the figure, the present dot matrix printer has a storage means A for storing dot expansion information obtained by enlarging a standard character font, and a base line of an expanded character formed by the dot expansion information as a predetermined reference line. Shift control means B for shifting to match, determination means C for determining whether or not font information exists beyond the reference line as a result of the shift control, and it is determined that font information does not exist by the determination. In this case, the enlarged character is divided into N times and printed (N = 2, 3,...), And if it is determined that the font information is present, the enlarged character is divided into (N + 1) times and printed. And a printer E. Here, when printing is performed in the (N + 1) -time division, it is preferable that the final division printing is performed simultaneously with the printing of the next line.
第2図は、第1図に示したドットマトリックスプリン
タをより詳細に示したブロック図である。本図におい
て、1は装置全体を制御するCPUであって、ROM2内に格
納されたプログラム2b(第5,6,7,8図のフローチャー
ト)に従って動作するものである。またROM2内にはCG
(キャラクタジェネレータ)2a(第3図に構造図を示
す)が格納されており、このデータが第4図のように展
開され、印字される。3はデータを一時記憶するための
RAMであり、RAM内にはコレクションバッファ3a,ワンラ
インバッファ3b,プリントバッファ3cが存在する。FIG. 2 is a block diagram showing the dot matrix printer shown in FIG. 1 in more detail. In FIG. 1, reference numeral 1 denotes a CPU for controlling the entire apparatus, which operates according to a program 2b (flowcharts in FIGS. 5, 6, 7, and 8) stored in a ROM 2. In addition, CG is in ROM2
(Character generator) 2a (a structural diagram is shown in FIG. 3) is stored, and this data is developed and printed as shown in FIG. 3 is for temporarily storing data
The RAM is a RAM, and includes a collection buffer 3a, a one-line buffer 3b, and a print buffer 3c.
ここで、コレクションバッファ3aはキーボード8より
入力された文字を複数行分記憶しておくためのバッファ
であり、文字は1バイトのコードとして記憶される。ワ
ンラインバッファ3bはコレクションバッファより1行分
のデータを受け取り、文字単位にコード,サイズ,位置
情報を持つ。プリントバッファ3cはワンラインバッファ
3bより1行分のデータを受け取り、文字コードをCG(キ
ャラクタジェネレータ)2aよりドット情報として展開
し、36×40ドットのフォントを拡大・シフトし、印字ス
タイルとして一時記憶する。Here, the collection buffer 3a is a buffer for storing a plurality of lines of characters input from the keyboard 8, and the characters are stored as one-byte codes. The one-line buffer 3b receives one line of data from the collection buffer, and has code, size, and position information in character units. Print buffer 3c is a one-line buffer
One line of data is received from 3b, the character code is expanded as dot information from a CG (character generator) 2a, and a 36 × 40 dot font is enlarged and shifted, and temporarily stored as a printing style.
4は電源、5はデータ・コントロール信号の授受を行
なうCPUバス、6はモーターを制御するためのモーター
ドライバー、7はサーマルヘッドを制御するサーマルド
ライバー、8は入力装置であるキーボード、9は入力さ
れた文字・各種メッセージ等を出力するための表示器
(LCD等)、10はキャリッジ駆動及び紙送り動作及びサ
ーマルヘッドを動作させるためのモーター、11は印字を
行うサーマルヘッド、12はサーマルヘッドにより加熱さ
れたインクを紙に転写するインクリボン、13はモータ
ー,サーマルヘッド,インクリボンを搭載したプリンタ
ユニット、14は入力データを保存記憶するフロッピーを
駆動するフロッピーディスクドライブ回路である。4 is a power supply, 5 is a CPU bus for transmitting and receiving data control signals, 6 is a motor driver for controlling a motor, 7 is a thermal driver for controlling a thermal head, 8 is a keyboard as an input device, and 9 is an input device. Display (LCD etc.) for outputting characters and various messages, etc., 10 is a motor for driving the carriage and paper feeding operation and the thermal head, 11 is a thermal head for printing, 12 is heated by the thermal head An ink ribbon for transferring the ink to paper; 13, a printer unit equipped with a motor, a thermal head, and an ink ribbon; and 14, a floppy disk drive circuit for driving a floppy for storing and storing input data.
第3図はCG(キャラクタジェネレータ)2aの構造を示
した図である。このCGは、ディレクトリー部31とデータ
部35よりなる。ディレクトリー部31は各々の文字コード
に対応してそれぞれ8バイトで構成され、データ部への
アドレス(2バイト),文字幅(1バイト),枠取情報
(3バイト),予約領域(2バイト)がある。データ部
35は枠取りされ格納してあり、X1は文字データの左側空
白部のカウント,X2は文字データの横ドットカウント,X3
は文字データの右側空白部のカウント,Y1の上側空白部
のカウント,Y2は文字データの縦カウント,Y3は下側空白
部のカウントであり、それぞれが枠取情報として32,33,
34の様に格納されている(除く:X3,Y3)。ここで、X3に
ついては(文字幅−X1−X2)により求められ、Y3につい
ては{予め決められている縦ドット数(ここでは40)−
Y1−Y2}により求められる。また、33の最上位ビットは
フットライン下情報であり、第10図(C)のように文字
を拡大シフトした時、斜線の部分にデータが存在するか
否かを示す情報である。FIG. 3 is a diagram showing the structure of a CG (character generator) 2a. This CG includes a directory section 31 and a data section 35. The directory section 31 is composed of 8 bytes each corresponding to each character code. The address to the data section (2 bytes), character width (1 byte), frame information (3 bytes), reserved area (2 bytes) There is. Data section
35 is framed and stored, X1 is the left blank count of character data, X2 is the horizontal dot count of character data, X3
Is the count of the right blank part of the character data, the count of the upper blank part of Y1, Y2 is the vertical count of the character data, and Y3 is the count of the lower blank part.
It is stored as 34 (excluding: X3, Y3). Here, X3 is obtained by (character width-X1-X2), and Y3 is {predetermined number of vertical dots (here, 40)-
Y1−Y2}. The most significant bit 33 is footline lower information, which indicates whether or not data exists in the hatched portion when the character is enlarged and shifted as shown in FIG. 10 (C).
第4図は、ワンラインバッファ3bおよびプリントバッ
ファ3cの構造図である。ここで、41はワンラインバッフ
ァ3bの1行目を示し、いま文字“L",“H",“J"がある。
ここで“L"は標準サイズであり、“H"と“J"は4倍角サ
イズの拡大文字である。FIG. 4 is a structural diagram of the one-line buffer 3b and the print buffer 3c. Here, 41 indicates the first line of the one-line buffer 3b, and there are now characters "L", "H", and "J".
Here, “L” is a standard size, and “H” and “J” are enlarged characters of a quadruple size.
位置情報はプリントバッファ3cの絶対位置を示すもの
である。ここで42はワンラインバッファ3bの2行目を示
し、文字“F",“E",“I"がすべて標準サイズで格納され
ている。The position information indicates the absolute position of the print buffer 3c. Here, reference numeral 42 denotes the second line of the one-line buffer 3b, in which characters "F", "E", and "I" are all stored in a standard size.
以上の2行分のワンラインバッファ3bをプリントバッ
ファ3cへ展開した図が43,44,45であり、1行目に4倍角
文字が存在するので、プリントバッファは3行にわたっ
て分割される。43には“H"と“J"の上側のみのデータが
展開され、44には“L"と“H"の下側および“J"の下側が
展開され、45には“F",“E",“I"および“J"のフットラ
イン下のデータが展開される。つまり、“J"は3行にわ
たりドット展開されることになる。43, 44, and 45 show the one-line buffer 3b for the two lines developed into the print buffer 3c. Since the quadruple-width characters exist in the first line, the print buffer is divided into three lines. 43 expands only the data above “H” and “J”, 44 expands the lower side of “L” and “H” and the lower side of “J”, and 45 expands “F”, “ The data below the E "," I "and" J "footlines are expanded. That is, "J" is dot-expanded over three lines.
第5図は、本ドットマトリックスのパワーオン・シー
ケンスを示すフローチャートである。まず、電源がオン
されると、ステップS501でイニシャル動作を行なわれ
る。イニシャル動作とはRAMのクリア/初期設定,I/Oポ
ートの初期設定,プリンタのイニシャル化である。ステ
ップS502ではキー入力が有るか否かを判断し、無い時は
再びステップS502を繰り返す。FIG. 5 is a flowchart showing a power-on sequence of the present dot matrix. First, when the power is turned on, an initial operation is performed in step S501. The initial operation is to clear / initialize the RAM, initialize the I / O ports, and initialize the printer. In step S502, it is determined whether or not there is a key input, and if not, step S502 is repeated again.
キー入力が有った時は、ステップS503で文字キーか否
かを判断する。文字キーでない時はステップS509へ制御
を移す。文字キーである時は、ステップS504で文字キー
入力直前にサイズ切替えがあったか否かを判断する。サ
イズ切替えがあったならば、ステップS505でサイズ切替
えコードをコレクションバッファ3aへ格納し、ステップ
S506へ移る。サイズ切替えコードで無い時はステップS5
06へ移り、文字コードをコレクションバッファ3aへ入れ
る。ステップS507では、コレクションバッファ3aの最新
の1行分のデータをワンラインバッファ3bへ展開する。
ステップS508では、ワンラインバッファ3bより1ライン
分のデータを表示器9へ表示し、ステップS502へ遷移す
る。If there is a key input, it is determined in step S503 whether the key is a character key. If it is not a character key, control is transferred to step S509. If it is a character key, it is determined in step S504 whether or not the size has been switched immediately before the character key is input. If there is a size switch, the size switch code is stored in the collection buffer 3a in step S505, and step S505 is performed.
Move to S506. If it is not the size switching code, step S5
Move to 06 and put the character code into the collection buffer 3a. In step S507, the latest one row of data in the collection buffer 3a is expanded in the one-line buffer 3b.
In step S508, the data for one line is displayed on the display 9 from the one-line buffer 3b, and the process proceeds to step S502.
さて、ステップS509では、サイズ切替えキーか否かを
判別する。サイズ切替キーであるならばステップS510で
サイズ情報を切替え、ステップS502へ遷移する。他方、
サイズ切替キーでない時はステップS511でリターンキー
か否かを調べる。リターンキーでない時はステップS502
へ遷移する。リターンキーの時は、ステップS512で後述
する印字動作を行ない、ステップS502へ遷移し、処理を
続ける。Now, in a step S509, it is determined whether or not the key is a size switching key. If the key is the size switching key, the size information is switched in step S510, and the process proceeds to step S502. On the other hand,
If the key is not the size switching key, it is checked in step S511 whether the key is a return key. If not a return key, step S502
Transition to. In the case of the return key, a printing operation described later is performed in step S512, and the process proceeds to step S502 to continue the processing.
第6図,第7図,第8図は本ドットマトリックスプリ
ンタにおける印字手順を示すフローチャートである。FIG. 6, FIG. 7, and FIG. 8 are flowcharts showing a printing procedure in the present dot matrix printer.
ステップS601では、印字すべき1ライン中に拡大文字
が有るか否かを判断する。無い時は第7図のステップS7
01へ飛ぶ。拡大文字が有る時は、ステップS602でワンラ
インバッファ3bより1文字獲得する。ステップS603では
獲得した文字が拡大文字であるか否かを判断する。拡大
文字でない時はステップS607へ移行する。拡大文字の時
は、ステップS604で文字データの上側をワークメモリへ
ドット展開し、拡大する。In step S601, it is determined whether there is an enlarged character in one line to be printed. If not, step S7 in FIG.
Fly to 01. If there is an enlarged character, one character is obtained from the one-line buffer 3b in step S602. In step S603, it is determined whether or not the acquired character is an enlarged character. If it is not an enlarged character, the process proceeds to step S607. If the character is an enlarged character, the upper side of the character data is dot-expanded in the work memory in step S604 to enlarge the character data.
ステップS605では、拡大した文字データを下へシフト
する。ステップS606では、拡大シフトしたドットデータ
をプリントバッファ3cへ格納する。この時、ステップS8
04〜S806(第8図に関して後述する)で格納するデータ
がすでにプリントバッファ3cに存在する時(第8図のス
テップS813経由)があるので、論理和を求めてプリント
バッファ3cへ格納する。In step S605, the enlarged character data is shifted downward. In step S606, the enlarged shifted dot data is stored in the print buffer 3c. At this time, step S8
Since the data to be stored in steps 04 to S806 (described later with reference to FIG. 8) already exists in the print buffer 3c (via step S813 in FIG. 8), the logical sum is obtained and stored in the print buffer 3c.
次にステップS607では、ワンラインバッファ3bすべて
をプリントバッファ3cへ展開したか否か判断する。デー
タが残っている時はステップs602へ移行し、処理を繰返
す。データ展開が終了したならば、ステップs608でプリ
ントバッファ3cの内容を印字する。Next, in step S607, it is determined whether or not all of the one-line buffer 3b has been expanded to the print buffer 3c. If data remains, the process proceeds to step s602 and the process is repeated. When the data development is completed, the contents of the print buffer 3c are printed in step s608.
ステップS609では、プリントバッファ3cをクリアす
る。ステップS610では、キャリッジリターン,ラインフ
ィードを行ない、第7図のステップS701へ移る。In step S609, the print buffer 3c is cleared. In step S610, carriage return and line feed are performed, and the flow advances to step S701 in FIG.
ここまでの印字シーケンスは、第4図に示した43及び
45の部分である。The printing sequence up to this point is as shown in FIG.
45 parts.
第7図のステップS701では、前シーケンスで印字され
たワンライバッファ3bの先頭より再び1文字獲得する。
ステップS702で文字データをプリントバッファ3cへ展開
する。In step S701 in FIG. 7, one character is acquired again from the head of the one-line buffer 3b printed in the previous sequence.
In step S702, the character data is expanded in the print buffer 3c.
ステップS703では拡大文字か否かを判断し、拡大文字
でない時はステップS706へ移行する。拡大文字の時はス
テップS704で文字データの下側を拡大し、ステップS705
で文字データを下へシフトする。In step S703, it is determined whether the character is an enlarged character. If the character is not an enlarged character, the process proceeds to step S706. If the character is an enlarged character, the lower side of the character data is enlarged in step S704, and step S705
Shifts character data down.
ステップS706では、全体データの展開が終了したか否
かを調べる。終了していない時はステップS701へ戻る。
終了した時はステップS707でプリントバッファ3cの内容
を印字し、ステップS708でプリントバッファ3cをクリア
し、ステップS709でキャリッジターン,ラインフィード
を行ない、第8図のステップS801へ戻る。In step S706, it is determined whether the development of the entire data has been completed. If not, the process returns to step S701.
When the printing is completed, the contents of the print buffer 3c are printed in step S707, the print buffer 3c is cleared in step S708, a carriage turn and a line feed are performed in step S709, and the process returns to step S801 in FIG.
このステップS701からステップS709までの印字シーケ
ンスにより、第4図に示した44の部分が印字される。By the printing sequence from step S701 to step S709, the portion 44 shown in FIG. 4 is printed.
第8図のステップS801では、第6図および第7図の印
字シーケンスで印字されたワンラインバッファ3bの先頭
より再び1文字獲得する。ステップS802では、獲得した
文字が拡大文字であるか否かを判断する。拡大文字でな
い時はステップS807へ移行する。拡大文字の時はステッ
プS803でフットライン下情報を調べる。フットライン下
にドットが無い時はステップS807へ移行する。フットラ
イン下にドットが有る時は、ステップS804で文字データ
をプリントバッファ3cへ展開する。In step S801 in FIG. 8, one character is obtained again from the head of the one-line buffer 3b printed in the printing sequence of FIGS. 6 and 7. In step S802, it is determined whether or not the acquired character is an enlarged character. If it is not an enlarged character, the process proceeds to step S807. If the character is an enlarged character, the information under the footline is checked in step S803. If there is no dot below the foot line, the process moves to step S807. If there is a dot below the foot line, the character data is expanded in the print buffer 3c in step S804.
ステップS805では、文字データのベースライン下を拡
大する。ステップS806では、文字データを上へシフトす
る。In step S805, the character data is expanded below the baseline. In step S806, the character data is shifted upward.
このことにより、第4図に示した45の文字“J"のフッ
トライン下のドットがプリントバッファ3cに展開され
る。As a result, the dot under the footline of the character "J" of 45 shown in FIG. 4 is developed in the print buffer 3c.
ステップS807では、全データの展開が終了したか否か
を調べる。終了していない時はステップS801へ戻り、処
理を続ける。終了した時はステップS808で次行の印字要
求が有るか否かを判断する。印字要求がある時は、ステ
ップS813で次行のワンラインバッファ3bを獲得し、第6
図のステップS601へ遷移し、第8図でドット展開したデ
ータと次行の印字データとの論理和をとり、印字する。In step S807, it is determined whether or not all data has been expanded. If not, the process returns to step S801 to continue the process. When the processing is completed, it is determined in step S808 whether or not there is a print request for the next line. If there is a print request, the one-line buffer 3b of the next line is acquired in step S813 and the sixth line
The flow advances to step S601 in the figure, and the logical sum of the dot-expanded data in FIG. 8 and the print data in the next line is printed.
ステップS808で次行の印字要求がない時は、ステップ
S809でプリントバッファ3cにデータがあるか否かを調べ
る。ない時は処理を終了する。有る時はステップS810で
プリントバッファ3cの内容を印字し、ステップS811でプ
リントバッファ3cをクリアし、ステップS812でキャリッ
ジリターンのみを行ない、処理を終了する。If there is no print request for the next line in step S808,
In S809, it is checked whether or not there is data in the print buffer 3c. If not, the process ends. If there is, the contents of the print buffer 3c are printed in step S810, the print buffer 3c is cleared in step S811, and only the carriage return is performed in step S812, and the process ends.
他の実施例 第9図に示したフローチャートは、本発明の他の実施
例におけるパワーオンより印字までのシーケンスを示
す。この第9図は、行単位に印字を実行するのではな
く、文字単位に印字を行なう時の拡大文字のベースライ
ン揃え処理のフローチャートである。Another Embodiment The flowchart shown in FIG. 9 shows a sequence from power-on to printing in another embodiment of the present invention. FIG. 9 is a flowchart of a base line alignment process for enlarged characters when printing is performed not in units of lines but in units of characters.
まず電源が投入されるとステップS901でイニシャル処
理を行ない、ステップS902でキー入力を待つ。ステップ
S903では、入力されたキーが文字キーであるか否かを判
断する。文字キーでない時はステップS915へ移行する。
文字キーの時は、ステップS904でコレクションバッファ
3aへ1文字格納する。First, when the power is turned on, an initial process is performed in step S901, and a key input is waited in step S902. Steps
In S903, it is determined whether or not the input key is a character key. If it is not a character key, the process proceeds to step S915.
If it is a character key, use the collection buffer in step S904.
Store one character in 3a.
ステップS905では、拡大文字であるか否かを判断す
る。拡大文字でない時は、ステップS914で文字を印字
し、ステップS902へ戻る。拡大文字の時はステップS906
で紙を1行戻し、ステップS907で拡大文字の上側を拡大
シフトし、印字し、ステップS908で紙を1行送り、ステ
ップS909で拡大文字の下側を拡大シフトし、印字する。In step S905, it is determined whether or not the character is an enlarged character. If it is not an enlarged character, the character is printed in step S914 and the process returns to step S902. Step S906 for enlarged characters
Then, the paper is returned by one line, the upper side of the enlarged character is enlarged and shifted in step S907, and printing is performed. In step S908, the paper is advanced by one line, and the lower side of the enlarged character is enlarged and shifted in step S909 and printed.
ステップS910では、フットライン下情報を調べる。フ
ットライン下にドットが無い時は、ステップS902へ戻
る。ドットが有る時はステップS911で紙を1行送り、ス
テップS912で拡大文字のフットライン下を拡大シフトし
て印字する。ステップS913では紙を1行戻し、ステップ
S902へ戻る。In step S910, the information under the footline is checked. If there is no dot below the foot line, the process returns to step S902. If there is a dot, the paper is advanced by one line in step S911, and in step S912, the enlarged character is shifted and printed below the foot line of the enlarged character. In step S913, return the paper by one line,
Return to S902.
また、ステップS903において文字キーでない時はステ
ップS915でサイズ切替キーか否かを判断する。サイズ切
替キーでない時はステップS902へ戻る。サイズ切替キー
の時はステップS916でサイズを切替え、ステップS902へ
戻り、処理を続行する。If it is not a character key in step S903, it is determined in step S915 whether the key is a size switching key. If it is not the size switching key, the process returns to step S902. When the key is the size switching key, the size is switched in step S916, the process returns to step S902, and the process is continued.
以上説明したように本発明の一実施例によれば、文字
を拡大したときにフォントデータをシフトすることによ
り、文字のベースライン揃えを行ない、印字文字列のバ
ランスを良くして見易い印字を得ることが可能となる。As described above, according to the embodiment of the present invention, the font data is shifted when the character is enlarged, thereby aligning the baseline of the character, improving the balance of the printed character string, and obtaining easy-to-read printing. It becomes possible.
また、ベースライン揃えした文字を“行”単位で印字
する場合には、フットラインより下側に印字ドットが存
在する場合は次行と同時に印字し、印字のスピードアッ
プをすることも可能となる。In addition, when printing characters aligned with the base line in "line" units, if there is a print dot below the foot line, it is printed at the same time as the next line, making it possible to speed up printing. .
さらに、ベースライン揃えした文字を“文字”単位で
印字する場合には、フットランインより下側に印字ドッ
トが存在しないとき印字動作を行わないように制御する
ことにより、無駄な動きを省き、印字のスピードアップ
図ることができる。Furthermore, when printing characters aligned in the base line in units of "characters", control is performed so that the printing operation is not performed when there is no printing dot below the foot run-in, thereby eliminating unnecessary movements. Printing speed can be improved.
[発明の効果] 以上説明した通り、本発明では、フットライン下情報
を予め記憶してあるので、このフットライン下情報によ
り、印刷すべき行の拡大シフトされた文字のパターンが
フットラインからはみ出て印刷される場合が有るか否か
を、容易かつ短時間に判別し、その判別結果に応じてヘ
ッドの走査回数を異ならせて印刷させることができる、
という格別な効果を奏することができる。[Effects of the Invention] As described above, according to the present invention, the under-footline information is stored in advance, and the enlarged and shifted character pattern of the line to be printed protrudes from the footline according to the under-footline information. It is possible to easily and quickly determine whether or not there is a case where printing is performed, and to perform printing by changing the number of scans of the head according to the determination result.
It is possible to achieve a special effect.
第1図は本発明に係るドットマトリックスプリンタの概
略構成を示すブロック図、 第2図は本実施例のより詳細な構成図、 第3図はキャラクタジェネレータ(CG)の構造を示す
図、 第4図はワンラインバッファとプリントバッファの構造
を示す図、 第5図は本実施例におけるパワーオン・シーケンスを示
すフローチャート、 第6図ないし第8図は本実施例における印字手順を示す
フローチャート、 第9図は本発明を適用した他の実施例におけるパワーオ
ンより印字まで手順を示すフローチャート、 第10図は文字フォントの展開図である。 1……CPU、 2……ROM、 2a……キャラクタジェネレータ(CG)、 2b……プログラムROM、 3……RAM、 3a……コレクションバッファ、 3b……ワンラインバッファ、 3c……プリントバッファ、 4……電源、 5……CPUバス、 6……モータードライバー、 7……サーマルヘッドドライバー、 8……キーボード、 9……表示器、 10……モーター、 11……サーマルヘッド、 12……インクリボン、 13……プリンターユニット、 14……フロッピーディスクドライブ回路。FIG. 1 is a block diagram showing a schematic configuration of a dot matrix printer according to the present invention, FIG. 2 is a more detailed configuration diagram of the present embodiment, FIG. 3 is a diagram showing a structure of a character generator (CG), FIG. FIG. 5 is a diagram showing the structure of a one-line buffer and a print buffer. FIG. 5 is a flowchart showing a power-on sequence in this embodiment. FIGS. 6 to 8 are flowcharts showing a printing procedure in this embodiment. FIG. 13 is a flowchart showing a procedure from power-on to printing in another embodiment to which the present invention is applied. FIG. 10 is a development view of a character font. 1 ... CPU, 2 ... ROM, 2a ... Character generator (CG), 2b ... Program ROM, 3 ... RAM, 3a ... Collection buffer, 3b ... One line buffer, 3c ... Print buffer, 4 ... Power supply, 5 ... CPU bus, 6 ... Motor driver, 7 ... Thermal head driver, 8 ... Keyboard, 9 ... Display, 10 ... Motor, 11 ... Thermal head, 12 ... Ink ribbon , 13 ... Printer unit, 14 ... Floppy disk drive circuit.
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) B41J 2/51 B41J 2/485──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) B41J 2/51 B41J 2/485
Claims (1)
させて文字を印刷する印刷手段と、 文字のパターンを拡大すると共にシフトさせる編集手段
と、 前記編集手段により文字のパターンを拡大シフトさせて
印刷する場合に、その拡大シフトさせた文字のパターン
が前記フットラインからはみ出て印刷されるか否かを示
すフットライン下情報を各文字に対応して記憶する記憶
手段と、 印刷すべき行の拡大シフトさせた文字のパターンが前記
フットラインからはみ出て印刷されるか否かを前記フッ
トライン下情報に基づき判別する判別手段と、 前記判別手段による印刷すべき行の拡大シフトさせた文
字のパターンが前記フットラインからはみ出て印刷され
るか否かの判別結果によって前記印刷手段によるヘッド
の走査回数を異ならせて印刷させるように、前記印刷手
段を制御する制御手段と を具備したことを特徴とする印刷装置。1. A printing means for printing a character by scanning a head based on a foot line of a character, an editing means for enlarging and shifting a character pattern, and a character pattern enlarged and shifted by the editing means. When printing, a storage means for storing, for each character, information below the footline indicating whether or not the enlarged and shifted character pattern is printed outside the footline, for each character; and Discriminating means for discriminating, based on the information under the footline, whether or not the enlarged and shifted character pattern is printed out of the footline; and the enlarged and shifted character pattern of the line to be printed by the discriminating means. Is printed by changing the number of times of scanning of the head by the printing means depending on the result of determination as to whether or not the print is out of the foot line. A control unit for controlling the printing unit so as to cause the printing unit to perform the printing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2257255A JP2793349B2 (en) | 1990-09-28 | 1990-09-28 | Printing equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2257255A JP2793349B2 (en) | 1990-09-28 | 1990-09-28 | Printing equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04135867A JPH04135867A (en) | 1992-05-11 |
| JP2793349B2 true JP2793349B2 (en) | 1998-09-03 |
Family
ID=17303845
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2257255A Expired - Fee Related JP2793349B2 (en) | 1990-09-28 | 1990-09-28 | Printing equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2793349B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5505377B2 (en) | 2011-07-06 | 2014-05-28 | 株式会社デンソー | Electric on / off valve with forward / reverse relief |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61258766A (en) * | 1985-05-10 | 1986-11-17 | Fujitsu Ltd | Controlling system for printing vertically enlarged character |
| JPS6372556A (en) * | 1986-09-17 | 1988-04-02 | Fujitsu Ltd | Scaled-up printing system |
| JPH01159256A (en) * | 1987-12-16 | 1989-06-22 | Fujitsu Ltd | Printing control system of dot printer |
| JPH01229650A (en) * | 1988-03-11 | 1989-09-13 | Toshiba Corp | Control method in alphabetic printing |
-
1990
- 1990-09-28 JP JP2257255A patent/JP2793349B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH04135867A (en) | 1992-05-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR930002351B1 (en) | Double byte character recognition method in dot printer | |
| JPH0792796B2 (en) | Document creation device | |
| JP2793349B2 (en) | Printing equipment | |
| JPH10147028A (en) | Printing control method in printing apparatus and printing apparatus | |
| JPS59135540A (en) | Printer control system for sentence processor | |
| JPS5941051A (en) | character pattern generator | |
| JP2685724B2 (en) | Document processing method | |
| JPS59201870A (en) | Printer | |
| JP3036260B2 (en) | Information processing device | |
| JP2564513B2 (en) | Printer control device | |
| JP2560650B2 (en) | Tape printer | |
| JP2606586B2 (en) | Data output device | |
| JPS5933544A (en) | Display control method | |
| JPH0225348A (en) | Image output device | |
| JP3457555B2 (en) | Printer device and printer system | |
| JP2889390B2 (en) | Printer device | |
| JP2606587B2 (en) | Data output device | |
| JP2791716B2 (en) | Character printing method | |
| JPH08230254A (en) | Printer | |
| JPS62293286A (en) | word processor | |
| JPH03246081A (en) | Printing device | |
| JPH07276708A (en) | Printer | |
| JPH0890864A (en) | Printer | |
| JPS62241063A (en) | Sentence producing device | |
| JPH09309227A (en) | Bar code output device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |