JP2962564B2 - Printer print control method - Google Patents
Printer print control methodInfo
- Publication number
- JP2962564B2 JP2962564B2 JP2159954A JP15995490A JP2962564B2 JP 2962564 B2 JP2962564 B2 JP 2962564B2 JP 2159954 A JP2159954 A JP 2159954A JP 15995490 A JP15995490 A JP 15995490A JP 2962564 B2 JP2962564 B2 JP 2962564B2
- Authority
- JP
- Japan
- Prior art keywords
- dot
- counter
- character data
- storage unit
- 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
【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 (1)ステップ1 (2)ステップ2 (3)ステップ3 (4)ステップ4 (5)ステップ5 (6)ステップ6 (7)ステップ7 (8)ステップ8 発明の効果 〔概 要〕 情報処理装置等の出力装置として用いられるプリンタ
の印刷制御方法、特に印字を拡大する場合において、そ
の文字を滑らかに表示するようにしたプリンタの印刷制
御方法に関し、 文字を拡大した場合においても、滑らかな文字が得ら
れるようにすることを目的とし、 印字の前段バッファを用いて印字を行うプリンタにお
いて、印字データの縦拡大を制御する縦拡大制御部と、
横拡大を制御する横拡大制御部と、縦拡大および横拡大
された印字データを記憶する印字パス文字データ記憶部
と、拡大前の元の印字データを確認する元データ確認部
と、印字パス文字データ記憶部および元データ確認部の
データによりドット補正を行うドット補正部を具備し、
文字データを滑らかにするように構成する。DETAILED DESCRIPTION OF THE INVENTION [Table of Contents] Overview Industrial application field Conventional technology Problems to be solved by the invention Means for solving the problem Actions Embodiment (1) Step 1 (2) Step 2 (3) Step 3 (4) Step 4 (5) Step 5 (6) Step 6 (7) Step 7 (8) Step 8 Effect of the Invention [Outline] A print control method of a printer used as an output device such as an information processing device, In particular, the present invention relates to a print control method for a printer that displays characters in a smooth manner when enlarging a print. The purpose of the present invention is to provide a smooth character even when the characters are magnified. In a printer that performs printing using a buffer, a vertical enlargement control unit that controls vertical enlargement of print data,
A horizontal enlargement control unit that controls horizontal enlargement, a print path character data storage unit that stores print data that has been enlarged vertically and horizontally, an original data check unit that confirms original print data before enlargement, and a print path character A dot correction unit that performs dot correction based on data of the data storage unit and the original data confirmation unit,
The character data is configured to be smooth.
本発明は情報処理装置等の出力装置として用いられる
プリンタの印刷制御方法に関し、特に印字を拡大する場
合において、その文字を滑らかに表示するようにしたプ
リンタの印刷制御方法に関する。The present invention relates to a print control method for a printer used as an output device such as an information processing apparatus, and more particularly to a print control method for a printer that displays characters smoothly when printing is enlarged.
第34図は従来のプリンタを説明するブロック図であ
る。第34図はシリアルプリンタの一例を示し、該プリン
タは、内部の処理動作を制御する主制御装置1と、外部
とのインタフェースを取るインタフェース部2と、文字
のドットパターンを記憶している文字データ記憶部3
と、横拡大を制御する横拡大制御部4と、縦拡大を制御
する縦拡大制御部5と、1文字分の印字データを一時記
憶する1文字データ記憶部6と、印字処理時のスペース
動作を制御するスペース制御部7と、改行動作を制御す
る改行制御部8と、印字処理の動作を制御する印字制御
部9と、印字データが格納されているラインバッファ10
と、ラインバッファ10に格納されている印字データを印
字制御部9の制御のもとに印字する印字ヘッド11を具備
している。FIG. 34 is a block diagram illustrating a conventional printer. FIG. 34 shows an example of a serial printer. This printer has a main controller 1 for controlling internal processing operations, an interface unit 2 for interfacing with the outside, and character data storing character dot patterns. Storage unit 3
A horizontal enlargement control unit 4 for controlling horizontal enlargement, a vertical enlargement control unit 5 for controlling vertical enlargement, a one-character data storage unit 6 for temporarily storing print data for one character, and a space operation at the time of print processing , A line feed control unit 8 for controlling a line feed operation, a print control unit 9 for controlling a print processing operation, and a line buffer 10 for storing print data.
And a print head 11 for printing the print data stored in the line buffer 10 under the control of the print control unit 9.
例えば、文字を縦横n倍に拡大する場合、従来は、縦
拡大制御部5により文字データ記憶部3から取り出すデ
ータを1カラムごとに縦拡大し、現在印字しようとして
いる印字データのみ1文字データ記憶部6に書き込み、
その後横拡大制御部4により1カラムごとに横拡大しな
がらラインバッファ10に書き込んでいたが、この方法だ
と単にドットが拡大されたことになるので滑らかな文字
とならない。ここに、文字データ記憶部3は、通常読み
出し専用メモリ(ROM)が使用される。1文字データ記
憶部6とラインバッファ10は、読み書き可能メモリ(RA
M)が使用される。カラムとは、文字の横幅の単位であ
って24ドットプリンタの場合1カラムは24ドット×1の
データとなる。For example, in the case of enlarging a character vertically and horizontally n times, conventionally, the data taken out of the character data storage unit 3 by the vertical enlargement control unit 5 is enlarged vertically for each column, and only the print data to be printed at present is stored in one character data. Write to part 6,
Thereafter, the horizontal enlargement control unit 4 writes the data in the line buffer 10 while enlarging the data horizontally for each column. However, according to this method, the dots are simply enlarged, and the characters are not smooth. Here, the character data storage unit 3 is usually a read-only memory (ROM). The one-character data storage unit 6 and the line buffer 10 have a readable / writable memory (RA
M) is used. A column is a unit of the width of a character. In the case of a 24-dot printer, one column is data of 24 dots × 1.
前述のように、従来方法においては、文字が拡大され
た場合、滑らかな文字とならないという課題があった。As described above, the conventional method has a problem that when a character is enlarged, the character is not smooth.
従って、本発明の目的は文字を拡大した場合において
も、滑らかな文字が得られるようにすることにある。Accordingly, an object of the present invention is to provide a smooth character even when the character is enlarged.
本発明においては、ラインバッファに格納されている
印字データを用いて印字を行うシリアルプリンタの印刷
制御方法であって、該プリンタは縦拡大制御部5と横拡
大制御部4と、1文字データ記憶部6と、縦横の拡大を
行った後のドットデータを記憶する印字パス文字データ
記憶部21と、拡大されていない元のドットデータのドッ
トを記憶する元データ確認部22と、拡大後のドットを補
正するドット補正部24を備え、縦拡大制御部5により1
文字データ記憶部6内の文字データを縦拡大し印字パス
文字データ記憶部21に書き込む過程(S1)、横拡大制御
部4により印字パス文字データ記憶部21内のデータを横
拡大し、該印字パス文字データ記憶部21に書き込む過程
(S2)、文字幅分のカウンタを設定し(S3)、縦拡大制
御部5より1文字データ記憶部6内の文字データの拡大
された幅のドット位置を計算する過程(S4)、開始ドッ
トをドットカウンタに設定する過程(S5)、および元デ
ータ確認部22とドット補正部24によって、ドットカウン
タの示すドットが印字か無印字か、および該ドットの隣
接周辺ドットとその次の隣接周辺ドット(例えば、第3
図のと,と,と,と,と,と
)のそれぞれの論理和が印字か無印字かに対応して、
拡大された文字データの角を削るか埋めるかする過程
(S6〜S10)、を具備することを特徴とするプリンタの
印刷制御方法、が提供される。According to the present invention, there is provided a print control method for a serial printer that performs printing using print data stored in a line buffer, the printer comprising: a vertical enlargement control unit 5; a horizontal enlargement control unit 4; Unit 6, a print pass character data storage unit 21 for storing dot data after vertical and horizontal enlargement, an original data confirmation unit 22 for storing dots of original dot data that has not been enlarged, and a dot after enlargement. And a dot correction unit 24 for correcting
The process of vertically enlarging the character data in the character data storage unit 6 and writing it in the print pass character data storage unit 21 (S1). The horizontal enlargement control unit 4 enlarges the data in the print pass character data storage unit 21 horizontally and prints it. The process of writing to the pass character data storage unit 21 (S2), a counter for the character width is set (S3), and the vertical enlargement control unit 5 determines the dot position of the enlarged width of the character data in the one character data storage unit 6. The step of calculating (S4), the step of setting the starting dot in the dot counter (S5), and the original data checking unit 22 and the dot correcting unit 24 determine whether the dot indicated by the dot counter is printing or non-printing, and whether the dot is adjacent to the dot. A peripheral dot and its next adjacent peripheral dot (for example,
,,, And, and) correspond to whether the logical OR is printed or unprinted,
A printing control method for a printer, comprising a step (S6 to S10) of cutting or filling corners of the enlarged character data.
本発明のプリンタは、前述した印字パス文字データ記
憶部21と元データ確認部22とドット補正部24を含むスム
ーズイング制御部20を備え、スムーズイングを行う場
合、縦拡大制御部5および横拡大制御部4にて縦横拡大
を行ったデータを印字パス文字データ記憶部21に書き込
み、元データ確認部22にて1文字データ記憶部6内の各
ドットとその回りのドットを確認し、そのデータに基づ
きドット補正部24が印字パス文字データ記憶部21に対し
てドット補正(削除・追加)を行う。これにより、スム
ーズイング制御部20によりラインバッファ10へ書き込む
データを滑らかにし、滑らかな縦横が拡大された印字が
可能となる。The printer of the present invention includes the above-described printing pass character data storage unit 21, the original data checking unit 22, and the smoothing control unit 20 including the dot correction unit 24. When performing smoothing, the vertical enlargement control unit 5 and the horizontal enlargement The data expanded vertically and horizontally by the control unit 4 is written into the print pass character data storage unit 21, and the original data check unit 22 checks each dot in the one-character data storage unit 6 and the surrounding dots, and checks the data. The dot correction unit 24 performs dot correction (deletion / addition) on the print pass character data storage unit 21 based on the. As a result, the data written to the line buffer 10 by the smoothing control unit 20 is smoothed, and printing in which the vertical and horizontal directions are smoothly enlarged becomes possible.
本発明のプリンタの印刷制御方法を行うシリアルプリ
ンタのブロック図が第1図に示される。このプリンタ
は、内部の処理動作を制御する主制御装置1と、外部と
のインタフェースを取るインタフェース部2と、文字の
ドットパターンを記憶している文字データ記憶部3と、
横拡大を制御する横拡大制御部4と、縦拡大を制御する
縦拡大制御部5と、1文字分の印字データを一時記憶す
る1文字データ記憶部6と、印字処理時のスペース動作
を制御するスペース制御部7と、改行動作を制御する改
行制御部8と、印字処理の動作を制御する印字制御部9
と、印字データが格納されているラインバッファ10と、
ラインバッファ10に格納されている印字データを印字制
御部9の制御のもとに印字する印字ヘッド11と、スムー
ズイングを行うためのスムーズイング制御部20を具備す
る。スムーズイング制御部20は縦横の拡大を行った後の
ドットデータを記憶するための印字パス文字データ記憶
部21と、拡大されていない元のドットデータのドットを
確認するための元データ確認部22と、拡大後のドットを
補正するためのドット補正部24を設けている。FIG. 1 is a block diagram of a serial printer that performs the printing control method of the printer according to the present invention. The printer includes a main controller 1 for controlling internal processing operations, an interface unit 2 for interfacing with the outside, a character data storage unit 3 for storing dot patterns of characters,
A horizontal enlargement control unit 4 for controlling horizontal enlargement, a vertical enlargement control unit 5 for controlling vertical enlargement, a one-character data storage unit 6 for temporarily storing print data for one character, and controlling a space operation at the time of print processing. Space control unit 7 for controlling line feed operation, line feed control unit 8 for controlling line feed operation, and print control unit 9 for controlling print processing operation
And a line buffer 10 in which print data is stored,
A print head 11 for printing print data stored in the line buffer 10 under the control of the print control unit 9 and a smoothing control unit 20 for performing smoothing are provided. The smoothing control unit 20 includes a print path character data storage unit 21 for storing dot data after vertical and horizontal enlargement, and an original data confirmation unit 22 for confirming dots of original dot data that have not been enlarged. And a dot correction unit 24 for correcting the enlarged dot.
例えば、24ドットシリアルプリンタで擬似倍密度(連
続したドットを印字できないもの)で印字を行うものに
ついて、第13図〜第23図にそってスムーズイング制御部
20によって行われるスムーズイング処理を説明する。但
し、第13図〜第23図は24ドット中の一部分を示す6×6
倍拡大図である。For example, for a printer that performs printing at a pseudo double density (a printer that cannot print continuous dots) using a 24-dot serial printer, the smoothing control unit shown in FIGS.
The smoothing process performed by 20 will be described. However, FIGS. 13 to 23 show a part of 24 dots, 6 × 6.
FIG.
スムーズイング制御部20は縦拡大制御部5により1文
字データ記憶部6内の文字データを縦拡大し印字パス文
字データ記憶部21に書き込み、横拡大制御部4により印
字パス文字データ記憶部21内のデータを横拡大し同じ印
字パス文字データ記憶部21に書き込み(第14図)、文字
幅分のカウンタをセットし、縦拡大制御部5により1文
字データ記憶部6内の文字データの縦何ドット目から何
ドット目までが縦拡大されて印字パス文字データ記憶部
21に書き込まれたかを計算し、ドットカウンタとして開
始ドットをセットする。開始ドットおよび終了ドットは
次式(1−1)および(1−2)から得られる。The smoothing control unit 20 vertically enlarges the character data in the one-character data storage unit 6 by the vertical enlargement control unit 5 and writes it in the print pass character data storage unit 21, and the horizontal enlargement control unit 4 stores the character data in the print pass character data storage unit 21. 14 is written in the same print pass character data storage unit 21 (FIG. 14), a counter for the character width is set, and the vertical expansion Print pass character data storage area from dot to dot
Calculate whether it was written to 21, and set the starting dot as a dot counter. The start dot and the end dot are obtained from the following equations (1-1) and (1-2).
縦拡大率をVMR(1〜n)、現在印字しようとしてい
るパスをVMPASS(0〜VMR−1)とした時、次式が導か
れる。When the vertical magnification is VMR (1 to n) and the path to be printed is VMPASS (0 to VMR-1), the following equation is derived.
開始ドット=(24×VMPASS−1)÷VMR …(1−1) ただし開始ドットが0より小さくなった場合0とする
(小数以下切り捨て)。Start dot = (24 × VMPASS−1) ÷ VMR (1-1) However, when the start dot becomes smaller than 0, it is set to 0 (rounded down to the decimal).
終了ドット=(24×(VMPASS+1)+1)÷VMR …(1−2) ただし終了ドットが23より大きくなった場合23とする
(小数以下切り捨て)。End dot = (24 × (VMPASS + 1) +1) ÷ VMR (1-2) However, if the end dot is larger than 23, it is set to 23 (rounded down to the nearest decimal).
その後、元データ確認部22により1文字データ記憶部
6内の文字データの指定のドットが印字(1)か無印字
(0)なのか確認する。このドット位置は次に示される
式(2−2)で算出され、第3図における×で示される
箇所である。さらに、そのドットの回りのドット(上下
左右斜め、すなわち第3図の左部分の〜,,,
,,,、最終的には第3図の右部分の〜、
ここに、右は左と、右は左と、右は左
と、右は左と、右は左と、右は左と
のそれぞれの論理和である。)が印字か無印字かを確
認する。After that, the original data confirmation unit 22 confirms whether the designated dot of the character data in the one-character data storage unit 6 is printing (1) or non-printing (0). This dot position is calculated by the following equation (2-2), and is a position indicated by x in FIG. Furthermore, the dots around the dot (up, down, left, right, that is, ~ ,,, in the left part of FIG. 3)
,,,, finally, ~ in the right part of FIG.
Here, the right is the logical sum of the left, the right is the left, the right is the left, the right is the left, the right is the left, and the right is the left. ) Is printed or not.
ここで、ドットカウンタの値をYとすると、次式が導
かれる。Here, assuming that the value of the dot counter is Y, the following equation is derived.
バイト位置=(Y÷8)%3 …(2−1) ドット位置=2^((23−Y)%8) …(2−2) ここに、α%βはα÷βの余りを示し、α^βはαの
β乗を示す。Byte position = (Y ÷ 8)% 3 (2-1) Dot position = 2 ^ ((23−Y)% 8) (2-2) Here, α% β indicates the remainder of α ÷ β. , Α ^ β indicates α raised to the power of β.
その後、ドット補正部24により元データ確認部22で確
認した指定ドットが1の場合、元データ確認部22で確認
した,,,のドットの総和が3以上で、,
が共に1で,が共に1の時、ドット補正を行わな
い。Thereafter, if the designated dot confirmed by the original data confirmation unit 22 by the dot correction unit 24 is 1, the sum of the dots of,,, and confirmed by the original data confirmation unit 22 is 3 or more,
When both are 1 and both are 1, dot correction is not performed.
補正が行われる場合は次のステップ1〜8に従って行
われる。When correction is performed, the correction is performed according to the following steps 1 to 8.
(1)ステップ1 ,,が全て0の時、補正カラムカウンタを0に
し、横または縦拡大率の小さい方の倍率の半分の値(四
捨五入)から1引いた値を補正ドットカウンタに入力す
る。(1) When all of the steps 1,... Are 0, the correction column counter is set to 0, and a value obtained by subtracting 1 from half the value (rounded off) of the smaller horizontal or vertical magnification is input to the correction dot counter.
補正カラムドットカウンタに0を入れ、式(3−1)
にて算出したパス番号が現在印字しようとしているパス
番号と同じ場合、印字パス文字データ記憶部21内の式
(4)にて算出した位置にあるバイトから式(3−3)
にて算出したドット位置のドットを削除し、補正カラム
ドットカウンタを1足して値が補正ドットカウンタの値
になるまで繰り返し、補正カラムカウンタを2カラム分
(2×3バイト)進め、補正ドットカウンタを1減算し
このカウンタが0になるまでこの動作を繰り返す。(第
5図または第15図参照) 式(3−1),(3−2),(3−3)、式(4)
は、補正カラムドットカウンタ値をIとすると、次のよ
うに求められる。Put 0 in the correction column dot counter, and calculate equation (3-1).
If the pass number calculated in step (3) is the same as the pass number to be printed now, the byte in the print path character data storage unit 21 at the position calculated in equation (4) is used to obtain the equation (3-3).
The dot at the dot position calculated in is deleted and the correction column dot counter is incremented by one until the value reaches the value of the correction dot counter. The correction column counter is advanced by two columns (2 × 3 bytes), and the correction dot counter is incremented. Is decremented by 1 and this operation is repeated until this counter becomes 0. (See FIG. 5 or FIG. 15) Equations (3-1), (3-2), (3-3), Equation (4)
Is obtained as follows, where I is the correction column dot counter value.
パス番号=(Y×VMR+I)÷24 …(3−1) バイト位置=((Y×VMR+I)÷8)%3 …(3−2) ドット位置=2^((((23−Y)×VMR)+VMR−1−I)%8)…(3−3) また式(4)は、文字幅分のカウンタ値をX、横拡大
率をHMR(1〜n)、補正カラムカウンタをJ、式(3
−2)で算出したバイト位置をBPとする時、 バイト位置=X×HMR×3+BP+J …(4) となる。Pass number = (Y × VMR + I) ÷ 24 (3-1) Byte position = ((Y × VMR + I) ÷ 8)% 3 (3-2) Dot position = 2 ((((((23−Y) × VMR) + VMR-1-I)% 8) (3-3) Expression (4) indicates that the counter value for the character width is X, the horizontal enlargement ratio is HMR (1 to n), the correction column counter is J, Equation (3
When the byte position calculated in -2) is BP, the byte position = X × HMR × 3 + BP + J (4)
(2)ステップ2 ,,が全て0の時、補正カラムカウンタを式
(5)にて算出した値にし横または縦拡大率の小さい方
の倍率の半分の値(四捨五入)から1引いた値を補正ド
ットカウンタに入力する。(2) When all of the steps 2,, are 0, the correction column counter is set to the value calculated by the equation (5), and the value obtained by subtracting 1 from half the value (rounded) of the smaller horizontal or vertical enlargement ratio is subtracted. Input to the correction dot counter.
補正カラムドットカウンタに0を入れ、式(3−1)
にて算出したパス番号が現在印字しようとしているパス
番号と同じ場合、印字パス文字データ記憶部21内の式
(4)にて算出した位置にあるバイトから式(3−3)
にて算出したドット位置のドットを削除し、補正カラム
ドットカウンタを1足して値が補正ドットカウンタの値
になるまで繰り返し補正カラムカウンタを2カラム分
(2×3バイト)戻し、補正ドットカウンタを1減算し
このカウンタが0になるまでこの動作を繰り返す(第6
図または第16図参照)。上述の式(5)は次のように導
かれる。Put 0 in the correction column dot counter, and calculate equation (3-1).
If the pass number calculated in step (3) is the same as the pass number to be printed now, the byte in the print path character data storage unit 21 at the position calculated in equation (4) is used to obtain the equation (3-3).
The dot at the dot position calculated in is deleted, the correction column dot counter is incremented by one, and the correction column counter is repeatedly returned by two columns (2 × 3 bytes) until the value reaches the value of the correction dot counter. This operation is repeated until this counter becomes 0 after subtracting 1 (6th
(See Figure or Figure 16). Equation (5) above is derived as follows.
補正カラムカウンタ値=(HMR×2−2)×3 …(5) (3)ステップ3 ,,が全て0の時、補正カラムカウンタを式
(5)にて算出した値にし横または縦拡大率の小さい方
の倍率の半分の値(四捨五入)から1引いた値を補正ド
ットカウンタに入力する。Correction column counter value = (HMR × 2-2) × 3 (5) (3) When steps 3 and are all 0, the correction column counter is set to the value calculated by equation (5) and the horizontal or vertical enlargement ratio is set. The value obtained by subtracting 1 from half the value (rounded off) of the smaller magnification is input to the correction dot counter.
補正カラムドットカウンタに式(6)にて算出した値
を入れ、式(3−1)にて算出したパス番号が現在印字
しようとしているパス番号と同じ場合、印字パス文字デ
ータ記憶部21内の式(4)にて算出した位置にあるバイ
トから式(3−3)にて算出したドット位置のドットを
削除し、補正カラムドットカウンタに1足して値が縦拡
大の値になるまで繰り返し、補正カラムカウンタを2カ
ラム分(2×3バイト)戻し、補正ドットカウンタを1
減算しこのカウンタが0になるまでこの動作を繰り返す
(第7図または第17図参照)。上述の式(6)は、補正
ドットカウンタ値をVMREとする時、次のように導かれ
る。The value calculated by equation (6) is inserted into the correction column dot counter, and if the pass number calculated by equation (3-1) is the same as the pass number currently being printed, the print path character data storage unit 21 The dot at the dot position calculated by the equation (3-3) is deleted from the byte at the position calculated by the equation (4), added to the correction column dot counter by one, and repeated until the value becomes the value of the vertical enlargement, Return the correction column counter for 2 columns (2 × 3 bytes) and set the correction dot counter to 1
This operation is repeated until the counter becomes 0 (see FIG. 7 or FIG. 17). The above equation (6) is derived as follows when the correction dot counter value is VMRE.
補正カラムドットカウンタ値=VMR−1−VMRE+1 …(6) (4)ステップ4 ,,が全て0の時、補正カラムカウンタを0に
し、横または縦拡大率の小さい方の倍率の半分の値(四
捨五入)から1引いた値を補正ドットカウンタに入力す
る。Correction column dot counter value = VMR−1−VMRE + 1 (6) (4) When all of the steps 4 and 4 are 0, the correction column counter is set to 0, and the value of half the magnification of the smaller horizontal or vertical magnification ( A value obtained by subtracting 1 from (rounded) is input to the correction dot counter.
補正カラムドットカウンタに式(6)にて算出した値
を入れ、式(3−1)にて算出したパス番号が現在印字
しようとしているパス番号と同じ場合、印字パス文字デ
ータ記憶部21内の式(4)にて算出した値にあるバイト
から式(3−3)にて算出したドット位置のドットを削
除し、補正カラムドットカウンタに1足して値が縦拡大
の値になるまで繰り返し、補正カラムカウンタを2カラ
ム分(2×3バイト)進め、補正ドットカウンタを1減
算しこのカウンタが0になるまでこの動作を繰り返す
(第8図または第18図参照)。The value calculated by equation (6) is inserted into the correction column dot counter, and if the pass number calculated by equation (3-1) is the same as the pass number currently being printed, the print path character data storage unit 21 The dot at the dot position calculated by the equation (3-3) is deleted from the byte at the value calculated by the equation (4), added by one to the correction column dot counter, and repeated until the value becomes the value of the vertical expansion. The correction column counter is advanced by two columns (2 × 3 bytes), the correction dot counter is decremented by 1, and this operation is repeated until this counter becomes 0 (see FIG. 8 or 18).
ドット補正部24により元データ確認部22で確認した指
定ドットが0の場合、元データ確認部22で確認した,
,,のドットのどれか1ドットのみ印字の時、ド
ット補正を行わない。If the designated dot confirmed by the original data confirmation unit 22 by the dot correction unit 24 is 0, the designated dot is confirmed by the original data confirmation unit 22.
When printing only one of the dots, dot correction is not performed.
(5)ステップ5 ,が全て1の時、補正カラムカウンタを0にし、
横または縦拡大率の小さい方の倍率の半分の値(四捨五
入)を補正ドットカウンタに入力する。(5) When all of the steps 5 and 1 are 1, the correction column counter is set to 0,
The half value (rounded) of the smaller horizontal or vertical magnification is input to the correction dot counter.
補正カラムドットカウンタに0を入れ、式(3−1)
にて算出したパス番号が現在印字しようとしているパス
番号と同じ場合、印字パス文字データ記憶部21内の式
(4)にて算出した位置にあるバイトから式(3−3)
にて算出したドット位置のドットを追加し、補正カラム
ドットカウンタを1足して値が補正カラムカウンタの値
になるまで繰り返し、補正カラムカウンタを2カラム分
(2×3バイト)進め、補正ドットカウンタを1減算し
このカウンタが0になるまでこの動作を繰り返す(第9
図または第19図参照)。Put 0 in the correction column dot counter, and calculate equation (3-1).
If the pass number calculated in step (3) is the same as the pass number to be printed now, the byte in the print path character data storage unit 21 at the position calculated in equation (4) is used to obtain the equation (3-3).
The dot at the dot position calculated in is added and the correction column dot counter is incremented by one until the value reaches the value of the correction column counter, and the correction column counter is advanced by two columns (2 × 3 bytes), and the correction dot counter Is subtracted by 1, and this operation is repeated until this counter becomes 0 (the ninth
(See Figure or Figure 19).
(6)ステップ6 ,、が全て1の時、補正カラムカウンタを式
(5)にて算出した値にし、横または縦拡大率の小さい
方の倍率の半分の値(四捨五入)を補正ドットカウンタ
に入力する。(6) When all of steps 6 and 1 are 1, the correction column counter is set to the value calculated by the equation (5), and the half value (rounded) of the smaller horizontal or vertical magnification is set as the correction dot counter. input.
補正カラムドットカウンタに0を入れ、式(3−1)
にて算出したパス番号が現在印字しようとしているパス
番号と同じ場合、印字パス文字データ記憶部21内の式
(4)にて算出した位置にあるバイトから式(3−3)
にて算出したドット位置のドットを追加し、補正カラム
ドットカウンタに1足して値が補正カラムカウンタの値
になるまで繰り返し、補正カラムカウンタを2カラム分
(2×3バイト)戻し、補正ドットカウンタを1減算し
このカウンタが0になるまでこの動作を繰り返す(第10
図または第20図参照)。Put 0 in the correction column dot counter, and calculate equation (3-1).
If the pass number calculated in step (3) is the same as the pass number to be printed now, the byte in the print path character data storage unit 21 at the position calculated in equation (4) is used to obtain the equation (3-3).
The dot at the dot position calculated in is added to the correction column dot counter, and the process is repeated until the value reaches the value of the correction column counter, and the correction column counter is returned by 2 columns (2 × 3 bytes). Is subtracted by 1 and this operation is repeated until this counter becomes 0 (tenth
(See Figure or Figure 20).
(7)ステップ7 ,、が全て1の時、補正カラムカウンタを式
(5)にて算出した値にし、横または縦拡大率の小さい
方の倍率の半分の値(四捨五入)を補正ドットカウンタ
に入力する。(7) When all of the steps 7 and 7 are 1, the correction column counter is set to the value calculated by equation (5), and the half value (rounded) of the smaller horizontal or vertical magnification is rounded to the correction dot counter. input.
補正カラムドットカウンタに式(6)にて算出した値
を入れ、式(3−1)にて算出したパス番号が現在印字
しようとしているパス番号と同じ場合、印字パス文字デ
ータ記憶部21内の式(4)にて算出した位置にあるバイ
トから式(3−3)にて算出したドット位置のドットを
追加し、補正カラムドットカウンタに1足して値が補正
カラムカウンタの値になるまで繰り返し、補正カラムカ
ウンタを2カラム分(2×3バイト)戻し、補正ドット
カウンタを1減算しこのカウンタが0になるまでこの動
作を繰り返す(第11図または第21図参照)。The value calculated by equation (6) is inserted into the correction column dot counter, and if the pass number calculated by equation (3-1) is the same as the pass number currently being printed, the print path character data storage unit 21 A dot at the dot position calculated by equation (3-3) is added from the byte at the position calculated by equation (4), added to the correction column dot counter by one, and repeated until the value becomes the value of the correction column counter. Then, the correction column counter is returned by 2 columns (2 × 3 bytes), the correction dot counter is decremented by 1, and this operation is repeated until this counter becomes 0 (see FIG. 11 or FIG. 21).
(8)ステップ8 ,、が全て1の時、補正カラムカウンタを0にし
横または縦拡大率の小さい方の倍率の半分の値(四捨五
入)を補正ドットカウンタに入力する。(8) When all of the steps 8 and 9 are 1, the correction column counter is set to 0 and a half value (rounded off) of the smaller horizontal or vertical magnification is input to the correction dot counter.
補正カラムドットカウンタに式(6)にて算出した値
を入れ、式(3−1)にて算出したパス番号が現在印字
しようとしているパス番号と同じ場合、印字パス文字デ
ータ記憶部21内の式(4)にて算出した位置にあるバイ
トから式(3−3)にて算出したドット位置のドットを
追加し、補正カラムドットカウンタに1足して値が補正
カラムカウンタの値になるまで繰り返し、補正カラムカ
ウンタを2カラム分(2×3バイト)進め、補正ドット
カウンタを1減算しこのカウンタが0になるまでこの動
作を繰り返す(第12図または第22図参照)。The value calculated by equation (6) is inserted into the correction column dot counter, and if the pass number calculated by equation (3-1) is the same as the pass number currently being printed, the print path character data storage unit 21 A dot at the dot position calculated by equation (3-3) is added from the byte at the position calculated by equation (4), added to the correction column dot counter by one, and repeated until the value becomes the value of the correction column counter. Then, the correction column counter is advanced by two columns (2 × 3 bytes), the correction dot counter is decremented by 1, and this operation is repeated until this counter becomes 0 (see FIG. 12 or FIG. 22).
その後、ドットカウンタを1ドット分(1)足して上
記動作を繰り返し、カラムカウンタにて全てのカラムに
ついて前記動作を繰り返すことにより、スムーズイング
処理を終了する。ここに、1バイトは8ビットである。After that, the above operation is repeated by adding one dot to the dot counter (1), and the above operation is repeated for all columns by the column counter, thereby completing the smoothing process. Here, one byte is 8 bits.
第2図は、前述の拡大印字を滑らかにする各過程を1
つの流れ図としてまとめたものである。FIG. 2 shows each process for smoothing the above-described enlarged printing.
It is summarized as one flow chart.
まず過程S1では縦拡大制御部5により1文字データ記
憶部6内の文字データを縦拡大し、印字パス文字データ
記憶部21に書き込まれる。過程S2では、横拡大制御部4
により印字パス文字データ記憶部21内のデータを横拡大
し同じ印字パス文字データ記憶部21に書き込まれる。過
程S3では文字幅分のカウンタを設定する。過程S4では縦
拡大制御部5により1文字データ記憶部6内の文字デー
タの縦何ドット目から何ドット目までが縦拡大されて印
字パス文字データ記憶部21に書き込まれたか計算する。First, in step S1, the character data in the one-character data storage unit 6 is vertically expanded by the vertical expansion control unit 5 and written into the print pass character data storage unit 21. In process S2, the horizontal enlargement control unit 4
As a result, the data in the print path character data storage unit 21 is expanded horizontally and written in the same print path character data storage unit 21. In step S3, a counter for the character width is set. In step S4, the vertical enlargement control unit 5 calculates which vertical dots of the character data in the one-character data storage unit 6 and how many vertical dots are written in the print pass character data storage unit 21.
過程S5では、式(1−1)で計算された開始ドットが
ドットカウンタに設定される。過程S6ではドットカウン
タの示すドットが1(印字)か0(無印字)を設定す
る。In step S5, the start dot calculated by equation (1-1) is set in the dot counter. In step S6, the dot indicated by the dot counter is set to 1 (printing) or 0 (no printing).
過程S7ではドットカウンタの示すドットの周辺のドッ
トを確認する。過程S8で前記ドットが1か0かに応じ
て、周辺ドットの状況に応じて拡大された文字データの
角を削る過程S9または角を埋める過程S10に分れて、前
記ステップ1からステップ8の処理を行う。これらをド
ットカウンタを1ドットずつ進めて行ない(S11,S1
2)、ドットカウンタが終了ドットに達すると、カラム
カウンタを1カラムずつ進め、終了カラムに達すると終
了する(S13,S14)。In step S7, dots around the dot indicated by the dot counter are checked. In step S8, depending on whether the dot is 1 or 0, the process is divided into a step S9 for cutting corners of character data enlarged according to the situation of peripheral dots or a step S10 for filling corners. Perform processing. These operations are performed by advancing the dot counter one dot at a time (S11, S1
2) When the dot counter reaches the end dot, the column counter is advanced by one column, and when the dot counter reaches the end column, the process ends (S13, S14).
第13図から第23図までの元データからステップ8終了
後のデータの推移は簡便のため24ドットのプリンタの一
部について説明され、そのステップで削除されるものを
白い星印、追加されるものを黒い星印で示しているが、
24ドットプリンタにおいて4倍に拡大した場合の処理に
おける元のデータ、拡大のみ、1〜8ステップ終了後の
文字の変化する態様を示した図が第24図から第33図に示
される。図においてステップ1〜ステップ8の実行は1
カラムごとに行われるので、1文字全体がステップ1の
み実行されるというようなことは起こらない。The transition of the data after the end of step 8 from the original data in FIG. 13 to FIG. 23 is described for a part of the 24-dot printer for simplicity, and those deleted in that step are added with white stars and added. Things are shown with black stars,
FIGS. 24 to 33 show the manner in which the original data, only the enlargement, and the characters after 1 to 8 steps are changed in the processing when the enlargement is quadrupled in the 24-dot printer. In the figure, execution of steps 1 to 8 is 1
Since it is performed for each column, it does not happen that the entire character is executed only in step 1.
本発明によれば、文字を拡大した場合においても、滑
らかな文字の印字を得ることができる。ADVANTAGE OF THE INVENTION According to this invention, even if it enlarges a character, the printing of a smooth character can be obtained.
第1図は本発明の一実施例としての印刷制御方法を行う
プリンタのブロック図、 第2図は実施例の方法を行う処理過程の流れ図、 第3図は指定のドットとその周辺ドットを説明する図、 第4図はドットカウンタの示すドットと周辺ドットを説
明する図、 第5図はドットカウンタの示すドットが1の場合でステ
ップ1処理後を示す図、 第6図は第5図と同様なステップ2処理後を示す図、 第7図は第5図と同様なステップ3処理後を示す図、 第8図は第5図と同様なステップ4処理後を示す図、 第9図はドットカウンタが0の場合でステップ5処理後
を示す図、 第10図は第9図と同様なステップ6処理後を示す図、 第11図は第9図と同様なステップ7処理後を示す図、 第12図は第9図と同様なステップ8処理後を示す図、 第13図は拡大前のデータを示す部分図、 第14図は6倍拡大後のデータを示す部分図、 第15図はステップ1により補正されたデータを示す部分
図、 第16図はステップ2により補正されたデータを示す部分
図、 第17図はステップ3により補正されたデータを示す部分
図、 第18図はステップ4により補正されたデータを示す部分
図、 第19図はステップ5により補正されたデータを示す部分
図、 第20図はステップ6により補正されたデータを示す部分
図、 第21図はステップ7により補正されたデータを示す部分
図、 第22図はステップ8により補正されたデータを示す部分
図、 第23図はスムーズイング終了後のデータを示す部分図、 第24図は一例としての拡大前のデータを示す図、 第25図は第24図のデータを縦横4倍に拡大した図、 第26図は第25図のデータをステップ1処理した図、 第27図は第26図のデータをステップ2処理した図、 第28図は第27図のデータをステップ3処理した図、 第29図は第28図のデータをステップ4処理した図、 第30図は第29図のデータをステップ5処理した図、 第31図は第30図のデータをステップ6処理した図、 第32図は第31図のデータをステップ7処理した図、 第33図は第32図のデータをステップ8処理した図、およ
び 第34図は従来例の方法を行うプリンタのブロック図であ
る。 図において、 1……主制御装置、2……インタフェース部、 3……文字データ記憶部、 4……横拡大制御部、5……縦拡大制御部、 6……1文字データ記憶部、 7……スペース制御部、8……改行制御部、 9……印字制御部、10……ラインバッファ、 11……印字ヘッド、 20……スムーズイング制御部、 21……印字パス文字データ記憶部、 22……元データ確認部、24……ドット補正部、 である。FIG. 1 is a block diagram of a printer that performs a printing control method according to an embodiment of the present invention, FIG. 2 is a flowchart of a processing process for performing the method of the embodiment, and FIG. 3 illustrates a designated dot and its surrounding dots. FIG. 4 is a diagram for explaining the dots indicated by the dot counter and the surrounding dots; FIG. 5 is a diagram illustrating the case where the dot indicated by the dot counter is 1 after step 1 processing; FIG. FIG. 7 shows a state after the processing of step 3 similar to FIG. 5, FIG. 7 shows a state after the processing of step 4 similar to FIG. 5, and FIG. 9 shows a state after the processing of step 4 similar to FIG. FIG. 10 shows the state after the processing of step 5 when the dot counter is 0, FIG. 10 shows the state after the processing of step 6 similar to FIG. 9, and FIG. 11 shows the state after the processing of step 7 similar to FIG. FIG. 12 is a view showing the same state after step 8 as in FIG. 9, and FIG. FIG. 14 is a partial view showing data after 6-fold magnification, FIG. 15 is a partial view showing data corrected in step 1, and FIG. 16 is a partial view showing data corrected in step 2. FIG. 17 is a partial view showing data corrected in step 3, FIG. 18 is a partial view showing data corrected in step 4, and FIG. 19 is a partial view showing data corrected in step 5. 20, FIG. 20 is a partial view showing data corrected in step 6, FIG. 21 is a partial view showing data corrected in step 7, FIG. 22 is a partial view showing data corrected in step 8, FIG. FIG. 23 is a partial view showing data after smoothing is completed, FIG. 24 is a view showing data before enlargement as an example, FIG. 25 is a view showing the data of FIG. 24 enlarged four times vertically and horizontally, FIG. 26 Uses the data in Figure 25 as a step 1 FIG. 27 is a view of the data of FIG. 26 processed in step 2, FIG. 28 is a view of the data of FIG. 27 processed in step 3, and FIG. 29 is a view of the data of FIG. 28 processed in step 4. FIG. 30, FIG. 30 shows the data of FIG. 29 processed in step 5, FIG. 31 shows the data of FIG. 30 processed in step 6, FIG. 32 shows the data of FIG. 31 processed in step 7, FIG. 33 is a diagram obtained by processing the data of FIG. 32 in step 8, and FIG. 34 is a block diagram of a printer for performing the conventional method. In the figure, 1... Main control device, 2... Interface unit, 3... Character data storage unit, 4... Horizontal enlargement control unit, 5... Vertical enlargement control unit, 6. ... space control unit, 8 ... line feed control unit, 9 ... print control unit, 10 ... line buffer, 11 ... print head, 20 ... smoothing control unit, 21 ... print pass character data storage unit, 22: Original data confirmation unit, 24: Dot correction unit.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−63988(JP,A) 特開 昭63−129397(JP,A) 特開 平2−60764(JP,A) 特開 昭63−146096(JP,A) 特公 昭60−49314(JP,B2) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-62-63988 (JP, A) JP-A-63-129397 (JP, A) JP-A-2-60764 (JP, A) JP-A 63-63964 146096 (JP, A) JP 60-49314 (JP, B2)
Claims (1)
タを用いて印字を行うシリアルプリンタの印刷制御方法
であって、該プリンタは縦拡大制御部(5)と横拡大制
御部(4)と、1文字データ記憶部(6)と、縦横の拡
大を行った後のドットデータを記憶する印字パス文字デ
ータ記憶部(21)と、拡大されていない元のドットデー
タのドットを記憶する元データ確認部(22)と、拡大後
のドットを補正するドット補正部(24)を備え、 縦拡大制御部(5)により1文字データ記憶部(6)内
の文字データを縦拡大し印字パス文字データ記憶部(2
1)に書き込む過程(S1)、 横拡大制御部(4)により印字パス文字データ記憶部
(21)内のデータを横拡大し、該印字パス文字データ記
憶部(21)に書き込む過程(S2)、 文字幅分のカウンタを設定し(S3)、縦拡大制御部
(5)より1文字データ記憶部(6)内の文字データの
拡大された幅のドット位置を計算する過程(S4)、 開始ドットをドットカウンタに設定する過程(S5)、お
よび 元データ確認部(22)とドット補正部(24)によって、
ドットカウンタの示すドットが印字か無印字か、および
該ドットの隣接周辺ドットとその次の隣接周辺ドット
(と,と,と,と,と,と)
のそれぞれの論理和が印字か無印字かに対応して、拡大
された文字データの角を削るか埋めるかする過程(S6〜
S10)、 を具備することを特徴とするプリンタの印刷制御方法。1. A print control method for a serial printer which performs printing using print data stored in a line buffer, the printer comprising: a vertical enlargement control unit (5); a horizontal enlargement control unit (4); One character data storage unit (6), print pass character data storage unit (21) for storing dot data after vertical and horizontal enlargement, and original data confirmation for storing dots of original dot data that has not been enlarged Unit (22) and a dot correction unit (24) for correcting the enlarged dots. The character data in the one-character data storage unit (6) is enlarged vertically by the vertical enlargement control unit (5). Storage unit (2
Step (S1) of writing in (1), Step of horizontally enlarging the data in the print pass character data storage unit (21) by the horizontal enlargement control unit (4), and writing in the print pass character data storage unit (21) (S2) Setting a counter for the character width (S3), and calculating the dot position of the enlarged width of the character data in the one character data storage unit (6) from the vertical enlargement control unit (5) (S4); The process of setting the dots in the dot counter (S5), and the original data confirmation unit (22) and the dot correction unit (24)
Whether the dot indicated by the dot counter is printing or non-printing, and the adjacent dot adjacent to the dot and the next adjacent dot (and,, and, and)
Corresponding to whether the logical OR of each of the characters is printed or not, in which the corners of the enlarged character data are cut or filled (S6 ~
S10) A print control method for a printer, comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2159954A JP2962564B2 (en) | 1990-06-20 | 1990-06-20 | Printer print control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2159954A JP2962564B2 (en) | 1990-06-20 | 1990-06-20 | Printer print control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0452155A JPH0452155A (en) | 1992-02-20 |
| JP2962564B2 true JP2962564B2 (en) | 1999-10-12 |
Family
ID=15704799
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2159954A Expired - Fee Related JP2962564B2 (en) | 1990-06-20 | 1990-06-20 | Printer print control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2962564B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6263988A (en) * | 1985-09-17 | 1987-03-20 | 富士ゼロックス株式会社 | Expansion system of character font |
| JPS63129397A (en) * | 1986-11-19 | 1988-06-01 | シャープ株式会社 | Correction of dot pattern |
-
1990
- 1990-06-20 JP JP2159954A patent/JP2962564B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0452155A (en) | 1992-02-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH09300703A (en) | Printing equipment | |
| JP2962564B2 (en) | Printer print control method | |
| JPH046554B2 (en) | ||
| JP2980732B2 (en) | How to generate outline fonts | |
| JP2629098B2 (en) | Character arrangement correction method | |
| JPH0361198B2 (en) | ||
| JPS644188B2 (en) | ||
| US5162993A (en) | Word processing apparatus | |
| JPH08174951A (en) | Information processing apparatus and information processing method | |
| JP2901526B2 (en) | Character generator | |
| JPH02165372A (en) | character processing device | |
| JP2564779B2 (en) | Character output device | |
| JPH05135034A (en) | Document processing method | |
| JPH02238965A (en) | recording device | |
| JP2001117910A (en) | Document format automatic correction apparatus and method, and storage medium storing document format automatic correction program | |
| JPH07110867A (en) | Drawing device | |
| JPH01229664A (en) | Printer character pattern data transfer method | |
| JPH0687249A (en) | Apparatus for printing address | |
| JPH07160688A (en) | Document print editing method | |
| JPH09309227A (en) | Bar code output device | |
| JPH01148562A (en) | Document creation and editing device | |
| JPH0239362A (en) | document processing device | |
| JPH05216872A (en) | Document editing device | |
| JPH0682358B2 (en) | Document editing device | |
| JPH1071751A (en) | Character processing method and character processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080806 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |