JP3057974B2 - Data converter - Google Patents

Data converter

Info

Publication number
JP3057974B2
JP3057974B2 JP5236623A JP23662393A JP3057974B2 JP 3057974 B2 JP3057974 B2 JP 3057974B2 JP 5236623 A JP5236623 A JP 5236623A JP 23662393 A JP23662393 A JP 23662393A JP 3057974 B2 JP3057974 B2 JP 3057974B2
Authority
JP
Japan
Prior art keywords
data
line
outline
contour
line width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5236623A
Other languages
Japanese (ja)
Other versions
JPH0792954A (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 JP5236623A priority Critical patent/JP3057974B2/en
Publication of JPH0792954A publication Critical patent/JPH0792954A/en
Application granted granted Critical
Publication of JP3057974B2 publication Critical patent/JP3057974B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、文字・記号等のキャラ
クタの輪郭線の形状を規定するアウトラインデータをド
ットデータに変換するデータ変換装置に関するものであ
り、特にキャラクタを構成する線の幅の確保に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion apparatus for converting outline data, which defines the shape of a contour of a character such as a character or a symbol, into dot data, and more particularly to a data conversion apparatus for converting the width of a line constituting a character. It is about securing.

【0002】[0002]

【従来の技術】従来、文字・記号等のキャラクタを表す
データをコンピュータを用いて処理し、印字・ディスプ
レイ表示等のなんらかの形で表示する場合、最小処理単
位である画素毎にドットデータを作成することが広く行
われている。その際、表示されるキャラクタ全部につい
て予めドットデータを作成し、メモリに記憶させると極
めて容量の大きいメモリが必要となるため、特公昭63
−41017号公報に記載されているようにキャラクタ
をその輪郭線の形状を規定するアウトラインデータで記
憶し、印字・ディスプレイ表示等の表示時にデータ変換
手段を備えた装置によりドットデータに変換することが
望ましい。
2. Description of the Related Art Conventionally, when data representing characters such as characters and symbols are processed using a computer and displayed in some form such as printing or display, dot data is created for each pixel which is the minimum processing unit. That is widely done. At this time, if dot data is created in advance for all characters to be displayed and stored in the memory, an extremely large memory is required.
As described in JP-A-41017, a character can be stored as outline data defining the shape of its outline, and can be converted into dot data by a device having data conversion means at the time of display such as printing and display. desirable.

【0003】ここにおいて、アウトラインデータをドッ
トデータに変換するには画素スクリーンが用いられる。
この画素スクリーンは、プリンタ・ディスプレイ装置等
の出力装置の画素を規定したものであり、データ変換手
段は、画素スクリーンにキャラクタの輪郭を重ね合わせ
た場合に、輪郭線内に一定基準以上の部分が含まれる画
素に対応するドットデータをキャラクタ構成線の存在を
表すデータに設定し、アウトラインデータをドットデー
タに変換するのである。
Here, a pixel screen is used to convert outline data into dot data.
The pixel screen defines the pixels of an output device such as a printer / display device, and the data conversion means determines that when the outline of the character is superimposed on the pixel screen, a portion of the outline that is equal to or greater than a predetermined reference is included. The dot data corresponding to the included pixels is set as data representing the presence of the character constituent line, and the outline data is converted into dot data.

【0004】しかし、このようにアウトラインデータを
ドットデータに変換し、キャラクタを表示する場合に
は、キャラクタが表示される位置によって同じキャラク
タの構成線であってもその内側に一定基準以上含まれる
画素の数、位置等が異なり、そのキャラクタ構成線の
幅、即ちキャラクタ構成線の幅を確定する2本の輪郭線
内に幅方向において含まれる画素の数が同じになるとは
限らない。これはアウトラインデータから変換したドッ
トデータの品質劣化の原因の1つである。
However, when the outline data is converted into dot data and a character is displayed in this manner, even if a constituent line of the same character is included within a certain reference line or more depending on the position where the character is displayed, a pixel included in the line may be included. Are different, and the width of the character constituting line, that is, the number of pixels included in the width direction in the two outlines that determine the width of the character constituting line is not necessarily the same. This is one of the causes of the quality deterioration of the dot data converted from the outline data.

【0005】そのため、本出願人は先に出願した特願平
1−52524号の明細書および図面において、キャラ
クタ構成線の幅を確保することができるデータ変換装置
を提案した。このデータ変換装置においては、キャラク
タ構成線の内線幅を補正したい構成線とその幅を指定す
る線幅設定データとを記憶して、指定されたキャラクタ
構成線の幅方向を確定する2つの輪郭線の要素の中に含
まれる画素の幅方向における数を2つの輪郭線の要素の
少なくとも一方を移動させ、輪郭線の要素内に設定され
た数の画素が含まれるよう補正を行っている。
For this reason, the present applicant has proposed a data conversion device capable of ensuring the width of a character constituting line in the specification and drawings of Japanese Patent Application No. 1-52524 filed earlier. In this data conversion device, two outlines that store the width of the specified character component line by storing the component line for which the inside line width of the character component line is to be corrected and the line width setting data for specifying the width. The number of pixels included in the element in the width direction is corrected by moving at least one of the two outline elements so that the set number of pixels is included in the outline element.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
たような従来の方式では複数の線幅設定データが1つの
輪郭線の要素を重複して指示している場合は、望み通り
に線幅が確保できない場合がある。例えば、図2に示す
アウトラインデータ21に線幅設定データ22、23が
付してあるとする。線幅設定データ22は直線24、2
5の幅を3にするように設定されており、線幅設定デー
タ23は直線24、26の幅を2にするように設定され
ている。このようにアウトラインデータ21の直線は、
線幅設定データ22、23で重複して指示されている。
このアウトラインデータ21を図7(a)のように画素
スクリーン71に重ね、線幅設定データ22、23に基
いて線幅を補正する。
However, in the conventional method as described above, when a plurality of line width setting data indicate one contour element redundantly, the line width is secured as desired. It may not be possible. For example, assume that the outline data 21 shown in FIG. Line width setting data 22 includes straight lines 24, 2
The width of 5 is set to 3 and the line width setting data 23 is set so that the width of the straight lines 24 and 26 is 2. Thus, the straight line of the outline data 21 is
The instruction is duplicated in the line width setting data 22 and 23.
The outline data 21 is superimposed on the pixel screen 71 as shown in FIG. 7A, and the line width is corrected based on the line width setting data 22 and 23.

【0007】線幅の補正は、例えば、先ず線幅設定デー
タの指示する輪郭線の内、画素の境界に近い方(基準
線)をその画素の境界(黒丸)に移動し、他方を移動し
た基準線から所望の幅だけ離れた位置(白丸)に移動す
ることで行われる。この方式でまず線幅設定データ22
に基いて処理を行う。直線24と25とでは直線25の
方が画素の境界に近いため直線25をその画素の境界に
移動し、次に直線24を直線25から所望の幅である3
だけ離れた位置に移動する。ここまでの結果を図7
(b)に示す。
The line width is corrected, for example, by first moving, from the contour line indicated by the line width setting data, the one closer to the pixel boundary (reference line) to the pixel boundary (black circle) and moving the other. This is performed by moving to a position (white circle) away from the reference line by a desired width. In this method, first, the line width setting data 22
The processing is performed based on. Since the straight line 25 is closer to the pixel boundary between the straight lines 24 and 25, the straight line 25 is moved to the pixel boundary.
Move to a position just away. Figure 7 shows the results so far.
(B).

【0008】同様に線幅設定データ23に基いて処理を
行う。直線24と26とでは直線26の方が画素の境界
に近いため直線26をその画素の境界(黒丸)に移動
し、次に直線24を直線26から所望の幅である2だけ
離れた位置(白丸)に移動する。この結果を図7(c)
に示す。図7(c)から明らかなように、この図形は左
側の幅が3ドット幅で、右側の幅が2ドット幅で形成さ
れるのが望ましいのにも関わらず、左側の幅が4ドット
幅になってしまう。
[0008] Similarly, processing is performed based on the line width setting data 23. Since the straight line 26 is closer to the pixel boundary between the straight lines 24 and 26, the straight line 26 is moved to the pixel boundary (black circle), and then the straight line 24 is separated from the straight line 26 by a desired width of 2 ( (White circle). The result is shown in FIG.
Shown in As is clear from FIG. 7C, although the figure is preferably formed to have a left width of 3 dots and a right width of 2 dots, the left width is 4 dots. Become.

【0009】本発明は、上述した問題点を解決するため
になされたものであり、複数の線幅設定データが重複し
て1つの輪郭線の要素を指示している場合でも、確実に
所望の線幅を確保することができるデータ変換装置を提
供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. Even when a plurality of line width setting data overlap and indicate one contour element, a desired line can be surely obtained. It is an object of the present invention to provide a data conversion device capable of securing a line width.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
に本発明のデータ変換装置は、キャラクタの輪郭線の形
状を規定したアウトラインデータを記憶する輪郭記憶手
段と、前記キャラクタを構成する複数のキャラクタ構成
線の少なくとも1つを指定するとともにその構成線の幅
を示す線幅設定データを記憶する線幅設定記憶手段と、
前記アウトラインデータ及び線幅設定データを各々の記
憶手段から読み出す読み出し手段と、前記キャラクタの
アウトラインデータを出力装置の画素を規定する画素ス
クリーンに重ね合わせたと想定して、前記線幅設定デー
タにより指定されたキャラクタ構成線の幅を規定する2
つの輪郭線の要素の少なくとも一方を、前記画素の数が
前記線幅設定データに対応する数となる向き及び量で移
動する第1輪郭線移動手段と、その第1輪郭線移動手段
で補正した前記キャラクタのアウトラインデータ内に一
定基準を満たす状態で含まれる画素に対応するドットデ
ータを、前記キャラクタ構成線の存在を表すデータに設
定することによりアウトラインデータをドットデータに
変換するドットデータ変換手段とを備えるものであり、
更には複数の前記線幅設定データが前記キャラクタの構
成線の幅を規定する2つの輪郭線の要素のうち少なくと
も一方を重複して指定しているか否かと、指定している
場合にはその重複して指定している輪郭線の要素とを、
他の前記線幅設定データを調べて認識するか、或いは予
め記憶してある情報を読み出すかで認識する重複認識手
段と、その重複認識手段で前記重複して指定している輪
郭線の要素があると認識された前記線幅設定データにつ
いて、前記線幅設定データの2つの輪郭線の要素の内前
記基準認識手段で指示された輪郭線の要素を基準に他方
の輪郭線の要素を前記画素の数が前記線幅設定データに
対応する数となる向き及び量で移動する第2輪郭線移動
手段を備え、前記第1輪郭線移動手段が前記基準認識手
段で重複して指定している輪郭線の要素があると認識さ
れなかった前記線幅設定データに対して処理を行うもの
であり、且つ前記ドットデータ変換手段が第1輪郭線移
動手段、或いは第2輪郭線移動手段により生成されたア
ウトラインデータをドットデータに変換するものであ
る。
In order to achieve this object, a data conversion apparatus according to the present invention comprises a contour storage means for storing outline data defining a shape of a contour line of a character; Line width setting storage means for designating at least one of the character constituent lines and storing line width setting data indicating the width of the constituent line;
Reading means for reading the outline data and the line width setting data from the respective storage means, and assuming that the outline data of the character is superimposed on a pixel screen defining pixels of an output device, designated by the line width setting data. 2 that defines the width of the character composition line
At least one of the elements of one contour line is corrected by a first contour line moving means for moving the pixels in a direction and an amount corresponding to the number corresponding to the line width setting data, and the first contour line moving means. Dot data conversion means for converting outline data to dot data by setting dot data corresponding to pixels included in the outline data of the character in a state satisfying a certain criterion to data representing the presence of the character constituent line; Which has
Further, it is determined whether the plurality of line width setting data specifies at least one of the two contour line elements that define the width of the constituent line of the character, and if so, the overlapping. And the outline element specified as
A duplication recognizing means for recognizing by examining and recognizing the other line width setting data or reading information stored in advance, and an element of the contour line which is repeatedly specified by the duplication recognizing means. With respect to the line width setting data recognized as being present, of the two contour elements of the line width setting data, the other contour element is referred to by the pixel based on the contour element specified by the reference recognition means. A second contour moving means for moving in a direction and an amount corresponding to the number corresponding to the line width setting data, wherein the first contour moving means is redundantly designated by the reference recognition means. Processing is performed on the line width setting data that is not recognized as having a line element, and the dot data converting means is generated by the first contour moving means or the second contour moving means. Outline data And it converts the dot data.

【0011】[0011]

【作用】上記の構成を有する本発明のデータ変換装置に
おける輪郭記憶手段はキャラクタの輪郭線の形状を規定
したアウトラインデータを記憶し、線幅設定記憶手段は
前記キャラクタを構成する複数のキャラクタ構成線の少
なくとも一つを指定するとともにその構成線の幅を示す
線幅設定データを記憶し、読み出し手段は前記アウトラ
インデータ及び線幅設定データを各々の記憶手段から読
み出し、重複認識手段は複数の前記線幅設定データが前
記キャラクタの構成線の幅を規定する2つの輪郭線の要
素のうち少なくとも一方を重複して指定しているか否か
と、指定している場合にはその重複して指定している輪
郭線の要素とを、他の前記線幅設定データを調べて認識
するか、或いは予め記憶してある情報を読み出すかで認
識し、前記第1輪郭線移動手段は前記基準認識手段で前
記重複して指定している輪郭線の要素があると認識され
なかった前記線幅設定データに対して前記キャラクタの
アウトラインデータを出力装置の画素を規定する画素ス
クリーンに重ね合わせたと想定して前記線幅設定データ
により指定されたキャラクタ構成線の幅を規定する2つ
の輪郭線の要素の少なくとも一方を前記画素の数が前記
線幅設定データに対応する数となる向き及び量で移動
し、第2輪郭移動手段は前記重複認識手段で前記重複し
て指定している輪郭線の要素があると認識された前記線
幅設定データについて、前記線幅設定データの2つの輪
郭線の要素の内、前記基準認識手段で指示された輪郭線
の要素を基準に他方の輪郭線の要素を前記画素の数が前
記線幅設定データに対応する数となる向き及び量で移動
し、ドットデータ変換手段は前記第1輪郭線移動手段或
は第2輪郭線移動手段で補正した前記キャラクタのアウ
トラインデータ内に一定基準を満たす状態で含まれる画
素に対応するドットデータを前記キャラクタ構成線の存
在を表わすデータに設定してアウトラインデータをドッ
トデータに変換する。
In the data conversion apparatus of the present invention having the above-mentioned structure, the outline storage means stores outline data defining the shape of the outline of the character, and the line width setting storage means stores a plurality of character constituent lines constituting the character. And line width setting data indicating the width of the constituent line is stored, the readout unit reads out the outline data and the line width setting data from each storage unit, and the duplication recognizing unit reads the plurality of lines. Whether or not the width setting data specifies at least one of the two contour line elements that define the width of the constituent line of the character overlaps, and if so, specifies the overlap. The element of the outline is recognized by checking the other line width setting data or by reading information stored in advance, and the first wheel is recognized. The line moving means converts the character outline data to the line width setting data which is not recognized by the reference recognition means as having the overlappingly specified contour element, and defines the pixel of the output device as a pixel. At least one of the two outline elements that define the width of the character configuration line specified by the line width setting data assuming that the pixels are superimposed on the screen is the number of pixels corresponding to the number corresponding to the line width setting data. The second contour moving means moves in the direction and the amount of the line width setting data. Of the two contour elements, the number of the pixels is the number corresponding to the line width setting data with respect to the other contour element based on the contour element specified by the reference recognition means. And the dot data conversion means shifts the dot data corresponding to pixels included in the outline data of the character corrected by the first outline movement means or the second outline movement means and satisfying a predetermined standard. The outline data is converted to dot data by setting the data to data representing the presence of the character constituent line.

【0012】[0012]

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

【0013】本実施例は、本発明をレーザプリンタのア
ウトラインフォント処理部に好適に適用した例である。
This embodiment is an example in which the present invention is suitably applied to an outline font processing unit of a laser printer.

【0014】図1はレーザプリンタの制御回路のうち、
主としてアウトラインフォントデータをドットデータに
変換し、出力する部分を示すブロック図である。この制
御回路の主体を成すマイクロコンピュータ部10は、C
PU12、キャラクタROM13、プログラムROM1
4、テキストメモリ15、ワーキングメモリ16及びド
ットデータメモリ17を備えている。これらCPU12
等は、バス18により接続されており、バス18には更
に入力部19及び印字部110が接続されている。CP
U12は、本実施例を実現するための処理を与えられた
プログラムに従って行うものである。
FIG. 1 shows a control circuit of a laser printer.
FIG. 4 is a block diagram mainly showing a portion that converts outline font data into dot data and outputs the dot data. The microcomputer unit 10, which is the main component of this control circuit,
PU12, character ROM13, program ROM1
4, a text memory 15, a working memory 16, and a dot data memory 17. These CPUs 12
Are connected by a bus 18, and an input unit 19 and a printing unit 110 are further connected to the bus 18. CP
U12 performs processing for realizing the present embodiment according to a given program.

【0015】キャラクタROM13は、キャラクタのア
ウトラインデータ及び線幅設定データをその文字コード
で1キャラクタずつ読み出し可能なように記憶してい
る。アウトラインデータはキャラクタの輪郭線の形状を
規定するデータである。一般にアウトラインデータは直
線要素と3次ベジェ曲線等の曲線要素とで定義されてい
るものが多いが、本実施例では説明を簡単にするため、
直線要素のみで形状を定義する。
The character ROM 13 stores character outline data and line width setting data in such a manner that the character code can be read out one character at a time. Outline data is data that defines the shape of the outline of a character. In general, outline data is often defined by a straight line element and a curve element such as a cubic Bezier curve. However, in this embodiment, to simplify the description,
Define the shape with only linear elements.

【0016】本実施例のアウトラインデータは座標値
(x,y)の配列とデータ数で記憶しており、この配列
の座標値を直線で結ぶことで輪郭形状が得られる。又、
線幅設定データはx方向(縦線用)とy方向(横線用)
との2種類を有し、各々、位置データと幅データで1組
である。位置データは、アウトラインデータの線幅補正
を行うキャラクタ構成線である縦線、或いは横線を規定
する輪郭線の要素を2つの座標値データで示すものであ
り、x方向の場合はx座標値を、y方向の場合はy座標
値を各々記憶している。又、幅データは位置データで示
した輪郭線の要素の幅を示すデータであり、x方向の場
合はx方向の距離を、y方向の場合はy方向の距離を各
々記憶している。本実施例の線幅設定データは(位置デ
ータの座標値1,位置データの座標値2,幅データ)の
1組のデータを配列としてxy別々に、各々のデータ数
と共に記憶している。
The outline data of this embodiment is stored as an array of coordinate values (x, y) and the number of data, and a contour shape can be obtained by connecting the coordinate values of this array with a straight line. or,
Line width setting data is x direction (for vertical line) and y direction (for horizontal line)
, And each is a set of position data and width data. The position data is an element of a contour line that defines a vertical line or a horizontal line that is a character constituent line for performing line width correction of outline data, and indicates two coordinate value data. In the case of the x direction, the x coordinate value is indicated. , Y direction, y coordinate values are stored. The width data is data indicating the width of the element of the contour indicated by the position data, and stores the distance in the x direction in the x direction and the distance in the y direction in the y direction. In the line width setting data of this embodiment, one set of data (coordinate value of position data 1, coordinate value of position data 2, width data) is stored as an array in xy separately, together with the number of data.

【0017】尚、線幅設定データには位置データ、幅デ
ータの他に重複データフラグを設けてもよい。重複デー
タフラグは複数の線幅設定データの位置データが重複し
てキャラクタの構成線の同一輪郭線の要素を指示してい
る場合にその重複して指示している全ての線幅設定デー
タの位置データに対して付してある情報であり、例えば
位置データの座標値の最上位ビットにそれを置き、1で
あればその位置データは重複して指示されていることを
示し、0であれば層でないことを示すことができる。
The line width setting data may be provided with an overlapping data flag in addition to the position data and the width data. When the position data of a plurality of line width setting data overlaps and indicates an element of the same contour line of the character constituent line, the overlapping data flag indicates the position of all the line width setting data which is indicated by the overlapping. This information is attached to the data. For example, it is placed in the most significant bit of the coordinate value of the position data. If it is 1, it indicates that the position data is indicated redundantly. It can be shown that it is not a layer.

【0018】例えば図2の文字はキャラクタROM13
では図3のように記憶している。図2の文字は横線2
4、25及び横線24、26について線幅設定データが
付されている。尚、ここには重複データフラグは図示し
ないが、設定するとすれば、2つの線幅設定データは横
線24を重複して指示しているので、横線24を示す位
置データである座標値y0の最上位ビットを1にするこ
とで重複データフラグが設定できる。
For example, the characters in FIG.
Then, as shown in FIG. The character in FIG.
Line width setting data is attached to 4, 25 and horizontal lines 24, 26. Although the overlapping data flag is not shown here, if it is set, since the two line width setting data indicate the overlapping horizontal line 24, the coordinate value y0, which is the position data indicating the horizontal line 24, is set. By setting the upper bit to 1, a duplicate data flag can be set.

【0019】プログラムROM14は所望のキャラクタ
のデータを印字可能な形に展開する処理プログラムを記
憶している。テキストメモリ15は、入力部19から入
力される文字コードと文字サイズを記憶するものであ
る。ワーキングメモリ16は、プログラム実行時に必要
なデータを一時的に記憶するものである。ドットデータ
メモリ17は、アウトラインデータを変換して得られた
印字可能なドットデータを記憶している。入力部19は
外部から供給される文字コードと文字サイズをマイクロ
コンピュータ部10に入力する。印字部110はドット
データメモリ17から読み出されたドットデータを電子
写真方式により印字を行なう部分である。
The program ROM 14 stores a processing program for developing desired character data into a printable form. The text memory 15 stores a character code and a character size input from the input unit 19. The working memory 16 temporarily stores data necessary for executing a program. The dot data memory 17 stores printable dot data obtained by converting outline data. The input unit 19 inputs a character code and a character size supplied from the outside to the microcomputer unit 10. The printing unit 110 is a unit that prints dot data read from the dot data memory 17 by an electrophotographic method.

【0020】以下に、本実施例のアウトラインデータを
ドットデータに変換するドットデータ化処理について図
4に示すフローチャートを用いて説明する。
The dot data conversion process for converting outline data into dot data according to the present embodiment will be described below with reference to the flowchart shown in FIG.

【0021】まず始めに、S0でアウトラインデータ及
び線幅設定データをキャラクタROM13より読み出
す。次に、S1でアウトラインデータを出力装置の画素
の座標系における所望のサイズにサイズ変換すると同時
に線幅設定データも同様にサイズ変換する。尚、線幅設
定データの幅データは小数点以下四捨五入する。次に、
S2でサイズ変換したアウトラインデータを画素スクリ
ーンに重ねて設定してある全ての線幅設定データに基い
て線幅補正処理を行う。この処理については後述する。
最後にS3で線幅補正処理を行ったアウトラインデータ
内に中心が含まれる画素をオンにしてドットデータに変
換する塗りつぶし処理を行う。
First, outline data and line width setting data are read from the character ROM 13 in S0. Next, in S1, the outline data is size-converted to a desired size in the pixel coordinate system of the output device, and the line width setting data is also size-converted in the same manner. The width data of the line width setting data is rounded off to the decimal point. next,
The line width correction processing is performed based on all the line width setting data set by superimposing the outline data whose size has been converted in S2 on the pixel screen. This processing will be described later.
Finally, in S3, a painting process is performed to turn on a pixel whose center is included in the outline data that has been subjected to the line width correction process and convert the pixel into dot data.

【0022】次に、S2の線幅補正処理について図5に
フローチャートを示して説明する。S21は、処理対象
となっている線幅設定データの位置データが他の線幅設
定データの位置データと重複して指示しているか否かを
判定すると共に重複して指示している場合にはその位置
データの座標値を認識する処理である。この処理は重複
データフラグが設定されている場合は重複データフラグ
を読むことでこれを認識する。又、設定されていない場
合は他の線幅線幅設定データを調べて重複している位置
データがあるか否かを判定する。重複して指示している
場合にはYES、いない場合にはNOとなる。NOの場
合にはS22の第1輪郭線移動処理を行い、YESの場
合にはS23の第2輪郭線移動処理を行う。
Next, the line width correction processing in S2 will be described with reference to a flowchart shown in FIG. In step S21, it is determined whether or not the position data of the line width setting data to be processed instructs to overlap with the position data of the other line width setting data. This is a process for recognizing the coordinate values of the position data. In this process, when the duplicate data flag is set, the duplicate data flag is recognized by reading the duplicate data flag. If not set, other line width / line width setting data is checked to determine whether there is any overlapping position data. If the instruction is duplicated, the result is YES, and if not, the result is NO. In the case of NO, the first contour moving process of S22 is performed, and in the case of YES, the second contour moving process of S23 is performed.

【0023】S22は、線幅設定データの位置データの
指示する2つの輪郭線の要素の内、画素の境界に近い方
を基準線としてその画素の境界に移動し、他方の線を基
準線から線幅設定データの幅データの指示する距離を得
るように移動する処理である。この処理の内容は従来技
術の項目で説明しているので省略する。
In step S22, of the two contour elements indicated by the position data of the line width setting data, the one closer to the pixel boundary is moved to the pixel boundary as the reference line, and the other line is moved from the reference line to the pixel. This is processing for moving so as to obtain the distance indicated by the width data of the line width setting data. The content of this processing has been described in the section of the prior art, and therefore will not be described.

【0024】S23は、線幅設定データの位置データの
指示する2つの輪郭線の要素の内、S21で他の線幅設
定データの位置データと重複すると判定された位置デー
タ座標値の指示する輪郭線の要素を基準線とし、その要
素から最も近い画素の境界に移動し、他方の要素を基準
線から線幅設定データの幅データの指示する距離を得る
ように移動する処理である。但し、処理対象となってい
る線幅設定データの位置データの2つの線の両方が他の
線幅設定データの位置データと重複する輪郭線の要素を
指示している場合は、2つの輪郭線の要素を各々の線に
最も近い画素の境界に移動する。
In step S23, of the two contour line elements specified by the position data of the line width setting data, the contour indicated by the position data coordinate value determined to overlap with the position data of the other line width setting data in step S21. In this process, a line element is used as a reference line, the element is moved to the boundary of the pixel closest to the element, and the other element is moved from the reference line so as to obtain the distance indicated by the width data of the line width setting data. However, if both of the two lines of the position data of the line width setting data to be processed indicate a contour element that overlaps with the position data of the other line width setting data, the two contour lines Is moved to the pixel boundary closest to each line.

【0025】この手続きを図2のデータに対して行う。
S0でアウトラインデータ及び線幅設定データを読み込
み、S1で輪郭線21をサイズ変換する。このとき線幅
設定データ22の幅データw1は3となり線幅設定デー
タ23の幅データw2は2となるとする。サイズ変換し
たアウトラインデータ61を画素スクリーンに重ねて
(図6(a))S2の線幅処理を行う。
This procedure is performed on the data shown in FIG.
At S0, outline data and line width setting data are read, and at S1, the outline 21 is converted in size. At this time, it is assumed that the width data w1 of the line width setting data 22 is 3 and the width data w2 of the line width setting data 23 is 2. The outline data 61 whose size has been converted is superimposed on the pixel screen (FIG. 6A), and the line width processing of S2 is performed.

【0026】まず、線幅設定データ22について処理を
行う。線幅設定データ22に付された線幅設定データの
位置データは線幅設定データ23の位置データと重複し
た部分(直線64)を指示しているのでS21の判定は
YESとなる。従って、S23で直線64を画素の境界
(黒丸)に移動して基準線とし、次に直線65を直線6
4から幅3ドット離れた位置(白丸)に移動する(図6
(b))。次に、線幅設定データ23について処理を行
う。線幅設定データ23に付された線幅設定データの位
置データは線幅設定データ22の位置データと重複した
部分(直線64)を指示しているのでS21の判定はY
ESとなる。従って、S23で直線64を画素の境界
(黒丸)に移動して基準線とし、次に直線66を直線6
4から幅2ドット離れた位置(白丸)に移動する(図6
(c))。課題の項で示した例では所望のドット数が得
られなかったが、図から明らかなように左側が3ドット
右側が2ドット幅の所望の幅をもったドットデータが得
られる。
First, processing is performed on the line width setting data 22. Since the position data of the line width setting data added to the line width setting data 22 indicates a portion (line 64) overlapping with the position data of the line width setting data 23, the determination in S21 is YES. Accordingly, in S23, the straight line 64 is moved to the pixel boundary (black circle) to be a reference line, and then the straight line 65 is changed to the straight line 6
Move to a position (white circle) 3 dots wide from 4 (see FIG. 6)
(B)). Next, processing is performed on the line width setting data 23. Since the position data of the line width setting data added to the line width setting data 23 indicates a portion (line 64) overlapping with the position data of the line width setting data 22, the determination in S21 is Y.
ES. Accordingly, in S23, the straight line 64 is moved to the pixel boundary (black circle) to be a reference line, and then the straight line 66 is changed to the straight line 6
4 is moved to a position (white circle) two dots wide from FIG.
(C)). Although the desired number of dots could not be obtained in the example shown in the subject, as is apparent from the figure, dot data having a desired width of 3 dots on the left and 2 dots on the right is obtained.

【0027】尚、線幅設定データ22、23に重複デー
タフラグを付して、S21での判定をそのフラグを調べ
ることで行うこともできる。
The line width setting data 22 and 23 may be provided with a duplicate data flag, and the determination in S21 may be made by checking the flag.

【0028】また、本実施例では、レーザプリンタに本
発明のデータ変換装置を適用した例を示したが、これに
限らず、他の方式のプリンタやディスプレイ装置はもち
ろん、アウトラインデータをドットデータに変換する必
要があるものであればどのようなものにでも適用可能で
ある。
In this embodiment, an example in which the data converter of the present invention is applied to a laser printer has been described. However, the present invention is not limited to this, and outline data is converted into dot data as well as other types of printers and display devices. It can be applied to anything that needs to be converted.

【0029】また、本実施例ではキャラクタROM13
内にアウトラインデータと線幅設定データを両方とも記
憶したが、これらを分けて記憶することもできる。
In this embodiment, the character ROM 13
Although both the outline data and the line width setting data are stored therein, they may be stored separately.

【0030】[0030]

【発明の効果】以上説明したことから明かなように、本
発明のデータ変換装置によれば、複数の線幅設定データ
が重複して1つの輪郭線の要素を指示している場合で
も、確実に所望の線幅を確保することができる。
As is apparent from the above description, according to the data conversion apparatus of the present invention, even if a plurality of line width setting data overlap and indicate one contour element, the data conversion device of the present invention can be used. Thus, a desired line width can be secured.

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

【図1】本実施例のアウトラインデータ処理部の構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an outline data processing unit according to an embodiment.

【図2】アウトラインデータの一例を示す図である。FIG. 2 is a diagram illustrating an example of outline data.

【図3】図2に示すアウトラインデータをキャラクタR
OM13に記憶した状態を示す図である。
FIG. 3 shows the outline data shown in FIG.
FIG. 4 is a diagram showing a state stored in the OM 13.

【図4】本実施例のドットデータ化処理のフローチャー
トである。
FIG. 4 is a flowchart of a dot data conversion process according to the embodiment.

【図5】本実施例の線幅補正処理のフローチャートであ
る。
FIG. 5 is a flowchart of a line width correction process according to the embodiment.

【図6】本実施例の処理を施したアウトラインデータの
例を示す図である。
FIG. 6 is a diagram illustrating an example of outline data that has been processed according to the embodiment;

【図7】従来の処理を施したアウトラインデータの例を
示す図である。
FIG. 7 is a diagram showing an example of outline data subjected to conventional processing.

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

13 キャラクタROM S3 塗りつぶし処理 S52 第1輪郭線移動処理 S53 第2輪郭線移動処理 13 Character ROM S3 Painting process S52 First contour moving process S53 Second contour moving process

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G09G 5/24 B41J 2/485 G06F 3/12 G06F 3/153 G06T 11/20 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G09G 5/24 B41J 2/485 G06F 3/12 G06F 3/153 G06T 11/20

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 キャラクタの輪郭線の形状を規定したア
ウトラインデータを記憶する輪郭記憶手段と、 前記キャラクタを構成する複数のキャラクタ構成線の少
なくとも1つを指定するとともに、その構成線の幅を示
す線幅設定データを記憶する線幅設定記憶手段と、 前記アウトラインデータ及び線幅設定データを前記各記
憶手段から読み出す読み出し手段と、 前記キャラクタのアウトラインデータを出力装置の画素
を規定する画素スクリーンに重ね合わせたと想定して、
前記線幅設定データにより指定されたキャラクタ構成線
の幅を規定する2つの輪郭線の要素の少なくとも一方
を、前記画素の数が前記線幅設定データに対応する数と
なる向き及び量で移動する第1輪郭線移動手段と、 その第1輪郭線移動手段で補正した前記キャラクタのア
ウトラインデータ内に一定基準を満たす状態で含まれる
画素に対応するドットデータを、前記キャラクタ構成線
の存在を表すデータに設定することによりアウトライン
データをドットデータに変換するドットデータ変換手段
とを備えたデータ変換装置において、 複数の前記線幅設定データが前記キャラクタの構成線の
幅を規定する2つの輪郭線の要素のうち少なくとも一方
を重複して指定しているか否かと、指定している場合に
はその重複して指定している輪郭線の要素とを、他の前
記線幅設定データを調べて認識するか、或いは予め記憶
してある情報を読み出すかで認識する重複認識手段と、 その重複認識手段で前記重複して指定している輪郭線の
要素があると認識された前記線幅設定データについて、
前記線幅設定データの2つの輪郭線の要素の内、前記基
準認識手段で指示された輪郭線の要素を基準に他方の輪
郭線の要素を前記画素の数が前記線幅設定データに対応
する数となる向き及び量で移動する第2輪郭線移動手段
を備え、 更には、前記第1輪郭線移動手段が前記基準認識手段で
重複して指定している輪郭線の要素があると認識されな
かった前記線幅設定データに対して処理を行うものであ
り、且つ前記ドットデータ変換手段が第1輪郭線移動手
段、或いは第2輪郭線移動手段により生成されたアウト
ラインデータをドットデータに変換するものであること
を特徴とするデータ変換装置。
1. A contour storage means for storing outline data defining the shape of a contour line of a character, and at least one of a plurality of character constituent lines constituting the character is designated and the width of the constituent line is indicated. A line width setting storage unit that stores line width setting data; a reading unit that reads out the outline data and the line width setting data from each of the storage units; and superimposing the outline data of the character on a pixel screen that defines a pixel of an output device. Assuming that they match,
At least one of the two outline elements defining the width of the character configuration line specified by the line width setting data is moved in the direction and amount such that the number of pixels corresponds to the line width setting data. First outline moving means; and dot data corresponding to pixels included in the outline data of the character corrected by the first outline moving means in a state satisfying a predetermined criterion, the data representing the existence of the character constituent line. And a dot data conversion means for converting outline data into dot data by setting the outline data to dot data. Whether at least one of them has been specified redundantly, and if so, the required Is recognized by examining the other line width setting data or by reading information stored in advance, and the contour line specified by the duplication recognizing means. Regarding the line width setting data recognized as having an element of
Of the two contour line elements of the line width setting data, the number of the pixels corresponds to the other contour line element based on the contour line element specified by the reference recognition means. A second contour moving means for moving in a number of directions and an amount; and further, the first contour moving means recognizes that there is an overlapping contour element specified by the reference recognition means. Wherein the dot data converting means converts the outline data generated by the first contour moving means or the second contour moving means into dot data. A data conversion device characterized in that:
JP5236623A 1993-09-22 1993-09-22 Data converter Expired - Fee Related JP3057974B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5236623A JP3057974B2 (en) 1993-09-22 1993-09-22 Data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5236623A JP3057974B2 (en) 1993-09-22 1993-09-22 Data converter

Publications (2)

Publication Number Publication Date
JPH0792954A JPH0792954A (en) 1995-04-07
JP3057974B2 true JP3057974B2 (en) 2000-07-04

Family

ID=17003380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5236623A Expired - Fee Related JP3057974B2 (en) 1993-09-22 1993-09-22 Data converter

Country Status (1)

Country Link
JP (1) JP3057974B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4789828B2 (en) * 2007-03-06 2011-10-12 株式会社沖データ Printing system

Also Published As

Publication number Publication date
JPH0792954A (en) 1995-04-07

Similar Documents

Publication Publication Date Title
US5537131A (en) Character generating method and apparatus
JP2876942B2 (en) Data converter
JP3057974B2 (en) Data converter
US5878194A (en) Method and device for outputting multicolor document
JP2910588B2 (en) Data conversion device
JP3087427B2 (en) Contour data converter
JP3055327B2 (en) Data converter
JP3344538B2 (en) Character generator
JP3082228B2 (en) Data converter
JPH04280296A (en) Contour data processing device
JP3118310B2 (en) Print processing method of page printer
JP3099556B2 (en) Data converter
JPH09305160A (en) Character generator
JP2881924B2 (en) Data storage device
JP2861201B2 (en) Data converter
JP3024479B2 (en) Data converter
JP3055306B2 (en) Data output device
JP3040624B2 (en) Pattern generator
JP3039214B2 (en) Data converter
JPH01210355A (en) Character pattern generation
JP2841631B2 (en) Data converter
JPH0784739A (en) Data converter
JPH06175637A (en) Method for generating character
JPH09179542A (en) Output method and device for character image data
JPH0259873A (en) Image processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20080421

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090421

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100421

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110421

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120421

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130421

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees