JPH04360196A - Data conversion device - Google Patents

Data conversion device

Info

Publication number
JPH04360196A
JPH04360196A JP3136619A JP13661991A JPH04360196A JP H04360196 A JPH04360196 A JP H04360196A JP 3136619 A JP3136619 A JP 3136619A JP 13661991 A JP13661991 A JP 13661991A JP H04360196 A JPH04360196 A JP H04360196A
Authority
JP
Japan
Prior art keywords
data
line
character
lines
width
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.)
Granted
Application number
JP3136619A
Other languages
Japanese (ja)
Other versions
JP3057811B2 (en
Inventor
Hitoshi Yoshida
均 吉田
Naoyuki Kawamoto
直幸 川本
Kazuma Aoki
一磨 青木
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP3136619A priority Critical patent/JP3057811B2/en
Publication of JPH04360196A publication Critical patent/JPH04360196A/en
Application granted granted Critical
Publication of JP3057811B2 publication Critical patent/JP3057811B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Exposure Or Original Feeding In Electrophotography (AREA)

Abstract

PURPOSE:To generate characters of high quality by arranging character constitution lines with good balance. CONSTITUTION:Line width is corrected by using outline data and line width setting data. When the number of picture elements between two adjacent constitution lines among constitution lines specified with line width constitution lines becomes zero, a character constitution line substituting means 34 corrects the line width, the outline data are corrected with the outline data and data stored in a line width correction data memory, and the outline data are converted into dot data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、文字・記号等の輪郭を
表わすアウトラインデータをドットデータに変換するデ
ータ変換装置に関するものであり、特に変換時の線幅補
正処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device for converting outline data representing the contours of characters, symbols, etc. into dot data, and particularly relates to line width correction processing during conversion.

【0002】0002

【従来の技術】文字・記号等のキャラクタを表わすデー
タをコンピュータを用いて処理をし、用紙に印字するか
またはディスプレイに表示する等、何等かの形で表示す
る場合、最小処理単位である画素毎にドットデータを作
成することが広く行なわれている。この際、表示される
キャラクタ全部について予めドットデータを作成し、メ
モリに記憶させると極めて容量の大きいメモリが必要と
なる。このため特公昭63ー41017号公報に記載さ
れているようにキャラクタをその輪郭を表わすアウトラ
インデータで記憶させ、印字または表示する際に、アウ
トラインデータをデータ変換手段を備えた装置によりド
ットデータに変換することが望ましい。
[Background Art] When processing data representing characters such as letters and symbols using a computer and displaying it in some form, such as printing it on paper or displaying it on a display, pixels are the minimum processing unit. It is widely practiced to create dot data for each time. At this time, if dot data for all characters to be displayed are created in advance and stored in memory, an extremely large capacity memory will be required. For this reason, as described in Japanese Patent Publication No. 63-41017, characters are stored as outline data representing their outlines, and when printed or displayed, the outline data is converted into dot data by a device equipped with data conversion means. It is desirable to do so.

【0003】このアウトラインデータをドットデータに
変換するには画素スクリーンが用いられる。画素スクリ
ーンは一平面内において互いに直交するX軸とY軸とに
それぞれ平行な複数の規定線により画素を規定するもの
であり、データ変換手段は、画素スクリーンにキャラク
タの輪郭線を重ね合わせた場合に、輪郭線内に一定の基
準以上の部分が含まれる画素に対応するドットデータを
キャラクタ構成線の存在を表わすデータに設定し、アウ
トラインデータを変換するのである。
A pixel screen is used to convert this outline data into dot data. A pixel screen defines pixels within one plane by a plurality of defining lines parallel to the X-axis and Y-axis, which are perpendicular to each other. Then, the dot data corresponding to the pixels whose outline exceeds a certain standard is set as data representing the presence of a character constituent line, and the outline data is converted.

【0004】しかし、上記変換の際、キャラクタが表示
される位置によって同じキャラクタ構成線であってもそ
の内側に一定基準以上含まれる画素の数,位置等が異な
り、そのキャラクタ構成線の幅、即ち、キャラクタ構成
線を幅方向において画定する2本の輪郭線内に幅方向に
おいて含まれる画素の数が常に同じになるとは限らない
However, during the above conversion, even if the character is the same line, the number, position, etc. of pixels included within a certain standard vary depending on the position where the character is displayed, and the width of the character line, that is, , the number of pixels included in the width direction within two contour lines defining the character composition line in the width direction is not always the same.

【0005】例えば、図14に示す漢字の「量」におい
て9本の横線H1,H2,H3,H4,H5,H6,H
7,H8,H9に注目すると、各横線H1〜H9の幅W
1〜W9が同じ幅となるようにアウトラインデータは作
成される。しかしながら、表示位置によっては図15に
示すようにH3は2ドット、それ以外は1ドットと各横
線の幅方向における画素数が異なる。即ち、予定された
幅が得られない場合が多々有る。この場合、キャラクタ
全体のバランスが崩れ、文字として見映えが悪くなる。 特に、線幅方向のドット数が少ない場合には顕著となり
、表示品質が低下するという問題が生じる。
For example, in the kanji "quantity" shown in FIG. 14, nine horizontal lines H1, H2, H3, H4, H5, H6, H
7, H8, and H9, the width W of each horizontal line H1 to H9
Outline data is created so that 1 to W9 have the same width. However, depending on the display position, the number of pixels in the width direction of each horizontal line differs, as shown in FIG. 15, with H3 being 2 dots and the others being 1 dot. That is, there are many cases where the expected width cannot be obtained. In this case, the balance of the entire character is lost and the appearance of the character becomes poor. This is particularly noticeable when the number of dots in the line width direction is small, resulting in a problem of deterioration in display quality.

【0006】この問題を解決するために、本出願人は先
に特願平1−52524号の願書に添付された明細書お
よび図面において、キャラクタ構成線の幅を予定された
幅に確保することができるデータ変換装置を提案してい
る。
[0006] In order to solve this problem, the present applicant previously set out to ensure that the width of the character composition line is the predetermined width in the specification and drawings attached to the application of Japanese Patent Application No. 1-52524. We are proposing a data conversion device that can do this.

【0007】このデータ変換装置においては、キャラク
タ構成線のうち幅が設定される線については、その線を
指定すると共に幅を示す線幅データが記憶されており、
この線幅データに基づいて、指定されたキャラクタ構成
線を幅方向において画定する2本の輪郭線の少なくとも
一方を移動させ、輪郭線内の画素数が設定された数とな
るようになっている。
[0007] In this data conversion device, for a line whose width is to be set among the character constituent lines, line width data specifying the line and indicating the width is stored.
Based on this line width data, at least one of the two contour lines that define the specified character composition line in the width direction is moved so that the number of pixels in the contour line becomes the set number. .

【0008】例えば、上記データ変換装置においては、
前記「量」の9本の横線H1〜H9は同じ幅となるよう
に線幅設定データを有するので、図16に示すように各
横線H1〜H9は1画素で全て同じドット数の線幅とな
る。
For example, in the above data conversion device,
Since the nine horizontal lines H1 to H9 of the above-mentioned "amount" have line width setting data so that they have the same width, each of the horizontal lines H1 to H9 has a line width of one pixel and the same number of dots, as shown in FIG. Become.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記デ
ータ変換装置では、各キャラクタ構成線の線幅を予定さ
れた幅に確保することができるが、隣接するキャラクタ
構成線のうちH2,H3はドットデータに変換した際に
接するために一本の太い線に見え、キャラクタ全体のバ
ランスを崩し見映えが悪くなる。
[Problem to be Solved by the Invention] However, with the above data conversion device, it is possible to ensure that the line width of each character constituent line is a predetermined width, but H2 and H3 of the adjacent character constituent lines are dot data. When converted to , it looks like a single thick line because they touch, which upsets the overall balance of the character and makes it look bad.

【0010】特に小さいポイントサイズでは、上記バラ
ンスの悪さが顕著になり文字の品質が悪くなるという問
題点がある。
[0010] Particularly when the point size is small, the above-mentioned imbalance becomes noticeable and the quality of the characters deteriorates.

【0011】本発明は、上述した問題点を解決するため
になされたものであり、アウトラインデータからドット
データに変換する際の線幅補正処理において、任意のサ
イズの文字で高品質の文字を生成することができる。即
ち、線幅補正処理時に線幅データで指定される2本の隣
接するキャラクタ構成線の間(以下、空間と称する。)
のドット数が0になる時には、2本のキャラクタ構成線
のうち、一方を他方のキャラクタ構成線に置換して線幅
補正を行なうことで、キャラクタ構成線をバランス良く
配置し、高品質の文字を生成することができるデータ変
換装置を提供することを目的としている。
The present invention has been made to solve the above-mentioned problems, and is capable of generating high-quality characters of any size in line width correction processing when converting outline data to dot data. can do. That is, the space between two adjacent character constituent lines specified by line width data during line width correction processing (hereinafter referred to as space).
When the number of dots becomes 0, one of the two character composition lines is replaced with the other character composition line and line width correction is performed to arrange the character composition lines in a well-balanced manner and create high-quality characters. The purpose of the present invention is to provide a data conversion device that can generate .

【0012】0012

【課題を解決するための手段】この目的を達成するため
に本発明のデータ変換装置は、図1に示すように、デー
タ変換手段1を備えたデータ変換装置において、キャラ
クタを構成する複数のキャラクタ構成線の少なくとも一
つを指定するとともにその構成線の幅を示す線幅データ
を記憶する線幅データ記憶手段4と、前記線幅データに
より指定されたキャラクタ構成線を前記幅の方向におい
て画定する2本の輪郭線内に含まれる画素のその幅方向
における数が前記線幅データに対応する数ではない場合
に、前記2本の輪郭線の少なくとも一方を前記画素の数
が前記線幅データに対応する数となる向き及び量で前記
画素スクリーンに対して相対移動させる輪郭線移動手段
2と、前記線幅データにより指定された隣接する2本の
キャラクタ構成線において、その空間のドット数が0と
なる場合に、一方の構成線を他方の構成線と同一の構成
線となるように構成線を置換するキャラクタ構成線置換
手段3とを備え、前記データ変換手段1を前記輪郭線移
動手段の移動により得られたアウトラインデータをドッ
トデータに変換するものとしたことを要旨とする。
[Means for Solving the Problem] In order to achieve this object, the data conversion device of the present invention, as shown in FIG. a line width data storage means 4 for specifying at least one of the constituent lines and storing line width data indicating the width of the constituent line; and defining a character constituent line specified by the line width data in the width direction. If the number of pixels included in the two contour lines in the width direction does not correspond to the line width data, at least one of the two contour lines is The outline moving means 2 moves the outline relative to the pixel screen in a direction and amount corresponding to the number, and the number of dots in the space is 0 in two adjacent character constituent lines specified by the line width data. character composition line replacement means 3 for replacing one composition line so that it becomes the same composition line as the other composition line; The gist is that outline data obtained by movement is converted into dot data.

【0013】[0013]

【作用】上記の構成を有する本発明のデータ変換装置は
、あるキャラクタのアウトラインデータをドットデータ
に変換する際、前記線幅データ記憶手段4より線幅処理
に必要な線幅データが読み出され、前記輪郭線移動手段
2によりキャラクタ構成線を確定する輪郭線の少なくと
も一方が読み出された線幅データに対応するように相対
移動される。しかしながら、この時2本の隣接するキャ
ラクタ構成線の空間のドット数が0となる時には前記キ
ャラクタ構成線置換手段2により2本の構成線の一方を
他方の構成線に置換する。このようにして得られたアウ
トラインデータが前記データ変換手段1にてドットデー
タに変換される。
[Operation] The data conversion device of the present invention having the above-mentioned configuration reads line width data necessary for line width processing from the line width data storage means 4 when converting outline data of a certain character into dot data. At least one of the contour lines defining the character constituent lines is relatively moved by the contour line moving means 2 so as to correspond to the read line width data. However, at this time, when the number of dots in the space between two adjacent character constituent lines becomes 0, the character constituent line replacing means 2 replaces one of the two constituent lines with the other constituent line. The outline data thus obtained is converted into dot data by the data conversion means 1.

【0014】[0014]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。尚、本実施例では、レーザプリンタ
においてアウトラインデータをドットデータに変換する
装置に本発明を適用した場合を例に取り説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment embodying the present invention will be described below with reference to the drawings. In this embodiment, a case will be described in which the present invention is applied to a device that converts outline data into dot data in a laser printer.

【0015】図2はレーザプリンタの制御回路のうち、
データ変換に関する部分を主として示す図である。この
制御回路の主体を成すマイクロコンピュータ部10は、
CPU12、キャラクタROM14、プログラムROM
16、テキストメモリ18、ワーキングメモリ20、ド
ットデータメモリ22、線幅修正データメモリ24を備
えている。これらCPU12等は、バス26により接続
されている。
FIG. 2 shows the control circuit of a laser printer.
FIG. 3 is a diagram mainly showing a portion related to data conversion. The microcomputer section 10 that forms the main body of this control circuit is
CPU12, character ROM14, program ROM
16, a text memory 18, a working memory 20, a dot data memory 22, and a line width correction data memory 24. These CPUs 12 and the like are connected by a bus 26.

【0016】更に、バス26には入力装置28および印
字部30が接続されている。入力装置28は必要なデー
タをマイクロコンピュータ部10に入力するものであり
、印字部30はマイクロコンピュータ部10からの指令
に基づいてレーザプリンタ方式により印字を行なう部分
である。尚、本レーザプリンタの解像度は300ドット
/インチとする。
Furthermore, an input device 28 and a printing section 30 are connected to the bus 26. The input device 28 is for inputting necessary data into the microcomputer section 10, and the printing section 30 is a section for printing based on commands from the microcomputer section 10 using a laser printer method. Note that the resolution of this laser printer is 300 dots/inch.

【0017】CPU12には、図3に概念的に示すよう
にデータ読み出し部31,輪郭線移動部32,線幅デー
タ修正部33、キャラクタ構成線置換部34、空間画素
数算出部35、アウトラインデータをドットデータに変
換するデータ変換部36等を備えたものとして機能する
As conceptually shown in FIG. 3, the CPU 12 includes a data reading section 31, an outline moving section 32, a line width data correcting section 33, a character composition line replacing section 34, a spatial pixel number calculating section 35, and an outline data It functions as equipped with a data conversion section 36 etc. that converts the data into dot data.

【0018】テキストメモリ18は、入力装置28から
入力されるコードデータから成るキャラクタデータや印
字サイズを指定するデータ等を記憶するものであり、ワ
ーキングメモリ20は、プログラム実行時に必要なデー
タを一時的に記憶するものである。また、線幅修正デー
タメモリ24には線幅データ修正部33により求められ
る線幅の修正に関するデータが記憶され、ドットデータ
メモリ22にはデータ変換部36の変換により得られる
ドットデータが記憶される。
The text memory 18 stores character data consisting of code data input from the input device 28, data specifying print size, etc., and the working memory 20 temporarily stores data necessary for program execution. It is something to remember. Further, the line width correction data memory 24 stores data related to line width correction obtained by the line width data correction section 33, and the dot data memory 22 stores dot data obtained by conversion by the data conversion section 36. .

【0019】キャラクタROM14には、アルファベッ
ト,漢字等の文字や記号等のキャラクタのアウトライン
データが記憶されると共に、線の幅を設定値に維持すべ
きキャラクタについては線幅設定データが記憶されてい
る。
The character ROM 14 stores outline data of characters such as letters and symbols such as alphabets and kanji, and also stores line width setting data for characters whose line widths should be maintained at set values. .

【0020】キャラクタは漢字の「量」を例にして図4
に示すように、少なくとも1本のキャラクタ構成線44
から成り、各キャラクタ構成線44の幅方向の画定は2
本の輪郭線46により行なわれ、長さ方向の画定もまた
2本の輪郭線46により行なわれ、これら輪郭線46が
集まってキャラクタの輪郭を構成する。輪郭線46の集
合は閉ループを形成し、図14に示すように「量」はL
1〜L9の9個の閉ループを含む。アウトラインデータ
は、1つのループ毎にその閉ループを画定するのに必要
な複数の点の座標を表わすデータ郡が記憶されて成る。
[0020] The character is shown in Figure 4 using the kanji ``quantity'' as an example.
As shown in FIG.
The definition of each character composition line 44 in the width direction is 2.
This is done by an outline 46 of the book, and the longitudinal definition is also done by two outlines 46, which together constitute the outline of the character. The set of contour lines 46 forms a closed loop, and as shown in FIG.
It includes nine closed loops numbered 1 to L9. The outline data is made up of stored data groups representing the coordinates of a plurality of points necessary to define a closed loop for each loop.

【0021】キャラクタの輪郭を決定する座標面は、図
4に示すように、縦(Y軸),横(X軸)がそれぞれ1
000*1000の大きさとされており、アルファベッ
トの大文字はY軸の座標値の200から1000までの
間で描かれ、小文字は0から200の間も使って描かれ
る。この座標面においては、例えば漢字の「量」のよう
に複数の直線により構成されるキャラクタについては、
L1〜L9の各ループ毎にその輪郭の角毎の座標郡デー
タによってアウトラインデータが構成される。また、ア
ルファベットの「D」のように曲線を含むものについて
は、閉ループ毎にその曲線を画定するのに必要な複数の
点の座標データ郡を含むデータ郡によりアウトラインデ
ータが構成される。
As shown in FIG. 4, the coordinate plane that determines the outline of the character is 1 in both the vertical (Y axis) and the horizontal (X axis).
The size is 000*1000, and uppercase letters of the alphabet are drawn using Y-axis coordinate values between 200 and 1000, and lowercase letters are drawn using coordinates between 0 and 200. In this coordinate plane, for example, a character composed of multiple straight lines, such as the kanji ``Quantity'', is
Outline data is composed of coordinate group data for each corner of the outline for each loop of L1 to L9. Furthermore, for items that include a curve, such as the letter "D", the outline data is constituted by a data set including coordinate data sets of a plurality of points necessary to define the curve for each closed loop.

【0022】線幅設定データは、線幅を所定値に維持す
べきキャラクタ構成線44を指定すると共に、その線の
幅を規定する。本実施例においては、図4の座標面のY
軸に平行な縦のキャラクタ構成線44(以下、縦線と称
する。)及びX軸に平行な横のキャラクタ構成線44(
以下、横線と称する。)を含み、図5に示すようにキャ
ラクタ構成線を指定するアドレス毎にキャラクタ構成線
44の幅方向,座標値及びその幅が記憶されている。
The line width setting data specifies the character constituent line 44 whose line width is to be maintained at a predetermined value, and also defines the width of the line. In this example, Y on the coordinate plane in FIG.
A vertical character composition line 44 parallel to the axis (hereinafter referred to as a vertical line) and a horizontal character composition line 44 parallel to the X axis (
Hereinafter, this will be referred to as a horizontal line. ), and as shown in FIG. 5, the width direction, coordinate value, and width of the character composition line 44 are stored for each address specifying the character composition line.

【0023】ここで、幅の方向とは、横線の場合にはY
軸方向であり、縦線の場合にはX軸方向となる。また、
座標値は、横線の場合はY座標値であり、縦線の場合は
X座標値であって、キャラクタ構成線44を幅方向にお
いて画定する2本の輪郭線46の幅方向における座標値
のうち、小さい方の値である。更に、幅とは、上記2本
の輪郭線46の幅方向における距離である。アドレスは
線幅設定データの「座標値」が記憶されたメモリのアド
レスであり、このアドレスの記憶によりキャラクタ構成
線44を指定することができる。図4に示す漢字「量」
には9本の横線が含まれており、実際にはそれぞれ異な
るアドレスにより区別されるが、ここではアドレスに代
えて符号H1〜H9を付して区別することとする。尚、
以下、線幅設定データを構成する座標値を設定座標値Y
i、幅を設定幅Wiとする。尚、添字iは符号H1〜H
9の番号に対応している。
[0023] Here, the width direction means Y in the case of a horizontal line.
This is the axial direction, and in the case of a vertical line, it is the X-axis direction. Also,
The coordinate value is a Y coordinate value in the case of a horizontal line, an X coordinate value in the case of a vertical line, and is one of the coordinate values in the width direction of the two contour lines 46 that define the character composition line 44 in the width direction. , is the smaller value. Further, the width is the distance between the two contour lines 46 in the width direction. The address is a memory address in which the "coordinate values" of the line width setting data are stored, and by storing this address, the character constituent line 44 can be specified. Kanji “quantity” shown in Figure 4
contains nine horizontal lines, and in reality they are distinguished by different addresses, but here they are distinguished by reference numerals H1 to H9 instead of addresses. still,
Below, the coordinate values that make up the line width setting data are set coordinate values Y
i, width is set width Wi. Note that the subscript i is the code H1 to H
It corresponds to the number 9.

【0024】本レーザープリンタにおいてアウトライン
データのドットデータへの変換は、図6に示す画素スク
リーン52を用いて行われる。画素スクリーン52はア
ウトラインデータをドットデータに変換するための計算
上のものであるが、ここでは理解を容易にするために実
在するものとして図示することにする。
In this laser printer, outline data is converted into dot data using a pixel screen 52 shown in FIG. Although the pixel screen 52 is a computational device for converting outline data into dot data, it will be illustrated here as an actual entity for ease of understanding.

【0025】ここにおいて画素とは、レーザにより印字
が行なわれる際の最小印字単位であり、画素スクリーン
52は、一平面内において互いに直交し、X軸方向とY
軸方向とに各々平行であって、等間隔に設けられた複数
の画素区間線pにより画素を規定している。
Here, a pixel is the minimum printing unit when printing is performed by laser, and the pixel screens 52 are orthogonal to each other in one plane, and are arranged in the X-axis direction and the Y-axis direction.
Pixels are defined by a plurality of pixel section lines p that are parallel to the axial direction and provided at equal intervals.

【0026】本実施例において画素は正方形とされてお
り、画素毎に印字を行なうか否かのドットデータが作成
される。又、各画素の中心点(以下、画素中心点と称す
。)を通り、X軸方向とY軸方向とに各々平行なx方向
規定線xとy方向規定線yとが設定されており、各画素
の位置は画素中心の座標で表される。尚、画素は矩形そ
の他の形状とすることも可能である。
In this embodiment, the pixels are square, and dot data indicating whether or not to print is created for each pixel. Furthermore, an x-direction defining line x and a y-direction defining line y passing through the center point of each pixel (hereinafter referred to as pixel center point) and parallel to the X-axis direction and the Y-axis direction are set, The position of each pixel is expressed by the coordinates of the center of the pixel. Note that the pixels can also be rectangular or other shapes.

【0027】画素スクリーン52は印字用紙の印字面に
対応して想定されるものであるが、図6には理解を容易
にするために1キャラクタ分を取り出して示してある。 従って、画素スクリーン52全体においてx方向規定線
x,y方向規定線yに実際に付される目盛り値は、図6
においてx方向規定線x,y方向規定線yに付されてい
る目盛り値に適宣の整数を各々加えた値となるが、ここ
では1キャラクタ分についてのみ考えることにする。
Although the pixel screen 52 is assumed to correspond to the printing surface of printing paper, one character is shown in FIG. 6 for ease of understanding. Therefore, the scale values actually attached to the x direction defining line x and the y direction defining line y on the entire pixel screen 52 are as shown in FIG.
In this case, the value is obtained by adding an appropriate integer to the scale value attached to the x-direction defining line x and the y-directing defining line y, but only one character will be considered here.

【0028】アウトラインデータのドットデータへの変
換は、キャラクタの輪郭を画素スクリーン52に重ね合
わせたと想定して行なわれ、本実施例においてはキャラ
クタの輪郭内の各画素にドットが形成されるようになっ
ており、その画素のビットデータが1とされる。輪郭内
には1個の画素の全部または一部が含まれることとなる
が、本実施例においては輪郭内に画素中心点が含まれる
画素のドットデータが1に設定される。
The conversion of outline data into dot data is performed on the assumption that the outline of the character is superimposed on the pixel screen 52, and in this embodiment, a dot is formed at each pixel within the outline of the character. , and the bit data of that pixel is set to 1. All or part of one pixel is included within the outline, but in this embodiment, the dot data of a pixel whose center point is included within the outline is set to 1.

【0029】本レーザープリンタは、任意のサイズで印
字することができ、印字サイズに合わせて前記1000
*1000の座標面で作られた輪郭の座標値が換算され
る。1画素の1辺の長さを1で表わす座標面を画素スク
リーン52上に想定して座標値の換算が行なわれるので
あり、あるポイントのキャラクタがC*C画素で表わさ
れるとすれば、1000*1000の座標面上における
輪郭を決定する各点の座標値にC/1000を掛ければ
上記画素スクリーン52上に想定した座標面上の座標値
が得られるのである。
[0029] This laser printer can print in any size, and the above-mentioned 1000
*The coordinate values of the contour created on the 1000 coordinate plane are converted. Coordinate values are converted by assuming a coordinate plane on the pixel screen 52 in which the length of one side of one pixel is expressed as 1. If a character at a certain point is expressed by C*C pixels, then 1000 By multiplying the coordinate values of each point determining the contour on the *1000 coordinate plane by C/1000, the coordinate values on the coordinate plane assumed on the pixel screen 52 can be obtained.

【0030】尚、キャラクタの輪郭を画素スクリーン5
2に重ね合わせる際には、印字位置データに基づいて各
キャラクタの基準点の画素スクリーン52上における座
標値の決定も行なわれ、得られた基準点の座標値と上記
換算された座標値とを用いて重ね合わせが行なわれる。
Note that the outline of the character is drawn on the pixel screen 5.
2, the coordinate values of the reference point of each character on the pixel screen 52 are also determined based on the print position data, and the coordinate values of the obtained reference point and the converted coordinate values are combined. Superposition is performed using

【0031】このようにキャラクタの輪郭の画素スクリ
ーン52上における位置はキャラクタの大きさの他、印
字位置にも影響されるため、同じキャラクタを構成する
キャラクタ構成線44でも輪郭線内に幅方向において含
まれる画素数が異なり、幅に違いが生ずることがある。
As described above, the position of the outline of a character on the pixel screen 52 is affected not only by the size of the character but also by the printing position. The number of pixels included may vary, resulting in a difference in width.

【0032】例えば、1画素内に形成されるドットを円
で表わせば、図7(a)に示すように幅方向の画素数が
1画素となるようにアウトラインがデザインされたキャ
ラクタ構成線は、印字位置によって図7(b)に示すよ
うに幅が2画素となることもある。この画素の減少は印
字サイズが大きい場合にはそれほど目立たないが、印字
サイズが小さい場合には顕著となる。尚、図中×印は画
素中心点を示す。
For example, if a dot formed within one pixel is represented by a circle, a character composition line whose outline is designed so that the number of pixels in the width direction is one pixel as shown in FIG. 7(a) is Depending on the printing position, the width may be two pixels as shown in FIG. 7(b). This reduction in pixels is not so noticeable when the print size is large, but becomes noticeable when the print size is small. Note that the x mark in the figure indicates the center point of the pixel.

【0033】それに対し、本レーザプリンタにおいては
印字サイズが12ポイント以下の場合において、実際に
印字されるキャラクタ構成線の線幅が設定幅と異なる場
合にアウトラインデータを修正してドットデータを設定
し、キャラクタ構成線を設定された幅で印字し得るよう
にされており、プログラムROM16には、図8、図9
、図10にフローチャートで示す線幅修正機能を備えた
ドットデータ変換用のプログラムを始めとして、印字に
必要な種々のプログラムが記憶されている。
On the other hand, in this laser printer, when the print size is 12 points or less, if the line width of the character constituent line actually printed differs from the set width, the outline data is corrected and dot data is set. , character composition lines can be printed with a set width, and the program ROM 16 contains the characters shown in FIGS. 8 and 9.
Various programs necessary for printing are stored, including a dot data conversion program with a line width correction function shown in the flowchart of FIG.

【0034】以下、漢字の「量」を3.84ポイントで
印字する場合を例に取り、特に横線(H1〜H9)の線
幅補正に注目してアウトラインデータのドットデータへ
の変換について説明する。
The conversion of outline data to dot data will be explained below, taking as an example the case where the "quantity" of a kanji character is printed at 3.84 points, and paying particular attention to line width correction of horizontal lines (H1 to H9). .

【0035】尚、印字については本発明を理解する上で
不可欠ではないため詳細な説明は省略するが、本レーザ
プリンタにおいては印字が1頁毎に行なわれる。テキス
トメモリ18に記憶された文書データのうち1ページ分
ずつデータが読み出され、そのデータに対応する多数の
キャラクタのアウトラインデータがそれぞれドットデー
タに変換されて印字が行なわれるのである。
It should be noted that printing is not essential to understanding the present invention, so a detailed explanation will be omitted, but in this laser printer, printing is performed for each page. One page of document data stored in the text memory 18 is read out, and the outline data of a large number of characters corresponding to the data is converted into dot data and printed.

【0036】入力装置28よりキャラクタコード等が入
力されると、それらのコードは順次テキストメモリ18
に格納され、テキストメモリ18に所定量の前記コード
が格納されると、図8、9、10に示すフローチャート
がCPU12により実行される。
When character codes etc. are input from the input device 28, those codes are sequentially stored in the text memory 18.
When a predetermined amount of the code is stored in the text memory 18, the flowcharts shown in FIGS. 8, 9, and 10 are executed by the CPU 12.

【0037】まず、ステップS1(以下、S1と略記す
る。他のステップについても同じ。)において、テキス
トメモリ18から印字サイズを指定するデータ、キャラ
クタコードが読み出され、このキャラクタコードにて指
定されたキャラクタのアウトラインデータがキャラクタ
ROM14から読み出される。読み出されたアウトライ
ンデータの座標値は、1000*1000の座標面上に
おいて設定された値であり、印字サイズ及び印字位置デ
ータに基づいて画素スクリーン52上における座標値に
換算されてワーキングメモリ20に格納される。換算は
、1画素の1辺の1000*1000の座標における値
(印字サイズが3.84ポイントの場合は62.5)で
除することにより換算される。
First, in step S1 (hereinafter abbreviated as S1; the same applies to other steps), data specifying the print size and a character code are read from the text memory 18, and the character code specified by this character code is read out from the text memory 18. The outline data of the selected character is read from the character ROM 14. The coordinate values of the read outline data are values set on the 1000*1000 coordinate plane, and are converted into coordinate values on the pixel screen 52 based on the print size and print position data and stored in the working memory 20. Stored. The conversion is performed by dividing by the value at the 1000*1000 coordinates of one side of one pixel (62.5 if the print size is 3.84 points).

【0038】S2では前記キャラクタの線幅設定データ
がキャラクタROM14から読み出され、S1のアウト
ラインデータと同様の換算により、線幅修正に必要な情
報を線幅修正データメモリ24に格納する。格納するデ
ータは、図11に示すように最初に線幅設定データ数N
、その後に換算した設定座標値Ai(以下、第1設定座
標値と呼ぶ。)、設定幅Wiを換算した幅値Bi、構成
線44を画定する大きい方の値Ci(以下、第2設定座
標値と呼ぶ。)、ダミーデータDiが線幅設定データ数
Nだけ格納される。本実施例の「量」の横線においては
、線幅設定データ数N=9となり、設定幅Wi=60で
全て同じ幅データでデザインされており換算により求め
られる幅値Biは全て0.96となる。第2設定座標値
Ciは第1設定座標値Aiと幅値Biとの和、即ち、C
i=Ai+Biから計算される。構成線H1に着目する
と、第1設定座標値A1=0.0、幅値B1=0.96
であるから、第2設定座標値C1=0.96となる。 また、後述のS8において、幅値Biには第1設定座標
値の修正値Ei(以下、第1修正値と称する。)が格納
され、ダミーデータDiには第2設定座標値の修正値F
i(以下、第2修正値と称する。)が格納される。
In S2, the line width setting data for the character is read from the character ROM 14, and information necessary for line width correction is stored in the line width correction data memory 24 by the same conversion as the outline data in S1. The data to be stored is first the number N of line width setting data as shown in FIG.
, the set coordinate value Ai (hereinafter referred to as the first set coordinate value) converted after that, the width value Bi that was converted from the set width Wi, and the larger value Ci that defines the constituent line 44 (hereinafter referred to as the second set coordinate value). (referred to as a value), and dummy data Di corresponding to the number N of line width setting data are stored. In the horizontal line of "Amount" in this example, the number of line width setting data N = 9, the setting width Wi = 60, all of them are designed with the same width data, and the width value Bi obtained by conversion is all 0.96. Become. The second set coordinate value Ci is the sum of the first set coordinate value Ai and the width value Bi, that is, C
It is calculated from i=Ai+Bi. Focusing on the constituent line H1, the first set coordinate value A1 = 0.0, the width value B1 = 0.96
Therefore, the second set coordinate value C1=0.96. Further, in S8 described later, a correction value Ei (hereinafter referred to as a first correction value) of the first set coordinate value is stored in the width value Bi, and a correction value F of the second set coordinate value is stored in the dummy data Di.
i (hereinafter referred to as a second modified value) is stored.

【0039】S3では線幅設定データ数Nが「0」か否
かが判定され、「0」であれば、線幅補正するデータが
無いのでS4へ処理が移り、「0」でなければ、S5へ
処理が移る。本実施例では線幅設定データ数N=9なの
で判定はNOとなりS5へ処理は移る。
In S3, it is determined whether the number N of line width setting data is "0" or not. If it is "0", there is no data for line width correction, so the process moves to S4; The process moves to S5. In this embodiment, since the number of line width setting data N=9, the determination is NO and the process moves to S5.

【0040】S4では印字サイズが12ポイント以下か
どうかを判定する。12ポイントより大きな印字サイズ
では線幅処理の必要が無いので、S5へ処理が移る。1
2ポイント以下の場合は、線幅処理が必要とされ、S6
乃至S16の処理が行なわれる。本実施例では印字サイ
ズは3.84ポイントなのでS4での判定はYESとな
り、S6乃至S16の処理が行なわれる。
In S4, it is determined whether the print size is 12 points or less. Since there is no need for line width processing for print sizes larger than 12 points, the process moves to S5. 1
If it is 2 points or less, line width processing is required and S6
The processes from S16 to S16 are performed. In this embodiment, the print size is 3.84 points, so the determination in S4 is YES, and the processes in S6 to S16 are performed.

【0041】S5ではアウトラインデータをドットデー
タに変換される。
In S5, the outline data is converted into dot data.

【0042】S6では線幅修正データメモリ24に格納
されたデータが第1設定座標値Aiの小さい順に並べ換
えられる。
In S6, the data stored in the line width correction data memory 24 is rearranged in descending order of the first set coordinate value Ai.

【0043】S7では幅値Biの小数第一位以下を四捨
五入して整数値にする。この整数値は各幅値のドット数
を画定する値である。この実施例において、「量」の各
横線の幅値BiはS2により0.96であるため小数第
一以下を四捨五入することにより全ての幅値Biは1と
なる。
In S7, the width value Bi is rounded to the first decimal place to obtain an integer value. This integer value defines the number of dots for each width value. In this example, since the width value Bi of each horizontal line of "amount" is 0.96 according to S2, all width values Bi become 1 by rounding off to the first decimal place.

【0044】S8では線幅修正を行なう。線幅修正は第
1設定座標値Ai、第2設定座標値Ciのいずれか一方
を動かすことで設定幅に対応するドット数となるように
する。本実施例では第2設定値座標値Ciを修正するこ
とで線幅修正を行なう。従って、第1修正値Eiは第1
設定座標値Aiの小数第一位を四捨五入すればよく,E
i=round(Ai)となる。第2修正値Fiは、第
1修正値EiにS7により整数化された幅値Biを加え
ることにより求められる。即ち、Fi=Ei+Biとな
る。構成線H1に着目すると、F1=0+1=1となる
。尚、round(n)は引き数nの小数第1位以下を
四捨五入する関数とする。
In S8, the line width is corrected. The line width is corrected by moving either the first set coordinate value Ai or the second set coordinate value Ci so that the number of dots corresponds to the set width. In this embodiment, the line width is corrected by correcting the second set value coordinate value Ci. Therefore, the first correction value Ei is the first correction value Ei.
It is sufficient to round off the set coordinate value Ai to the first decimal place, and E
i=round(Ai). The second correction value Fi is obtained by adding the width value Bi converted into an integer in S7 to the first correction value Ei. That is, Fi=Ei+Bi. Focusing on the configuration line H1, F1=0+1=1. Note that round(n) is a function that rounds off the argument n to the first decimal place.

【0045】ここで仮にS8を実施した時点でS13に
処理を移し、輪郭線を移動させた後でS5のアウトライ
ンデータをドットデータに変換するとした場合、線幅の
画素数は全て1ドットで揃うのだが空間の画素数が0に
なる時のことが考慮されていないので、図16に示すよ
うに構成線H2とH3が接して一本の太い線に見え、見
映えの悪い文字となる。
[0045] If the process is moved to S13 after S8 is executed and the outline data of S5 is converted to dot data after moving the outline, the number of pixels of the line width will all be 1 dot. However, since the case where the number of pixels in the space becomes 0 is not taken into account, the constituent lines H2 and H3 touch each other and appear as one thick line as shown in FIG. 16, resulting in an unattractive character.

【0046】S9乃至S12において、空間の画素数が
0となる時2本の構成線の一方を他方に置換する。その
処理について説明する。
In S9 to S12, when the number of pixels in the space becomes 0, one of the two constituent lines is replaced with the other. The processing will be explained.

【0047】S9においては空間の数(N−1)回、S
10が処理されたかを判定する。YESであればS13
に移る。本実施例においては空間数は8であり、S10
乃至S12が8回処理された時S9における判定はYE
SとなりS13へ移る。
[0047] In S9, the number of spaces (N-1) times, S
10 has been processed. If YES, S13
Move to. In this example, the number of spaces is 8, and S10
When S12 has been processed 8 times, the determination in S9 is YE.
The result is S and the process moves to S13.

【0048】S10では空間の画素数Gを求める。G=
Bi+1−Diにより、2本の構成線間の空間のドット
数が求められる。構成線H1、H2の間の空間の画素数
GはB2−D1で求められる。
In S10, the number of pixels G in the space is determined. G =
Bi+1-Di determines the number of dots in the space between the two constituent lines. The number of pixels G in the space between the constituent lines H1 and H2 is determined by B2-D1.

【0049】S11では空間画素数Gが0であるか否か
を判定する。0であればS12で構成線の置換を行なう
。0でなければS9を行なう。本実施例では構成線H2
とH3の空間の画素数G=0となり、その時にS12へ
処理が移る。それ以外はG=1となり、S9へ処理が移
る。
In S11, it is determined whether the number of spatial pixels G is 0 or not. If it is 0, the constituent lines are replaced in S12. If it is not 0, perform S9. In this example, the configuration line H2
Then, the number of pixels in the space of H3 becomes G=0, and at that time, the process moves to S12. Otherwise, G=1, and the process moves to S9.

【0050】S12では構成線の置換を行なう。但し、
S12では実際にキャラクタ構成線が置換されるのでは
なく、構成線置換用の修正データを作るだけである。実
際にキャラクタ構成線が置換されるのはS13乃至S1
6による。つまり、S16における座標値の修正でアウ
トラインデータが修正され、S13乃至S16の処理が
終了した時点では図13に示すアウトラインデータが作
成される。本実施例では2本の構成線のうち設定座標値
の小さい方を設定座標値の大きい方の構成線に置換する
とする。従って、構成線H2は構成線H3に置換される
のであるから、構成線H2の第1修正値E2はE3とな
り、構成線H2の第2修正値F2はF3となる。S9乃
至S12により線幅修正データメモリ24には図12に
示すデータが格納される。
In S12, component lines are replaced. however,
In S12, the character constituent lines are not actually replaced, but only correction data for constituent line replacement is created. Character composition lines are actually replaced from S13 to S1
According to 6. In other words, the outline data is corrected by correcting the coordinate values in S16, and the outline data shown in FIG. 13 is created when the processing in S13 to S16 is completed. In this embodiment, it is assumed that of the two constituent lines, the one with the smaller set coordinate value is replaced with the constituent line with the larger set coordinate value. Therefore, since the component line H2 is replaced by the component line H3, the first modified value E2 of the component line H2 becomes E3, and the second modified value F2 of the component line H2 becomes F3. The data shown in FIG. 12 is stored in the line width correction data memory 24 through S9 to S12.

【0051】S13では、ワーキングメモリ20よりS
1で換算されたアウトラインデータを順次読み出す。
[0051] In S13, S
The outline data converted in step 1 is sequentially read out.

【0052】S14では、キャラクタデータの終了か否
かを判定し、終了であればS5へ処理が移る。
In S14, it is determined whether or not the character data has ended, and if so, the process moves to S5.

【0053】S15では、S13より読み出されたアウ
トラインデータの座標値(X,Y)と線幅修正データメ
モリ24に記憶されている線幅修正データとを比較する
。本実施例では、漢字の「量」の横線の修正について注
目しているため、Y座標が線幅修正データの第1設定座
標値Ai、第2設定座標値Ciと一致するかを調べる。 一致すれば、その座標点は線幅修正を必要とする点であ
り、S16を実行する。一致しなければ線幅修正を必要
とせず、S13へ処理を移す。即ち、S13において、
P1(X1,Y1)のデータを読み出した時、Y座標値
Y1は図12のA3と一致し、S15の判定はYESと
なりS16を実行する。
In S15, the coordinate values (X, Y) of the outline data read out in S13 are compared with the line width correction data stored in the line width correction data memory 24. In this embodiment, since the focus is on the correction of the horizontal line of the kanji "quantity", it is checked whether the Y coordinate matches the first set coordinate value Ai and the second set coordinate value Ci of the line width correction data. If they match, the coordinate point is a point that requires line width correction, and S16 is executed. If they do not match, line width correction is not necessary and the process moves to S13. That is, in S13,
When the data of P1 (X1, Y1) is read, the Y coordinate value Y1 matches A3 in FIG. 12, the determination in S15 is YES, and S16 is executed.

【0054】S16ではS15で座標値の修正が必要で
あると判定されたことにより修正値を読み出し、S13
で読み出されたワーキングメモリの座標値を修正値に修
正する。例えば、S15で第1設定座標値Aiと一致す
ると判断されたY座標は、第1修正値Eiが読み出され
てEiに修正され、第2設定座標値Ciと一致すると判
断されたY座標は、第2修正値Fiが読み出されてFi
に修正される。即ち、S13で読み出されたP1(X1
,Y1)は、S16でA3と一致するからその修正値E
3に修正されるのでP1(X1,E3)と修正されワー
キングメモリ20に格納される。
In S16, since it is determined in S15 that the coordinate values need to be corrected, the corrected values are read out, and the process proceeds to S13.
Correct the coordinate values of the working memory read in to the corrected values. For example, the Y coordinate determined to match the first set coordinate value Ai in S15 is corrected to Ei by reading the first correction value Ei, and the Y coordinate determined to match the second set coordinate value Ci is , the second correction value Fi is read out and Fi
will be corrected. That is, P1(X1
, Y1) matches A3 in S16, so its modified value E
3, so it is corrected to P1 (X1, E3) and stored in the working memory 20.

【0055】以上のようにして、線幅修正データに従っ
てアウトラインデータの移動処理が行なわれるが、移動
処理が行なわれる前は、図13においてP1−>P2−
>P3−>P4−>P5−>P6−>P7−>P8−>
P9−>P10−>P11−>P12−>P13−>P
14−>P15−>P16−>P17−>P18 で表
わされる形状であり、移動処理が終了した時点では、P
1−>P2−>P3’−>P4’−>P5’−>P6’
−>P7−>P8−>P9−>P10−>P11−>P
12−>P13’−>P14’−>P15’−>P16
’−>P17−>P18 で表わされる形状となる。ア
ウトラインデータの移動処理が終了すると、S14でキ
ャラクタデータの終了と判断され、S5において修正座
標値により与えられるアウトラインデータがドットデー
タに変換される。
As described above, the outline data is moved according to the line width correction data, but before the movement process is performed, P1->P2-
>P3->P4->P5->P6->P7->P8->
P9->P10->P11->P12->P13->P
14->P15->P16->P17->P18, and when the movement process is completed, P
1->P2->P3'->P4'->P5'->P6'
->P7->P8->P9->P10->P11->P
12->P13'->P14'->P15'->P16
The shape is expressed as '->P17->P18. When the process of moving the outline data is completed, it is determined in S14 that the character data has ended, and the outline data given by the corrected coordinate values is converted into dot data in S5.

【0056】本実施例においては、横線H1〜H9に特
に注目して詳しく説明したが縦線についても同様である
In this embodiment, the horizontal lines H1 to H9 have been specifically explained in detail, but the same applies to the vertical lines.

【0057】このように本実施例のレーザープリンタに
おいては、隣接するキャラクタ構成線の間の空間が0と
なった時にいずれか一方の構成線を他方の構成線に置換
して線幅修正を行なうことからキャラクタを見映良く印
字することが出来る。
In this way, in the laser printer of this embodiment, when the space between adjacent character constituent lines becomes 0, one of the constituent lines is replaced with the other constituent line to correct the line width. Therefore, characters can be printed with good appearance.

【0058】以上の説明から明らかなように、本実施例
においては、プログラムROM16のS5を記憶する部
分及びCPU12のS5を実行する部分、即ちデータ変
換部40がデータ変換手段1を構成し、キャラクタRO
M14が線幅データ記憶手段4を構成し、プログラムR
OM16のS6〜S16を記憶する部分及びCPU12
のそれらを実行する部分、即ち輪郭線移動部34、線幅
データ修正部35が輪郭線移動手段3を構成し、プログ
ラムROM16のS6〜S16を記憶する部分及びCP
U12のそれらを実行する部分、即ちキャラクタ構成線
置換部34、空間画素数算出部35がキャラクタ構成線
移動手段2を構成しているのである。
As is clear from the above description, in this embodiment, the portion of the program ROM 16 that stores S5 and the portion of the CPU 12 that executes S5, that is, the data conversion section 40 constitute the data conversion means 1, and the R.O.
M14 constitutes the line width data storage means 4, and the program R
Part that stores S6 to S16 of OM16 and CPU 12
The parts that execute these, that is, the outline moving unit 34 and the line width data correcting unit 35 constitute the outline moving means 3, and the part that stores S6 to S16 of the program ROM 16 and the CP
The parts of U12 that execute these operations, that is, the character composition line replacement section 34 and the spatial pixel number calculation section 35 constitute the character composition line moving means 2.

【0059】本発明の実施例のS8の線幅修正において
は構成線44を画定する大きい方の値(第2設定座標値
)を動かすことで線幅修正を行なったが、第1設定座標
値を動かすことで線幅修正を行なってもよいし、或は、
第1、第2設定座標値のうち線幅修正の移動量が少ない
方を動かすことによって線幅修正を行なうこともできる
In the line width correction in S8 of the embodiment of the present invention, the line width was corrected by moving the larger value (second set coordinate value) that defines the component line 44; You can correct the line width by moving, or
The line width can also be corrected by moving the one of the first and second set coordinate values that has a smaller amount of movement for line width correction.

【0060】また、本発明の実施例のS12の構成線の
置換処理においては、第1設定値が小さい方の構成線を
大きい方の構成線に置換したが、大きい方の構成線を小
さい方の構成線に置換することも出来る。
In addition, in the component line replacement processing in S12 of the embodiment of the present invention, the component line with the smaller first setting value is replaced with the larger component line, but the larger component line is replaced with the smaller component line. It is also possible to replace it with the constituent lines of

【0061】本発明は、レーザプリンタ以外のプリンタ
にも適用し得ることは勿論、プリンタ以外にも文字・記
号等のキャラクタのアウトラインデータをドットデータ
に変換する必要のある装置に一般的に本発明を適用する
ことができる。
The present invention is of course applicable to printers other than laser printers, and is generally applicable to devices other than printers that need to convert outline data of characters such as letters and symbols into dot data. can be applied.

【0062】その他、いちいち例示することはしないが
、当業者の知識に基づいて種々の変形、改良を施した態
様で本発明を実施することができる。
[0062] In addition, the present invention can be practiced with various modifications and improvements based on the knowledge of those skilled in the art, although no specific examples will be given.

【0063】[0063]

【発明の効果】以上説明したことから明かなように、本
発明のデータ変換装置では、線幅修正を行なう際、隣接
する構成線間の空間の画素数が0となった時、一方の構
成線を他方の構成線に置換することで線幅修正を行い、
ドットデータに変換することにより、見映よい高品質な
ドットデータが得られる。
As is clear from the above explanation, in the data conversion device of the present invention, when the number of pixels in the space between adjacent component lines becomes 0 when performing line width correction, one component Correct the line width by replacing the line with the other component line,
By converting to dot data, it is possible to obtain high-quality dot data that looks good.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の構成を概念的に示す図である。FIG. 1 is a diagram conceptually showing the configuration of the present invention.

【図2】本発明の一実施例であるデータ変換装置を備え
たレーザプリンタの制御回路を示すブロック図である。
FIG. 2 is a block diagram showing a control circuit of a laser printer equipped with a data conversion device according to an embodiment of the present invention.

【図3】上記制御回路の構成要素であるCPUを概念的
に示す図である。
FIG. 3 is a diagram conceptually showing a CPU that is a component of the control circuit.

【図4】本発明により変換される漢字「量」を示す図で
ある。
FIG. 4 is a diagram showing the kanji "quantity" converted according to the present invention.

【図5】線幅設定データの内容を示す図である。FIG. 5 is a diagram showing the contents of line width setting data.

【図6】上記「量」を画素スクリーンに重ねて示す図で
ある。
FIG. 6 is a diagram showing the above “amount” superimposed on a pixel screen.

【図7】(a)、(b)はキャラクタ構成線を画定する
アウトラインの印字位置による画素数の違いを示す図で
ある。
FIGS. 7(a) and 7(b) are diagrams showing differences in the number of pixels depending on the printing position of an outline defining a character composition line.

【図8】プログラムROMに記憶されたプログラムのう
ち、データ変換用プログラムを示すフローチャート図で
ある。
FIG. 8 is a flowchart showing a data conversion program among the programs stored in the program ROM.

【図9】プログラムROMに記憶されたプログラムのう
ち、データ変換用プログラムを示すフローチャート図で
ある。
FIG. 9 is a flowchart showing a data conversion program among the programs stored in the program ROM.

【図10】プログラムROMに記憶されたプログラムの
うち、データ変換用プログラムを示すフローチャート図
である。
FIG. 10 is a flowchart showing a data conversion program among the programs stored in the program ROM.

【図11】線幅修正データメモリの内容を示す図である
FIG. 11 is a diagram showing the contents of a line width correction data memory.

【図12】線幅修正プログラムにより線幅修正データが
格納された時の線幅修正データメモリの内容を示す図で
ある。
FIG. 12 is a diagram showing the contents of a line width correction data memory when line width correction data is stored by a line width correction program.

【図13】(a)は線幅修正プログラムに構成線が置換
された時のアウトラインデータを示す図であり、(b)
は(a)をドットデータに変換した時に生成されるドッ
トデータを示す図である。
FIG. 13(a) is a diagram showing outline data when constituent lines are replaced by the line width correction program, and FIG. 13(b)
FIG. 3 is a diagram showing dot data generated when converting (a) into dot data.

【図14】漢字「量」の線幅設定データの設定を示す図
である。
FIG. 14 is a diagram showing the setting of line width setting data for the kanji character "quantity".

【図15】従来装置において線幅修正処理を行なわない
場合のドットデータを示す図である。
FIG. 15 is a diagram showing dot data when line width correction processing is not performed in a conventional device.

【図16】従来装置において線幅修正処理を行った場合
のドットデータを示す図である。
FIG. 16 is a diagram showing dot data when line width correction processing is performed in a conventional device.

【符号の説明】[Explanation of symbols]

1  データ変換手段 2  キャラクタ構成線置換手段 3  輪郭線移動手段 4  線幅データ記憶手段 1 Data conversion means 2 Character composition line replacement means 3 Contour line moving means 4 Line width data storage means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  アウトラインデータによって表される
キャラクタの輪郭を、互いに直交するX軸方向とY軸方
向とにそれぞれ平行な複数の規定線により画素を規定す
る画素スクリーンに重ね合わせたと想定した場合に、キ
ャラクタを構成するキャラクタ構成線内に一定基準を満
たす状態で含まれる画素に対応するドットデータをキャ
ラクタ構成線の存在を表すデータに設定し、アウトライ
ンデータをドットデータに変換するデータ変換手段を備
えたデータ変換装置において、前記キャラクタを構成す
る複数のキャラクタ構成線の少なくとも一つを指定する
とともにその構成線の幅を示す線幅データを記憶する線
幅データ記憶手段と、前記線幅データにより指定された
キャラクタ構成線を前記幅の方向において画定する2本
の輪郭線内に含まれる画素のその幅方向における数が前
記線幅データに対応する数ではない場合に、前記2本の
輪郭線の少なくとも一方を前記画素の数が前記線幅デー
タに対応する数となる向き及び量で前記画素スクリーン
に対して相対移動させる輪郭線移動手段と、2本以上の
前記キャラクタ構成線が設定されたときに、隣接するキ
ャラクタ構成線間に存在する画素のその幅方向における
数が0の時に、2本のキャラクタ構成線のうち一方の構
成線を他方の構成線と同一の構成線となるように構成線
を置換する構成線置換手段と、を備え、前記データ変換
手段を前記輪郭線移動手段の移動により得られたアウト
ラインデータをドットデータに変換するものとしたこと
を特徴とするデータ変換装置。
[Claim 1] When it is assumed that the outline of a character represented by outline data is superimposed on a pixel screen that defines pixels by a plurality of defining lines parallel to the X-axis direction and the Y-axis direction, which are perpendicular to each other. , data conversion means for setting dot data corresponding to pixels included in a character composition line that composes a character in a state that satisfies a certain standard as data representing the existence of a character composition line, and converting outline data into dot data. In the data conversion device, a line width data storage means for specifying at least one of a plurality of character constituent lines constituting the character and storing line width data indicating the width of the constituent line; If the number of pixels in the width direction of the two contour lines that define the character composition lines defined in the width direction is not the number corresponding to the line width data, contour line moving means for moving at least one of the pixels relative to the pixel screen in a direction and amount such that the number of pixels corresponds to the line width data, and two or more of the character composition lines are set; When the number of pixels existing between adjacent character composition lines in the width direction is 0, one of the two character composition lines is configured to be the same composition line as the other character composition line. 1. A data conversion device comprising: constituent line replacement means for replacing lines, and wherein said data conversion means converts outline data obtained by movement of said contour line movement means into dot data.
JP3136619A 1991-06-07 1991-06-07 Data converter Expired - Fee Related JP3057811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3136619A JP3057811B2 (en) 1991-06-07 1991-06-07 Data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3136619A JP3057811B2 (en) 1991-06-07 1991-06-07 Data converter

Publications (2)

Publication Number Publication Date
JPH04360196A true JPH04360196A (en) 1992-12-14
JP3057811B2 JP3057811B2 (en) 2000-07-04

Family

ID=15179541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3136619A Expired - Fee Related JP3057811B2 (en) 1991-06-07 1991-06-07 Data converter

Country Status (1)

Country Link
JP (1) JP3057811B2 (en)

Also Published As

Publication number Publication date
JP3057811B2 (en) 2000-07-04

Similar Documents

Publication Publication Date Title
JP3189276B2 (en) Data converter
JP3057811B2 (en) Data converter
JP3092172B2 (en) Data converter
JP3169013B2 (en) Data output device
KR100227178B1 (en) Character generation device
JP3038840B2 (en) Data converter
JP2861127B2 (en) Data converter
JP3077180B2 (en) Data converter
JP3132507B2 (en) Data output method
JP3082228B2 (en) Data converter
JP2903531B2 (en) Data converter
JPH02231166A (en) Data converter
JP2861201B2 (en) Data converter
JP2956705B2 (en) Data converter
KR940003701B1 (en) Method of character image generation on computer
JP2841829B2 (en) Data converter
JP2881924B2 (en) Data storage device
JP3057963B2 (en) Data converter
JP2881863B2 (en) Data converter
JPH05341763A (en) Device for generating character
JPH0784739A (en) Data converter
KR940001106B1 (en) Image processing method and apparatus therefor
JP2757411B2 (en) Data converter
JP2841631B2 (en) Data converter
JP3055306B2 (en) Data output device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080421

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees