JP6247081B2 - Dot printer and font pattern editing method - Google Patents

Dot printer and font pattern editing method Download PDF

Info

Publication number
JP6247081B2
JP6247081B2 JP2013238491A JP2013238491A JP6247081B2 JP 6247081 B2 JP6247081 B2 JP 6247081B2 JP 2013238491 A JP2013238491 A JP 2013238491A JP 2013238491 A JP2013238491 A JP 2013238491A JP 6247081 B2 JP6247081 B2 JP 6247081B2
Authority
JP
Japan
Prior art keywords
font pattern
font
dots
editing
pattern
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.)
Active
Application number
JP2013238491A
Other languages
Japanese (ja)
Other versions
JP2015098115A (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.)
NEC Platforms Ltd
Original Assignee
NEC Platforms 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 NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2013238491A priority Critical patent/JP6247081B2/en
Publication of JP2015098115A publication Critical patent/JP2015098115A/en
Application granted granted Critical
Publication of JP6247081B2 publication Critical patent/JP6247081B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ドットプリンタおよびフォントパターン編集方法に関し、特に印字品質を著しく低下することなく印字速度を高速化する技術に関する。   The present invention relates to a dot printer and a font pattern editing method, and more particularly to a technique for increasing the printing speed without significantly reducing the printing quality.

ドットプリンタにおいて高速印字を行うために、印字するフォントパターンのドットを間引いたり、フォントパターンのドット間隔を広くしたりすることにより印字速度を向上する技術が知られている。   In order to perform high-speed printing in a dot printer, a technique for improving the printing speed by thinning out the dots of the font pattern to be printed or by widening the dot interval of the font pattern is known.

特許文献1記載のドットプリンタは、フォントの線の進行方向に交互にドットを間引く処理を行うことにより、線の太さを変更することなしに高速印字用のフォントパターンを作成する。   The dot printer described in Patent Document 1 creates a font pattern for high-speed printing without changing the thickness of the line by performing a process of thinning dots alternately in the moving direction of the font line.

特許文献2記載の印字方法は、フォントの原ドットデータ1個を行方向にn個のドットデータに変換し、m個(ただしm≧n)おきのドットデータを選択することにより、非整数倍の速度の高速印字を実現する。   According to the printing method described in Patent Document 2, one original dot data of a font is converted into n dot data in the row direction, and m (where m ≧ n) dot data is selected, whereby non-integer multiples are selected. High-speed printing at a speed of

特許第3033501号公報Japanese Patent No. 3033501 特開平6−218988号公報Japanese Patent Laid-Open No. 6-218988

上述した特許文献1記載のドットプリンタは、ドットが間引かれた千鳥状の部分がギザギザした(いわゆるジャギーな)印象を与えるという問題がある。   The dot printer described in Patent Document 1 described above has a problem that a staggered portion where dots are thinned gives a jagged (so-called jagged) impression.

上述した特許文献2記載の印字方法は、横方向にドット間隔を広げるため、文字の縦線の部分など、フォントの縦方向の要素が太くなるという問題がある。   The printing method described in Patent Document 2 described above has a problem that the vertical elements of the font, such as the vertical line portion of the character, become thick because the dot interval is widened in the horizontal direction.

本発明は、上述した課題を解決するための技術を提供することを主たる目的とする。   The main object of the present invention is to provide a technique for solving the above-described problems.

上記目的を達成する本発明に係るドットプリンタは、
格子状の領域に配置された1つ以上のドットとしてフォントを表すフォントパターンの一部が、前記フォントの縦要素であるか判定し、縦要素であると判定した場合に、前記フォントパターンの当該部分のドットを千鳥状に配置する縦要素配置編集を行い、縦要素ではないと判定した場合に、前記フォントパターンの当該部分のドットを所与の印字速度に対応する間隔で配置する横要素配置編集を行うフォントパターン編集手段を備える。
A dot printer according to the present invention that achieves the above object is as follows.
It is determined whether a part of a font pattern that represents a font as one or more dots arranged in a grid-like region is a vertical element of the font. Horizontal element arrangement that arranges dots in the font pattern at intervals corresponding to a given printing speed when vertical element arrangement editing is performed to arrange the dots of the part in a staggered manner and it is determined that the dots are not vertical elements Font pattern editing means for editing is provided.

上記目的を達成する本発明に係るフォントパターン編集方法は、
格子状の領域に配置された1つ以上のドットとしてフォントを表すフォントパターンの一部が、前記フォントの縦要素であるか判定し、
縦要素である場合に、前記フォントパターンの当該部分のドットを千鳥状に配置する縦要素配置編集を行い、
縦要素ではない場合に、前記フォントパターンの当該部分のドットを所与の印字速度に対応する間隔で配置する横要素配置編集を行う。
A font pattern editing method according to the present invention that achieves the above-described object is as follows.
Determining whether a part of a font pattern representing a font as one or more dots arranged in a grid-like region is a vertical element of the font;
If it is a vertical element, perform vertical element arrangement editing to arrange the dots of the part of the font pattern in a staggered manner,
If it is not a vertical element, horizontal element arrangement editing is performed in which the dots of that portion of the font pattern are arranged at intervals corresponding to a given printing speed.

本発明によれば、印字品質を著しく低下することなく、印字速度を高速化する事ができる。   According to the present invention, it is possible to increase the printing speed without significantly reducing the printing quality.

本発明の第1の実施形態に係るドットプリンタの構成を表すブロック構成図である。1 is a block configuration diagram illustrating a configuration of a dot printer according to a first embodiment of the present invention. 第1の実施形態における、フォントパターン元データの一例を表す図である。It is a figure showing an example of the font pattern original data in 1st Embodiment. 第1の実施形態における、編集途中のフォントパターンを表す図である。It is a figure showing the font pattern in the middle of edit in 1st Embodiment. 第1の実施形態における、原フォントパターンを表す図である。It is a figure showing the original font pattern in 1st Embodiment. 第1の実施形態における、高速印字フォントパターン編集処理を説明するフローチャートである。It is a flowchart explaining the high-speed print font pattern edit process in 1st Embodiment. 第1の実施形態における、編集途中のフォントパターンを表す図である。It is a figure showing the font pattern in the middle of edit in 1st Embodiment. 第1の実施形態における、編集途中のフォントパターンを表す図である。It is a figure showing the font pattern in the middle of edit in 1st Embodiment. 第1の実施形態における、編集途中のフォントパターンを表す図である。It is a figure showing the font pattern in the middle of edit in 1st Embodiment. 第1の実施形態における、2倍速の印字速度のためのフォントパターンを表す図である。It is a figure showing the font pattern for the printing speed of 2 times speed in 1st Embodiment. 第1の実施形態における、1.5倍速の印字速度のためのフォントパターンを表す図である。It is a figure showing the font pattern for 1.5 times the printing speed in 1st Embodiment. 第1の実施形態における、1.25倍速の印字速度のためのフォントパターンを表す図である。It is a figure showing the font pattern for the printing speed of 1.25 times speed in 1st Embodiment. 本発明の第2の実施形態に係るドットプリンタの構成を表すブロック構成図である。It is a block block diagram showing the structure of the dot printer which concerns on the 2nd Embodiment of this invention.

次に、本発明の実施の形態について図面を参照して詳細に説明する。   Next, embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態に係るドットプリンタの構成を表すブロック構成図である。本発明の第1の実施形態に係るドットプリンタ1は、CPU(Central Processing Unit)101と、フォントパターン編集部102と、CG−ROM(Character Generator Read Only Memory)103と、編集メモリ104と、印字制御部105と、印字ヘッド106とを備える。ドットプリンタ1は、上位装置2と接続されている。
[First Embodiment]
FIG. 1 is a block diagram showing the configuration of a dot printer according to the first embodiment of the present invention. A dot printer 1 according to the first embodiment of the present invention includes a CPU (Central Processing Unit) 101, a font pattern editing unit 102, a CG-ROM (Character Generator Read Only Memory) 103, an editing memory 104, a print A control unit 105 and a print head 106 are provided. The dot printer 1 is connected to the host device 2.

「フォントパターン」とは、ドットプリンタ1が印字する文字等のフォントを、格子状の領域に配置された1つ以上のドットとして表したもの(ビットマップフォント)である。   The “font pattern” is a font (bitmap font) representing a font such as a character printed by the dot printer 1 as one or more dots arranged in a grid area.

上位装置2は、印字する文字等を指定するデータである印字データと、印字速度をドットプリンタ1に送信する。上位装置2は、ドットプリンタ1を用いて文書の印刷を行うコンピュータ装置であってもよい。   The host device 2 transmits print data, which is data for designating characters to be printed, and a print speed to the dot printer 1. The host device 2 may be a computer device that prints a document using the dot printer 1.

通信インタフェース107は、上位装置200との通信を行う。CG−ROM103は、フォントパターンの元となるデータであるフォントパターン元データを格納するROMである。フォントパターン編集部102は、CG−ROM103から読みだされたフォントパターン元データを編集することにより、フォントパターンを作成する。編集メモリ104は、編集あるいは作成されたフォントパターンを記憶する。編集メモリ104は、RAM(Random Access Memory)などの記憶装置である。印字制御部105は、編集メモリ104に記憶されたフォントパターンを、印字ヘッド106を用いて、指定された印字速度で印字する。CPU101は、これらドットプリンタ1を構成する要素を制御する。CG−ROM103および編集メモリ104は、記憶手段と呼ばれることもある。   The communication interface 107 communicates with the higher-level device 200. The CG-ROM 103 is a ROM that stores font pattern original data, which is data that is a source of a font pattern. The font pattern editing unit 102 creates a font pattern by editing the font pattern original data read from the CG-ROM 103. The edit memory 104 stores the edited or created font pattern. The editing memory 104 is a storage device such as a RAM (Random Access Memory). The print control unit 105 prints the font pattern stored in the editing memory 104 at a designated print speed using the print head 106. The CPU 101 controls the elements constituting the dot printer 1. The CG-ROM 103 and the editing memory 104 are sometimes called storage means.

図2は、フォントパターン元データの一例を表す図である。図2に示すフォントパターン元データは、実際の印字に用いられるフォントパターンが、横方向においてドット数が1/4に圧縮された状態を表すものである。以下、図2のフォントパターン元データから、原フォントパターンを作成する処理について説明する。フォントパターン編集部102は、図2のフォントパターン元データをCG−ROM103から取得する。そして、フォントパターン編集部102は、取得したフォントパターン元データを横方向に4倍伸長することによりフォントパターンを作成し、編集メモリ104に記憶する。図3は、この処理により編集メモリ104に記憶された編集途中のフォントパターンを表す図である。次に、フォントパターン編集部102は、図3のフォントパターンを、左端から4列ごとのドットを除くドットを間引くことにより、印字用の原フォントパターンを作成する。図4は、この処理により編集メモリ104に記憶された原フォントパターンを表す図である。印字制御部105は、図4の原フォントパターンを、印字ヘッド106を用いて印字する。図4において、マス目の間の横方向の距離は1/720インチである。図4を参照すると、原フォントパターンは、横方向ライン(L1〜L24)のドット間の距離が、1/180インチとなっている。この距離は、印字ヘッド106の最高応答周波数と、ドットプリンタ1の印字速度に対応している。以下、原フォントパターンに対応するドットプリンタ1の印字速度を「通常の印字速度」と称する。   FIG. 2 is a diagram illustrating an example of font pattern original data. The font pattern original data shown in FIG. 2 represents a state in which the font pattern used for actual printing is compressed to 1/4 the number of dots in the horizontal direction. Hereinafter, a process for creating an original font pattern from the original font pattern data of FIG. 2 will be described. The font pattern editing unit 102 acquires the font pattern original data in FIG. 2 from the CG-ROM 103. Then, the font pattern editing unit 102 creates a font pattern by expanding the acquired font pattern original data four times in the horizontal direction, and stores the font pattern in the editing memory 104. FIG. 3 is a diagram showing the font pattern in the middle of editing stored in the editing memory 104 by this processing. Next, the font pattern editing unit 102 creates an original font pattern for printing by thinning out the dots except for every four columns from the left end of the font pattern of FIG. FIG. 4 is a diagram showing the original font pattern stored in the editing memory 104 by this processing. The print control unit 105 prints the original font pattern of FIG. 4 using the print head 106. In FIG. 4, the lateral distance between the squares is 1/720 inch. Referring to FIG. 4, in the original font pattern, the distance between the dots in the horizontal line (L1 to L24) is 1/180 inch. This distance corresponds to the maximum response frequency of the print head 106 and the printing speed of the dot printer 1. Hereinafter, the printing speed of the dot printer 1 corresponding to the original font pattern is referred to as “normal printing speed”.

次に、通常の印字速度より高速な印字速度のためのフォントパターンを作成する処理について説明する。図5は、通常の印字速度より高速な印字速度のためのフォントパターンを作成する高速印字フォントパターン編集処理を説明するフローチャートである。以下、図5を参照して、高速印字フォントパターン編集処理について説明する。   Next, processing for creating a font pattern for a printing speed higher than the normal printing speed will be described. FIG. 5 is a flowchart for explaining a high-speed printing font pattern editing process for creating a font pattern for a printing speed higher than the normal printing speed. Hereinafter, the high-speed print font pattern editing process will be described with reference to FIG.

最初に、ドットプリンタ1は、上位装置2より、印字速度(高速)の指定と、1行分の印字データを受信する(ステップS501)。印字速度(高速)とは、通常の印字速度より高速な印字速度のことである。印字速度(高速)は、「1.5倍速」や「2倍速」など、通常の印字速度の何倍の印字速度であるかを示す倍率で表されてもよい。   First, the dot printer 1 receives designation of a printing speed (high speed) and printing data for one line from the host device 2 (step S501). The printing speed (high speed) is a printing speed higher than the normal printing speed. The printing speed (high speed) may be represented by a magnification indicating how many times the normal printing speed is, such as “1.5 times speed” or “2 times speed”.

フォントパターン編集部102は、受信した印字データに対応する、1行分のフォントパターン元データをCG−ROM103より取得する(ステップS502)。そして、フォントパターン編集部102は、取得したフォントパターン元データを横方向に4倍伸長することにより1行分のフォントパターンを作成し、作成したフォントパターンを編集メモリ104に記憶する(ステップS503)。   The font pattern editing unit 102 acquires font pattern original data for one line corresponding to the received print data from the CG-ROM 103 (step S502). Then, the font pattern editing unit 102 creates a font pattern for one line by expanding the acquired font pattern original data four times in the horizontal direction, and stores the created font pattern in the editing memory 104 (step S503). .

次にフォントパターン編集部102は、編集メモリ104に記憶された編集途中のフォントパターンの一部が、フォントの縦要素であるか判定する(ステップS504)。フォントの縦要素とは、例えば「+」の縦線の部分など、フォントパターンのドットが縦方向に連続している部分を指す。この判定は、フォントパターン元データを横方向に4倍伸長したフォントパターンにおいて、横方向に8ドットが連続しており、かつ、その横方向の前後に他のドットが無い場合、当該部分がフォントの縦要素である、とすることにより行われてもよい。すなわち、フォントパターン元データにおいては、横方向に2ドットが連続しており、かつ、その横方向の前後に他のドットが無い場合、当該部分はフォントの縦要素である。上記の判定において、当該部分がフォントの縦要素である、と判定されなかった場合、フォントパターン編集部102は、当該部分がフォントの縦要素ではないと判定する。   Next, the font pattern editing unit 102 determines whether a part of the editing font pattern stored in the editing memory 104 is a vertical element of the font (step S504). The vertical element of the font refers to a portion where the dots of the font pattern are continuous in the vertical direction, for example, a vertical line portion of “+”. This determination is based on a font pattern obtained by expanding the font pattern original data four times in the horizontal direction, and if there are 8 dots in the horizontal direction and there are no other dots before and after the horizontal direction, It may be performed by assuming that it is a vertical element. That is, in the font pattern original data, when two dots are continuous in the horizontal direction and there are no other dots before and after the horizontal direction, the portion is a vertical element of the font. If it is not determined in the above determination that the part is a vertical element of the font, the font pattern editing unit 102 determines that the part is not a vertical element of the font.

当該部分がフォントの縦要素ではないと判定された場合(ステップS504において「NO」)、フォントパターン編集部102は、当該部分に対し、ステップS501で指定された印字速度に追従可能なドットを選択する編集を行う(ステップS505)。すなわち、指定された印字速度において、印字ヘッド106が自身の最高応答周波数において追従可能となるように、フォントパターンの当該部分のドットを配置する。この編集は、指定された印字速度に対応する間隔でフォントパターンの当該部分のドットを選択し、選択されなかったドットを間引くことにより行われてもよい。   If it is determined that the portion is not a vertical element of the font (“NO” in step S504), the font pattern editing unit 102 selects a dot that can follow the printing speed specified in step S501 for the portion. Editing is performed (step S505). That is, the dots of the portion of the font pattern are arranged so that the print head 106 can follow the maximum response frequency at the designated print speed. This editing may be performed by selecting dots in the portion of the font pattern at intervals corresponding to the designated printing speed and thinning out the dots that have not been selected.

当該部分がフォントの縦要素であると判定された場合(ステップS504において「YES」)、フォントパターン編集部102は、1つ前の横方向のラインのドット配置に基づいて、フォントパターンの当該部分のドットを千鳥状に配置する編集を行う(ステップS506)。   When it is determined that the part is a vertical element of the font (“YES” in step S504), the font pattern editing unit 102 determines that part of the font pattern based on the dot arrangement of the previous horizontal line. Editing is performed to arrange the dots in a zigzag pattern (step S506).

ステップS505あるいはS506の処理が完了した後、フォントパターン編集部102は、フォントパターンの横方向の1ライン分の編集が完了したかどうかを判定する(ステップS507)。完了していない場合は(ステップS507において「NO」)、処理した部分の右隣のドットにおいて、ステップS504以降の処理を繰り返す。   After the processing of step S505 or S506 is completed, the font pattern editing unit 102 determines whether editing of one line in the horizontal direction of the font pattern is completed (step S507). If not completed (“NO” in step S507), the processing from step S504 onward is repeated for the dot on the right side of the processed portion.

横方向の1ライン分の編集が完了した場合は(ステップS507において「YES」)、フォントパターン編集部102は、フォントパターンのすべてのラインの編集が完了したかどうかを判定する(ステップS508)。すべてのラインの編集が完了していない場合は(ステップS508において「NO」)、次のラインにおいて、ステップS504以降の処理を繰り返す。すべてのラインの編集が完了した場合は(ステップS508において「YES」)、高速印字フォントパターン編集処理は終了する。   When editing of one line in the horizontal direction is completed (“YES” in step S507), the font pattern editing unit 102 determines whether editing of all lines of the font pattern is completed (step S508). If editing of all the lines has not been completed (“NO” in step S508), the processes in and after step S504 are repeated for the next line. If all lines have been edited (“YES” in step S508), the high-speed print font pattern editing process ends.

高速印字フォントパターン編集処理が終了すると、ドットプリンタ1は、ステップS501で指定された印字速度(高速)で、編集が完了した1行分のフォントパターンを印字する。   When the high-speed printing font pattern editing process is completed, the dot printer 1 prints the font pattern for one line for which editing has been completed at the printing speed (high speed) designated in step S501.

上記の高速印字フォントパターン編集処理において、1行単位での編集処理が行われたが、そうでなくともよい。例えば、1文字単位での編集処理が行われても良い。   In the above-described high-speed print font pattern editing process, the editing process is performed in units of one line, but this need not be the case. For example, editing processing in units of one character may be performed.

次に、図2のフォントパターン元データが入力された場合の、高速印字フォントパターン編集処理について説明する。以下の説明においては、ステップS501において「2倍速」の印字速度が指定され、ステップS502において図2のフォントパターン元データが取得されたものとする。   Next, the high-speed print font pattern editing process when the font pattern original data of FIG. 2 is input will be described. In the following description, it is assumed that the printing speed of “double speed” is designated in step S501, and the font pattern original data of FIG. 2 is acquired in step S502.

ステップS503において、フォントパターン編集部102は、図2のフォントパターン元データを横方向に4倍伸長することにより、図3のフォントパターンを作成する。   In step S503, the font pattern editing unit 102 creates the font pattern of FIG. 3 by expanding the font pattern original data of FIG. 2 by four times in the horizontal direction.

次に、ステップS504以降の処理において、フォントパターン編集部102は、図3のフォントパターンの横方向ラインL1(以降、単に「ラインL1」と称する)より順番に編集処理を行う。まず、フォントパターン編集部102は、ステップS504において、図3のラインL1の左端のR1の部分がフォントの縦要素であるか判定する。具体的には、ラインL1の左端のR1の部分が「横方向に8ドットが連続しており、かつ、その横方向の前後に他のドットが無い」に該当するかどうかを判定する。その結果、ラインL1全体においてこれに該当しないため、フォントパターン編集部102は、ラインL1全体を「フォントの縦要素ではない」と判定する。この判定結果により、フォントパターン編集部102は、ステップS505において、「2倍速」の印字速度に追従可能となるように図3のフォントパターンのラインL1を編集する。具体的には、フォントパターン編集部102は、ラインL1において、通常の印字速度の場合、すなわち図4の原フォントパターンと比べて倍の8ドットごとにドットを選択し、それ以外のドットを間引く処理を行う。図6は、この編集処理を行った後のフォントパターンを表す図である。図6を参照すると、編集処理が行われたラインL1は、図4の通常の印字速度のための原フォントパターンに比べ、横方向のドット間の距離が2倍の長さ(1/90インチ)になっている。横方向のドット間の距離が2倍であることにより、2倍速の走査に印字ヘッド106の印字素子が追従することが可能になる。このことにより、2倍速の印字速度が実現される。   Next, in the processing after step S504, the font pattern editing unit 102 performs editing processing in order from the horizontal line L1 (hereinafter simply referred to as “line L1”) of the font pattern in FIG. First, in step S504, the font pattern editing unit 102 determines whether the leftmost portion R1 of the line L1 in FIG. 3 is a vertical element of the font. Specifically, it is determined whether or not the portion R1 at the left end of the line L1 corresponds to “8 dots are continuous in the horizontal direction and there are no other dots before and after the horizontal direction”. As a result, since this is not the case for the entire line L1, the font pattern editing unit 102 determines that the entire line L1 is “not a vertical element of the font”. Based on the determination result, in step S505, the font pattern editing unit 102 edits the font pattern line L1 in FIG. 3 so as to be able to follow the printing speed of “double speed”. Specifically, the font pattern editing unit 102 selects a dot at line 8 at a normal printing speed, that is, every 8 dots that is double the original font pattern of FIG. 4, and thins out the other dots. Process. FIG. 6 is a diagram showing the font pattern after this editing process. Referring to FIG. 6, the line L1 subjected to the editing process is twice as long as the distance between the dots in the horizontal direction (1/90 inch) compared to the original font pattern for the normal printing speed in FIG. )It has become. Since the distance between the dots in the horizontal direction is double, the print element of the print head 106 can follow the double-speed scanning. This realizes a double speed printing speed.

次に、フォントパターン編集部102は、ステップS504において、図6のラインL2の左端のR1の部分がフォントの縦要素であるか判定する。その結果、ラインL2のR1〜R8は「横方向に8ドットが連続しており、かつ、その横方向の前後に他のドットが無い」に該当する。このため、フォントパターン編集部102は、ラインL2のR1〜R8を「フォントの縦要素である」と判定する。この判定結果により、フォントパターン編集部102は、ステップS506において、1つ前の横方向のラインのドット配置に基づいて、当該部分のフォントパターンを千鳥状に配置する。このとき、千鳥状に配置されたドットの横方向におけるドット間の距離が、通常の印字速度の場合、すなわち図4の原フォントパターンにおける距離(1/180インチ)よりも短く(1/240インチ)なるように配置する。具体的には、フォントパターン編集部102は、1つ前のラインL1のR1にドットがあることから、ラインL2のR1〜R8において、R4にドットを配置し、他のドットを削除する。   In step S504, the font pattern editing unit 102 determines whether the leftmost portion R1 of the line L2 in FIG. 6 is a vertical element of the font. As a result, R1 to R8 of the line L2 correspond to “8 dots are continuous in the horizontal direction and there are no other dots before and after the horizontal direction”. Therefore, the font pattern editing unit 102 determines that R1 to R8 of the line L2 are “vertical elements of the font”. Based on the determination result, in step S506, the font pattern editing unit 102 arranges the font pattern of the portion in a staggered manner based on the dot arrangement of the previous horizontal line. At this time, the distance between the dots arranged in a staggered pattern in the horizontal direction is shorter than the distance (1/180 inch) in the normal font speed, that is, the original font pattern in FIG. 4 (1/240 inch). ). Specifically, since there is a dot in R1 of the previous line L1, the font pattern editing unit 102 arranges a dot in R4 and deletes other dots in R1 to R8 of the line L2.

図7は、上記の編集処理を行った後のフォントパターンを表す図である。図7を参照すると、ラインL1のR1のドットと、ラインL2のR4のドットは、図4の通常の印字速度のための原フォントパターンに比べ、横方向のドット間の距離が短くなっている。このことにより、千鳥状の部分の印字結果がギザギザした印象を与えることが軽減される。また、ラインL1とラインL2は異なる横方向ラインであるため、横方向のドット間の距離を短くしつつ、通常より高速な印字速度が実現される。   FIG. 7 is a diagram illustrating a font pattern after the above-described editing process is performed. Referring to FIG. 7, the distance between the dots in the horizontal direction is shorter in the R1 dot in the line L1 and the R4 dot in the line L2 than in the original font pattern for the normal printing speed in FIG. . This reduces the impression that the staggered printed result has a jagged appearance. Further, since the line L1 and the line L2 are different horizontal lines, a printing speed higher than usual can be realized while shortening the distance between the dots in the horizontal direction.

同様に、フォントパターン編集部102は、ラインL2のR17〜R24の部分を「フォントの縦要素である」と判定する。以降、同様に、フォントパターン編集部102は、ラインL3〜L22のR1〜8およびR17〜R24の部分を「フォントの縦要素である」と判定する。この判定結果により、フォントパターン編集部102は、ステップS506において、1つ前の横方向のラインのドット配置に基づいて、当該部分のフォントパターンを千鳥状に配置する。図8は、上記の編集処理を行った後のフォントパターンを表す図である。   Similarly, the font pattern editing unit 102 determines that portions R17 to R24 of the line L2 are “vertical elements of the font”. Thereafter, similarly, the font pattern editing unit 102 determines that the R1 to R8 and R17 to R24 portions of the lines L3 to L22 are “vertical elements of the font”. Based on the determination result, in step S506, the font pattern editing unit 102 arranges the font pattern of the portion in a staggered manner based on the dot arrangement of the previous horizontal line. FIG. 8 is a diagram illustrating a font pattern after the above-described editing process is performed.

次に、フォントパターン編集部102は、ステップS504において、図8のラインL23の左端のR1の部分がフォントの縦要素であるか判定する。その結果、ラインL1と同様に、フォントパターン編集部102は、ラインL23全体を「フォントの縦要素ではない」と判定する。この判定結果により、フォントパターン編集部102は、ステップS505において、「2倍速」の印字速度に追従可能となるようにフォントパターンのラインL23を編集する。   In step S504, the font pattern editing unit 102 determines whether the leftmost portion R1 of the line L23 in FIG. 8 is a vertical element of the font. As a result, like the line L1, the font pattern editing unit 102 determines that the entire line L23 is “not a vertical element of the font”. Based on the determination result, in step S505, the font pattern editing unit 102 edits the font pattern line L23 so as to be able to follow the printing speed of “double speed”.

ラインL24には処理の対象となるドットが存在しないため、高速印字フォントパターン編集処理は終了する。図9は、高速印字フォントパターン編集処理が終了した後の、2倍速の印字速度のためのフォントパターンを表す図である。   Since there is no dot to be processed in the line L24, the high-speed print font pattern editing process ends. FIG. 9 is a diagram illustrating a font pattern for the double speed printing speed after the high speed printing font pattern editing process is completed.

上記の説明においては、指定された印字速度が「2倍速」である場合について説明したが、それ以外でもよい。すなわち、フォントパターン編集部102は、ステップS505において、選択するドットの間隔を変えることにより、異なった印字速度に対応したフォントパターンを作成してもよい。図10は、1.5倍速の印字速度のためのフォントパターンを表す図である。また、図11は、1.25倍速の印字速度のためのフォントパターンを表す図である。   In the above description, the case where the designated printing speed is “double speed” has been described. That is, the font pattern editing unit 102 may create font patterns corresponding to different printing speeds by changing the interval of the selected dots in step S505. FIG. 10 is a diagram illustrating a font pattern for a printing speed of 1.5 times speed. FIG. 11 is a diagram illustrating a font pattern for a printing speed of 1.25 times speed.

ステップS505において選択するドットの間隔は、通常の印字速度の場合の横方向のドット間隔、すなわち図4の原フォントパターンにおける横方向のドット間隔に、印字速度の倍率を掛け合わせたものであってもよい。   The dot interval selected in step S505 is obtained by multiplying the horizontal dot interval at the normal printing speed, that is, the horizontal dot interval in the original font pattern of FIG. Also good.

以上のように、本発明の第1の実施形態に係るドットプリンタ1は、印字品質を著しく低下することなく、印字速度を高速化する。なぜならば、フォントパターン編集部102が、フォントの縦要素の部分のドットを千鳥状に配置する編集を行い、縦要素ではない部分のドットを指定された印字速度に追従可能なように選択して配置する編集を行うからである。   As described above, the dot printer 1 according to the first embodiment of the present invention increases the printing speed without significantly reducing the printing quality. This is because the font pattern editing unit 102 performs editing in which the dots of the vertical elements of the font are arranged in a staggered manner, and selects the dots of the non-vertical elements so that they can follow the designated printing speed. This is because editing to be arranged is performed.

すなわち、フォントの縦要素については、フォントパターン編集部102はドットを千鳥状に配置することにより印字速度を高速化する。また、千鳥状の配置に際しては、横方向のドット間の距離を調節することにより、ギザギザした印象を与えることが軽減される。   That is, for the vertical element of the font, the font pattern editing unit 102 increases the printing speed by arranging dots in a staggered pattern. In staggered arrangement, a jagged impression can be reduced by adjusting the distance between dots in the horizontal direction.

また、フォントの横線など、縦要素ではない部分については、フォントパターン編集部102は指定された印字速度に追従可能なドットを選択する編集を行う。すなわち、指定された印字速度において、印字ヘッド106が自身の最高応答周波数において追従可能となるように、フォントパターンの当該部分のドットを配置する。このことにより、印字品質の低下を最小限に抑えつつ、指定された印字速度が実現される。   For a portion that is not a vertical element, such as a horizontal line of a font, the font pattern editing unit 102 performs editing to select dots that can follow the designated printing speed. That is, the dots of the portion of the font pattern are arranged so that the print head 106 can follow the maximum response frequency at the designated print speed. As a result, the designated printing speed is realized while minimizing the deterioration of the printing quality.

さらに、本発明の第1の実施形態に係るドットプリンタ1は、あらかじめ高速印字用のフォントパターンを作成,格納しておくことなしに、任意の速度での高速印字を可能にする。なぜならば、フォントパターン編集部102が、原フォントパターンの元となるデータより、指定された印字速度(高速)に対応するフォントパターンを作成するからである。   Furthermore, the dot printer 1 according to the first embodiment of the present invention enables high-speed printing at an arbitrary speed without creating and storing a font pattern for high-speed printing in advance. This is because the font pattern editing unit 102 creates a font pattern corresponding to the designated printing speed (high speed) from the original data of the original font pattern.

[第2の実施形態]
次に、本発明の第2の実施の形態を説明する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described.

図12は、本発明の第2の実施形態に係るドットプリンタの構成を表すブロック構成図である。本発明の第2の実施形態に係るドットプリンタ10は、フォントパターンを編集することにより、所与の印字速度に対応するフォントパターンを作成するフォントパターン編集部1002を備える。   FIG. 12 is a block diagram showing the configuration of the dot printer according to the second embodiment of the present invention. The dot printer 10 according to the second embodiment of the present invention includes a font pattern editing unit 1002 that creates a font pattern corresponding to a given printing speed by editing a font pattern.

フォントパターン編集部1002は、格子状の領域に配置された1つ以上のドットとしてフォントを表すフォントパターンの一部が、フォントの縦要素であるか判定する。縦要素であると判定した場合は、フォントパターン編集部1002は、フォントパターンの当該部分のドットを千鳥状に配置する縦要素配置編集を行う。縦要素の部分ではないと判定した場合は、フォントパターン編集部1002は、フォントパターンの当該部分のドットを所与の印字速度に対応する間隔で配置する横要素配置編集を行う。   The font pattern editing unit 1002 determines whether a part of the font pattern that represents the font as one or more dots arranged in the grid area is a vertical element of the font. When it is determined that the element is a vertical element, the font pattern editing unit 1002 performs vertical element arrangement editing that arranges dots of the portion of the font pattern in a staggered manner. If it is determined that the portion is not a vertical element portion, the font pattern editing unit 1002 performs horizontal element arrangement editing in which the dots of the portion of the font pattern are arranged at intervals corresponding to a given printing speed.

以上のように、本発明の第2の実施形態に係るドットプリンタ10は、印字品質を著しく低下することなく、印字速度を高速化する。なぜならば、フォントパターン編集部1002が、フォントの縦要素の部分のドットを千鳥状に配置する編集を行い、縦要素ではない部分のドットを指定された印字速度に対応する間隔で配置する編集を行うからである。   As described above, the dot printer 10 according to the second embodiment of the present invention increases the printing speed without significantly reducing the printing quality. This is because the font pattern editing unit 1002 performs editing in which the dots of the vertical element portion of the font are arranged in a staggered manner, and the dots of the non-vertical element portion are arranged at intervals corresponding to the designated printing speed. Because it does.

上述の実施形態において、ステップS506の処理で千鳥状に配置されたドットの横方向におけるドット間の距離を1/240インチとしたが、この他の距離でもよい。すなわち、例えば、1/180インチや、1/360インチでもよい。   In the above-described embodiment, the distance between dots in the horizontal direction of the dots arranged in a staggered pattern in the process of step S506 is 1/240 inch, but other distances may be used. That is, for example, 1/180 inch or 1/360 inch may be used.

また、フォントパターン元データは、実際の印字に用いられるフォントパターンが横方向においてドット数が1/4に圧縮されたものであるとしたが、これには限られない。例えば、ドット数が1/2や1/8など、1/n(nは任意の自然数)に圧縮されたものでもよい。   In addition, although the font pattern original data is obtained by compressing the font pattern used for actual printing into the quarter number of dots in the horizontal direction, the present invention is not limited to this. For example, the dot number may be compressed to 1 / n (n is an arbitrary natural number) such as 1/2 or 1/8.

図1のフォントパターン編集部102および印字制御部105、図12のフォントパターン編集部1002は、IC(Integrated Circuit)などの専用のハードウェアで実現されてもよい。   The font pattern editing unit 102 and the print control unit 105 in FIG. 1 and the font pattern editing unit 1002 in FIG. 12 may be realized by dedicated hardware such as an IC (Integrated Circuit).

1,10 ドットプリンタ
101 CPU
102,1002 フォントパターン編集部
103 CG−ROM
104 編集メモリ
105 印字制御部
106 印字ヘッド
107 通信インタフェース
2 上位装置
1,10 dot printer 101 CPU
102,1002 Font pattern editing unit 103 CG-ROM
104 Editing Memory 105 Print Control Unit 106 Print Head 107 Communication Interface 2 Host Device

Claims (8)

格子状の領域に配置された1つ以上のドットとしてフォントを表すフォントパターンの一部が、前記フォントの縦要素であるか判定し、縦要素であると判定した場合に、前記フォントパターンの当該部分のドットを千鳥状に配置する縦要素配置編集を行い、縦要素ではないと判定した場合に、前記フォントパターンの当該部分のドットを所与の印字速度に対応する間隔で配置する横要素配置編集を行うフォントパターン編集手段と、
フォントパターン元データを格納する記憶手段を備え、
前記フォントパターン編集手段は、前記フォントパターン元データを横方向に所定の倍率伸長したフォントパターンにおいて、横方向に所定数のドットが連続しており、かつ、当該ドットの横方向の前後に他のドットが無い場合に、当該部分はフォントの縦要素であると判定するドットプリンタ。
It is determined whether a part of a font pattern that represents a font as one or more dots arranged in a grid-like region is a vertical element of the font. Horizontal element arrangement that arranges dots in the font pattern at intervals corresponding to a given printing speed when vertical element arrangement editing is performed to arrange the dots of the part in a staggered manner and it is determined that the dots are not vertical elements Font pattern editing means for editing,
Bei give a storage means for storing font patterns original data,
The font pattern editing means includes a font pattern obtained by expanding the font pattern original data in a horizontal direction at a predetermined magnification, and a predetermined number of dots are continuous in the horizontal direction, and other dots are arranged before and after the dot in the horizontal direction. If the dot is not, de you determined the moiety is a vertical element of font Ttopurinta.
前記横要素配置編集は、前記フォントパターン元データを横方向に所定の倍率伸長したフォントパターンにおいて、前記所与の印字速度に対応する間隔で当該フォントパターンのドットを選択し、選択されなかったドットを間引く処理である請求項に記載のドットプリンタ。 In the horizontal element arrangement editing, in the font pattern obtained by expanding the font pattern original data by a predetermined magnification in the horizontal direction, the dots of the font pattern are selected at intervals corresponding to the given printing speed, and the unselected dots 2. The dot printer according to claim 1 , wherein the dot printer is a process of thinning out. 前記フォントパターン編集手段は、前記フォントパターン元データを横方向に所定の倍率伸長したフォントパターンにおいて、横方向に所定の列数ごとのドットを除くドットを間引くことにより原フォントパターンを作成し、
前記縦要素配置編集は、千鳥状に配置されたドットの横方向におけるドット間の距離が、前記原フォントパターンにおける距離よりも短くなるように配置する処理である請求項またはに記載のドットプリンタ。
The font pattern editing means creates an original font pattern by thinning out dots excluding dots every predetermined number of columns in the horizontal direction in the font pattern obtained by expanding the font pattern original data by a predetermined magnification in the horizontal direction,
Said longitudinal element arrangement editing, the distance between the dots in the transverse direction of the dots arranged in a staggered shape, according to claim 1 or 2, wherein a process arranged to be shorter than the distance in the original font pattern dots Printer.
前記所与の印字速度に対応する間隔は、前記原フォントパターンのドット間隔に、前記原フォントパターンに対応する印字速度と前記所与の印字速度の比率を掛け合わせたものである請求項に記載のドットプリンタ。 Interval corresponding to the given printing speed, a dot interval of the original font pattern, to claim 3 wherein is obtained by multiplying the percentage printing speed and the given printing speed corresponding to the original font pattern The described dot printer. 格子状の領域に配置された1つ以上のドットとしてフォントを表すフォントパターンの一部が、前記フォントの縦要素であるか判定し、
縦要素である場合に、前記フォントパターンの当該部分のドットを千鳥状に配置する縦要素配置編集を行い、
縦要素ではない場合に、前記フォントパターンの当該部分のドットを所与の印字速度に対応する間隔で配置する横要素配置編集を行い、
フォントパターン元データを記憶手段に格納し、
前記フォントパターン元データを横方向に所定の倍率伸長したフォントパターンにおいて、横方向に所定数のドットが連続しており、かつ、当該ドットの横方向の前後に他のドットが無い場合に、当該部分はフォントの縦要素であると判定するフォントパターン編集方法。
Determining whether a part of a font pattern representing a font as one or more dots arranged in a grid-like region is a vertical element of the font;
If it is a vertical element, perform vertical element arrangement editing to arrange the dots of the part of the font pattern in a staggered manner,
If not a vertical element, perform horizontal element arrangement editing to arrange the dots of the part of the font pattern at intervals corresponding to a given printing speed,
Store the font pattern original data in the storage means,
In a font pattern obtained by expanding the font pattern original data by a predetermined magnification in the horizontal direction, when a predetermined number of dots are continuous in the horizontal direction and there are no other dots before and after the horizontal direction, off Ontopatan editing portion it determined is longitudinal elements of the font.
前記横要素配置編集を行う際に、前記フォントパターン元データを横方向に所定の倍率伸長したフォントパターンにおいて、前記所与の印字速度に対応する間隔で当該フォントパターンのドットを選択し、選択されなかったドットを間引く請求項に記載のフォントパターン編集方法。 When performing the horizontal element arrangement editing, in the font pattern obtained by expanding the font pattern original data by a predetermined magnification in the horizontal direction, the dot of the font pattern is selected at an interval corresponding to the given printing speed, and is selected. 6. The font pattern editing method according to claim 5 , wherein the missing dots are thinned out. 前記フォントパターン元データを横方向に所定の倍率伸長したフォントパターンにおいて、横方向に所定の列数ごとのドットを除くドットを間引くことにより原フォントパターンを作成し、
前記縦要素配置編集を行う際に、千鳥状に配置されたドットの横方向におけるドット間の距離が、前記原フォントパターンにおける距離よりも短くなるように配置する請求項またはに記載のフォントパターン編集方法。
In the font pattern obtained by expanding the font pattern original data by a predetermined magnification in the horizontal direction, an original font pattern is created by thinning out dots excluding dots every predetermined number of columns in the horizontal direction,
The font according to claim 5 or 6 , wherein when performing the vertical element arrangement editing, the dots arranged in a staggered pattern are arranged such that a distance between dots in a horizontal direction is shorter than a distance in the original font pattern. Pattern editing method.
前記所与の印字速度に対応する間隔は、前記原フォントパターンのドット間隔に、前記原フォントパターンに対応する印字速度と前記所与の印字速度の比率を掛け合わせたものである請求項に記載のフォントパターン編集方法。 Interval corresponding to the given printing speed, a dot interval of the original font pattern, to claim 7 is obtained by multiplying the ratio of the print speed and the given printing speed corresponding to the original font pattern The font pattern editing method described.
JP2013238491A 2013-11-19 2013-11-19 Dot printer and font pattern editing method Active JP6247081B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013238491A JP6247081B2 (en) 2013-11-19 2013-11-19 Dot printer and font pattern editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013238491A JP6247081B2 (en) 2013-11-19 2013-11-19 Dot printer and font pattern editing method

Publications (2)

Publication Number Publication Date
JP2015098115A JP2015098115A (en) 2015-05-28
JP6247081B2 true JP6247081B2 (en) 2017-12-13

Family

ID=53375089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013238491A Active JP6247081B2 (en) 2013-11-19 2013-11-19 Dot printer and font pattern editing method

Country Status (1)

Country Link
JP (1) JP6247081B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5931750B2 (en) * 1977-01-22 1984-08-03 日本電信電話株式会社 pattern generator
JP3049857B2 (en) * 1991-07-22 2000-06-05 ブラザー工業株式会社 Drive control device for wire dot print head
JP2626691B2 (en) * 1993-12-10 1997-07-02 セイコープレシジョン株式会社 Printing method of dot printer
JPH07240843A (en) * 1994-02-25 1995-09-12 Ricoh Co Ltd Image forming device
JP3033501B2 (en) * 1996-08-30 2000-04-17 日本電気株式会社 Dot printer
JP2001205852A (en) * 2000-01-31 2001-07-31 Ricoh Co Ltd Image forming apparatus
JP4463176B2 (en) * 2005-09-27 2010-05-12 エヌイーシーコンピュータテクノ株式会社 Font data generation method, font data generation apparatus, and dot impact printer

Also Published As

Publication number Publication date
JP2015098115A (en) 2015-05-28

Similar Documents

Publication Publication Date Title
JP3183555B2 (en) Method of multiplying drawing speed / resolution product and method of forming drawing data
JPH0352878B2 (en)
JP2012257000A (en) Image processor, image processing method, and image processing program
JP6253440B2 (en) Vector data processing apparatus, image recording system, vector data processing method and program
JP2018041185A (en) Image processing device, image processing method, and control program
JP6247081B2 (en) Dot printer and font pattern editing method
JPH0795392A (en) Smooting and scaling method of facsimile image
JPH07121734A (en) Character image editing device
JP2000506797A (en) Printing apparatus and method for saving printing material
JP4376011B2 (en) Font enlargement apparatus and method, and printing apparatus and method
US11704521B2 (en) Image forming apparatus, image forming method, and image forming program
JP4463176B2 (en) Font data generation method, font data generation apparatus, and dot impact printer
JP5131144B2 (en) Image processing apparatus, image processing program, and image forming apparatus
JP3033501B2 (en) Dot printer
JP2009292102A (en) Recording device and its method
JP4507526B2 (en) Printing control method and apparatus
JP6459815B2 (en) Image processing apparatus and program
JP2657198B2 (en) Printing method of dot printer
JPH03120060A (en) Scale-down printing method
JP2015122691A (en) Image processing apparatus, image processing method, and printing system
JP2005303606A (en) Image processor, image processing method and printer driver
JP5778715B2 (en) Printing method and dot printer
JPH08254974A (en) Printing font forming device and printing font forming method
JP2013073268A (en) Information processing device, method for determining bar-code, and program
JP2005125713A (en) Device for generating thinned-out mask pattern, recording device equipped with this device for generating thinned-out mask pattern, method for generating mask pattern, program and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20161014

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170830

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170905

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171006

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171024

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171116

R150 Certificate of patent or registration of utility model

Ref document number: 6247081

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150