JP2876628B2 - Printing device - Google Patents

Printing device

Info

Publication number
JP2876628B2
JP2876628B2 JP1187989A JP18798989A JP2876628B2 JP 2876628 B2 JP2876628 B2 JP 2876628B2 JP 1187989 A JP1187989 A JP 1187989A JP 18798989 A JP18798989 A JP 18798989A JP 2876628 B2 JP2876628 B2 JP 2876628B2
Authority
JP
Japan
Prior art keywords
data
printing
line
dots
character data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1187989A
Other languages
Japanese (ja)
Other versions
JPH0351147A (en
Inventor
宏光 西村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1187989A priority Critical patent/JP2876628B2/en
Publication of JPH0351147A publication Critical patent/JPH0351147A/en
Application granted granted Critical
Publication of JP2876628B2 publication Critical patent/JP2876628B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

〔概要〕 ドットプリンタに関し、 改行量の端数が累積することのないドットプリンタを
提供するを目的とし、 ビットマップメモリと、印字部と、制御部を有してな
り、図形またはイメージの少なくとも一方を含むビット
マップデータと文字データとを重畳して印刷を行う印字
装置であって、前記ビットマップメモリは、前記ビット
マップデータを展開するためのデータ展開領域と、印字
するべき文字データを1行分パターン展開するたもの文
字展開行バッファと、前記印字部に転送するデータを1
行分格納するための転送用行バッファとを含むものであ
り、前記印字部は、前記転送用行バッファから転送され
たデータを印字するものであり、前記制御部は、前記転
送行用バッファから転送されたデータを印字するもので
あり、 前記印字部は、ビットマップデータを前記データ展開
領域に展開し、印字予定領域において文字データの印字
行を均等に配分した場合における前記文字データの印字
行の1行当たりの改行方向のドット数について整数部の
値Lと端数部の値lとを求めるとともに、前記lとの積
kを整数とするような整数mおよび前記kの値を算出
し、印字すべき連続するm行のうちからk行を選択し、
該k行を改行方向に(L+l)ドットの文字データで構
成し、該文字データを文字展開行バッファに展開し編修
を行い、該文字展開行バッファのデータを前記転送用行
バッファにコピーするとともに前記文字データと同じ改
行方向のドット数だけ前記ビットマップメモリの内容を
切出して前記転送用行バッファに重畳し、該転送用行バ
ッファのデータを印字部に転送して印字の指示を行い、
印字すべき残りの(m−k)行改行方向にLドットの文
字データで構成し、該文字データを文字展開行バッファ
に展開し編集を行い、該文字展開行バッファのデータを
前記転送用行バッファにコピーするとともに、前記文字
データと同じ改行方向のドット数だけ前記ビットマップ
メモリの内容を切出して前記転送用行バッファに重畳
し、該転送用行バッファのデータを印字部に転送して印
字の指示を行うものであるように構成する。 〔産業上の利用分野〕 本発明は、文字や図形,イメージをドットマトリクス
として印字するドットプリンタに関する。 〔従来の技術〕 ドットインパクトプリンタのようなドットプリンタで
は、出力し得るドット密度や最小改行量は、設計時点で
定まるものであり、印字時にこれらを自由に変えること
はできない。 一方文字を印刷するに際しては、1インチ当りの印字
行数あるいは行ピッチを指定するが、指定された値で
は、上記ドット密度と改行量が対応しない場合が生じ
る。 例えば、ドット密度が160ドット/インチ,1文字の縦
方向のドット数が24ドット、最小改行量が1/160インチ
のプリンタ装置を使用して、行ピッチを1インチ当り6
行を指定して印刷を行なうものとする。 この場合改行量に対応するドット数,即ち1行当たり
必要なドット数は、1インチ当りのドット数を行数で割
った値の 160÷6≒26.6666(ドット) となり、整数値でなくなる。 このような値で改行を行うことはできないので、端数
部を四捨五入して27ドット/行で印刷すると、1行当た
りの誤差が累積されて行き、図形やイメージと文字とを
重畳出力する場合に、文字と図形やイメージとの相対位
置関係がずれてしまう。また、文字だけを印刷する場合
には、文字と図形やイメージとの相対位置関係の問題は
ないが、上述の累積誤差が大きいと、印字予定領域をは
み出してしまうという事態が生じる。 〔発明が解決しようとする課題〕 このように、従来のドットプリンタでは改行量に対応
するドット数に端数が生じて位を丸めた場合には、この
端数の誤差が累積し、ビットマップ上に描かれた内容と
文字を重畳出力する場合に特に問題となる。 近年、印刷装置に対する必要が多様化し、図形やイメ
ージと文字を重畳することも多く、印刷内容をより正確
に出力することを要求される趨勢にあって、上記改行量
の累積誤差を発生しないドットプリンタの出現を強く要
望されている。 本発明は、改行量の端数が累積することのないドット
プリンタを提供することを目的とする。 〔課題を解決するための手段〕 本発明は、受信した印字すべきデータに含まれる制御
データに基づいて、各種初期値を設定する初期設定手段
と、この設定された初期値に基づいて1行当りのドット
数の制御を行なう印字制御手段を具備する。 第1図のフローチャートにより、上記構成の本発明の
動作を説明する。 まず初期設定手段は、印字すべき文字データを受信
〔参照〕し、それに含まれる単位長さ当りの行数の指
定値n行/インチと、プリンタのドット密度jドット/
インチから、1行当りのドット数をj/nにより算出し、
その整数部Lと端数部lを登録する。 更に、m×(L+l)が整数となる(つまりlとの積
を整数とする)整数値mと、その時のmとlとの積kを
求め、これらを登録する〔参照〕。 このmは、1行のドット数をL+lドットとしてある
行数だけ印字した時に、端数lの累積値が整数となる行
数であり、m×lの値はその時の端数の累積値である。 上記関係を満足するmおよびkの組は、多数求めるこ
とができるが、その中の最小値を求めるのが実用的であ
る。 次いで、上記m行を制御単位として、そのうちからk
行を選択する〔参照〕。 実際の印字に際しては、印字制御部は各行ごとにその
行が上記選択されたk行の一つに該当するか否かを判定
〔参照〕し、該当する場合にはその行をL+1ドット
に設定し〔参照〕、該当しない場合にはその行をLド
ットに設定し〔参照〕、この設定されたドット数に従
って当行の印字制御を行う〔参照〕。 以上の処理をm行にわたって終了したか否かを調べ、
m行に到達していなければ、上記処理を繰り返す〔参
照〕。 この処理は、図示はしていないが、制御単位のm行を
1サイクルとして、各制御単位について繰り返す。 〔作用〕 上述したように、1行当りL+lドットでm行を印字
した時、m+lが整数値kとなったということは、1行
をLドットで印字した場合、kドット不足することを意
味する。従って、m行のうちk行に対して、1ドットず
つ増やしたL+1ドットを割り付ければ、上記不足分k
ドットはm行内で補正されることとなる。 即ち、上述のように制御して印字した場合、m行全体
のドット数は、 (m−k)L+k(L+1) =mL+k =m(L+l) となり、m行をそれぞれL+lで印字した時のドット数
に一致する。 従って、端数が生じることによる誤差はm行内で吸収
され、累積することはない。また、m行内での位置ずれ
はごく小さいので、無視できる程度である。 〔実施例〕 以下、本発明の一実施例を図面を参照しつつ説明す
る。 第2図は、本発明に係るドットプリンタの一実施例の
構成を示すブロック図である。 図中、11は特許請求の範囲で制御部と称されていたも
のの具体例でCPU(中央処理装置)、12はホストコンピ
ュータ2からのデータストリームを受信する受信部、13
は記憶装置で多くはRAMが使用される。14は印字すべき
内容をパターン展開するためのビットマップメモリ、15
は印字部である。 上記RAM13には、プログラム領域20と作業領域40が設
けられ、後述するように、プログラム領域20には本実施
例の各種処理を実行するための処理手段が、作業領域40
には、上記各処理手段が使用する記憶領域が設けられて
いる。 またビットマップメモリ14には、図形やイメージを展
開するためのデータ展開領域50と、印字すべき文字を1
行分パターン展開するための文字展開行バッファ51、及
び、印字部15に転送するデータを1行分格納するための
転送用行バッファ52が設けられている。 次に、上述のように構成されたドットプリンタの動作
を、第3図の細部構成図および第4図のフローチャート
に基づいて説明する。
[Overview] Regarding a dot printer, the purpose of the present invention is to provide a dot printer in which a fraction of a line feed amount does not accumulate, and has a bitmap memory, a printing unit, and a control unit, and at least one of a graphic and an image is provided. A printing apparatus for superimposing and printing bitmap data including character data, wherein the bitmap memory includes a data development area for developing the bitmap data, and one line of character data to be printed. The character expansion line buffer for pattern expansion and the data to be transferred to the printing unit
A transfer line buffer for storing the number of lines, wherein the printing unit prints the data transferred from the transfer line buffer, and the control unit includes a transfer line buffer from the transfer line buffer. The printing unit prints the transferred data, wherein the printing unit expands the bitmap data in the data expansion area, and prints the character data in a case where print lines of the character data are equally distributed in the print scheduled area. With respect to the number of dots in the line feed direction per line, a value L of an integer part and a value l of a fraction part are obtained, and an integer m and a value of the k are calculated such that a product k of the l is an integer. Select k rows from m consecutive rows to be printed,
The k lines are composed of (L + 1) dot character data in the line feed direction, the character data is developed in a character development line buffer and edited, and the data in the character development line buffer is copied to the transfer line buffer. The content of the bitmap memory is cut out by the same number of dots in the line feed direction as the character data and is superimposed on the transfer line buffer, the data in the transfer line buffer is transferred to a printing unit, and a print instruction is issued.
The remaining (mk) lines to be printed are composed of character data of L dots in the line feed direction, the character data is developed in a character development line buffer and edited, and the data in the character development line buffer is transferred to the transfer line. In addition to copying to the buffer, the contents of the bitmap memory are cut out by the same number of dots in the line feed direction as the character data and superimposed on the transfer line buffer, and the data in the transfer line buffer is transferred to the printing unit and printed. Is configured to give the instruction of (1). [Industrial Application Field] The present invention relates to a dot printer for printing characters, figures, and images as a dot matrix. 2. Description of the Related Art In a dot printer such as a dot impact printer, the dot density and the minimum line feed amount that can be output are determined at the time of design, and cannot be freely changed during printing. On the other hand, when printing characters, the number of print lines or the line pitch per inch is specified, but the specified value may not correspond to the dot density and the line feed amount. For example, using a printer having a dot density of 160 dots / inch, the number of dots per character in the vertical direction is 24 dots, and the minimum line feed amount is 1/160 inch, the line pitch is set to 6 dots / inch.
It is assumed that printing is performed by specifying a line. In this case, the number of dots corresponding to the line feed amount, that is, the number of dots required per line is 160 ÷ 6 ≒ 26.6666 (dots), which is a value obtained by dividing the number of dots per inch by the number of lines, and is not an integer value. Since line feed cannot be performed with such a value, if a fractional part is rounded off and printed at 27 dots / line, errors per line are accumulated, and when a graphic or an image and a character are superimposed and output, the error occurs. Then, the relative positional relationship between the character and the figure or image is shifted. Further, when printing only characters, there is no problem in the relative positional relationship between the characters and the graphic or image, but if the above-described accumulated error is large, a situation may occur in which the print target area is protruded. [Problem to be Solved by the Invention] As described above, in the conventional dot printer, when the number of dots corresponding to the line feed amount has a fraction and the place is rounded, errors of the fraction accumulate and are displayed on the bit map. This is a problem particularly when the drawn contents and the characters are superimposed and output. In recent years, the need for a printing device has diversified, and characters and graphics and images are often superimposed, and there is a tendency to output printed contents more accurately. There is a strong demand for the emergence of printers. SUMMARY OF THE INVENTION It is an object of the present invention to provide a dot printer in which fractions of line feed are not accumulated. [Means for Solving the Problems] The present invention provides an initial setting means for setting various initial values based on control data included in received data to be printed, and one line based on the set initial values. A print control unit for controlling the number of dots per hit is provided. The operation of the present invention having the above configuration will be described with reference to the flowchart of FIG. First, the initial setting means receives (refers to) character data to be printed, specifies the number of lines per unit length included in the character data, n lines / inch, and the dot density j dots / dot of the printer.
From inches, calculate the number of dots per line by j / n,
The integer part L and the fraction part l are registered. Further, an integer value m where m × (L + 1) is an integer (that is, a product of l is an integer) and a product k of m and l at that time are obtained, and these are registered [see]. This m is the number of lines where the cumulative value of the fraction l is an integer when the number of dots in one line is printed as L + 1 dots, and the value of m × l is the cumulative value of the fraction at that time. Many sets of m and k satisfying the above relationship can be obtained, but it is practical to obtain the minimum value among them. Next, the above-mentioned m rows are used as a control unit, and
Select a row [reference]. At the time of actual printing, the print control unit determines (refer to) whether or not the line corresponds to one of the selected k lines for each line, and if so, sets the line to L + 1 dots. If this is not the case, the line is set to L dots [see], and the printing control of this line is performed according to the set number of dots [see]. Check whether the above process has been completed for m lines,
If the number of rows has not been reached, the above processing is repeated [see]. Although not shown, this process is repeated for each control unit, with m rows of control units as one cycle. [Operation] As described above, when m lines are printed with L + 1 dots per line and m + 1 becomes an integer value k, when one line is printed with L dots, k dots are insufficient. I do. Therefore, if L + 1 dots increased by one dot are assigned to k rows of m rows, the shortage k
The dots will be corrected within m rows. That is, when printing is performed as described above, the number of dots in the entire m rows is (m−k) L + k (L + 1) = mL + k = m (L + 1). Matches the number. Therefore, the error due to the occurrence of a fraction is absorbed in m rows and does not accumulate. In addition, the displacement within the m-th row is extremely small, and is negligible. Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 2 is a block diagram showing the configuration of an embodiment of the dot printer according to the present invention. In the figure, reference numeral 11 denotes a control unit in the claims, but a specific example of a CPU (Central Processing Unit), 12 denotes a receiving unit for receiving a data stream from the host computer 2, 13
Is a storage device and often uses RAM. 14 is a bitmap memory for developing patterns to be printed, 15
Denotes a printing unit. The RAM 13 is provided with a program area 20 and a work area 40. As will be described later, the program area 20 includes processing means for executing various processes of the present embodiment.
Is provided with a storage area used by each of the processing means. The bitmap memory 14 has a data development area 50 for developing figures and images and one character to be printed.
A character development line buffer 51 for developing a line pattern and a transfer line buffer 52 for storing one line of data to be transferred to the printing unit 15 are provided. Next, the operation of the dot printer configured as described above will be described with reference to the detailed configuration diagram of FIG. 3 and the flowchart of FIG.

【ステップ#1参照】 まず、受信部12によってホストコンピュータ2から図
形やイメージのデータを受信し、描画データ領域41に格
納する。
[See Step # 1] First, the receiving unit 12 receives graphic or image data from the host computer 2 and stores it in the drawing data area 41.

【ステップ#2参照】 ビットマップ描画部21は、上記描画データ領域41に格
納されたデータを、データ展開領域50上に展開する。
[See Step # 2] The bitmap drawing unit 21 develops the data stored in the drawing data area 41 on the data development area 50.

【ステップ#3参照】 次に、受信部12によってホストコンピュータ2からの
文字データを受信し、文字データ領域42に格納する。
[See Step # 3] Next, the receiving unit 12 receives character data from the host computer 2 and stores it in the character data area 42.

【ステップ#4参照】 文字データと同時に受信した制御データに基づいて、
初期設定部22は印字制御のための初期設定を行う。 即ち、指定された1インチ当りの行数nと印字ドット
密度jから、1行当りのドット数を算出し、その整数部
Lと端数部lを求める。 次いで、上記端数lと整数値mとの積kが整数値とな
るmとkの最小値を求める。これは前述した如く、1行
当りL+lドットでm行印字した時、m行全体のドット
数が整数値となるような行数mと、1行当たり端数の累
積値を求める処理である。 以上のようにして求まったL,l,mおよびkを、サイク
ル領域46に格納する。 本実施例では、実際の印字に際して上記m行を1サイ
クルとして制御を行い、m行のうちk行にL+1ドット
を割り付け、残りのm−k行にLドットを割り付ける。
そこで、m行の中から任意のk行を選択し、選択した行
の番号を、m行中における先頭からの相対番号で示し、
これを被選択行記録領域44に格納する。図のP1,P1
P2,P3,・・・はこの選択された行番号を示す。 なお、実際には、行対応に記録領域を設け、これに選
択されたか否かを1または0を書き込むことにより識別
する。
[See Step # 4] Based on the control data received simultaneously with the character data,
The initial setting unit 22 performs initial settings for print control. That is, the number of dots per line is calculated from the specified number of lines n per inch and the print dot density j, and the integer part L and the fraction part l are obtained. Next, the minimum value of m and k at which the product k of the fraction l and the integer value m becomes an integer value is obtained. As described above, when m lines are printed with L + 1 dots per line, the number m of lines such that the number of dots in the entire m lines becomes an integer value and the cumulative value of the fraction per line are calculated. L, l, m, and k obtained as described above are stored in the cycle area 46. In the present embodiment, control is performed with the above-mentioned m rows as one cycle during actual printing, and L + 1 dots are allocated to k rows of the m rows, and L dots are allocated to the remaining mk rows.
Therefore, an arbitrary k row is selected from the m rows, and the number of the selected row is indicated by a relative number from the head in the m rows,
This is stored in the selected row recording area 44. P 1 , P 1 ,
P 2 , P 3 ,... Indicate the selected line numbers. Actually, a recording area is provided for each row, and whether or not it is selected is identified by writing 1 or 0 in the recording area.

【ステップ#5参照】 サイクルカウント領域43をクリアする。 以上で初期設定が完了し、以後この設定値に従って印
字制御を行なう。 以下その印字制御の動作を説明する。
[See Step # 5] The cycle count area 43 is cleared. Thus, the initial setting is completed, and thereafter, printing control is performed according to the set value. Hereinafter, the operation of the print control will be described.

【ステップ#6参照】 行チェック部23は被選択行記録領域44を参照して、印
字しようとする文字行が選択された行か否か調べる。
[See Step # 6] The line checking unit 23 refers to the selected line recording area 44 and checks whether or not the character line to be printed is the selected line.

【ステップ#7,#8参照】 選択された行の場合には、ドット数設定部24は上記文
字展開バッファ51の大きさをL+1ドットに、選択され
た行でない場合にはLドットに設定し、この設定したド
ット数をドット数領域45に書き込む。
[See Steps # 7 and # 8] In the case of the selected line, the number-of-dots setting unit 24 sets the size of the character expansion buffer 51 to L + 1 dots, and in the case of not the selected line, to L dots. Then, the set dot number is written in the dot number area 45.

【ステップ#9参照】 文字展開部25は上記大きさを設定された文字展開行バ
ッファ51に、上記文字データを展開し編修を行い、これ
を転送用行バッファ52にコピーする。
[Refer to step # 9] The character developing unit 25 develops and edits the character data in the character developing line buffer 51 having the above-mentioned size, and copies it to the transfer line buffer 52.

【ステップ#10参照】 重畳部26は上記文字展開行バッファの大きさと同じド
ット数だけ、ビットマップメモリの内容を切出し、これ
を転送用行バッファ52に重畳する。
[See Step # 10] The superimposing unit 26 cuts out the contents of the bitmap memory by the same number of dots as the size of the character expansion line buffer, and superimposes this on the transfer line buffer 52.

【ステップ#11参照】 印字データ出力部27は転送用行バッファ52の内容を、
印字部15のピン数に応じて切出し、印字部15に出力す
る。印字部15は受け取った内容に従って印字を行う。
[See Step # 11] The print data output unit 27 reads the contents of the transfer line buffer 52,
It cuts out according to the number of pins of the printing unit 15 and outputs it to the printing unit 15. The printing unit 15 performs printing according to the received content.

【ステップ#12参照】 カウント部28はサイクルカウント領域43の内容を1だ
け増加する。
[See Step # 12] The counting unit 28 increases the contents of the cycle count area 43 by one.

【ステップ#13参照】 サイクルチェック部29は上記サイクルカウント領域43
の値がmに到着したか否かにより、サイクルが終了した
か否かを調べ、終了していなければステップ6に戻っ
て、上記処理を繰り返す。
[Refer to Step # 13] The cycle check unit 29 performs the above-described cycle count area 43.
It is determined whether the cycle has ended based on whether or not the value has arrived at m. If not, the process returns to step 6 and repeats the above processing.

【ステップ#14参照】 サイクルが終了していれば、データチェック部30はデ
ータがすべて終了したか否かを調べ、終了していなけれ
ば、ステップ5に戻り、上記制御をサイクルの始めから
再度繰り返す。 これ以上のデータがなければ、印字動作を終了する。 上記説明において、例えば印字ドット密度jを160ド
ット/インチ,1インチ当り行数nを6行/インチ,とす
ると、1行当りドット数は26.666・・・・ドットである
から、Lは26,lは0.666・・・(=2/3)となる。 この場合、m=3でk=2となるので、本実施例では
3行を1サイクルとし、このち2(=k)行を27(=L
+1)ドット,残り1(=m−k)行を26(=L)ドッ
トで印字する。 このように制御することによって、端数による位置ず
れ誤差は3(=m)行ごとに吸収され、誤差が累積され
ることはない。 以上説明した一実施例では、初期設定部22が本発明の
初期設定手段を、また行チェック部23,ドット数設定部2
4,文字展開部25、重畳部26,印字データ出力部27,カウン
ト部28,サイクルチェック部29,データチェック部30が印
字制御手段を構成する。 上記一実施例では、文字と図形およびイメージを重畳
する例を説明したが、文字のみの印字の場合にも、初期
設定手段および印字制御手段の構成、並びに処理手段を
適宜変更することにより、本発明を用いることができ
る。 〔発明の効果〕 以上説明した如く本発明によれば、従来発生していた
累積誤差がなくなり、文字とビットマップメモリの内容
における相対的な位置ずれを最大1ドット以内に抑える
ことができ、且つ、ビットマップメモリの内容を間引き
等の操作を行なう必要がなく、従って、受信データを忠
実に印字することができ、印字品質が向上する。
[Refer to step # 14] If the cycle has been completed, the data check unit 30 checks whether or not all the data has been completed. If not, the process returns to step 5 and repeats the above-mentioned control from the beginning of the cycle. . If there is no more data, the printing operation ends. In the above description, for example, if the print dot density j is 160 dots / inch and the number of lines per inch n is 6 lines / inch, the number of dots per line is 26.666. l becomes 0.666 (= 2/3). In this case, since m = 3 and k = 2, in this embodiment, three rows are defined as one cycle, and then 2 (= k) rows are converted to 27 (= L
+1) dots and the remaining 1 (= m−k) lines are printed with 26 (= L) dots. By controlling in this way, the position error due to the fraction is absorbed every 3 (= m) rows, and the error is not accumulated. In the embodiment described above, the initial setting unit 22 includes the initial setting unit of the present invention, the row check unit 23, and the dot number setting unit 2.
4, the character developing unit 25, the superimposing unit 26, the print data output unit 27, the count unit 28, the cycle check unit 29, and the data check unit 30 constitute a print control unit. In the above-described embodiment, an example in which a character, a figure, and an image are superimposed has been described. However, in the case of printing only a character, the configuration of the initial setting unit and the printing control unit, and the processing unit may be appropriately changed. The invention can be used. [Effects of the Invention] As described above, according to the present invention, the accumulated error that has conventionally occurred can be eliminated, and the relative displacement between the character and the contents of the bitmap memory can be suppressed within a maximum of 1 dot. Therefore, it is not necessary to perform operations such as thinning out the contents of the bit map memory, so that the received data can be faithfully printed and the printing quality can be improved.

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

第1図は本発明の構成説明図、 第2図は本発明一実施例の構成説明図、 第3図は本発明一実施例の細部構成図、 第4図は本発明一実施例の動作を示すフローチャートで
ある。 図において、1はドットプリンタ、15は印字部、20はプ
ログラム領域、21はビットマップ描画部、22は初期設定
部、22は行チェック部、24はドット数設定部、25は文字
展開部、26は重畳部、27は印字データ出力部、28はカウ
ント部、29はサイクルチェック部、30はデータチェック
部、40は作業領域、41は描画データ領域、42は文字デー
タ領域、43はサイクルカウント領域、44は被選択行記録
領域、45はドット数領域、46はサイクル領域、50はデー
タ展開領域、51は文字展開行バッファ、52は転送用行バ
ッファを示す。
FIG. 1 is a diagram illustrating the configuration of the present invention, FIG. 2 is a diagram illustrating the configuration of one embodiment of the present invention, FIG. 3 is a detailed configuration diagram of one embodiment of the present invention, and FIG. It is a flowchart which shows. In the figure, 1 is a dot printer, 15 is a printing unit, 20 is a program area, 21 is a bitmap drawing unit, 22 is an initial setting unit, 22 is a line check unit, 24 is a dot number setting unit, 25 is a character development unit, 26 is a superimposition section, 27 is a print data output section, 28 is a count section, 29 is a cycle check section, 30 is a data check section, 40 is a work area, 41 is a drawing data area, 42 is a character data area, and 43 is a cycle count. An area, 44 is a selected line recording area, 45 is a dot number area, 46 is a cycle area, 50 is a data development area, 51 is a character development row buffer, and 52 is a transfer row buffer.

フロントページの続き (56)参考文献 特開 昭61−22973(JP,A) 特開 昭62−119075(JP,A) 特開 昭62−216777(JP,A) 特開 昭63−64782(JP,A) 特開 昭62−181169(JP,A) 特開 昭62−116177(JP,A) 特開 平1−209150(JP,A) (58)調査した分野(Int.Cl.6,DB名) B41J 19/76 B41J 2/515 B41J 2/51 Continuation of the front page (56) References JP-A-61-22973 (JP, A) JP-A-62-119075 (JP, A) JP-A-62-216777 (JP, A) JP-A-63-64782 (JP) JP-A-62-181169 (JP, A) JP-A-62-116177 (JP, A) JP-A-1-209150 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB Name) B41J 19/76 B41J 2/515 B41J 2/51

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ビットマップメモリと、印字部と、制御部
を有してなり、図形またはイメージの少なくとも一方を
含むビットマップデータと文字データとを重畳して印刷
を行う印字装置であって、 前記ビットマップメモリは、少なくとも前記ビットマッ
プデータを展開するためのデータ展開領域と、前記印字
部に転送するデータを1行分格納するための転送用行バ
ッファとを含むものであり、 前記印字部は、前記転送行用バッファから転送されたデ
ータを印字するものであり、 前記印字部は、前記ビットマップデータを前記データ展
開領域に展開し、 印字予定領域において文字データの印字行を均等に配分
した場合における前記文字データの印字行の1行当たり
の改行方向のドット数について整数部の値Lと端数部の
値lとを求めるとともに、前記lとの積kを整数とする
ような整数mおよび前記kの値を算出し、 印字すべき連続するm行のうちからk行を選択し、該k
行を改行方向に(L+l)ドットの文字データで構成
し、該文字データを前記転送用行バッファに展開すると
ともに、前記文字データと同じ改行方向のドット数だけ
前記ビットマップメモリの内容を切出して前記転送用行
バッファに重畳し、該転送用行バッファのデータを印字
部に転送して印字の指示を行い、 印字すべき残りの(m−k)行を改行方向にLドットの
文字データで構成し、該文字データを前記転送用行バッ
ファに展開するとともに、前記文字データと同じ改行方
向のドット数だけ前記ビットマップメモリの内容を切出
して前記転送用行バッファに重畳し、該転送用行バッフ
ァのデータを印字部に転送して印字の指示を行うもので
ある ことを特徴とする印字装置。
1. A printing apparatus, comprising: a bitmap memory, a printing unit, and a control unit, wherein printing is performed by superimposing bitmap data including at least one of a figure and an image and character data, and performing printing. The bitmap memory includes at least a data development area for developing the bitmap data, and a transfer line buffer for storing one line of data to be transferred to the printing unit. Prints the data transferred from the transfer line buffer, the printing unit expands the bitmap data in the data expansion area, and evenly distributes character data printing lines in a printing scheduled area. In this case, the value L of the integer part and the value l of the fraction part are determined for the number of dots in the line feed direction per line of the character data printed line. , An integer m such that the product k with l is an integer, and the value of k are calculated, and k rows are selected from m consecutive rows to be printed.
A line is composed of (L + 1) dot character data in the line feed direction, the character data is expanded in the transfer line buffer, and the contents of the bitmap memory are cut out by the same number of dots in the line feed direction as the character data. The data is superimposed on the transfer line buffer, the data in the transfer line buffer is transferred to the printing unit, and a print instruction is issued. The remaining (mk) lines to be printed are represented by L dot character data in the line feed direction. The character data is expanded in the transfer line buffer, and the contents of the bitmap memory are cut out by the same number of dots in the line feed direction as the character data, and are superimposed on the transfer line buffer. A printing device for transferring data in a buffer to a printing unit and instructing printing.
JP1187989A 1989-07-19 1989-07-19 Printing device Expired - Fee Related JP2876628B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1187989A JP2876628B2 (en) 1989-07-19 1989-07-19 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1187989A JP2876628B2 (en) 1989-07-19 1989-07-19 Printing device

Publications (2)

Publication Number Publication Date
JPH0351147A JPH0351147A (en) 1991-03-05
JP2876628B2 true JP2876628B2 (en) 1999-03-31

Family

ID=16215676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1187989A Expired - Fee Related JP2876628B2 (en) 1989-07-19 1989-07-19 Printing device

Country Status (1)

Country Link
JP (1) JP2876628B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1156385A3 (en) * 2000-05-17 2006-03-08 Eastman Kodak Company Method and device for digitally controlling an element of printing machine and printing machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6122973A (en) * 1984-07-04 1986-01-31 Fujitsu Ltd Correcting method of new-paragraph starting cumulative error

Also Published As

Publication number Publication date
JPH0351147A (en) 1991-03-05

Similar Documents

Publication Publication Date Title
JPS63205257A (en) Printing control system
JP2876628B2 (en) Printing device
US4953033A (en) Image forming apparatus for forming images by use of fonts
EP0090802B1 (en) A page modification method in a printer subsystem of the partial page buffer composing type
JPS6364765A (en) Output device
JPH0661970B2 (en) output method
JPH0263762A (en) Output apparatus
JPS63302083A (en) Printer
JP3029379B2 (en) Printing apparatus and printing method
JPS60159077A (en) Printer controller
JPH0685115B2 (en) output method
US4914621A (en) Document processing system
JPS5911439A (en) Character processor
JPS60159068A (en) Output device
JPS59201870A (en) Printer
JPH04246569A (en) Printer
JPH08207379A (en) Print controlling method and printer
JP2608393B2 (en) Information processing device
JP3591096B2 (en) How to control a page printer
JP3457555B2 (en) Printer device and printer system
JPH0234046Y2 (en)
JP2836026B2 (en) Printing control device
JPH082009A (en) Serial printer
JPH0592854A (en) Printer
JPH04189167A (en) Overlay development control method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees