JPH0263761A - character output device - Google Patents
character output deviceInfo
- Publication number
- JPH0263761A JPH0263761A JP21487788A JP21487788A JPH0263761A JP H0263761 A JPH0263761 A JP H0263761A JP 21487788 A JP21487788 A JP 21487788A JP 21487788 A JP21487788 A JP 21487788A JP H0263761 A JPH0263761 A JP H0263761A
- Authority
- JP
- Japan
- Prior art keywords
- character
- information
- data
- run
- run length
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、文字パターン情報をランレングス符号化して
記憶し、文字パターン生成および印字等を行う文字出力
装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character output device that encodes and stores character pattern information in a run-length manner, and performs character pattern generation, printing, and the like.
[従来の技術]
従来の印刷装置等において、縦方向もしくは横方向のい
ずれか一方のランレングス符号化情報(以下、ランレン
グス情報と称する)を展開する手段と通常の出力処理を
行う手段とにより構成されたものが提案されている。こ
の場合、白黒2値画像を白または黒の画素の連続する長
さにより符号化するランレングス符号化を用いて文字パ
ターン情報をデータ圧縮して記憶しているので、文字パ
ターン発生手段の記憶容量が少くて済むという利点があ
る。[Prior Art] In a conventional printing device, etc., a method for developing run-length encoded information in either the vertical direction or the horizontal direction (hereinafter referred to as run-length information) and means for performing normal output processing is used. A configuration is proposed. In this case, the character pattern information is compressed and stored using run-length encoding, in which a black and white binary image is encoded using the continuous length of white or black pixels, so the storage capacity of the character pattern generating means is It has the advantage that it requires less.
[発明が解決しようとする課題]
しかしながら、・上述のような従来装置では、縦方向ま
たは横方向の一方向のランレングス情報しか持たなかっ
たので、次のような欠点があった。[Problems to be Solved by the Invention] However, since the conventional device as described above only had run length information in one direction, either the vertical direction or the horizontal direction, it had the following drawbacks.
■ランレングスとして持っている方向の縮小および拡大
は容易であるが、その方向に垂直な方向の縮小および拡
大は困難であった。■It is easy to reduce and expand in the direction of the run length, but it is difficult to reduce and expand in the direction perpendicular to that direction.
■文字パターンの90”および270°の回転が困難で
あった。■It was difficult to rotate the character pattern by 90" and 270 degrees.
■縦方向および横方向を同時に、拡大または縮小を行う
ことが困難であった。■It was difficult to enlarge or reduce the image in the vertical and horizontal directions at the same time.
本発明の目的は、上述の欠点を除去し、縦方向でも横方
向でも縮小、拡大が容易であり、また縦、横を同時に拡
大・縮小を行うこともでき、さらに所望の角度での文字
パターンの回転も可能な文字出力装置を提供することに
ある。The object of the present invention is to eliminate the above-mentioned drawbacks, to easily reduce and enlarge both vertically and horizontally, to be able to simultaneously enlarge and reduce vertically and horizontally, and to create character patterns at desired angles. The object of the present invention is to provide a character output device that can also rotate the character.
ンレングズによる第2のランレングス符号化情報の両方
を備えたパターン記憶手段と、文字パターンの変倍要求
に対応して、第1および第2のランレングス符号化情報
の両方、またはその一方を用いてドツトパターンに展開
する文字パターン発生手段とを具備したことを特徴とす
る。a pattern storage means having both second run-length encoded information according to the first and second run-length encoded information; The present invention is characterized by comprising a character pattern generating means that develops a character pattern into a dot pattern.
[作 用]
本発明は、上記構成により、文字パターン情報として縦
方向と横方向の両方向のランレングス情報を備え、両方
向のランレングス情報を基にドツトパターンへ展開する
ようにしたので、縦方向のみ、横方向のみ、および縦横
両方向を組合せた拡大・縮小が容易に行え、かつ文字パ
ターンの90°、180°、270°回転が容易に行え
る。[Function] With the above configuration, the present invention is provided with run length information in both the vertical and horizontal directions as character pattern information, and is developed into a dot pattern based on the run length information in both directions. Enlargement/reduction can be easily performed in only the horizontal direction, only in the horizontal direction, and in both vertical and horizontal directions, and character patterns can be easily rotated by 90°, 180°, and 270°.
[課題を解決するための手段]
かかる目的を達成するために、本発明は、文字パターン
の情報として縦方向のランレングスによる第1のランレ
ングス符号化情報と、横方向のう[実施例1
以下、図面を参照して本発明の実施例を詳細に説明する
。[Means for Solving the Problems] In order to achieve the above object, the present invention provides first run length encoded information based on vertical run lengths as character pattern information, and first run length encoded information based on horizontal run lengths [Example 1 Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は本発明を適用した印刷装置の実施例の回路構成
を示す。本図において、lはデータを送出するホストコ
ンピュータ、2は3〜9の構成部分からなる印刷装置で
ある。3はホストコンピュータ1から送出されたデータ
を受信するデータ受信部、4はデータ受信部3で受信し
たデータを解析するデータ解析部、5はデータ解析部4
で解析されたデータのうちで、印字文字データ(内部文
字コー1〜)に対応する文字パターンを発生する文字パ
ターン生成部である。6は文字パターン生成部5て文字
パターンを発生する際に使用するランレングス情報を記
憶する文字情報部である。FIG. 1 shows a circuit configuration of an embodiment of a printing apparatus to which the present invention is applied. In this figure, 1 is a host computer that sends data, and 2 is a printing device consisting of components 3 to 9. 3 is a data receiving section that receives data sent from the host computer 1; 4 is a data analyzing section that analyzes the data received by the data receiving section 3; 5 is a data analyzing section 4
This is a character pattern generation unit that generates a character pattern corresponding to the printed character data (internal character codes 1 to 1) among the data analyzed in the above. Reference numeral 6 denotes a character information section that stores run length information used when the character pattern generation section 5 generates a character pattern.
7はデータ解析部4で解析されたデータのうちで印字文
字データ以外のデータ(コマンドデータ、アドレスデー
タ)の実行を行う命令実行部、8は文字パターン生成部
5および命令実行部7で生成、または実行された結果を
出力イメージで時格納する出力用バッファ、9は出力用
バッファ8の内容を用紙上に印刷する印刷部である。こ
の印刷部9としては、ドツトイメージデータを印刷可能
なレーザビームプリンタやインクジェットプリンク、あ
るいは熱転写プリンタ等を用いる。7 is an instruction execution unit that executes data other than print character data (command data, address data) among the data analyzed by the data analysis unit 4; 8 is generated by the character pattern generation unit 5 and the instruction execution unit 7; An output buffer 9 stores the executed results as an output image. Reference numeral 9 denotes a printing unit that prints the contents of the output buffer 8 on paper. As the printing unit 9, a laser beam printer, an inkjet printer, a thermal transfer printer, or the like capable of printing dot image data is used.
第2図は第1図の文字情報部6の文字情報のうちの1文
字の情報を示した一例である。本図において、lOは文
字か入っているアドレスへのポインタ、11は文字の情
報(例えはピッチ、カーニング値等)、12は縦方向ラ
ンレングスで表わした文字パターンの情報および13は
横方向のランレングスで表わした文字パターンの情報で
ある。FIG. 2 is an example showing information on one character among the character information in the character information section 6 of FIG. In this figure, lO is a pointer to the address containing the character, 11 is character information (e.g. pitch, kerning value, etc.), 12 is character pattern information expressed in vertical run length, and 13 is horizontal direction information. This is character pattern information expressed in run length.
第3図のフローヂャートは第1図の本発明実施例の制御
手順を示す。この制御手順は図示しない制御部(CPI
J)の内部プログラムROMにあらかしめ格納されてい
る。まず、ステップS14ではホストコンピュータ1か
ら送出されたデータをデータ受信部3において受信する
。ステップS14で受信したデータはデータ解析部4で
終了コードか否かの判定をステップS15で行い、終了
コードであれば印刷を終了する。The flowchart in FIG. 3 shows the control procedure of the embodiment of the present invention shown in FIG. This control procedure is performed by a control unit (CPI) (not shown).
J) is stored in the internal program ROM. First, in step S14, data sent from the host computer 1 is received by the data receiving section 3. The data analysis unit 4 determines whether the data received in step S14 is an end code or not in step S15, and if it is an end code, printing is terminated.
終了コードでなければステップ316で印字データか否
かの判断を行い、印字データであれはステップ318へ
進み、印字データでなければ次のステツブS17を実行
する。゛ステップS17では人力データに従って命令実
行部7で命令を実行する。If it is not an end code, it is determined in step 316 whether or not it is print data. If it is print data, the process advances to step 318, and if it is not print data, the next step S17 is executed.゛In step S17, the command execution unit 7 executes the command according to the human data.
ステップ316において印字データと判断された場合に
は、文字パターン生成部5において以下に述べるような
パターン生成処理がおこなわれる。If it is determined in step 316 that the data is print data, the character pattern generation section 5 performs pattern generation processing as described below.
すなわち、ステップ318では文字の変形命令が縦方向
のみの変形(拡大、縮小)か否かを判断し、例えば縦倍
角のような縦方向のみであればステップS19へ、もし
そうでなければステップ320へ移る。ステップS19
では文字情報部6の文字情報11および縦方向ランレン
グス情報12を用いてそのランレングス情報に変倍率を
乗じて得られる文字を生成し、出力用バッファ8に書き
こむ。That is, in step 318, it is determined whether the character transformation command is to transform only in the vertical direction (enlargement, reduction), and if it is only in the vertical direction, such as double-width, the process proceeds to step S19; otherwise, the process proceeds to step S320. Move to. Step S19
Then, using the character information 11 and the vertical run length information 12 of the character information section 6, a character obtained by multiplying the run length information by a scaling factor is generated and written into the output buffer 8.
ステップS20では文字の変形部分が横方向のみの変形
か否かを判断して倍巾文字のような横方向のみの変形で
あればステップ521へ、もしそうでなければステップ
S22へ移る。ステップS21では文字情報部6の文字
情報11および横方向ランレングス情報13を用いてそ
のランレングス情報に変倍率を乗じて得られる文字を生
成し、出力用バッファ8に書きこむ。In step S20, it is determined whether the deformed portion of the character is deformed only in the horizontal direction. If the deformation is only in the horizontal direction, such as a double-width character, the process proceeds to step 521, and if not, the process proceeds to step S22. In step S21, characters obtained by multiplying the run length information by a scaling factor are generated using the character information 11 and the horizontal run length information 13 of the character information section 6, and are written into the output buffer 8.
ステップS22では文字の変形命令が縦方向、横方向の
両方向ともに変形するものか否かを判断し、四倍角文字
のような縦、横方向ともに変形するのであればステップ
S23を実行し、もしそうでなければ次のステップS2
4を実行する。ステップS23では文字情報部6の情報
のうちで文字の情報と、縦方向ランレングス情報および
横方向ランレングス情報13の全てを用いて指定の変倍
率の文字を生成し、出力用バッファ8に書き込む。例え
ば、四倍角文字であれば、12の縦方向ランレングス情
報を2倍にして得たデータを奇数桁毎にドツトパターン
に展開し、その上に13の横方向ランレングス情報を2
倍にして得たデータを奇数行毎にドツトパターンに展開
したものを重畳し、偶数桁と偶数行の交わる交叉点に関
しては周囲のドツトの平均値を与えれば、容易に縦、横
両方向に倍巾となった四倍角文字が得られる。In step S22, it is determined whether the character transformation command is to transform the character in both the vertical and horizontal directions. If not, next step S2
Execute 4. In step S23, a character with a specified magnification ratio is generated using all of the character information, vertical run length information, and horizontal run length information 13 among the information in the character information section 6, and is written to the output buffer 8. . For example, for a quad-width character, the data obtained by doubling the vertical run length information of 12 is developed into a dot pattern for every odd number digit, and on top of that the horizontal run length information of 13 is doubled.
If you superimpose the doubled data into a dot pattern for each odd row, and give the average value of the surrounding dots at the intersection point where an even numbered digit and an even numbered row intersect, you can easily double the data in both the vertical and horizontal directions. You will get a quad-width character with a width.
ステップS24では文字情報部6の文字の情報11と縦
方向のランレングス情報12、もしくは文字の情報11
と横方向ランレングス情報13のいずれかの情報を用い
て、等倍で文字を生成し、出力用バッファ8へ書き込む
。上述のステップS17. S19゜S21. S23
. S24のいずれかの処理を実行した後、ステップS
25で印字を行うか否かを判断し、印字を行う場合はス
テップ326へ、印字を行わない場合は再びステップS
14へ戻る。ステップ326では出力用バッファ8の内
容を印刷部9へ送って印字を行わせ、再びステップS1
4へ戻る。In step S24, the character information 11 and the vertical run length information 12 of the character information section 6, or the character information 11
A character is generated at the same size using either of the information 13 and the horizontal run length information 13, and is written to the output buffer 8. Step S17 described above. S19°S21. S23
.. After executing any of the processes in S24, step S
In step 25, it is determined whether or not to print. If printing is to be performed, the process proceeds to step 326; if printing is not to be performed, the process returns to step S.
Return to 14. In step 326, the contents of the output buffer 8 are sent to the printing unit 9 for printing, and again in step S1
Return to 4.
以上の動作により、縦方向と横方向の拡大・縮小が容易
となる。The above operations facilitate scaling up and down in the vertical and horizontal directions.
第1図の文字パターン生成部5において文字パターンの
生成を行うときに、文字情報部6の縦方、向ランレング
ス情報12を読出しながら、13の横方向ランレングス
情報の展開時のパターン配列順序で文字パターンを生成
すれば、90度の文字パターンの回転が可能である。ま
た同様に、横方向のランレングス情報13を読み出しな
がら12の縦方向ランレングス情報の展開時の配列順序
で文字パターンを生成すれば、文字パターンの270°
回転が可能である。さらに、また通常のランレングス情
報の処理の場合と同様に、 180°の文字パターンの
回転ができることは勿論である。When generating a character pattern in the character pattern generation section 5 shown in FIG. If a character pattern is generated using , it is possible to rotate the character pattern by 90 degrees. Similarly, if a character pattern is generated in the order in which the horizontal run length information 13 is read out and the 12 vertical run length information is expanded, the character pattern's 270°
Rotation is possible. Furthermore, it is of course possible to rotate the character pattern by 180 degrees, as in the case of normal run-length information processing.
このように、読み出し展開方向を変えるだけで文字の9
0°、180°、270°の回転処理を行うことができ
る。In this way, just by changing the readout direction, the character 9
Rotation processing of 0°, 180°, and 270° can be performed.
[発明の効果コ
以上説明したように、本発明によれば、文字パターン情
報として縦方向と横方向の両方向のランレングス情報を
備え、両方向のランレングス情報を基にドツトパターン
へ展開するようにしたので、縦方向のみ、横方向のみ、
および縦横両方向を組合せた拡大・縮小が容易に行え、
かつ文字パターンの90°、180°、270°回転が
容易に行える効果がある。[Effects of the Invention] As explained above, according to the present invention, run length information in both the vertical and horizontal directions is provided as character pattern information, and a dot pattern is developed based on the run length information in both directions. So, only vertical direction, only horizontal direction,
and can be easily enlarged and reduced in both vertical and horizontal directions.
Moreover, there is an effect that the character pattern can be easily rotated by 90°, 180°, and 270°.
第1図は本発明を実施した印刷装置の回路構成例を示す
ブロック図、
第2図は本発明を実施した印刷装置における文字情報の
記憶方法の一例を示す説明図、第3図本発明を実施した
印刷装置の制御手順を示すフローチャートである。
1・・・ホストコンピュータ、
5・・・文字パターン生成部、
6・・・文字情報部、
9・・・印刷部、
12・・・縮方向ランレングス情報、
13・・・横方向ランレングス情報。FIG. 1 is a block diagram showing an example of a circuit configuration of a printing device embodying the present invention, FIG. 2 is an explanatory diagram showing an example of a method of storing character information in a printing device embodying the present invention, and FIG. 3 is a flowchart showing the executed control procedure of the printing device. DESCRIPTION OF SYMBOLS 1... Host computer, 5... Character pattern generation part, 6... Character information part, 9... Printing part, 12... Shrinking direction run length information, 13... Horizontal direction run length information .
Claims (1)
よる第1のランレングス符号化情報と、横方向のランレ
ングスによる第2のランレングス符号化情報の両方を備
えたパターン記憶手段と、前記文字パターンの変倍要求
に対応して、前記第1および第2のランレングス符号化
情報の両方、またはその一方を用いてドットパターンに
展開する文字パターン発生手段と を具備したことを特徴とする文字出力装置。[Claims] 1) A pattern memory that includes both first run-length encoded information based on vertical run lengths and second run-length encoded information based on horizontal run lengths as character pattern information. and character pattern generating means for developing a dot pattern using both or one of the first and second run-length encoded information in response to a request for scaling the character pattern. A character output device featuring:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21487788A JPH0263761A (en) | 1988-08-31 | 1988-08-31 | character output device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21487788A JPH0263761A (en) | 1988-08-31 | 1988-08-31 | character output device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0263761A true JPH0263761A (en) | 1990-03-05 |
Family
ID=16663048
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21487788A Pending JPH0263761A (en) | 1988-08-31 | 1988-08-31 | character output device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0263761A (en) |
-
1988
- 1988-08-31 JP JP21487788A patent/JPH0263761A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2755308B2 (en) | Output method and device | |
| JPH0465258A (en) | Text information processing device | |
| JP3037854B2 (en) | Character generation method and device | |
| JPH0263761A (en) | character output device | |
| JP2935510B2 (en) | Output device and output method | |
| JPH0351894A (en) | Information processing device equipped with a character pattern generation function using vector fonts | |
| JP3118310B2 (en) | Print processing method of page printer | |
| JPH04293093A (en) | Image data output device | |
| JP3087414B2 (en) | Data output device | |
| JP3033152B2 (en) | Outline data processing device | |
| JP2881924B2 (en) | Data storage device | |
| JPH0323495A (en) | Character processor | |
| JPS63207656A (en) | Output device for font set of arbitrary size per character style | |
| JPH0439434B2 (en) | ||
| JPS61275789A (en) | Character pattern generator | |
| JPH064344B2 (en) | Printer | |
| JPH03112668A (en) | printing device | |
| JPS6273956A (en) | image output device | |
| JPH0467964A (en) | Page printer printing control method | |
| JPH0944140A (en) | Dot-pattern conversion method and device, and memory device | |
| KR930023871A (en) | How to print barcodes in the horizontal direction | |
| JPH03261573A (en) | Reduction printing system | |
| JPH01182061A (en) | Printing control device | |
| KR940020207A (en) | Method and device for improving storage area of combined fonts | |
| JPH0444780B2 (en) |