JPH0627924A - Data converting device - Google Patents

Data converting device

Info

Publication number
JPH0627924A
JPH0627924A JP4183803A JP18380392A JPH0627924A JP H0627924 A JPH0627924 A JP H0627924A JP 4183803 A JP4183803 A JP 4183803A JP 18380392 A JP18380392 A JP 18380392A JP H0627924 A JPH0627924 A JP H0627924A
Authority
JP
Japan
Prior art keywords
data
line
contour
line width
outline
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
Application number
JP4183803A
Other languages
Japanese (ja)
Inventor
Hitoshi Yoshida
均 吉田
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 JP4183803A priority Critical patent/JPH0627924A/en
Publication of JPH0627924A publication Critical patent/JPH0627924A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To output characters and symbols of good print quality without losing the shape balance of slanting constitution lines even when horizontal and vertical constitution lines are adjusted in line width by providing an outline data storage means, a contour moving means, and a dot data converting means. CONSTITUTION:A CPU 2 is provided with a data read part 22, a contour moving process part which moves contours so as to adjust the line width of constitution lines specified with line width data, a line width processing part 24 composed of a contact moving processing part which moves the position of the contact point between a horizontal or vertical line and a slanting line indicated with a flag in the contour data in outline data to the intersection of the contour moved by the contour moving process and the contour of the slanting constitution line, and a dot data conversion part 26 which converts the outline data into dot data. Then the CPU 2 performs the conversion from the outline data to the dot data according to a given program.

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 contours of characters and symbols into high quality bitmap data.

【0002】[0002]

【従来の技術】従来、文字や記号等キャラクタの発生装
置として、文字や記号の輪郭データ(以下、アウトライ
ンデータと称す)を用いるアウトライン方式がある。こ
の方式は、索引コード信号に従い、記憶部よりアウトラ
インデータを読みだし、それを任意のポイントサイズに
スケーリングした後、アウトラインデータにより規定さ
れる文字・記号を構成する構成線の幅(以下、線幅と称
す)を調整し、ビットマップデータに変換するもので、
変換されたデータはレーザプリンタなどの出力機器から
出力されていた。
2. Description of the Related Art Conventionally, there is an outline system that uses contour data of characters and symbols (hereinafter referred to as outline data) as a device for generating characters such as characters and symbols. This method reads the outline data from the storage unit according to the index code signal, scales it to an arbitrary point size, and then writes the width of the constituent lines that make up the characters / symbols defined by the outline data (hereinafter line width). (Referred to as) is adjusted and converted into bitmap data.
The converted data was output from an output device such as a laser printer.

【0003】この方式では、アウトラインデータは図3
に示すように線幅データと輪郭データより構成されてい
る。線幅データは線幅を定義する基準点の位置座標値と
線幅で記憶されている。ここで[N」は記憶されている
線幅データの数を示し、「HX」は垂直の構成線の線幅
情報を示すフラグであり、「HY」は水平の構成線の線
幅情報を示すフラグを表す。輪郭データは直線と曲線の
データで記憶されている。ただし、今回の説明では曲線
データは必要ではないので省略する。ここで「S」は1
閉ループの開始点を指示するフラグであり、後に続くx
座標値、y座標値の位置を開始点とする。「L」は直線
を表すフラグであり、現在の位置(カレントポイントと
称する)から後に続くx座標値、y座標値の位置までの
直線を指示している。
In this system, the outline data is shown in FIG.
As shown in, the line width data and the contour data are included. The line width data is stored as the position coordinate value of the reference point that defines the line width and the line width. Here, “N” indicates the number of stored line width data, “HX” is a flag indicating the line width information of the vertical constituent line, and “HY” indicates the line width information of the horizontal constituent line. Represents a flag. The contour data is stored as straight line and curved line data. However, the curve data is not necessary in this description, so it is omitted. Where "S" is 1
A flag indicating the start point of the closed loop, and the following x
The position of the coordinate value and the y coordinate value is used as the starting point. “L” is a flag indicating a straight line, and indicates a straight line from the current position (referred to as the current point) to the position of the subsequent x coordinate value and y coordinate value.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述の
アウトラインデータを用いて従来方式で構成線の線幅を
調整して出力装置に出力すると、斜めの構成線の線幅が
不均一になり品質の悪い印字結果となる。図4の実線で
示したアウトラインデータは水平構成線(点9−1−2
−3)と垂直構成線(点6−7−8−9)と斜め構成線
(3−4−5−6)から成る。図3の線幅情報に従い水
平構成線と垂直構成線の線幅を調整するため、点2と3
の座標値をY方向にΔYだけ移動し、点6と7の座標値
をX方向にΔXだけ移動すると、斜め構成線は点3’−
4−5−6’となる。線幅処理前の本来の斜め構成線の
線幅は均一であったのに対し、処理後は不均一になって
しまう。この線幅処理したアウトラインデータをドット
データに変換すると、本来デザイナーが意図した文字・
記号のデザインとは異なる印字結果が得られる。
However, if the line widths of the constituent lines are adjusted and output to the output device by the conventional method using the above-mentioned outline data, the line widths of the oblique constituent lines become non-uniform and the quality of Poor print results. The outline data shown by the solid line in FIG. 4 is the horizontal component line (point 9-1-2).
-3), the vertical component line (points 6-7-8-9) and the diagonal component line (3-4-5-6). In order to adjust the line widths of the horizontal component line and the vertical component line according to the line width information of FIG.
If the coordinate value of is moved by ΔY in the Y direction and the coordinate values of points 6 and 7 are moved by ΔX in the X direction, the diagonal component line is point 3′-.
It becomes 4-5-6 '. The original line width of the diagonal constituent lines before the line width processing was uniform, but became non-uniform after the processing. If you convert this outline data that has undergone line width processing to dot data, the characters originally intended by the designer
A print result different from that of the symbol design can be obtained.

【0005】本発明は、上述した問題点を解決するため
になされたものであり、水平及び垂直構成線の線幅を調
整する線幅処理を行っても斜め構成線の形状バランスが
崩れず印字品質のよい文字・記号を出力するデータ変換
装置を提供することを目的としている。
The present invention has been made in order to solve the above-mentioned problems, and prints without disturbing the shape balance of diagonal constituent lines even if line width processing for adjusting the line widths of horizontal and vertical constituent lines is performed. It is an object of the present invention to provide a data conversion device that outputs high quality characters and symbols.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に本発明のデータ変換装置は、文字・記号を構成する複
数の構成線の少なくとも一つを指定すると共にその構成
線の幅を示す線幅データと、前記文字・記号の輪郭線デ
ータの開始点・直線・曲線の区別を表す情報と、座標値
データのデータ群と、前記線幅データにより指定された
構成線において線幅方向に移動できる移動可能輪郭線と
前記線幅データにより指定されていない構成線の内の移
動不可能輪郭線との接合点を指示するフラグとを記憶す
るアウトラインデータ記憶手段と、前記線幅データによ
り指定された構成線を構成する2本の輪郭線内に含まれ
る画素のその幅方向における数が前記線幅データに対応
する数ではないときに、前記2本の輪郭線の少なくとも
一方を前記画素の数が前記線幅データに対応する数とな
る向き及び量で前記画素スクリーンに対して相対移動さ
せる輪郭線移動手段と、前記輪郭線移動手段により移動
した移動可能輪郭線と前記移動不可能輪郭線との交点に
前記接合点を移動させる接合点移動手段と、前記文字・
記号の輪郭線データをドットデータに変換するドットデ
ータ変換手段とを備えている。
In order to achieve this object, a data conversion apparatus of the present invention specifies a line that indicates at least one of a plurality of constituent lines that form a character / symbol and the width of the constituent line. Width data, information indicating the start point / straight line / curve distinction of the contour line data of the characters / symbols, a data group of coordinate value data, and a component line specified by the line width data is moved in the line width direction. Outline data storage means for storing a flag that indicates a joining point of a movable contour line that can be moved and a non-movable contour line of the constituent lines that are not specified by the line width data; and an outline data storage unit that is specified by the line width data. When the number of pixels in the width direction of the pixels included in the two contour lines that form the constituent line is not the number corresponding to the line width data, at least one of the two contour lines is A contour line moving unit that relatively moves with respect to the pixel screen in a direction and an amount that corresponds to the line width data, a movable contour line moved by the contour line moving unit, and an immovable contour line. Junction moving means for moving the junction to the intersection of
Dot data conversion means for converting the contour data of the symbol into dot data.

【0007】[0007]

【作用】上記の構成を有する本発明のデータ出力装置に
おいて、アウトラインデータ記憶手段は文字・記号を構
成する複数の構成線の少なくとも一つを指定すると共に
その構成線の幅を示す線幅データと、前記文字・記号の
輪郭線のデータを開始点、直線、曲線の区別を表す情報
と座標値データのデータ群と、前記文字・記号を構成す
る複数の構成線の少なくとも一つを指定すると共にその
構成線の幅を示す線幅データと前記線幅データにより指
定された構成線を前記幅方向において画定する移動可能
輪郭線と前記線幅データにより指定されていない構成線
を画定する移動不可能輪郭線との接合点を指示するフラ
グとを記憶し、輪郭線移動手段は前記線幅データにより
指定された構成線を前記幅の方向において画定する2本
の輪郭線内に含まれる画素のその幅方向における数が前
記線幅データに対応する数ではないときに、前記2本の
輪郭線の少なくとも一方を前記画素の数が前記線幅デー
タに対応する数となる向き及び量で画素スクリーンに対
して相対移動させ、接合点移動手段は前記輪郭線移動手
段により移動した移動可能輪郭線と前記移動不可能輪郭
線との交点に前記接合点を移動させ、ドットデータ変換
手段は前記文字・記号の輪郭線データをドットデータに
変換する。
In the data output device of the present invention having the above structure, the outline data storage means designates at least one of a plurality of constituent lines forming a character / symbol and line width data indicating the width of the constituent line. The data of the outline of the character / symbol is designated as a start point, information indicating the distinction between a straight line and a curve, and a data group of coordinate value data, and at least one of a plurality of component lines forming the character / symbol is specified. Line width data indicating the width of the component line and a movable line that defines the component line specified by the line width data in the width direction and a contour line that cannot be moved that defines the component line that is not specified by the line width data A contour line moving means stores a flag designating a joining point with the contour line, and the contour line moving means includes the constituent lines designated by the line width data in the two contour lines defining the constituent line in the width direction. When the number of pixels in the width direction is not the number corresponding to the line width data, at least one of the two contour lines has a direction and amount such that the number of pixels becomes the number corresponding to the line width data. And the joint point moving means moves the joint point to the intersection of the movable contour line moved by the contour line moving means and the immovable contour line, and the dot data converting means The contour line data of the character / symbol is converted into dot data.

【0008】[0008]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0009】尚、本実施例ではレーザープリンタにおい
てアウトラインデータをドットデータに変換する装置に
本発明を適用した例として説明する。
The present embodiment will be described as an example in which the present invention is applied to a device for converting outline data into dot data in a laser printer.

【0010】図1はレーザプリンタの制御回路のうち、
主としてアウトラインデータをドットデータに変換し、
出力する部分を示すブロック図である。この制御回路の
主体をなすマイクロコンピュータ部1は、CPU2、キ
ャラクタROM3、プログラムROM4、テキストメモ
リ5、ワーキングメモリ6、ドットデータメモリ7を備
えている。これらCPU2等は、バス8により接続され
ており、バス8には入力装置9、印字部10が接続され
ている。
FIG. 1 shows a control circuit of the laser printer.
Mainly converting outline data to dot data,
It is a block diagram which shows the output part. The microcomputer unit 1, which is the main component of this control circuit, includes a CPU 2, a character ROM 3, a program ROM 4, a text memory 5, a working memory 6, and a dot data memory 7. The CPU 2 and the like are connected by a bus 8, and an input device 9 and a printing unit 10 are connected to the bus 8.

【0011】CPU2は、実施例を実現するための処理
を与えられたプログラムに従って実行する。
The CPU 2 executes the processing for realizing the embodiment according to a given program.

【0012】キャラクタROM3は、キャラクタの形状
を表す形状データをアウトラインデータ形式で記憶して
いる。
The character ROM 3 stores shape data representing the shape of the character in an outline data format.

【0013】プログラムROM4には本実施例で行う様
々な制御を実施するためのプログラムを記憶している。
The program ROM 4 stores programs for executing various controls performed in this embodiment.

【0014】テキストメモリ5は、入力装置9を通じて
入力されるキャラクタコードと文字サイズを指定するた
めのサイズデータ、斜体や回転等の変形指定データ等か
らなる出力指定データを記憶するものである。
The text memory 5 stores output data including a character code input through the input device 9 and size data for designating a character size, and deformation designation data such as italics and rotations.

【0015】ワーキングメモリ6は、プログラム実行時
に必要なデータを一時的に記憶するものである。
The working memory 6 temporarily stores data necessary for executing a program.

【0016】ドットデータメモリ7にはアウトライン変
換部により得られるドットデータを記憶している。
The dot data memory 7 stores the dot data obtained by the outline conversion section.

【0017】入力装置9は外部から供給されるキャラク
ターコード、文字サイズを指定するサイズデータ、斜体
や回転等の変形指定データ等をマイクロコンピュータ部
1に入力するものである。
The input device 9 is used to input a character code, size data for designating a character size, transformation designation data for italic or rotation, etc., which are supplied from the outside, to the microcomputer unit 1.

【0018】印字部10は、ドットデータメモリ7から
読みだされたドットデータを電子写真方式の印字機構に
より印字を行う部分である。
The printing section 10 is a section for printing the dot data read from the dot data memory 7 by an electrophotographic printing mechanism.

【0019】前述したCPU2には、図2に概念的に示
すようなデータ読み出し部22と、線幅データで指定さ
れた構成線の線幅を調整するために輪郭線を移動させる
輪郭線移動処理部と、アウトラインデータ内の輪郭デー
タにおいてフラグで指示された水平または垂直線と斜め
線との接合点の位置を、輪郭線移動処理部で移動させた
輪郭線と斜め構成線の輪郭線との交点に移動させる接点
移動処理部から成る線幅処理部24と、アウトラインデ
ータをドットデータに変換するドットデータ変換部26
とが設けられている。
The CPU 2 described above has a data reading section 22 conceptually shown in FIG. 2, and a contour line moving process for moving the contour line in order to adjust the line width of the constituent line designated by the line width data. Section and the position of the joining point of the horizontal or vertical line and the diagonal line indicated by the flag in the contour data in the outline data, between the contour line moved by the contour line movement processing unit and the contour line of the diagonal component line. A line width processing unit 24 including a contact movement processing unit for moving to an intersection and a dot data conversion unit 26 for converting outline data into dot data.
And are provided.

【0020】次に本実施例のデータ変換装置のデータ読
み出し部と線幅処理部とドットデータ変換部で行われる
処理を図5のフローチャートと図6のアウトラインデー
タを用いて詳細に説明する。尚、以下のSi(i=1,
2,3,・・)は図中の各ステップを表す。
Next, the processing performed by the data reading section, the line width processing section, and the dot data converting section of the data converter of this embodiment will be described in detail with reference to the flowchart of FIG. 5 and the outline data of FIG. The following Si (i = 1,
2, 3, ...) represent each step in the figure.

【0021】入力装置9よりキャラクタコード,文字サ
イズ,出力装置の解像度が指示された後、このフローチ
ャートが実行される。先ず初めに、指示されたキャラク
タコードのアウトラインデータをキャラクタROM3よ
り読み出す。アウトラインデータのデータ構造は図6に
示すように、線幅データと輪郭データから成る。
After the character code, the character size, and the resolution of the output device are designated by the input device 9, this flowchart is executed. First, the outline data of the designated character code is read from the character ROM 3. The data structure of the outline data is composed of line width data and contour data, as shown in FIG.

【0022】S1〜S2においては、線幅データを読み
出す。線幅データは、フラグと構成線の線幅を定義する
ための位置座標値と線幅の値から構成されている。ここ
でフラグ「N」は、Nの後に格納されている線幅データ
の数を示し、フラグ「HX]は垂直の構成線の線幅情報
を示すフラグで、「HY]は水平の構成線の線幅情報を
示すフラグである。そして、そのフラグの次に垂直或
は、水平構成線の線幅を定義する基準点の位置座標値と
線幅の値が格納されている。例えば、図7の矢印のアウ
トラインデータの垂直構成線6−7−8−9の線幅の位
置座標値はx7であり、線幅はaである。同様に水平構
成線9−1−2−3の線幅の位置座標値はy2であり、
線幅はbである。読み出された線幅データはワーキング
メモリへ記憶する。
In S1 and S2, line width data is read. The line width data is composed of a flag, a position coordinate value for defining the line width of a constituent line, and a line width value. Here, the flag “N” indicates the number of line width data stored after N, the flag “HX” is a flag indicating line width information of a vertical constituent line, and “HY” indicates a horizontal constituent line. A flag indicating the line width information, and next to the flag, the position coordinate value and the line width value of the reference point that defines the line width of the vertical or horizontal constituent line are stored. The position coordinate value of the line width of the vertical component line 6-7-8-9 of the outline data of the arrow is x 7 , and the line width is a. Similarly, the line of the horizontal component line 9-1-2-3. The position coordinate value of the width is y 2 ,
The line width is b. The read line width data is stored in the working memory.

【0023】S3においては、アウトラインデータの中
の輪郭データを読み出す。輪郭データの構造は図6に示
すように、各点の座標値はフラグ1とフラグ2の属性情
報を持っている。ここでフラグ1の「S]、「L]、
「*」、「!」は前述した図3と同じである。すなわ
ち、「S]は一つの閉ループの輪郭線のスタート点を示
し、(x1,y1)はスタート点の座標値である。Lはセ
グメントが直線であることを示し、その後の座標値、例
えば(x2,y2)は直線の終点座標値を示す。「*」は
閉ループの終了、「!」は一つのキャラクタのアウトラ
インデータの終了を示す。
At S3, the contour data in the outline data is read. As shown in FIG. 6, the structure of the contour data has the attribute information of the flag 1 and the flag 2 as the coordinate value of each point. Here, "S", "L" of flag 1
“*” And “!” Are the same as those in FIG. 3 described above. That is, “S” indicates the start point of the contour line of one closed loop, (x 1 , y 1 ) is the coordinate value of the start point, L indicates that the segment is a straight line, and the coordinate values thereafter are For example, (x 2 , y 2 ) indicates the end point coordinate value of the straight line, “*” indicates the end of the closed loop, and “!” Indicates the end of the outline data of one character.

【0024】S4において、フラグ1が「*」であるか
判定し、YESであれば、一つの閉ループのデータを読
み出したので、そのデータを用いて次の処理(S8)へ
移る。NOの場合は、S5へ移る。
In S4, it is determined whether or not the flag 1 is "*", and if YES, one closed loop data has been read out, and therefore the process proceeds to the next process (S8). If NO, the process proceeds to S5.

【0025】S5において、フラグ2が「C]であるか
判定する。フラグ2の「C]は垂直あるいは水平構成線
の輪郭線と斜め構成線の輪郭線との接合点を示すフラグ
であり、そのフラグの次の値は接合点の座標値を示す。
例えば、図7において、水平構成線の輪郭線2−3と斜
め構成線の輪郭線3−4との接合点は「3」であり、そ
の座標値は(x3,y3)である。同様に、垂直構成線の
輪郭線6−7と斜め構成線の輪郭線6−5の接合点は
「6」であり、その座標値は(x6,y6)である。S5
の判定がYESのときはS7へ移り、NOのときはS6
へ移る。
In S5, it is determined whether or not the flag 2 is "C.""C" of the flag 2 is a flag that indicates the junction between the contour line of the vertical or horizontal constituent line and the contour line of the diagonal constituent line, The next value of the flag indicates the coordinate value of the junction.
For example, in FIG. 7, the junction of the contour 3-4 of the contour line 2-3 and oblique arrangement line of the horizontal arrangement line is "3", the coordinate value is (x 3, y 3). Similarly, the junction of the contour 6-5 of the contour line 6-7 and oblique arrangement line of the vertical configuration line is "6", the coordinate value is (x 6, y 6). S5
When the determination is YES, the process proceeds to S7, and when the determination is NO, S6
Move to.

【0026】S6において、フラグ1の指示に従ってス
タート点あるいは直線の終点の座標値をキャラクタRO
M3より読み出し、ワーキングメモリへ格納する。
In step S6, the coordinate value of the start point or the end point of the straight line is set to the character RO according to the instruction of flag 1.
Read from M3 and store in working memory.

【0027】S7において、フラグ2で指示された接合
点(図7において点3と6)の座標値を読み出しワーキ
ングメモリへ格納する。
In S7, the coordinate values of the junction point (points 3 and 6 in FIG. 7) designated by the flag 2 are read out and stored in the working memory.

【0028】S8において、S2とS7で読み出した線
幅データと線幅処理の属性情報を用いて線幅処理を行
う。例えば、図7の水平構成線9−1−2−3におい
て、構成線の線幅bはドットデータに変換すると2ドッ
ト分しかないのに、アウトラインデータからドットデー
タへ変換する際の変換誤差(以下、量子化誤差と呼ぶ)
により、3ドットになるとする。この量子化誤差を補正
するために、構成線の輪郭線2−3をY方向へΔyだけ
移動する。この時、点3はフラグ2で指示されたように
斜め構成線の輪郭線との接合点であるので、点3の座標
値はY方向へΔyだけ移動するのではなく、斜め構成線
の線幅は不揃いにならないように、輪郭線2−3に平行
でY方向へΔy移動した線と斜め構成線の輪郭線3−4
との交点3’の座標値になる。この結果、線幅処理後の
水平構成線は9−1−2’−3’となる。同様に、垂直
構成線(6−7−8−9)の接合点も量子化誤差を補正
するため6’の位置に移動させられ、新しい構成線は
6’−7’−8−9となる。
In S8, line width processing is performed using the line width data read in S2 and S7 and the attribute information of the line width processing. For example, in the horizontal configuration line 9-1-2-3 in FIG. 7, the line width b of the configuration line is only 2 dots when converted to dot data, but a conversion error ( Hereinafter referred to as quantization error)
Therefore, it becomes 3 dots. In order to correct this quantization error, the contour line 2-3 of the constituent line is moved by Δy in the Y direction. At this time, since the point 3 is a joining point with the contour line of the diagonal component line as indicated by the flag 2, the coordinate value of the point 3 does not move by Δy in the Y direction, but the line of the diagonal component line. In order to prevent the widths from becoming uneven, a line parallel to the contour line 2-3 and moved by Δy in the Y direction and a contour line 3-4 of the diagonal component line.
It becomes the coordinate value of the intersection 3'of and. As a result, the horizontal constituent line after the line width processing becomes 9-1-2'-3 '. Similarly, the junction point of the vertical construction line (6-7-8-9) is also moved to the 6'position to correct the quantization error, and the new construction line becomes 6'-7'-8-9. .

【0029】輪郭データの変更処理が終了した後、ドッ
トデータ変換部26でアウトラインデータをドットデー
タへ変換する処理が実行される。ドットデータへの変換
は、図8に示す画素スクリーン32を用いて行われる。
画素スクリーンはアウトラインデータをドットデータに
変換するための計算上のものであるが、ここでは理解を
容易にするために実在するものとして図示することとす
る。又、ここにおいて画素とは、レーザにより印字が行
われる際の最小単位であり、画素スクリーンは一平面内
においてお互いに直交し、x軸方向とy軸方向とに各々
平行であって、等間隔に設けられた複数の画素区間線p
により画素を規定している。本実施例において画素は正
方形とされており、画素毎に印字・表示を行うか否かの
ドットデータが作成される。又、画素の中心点(以下、
画素中心と称す)を通り、x軸方向とy軸方向とに各々
平行なx方向規定線xとy方向規定線yとが設定されて
おり、各画素の位置は画素中心点の座標で表される。
尚、画素は矩形その他の形状とすることも可能である。
After the contour data changing process is completed, the dot data converting unit 26 executes a process of converting the outline data into dot data. Conversion to dot data is performed using the pixel screen 32 shown in FIG.
Pixel screens are computational for converting outline data to dot data, but are shown here as being real, for ease of understanding. Further, the pixel here is a minimum unit when printing is performed by a laser, the pixel screens are orthogonal to each other in one plane, are parallel to the x-axis direction and the y-axis direction, and are equally spaced. A plurality of pixel section lines p provided in
The pixels are defined by. In this embodiment, the pixels are square, and dot data indicating whether or not printing / displaying is performed is created for each pixel. In addition, the center point of the pixel (hereinafter,
The x-direction defining line x and the y-direction defining line y are set in parallel with the x-axis direction and the y-axis direction, respectively, and the position of each pixel is represented by the coordinates of the pixel center point. To be done.
Note that the pixel can also have a rectangular shape or another shape.

【0030】画素スクリーン32は印字用紙の印字面に
対応して想定されるものであるが、図8には理解を容易
にするために1キャラクタを取り出して示してある。従
って、画素スクリーン32全体においてx方向規定線
x、y方向規定線yに実際に付けられている目盛り値
は、図8においてx方向規定線x、y方向規定線yに付
けられている目盛り値に適宣の整数値を各々加えた値と
なるが、ここでは1キャラクタ分についてのみ考えるこ
ととする。アウトラインデータのドットデータへの変換
は、キャラクタの輪郭を画素スクリーン32に重ね合わ
せと想定して行われ、本実施例においてはキャラクタの
輪郭内の各画素にドットが形成されるようになってお
り、その画素のビットデータが1とされる。
The pixel screen 32 is supposed to correspond to the printing surface of the printing paper, but FIG. 8 shows one character taken out for easy understanding. Therefore, the scale values actually attached to the x-direction defining line x and the y-direction defining line y in the entire pixel screen 32 are the scale values attached to the x-direction defining line x and the y-direction defining line y in FIG. However, here, only one character is considered. 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 32, and in this embodiment, dots are formed at each pixel within the outline of the character. , The bit data of the pixel is set to 1.

【0031】本発明は上述した実施例に限定されること
なく、その趣旨を逸脱しない範囲において種々の変更を
加えることができる。例えば、レーザプリンタ以外のプ
リンタにも本発明を適用し得ることはもちろん、プリン
タ以外にも文字・記号等のキャラクタのアウトラインデ
ータをドットデータに変換する必要のある装置に一般に
本発明を適用できる。
The present invention is not limited to the embodiments described above, and various modifications can be made without departing from the spirit of the invention. For example, the present invention can be applied not only to a printer other than a laser printer, but also to a device that needs to convert outline data of characters such as characters and symbols into dot data in addition to the printer.

【0032】[0032]

【発明の効果】以上説明したことから明かなように、本
発明によれば、水平及び垂直構成線の線幅を調整する線
幅処理を行っても斜め構成線の形状バランスが崩れず印
字品質のよい文字・記号を出力するデータ変換装置を提
供することことができる。
As is apparent from the above description, according to the present invention, even if the line width processing for adjusting the line widths of the horizontal and vertical constituent lines is performed, the shape balance of the diagonal constituent lines is not lost and the print quality is improved. It is possible to provide a data conversion device that outputs good characters and symbols.

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

【図1】本実施例のレーザプリンタの制御回路のデータ
変換部のブロック図である。
FIG. 1 is a block diagram of a data conversion unit of a control circuit of a laser printer of this embodiment.

【図2】CPUの働きを概念的に示した図である。FIG. 2 is a diagram conceptually showing a function of a CPU.

【図3】従来の線幅データと輪郭データの構成図であ
る。
FIG. 3 is a configuration diagram of conventional line width data and contour data.

【図4】従来の線幅処理で得られた輪郭形状の図であ
る。
FIG. 4 is a diagram of a contour shape obtained by conventional line width processing.

【図5】輪郭データを変更処理するフローチャート図で
ある。
FIG. 5 is a flowchart showing a process of changing contour data.

【図6】本発明の線幅データと輪郭データの構成図であ
る。
FIG. 6 is a configuration diagram of line width data and contour data according to the present invention.

【図7】本発明の線幅処理で得られた輪郭形状の図であ
る。
FIG. 7 is a diagram of a contour shape obtained by the line width processing of the present invention.

【図8】画素スクリーンを示す図である。FIG. 8 is a diagram showing a pixel screen.

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

2 CPU 3 キャラクタROM 6 ワーキングメモリ 24 線幅処理部 26 ドットデータ変換部 32 画素スクリーン 2 CPU 3 character ROM 6 working memory 24 line width processing unit 26 dot data conversion unit 32 pixel screen

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字・記号の1つまたは複数の閉ループ
の輪郭線のアウトラインデータを、複数行×複数列の画
素を有する画素スクリーンに重ね合わせる場合に、文字
・記号を構成する構成線内に一定基準を満たす状態で画
素を配置することにより、前記アウトラインデータをド
ットデータの集合に変換するドットデータ変換手段を備
えたデータ変換装置において、 文字・記号を構成する複数の構成線の少なくとも一つを
指定すると共にその構成線の幅を示す線幅データと、前
記文字・記号の輪郭線データの開始点・直線・曲線の区
別を表す情報と座標値データとから成るデータ群と、前
記線幅データにより指定された構成線において線幅方向
に移動できる移動可能輪郭線と前記線幅データにより指
定されていない構成線の内の移動不可能輪郭線との接合
点を指示するフラグとを記憶するアウトラインデータ記
憶手段と、 前記線幅データにより指定された構成線を構成する2本
の輪郭線内に含まれる画素のその幅方向における数が前
記線幅データに対応する数ではないときに、前記2本の
輪郭線の少なくとも一方を前記画素の数が前記線幅デー
タに対応する数となる向き及び量で前記画素スクリーン
に対して相対移動させる輪郭線移動手段と、 前記輪郭線移動手段により移動した移動可能輪郭線と前
記移動不可能輪郭線との交点に前記接合点を移動させる
接合点移動手段とを備えたことを特徴とするデータ変換
装置。
1. When superposing outline data of one or more closed loop contours of a character / symbol on a pixel screen having pixels of a plurality of rows × a plurality of columns, the outline data of the character / symbol is included in a constituent line forming the character / symbol. At least one of a plurality of constituent lines forming a character / symbol in a data conversion device provided with dot data conversion means for converting the outline data into a set of dot data by arranging pixels in a state satisfying a certain criterion. And a line width data indicating the width of the component line, a data group consisting of information indicating the start point / straight line / curve of the contour data of the character / symbol and coordinate value data, and the line width A movable contour line that can move in the line width direction on the component line specified by the data and an unmovable contour line of the component line that is not specified by the line width data. Outline data storage means for storing a flag indicating a junction with a line; and the number of pixels in the width direction of pixels included in the two contour lines forming the constituent line designated by the line width data is the number. When the number is not the number corresponding to the line width data, at least one of the two contour lines is moved relative to the pixel screen in the direction and amount such that the number of the pixels corresponds to the line width data. Data conversion comprising: a contour line moving means; and a joint point moving means for moving the joint point to an intersection of the movable contour line moved by the contour line moving means and the immovable contour line. apparatus.
JP4183803A 1992-07-10 1992-07-10 Data converting device Pending JPH0627924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4183803A JPH0627924A (en) 1992-07-10 1992-07-10 Data converting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4183803A JPH0627924A (en) 1992-07-10 1992-07-10 Data converting device

Publications (1)

Publication Number Publication Date
JPH0627924A true JPH0627924A (en) 1994-02-04

Family

ID=16142177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4183803A Pending JPH0627924A (en) 1992-07-10 1992-07-10 Data converting device

Country Status (1)

Country Link
JP (1) JPH0627924A (en)

Similar Documents

Publication Publication Date Title
JP2876942B2 (en) Data converter
JPH0627924A (en) Data converting device
KR950014169B1 (en) Output method and apparatus
JP2952915B2 (en) Dot pattern data generator
JP3082228B2 (en) Data converter
JP3055327B2 (en) Data converter
JP3055306B2 (en) Data output device
JP2861127B2 (en) Data converter
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JP2881924B2 (en) Data storage device
JP3087414B2 (en) Data output device
JPH01249482A (en) Data output device
JP2861201B2 (en) Data converter
JP3057974B2 (en) Data converter
JPH06324667A (en) Data converting device
JP3024479B2 (en) Data converter
JPH01229649A (en) Printing method using vector font data
JPH0511736A (en) Character pattern output device
JP2841631B2 (en) Data converter
JPH0511734A (en) Character pattern generating device
JP2841829B2 (en) Data converter
JPH02231166A (en) Data converter
JP3092172B2 (en) Data converter
JP2715475B2 (en) Graphic output device
JP3089913B2 (en) High quality character output device