JP2757411B2 - Data converter - Google Patents

Data converter

Info

Publication number
JP2757411B2
JP2757411B2 JP1009399A JP939989A JP2757411B2 JP 2757411 B2 JP2757411 B2 JP 2757411B2 JP 1009399 A JP1009399 A JP 1009399A JP 939989 A JP939989 A JP 939989A JP 2757411 B2 JP2757411 B2 JP 2757411B2
Authority
JP
Japan
Prior art keywords
data
line
character
outline
coordinate
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
JP1009399A
Other languages
Japanese (ja)
Other versions
JPH02188789A (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 JP1009399A priority Critical patent/JP2757411B2/en
Priority to US07/410,872 priority patent/US5018217A/en
Priority to FR8912569A priority patent/FR2637101B1/en
Priority to DE3932024A priority patent/DE3932024C2/en
Priority to GB8921723A priority patent/GB2224623B/en
Publication of JPH02188789A publication Critical patent/JPH02188789A/en
Application granted granted Critical
Publication of JP2757411B2 publication Critical patent/JP2757411B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、文字・記号等のキャラクタの輪郭を表すア
ウトラインデータをビットデータに変換するデータ変換
装置に関するものであり、特に、キャラクタ構成線の端
部の処理に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device for converting outline data representing the outline of a character such as a character or a symbol into bit data, and in particular, to an end of a character constituent line. This is related to the processing of.

従来の技術 文字・記号等キャラクタを表すデータをコンピュータ
を用いて処理し、印字,ディスプレイ表示など何等かの
形で表示する場合、最小処理単位である画素毎にビット
データを形成することが広く行われている。この際、表
示されるキャラクタ全部について予めビットデータを作
成し、メモリに記憶させると極めて容量の大きいメモリ
が必要となるため、特公昭53−41017号公報に記載され
ているようにキャラクタをその輪郭を表すアウトライン
データで記憶させ、印字,ディスプレイ表示等の表示時
にデータ変換手段を備えた装置によりビットデータに変
換することが望ましい。
2. Description of the Related Art When data representing characters such as characters and symbols is processed by a computer and displayed in any form such as printing or display, it is widely used to form bit data for each pixel, which is the minimum processing unit. Have been done. At this time, if bit data is created in advance for all the characters to be displayed and stored in the memory, an extremely large memory is required. Therefore, as described in Japanese Patent Publication No. It is desirable to store the data as outline data representing the data, and to convert the data into bit data by a device equipped with data conversion means at the time of display such as printing or display.

このアウトラインデータをビットデータに変換するに
は画素スクリーンが用いられる。画素スクリーンは、一
平面内において互に直交するX軸とY軸とにそれぞれ平
行な複数の規定線により画素を規定するものであり、そ
の画素スクリーンにキャラクタの輪郭を重ね合せた場合
に、輪郭内に一定の基準以上の部分が含まれる画素に対
応するビットデータをキャラクタ構成線の存在を表すデ
ータとするものである。アウトラインデータはデザイナ
がデザインしたキャラクタのアウトラインに基づいて求
められ、キャラクタの構成線の端部が半円形,三角形等
とされて装飾されることがある。
To convert the outline data into bit data, a pixel screen is used. The pixel screen defines pixels by a plurality of definition lines parallel to the X-axis and the Y-axis, which are orthogonal to each other in one plane. When a character outline is superimposed on the pixel screen, the outline is determined. The bit data corresponding to the pixels in which a portion equal to or more than a predetermined reference is included is used as data representing the presence of a character configuration line. The outline data is obtained based on the outline of the character designed by the designer, and the end of the constituent line of the character may be decorated with a semicircle, a triangle, or the like.

発明が解決しようとする課題 しかし、画素スクリーンを用いるデータ変換装置によ
ってアウトラインデータをビットデータに変換し、キャ
ラクタを表示する場合には、キャラクタが表示される位
置によって同じキャラクタの構成線であってもその内側
に一定の基準以上含まれる画素の数,位置等が異なり、
キャラクタ構成線の内側に含まれる画素の数が少ない場
合にはキャラクタ構成線の端部の形状がまちまちにな
り、あるいは不格好になる。キャラクタ構成線の内側に
含まれる画素の数が少ない場合とは、キャラクタを複数
の異なるサイズで表示することができる表示装置におい
て小さいサイズでキャラクタを表示する場合、あるいは
もともとキャラクタを表示する画素数が少ない表示装置
においてキャラクタ構成線を装飾しようとする場合等で
あり、キャラクタを表示するための画素数が少なけれ
ば、キャラクタの表示位置の違いによる装飾端部の形状
の違いが顕著となって見映が悪くなる。
However, when the outline data is converted into bit data by a data conversion device using a pixel screen and a character is displayed, even if the character is a constituent line of the same character depending on the position where the character is displayed. The number, position, etc. of pixels included within a certain standard or more are different,
When the number of pixels included inside the character constituent line is small, the shape of the end of the character constituent line becomes uneven or unnatural. The case where the number of pixels included inside the character constituent line is small means that the character is displayed in a small size on a display device capable of displaying the character in a plurality of different sizes, or the number of pixels that originally display the character is This is the case, for example, when trying to decorate a character constituent line on a small display device. If the number of pixels for displaying the character is small, the difference in the shape of the decorative end due to the difference in the display position of the character becomes noticeable. Gets worse.

本発明は、以上の事情を背景としてキャラクタ構成線
の装飾端部を見映良く表示し得るデータ変換装置を提供
することを課題として為されたものである。
It is an object of the present invention to provide a data conversion device capable of displaying a decorative end portion of a character constituent line with good visibility against the above circumstances.

課題を解決するための手段 そして、本発明の要旨は、前述のようにデータ変換手
段を備え、画素スクリーンを用いてアウトラインデータ
をビットデータに変換する装置において、第1図に示す
ように、(a)前記画素スクリーンと同じ複数の規定線
上に設定され、前記キャラクタ構成線の端部を半円形,
三角形等に装飾する装飾端部を表す装飾パターンデータ
を記憶する装飾パターンデータ記憶手段と、(b)キャ
ラクタ構成線に装飾端部が存在するとき、装飾パターン
データ記憶手段に記憶された装飾パターンデータに基づ
いて装飾端部のビットデータを設定する装飾端部用ビッ
トデータ設定手段とを設けたことにある。
Means for Solving the Problems And the gist of the present invention is to provide an apparatus for converting outline data into bit data using a pixel screen as described above, including the data conversion means, as shown in FIG. a) Set on the same plurality of prescribed lines as the pixel screen, and define the end of the character constituent line as a semicircle,
Decoration pattern data storage means for storing decoration pattern data representing a decoration end to be decorated with a triangle or the like; and (b) decoration pattern data stored in the decoration pattern data storage means when a decoration end exists on a character constituent line. And a decorative end bit data setting means for setting the bit data of the decorative end based on.

作用および発明の効果 装飾パターンデータは、キャラクタを表示する画素数
が少なくてもキャラクタ構成線の装飾端部をアウトライ
ンデータに近似して見映の良い形状に表示できるように
作られる。したがって、装飾端部用ビットデータ設定手
段が、装飾パターンデータに基づいて装飾端部がパター
ン通りに表示されるようにビットデータを設定すれば、
画素数が少なくても装飾端部は見映良く揃った形状に表
示されることとなり、表示品質が向上する効果が得られ
る。
Effects and Effects of the Invention The decorative pattern data is created so that the decorative end of the character constituent line can be displayed in a good-looking shape by approximating the outline data even if the number of pixels for displaying the character is small. Therefore, if the decorative end bit data setting means sets the bit data based on the decorative pattern data so that the decorative end is displayed according to the pattern,
Even if the number of pixels is small, the decorative end portion is displayed in a uniform shape with good appearance, and the effect of improving the display quality can be obtained.

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

第2図はレーザプリンタの制御回路のうち、データ変
換に関する部分を主として示す図である。この制御回路
の主体を成すマイクロコンピュータ部10は、CPU12,キャ
ラクタROM14,装飾パターンROM15,プログラムROM16,テキ
ストメモリ18,ワーキングメモリ20,交点座標メモリ22,
ビットデータメモリ24を備えている。これらCPU12等は
バス28により接続されており、バス28には入力装置30お
よび印字部32が接続されている。入力装置30は必要なデ
ータをマイクロコンピュータ部10に入力するものであ
り、印字部32はマイクロコンピュータ部10からの指令に
基づいてレーザプリント方式により印字を行う部分であ
る。なお、本レーザプリンタの解像度は300Dot/Inchと
する。
FIG. 2 is a diagram mainly showing a part related to data conversion in a control circuit of the laser printer. The microcomputer unit 10, which forms the main part of the control circuit, includes a CPU 12, a character ROM 14, a decorative pattern ROM 15, a program ROM 16, a text memory 18, a working memory 20, an intersection coordinate memory 22,
A bit data memory 24 is provided. The CPU 12 and the like are connected by a bus 28, and an input device 30 and a printing unit 32 are connected to the bus 28. The input device 30 inputs necessary data to the microcomputer unit 10, and the printing unit 32 is a unit that performs 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図に概念的に示すようにデータ読出
部36,キャラクタの輪郭線と後述する画素スクリーンの
x方向規定線xとの交点の座標を求める交点座標算出部
38,ビットデータの設定を行うデータ設定部40等が設け
られている。テキストメモリ18は、入力装置30から入力
されるコードデータから成る文字データを記憶するもの
であり、ワーキングメモリ20は、プログラム実行時に必
要なデータを記憶するものである。また、交点座標メモ
リ22には交点座標算出部38により求められた座標値が記
憶され、ビットデータメモリ24にはデータ設定部40の設
定により得られるビットデータが記憶される。
As shown conceptually in FIG. 3, the CPU 12 includes a data reading unit 36, an intersection coordinate calculating unit for obtaining coordinates of an intersection between a character outline and an x-direction defining line x of a pixel screen described later.
38, a data setting unit 40 for setting bit data is provided. The text memory 18 stores character data composed of code data input from the input device 30, and the working memory 20 stores data necessary for executing a program. The intersection coordinate memory 22 stores the coordinate values obtained by the intersection coordinate calculation unit 38, and the bit data memory 24 stores bit data obtained by the setting of the data setting unit 40.

キャラクタROM14には、アルファベットその他の文字
や記号等キャラクタのアウトラインデータが記憶されて
いる。本レーザプリンタによって印字されるキャラクタ
は、セリフにより装飾され、さらに、そのセリフが装飾
部を有する形状にデザインされている。アルファベット
の“F"を例に取れば、第5図に示されるように、“F"を
構成するために不可欠な複数本のキャラクタ構成線44の
うち、他のキャラクタ構成線44につながっていない端部
にキャラクタ構成線44と公差するセリフ46が付けられる
とともに、セリフ46の両端部がそれぞれ半円形の装飾端
部48とされているのである。
The character ROM 14 stores outline data of characters such as alphabets and other characters and symbols. Characters printed by the present laser printer are decorated with lines, and the lines are designed in a shape having a decorative portion. Taking the letter "F" as an example, as shown in FIG. 5, it is not connected to another character forming line 44 among a plurality of character forming lines 44 indispensable for forming "F". The ends are provided with serifs 46 which are in tolerance with the character constituent line 44, and both ends of the serifs 46 are semicircular decorative ends 48, respectively.

キャラクタの輪郭を決定する座標面は、第5図に示さ
れるように、縦(Y軸),横(X軸)がそれぞれ1000×
1000の大きさとされており、アルファベットの大文字は
Y軸の座標値の200から1000までの間で描かれ、小文字
は0から200の間も使って描かれる。X軸方向に関して
は座標面の中央と文字の中心とが一致させられる。この
ような座標面上においてキャラクタの輪郭がデザインさ
れるとき、キャラクタを構成するキャラクタ構成線44は
所定の幅を有し、輪郭線50によって囲まれて成るものと
されるとともに、セリフ46は、X軸あるいはY軸に平行
な線とされる。アウトラインデータは“F"を例に取って
示すように輪郭線50の図中黒丸印が付されている点と点
とを結ぶ線素毎に作成され、その線素の種類および両端
の点毎の座標等を含んでいる。これら各点の座標は輪郭
線50上に定められた一定の方向(図中矢印で示されてい
る)に沿って順番に記憶され、各線素の両端の2点のう
ち、先に記憶される点が始点であり、後に記憶される点
が終点である。アウトラインデータは、線素が直線の場
合には直線データおよび始点,終点の各座標を含み、曲
線の場合には曲線データ,曲線の関数式および始点,終
点,補助点の各座標データを含み、円弧の場合には円弧
データおよび始点,終点,円の中心点の各座標データを
含むものとされる。また、線素が装飾端部48の場合に
は、始点,終点,円弧の向きおよび装飾端部であること
を表す装飾端部指定データを含むものとされる。キャラ
クタROM14にはまた、各キャラクタ毎に線素の数Nが記
憶されている。
As shown in FIG. 5, the coordinate plane for determining the outline of the character has a vertical (Y-axis) and a horizontal (X-axis) of 1000 ×
It has a size of 1000. Uppercase letters of the alphabet are drawn between 200 and 1000 of the Y-axis coordinate value, and lowercase letters are drawn using between 0 and 200. In the X-axis direction, the center of the coordinate plane is matched with the center of the character. When the outline of the character is designed on such a coordinate plane, the character constituting line 44 constituting the character has a predetermined width and is surrounded by the outline 50. It is a line parallel to the X axis or the Y axis. The outline data is created for each line element connecting the points marked with a black circle in the outline 50 as shown by taking “F” as an example, and the type of the line element and each point at both ends are created. And the like. The coordinates of these points are sequentially stored along a fixed direction (indicated by an arrow in the figure) defined on the contour 50, and the two points at both ends of each line element are stored first. The point is the start point, and the point stored later is the end point. When the line element is a straight line, the outline data includes the straight line data and the coordinates of the start point and the end point. When the line element is a curve, the outline data includes the curve data, the function formula of the curve, and the coordinate data of the start point, the end point, and the auxiliary point. In the case of an arc, it includes the arc data and the coordinate data of the start point, the end point, and the center point of the circle. When the line element is the decorative end portion 48, it includes the decorative end portion designation data indicating the start point, the end point, the direction of the arc, and the decorative end portion. The character ROM 14 also stores the number N of line elements for each character.

本レーザプリンタにおいてアウトラインデータのビッ
トデータへの変換は、第6図に示される画素スクリーン
52を用いて行われる。画素スクリーン52はアウトライン
データをビットデータに変換するための計算上のもので
あるが、ここでは理解を容易にするために実在するもの
として図示することとする。また、ここにおいて画素と
は、レーザにより印字が行われる際の最小印字単位であ
り、画素スクリーン52は、一平面内において互に直交
し、X軸方向とY軸方向とにそれぞれ平行であって、等
間隔に設けられた複数の画素区間線pにより画素を規定
している。本実施例において画素は正方形とされてお
り、画素毎に印字を行うか否かのビットデータが作成さ
れる。また、各画素の中心点(以下、画素中心点と称す
る)を通り、X軸方向とY軸方向とにそれぞれ平行なx
方向規定線xとy方向規定線yとが設定されており、各
画素の位置は画素中心点の座標で表される。なお、画素
は矩形その他の形状とすることも可能である。
In this laser printer, the conversion of outline data into bit data is performed by the pixel screen shown in FIG.
52. The pixel screen 52 is a computational one for converting outline data into bit data, but is shown here as an actual one for easy understanding. The pixel here is a minimum printing unit when printing is performed by the laser, and the pixel screens 52 are orthogonal to each other in one plane, and are respectively parallel to the X-axis direction and the Y-axis direction. , Pixels are defined by a plurality of pixel section lines p provided at equal intervals. In this embodiment, the pixels are square, and bit data indicating whether or not to perform printing is created for each pixel. Further, x which passes through the 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.
A direction defining line x and ay direction defining line y are set, and the position of each pixel is represented by the coordinates of a pixel center point. Note that the pixel may have a rectangular shape or another shape.

画素スクリーン52は印字用紙の印字面に対応して想定
されるものであるが、第6図には理解を容易にするため
に1キャラクタの一部を取り出して示してある。したが
って、画素スクリーン52全体においてx方向規定線x,y
方向規定線yに実際に付される目盛値は、第6図におい
てx方向規定線x,y方向規定線yに付されている目盛値
に適宜の整数をそれぞれ加えた値となるが、ここでは1
キャラクタ分についてのみ考えることとする。
The pixel screen 52 is supposed to correspond to the printing surface of the printing paper, but FIG. 6 shows a part of one character taken out for easy understanding. Therefore, in the entire pixel screen 52, the x-direction defining lines x, y
The scale value actually given to the direction defining line y is a value obtained by adding an appropriate integer to the scale value given to the x direction defining line x and the y direction defining line y in FIG. Then 1
Consider only the characters.

アウトラインデータのビットデータの変換は、キャラ
クタの輪郭を画素スクリーン52に重ね合わせたと想定し
て行われ、本実施例においてはキャラクタの輪郭内の各
画素にドットが形成されるようになっており、その画素
のビットデータが1とされる。輪郭内には1個の画素の
全部または一部が含まれることとなるが、ビットデータ
への具体的な変換については後に詳述する。
The conversion of the bit data of the outline data is performed on the assumption that the outline of the character is superimposed on the pixel screen 52, 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. The outline includes all or a part of one pixel, and specific conversion to bit data will be described later in detail.

また、本レーザプリンタは、キャラクタを4.8ポイン
ト,10ポイント,12ポイント,20ポイント,24ポイント,30
ポイント等任意のサイズで印字することができ、印字サ
イズに合わせて前記1000×1000の座標面で作られた輪郭
の座標値が換算される。1画素の1辺の長さを1で表す
座標面を画素スクリーン52上に想定して座標値の換算が
行われるのであり、BポイントのキャラクタがC×C画
素で表されるとすれば、1000×1000の座標面上における
輪郭を決定する各点の座標値にC/1000を掛ければ上記画
素スクリーン52上に想定した座標面上の座標値が得られ
るのである。ここでは1個のキャラクタが50×50画素で
表される12ポイントで印字を行う場合について説明す
る。第6図の画素スクリーン52に付された数字はこの場
合の座標値である。なお、キャラクタの輪郭を画素スク
リーン52に重ね合わせる際には、印字位置データに基づ
いて各キャラクタの基準点の画素スクリーン52上におけ
る座標値の決定も行われ、得られた基準点の座標値と上
記換算された座標値とを用いて重ね合わせが行われる。
In addition, this laser printer can display characters of 4.8 points, 10 points, 12 points, 20 points, 24 points, 30 points.
It can be printed in any size such as points, and the coordinate values of the contour created on the 1000 × 1000 coordinate plane are converted according to the print size. The coordinate value conversion is performed by assuming a coordinate plane representing the length of one side of one pixel as 1 on the pixel screen 52. If the character at the point B is represented by C × C pixels, By multiplying the coordinate value of each point for determining the contour on the coordinate plane of 1000 × 1000 by C / 1000, the coordinate value on the coordinate plane assumed on the pixel screen 52 can be obtained. Here, a case will be described in which one character performs printing at 12 points represented by 50 × 50 pixels. The numbers given to the pixel screen 52 in FIG. 6 are the coordinate values in this case. When the outline of the character is superimposed on the pixel screen 52, the coordinate value of the reference point of each character on the pixel screen 52 is also determined based on the print position data. Superposition is performed using the converted coordinate values.

このようにキャラクタの輪郭の画素スクリーン52上に
おける位置はキャラクタの大きさの他、印字位置にも影
響されるため、同じキャラクタでも輪郭内に含まれる画
素数が異なり、キャラクタ構成線44の形状や幅に違いが
生ずることがある。この違いは、印字サイズが大きい場
合にはそれほど目立たないが、印字サイズが小さい場合
には顕著となる。アルファベットの“F"を例に取れば、
12ポイントで印字する場合には第19図に示されるように
ドットが形成される。黒の正方形1個が1ドットを表す
が、この図から明らかなように、複数ある円弧状の装飾
端部48が異なる形状に印字され、見映の良い印字が得ら
れないのである。これに対し、本レーザプリンタにおい
ては印字サイズが12ポイント以下の場合に装飾端部48を
表すビットデータを装飾パターンデータに基づいて設定
し、端部の形状の揃った美しい印字が得られるようにさ
れており、そのために装飾パターンROM15に装飾パター
ンデータが記憶されている。
As described above, the position of the outline of the character on the pixel screen 52 is affected not only by the size of the character but also by the printing position. Therefore, the number of pixels included in the outline of the same character is different, and the shape and the shape of the character constituent line 44 are different. Differences in width may occur. This difference is not so noticeable when the print size is large, but becomes noticeable when the print size is small. Taking the letter "F" as an example,
When printing at 12 points, dots are formed as shown in FIG. One black square represents one dot, but as is apparent from this figure, a plurality of arc-shaped decorative ends 48 are printed in different shapes, and a print with good appearance cannot be obtained. On the other hand, in the present laser printer, when the print size is 12 points or less, the bit data representing the decorative end portion 48 is set based on the decorative pattern data so that a beautiful print with a uniform end shape can be obtained. The decoration pattern data is stored in the decoration pattern ROM 15 for that purpose.

装飾パターンデータは、座標面上において画素スクリ
ーン52のx方向規定線xおよびy方向規定線yと同じ複
数の規定線x′,y′上に設定され、座標で記憶されてい
る。これら規定線x′,y′の交点は画素中心点に相当
し、半円形を見映良く表示し得る交点群が設定され、そ
れらのうち半円形のアウトラインに沿った座標値がパタ
ーンデータとして記憶されている。半円形を構成する全
部の交点の座標値を記憶しないのは、後述するように本
プリンタにおいては、キャラクタ構成線44毎にx方向規
定線xとの交点を2個ずつ求め、それら交点間のビット
データを一挙にキャラクタの存在を表すデータに設定す
るようにされているからである。また、座標値は、その
半円形を表す交点群に対してセリフを表す交点群を想定
するとき、そのセリフ交点群のうち半円形のアウトライ
ンの始点に最も近い交点を(0,0)として設定される。
それは、アウトラインデータを構成する線素のメモリへ
の記憶順序と、後述する線素とx方向規定線xとの交点
を求める順序とが同じとされており、いずれの線素につ
いても始点側から先に交点のx座標値が求められるた
め、この始点側に基準座標を設定すれば同種類の線素に
ついて同じ装飾パターンデータを用いることができるか
らである。
The decorative pattern data is set on a plurality of prescribed lines x ', y' which are the same as the x-directional prescribed line x and the y-directional prescribed line y of the pixel screen 52 on the coordinate plane, and are stored as coordinates. The intersection of these prescribed lines x ', y' corresponds to the pixel center point, and a group of intersections capable of displaying a semicircle with good visibility is set, and the coordinate values along the semicircular outline are stored as pattern data. Have been. The reason that the coordinate values of all the intersections forming the semicircle are not stored is that, in the present printer, two intersections with the x-direction defining line x are obtained for each character constituent line 44, and This is because bit data is set at once to data representing the presence of a character. Also, when assuming a group of intersections representing serifs with respect to the group of intersections representing the semicircle, the intersection closest to the start point of the semicircular outline in the group of serif intersections is set as (0,0). Is done.
That is, the order in which the line elements constituting the outline data are stored in the memory is the same as the order in which the intersection between the line element described later and the x-direction defining line x is obtained. This is because the x-coordinate value of the intersection is obtained first, so that the same decorative pattern data can be used for the same type of line element by setting the reference coordinates on the starting point side.

装飾パターンデータはキャラクタ構成線44の幅の大き
さ毎に設定されている。この場合、幅とは、装飾端部48
を有するセリフ46がX軸に平行な直線の場合にはY軸方
向においてセリフ46を構成する画素の数であり、セリフ
46がY軸に平行な直線の場合にはX軸方向においてセリ
フ46を構成する画素の数である。また、各幅毎に向きが
4種類に異なるパターンデータが記憶されている。X軸
方向において座標値が大きい側に突のパターンデータ
(右向きパターンデータ)と、小さい側に突のパターン
データ(左向きパターンデータ)と、Y軸方向において
座標値が大きい側に突のパターンデータ(上向きパター
ンデータ)と、小さい側に突のパターンデータ(下向き
のパターンデータ)とが記憶されているのである。第13
図(a)〜(d),第14図(a)〜(d),第15図
(a)〜(d)にそれぞれ、幅が3画素,4画素,5画素の
装飾パターンデータを示す。これらの図において斜線の
施された小円の座標値が装飾パターンデータとして記憶
されている。幅が4画素の場合を例に取れば、装飾パタ
ーンデータのうち(a)の右向きパターンデータは、
(1,0),(2,1),(2,2),(1,3)であり、(b)の
左向きパターンデータは(−1,0),(−2,−1),
(−2,−2),(−1,−3)である。また、(c)の上
向きパターンデータは、(0,1),(−1,+2),(−
2,+2),(−3,+1)であり、(d)の下向きパター
ンデータは(0,1),(+1,−2),(+2,−2),
(+3,−1)である。
The decorative pattern data is set for each width of the character constituent line 44. In this case, the width is the decorative end 48
Is the number of pixels constituting the serif 46 in the Y-axis direction when the serif 46 having a
If 46 is a straight line parallel to the Y axis, it is the number of pixels forming the serif 46 in the X axis direction. Also, pattern data having four different directions are stored for each width. In the X-axis direction, the pattern data of the protrusion on the side with the larger coordinate value (rightward pattern data), the pattern data of the protrusion on the smaller side (leftward pattern data), and the pattern data of the protrusion on the side with the larger coordinate value in the Y-axis direction ( Upward pattern data) and protruding pattern data on the smaller side (downward pattern data) are stored. Thirteenth
Figures (a) to (d), FIGS. 14 (a) to (d), and FIGS. 15 (a) to (d) show decorative pattern data having a width of 3, 4, and 5 pixels, respectively. In these figures, the coordinate values of the hatched small circles are stored as decorative pattern data. Taking the case where the width is 4 pixels as an example, the rightward pattern data of (a) in the decorative pattern data is
(1,0), (2,1), (2,2), (1,3), and the leftward pattern data in (b) is (-1,0), (−2, −1),
(−2, −2) and (−1, −3). The upward pattern data in (c) is (0, 1), (-1, +2), (-
2, +2) and (-3, +1), and the downward pattern data in (d) is (0, 1), (+1, -2), (+2, -2),
(+3, -1).

プログラムROM16には、第4図にフローチャートで示
されるビットデータ変換用のプログラムを始めとして、
印字に必要な種々のプログラムが記憶されている。以
下、アルファベットの“F"を例に取り、アウトラインデ
ータのビットデータの変換について説明する。なお、印
字については本発明を理解する上で不可欠ではないため
詳細な説明は省略するが、本レーザプリンタにおいては
印字が1頁毎に行われる。テキストメモリ18に記憶され
た文書データのうち1頁分のデータが読み出され、その
データを構成するキャラクタのアウトラインデータがビ
ットデータに変換されて印字が行われるのである。
The program ROM 16 includes a program for bit data conversion shown in the flowchart of FIG.
Various programs necessary for printing are stored. Hereinafter, the conversion of the bit data of the outline data will be described using the letter “F” as an example. Since the printing is not essential for understanding the present invention, a detailed description thereof will be omitted. However, in this laser printer, printing is performed for each page. Data of one page is read out of the document data stored in the text memory 18, and outline data of characters constituting the data is converted into bit data and printing is performed.

まず、ステップS1(以下、S1と略記する。他のステッ
プについても同じ。)において処理されるキャラクタの
アウトラインデータ,線素の数および印字サイズが読み
出された後、S2において装飾端部48の変更が必要である
か否かの判定が行われる。この判定は、印字サイズが12
ポイント以下であるか否かにより行われ、20ポイント,2
4ポイント,30ポイント等の場合には判定結果はNOとな
り、S3〜S6が繰り返し実行されてビットデータが設定さ
れる。本実施例においてビットデータの設定は、キャラ
クタ構成線44とx方向規定線xとの交点を2個ずつ求
め、それら交点間のビットデータを一挙にキャラクタ構
成線44の存在を表すデータに変換することにより行われ
るようにされており、これら交点は輪郭線46を構成する
線素毎に求められる。以下、このx座標を求めるための
規則を第7図ないし第12図に基づいて説明する。
First, after the outline data, the number of line elements, and the print size of the character to be processed are read in step S1 (hereinafter, abbreviated as S1; the same applies to other steps), the decoration end 48 of the decoration end 48 is read in S2. A determination is made whether a change is needed. This judgment is made when the print size is 12
It is done depending on whether it is below the point, 20 points, 2
In the case of 4 points, 30 points, etc., the determination result is NO, and S3 to S6 are repeatedly executed to set bit data. In the present embodiment, the bit data is set by finding two intersections between the character constituent line 44 and the x-direction defining line x, and converting the bit data between the intersections into data representing the existence of the character constituent line 44 at once. These intersections are obtained for each line element constituting the outline 46. Hereinafter, rules for obtaining the x coordinate will be described with reference to FIGS. 7 to 12.

線素がx方向規定線x,y方向規定線yのいずれとも交
差する直線の場合には、第7図に示されるように、その
線素の始点から終点に至るまで複数のx方向規定線xと
×印で示される位置において交差することとなるが、交
点のx座標は、x方向規定線xと線素との実際の交点の
x座標ではなく、その線素が画定するキャラクタ構成線
の内側(図中斜線が施されている部分)にあって実際の
交点に最も近い画素の中心点(図中○印が付されている
点)のx座標が交点とされるのである。x方向規定線x
と線素との実際の交点が画素の中心点と一致する場合に
は、その交点のx座標がそのままx方向規定線xと線素
との交点とされる。
In the case where the line element is a straight line that intersects both the x-direction defining line x and the y-direction defining line y, as shown in FIG. 7, a plurality of x-direction defining lines extend from the start point to the end point of the line element. Although they intersect at the positions indicated by x and x, the x coordinate of the intersection is not the x coordinate of the actual intersection of the x direction defining line x and the line element, but the character constituent line defined by that line element The x-coordinate of the center point (the point marked with a circle in the figure) of the pixel which is inside (the shaded portion in the drawing) and closest to the actual intersection is set as the intersection. x direction regulation line x
If the actual intersection of the pixel and the line element coincides with the center point of the pixel, the x-coordinate of the intersection is taken as the intersection of the x-direction defining line x and the line element.

また、第8図に示されるように線素がx方向規定線x
と平行な場合および第9図に示されるように線素のx方
向規定線xに対する傾斜角度が小さく、かつ、短く、隣
接する2本のx方向規定線xの間に位置する場合には、
交点はないものとして処理される。さらに、第10図に示
されるように、x方向規定線x上に位置する線素の両端
にそれぞれ傾斜線素がつながっている場合にはx方向規
定線x上の線素については交点がないものとされ、2本
の傾斜線素の両端の点については、それらのうち外側
(図において左側)の点についてのみ交点の座標を求
め、内側の点については交点はないものとする。さらに
また、第11図に示されるように2本の傾斜線素の交差
し、それら線素の交点近傍においては1本のx方向規定
線x上に位置する画素の中心が1個しかないというよう
にキャラクタ構成線が部分的に細い場合には、2本の傾
斜線素のそれぞれについて同じ画素の中心のx座標を交
点のx座標とする。したがって、これら2本の傾斜線素
の端がちょうどx方向規定線x上において一致する場合
であっても、同一のx座標が2個交点のx座標として求
められることとなる。
In addition, as shown in FIG.
In the case of being parallel to and the case where the inclination angle of the line element with respect to the x-direction defining line x is small and short as shown in FIG.
Treated as having no intersection. Further, as shown in FIG. 10, when the inclined line elements are connected to both ends of the line element located on the x direction defining line x, there is no intersection for the line element on the x direction defining line x. It is assumed that, for the points at both ends of the two inclined line elements, the coordinates of the intersection are obtained only for the outer (left side in the figure) point, and there is no intersection for the inner point. Furthermore, as shown in FIG. 11, two inclined line elements intersect, and there is only one center of the pixel located on one x-direction defining line x near the intersection of these line elements. As described above, when the character constituent line is partially thin, the x coordinate of the center of the same pixel is set as the x coordinate of the intersection for each of the two inclined line elements. Therefore, even when the ends of these two inclined line elements exactly coincide with each other on the x-direction defining line x, the same x coordinate is obtained as the x coordinate of the two intersections.

さらに、第12図に示されるように2本の輪郭線素がy
方向規定線yに平行であって間隔が狭く、それらの間に
画素中心点が含まれない場合には次のようにして交点の
x座標を求める。2本の輪郭線素のうちx座標値の小さ
い方の輪郭線素とx方向規定線xとの交点の座標を、そ
れら実際の交点よりキャラクタ構成線が存在する側の画
素中心点の座標とするとともに、他方の輪郭線素につい
ても同じ座標を交点のx座標とする。なお、上記2本の
輪郭線素の間に画素中心点が含まれている場合には、そ
の画素中心点のx座標が2個交点のx座標として求めら
れる。
Further, as shown in FIG. 12, two contour elements are y
If the interval is parallel to the direction defining line y and the interval is small and the pixel center point is not included between them, the x coordinate of the intersection is obtained as follows. The coordinates of the intersection between the contour element having the smaller x-coordinate value of the two contour elements and the x-direction defining line x are defined as the coordinates of the pixel center point on the side where the character constituent line exists from the actual intersection. At the same time, the same coordinate is set as the x coordinate of the intersection for the other contour line element. When a pixel center point is included between the two contour line elements, the x coordinate of the pixel center point is obtained as the x coordinate of the two intersections.

以上のような規則に従って求められた交点のx座標値
は、S4において交点座標メモリ22に記憶される。本実施
例の場合、x方向規定線xは1キャラクタ毎に50本ずつ
あり、各x方向規定線xの位置を表すy座標に対応して
各交点のx座標が記憶されるのであり、x方向規定線x
毎の記憶領域の先頭には交点の数が記憶される。続いて
S5においてnが1増加させられた後、S6においてnがN
以上であるか、すなわち輪郭線46を構成するすべての線
素について交点のx座標値の算出が終了したか否かの判
定が行われる。まだ終わっていない場合には判定結果は
NOとなり、次の線素について交点のx座標値が算出さ
れ、すべての線素について交点が算出されるまでS2〜S6
が繰り返し実行される。
The x-coordinate value of the intersection determined according to the above rules is stored in the intersection coordinate memory 22 in S4. In the case of the present embodiment, there are 50 x-direction defining lines x for each character, and the x-coordinate of each intersection is stored corresponding to the y-coordinate indicating the position of each x-direction defining line x. Direction defining line x
The number of intersections is stored at the beginning of each storage area. continue
After n is increased by 1 in S5, n is increased by N in S6.
It is determined whether the above is true, that is, whether or not the calculation of the x coordinate value of the intersection has been completed for all the line elements constituting the outline 46. If not, the result is
NO, the x coordinate value of the intersection for the next line element is calculated, and S2 to S6 until the intersection is calculated for all the line elements.
Is repeatedly executed.

これに対し、印字サイズが12ポイント,10ポイント等
である場合にはS2の判定結果がYESとなり、S10において
処理される線素が装飾端部48であるか否か、すなわち装
飾端部指定データを含むか否かの判定が行われる。装飾
端部48でない場合にはS10の判定結果はNOとなり、S3に
おいて前述の規則に従って線素とx方向規定線xとの交
点のx座標値が算出される。処理される線素が装飾端部
48である場合には、S11において装飾パターンROM15から
該当する装飾パターンデータが読み出される。装飾端部
48の始点と終点とから装飾端部48の幅が求められ、幅お
よび向きが同じ装飾パターンデータが読み出されるので
ある。なお、この場合の幅とは装飾端部48を画素スクリ
ーン52の所定の印字位置に重ね合わせたと想定した場合
の幅であり、本実施例においては4画素になるものとす
る。
On the other hand, when the print size is 12 points, 10 points, or the like, the determination result of S2 is YES, and whether the line element processed in S10 is the decorative end portion 48, that is, the decorative end portion designation data Is determined. If it is not the decorative end portion 48, the determination result in S10 is NO, and in S3, the x coordinate value of the intersection of the line element and the x-direction defining line x is calculated according to the above-described rule. The line element to be processed is the decorative end
If it is 48, the corresponding decoration pattern data is read from the decoration pattern ROM 15 in S11. Decorative end
The width of the decorative end 48 is determined from the start point and the end point of the 48, and the decorative pattern data having the same width and direction is read. Note that the width in this case is a width when it is assumed that the decorative end portion 48 is superimposed on a predetermined printing position on the pixel screen 52, and is assumed to be 4 pixels in this embodiment.

次いでS12においてS11で読み出された装飾パターンデ
ータに基づいて交点のx座標値が求められる。この場合
には、まず、装飾端部48が設けられたセリフ46を構成す
る画素中心点であってその装飾端部48の始点に最も近い
点の座標が求められ、この座標を基準座標とし、そのx
座標値とy座標値とに装飾パターンデータの座標値を加
えることによりx方向規定線x毎に交点のx座標値が求
められる。この場合、加算により得られるy座標値はx
方向規定線xのy座標値であり、x座標値が交点のx座
標値である。
Next, in S12, the x coordinate value of the intersection is obtained based on the decoration pattern data read in S11. In this case, first, the coordinates of a point that is the pixel center point that constitutes the serif 46 provided with the decorative end portion 48 and that is closest to the start point of the decorative end portion 48 are obtained. That x
By adding the coordinate value of the decoration pattern data to the coordinate value and the y coordinate value, the x coordinate value of the intersection point is obtained for each x direction defining line x. In this case, the y coordinate value obtained by the addition is x
The y-coordinate value of the direction defining line x is the x-coordinate value of the intersection.

第5図に示す“F"のアウトラインのうち点2を始点と
し、点3を終点とする装飾端部48を例に取って説明すれ
ば、この装飾端部48の幅は4画素であって右向きであ
り、第14図(a)の装飾パターンデータが読み出され、
第6図に×印が付された点を基準座標として装飾パター
ンデータの座標値が加算され、交点のx座標値が求めら
れる。1つの装飾端部48の全部について交点のx座標値
が求められれば、求められた座標値はS4において交点座
標メモリ22に記憶される。
In the outline of "F" shown in FIG. 5, the decorative end 48 starting from point 2 and ending at point 3 will be described as an example. The width of the decorative end 48 is 4 pixels. Rightward, the decorative pattern data of FIG. 14 (a) is read out,
The coordinate values of the decorative pattern data are added using the point marked with a cross in FIG. 6 as the reference coordinates, and the x coordinate value of the intersection is obtained. When the x-coordinate value of the intersection is obtained for all of the decorative ends 48, the obtained coordinate value is stored in the intersection coordinate memory 22 in S4.

アルファベットの“F"はまた、下向きの装飾端部48を
有している。この場合にはS11において第14図(d)に
示される装飾パターンデータが読み出され、S12におい
て基準座標を求めて装飾パターンデータを構成する座標
値が加算され、交点のx座標値が求められる。“F"は更
に上向きおよび左向きの装飾端部48を有しており、それ
らについてはそれぞれ第14図(c)および(b)の装飾
パターンデータが読み出されて交点のx座標値が求めら
れる。
The letter "F" also has a decorative end 48 facing down. In this case, the decoration pattern data shown in FIG. 14 (d) is read in S11, the reference coordinates are obtained in S12, the coordinate values constituting the decoration pattern data are added, and the x coordinate value of the intersection is obtained. . "F" has further upward and leftward decorative ends 48, from which the decorative pattern data of FIGS. 14 (c) and 14 (b) are read, and the x-coordinate value of the intersection is obtained. .

なお、キャラクタの印字位置によっては線の幅が3画
素あるいは5画素になることもある。その場合には、第
13図(a)〜(d)あるいは第15図(a)〜(d)の中
から該当する装飾パターンデータが読み出され、交点の
x座標値が求められる。ただし、線の幅が3画素である
上向きパターンデータまたは下向きパターンデータの場
合には、頂点の同じ座標値が2個ずつ記憶されることと
なる。
Note that the line width may be 3 pixels or 5 pixels depending on the print position of the character. In that case,
The corresponding decorative pattern data is read out from FIGS. 13 (a) to (d) or FIGS. 15 (a) to (d), and the x coordinate value of the intersection is obtained. However, in the case of upward pattern data or downward pattern data having a line width of three pixels, the same coordinate value of the vertex is stored two by two.

“F"を構成する全部の線素についてx方向規定線xと
の交点の座標が求められるまでS2〜S6,S10〜S12が繰り
返し実行される。これにより求められる交点の一部を第
16図に黒丸を付して示す。また、第17図には交点の個数
およびx座標値の一部がx方向規定線x毎に示されてい
る。
S2 to S6 and S10 to S12 are repeatedly executed until the coordinates of the intersection with the x-direction defining line x are obtained for all the line elements constituting "F". A part of the intersection obtained by this
Figure 16 shows a black circle. FIG. 17 shows the number of intersections and a part of the x coordinate value for each x direction defining line x.

キャラクタを構成するすべての線素について交点の算
出が終了したならば、S7においてnが0とされた後、S8
においてS4で記憶された交点のx座標値がx方向規定線
x毎に小さい順に並べ変えられるとともに、小さい順に
2個ずつ取り出されて対にされる。交点のx座標は線素
毎に求められ、S4ではx座標の値が求められた順にメモ
リ22に記憶されるため、x座標の値が大きい方の線素に
ついて小さい方の線素より先に求められることがあり、
大きさの順に記憶されているとは限らないからである。
本レーザプリンタにおいては、キャラクタ構成線が細
く、そのキャラクタ構成線を画定する2本の輪郭線素の
間に交点の座標が1個しか含まれない場合、あるいは1
つも含まれない場合でも輪郭線素毎に同一のx座標が記
憶されるようになっているため、キャラクタ構成線のど
の部分を取っても交点のx座標は2個ずつ求められる。
したがって、x座標を小さい順に並べ変えて2個ずつ対
にした場合、それら対にされた座標値の間には必ずキャ
ラクタ構成線が存在することとなり、それら座標値間の
画素に対応するビットデータを一挙に1に設定すること
ができる。なお、本実施例においては、交点を画素中心
点とする画素についてもビットデータが設定されるもの
とする。
If the calculation of the intersections is completed for all the line elements constituting the character, n is set to 0 in S7, and then in S8
In step (4), the x-coordinate values of the intersections stored in S4 are rearranged in ascending order for each x-direction defining line x, and two pieces are taken out and paired in ascending order. The x-coordinate of the intersection is obtained for each line element, and the value of the x-coordinate is stored in the memory 22 in the order in which the x-coordinate value is obtained in S4. May be required,
This is because they are not always stored in the order of size.
In this laser printer, when the character constituting line is thin and only one coordinate of the intersection is included between two contour line elements defining the character constituting line, or
Since the same x-coordinate is stored for each contour line element even when none is included, two x-coordinates of the intersection are obtained for any part of the character constituent line.
Therefore, when the x-coordinate is rearranged in ascending order and two pairs are formed, a character constituent line always exists between the paired coordinate values, and the bit data corresponding to the pixel between the coordinate values. Can be set to one at a time. In the present embodiment, it is assumed that bit data is also set for a pixel whose intersection is the pixel center point.

このように座標値が並べ変えられた後、S9においてビ
ットデータの設定が行われる。ビットデータの設定は、
1バイト単位でまとめて行われるマイクロコンピュータ
部10は1バイトのデータを並列に処理し得るものであ
り、1画素のデータは1ビットで表されるため、8個の
画素のビットデータが一挙に設定されることとなる。こ
こでは対にされた座標値が(5,18)であるとし、第18図
に基づいて説明する。なお、この座標値(5,18)は画素
スクリーン52上の実際の画素の位置を表すものとする。
After the coordinate values are rearranged in this way, bit data is set in S9. Bit data settings are
The microcomputer unit 10, which is collectively performed in units of one byte, can process one-byte data in parallel. Since one-pixel data is represented by one bit, the bit data of eight pixels is simultaneously displayed. Will be set. Here, it is assumed that the coordinate value paired is (5, 18), and a description will be given with reference to FIG. Note that the coordinate values (5, 18) represent the actual positions of the pixels on the pixel screen 52.

まず、ビットデータが1に設定されるべき画素の数を
求める。すなわち、1本のx方向規定線x上において、
対にされている2つの座標値(5,18)によって規定され
る線分の終点の座標値18から始点の座標値5を引いた
上、1を加えるのである。次に、始点の座標値より大き
い座標値であって1バイトの区切となる座標値から始点
の座標値を引く。互に隣接するバイト間の区切となるビ
ットの座標値が区切となる座標値である。画素の番号
(この番号が座標値と一致している。)は0から付され
ており、区切の画素の番号は8の倍数となる。したがっ
て、8から5を引くこととなり、引いた値3は、0から
7までの画素を1単位とするグループに含まれる画素の
うち上記始点の画素より座標値が大きい画素の数であ
る。したがって、それら3個の画素に対応するビットデ
ータがまとめて1に設定される。
First, the number of pixels whose bit data is to be set to 1 is determined. That is, on one x-direction defining line x,
The coordinate value 5 at the start point is subtracted from the coordinate value 18 at the end point of the line segment defined by the paired coordinate values (5, 18), and 1 is added. Next, the coordinate value of the start point is subtracted from the coordinate value that is larger than the coordinate value of the start point and that is a 1-byte delimiter. The coordinate value of the bit that separates adjacent bytes is the coordinate value that separates. The pixel numbers (the numbers match the coordinate values) are numbered from 0, and the pixel numbers of the divisions are multiples of 8. Therefore, 5 is subtracted from 8 and the subtracted value 3 is the number of pixels having a coordinate value larger than the pixel at the start point among the pixels included in the group in which pixels from 0 to 7 are defined as one unit. Therefore, the bit data corresponding to these three pixels are set to 1 collectively.

次に、1のビットデータを設定すべき残りの画素の中
に8個を1単位とするグループが幾つあるかが算出され
る。終点の座標値から区切の座標値のうち最小のものを
引いた後、1を加え、それにより得られる値を8で除す
るのである。18から8を引いた後、1を加え、これを8
で除せば1余り3となる。したがって、8画素を1単位
とするグループは1個であり、これら8画素についてま
とめてビットデータが1に設定された後、残りの3画素
分についてまとめてビットデータが1に設定される。以
上のようにしてx方向規定線x毎に記憶された座標値の
各々についてビットデータの設定が完了したならば、プ
ログラムの実行はメインルーチンに戻る。
Next, it is calculated how many groups each having eight bits as one unit are included in the remaining pixels to which one bit data is to be set. After subtracting the smallest coordinate value among the segmented coordinate values from the coordinate value of the end point, 1 is added, and the resulting value is divided by 8. After subtracting 8 from 18, add 1 and add 8
If you divide it by 3, you get 3. Therefore, there is one group with eight pixels as one unit, and the bit data is collectively set to 1 for these eight pixels, and then the bit data is collectively set to one for the remaining three pixels. When the setting of the bit data is completed for each of the coordinate values stored for each x-direction defining line x as described above, the program returns to the main routine.

このように本レーザプリンタにおいては、12ポイント
で印字を行う場合に装飾端部48のビットデータを装飾パ
ターンデータに基づいて設定することにより、第20図に
示すように装飾端部48の形状が揃った美しい“F"の印字
が得られる。
Thus, in the present laser printer, when printing is performed at 12 points, by setting the bit data of the decorative end 48 based on the decorative pattern data, the shape of the decorative end 48 is changed as shown in FIG. A uniform and beautiful "F" print is obtained.

また、キャラクタ構成線が存在する画素に対応するビ
ットデータの設定をまとめて行うことができ、従来のよ
うに画素毎にその画素に対応して設定されたビットデー
タが0か1かを判定しながらビットデータの設定を行わ
なくても済む上、ビットデータの設定が1バイト単位で
まとめて行われるようになっているため、1ビットずつ
設定する場合に比較して処理速度が速く、データ変換を
極めて迅速に行うことができる。
Further, it is possible to collectively set the bit data corresponding to the pixel where the character constituent line exists, and determine whether the bit data set corresponding to the pixel is 0 or 1 for each pixel as in the related art. However, since the setting of bit data is not required, and the setting of bit data is performed collectively in units of one byte, the processing speed is faster than when setting one bit at a time, and data conversion is performed. Can be performed very quickly.

以上の説明から明らかなように、本実施例において
は、装飾パターンROM15が装飾パターンデータ記憶手段
を構成し、プログラムROM16のS10〜S12を記憶する部分
およびCPU12のそれらステップを実行する部分等が装飾
端部用ビットデータ設定手段を構成している。
As is apparent from the above description, in the present embodiment, the decoration pattern ROM 15 constitutes a decoration pattern data storage unit, and a part of the program ROM 16 that stores S10 to S12 and a part of the CPU 12 that executes those steps are decorated. It constitutes an end bit data setting means.

なお、上記実施例においては装飾端部48はちょうど半
円形を成すものとされ、半円形の線素によって表示され
るようになっていたが、装飾端部48が設けられたセリフ
46の一部を含めて装飾端部としてもよく、この場合には
装飾パターンデータを半円に短い直線部が付されたもの
とすることとなる。
In the above-described embodiment, the decorative end portion 48 is formed to have a semicircular shape, and is displayed by a semicircular line element.
The decorative end may include a part of 46, and in this case, the decorative pattern data is a semicircle with a short straight line.

また、上記実施例においては、キャラクタ構成線44と
画素スクリーン52上のx方向規定線xとの交点からビッ
トデータが一挙に求められるようになっていたが、1ビ
ット毎にデータを設定するようにしてもよい。この場合
には、装飾パターンデータを装飾端部を構成する全部の
交点の座標値を有するものとし、装飾端部のビットデー
タを設定する際、パターンデータに基づいて指定される
位置のビットデータをすべてキャラクタの存在を表すデ
ータとしてもよく、あるいはアウトラインデータと画素
スクリーン52との重ね合せから設定されるビットデータ
と装飾パターンデータとを比較し、ビットデータを設定
あるいは修正してもよい。
In the above embodiment, the bit data is obtained at once from the intersection of the character constituent line 44 and the x-direction defining line x on the pixel screen 52. However, data is set for each bit. It may be. In this case, it is assumed that the decoration pattern data has the coordinate values of all the intersections constituting the decoration end, and when setting the bit data of the decoration end, the bit data at the position specified based on the pattern data is set. All may be data representing the presence of a character, or the bit data set from the superposition of the outline data and the pixel screen 52 and the decorative pattern data may be compared to set or modify the bit data.

さらに、上記実施例においては、アウトラインデータ
を画素スクリーン52上に重ね合せたときに得られる幅の
大きさに修正が加えられず、そのままビットデータが設
定されるようになっていたが、キャラクタの印字位置に
よって同じキャラクタ構成線44でも幅が異なる場合があ
る。したがって、キャラクタ構成線44の幅が一定の大き
さになるように修正し、その修正された幅に基づいて装
飾パターンデータを選択し、ビットデータを設定するよ
うにしてもよい。
Furthermore, in the above embodiment, the width obtained when the outline data is superimposed on the pixel screen 52 is not modified, and the bit data is set as it is. The width of the same character constituting line 44 may differ depending on the printing position. Therefore, the width of the character constituent line 44 may be corrected to have a certain size, and the decorative pattern data may be selected based on the corrected width, and the bit data may be set.

さらにまた、アウトラインデータは、座標のみで表す
など、他の手段により構成してもよい。座標のみで表す
場合、複数の直線により構成されるキャラクタについて
は、その輪郭の線素毎の座標データ群によってアウトラ
インデータを構成し、曲線を含むキャラクタについて
は、その曲線を画定するのに必要な複数の点の座標デー
タ群を含むようにアウトラインデータを構成する。
Furthermore, the outline data may be configured by other means, such as by expressing only the coordinates. When represented only by coordinates, for a character composed of a plurality of straight lines, outline data is composed of a group of coordinate data for each line element of the contour, and for a character including a curve, the outline data is necessary to define the curve. The outline data is configured to include a coordinate data group of a plurality of points.

また、レーザプリンタ以外のプリンタに本発明を適用
し得ることは勿論、プリンタ以外にも文字,記号等のキ
ャラクタのアウトラインデータをビットデータに変換す
る必要のある装置に一般的に本発明を適用することがで
きる。
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 character data such as characters and symbols into bit data. be able to.

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

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

第1図は本発明に係るデータ変換装置の構成を概念的に
示すブロック図である。第2図は本発明の一実施例であ
るデータ変換装置を備えたレーザプリンタの制御回路を
示すブロック図である。第3図は上記制御回路を構成す
るCPUを概念的に示す図である。第4図は上記制御回路
のプログラムROMに記憶されたプログラムのうち、デー
タ変換用プログラムを示すフローチャートである。第5
図は上記データ変換装置により変換される文字Fの輪郭
を示す図である。第6図は上記文字Fを画素スクリーン
に重ねて示す図である。第7図,第8図,第9図,第10
図,第11図および第12図はそれぞれ、上記データ変換装
置により変換されるキャラクタの輪郭を構成する線素と
x方向規定線との交点の座標の求め方を説明する図であ
る。第13図,第14図および第15図はそれぞれ、装飾端部
のパターンデータをキャラクタ構成線の幅の大きさ毎に
座標面を用いて示す図である。第16図は文字Fについて
求められる交点の位置を画素スクリーン上において示す
図であり、第17図はその交点のx座標値をx方向規定線
毎に表にして示す図である。第18図は上記交点の座標に
基づいて行われるビットデータの設定を説明する図であ
る。第19図は上記文字Fを12ポイントで印字する際にア
ウトラインデータを従来のデータ変換装置によりビット
データに変換した場合の印字を示す図である。第20図は
上記本発明の一実施例であるデータ変換装置により文字
Fのアウトラインデータをビットデータに変換した場合
の印字の一例を示す図である。 10:マイクロコンピュータ部 44:キャラクタ構成線、46:セリフ 48:装飾端部、52:画素スクリーン x:x方向規定線、y:y方向規定線
FIG. 1 is a block diagram conceptually showing the configuration of a data conversion device according to the present invention. FIG. 2 is a block diagram showing a control circuit of a laser printer having a data converter according to one embodiment of the present invention. FIG. 3 is a diagram conceptually showing a CPU constituting the control circuit. FIG. 4 is a flowchart showing a data conversion program among the programs stored in the program ROM of the control circuit. Fifth
The figure shows the outline of the character F converted by the data conversion device. FIG. 6 is a diagram showing the character F overlaid on a pixel screen. FIG. 7, FIG. 8, FIG. 9, FIG.
FIG. 11, FIG. 11 and FIG. 12 are diagrams for explaining how to obtain the coordinates of the intersection of the line element constituting the outline of the character converted by the data conversion device and the x-direction defining line. FIG. 13, FIG. 14, and FIG. 15 are diagrams each showing the pattern data of the decorative end using the coordinate plane for each width of the character constituent line. FIG. 16 is a diagram showing the position of the intersection obtained for the character F on the pixel screen, and FIG. 17 is a diagram showing the x coordinate value of the intersection in a table for each x-direction prescribed line. FIG. 18 is a view for explaining setting of bit data performed based on the coordinates of the intersection. FIG. 19 is a diagram showing printing when the outline data is converted into bit data by a conventional data converter when printing the character F at 12 points. FIG. 20 is a diagram showing an example of printing when the outline data of the character F is converted into bit data by the data conversion device according to the embodiment of the present invention. 10: Microcomputer unit 44: Character composition line, 46: Serif 48: Decorative edge, 52: Pixel screen x: x direction specified line, y: y direction specified line

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G09G 5/00 - 5/40 G06F 3/14 - 3/153 G06F 15/00 - 15/20 B41J 5/00 - 5/52 B41J 21/00 - 21/18 B41J 3/00 - 3/10──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G09G 5/00-5/40 G06F 3/14-3/153 G06F 15/00-15/20 B41J 5 / 00-5/52 B41J 21/00-21/18 B41J 3/00-3/10

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アウトラインデータによって表されるキャ
ラクタの輪郭を、互に直交するX軸方向とY軸方向とに
それぞれ平行な複数の規定線により画素を規定する画素
スクリーンに重ね合せたと想定した場合に、キャラクタ
の構成線の輪郭内に一定基準を満たす状態で含まれる画
素に対応するビットデータをキャラクタ構成線の存在を
表すデータとすることにより、アウトラインデータをビ
ットデータに変換するデータ変換手段を備えたデータ変
換装置において、 前記画素スクリーンと同じ複数の規定線上に設定され、
前記キャラクタ構成線の端部を半円形,三角形等に装飾
する装飾端部を表す装飾パターンデータを記憶する装飾
パターンデータ記憶手段と、 前記キャラクタ構成線に装飾端部が存在するとき、前記
装飾パターンデータ記憶手段に記憶された装飾パターン
データに基づいて装飾端部のビットデータを設定する装
飾端部用ビットデータ設定手段と を設けたことを特徴とするデータ変換装置。
1. A case in which the outline of a character represented by outline data is assumed to be superimposed on a pixel screen that defines pixels by a plurality of definition lines parallel to each other in the X-axis direction and the Y-axis direction that are orthogonal to each other. Data conversion means for converting outline data into bit data by using bit data corresponding to pixels included in the outline of a character constituent line in a state satisfying a certain standard as data representing the presence of a character constituent line. In the data conversion device provided with, set on the same plurality of specified lines as the pixel screen,
A decorative pattern data storage unit for storing decorative pattern data representing a decorative end for decorating an end of the character constituent line into a semicircle, a triangle, or the like; and a decorative pattern when the character constituent line has a decorative end. A decoration end bit data setting means for setting the decoration end bit data based on the decoration pattern data stored in the data storage means.
JP1009399A 1988-09-26 1989-01-18 Data converter Expired - Fee Related JP2757411B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP1009399A JP2757411B2 (en) 1989-01-18 1989-01-18 Data converter
US07/410,872 US5018217A (en) 1988-09-26 1989-09-22 Data converting apparatus having means for changing ornamental stroke end data of character outline
FR8912569A FR2637101B1 (en) 1988-09-26 1989-09-26 DATA CONVERSION DEVICE COMPRISING MEANS FOR MODIFYING ORNAMENTAL END DATA OF THE LEG CONTOUR OF A CHARACTER
DE3932024A DE3932024C2 (en) 1988-09-26 1989-09-26 Data processing system for converting a group of outline data
GB8921723A GB2224623B (en) 1988-09-26 1989-09-26 Data converting apparatus having means for changing ornamental stroke end data of character outline

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1009399A JP2757411B2 (en) 1989-01-18 1989-01-18 Data converter

Publications (2)

Publication Number Publication Date
JPH02188789A JPH02188789A (en) 1990-07-24
JP2757411B2 true JP2757411B2 (en) 1998-05-25

Family

ID=11719343

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1009399A Expired - Fee Related JP2757411B2 (en) 1988-09-26 1989-01-18 Data converter

Country Status (1)

Country Link
JP (1) JP2757411B2 (en)

Also Published As

Publication number Publication date
JPH02188789A (en) 1990-07-24

Similar Documents

Publication Publication Date Title
JP3189276B2 (en) Data converter
GB2224623A (en) Data converting apparatus having means for changing ornamental stroke end data of character outline
JPH03236096A (en) Data converting device
JPH02232690A (en) Data converting device
JP2757411B2 (en) Data converter
JP2811684B2 (en) Character data processing device
JP2903531B2 (en) Data converter
JP2956705B2 (en) Data converter
JPH0747339B2 (en) Data converter
JP3132507B2 (en) Data output method
JP3077180B2 (en) Data converter
JPH0743584B2 (en) Data converter
JP3092172B2 (en) Data converter
JP3057963B2 (en) Data converter
JP2881863B2 (en) Data converter
JP3038840B2 (en) Data converter
JP3057811B2 (en) Data converter
JPH02231166A (en) Data converter
JP2861127B2 (en) Data converter
JP3169013B2 (en) Data output device
Gossling Beyond Hershey: A Representation of Fonts for Computer Graphics
JPH05341763A (en) Device for generating character
JP2754579B2 (en) Data converter
JPH04120594A (en) Data converter
JPH0784739A (en) Data converter

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees