JP2841829B2 - Data converter - Google Patents

Data converter

Info

Publication number
JP2841829B2
JP2841829B2 JP29111890A JP29111890A JP2841829B2 JP 2841829 B2 JP2841829 B2 JP 2841829B2 JP 29111890 A JP29111890 A JP 29111890A JP 29111890 A JP29111890 A JP 29111890A JP 2841829 B2 JP2841829 B2 JP 2841829B2
Authority
JP
Japan
Prior art keywords
data
line width
line
character
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.)
Expired - Fee Related
Application number
JP29111890A
Other languages
Japanese (ja)
Other versions
JPH04164662A (en
Inventor
均 吉田
直幸 川本
一磨 青木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP29111890A priority Critical patent/JP2841829B2/en
Publication of JPH04164662A publication Critical patent/JPH04164662A/en
Application granted granted Critical
Publication of JP2841829B2 publication Critical patent/JP2841829B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文字・記号等の輪郭を表わすアウトライン
データから高品質なドットデータに変換するデータ変換
装置に関し、特にその変換時の線幅補正処理に関するも
のである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion apparatus for converting outline data representing outlines of characters and symbols into high-quality dot data, and in particular, correcting line width at the time of the conversion. It is related to processing.

[従来技術] 以前より、文字・記号などのアウトラインデータをコ
ンピュータを用いて処理し、レーザプリンタやディスプ
レイ等に出力、表示する際、最小処理単位である画素毎
にドットデータを形成することが広く行なわれている。
[Prior Art] Conventionally, when processing outline data such as characters and symbols using a computer and outputting and displaying the data on a laser printer, a display, or the like, it has been widely used to form dot data for each pixel, which is the minimum processing unit. Is being done.

このアウトラインデータをドットデータに変換するに
は画素スクリーンを用いてデータ変換手段により行われ
る。画素スクリーンは一平面内において互いに直交する
X軸とY軸とにそれぞれ平行な複数の規定線により画素
を規定するものであり、データ変換手段は、画素スクリ
ーンにキャラクタの輪郭線を重ね合わせた場合に、輪郭
線内に一定の基準以上の部分が含まれる画素に対応する
ドットデータをキャラクタ構成線の存在を表わすデータ
に設定することにより、アウトラインデータをドットデ
ータに変換するのである。
This outline data is converted into dot data by a data conversion means using a pixel screen. The pixel screen defines pixels by a plurality of definition lines parallel to the X-axis and the Y-axis orthogonal to each other in one plane, and the data conversion unit is configured to superimpose the outline of the character on the pixel screen. The outline data is converted into dot data by setting the dot data corresponding to the pixels in which the contour contains a portion equal to or more than a predetermined reference to the data representing the presence of the character constituent line.

[発明が解決しようとする課題] しかしながら、このようなアウトラインデータをドッ
トデータに変換し、キャラクタを表示する場合には、キ
ャラクタが表示される位置によって同じキャラクタ構成
線であってもその内側に一定基準以上含まれる画素の
数、位置などが異なり、そのキャラクタ構成線の幅、即
ち、キャラクタ構成線を幅方向において画定する2本の
輪郭線内に幅方向において含まれる画素の数が常に同じ
になるとは限らない。つまり、キャラクタ構成線の幅は
デザイナがデザイン時に見映えよく表示されるようにデ
ザインされるのであるが表示位置によって例えば第10図
(a)に示すようにキャラクタ構成線の幅が異なり、予
定された幅が得られない場合が多々有り、この場合には
キャラクタ全体のバランスが崩れ、見映えが悪くなる。
[Problems to be Solved by the Invention] However, when such outline data is converted into dot data and a character is displayed, even if the character constituting line is the same depending on the position where the character is displayed, the outline is fixed inside the line. The number, position, etc. of the pixels included above the reference are different, and the width of the character constituent line, that is, the number of pixels included in the width direction within two outlines that define the character constituent line in the width direction is always the same. Not necessarily. In other words, the width of the character configuration line is designed so that the designer can be displayed visually at the time of design. However, the width of the character configuration line differs depending on the display position, for example, as shown in FIG. In many cases, the width of the character cannot be obtained. In this case, the balance of the entire character is lost, and the appearance is deteriorated.

そこで本出願人による特願平1−52524において線幅
の補正について提案されている。その提案によれば、キ
ャラクタの輪郭線と画素スクリーンを重ね合わせたと
き、線幅の構成線内に含まれる画素数が構成線の線幅デ
ータに対応するドット数となるように輪郭線を移動させ
ることで線幅補正を行えば、線幅データに対応するドッ
ト幅に変換できるものである。これによると第10図
(b)のように線幅データに対応するドット数でドット
データに変換されるので、線幅データが同じであるH1と
H3は必ず同じドット数となる。
Therefore, Japanese Patent Application No. 1-52524 filed by the present applicant proposes correction of line width. According to the proposal, when the outline of the character is superimposed on the pixel screen, the outline is moved so that the number of pixels included in the constituent line of the line width becomes the number of dots corresponding to the line width data of the constituent line. By performing the line width correction by doing so, the dot width can be converted to a dot width corresponding to the line width data. According to this, as shown in FIG. 10 (b), the data is converted into dot data with the number of dots corresponding to the line width data, so that H1 and H1 having the same line width data are used.
H3 always has the same number of dots.

しかしながら、線幅の構成線H1とH3はドット数が2、
構成線H2のドット数が1となり、これはもともとのアウ
トラインデータでデザイナーがH2の線幅をH1、H3の線幅
より若干細くデザインしているために生じたものである
のだが、このドットの差は出力したときにキャラクタ全
体のバランスを崩し見映えが悪くなる。
However, the constituent lines H1 and H3 of the line width have two dots,
The number of dots in the component line H2 was 1, which was caused by the designer using the original outline data to design the line width of H2 slightly smaller than the line widths of H1 and H3. When the difference is output, the balance of the entire character is lost and the appearance is deteriorated.

もともとのアウトラインデータで構成線の幅を同じに
しておけばドット変換をした時に構成線の幅のドット数
は同じになり見た目に美しい文字を生成できるのだが、
これはデザイナーが微妙な線幅の違いを表現しようとデ
ザインすることと相反することであり問題の解決にはな
らない。又、文字によって違うが50ポイント(1ポイン
トは1/72インチ)ぐらいの大きな文字になると微妙な線
幅の違いが文字の品質を高める。
If you make the width of the component line the same as the original outline data, the number of dots of the component line width will be the same when performing dot conversion, and it will be possible to generate beautiful characters that look good.
This is in conflict with the designer's attempt to express subtle differences in line width, and does not solve the problem. Also, depending on the character, when the character is large, about 50 points (1 point is 1/72 inch), the slight difference in line width improves the quality of the character.

すなわち、単なる線幅補正処理では小さいサイズの文
字で見苦しくなり、アウトラインデータを修正すること
でこれを回避した場合、大きいサイズの文字で品質が悪
くなる。
In other words, simple line width correction processing makes small-sized characters unsightly, and if this is avoided by correcting outline data, large-sized characters deteriorate in quality.

実際に漢字には“日”や“目”の要素が多く含まれて
おり、“日”の3本の横線のうち真ん中の1本や、
“目”の4本の横線のうち内側の2本が若干細かくデザ
インされることが多く、従来の技術では特に小さいポイ
ントサイズでこれらの文字の品質が悪いといった欠点が
あった。
Actually, kanji contains many elements of “day” and “eye”, and one of the three horizontal lines of “day” is the middle one,
Of the four horizontal lines of the "eyes", the inner two lines are often designed slightly finer, and the conventional technology has the disadvantage that the quality of these characters is poor especially at small point sizes.

[発明の目的] 本発明は、上述した問題点を解決するためになされた
ものであり、その目的は、アウトラインデータからドッ
トデータに変換する際の線幅補正処理において、任意の
サイズの文字で高品質の文字を生成することができる、
すなわち大きなサイズの文字ではデザインされた時の線
幅の微妙な違いを出し、小さなサイズの文字では微妙な
線幅の違いを量子化して線幅補正処理をすることで高品
質の文字を生成することができるデータ変換装置を提供
することにある。
[Object of the Invention] The present invention has been made to solve the above-described problem, and an object of the present invention is to perform line width correction processing for converting outline data to dot data using characters of any size. Can produce high quality characters,
In other words, large-sized characters make subtle differences in designed line width, and small-sized characters generate high-quality characters by quantizing subtle line width differences and performing line width correction processing. To provide a data conversion device capable of performing the above.

[課題を解決するための手段] この目的を達成するために本発明のデータ変換装置
は、キャラクタを構成する複数のキャラクタ構成線の少
なくとも一つを指定するとともにその構成線の幅を示す
線幅データを記憶する線幅データ記憶手段と、線幅デー
タのうち2つ以上の線幅データをグループ化し、そのグ
ループ化された線幅データをグループ毎に同一の線幅デ
ータに修正する線幅データ修正手段と、線幅データ修正
手段による修正を行なうか否かを指示する修正指定手段
と、線幅データにより指定されるキャラクタ構成線を前
記幅の方向において画定する2本の輪郭線内に含まれる
画素のその幅方向における数が線幅データに対応する数
ではない場合に、2本の輪郭線の少なくとも一方を画素
の数が線幅データに対応する数となる向き及び量で画素
スクリーンに対して、相対移動させる輪郭線移動手段と
を設け、データ変換手段を、輪郭線移動手段の移動によ
り得られたアウトラインデータをドットデータに変換す
るものとしたことを要旨とするものである。
Means for Solving the Problems In order to achieve this object, a data conversion device according to the present invention specifies at least one of a plurality of character constituent lines constituting a character and a line width indicating the width of the constituent lines. Line width data storage means for storing data; and line width data for grouping two or more line width data out of the line width data, and correcting the grouped line width data to the same line width data for each group. Correction means, correction specifying means for instructing whether or not correction is to be performed by the line width data correction means, and a character constituting line specified by the line width data being included in two outlines defining the width direction. If the number of pixels in the width direction is not the number corresponding to the line width data, at least one of the two outlines is oriented such that the number of pixels becomes the number corresponding to the line width data. The outline moving means for moving the outline data obtained by the movement of the outline moving means into dot data. Things.

[作用] 上記の構成を有する本発明は、線幅データ記憶手段よ
り線幅処理に必要な線幅データが読み出され、修正指示
手段により線幅データの修正が必要と診断された時には
前記線幅データ修正手段で線幅データをグループ分けし
てグループ毎に線幅データが同一の線幅データに修正さ
れる。その修正された線幅にデータに従い輪郭線移動手
段で輪郭線が移動され、得られたアウトラインデータが
前記データ変換手段にてドットデータに変換される。
[Operation] According to the present invention having the above configuration, the line width data necessary for the line width processing is read from the line width data storage means, and when it is diagnosed that the line width data needs to be corrected by the correction instruction means, the line width is determined. Line width data is divided into groups by width data correction means, and the line width data is corrected to the same line width data for each group. The outline is moved by the outline moving means according to the corrected line width according to the data, and the obtained outline data is converted into dot data by the data converting means.

[実施例] 以下、レーザプリンタにおいてアウトラインデータを
ドットデータに変換する装置に本発明を適用した場合を
例に取り、図面に基づいて詳細に説明する。
Embodiment Hereinafter, a case where the present invention is applied to an apparatus for converting outline data into dot data in a laser printer will be described in detail with reference to the drawings.

第2図は本レーザプリンタの制御回路のうち、データ
変換に関する部分を主として示す図である。この制御回
路の主体を成すマイクロコンピュータ部10は、CPU12,キ
ャラクタROM14,プログラムROM16,テキストメモリ18,ワ
ーキングメモリ20,ドットデータメモリ22,線幅データメ
モリ24を備えている。これらCPU12等は、バス26により
接続されており、バス26には入力装置28および印字部30
が接続されている。入力装置28は必要なデータをマイク
ロコンピュータ部10に入力するものであり、印字部30は
マイクロコンピュータ部10からの指令に基づいてレーザ
プリント方式により印字を行なう部分である。尚、本レ
ーザプリンタの解像度は300ドット/インチとする。
FIG. 2 is a diagram mainly showing a part relating to data conversion in a control circuit of the laser printer. The microcomputer unit 10, which is a main component of the control circuit, includes a CPU 12, a character ROM 14, a program ROM 16, a text memory 18, a working memory 20, a dot data memory 22, and a line width data memory 24. These CPUs 12 and the like are connected by a bus 26, which has an input device 28 and a printing unit 30.
Is connected. The input device 28 is for inputting necessary data to the microcomputer unit 10, and the printing unit 30 is a unit for performing printing by a laser printing method based on a command from the microcomputer unit 10. The resolution of this laser printer is 300 dots / inch.

CPU12には、第3図に概念的に示すようにデータ読み
出し部32,線幅修正指示部33,輪郭線移動部34,線幅デー
タ修正部35、アウトラインデータをドットデータに変換
するデータ変換部36等が設けられている。テキストメモ
リ18は、入力装置28から入力されるコードデータから成
るキャラクタデータを記憶するものであり、ワーキング
メモリ20は、プログラム実行時に必要なデータを一時的
に記憶するものである。ドットデータメモリ22にはデー
タ変換部36により得られるドットデータが記憶される。
又、キャラクタROM14には、アルファベット,漢字等の
文字や記号等のアウトラインデータが記憶されている。
アウトラインデータは、各キャラクタの輪郭を決定する
のに必要な複数の点の座標を表わすデータ群から成り、
第1図(a)上の数字は各点の座標値である。線幅デー
タメモリ24には線幅データが記憶される。線幅データは
線幅を所定値に維持すべきキャラクタ構成線を指定する
とともに、その線の幅を規定するものである。線幅デー
タにはY軸に平行な縦のキャラクタ構成線(以下、縦線
と称す)とX軸に平行な横のキャラクタ構成線(以下、
横線と称す)の2種類がある。実際に線幅データは線幅
を構成する構成線の縦線か横線かを表わすフラグと構成
線を画定する2本の輪郭線の内のどちらか一方の位置デ
ータと、幅データとで記憶される。第1図(a)の例で
は説明を簡略化するために3本の横線H1〜H3に注目する
と線幅データは第1図(b)に示す通りである。。本実
施例では、文字のアウトラインデータの座標値及び線幅
データは1000*1000の座標面上の値で記憶される。
As shown conceptually in FIG. 3, the CPU 12 includes a data reading section 32, a line width correction instructing section 33, a contour moving section 34, a line width data correcting section 35, and a data converting section for converting outline data into dot data. 36 etc. are provided. The text memory 18 stores character data composed of code data input from the input device 28, and the working memory 20 temporarily stores data necessary for executing a program. The dot data obtained by the data converter 36 is stored in the dot data memory 22.
The character ROM 14 stores outline data such as letters and symbols such as alphabets and kanji.
The outline data is composed of a data group representing the coordinates of a plurality of points necessary to determine the outline of each character,
The numbers on FIG. 1 (a) are the coordinate values of each point. The line width data memory 24 stores line width data. The line width data specifies a character constituting line whose line width is to be maintained at a predetermined value and defines the width of the line. The line width data includes a vertical character component line parallel to the Y axis (hereinafter, referred to as a vertical line) and a horizontal character component line parallel to the X axis (hereinafter, a vertical character component line).
Horizontal lines). Actually, the line width data is stored as a flag indicating whether the line is a vertical line or a horizontal line constituting the line width, position data of one of two contour lines defining the constituent line, and width data. You. In the example of FIG. 1A, paying attention to three horizontal lines H1 to H3 to simplify the description, the line width data is as shown in FIG. 1B. . In this embodiment, the coordinate values and the line width data of the outline data of the character are stored as values on a coordinate plane of 1000 * 1000.

本レーザプリンタにおいてアウトラインデータのドッ
トデータへの変換は、第4図に示す画素スクリーン52を
用いて行われる。画素スクリーン52はアウトラインデー
タをドットデータに変換するための計算上のものである
が、ここでは理解を容易にするために実在するものとし
て図示することにする。又、ここにおいて画素とは、レ
ーザにより印字が行なわれる際の最小印字単位であり、
画素スクリーン52は、一平面内において互いに直交し、
X軸方向とY軸方向とに各々平行であって、等間隔に設
けられた複数の画素区間線pにより画素を規定してい
る。本実施例において画素は正方形とされており、画素
毎に印字を行なうか否かのドットデータが作成される。
又、各画素の中心点(以下、画素中心点と称す)を通
り、X軸方向とY軸方向とに各々平行なx方向規定線x
とy方向規定線yとが設定されており、各画素の位置は
画素中心の座標で表わし、画素は矩形その他の形状とす
ることも可能である。画素スクリーン52は印字用紙の印
字面に対応して想定されるものであるが、第4図には理
解を容易にするために1キャラクタ分を取り出して示し
てある。従って、画素スクリーン52全体においてx方向
規定線x,y方向規定線yに実際に付される目盛り値は、
第4図においてx方向に規定線x,y方向規定線yに付さ
れている目盛り値に適宜の整数を各々加えた値となる
が、ここでは1キャラクタ分についてのみ考えることに
する。
In this laser printer, the conversion of outline data to dot data is performed using a pixel screen 52 shown in FIG. The pixel screen 52 is a computational one for converting outline data into dot data, but is shown here as an actual one for easy understanding. In addition, the pixel here is a minimum printing unit when printing is performed by a laser,
The pixel screens 52 are orthogonal to each other in one plane,
Pixels are defined by a plurality of pixel section lines p that are parallel to the X-axis direction and the Y-axis direction and are provided at equal intervals. In the present embodiment, the pixels are square, and dot data is generated for each pixel to determine whether or not to print.
An x-direction defining line x that passes through a center point of each pixel (hereinafter, referred to as a pixel center point) and is parallel to the X-axis direction and the Y-axis direction, respectively.
And a y-direction defining line y are set, the position of each pixel is represented by the coordinates of the center of the pixel, and the pixel may have a rectangular or other shape. The pixel screen 52 is supposed to correspond to the printing surface of the printing paper, but FIG. 4 shows one character taken out for easy understanding. Therefore, the scale values actually assigned to the x-direction defining line x and the y-direction defining line y in the entire pixel screen 52 are:
In FIG. 4, the value is obtained by adding an appropriate integer to each of the scale values attached to the definition line x in the x direction and the definition line y in the y direction. Here, only one character is considered.

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

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

本レーザプリンタは、10〜20ポイントの文字に対し
て、線幅データメモリ24に記憶された線幅データに基づ
いて線幅補正処理が行われる。10ポイント以下の文字に
対しては、線幅修正指示部33で線幅データの修正が必要
と判断し、線幅データ修正部35で線幅データを修正し、
修正された線幅データに基づいて線幅補正処理が行われ
る。その線幅補正処理により得られたアウトラインデー
タをドットデータに変換し、印字する。尚、線幅補正処
理については本出願人による特願平1−52524に準ずる
ものであり、後から詳細に説明する。
The laser printer performs line width correction processing on characters of 10 to 20 points based on the line width data stored in the line width data memory 24. For characters of 10 points or less, the line width correction instruction unit 33 determines that line width data needs to be corrected, and the line width data correction unit 35 corrects line width data.
A line width correction process is performed based on the corrected line width data. The outline data obtained by the line width correction processing is converted into dot data and printed. Note that the line width correction processing conforms to Japanese Patent Application No. 1-52524 filed by the present applicant, and will be described later in detail.

本実施例の動作を第5図に示すフローチャートを用い
て説明する。
The operation of this embodiment will be described with reference to the flowchart shown in FIG.

まず入力装置28を介してキャラクタデータが入力され
ると、ステップS1(以下、S1と略記し、他のステップに
ついても同じ)において、そのキャラクタのアウトライ
ンデータ、線幅データ、印字サイズが読み出される。
First, when character data is input via the input device 28, outline data, line width data, and print size of the character are read in step S1 (hereinafter, abbreviated as S1 and the same applies to other steps).

S2では印字サイズが20ポイント以下であるか否かの判
定が行われる。これは線幅補正処理の必要があるか否か
の判定である。従って、30ポイント、40ポイント等20ポ
イントにより大きい場合には判定結果はNOとなり、S6へ
処理が移る。印字サイズを2.4ポイントとすると判定結
果はYESとなり、S3の線幅修正指示部での処理へ移す。
In S2, it is determined whether or not the print size is equal to or less than 20 points. This is to determine whether or not the line width correction processing is necessary. Therefore, if the value is larger than 20 points such as 30 points and 40 points, the determination result is NO, and the process proceeds to S6. When the print size is set to 2.4 points, the determination result is YES, and the process shifts to the processing of the line width correction instruction unit in S3.

S3では印字サイズが10ポイント以下であるか否かの判
定が行われる。これは線幅データ修正処理の必要がある
か否かの判定がされる。従って、12ポイント、15ポイン
ト等20ポイント以下で、且つ、10ポイントより大きい場
合には判定結果はNOとなり、S5へ処理が移る。本実施例
は2.4ポイントであるから判定結果はYESとなりS4の線幅
データの修正へ処理を移す。
In S3, it is determined whether or not the print size is 10 points or less. In this case, it is determined whether or not the line width data correction processing is necessary. Therefore, if the score is 20 points or less, such as 12 points or 15 points, and is greater than 10 points, the determination result is NO, and the process proceeds to S5. In the present embodiment, since the point is 2.4 points, the determination result is YES, and the process proceeds to the correction of the line width data in S4.

第1図に示す“日”を例にとり横線H1〜H3について、
S4での処理を第6図のフローチャートに従って説明す
る。
Taking the "day" shown in FIG. 1 as an example,
The processing in S4 will be described with reference to the flowchart of FIG.

本実施例は10*10画素の大きさのドットに変換するか
ら、この1画素の1辺の長さは1000*1000の画素スクリ
ーンでは100(=1000/10)となる。従って、ここでは1
画素の1辺の長さの1/2、すなわちA=50をグループ化
のしきい値とする。
In the present embodiment, dots are converted into dots having a size of 10 * 10 pixels, and the length of one side of each pixel is 100 (= 1000/10) in a 1000 * 1000 pixel screen. Therefore, here 1
A half of the length of one side of a pixel, that is, A = 50 is set as a threshold value for grouping.

S41では、構成線の幅データの平均値を求める。本実
施例の幅データは第1図(b)に示す通りであり平均値
は153.3となる。
In S41, the average value of the width data of the component lines is obtained. The width data of the present embodiment is as shown in FIG. 1B, and the average value is 153.3.

S42では、グループ毎の幅値の範囲を求める。第1グ
ループは平均153.3から±A/2の範囲となる。つまり、第
7図に示すように、128.3〜178.3の幅データを第1グル
ープとする。この範囲外の幅データがあれば第1グルー
プの上側と下側に±Aの範囲で更に第2、第3・・グル
ープを作る。
In S42, the range of the width value for each group is obtained. The first group averages 153.3 to ± A / 2. That is, as shown in FIG. 7, the width data of 128.3 to 178.3 is set as the first group. If there is width data outside this range, second, third,... Groups are further formed within the range of ± A above and below the first group.

S43では各幅データをS42で求めた幅値のグループに対
応させる。ここではW1、W2、W3は第1グループに含まれ
る。
In S43, each width data is made to correspond to the group of the width values obtained in S42. Here, W1, W2, and W3 are included in the first group.

S44では各グループ毎でそのグループに含まれる幅デ
ータの平均値を求める。本実施例ではグループ数は1つ
であり、第1グループに含まれる線幅データの幅データ
の平均値は153.3となる。
In S44, the average value of the width data included in each group is obtained for each group. In this embodiment, the number of groups is one, and the average value of the width data of the line width data included in the first group is 153.3.

S45では各幅データをS44で求めた平均値に修正して、
ワーキングメモリ20に書き込む。平均値153.3はC/1000
を掛ける。(C=10)と2となる。これは構成線の幅の
ドット数が2であることを示す。線幅データを修正した
ことでS5の輪郭線移動部34では構成線H1,H2,H3の幅ドッ
ト数は2になるように輪郭線移動が行なわれる。
In S45, each width data is corrected to the average value obtained in S44,
Write to working memory 20. Average value 153.3 is C / 1000
Multiply. (C = 10) and 2. This indicates that the number of dots in the width of the component line is two. By correcting the line width data, the outline moving unit 34 moves the outline so that the number of width dots of the constituent lines H1, H2, and H3 becomes two.

そのS5での輪郭線移動処理を第8図のフローチャート
を用いて説明する。
The contour moving process in S5 will be described with reference to the flowchart in FIG.

S51では横線の線幅データか否かの判定が行われ、YES
であればS52〜S56が実行され、1本づつ横線について処
理が行れる。NOであればS511以下へ処理が移る。本実施
例ではYESとなりS52へ処理が移る。
In S51, it is determined whether the data is horizontal line width data, and YES
If so, S52 to S56 are executed, and the processing is performed for each horizontal line. If NO, the process proceeds to S511 and below. In the present embodiment, the determination is YES, and the process proceeds to S52.

S52ではまず幅データに対応する画素数DLを求める。
先に説明した通りC/1000を掛ける、すなわち100で除す
ることで画素スクリーン52上に想定した座標面上の値が
得られ、整数値で余りなく除すことができない場合には
小数第1位以下を四捨五入する。従って、幅データが15
3.3であるからDL=2となる。
In S52, first, the number of pixels D L corresponding to the width data is obtained.
As described above, the value on the coordinate plane assumed on the pixel screen 52 can be obtained by multiplying by C / 1000, that is, dividing by 100, and when the integer value cannot be completely divided, the first decimal point is used. Round to the nearest whole number. Therefore, if the width data is 15
Since it is 3.3, D L = 2.

S53では2本の構成線内に含まれる画素数を実際の幅d
lとし、dlとDLが比較される。等しければ輪郭線の移動
の必要がなく、異なればS54においてdlとDLが等しくな
るようにアウトラインデータが修正される。第9図中に
ハッチングで示す円が2本の構成線内に含まれる画素数
dlであり、構成線H1は第9図(a)に示すようにdlは2
となりDLと等しいためS55へ処理を移す。構成線H2は第
9図(b)に示すようにdlは1となりDLと異なることか
らS54で輪郭線の移動を行う。
In S53, the number of pixels included in the two constituent lines is calculated as the actual width d.
l , d l and D L are compared. Without the need for movement of equal, outline, d l and D L are equal as outline data step S54 Different is modified. The number of pixels included in the two constituent lines with circles indicated by hatching in FIG.
is d l, the d l as the configuration lines H1 shown in Figure No. 9 (a) 2
Since it is equal to D L , the process proceeds to S55. Configuration lines H2 to move contour in S54 since the d l as shown in Figure No. 9 (b) differs from 1 next D L.

S54では横線を画定する2本の輪郭線の内少なくとも
一方をX軸に平行に移動させ、幅方向の画素数をDLに等
しくなるように輪郭線を移動させる。移動についての方
法は予め決められており、本実施例では横線については
y座標値の大きい方の輪郭線を移動させることにする。
構成線H2は1ドット増やすように輪郭線を移動させる必
要があり、第9図(c)に示すように一点鎖線で示され
るもともとの輪郭線をy座標の増加する方向に実線で示
す位置まで移動させればd1は2ドットとなるようい輪郭
線は移動される。
At least one of the two contour lines defining a horizontal step S54 is moved parallel to the X axis, causing the number of pixels width direction movement of the contour to be equal to D L. The method of movement is predetermined, and in this embodiment, the horizontal line is moved with the contour line having the larger y coordinate value.
It is necessary to move the outline so that the constituent line H2 is increased by one dot. As shown in FIG. 9 (c), the original outline indicated by the dashed line is moved to the position indicated by the solid line in the direction in which the y coordinate increases. be moved d 1 is outline have to be a two dots are moved.

この様にして1本の横線について輪郭線移動処理が行
われたらS55でn1が1増加させられた後、S56において全
部の横線について線幅の修正が行われたか否かの判定が
行われる。本実施例では横線は3本あるので判定結果は
NOとなりS52へ処理を戻す。3本の横線について処理が
行われたなら判定結果はYESとなりS511へ処理を移す。
In this way, if the contour line movement processing is performed for one horizontal line, n1 is increased by 1 in S55, and then it is determined in S56 whether the line width has been corrected for all the horizontal lines. . In this embodiment, since there are three horizontal lines, the judgment result is
No, and the process returns to S52. If the processing has been performed on the three horizontal lines, the determination result is YES, and the process proceeds to S511.

S511乃至S516は縦線についての輪郭線移動処理であ
り、縦線が横線かの違いだけで内部の処理は横線の場合
と同じである。
Steps S511 to S516 are contour line movement processing for a vertical line, and the internal processing is the same as that for a horizontal line, with the only difference being whether the vertical line is a horizontal line.

S511では縦線の線幅データか否かの判定が行われそう
であればS512〜S516が実行され、1本づつ縦線について
処理が行われる。NOであればS57へ処理が移る。
In S511, if it is determined that the data is the line width data of a vertical line, S512 to S516 are executed, and the processing is performed for each vertical line. If NO, the process proceeds to S57.

S512では幅データに対応する画素数DLを求める。In S512, the number of pixels D L corresponding to the width data is obtained.

S513では実際の幅dlとDLが比較される。等しければ輪
郭線の移動の必要がなく、異なればS514においてdlとDL
が等しくなるようにアウトラインデータが修正される。
In S513, the actual width d l is compared with D L. If they are equal, there is no need to move the contour, and if they are different, d l and D L in S514
The outline data is modified so that is equal.

S514では縦線を画定する2本の輪郭線の内少なくとも
一方をY軸に平行に移動させ、幅方向の画素数をDLに等
しくなるように輪郭線を移動させる。
At least one of the two contour lines defining a vertical line in S514 is moved parallel to the Y axis, to the number of pixels width direction movement of the contour to be equal to D L.

S515ではn2を1増加させる。In S515, n 2 is increased by one.

S516Dでは全部の縦線について線幅の修正が行われた
か否かの判定が行われる。NOであればS512へ処理を戻
す。YESであればS57へ処理を移す。
In S516D, it is determined whether or not the line width has been corrected for all the vertical lines. If NO, the process returns to S512. If YES, the process moves to S57.

S57はn1,n2のカウンタを0に戻す。S57 returns the counters of n 1 and n 2 to 0.

以上で必要に応じて輪郭線データは移動させられアウ
トラインデータが変更された。
As described above, the outline data is moved as necessary, and the outline data is changed.

S6では得られたアウトラインデータをドットデータに
変換する。
In S6, the obtained outline data is converted into dot data.

本実施例によれば、文字サイズに応じて、10ポイント
以下,10〜20ポイント,20ポイント以上の3種類に分類
し、その種類に応じた処理が行なわれる。つまり、10ポ
イント以下の文字をアウトラインデータからドットデー
タに変換しようとした時には、線幅修正がなければ、第
10図(b)に示すように線幅データに対応したドットに
変換されるが、線幅修正を行うので第10図(c)に示す
とうり3本の構成線H1,H2、H3が全て2ドットの線幅に
揃った美しいドットデータに変換できる。10〜20ポイン
トの文字は、アウトラインデータの線幅に対応したドッ
ト数となるために、デザイン上の微妙違いが生かされド
ットによる美しい文字が生成される。また、20ポイント
以上の文字は、線幅を構成するドット数1ドット違って
も見た目にはほとんど影響がないため、線幅補正処理を
省略することにより変換速度が速くなる。
According to this embodiment, according to the character size, the data is classified into three types: 10 points or less, 10 to 20 points, and 20 points or more, and the processing according to the type is performed. In other words, when trying to convert characters of 10 points or less from outline data to dot data, if there is no line width correction,
As shown in FIG. 10 (b), the dots are converted into dots corresponding to the line width data. However, since the line width is corrected, all the three constituent lines H1, H2, H3 are as shown in FIG. 10 (c). It can be converted into beautiful dot data that has a line width of 2 dots. Since the character of 10 to 20 points has the number of dots corresponding to the line width of the outline data, a subtle difference in design is utilized to create a beautiful character by dots. Further, for characters having 20 points or more, even if the number of dots constituting the line width is different by one dot, there is almost no effect on the appearance, and thus the conversion speed is increased by omitting the line width correction processing.

本実施例は文字のサイズによって3種類の処理を行な
ったが、2種類としても良い。つまり、線幅補正を行な
うか否かとして、行なう場合には全て線幅データの修正
を行なうものとするものである。
In this embodiment, three types of processing are performed according to the character size, but two types may be used. In other words, whether or not the line width correction is to be performed, the line width data is to be corrected in all cases.

又、本実施例ではS3の線幅修正指示部で印字文字のサ
イズにより線幅データ修正処理の必要、不必要を判定し
ていたが各幅データの差が、あるしきい値の範囲内か範
囲外かで処理を分岐してもよい。この場合、範囲内の時
には線幅データ修正処理を必要とし、範囲外の時には幅
データ修正処理を必要としないとする。
In the present embodiment, the necessity / unnecessity of the line width data correction processing is determined based on the size of the print character in the line width correction instructing unit in S3. The processing may be branched outside the range. In this case, it is assumed that the line width data correction process is required when the value is within the range, and the width data correction process is not required when the value is outside the range.

さらに、レーザプリンタ以外のプリンタにも本発明を
適用し得ることは勿論、プリンタ以外にも文字・記号等
のキャラクタのアウトラインデータをドットデータに変
換する必要のある装置に一般的に本発明を適用すること
ができる。
Further, the present invention can be applied not only to a printer other than a laser printer but also to an apparatus which needs to convert outline data of characters such as characters and symbols into dot data in addition to the printer. can do.

その他、いちいち例示することはしないが、当業者の
知識に基づいて種々の変形、改良を施した態様で本発明
を実施することができる。
Although not specifically exemplified, the present invention can be implemented in various modified and improved aspects based on the knowledge of those skilled in the art.

[発明の効果] 以上詳述したことから明らかなように、本発明によれ
ば、線幅補正処理において、線幅修正指示によって線幅
データ修正処理を行なったり、行なわなかったりが適宜
できるので任意のポイントサイズの文字において高品質
なドットデータを生成することができる。
[Effects of the Invention] As is apparent from the above description, according to the present invention, in the line width correction processing, the line width data correction processing can be appropriately performed or not performed according to the line width correction instruction. High-quality dot data can be generated for a character having a point size of.

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

第1図は文字“日”についてのアウトラインデータと線
幅データを表わす図であり、第2図は本発明の一実施例
であるデータ変換装置を備えたレーザプリンタの制御回
路を示すブロック図であり、第3図は上記制御回路のCP
Uを概念的に示す図であり、第4図は画素スクリーンに
文字“日”のアウトラインデータを重ねた図であり、第
5図は本発明のデータ変換処理を示すフローチャートで
あり、第6図は本発明における処理のうち線幅データを
修正する処理を示すフローチャートであり、第7図は線
幅データをグループ化した時のグループを示す図であ
り、第8図は本発明における処理のうち輪郭線移動処理
を示すフローチャートであり、第9図は輪郭線移動処理
を説明する図であり、第10図は従来技術と本発明の一実
施例により変換されたドットデータを示す図である。 図中、10はマイクロコンピュータ、12はCPU、14はキャ
ラクタROM、16はプログラムROM、20はワーキングメモ
リ、24は線幅補正データメモリ、28は入力装置、30は印
字部、32はデータ読み出し部、33は線幅修正指示部、34
は線幅修正処理部、35は線幅データ修正部、36はデータ
変換部、52は画素スクリーン、H1〜3は構成線、Wiは構
成線iの幅データ、xはx方向規定線、yはy方向規定
線、pは画素区間線
FIG. 1 is a diagram showing outline data and line width data for a character "day", and FIG. 2 is a block diagram showing a control circuit of a laser printer having a data converter according to an embodiment of the present invention. Fig. 3 shows the CP of the above control circuit.
FIG. 4 is a diagram conceptually showing U, FIG. 4 is a diagram in which outline data of the character “day” is superimposed on a pixel screen, FIG. 5 is a flowchart showing data conversion processing of the present invention, and FIG. FIG. 7 is a flowchart showing a process of correcting line width data in the process of the present invention. FIG. 7 is a diagram showing a group when the line width data is grouped, and FIG. FIG. 9 is a flow chart showing the contour moving process, FIG. 9 is a diagram for explaining the contour moving process, and FIG. 10 is a diagram showing dot data converted by the prior art and one embodiment of the present invention. In the figure, 10 is a microcomputer, 12 is a CPU, 14 is a character ROM, 16 is a program ROM, 20 is a working memory, 24 is a line width correction data memory, 28 is an input device, 30 is a printing unit, and 32 is a data reading unit. , 33 is the line width correction instruction section, 34
Is a line width correction processing unit, 35 is a line width data correction unit, 36 is a data conversion unit, 52 is a pixel screen, H1 to H3 are configuration lines, Wi is width data of a configuration line i, x is an x-direction defining line, and y is Is the y direction defining line, p is the pixel section line

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−137695(JP,A) 特開 平2−250089(JP,A) 特開 平2−164563(JP,A) 特開 平2−125768(JP,A) (58)調査した分野(Int.Cl.6,DB名) B41J 2/485 B41J 5/44 G06F 3/12 G09G 5/24────────────────────────────────────────────────── ─── Continuation of front page (56) References JP-A-3-137695 (JP, A) JP-A-2-250089 (JP, A) JP-A-2-164563 (JP, A) JP-A-2- 125768 (JP, A) (58) Field surveyed (Int. Cl. 6 , DB name) B41J 2/485 B41J 5/44 G06F 3/12 G09G 5/24

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アウトラインデータによって表されるキャ
ラクタの輪郭を、互いに直交するX軸方向とY軸方向と
にそれぞれ平行な複数の規定線により画素を規定する画
素スクリーンに重ね合わせたと想定した場合に、キャラ
クタを構成するキャラクタ構成線内に一定基準を満たす
状態で含まれる画素に対応するドットデータをキャラク
タ構成線の存在を表すデータに設定し、アウトラインデ
ータをドットデータに変換するデータ変換手段を備えた
データ変換装置において、 前記キャラクタを構成する複数のキャラクタ構成線の少
なくとも一つを指定するとともにその構成線の幅を示す
線幅データを記憶する線幅データ記憶手段と、 前記線幅データのうち2つ以上の線幅データをグループ
化し、そのグループ化された線幅データをグループ毎に
同一の線幅データに修正する線幅データ修正手段と、 前記線幅データ修正手段による修正を行なうか否かを指
示する修正指示手段と、 前記線幅データにより指定されたキャラクタ構成線を前
記幅の方向において画定する2本の輪郭線内に含まれる
画素のその幅方向における数が前記線幅データに対応す
る数ではない場合に、前記2本の輪郭線の少なくとも一
方を前記画素の数が前記線幅データに対応する数となる
向き及び量で前記画素スクリーンに対して相対移動させ
る輪郭線移動手段とを設け、 前記データ変換手段を前記輪郭線移動手段の移動により
得られたアウトラインデータをドットデータに変換する
ものとしたことを特徴とするデータ変換装置。
1. A case where 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 definition lines parallel to each other in an X-axis direction and a Y-axis direction that are orthogonal to each other. Data conversion means for setting dot data corresponding to pixels included in a character constituting line constituting a character in a state satisfying a predetermined standard to data representing the presence of the character constituting line, and converting outline data to dot data. A line width data storage unit that specifies at least one of a plurality of character constituent lines constituting the character and stores line width data indicating a width of the constituent line; Group two or more line width data and group the line width data for each group Line width data correcting means for correcting to the same line width data; correction instructing means for instructing whether or not to perform correction by the line width data correcting means; When the number of pixels included in the two contours defined in the direction of the width direction in the width direction is not the number corresponding to the line width data, at least one of the two contours is determined by the number of the pixels. Contour line moving means for relative movement with respect to the pixel screen in a direction and amount corresponding to the line width data, wherein the data conversion means converts outline data obtained by moving the contour line moving means; A data conversion device for converting into dot data.
JP29111890A 1990-10-29 1990-10-29 Data converter Expired - Fee Related JP2841829B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29111890A JP2841829B2 (en) 1990-10-29 1990-10-29 Data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29111890A JP2841829B2 (en) 1990-10-29 1990-10-29 Data converter

Publications (2)

Publication Number Publication Date
JPH04164662A JPH04164662A (en) 1992-06-10
JP2841829B2 true JP2841829B2 (en) 1998-12-24

Family

ID=17764692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29111890A Expired - Fee Related JP2841829B2 (en) 1990-10-29 1990-10-29 Data converter

Country Status (1)

Country Link
JP (1) JP2841829B2 (en)

Also Published As

Publication number Publication date
JPH04164662A (en) 1992-06-10

Similar Documents

Publication Publication Date Title
US7945114B2 (en) Image transform method for obtaining expanded image data, image processing apparatus and image display device therefore
JP3189276B2 (en) Data converter
JP2909273B2 (en) Outline font line width adjusting method and apparatus
JP2861194B2 (en) Data converter
JPH0728451A (en) Data conversion device
JP2876942B2 (en) Data converter
JP2841829B2 (en) Data converter
JP3082228B2 (en) Data converter
JP3092172B2 (en) Data converter
JP2841631B2 (en) Data converter
JPH04280296A (en) Contour data processing device
JP2861127B2 (en) Data converter
JP2881924B2 (en) Data storage device
JP3169013B2 (en) Data output device
JP3057811B2 (en) Data converter
JPH05341763A (en) Device for generating character
JP2861201B2 (en) Data converter
JPH0392897A (en) Pattern generating device
JP3087511B2 (en) Data converter
JP3039214B2 (en) Data converter
JP3024479B2 (en) Data converter
JPH02231166A (en) Data converter
JP3057963B2 (en) Data converter
JPH0784739A (en) Data converter
JPH09185358A (en) Method and device for image data output

Legal Events

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

Free format text: PAYMENT UNTIL: 20071023

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20081023

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11

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

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20101023

LAPS Cancellation because of no payment of annual fees