JP3082235B2 - Character outline data converter - Google Patents

Character outline data converter

Info

Publication number
JP3082235B2
JP3082235B2 JP02286727A JP28672790A JP3082235B2 JP 3082235 B2 JP3082235 B2 JP 3082235B2 JP 02286727 A JP02286727 A JP 02286727A JP 28672790 A JP28672790 A JP 28672790A JP 3082235 B2 JP3082235 B2 JP 3082235B2
Authority
JP
Japan
Prior art keywords
contour
data
character
closed
loop
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 - Lifetime
Application number
JP02286727A
Other languages
Japanese (ja)
Other versions
JPH04159594A (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 JP02286727A priority Critical patent/JP3082235B2/en
Publication of JPH04159594A publication Critical patent/JPH04159594A/en
Application granted granted Critical
Publication of JP3082235B2 publication Critical patent/JP3082235B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キャラクタの輪郭線データをドットデータ
に変換する変換装置に関し、特に輪郭線データをキャラ
クタ構成領域の線幅変更に伴って変更するようにしたも
のに関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a conversion device for converting outline data of a character into dot data, and in particular, changes the outline data according to a change in the line width of a character configuration area. Regarding what you did.

〔従来の技術〕[Conventional technology]

最近、文字や記号などを印字用紙に印字したり或いは
ディスプレイに表示するために、文字や記号などの複数
のキャラクタの夫々について輪郭線をデジタル化した輪
郭線データをアウトラインフォントメモリなどの不揮発
メモリに記憶しておき、この輪郭線データに指定された
文字サイズに拡大・縮小するスケーリング処理などの変
換処理を施し、更にこの変換処理された輪郭線データを
ドットデータに変換してレーザプリンタや表示装置など
の出力機器に出力するようにしている。
Recently, in order to print characters and symbols on printing paper or to display them on a display, outline data obtained by digitizing the outline of each of a plurality of characters such as characters and symbols is stored in a non-volatile memory such as an outline font memory. The contour data is subjected to conversion processing such as scaling processing for enlarging / reducing the contour data to a designated character size, and the converted contour data is converted into dot data to be stored in a laser printer or display device. Output to such an output device.

ところで、一般に日本語や欧文などにおいては、文字
や記号などの複数のキャラクタはその形状の種類や輪郭
線で囲まれるキャラクタ構成領域の線幅(太さ)に応じ
た書体で管理されているので、キャラクタを所望の書体
で印字や表示が可能なように前記アウトラインフォント
メモリには、構成線の線幅が細いライト系や線幅が太い
ボールド系や線幅がライトとボールドの中間の太さのセ
ミボールド系などの書体を含む明朝系やゴシック系から
なる複数の書体について、書体毎に分類したキャラクタ
の輪郭線データを多数格納するようにしている。しか
し、複数のキャラクタの輪郭線データを書体毎にアウト
ラインフォントメモリに格納するためには、大容量のア
ウトラインフォントメモリが必要となることから、最近
では、明朝系及びゴシック系の各書体において線幅が基
本の太さとなる例えばライト系書体のキャラクタについ
てその輪郭線データだけをアウトラインフォントメモリ
に格納し、構成線の線幅が指定された太さになるように
基本輪郭線データを変更処理した後、ドットデータに変
換するようにしている。
By the way, in Japanese and European languages, a plurality of characters such as characters and symbols are generally managed in a typeface corresponding to the type of the shape and the line width (thickness) of the character configuration area surrounded by the outline. The outline font memory has a light system with a thin line width or a bold system with a large line width, and a line width with an intermediate width between light and bold so that characters can be printed and displayed in a desired typeface. For a plurality of fonts including Mincho and Gothic fonts including a font such as a semi-bold font, a large number of contour data of characters classified for each font is stored. However, storing outline data of a plurality of characters in the outline font memory for each typeface requires a large-capacity outline font memory. For example, for a light typeface character whose width is the basic thickness, only the outline data is stored in the outline font memory, and the basic outline data is changed so that the line width of the constituent lines becomes the specified thickness. Later, the data is converted into dot data.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述したように、アウトラインフォントメモリに線幅
が基本の太さとなるライト系書体のキャラクタの基本輪
郭線データを格納し、構成線の線幅を指定された太さに
変更処理した後ドットデータに変換して印字する場合、
例えば実施例に係る第6図に示す漢字「草」の構成線の
線幅を太く(例えば、約1.6倍)指定したときには、こ
の漢字「草」は第10図に示すように閉ループ的輪郭線RA
で囲まれるキャラクタ構成領域内に閉ループ的輪郭線RB
の一部が突入するので、この突入部分についてはデータ
「0」のドットデータに変換されて印字されない白い部
分となって印字品質が低下すること、また第10図に示す
ボールド漢字「草」を「白抜き文字」で印字したときに
は、全ての輪郭線が印字されて印字品質が低下するこ
と、などの問題がある。
As described above, the outline font memory stores the basic outline data of the character of the light type font whose line width is the basic thickness, and changes the line width of the constituent lines to the specified thickness, and then converts the line data into the dot data. When converting and printing,
For example, when the line width of the constituent line of the kanji “Kusa” shown in FIG. 6 according to the embodiment is specified to be thick (for example, about 1.6 times), the kanji “Kusa” becomes a closed-loop contour as shown in FIG. RA
Closed loop contour RB in the character composition area surrounded by
Part of the intruding part, the intruding part is converted into dot data of data "0" and becomes a white part that is not printed, and the printing quality is reduced. Also, the bold kanji "grass" shown in FIG. When printing with "white characters", there is a problem that all the outlines are printed and the printing quality is degraded.

本発明の目的は、印字品質を維持しつつボールド文字
や白抜き文字を生成し得るようなキャラクタの輪郭線デ
ータ変換装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a character outline data conversion device capable of generating a bold character or an outline character while maintaining print quality.

〔課題を解決するための手段〕 本発明に係るキャラクタの輪郭線データ変換装置は、
第1図の機能ブロック図に示すように、キャラクタの1
つ又は複数の閉ループ的輪郭線の輪郭線データを、輪郭
線を複数行×複数列の画素を有する画素スクリーンに重
ね合わせたと想定した場合に輪郭線で囲まれるキャラク
タ構成領域内に完全に又は概ね含まれる画素に対応する
ドットデータの集合に変換するデータ変換手段を備えた
キャラクタの輪郭線データ変換装置において、キャラク
タのキャラクタ構成領域の線幅を外部から指示された線
幅に変える為に、外部から受ける前記輪郭線データを所
定のルールに従って処理することにより、キャラクタ構
成領域を画定する輪郭線のうちの相対向する輪郭線セグ
メントの少なくとも一方を他方に対して移動させ且つ再
び閉ループ的輪郭線とする輪郭線データ変更手段と、輪
郭線データ変更手段から変更された輪郭線データを受
け、この輪郭線データを介して、移動した輪郭線セグメ
ントを含む輪郭線及びこれと交差した輪郭線については
相手方のキャラクタ構成領域に突入した輪郭線セグメン
トを除去して交差していない1つ又は複数の閉ループ的
輪郭線とし、また交差していない輪郭線はそのままと
し、その結果得られた1つ又は複数の閉ループ的輪郭線
からなるキャラクタの輪郭線データをデータ変換手段に
供給する閉ループ合成手段とを備えたものである。
[Means for Solving the Problems] The character contour line data conversion device according to the present invention comprises:
As shown in the functional block diagram of FIG.
The outline data of one or more closed-loop outlines is completely or substantially within the character configuration area surrounded by the outline, assuming that the outline is superimposed on a pixel screen having pixels of a plurality of rows and a plurality of columns. In a character contour line data conversion device provided with data conversion means for converting into a set of dot data corresponding to included pixels, an external device is used to change a line width of a character configuration region of a character to a line width designated from outside. By processing the contour data received from the user according to a predetermined rule, at least one of the opposing contour segments of the contours defining the character configuration area is moved with respect to the other, and the closed-loop contour is defined again. Receiving the changed contour data from the contour data changing means; , For the contour line including the moved contour line segment and the contour line intersecting with it, one or more closed loop contour lines that do not intersect by removing the contour line segment that has entered the character configuration area of the other party And closed-loop synthesizing means for supplying the contour data of the character consisting of one or more closed-loop contours obtained as a result to the data conversion means while leaving the non-intersecting contours as they are. is there.

〔作用〕[Action]

本発明に係るキャラクタの輪郭線データ変換装置にお
いては、輪郭線データ変更手段は、キャラクタの閉ルー
プ的輪郭線を複数行×複数列の画素を有する画素スクリ
ーンに重ね合わせたと想定した場合に輪郭線で囲まれる
キャラクタ構成領域の線幅を外部から指示された線幅に
変える為に、外部から受ける輪郭線データを所定のルー
ルに従って処理することにより、キャラクタ構成領域を
画定する輪郭線のうちの相対向する輪郭線セグメントの
少なくとも一方を他方に対して移動させ且つ再び閉ルー
プ的輪郭線とする。一方、閉ループ合成手段は、輪郭線
データ変更手段から変更された輪郭線データを受け、こ
の輪郭線データを介して、移動した輪郭線セグメントを
含む輪郭線及びこれと交差した輪郭線については相手方
のキャラクタ構成領域に突入した輪郭線セグメントを除
去して交差していない1つ又は複数の閉ループ的輪郭線
とし、また交差していない輪郭線はそのままとし、その
結果得られた1つ又は複数の閉ループ的輪郭線からなる
キャラクタの輪郭線データをデータ変換手段に供給する
ので、データ変換手段はこの輪郭線データを、キャラク
タ構成領域内に完全に又は概ね含まれる画素に対応する
ドットデータの集合に変換する。
In the character contour line data conversion device according to the present invention, the contour line data changing means includes a contour when the closed loop contour of the character is superimposed on a pixel screen having pixels of a plurality of rows and a plurality of columns. In order to change the line width of the enclosed character composition region to the line width designated from the outside, the contour data received from the outside is processed according to a predetermined rule, so that the opposing contour lines defining the character composition region are processed. At least one of the contour segments is moved relative to the other and again a closed loop contour. On the other hand, the closed-loop synthesizing means receives the modified contour data from the contour data changing means, and, through the contour data, the contour including the moved contour segment and the contour intersecting with the moved contour segment. One or more closed-loop contours that do not intersect by removing the contour segments that have entered the character composition area and leave the non-intersecting contours as they are, and the resulting one or more closed-loop contours The data converting means supplies the contour data of the character composed of the character contour to the data converting means, and converts the contour data into a set of dot data corresponding to the pixels completely or substantially included in the character configuration area. I do.

〔発明の効果〕〔The invention's effect〕

本発明に係るキャラクタの輪郭線データ変換装置によ
れば、輪郭線データ変更手段と閉ループ合成手段とを設
け、輪郭線データを所定のルールに従って処理すること
により、キャラクタ構成領域の線幅を変更した閉ループ
的輪郭線の輪郭線データを作成し、線幅の変更の際に移
動させた輪郭線セグメントを含む輪郭線及びこれと交差
した輪郭線については相手方のキャラクタ構成領域に突
入した輪郭線セグメントを除去して交差していない1つ
又は複数の閉ループ的輪郭線とし、その結果得られた1
つ又は複数の閉ループ的輪郭線からなるキャラクタの輪
郭線データに基いてデータ変換手段によりドットデータ
に変換するので、線幅を太くしたボールドキャラクタの
ときにも1つの閉ループ的輪郭線で囲まれるキャラクタ
構成領域内の全てに対応してドットデータの集合に変換
されることになり、印字されない白い部分を含まない綺
麗なキャラクタを生成できる。また、閉ループ的輪郭線
同士が交差することがないので、ボールドキャラクタの
輪郭線に基いた綺麗な白抜き文字を生成し得る輪郭線デ
ータを作成することができる。
According to the character contour data conversion device of the present invention, the contour data changing means and the closed loop synthesizing means are provided, and the contour data is processed according to a predetermined rule, thereby changing the line width of the character constituent area. Contour data of a closed loop contour is created, and for a contour including a contour segment moved at the time of changing the line width and a contour intersecting with the contour segment, a contour segment that has entered the character configuration area of the other party is extracted. Removed into one or more non-intersecting closed-loop contours, and the resulting 1
Since data is converted into dot data by data conversion means based on the contour data of a character composed of one or a plurality of closed loop contours, a character surrounded by one closed loop contour even when the bold character has a thick line width The data is converted into a set of dot data corresponding to all of the constituent areas, and a beautiful character that does not include a white portion that is not printed can be generated. In addition, since closed-loop contours do not intersect, it is possible to create contour data that can generate beautiful white characters based on the contour of a bold character.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基いて説明する。本実
施例はレーザプリンタにおいて文字や記号などのキャラ
クタのイメージを発生させるために、キャラクタの輪郭
線データをドットデータに変換するデータ変換装置に本
発明を適用した場合のものである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In this embodiment, the present invention is applied to a data conversion device that converts character outline data into dot data in order to generate a character image such as a character or a symbol in a laser printer.

レーザプリンタの制御装置のうち、輪郭線データをド
ットデータに変換するデータ変換に関するデータ変換装
置の制御系は第2図に示すように構成されている、デー
タ変換制御装置14は基本的には、CPU16と、CPU16にデー
タバスなどのバス28を介して接続されたROM(プログラ
ムメモリ)18、ROM(アウトラインフォントメモリ)2
0、RAM(テキストメモリ)22、RAM(ワーキングメモ
リ)24及びRAM(ドットデータメモリ)26とから構成さ
れている。また、このバス28には入力装置10及び印字装
置12が接続されており、入力装置10は外部から供給され
るキャラクタコードや文字サイズデータやキャラクタの
輪郭線で囲まれるキャラクタ構成輪郭線の線幅を太くす
る度合いを指示するボールド指令データなどデータ処理
に必要な種々のデータを入力するためのものであり、印
字装置12はドットデータメモリ26から入力されたビット
マップデータをレーザプリント方式により印字するもの
である。
Among the control devices of the laser printer, the control system of the data conversion device relating to the data conversion for converting the contour data to the dot data is configured as shown in FIG. 2, and the data conversion control device 14 is basically CPU 16 and ROM (program memory) 18 and ROM (outline font memory) 2 connected to CPU 16 via bus 28 such as a data bus
0, a RAM (text memory) 22, a RAM (working memory) 24, and a RAM (dot data memory) 26. Further, the input device 10 and the printing device 12 are connected to the bus 28, and the input device 10 is provided with a character code and character size data supplied from the outside and a line width of a character configuration outline surrounded by the outline of the character. The printer 12 prints the bitmap data input from the dot data memory 26 by a laser printing method, such as inputting various data necessary for data processing such as bold command data indicating the degree of thickening. Things.

前記プログラムメモリ18には、後述するデータ変換制
御の制御プログラムや各種の制御プログラムが格納され
ている。このデータ変換制御プログラムには、入力され
たキャラクタコードに関する輪郭線データをアウトライ
ンフォントメモリ20から読出すサブルーチン、輪郭線デ
ータを拡大・縮小(スケーリング)処理するスケーリン
グ処理制御サブルーチン、このスケーリング処理した輪
郭線データをショートベクトルに展開するショートベク
トル処理サブルーチン、ベジェ曲線の関数を発生させる
ベジェ曲線関数サブルーチン、ショートベクトル処理さ
れた輪郭線データをドットデータに変換する変換処理サ
ブルーチンなどが格納されている。
The program memory 18 stores a control program for data conversion control and various control programs described later. The data conversion control program includes a subroutine for reading contour data relating to the input character code from the outline font memory 20, a scaling process control subroutine for enlarging / reducing (scaling) contour data, A short vector processing subroutine for expanding data into short vectors, a Bezier curve function subroutine for generating a Bezier curve function, and a conversion processing subroutine for converting contour data subjected to short vector processing into dot data are stored.

アウトラインフォントメモリ20には、多数のキャラク
タの各々について、キャラクタの輪郭を規定する1つ又
は複数の閉ループ的輪郭線の輪郭線データがキャラクタ
のコード番号に関連づけて格納されている。尚、このメ
モリ20には、各キャラクタについてその線幅が細いライ
ト系の書体の輪郭線データが格納されている。但し、前
記閉ループ的輪郭線には、その輪郭線の内部に1つ又は
複数の閉ループ的輪郭線が存在するものも含む。テキス
トメモリ22には、入力装置10から供給されるテキストデ
ータ(コード列)が格納される。ワーキングメモリ24に
はCPU16で演算処理した各種の演算結果が格納される。
ドットデータメモリ26には変換されたドットデータが格
納される。
The outline font memory 20 stores, for each of a large number of characters, outline data of one or more closed-loop outlines defining the outline of the character in association with the code number of the character. Note that the memory 20 stores outline data of a light type font whose line width is small for each character. However, the closed-loop contour includes one in which one or more closed-loop contours exist inside the contour. The text memory 22 stores text data (code strings) supplied from the input device 10. The working memory 24 stores various calculation results processed by the CPU 16.
The dot data memory 26 stores the converted dot data.

次に、データ変換制御装置14で行なわれるデータ変換
制御のルーチンについて、第3図〜第5図のフローチャ
ートに基いて説明する。尚、図中符号Si(i=10、11、
12・・・)は各ステップである。
Next, a data conversion control routine performed by the data conversion control device 14 will be described with reference to the flowcharts of FIGS. In the figure, reference symbol Si (i = 10, 11,
12 ...) are each step.

テキストメモリ22に格納されたキャラクタのコードデ
ータが読出される毎にこの制御が開始され、このコード
データに基いてアウトラインフォントメモリ20からこの
コードデータに対応するキャラクタの輪郭線データが読
出され(S10)、テキストメモリ22にボールド文字に変
更するボールド指令データが格納されているときには
(S11:Yes)、ボールド化処理制御(第4図参照)が実
行される。(S12)。尚、このボールド指令データの入
力時には、テキストメモリ22の所定メモリ領域にその線
幅を指示する線幅データが格納されている。
This control is started each time the code data of the character stored in the text memory 22 is read, and the outline data of the character corresponding to the code data is read from the outline font memory 20 based on the code data (S10). If the text memory 22 stores bold command data for changing to bold characters (S11: Yes), bolding process control (see FIG. 4) is executed. (S12). At the time of inputting the bold command data, line width data indicating the line width is stored in a predetermined memory area of the text memory 22.

この制御が開始されると、輪郭線データの各閉ループ
的輪郭線のデータに基いて、キャラクタ構成領域を画定
する輪郭線のうち、線幅の太さを規定する相対向した両
方の輪郭線セグメントが各閉ループ的輪郭線毎に決定さ
れ(S20)、テキストメモリ22に格納された線幅データ
に基いて、決定された各輪郭線セグメントが指定された
線幅となるように所定の方向へ移動され(S21)、移動
後の各輪郭線セグメントのデータを求めることにより、
ボールド化したキャラクタの輪郭線データが求められ
(S22)、リターンする。例えば、テキストメモリ22に
格納されたコードが漢字「草」のときは、第6図に示す
ように漢字「草」の輪郭線データが読出される。この輪
郭線データは、座標データ「a1、a2、a3、a4・・・・a1
9、a20」からなる閉ループ的輪郭線RAと、座標データ
「b1、b2、b3、b4・・・・b15、b16」からなる閉ループ
的輪郭線RBと、座標データ「c1、c2、c3、c4」からなる
閉ループ的輪郭線RCと、座標データ「d1、d2、d3、d4」
からなる閉ループ的輪郭線RDとの4つの閉ループ的輪郭
線からなっており、これらの座標データに基いて線幅を
規定する相対向した両方の輪郭線セグメントが各閉ルー
プ的輪郭線RA、RB、RC、RDについて決定される。つま
り、閉ループ的輪郭線RAについて、輪郭線セグメント
(a2−a3)、(a3−a4)、(a5−a6)、(a6−a7)・・
・・(a19−a20)、(a20−a1)、閉ループ的輪郭線RB
について、輪郭線セグメント(b1−b2)、(b2−b3)、
(b3−b4)、(b4−b5)・・・・(b15−b16)、(a16
−b1)、閉ループ的輪郭線RCについて、輪郭線セグメン
ト(c1−c2)、(c2−c3)、(c3−c4)、(c4−c1)、
閉ループ的輪郭線RDについて、輪郭線セグメント(d1−
d2)、(d2−d3)、(d3−d4)、(d4−d1)、が夫々決
定され、これら各輪郭線セグメントが線幅データに基い
て所定の方向へ移動され、第7図に示すようにボールド
化された漢字「草」の輪郭線データが求められる。
When this control is started, based on the data of each closed-loop contour of the contour data, of the contours defining the character configuration area, both opposing contour segments defining the thickness of the line width. Is determined for each closed loop contour (S20), and is moved in a predetermined direction based on the line width data stored in the text memory 22 so that each determined contour line segment has the specified line width. (S21), and by obtaining data of each contour line segment after the movement,
The outline data of the bolded character is obtained (S22), and the process returns. For example, when the code stored in the text memory 22 is the Chinese character "Kusa", the outline data of the Chinese character "Kusa" is read as shown in FIG. This contour data is represented by coordinate data “a1, a2, a3, a4.
9, a20 '', a closed-loop contour RB composed of coordinate data `` b1, b2, b3, b4 ... b15, b16 '', and coordinate data `` c1, c2, c3, c4 "And a coordinate data" d1, d2, d3, d4 "
And two closed loop contours defining the line width based on these coordinate data are formed by the closed loop contours RD and RB, respectively. Determined for RC and RD. That is, for the closed-loop contour line RA, the contour line segments (a2-a3), (a3-a4), (a5-a6), (a6-a7)
.. (a19-a20), (a20-a1), closed loop contour RB
For the contour segments (b1-b2), (b2-b3),
(B3-b4), (b4-b5) ... (b15-b16), (a16
−b1), for the closed loop contour RC, the contour segments (c1−c2), (c2−c3), (c3−c4), (c4−c1),
For the closed loop contour RD, the contour segment (d1−
d2), (d2-d3), (d3-d4), and (d4-d1) are determined respectively, and each of these outline segments is moved in a predetermined direction based on the line width data, and is shown in FIG. The outline data of the bolded Chinese character "Kusa" is obtained.

次に、このボールド化された輪郭線データに基いて、
2つの閉ループ的輪郭線についてこれら閉ループ的輪郭
線同士の交点データが演算処理により求められる(S1
3)。即ち、例えば第7図に示すボールド化された漢字
「草」のときには、閉ループ的輪郭線RAとRBとについて
交点データを求めるときには、輪郭線セグメント(a1−
a2)について各閉ループ的輪郭線RBの各輪郭線セグメン
ト(b1−b2)、(b2−b3)、・・・・(b16−b1)との
交点の有無が演算され、以下同様にして各輪郭線セグメ
ント(a2−a3)、(a3−a4)・・・(a20−a1)の夫々
について各閉ループ的輪郭線RBの各輪郭線セグメントと
の交点の有無が演算される。また、閉ループ的輪郭線RB
とRCとについて、更に閉ループ的輪郭線RCとRDとについ
て同様にして交点が演算される。そして、交点が求めら
れたときにはその交点の座標データp1、p2、p3、p4がワ
ーキングメモリ24に格納される一方、各交点p1〜p4を含
む輪郭線セグメント(a3−a4)、(a5−a6)、(a7−a
8)、(a9−a10)、(b16−b1)は(a3−p1)、(p1−a
4)、(a5−p2)、(p2−a6)、(a7−p3)、(p3−a
8)、(a9−p4)、(p4−a10)、(b16−p4)、(p4−p
3)、(p3−p2)、(p2−p1)、(p1−b1)のように交
点を含む1つ又は複数の輪郭線セグメントに分割され、
交点を含む輪郭セグメントには交点フラグが夫々追加し
て格納される。
Next, based on the bolded contour data,
With respect to the two closed-loop contours, intersection data between these closed-loop contours is obtained by arithmetic processing (S1).
3). That is, for example, in the case of the bolded Chinese character "Kusa" shown in FIG. 7, when obtaining intersection data for the closed-loop contours RA and RB, the contour segment (a1−
For a2), the presence or absence of an intersection with each contour line segment (b1-b2), (b2-b3),... (b16-b1) of each closed-loop contour line RB is calculated. For each of the line segments (a2-a3), (a3-a4)... (A20-a1), the presence or absence of an intersection of each closed-loop contour RB with each contour segment is calculated. In addition, the closed loop contour RB
, And RC, and the intersection is similarly calculated for the closed-loop contour lines RC and RD. When the intersection is obtained, the coordinate data p1, p2, p3, and p4 of the intersection are stored in the working memory 24, while the outline segments (a3-a4) and (a5-a6) including the intersections p1 to p4 are stored. ), (A7-a
8), (a9-a10), (b16-b1) are (a3-p1), (p1-a
4), (a5-p2), (p2-a6), (a7-p3), (p3-a
8), (a9-p4), (p4-a10), (b16-p4), (p4-p
3) divided into one or more contour segments including intersections, such as (p3-p2), (p2-p1), (p1-b1),
An intersection flag is additionally stored in the contour segment including the intersection.

次に、各閉ループ的輪郭線の輪郭線セグメントのデー
タに格納されている交点フラグが検索され、この交点フ
ラグが検出されたときには(S14:Yes)、交点で交差す
る2つの輪郭線を1つの閉ループ的輪郭線に合成する処
理制御(第5図参照)が実行される(S15)。この制御
が開始されると、各閉ループ的輪郭線で囲まれるキャラ
クタ構成領域に相互に突入している輪郭線セグメントが
除去され(S30)、交点データに基いて2つの閉ループ
的輪郭線が1つの閉ループ的輪郭線に合成され(S3
1)、この合成された閉ループ的輪郭線に基いて新規の
輪郭線データが作成され(S32)、リターンする。例え
ば第7図に示す漢字「草」のときには、前述した閉ルー
プ的輪郭線RAの複数の輪郭線セグメントのうちから、閉
ループ的輪郭線RBの構成領域に突入している輪郭線セグ
メント(p1−a4)、(a4−a5)、(a5−p2)、(p3−a
8)、(a8−a9)、(a9−p4)が除去されるとともに、
閉ループ的輪郭線RBの複数の輪郭線セグメントのうちか
ら、閉ループ的輪郭線RAの構成領域に突入している輪郭
線セグメント(p4−p3)、(p2−p1)が除去され、各閉
ループ的輪郭線RA、RB、RC、RDは夫々第8図に示すよう
に変更される。更に、2つの閉ループ的輪郭線RAと閉ル
ープ的輪郭線RBとは、座標データa1、a2、a3、p1、b1、
b2・・・b16、p4、a10、a11・・・a19、a20、a1によ
り、1つの閉ループ的輪郭線RABに合成される。その他
の閉ループ的輪郭線RC、RDについては変更はないが、こ
のとき座標データa6、p2、p3、a7からなる新規の閉ルー
プ的輪郭線REが作成される。その結果、閉ループ的輪郭
線RAB、RC、RD、REにより漢字「草」のボールド化処理
後の新規の輪郭線データが作成される。
Next, an intersection flag stored in the data of the contour line segment of each closed-loop contour is searched, and when this intersection flag is detected (S14: Yes), the two contours that intersect at the intersection are converted into one. Processing control for synthesizing with a closed loop contour (see FIG. 5) is executed (S15). When this control is started, the outline segments mutually protruding into the character configuration area surrounded by each closed-loop outline are removed (S30), and two closed-loop outlines are converted into one based on the intersection data. Combined into a closed loop contour (S3
1), new contour data is created based on the synthesized closed loop contour (S32), and the process returns. For example, in the case of the kanji "Kusa" shown in FIG. 7, the contour segment (p1-a4) that enters the constituent region of the closed-loop contour RB from among the plurality of contours of the closed-loop contour RA described above. ), (A4-a5), (a5-p2), (p3-a
8), (a8-a9) and (a9-p4) are removed,
Out of the plurality of contour segments of the closed loop contour RB, the contour segments (p4-p3) and (p2-p1) protruding into the constituent region of the closed loop contour RA are removed, and each closed loop contour is obtained. The lines RA, RB, RC, and RD are respectively changed as shown in FIG. Further, the two closed-loop contour lines RA and RB are coordinate data a1, a2, a3, p1, b1,
b2... b16, p4, a10, a11... a19, a20, and a1 are combined into one closed-loop contour RAB. The other closed-loop contour lines RC and RD are not changed, but at this time, a new closed-loop contour line RE including coordinate data a6, p2, p3, and a7 is created. As a result, new contour data after the bolding processing of the kanji “Kusa” is created by the closed-loop contours RAB, RC, RD, and RE.

次に、この輪郭線データは設定文字サイズとなるよう
に拡大・縮小処理(スケーリング処理)が実行され(S1
6)、曲線データに関して複数のショートベクトルに展
開され(S17)、このショートベクトル処理された輪郭
線データがドットデータに変換されてドットメモリ26に
格納され(S18)、メインルーチンにリターンする。
Next, enlargement / reduction processing (scaling processing) is performed on the contour data so as to have the set character size (S1).
6) The curve data is developed into a plurality of short vectors (S17), and the contour data subjected to the short vector processing is converted into dot data and stored in the dot memory 26 (S18), and the process returns to the main routine.

このドットデータ変換処理においては、第9図に示す
ように画素スクリーン30を用いて行なわれる。この画素
スクリーン30はX軸方向及びY軸方向に夫々延びる複数
行×複数列の等間隔に設けられ、レーザにより印字する
ときの最小印字単位である画素を規定するための複数の
画素区間線l1により形成され、輪郭線データをドットデ
ータに変換するための理論上のものである。キャラクタ
の輪郭線データをこの画素スクリーン30に重ね合わせた
と想定して、キャラクタの構成領域内に完全に又は概ね
含まれる画素に対応するビットデータがデータ「1」に
設定される。尚、この画素の大きさはプリンタの解像度
で決定され、通常1/300インチである。
This dot data conversion process is performed using the pixel screen 30 as shown in FIG. The pixel screen 30 is provided at equal intervals of a plurality of rows and a plurality of columns extending in the X-axis direction and the Y-axis direction, respectively, and includes a plurality of pixel section lines l1 for defining a pixel which is a minimum printing unit when printing with a laser. And is a theoretical one for converting the outline data to dot data. Assuming that the outline data of the character is superimposed on the pixel screen 30, bit data corresponding to a pixel completely or substantially included in the character configuration area is set to data "1". The size of this pixel is determined by the resolution of the printer, and is usually 1/300 inch.

従って、このボールド化された漢字「草」を構成する
閉ループ的輪郭線RAB、RC、RD、REの何れも相互に交差
する部分が無いので、各閉ループ的輪郭線RAB、RC、R
D、REで囲まれるキャラクタ構成領域内の全てに対応し
てドットデータに変換されることになり、ボールド化し
た漢字「草」は何れの部分にも印字されない白い部分を
含まない綺麗な漢字で印字される。また、このボールド
化された漢字「草」を「白抜き」により印字させたとき
には、輪郭線に基づいた綺麗な白抜き文字として印字す
ることができる。
Accordingly, there is no portion where any of the closed loop contours RAB, RC, RD, and RE constituting the bolded kanji “grass” intersect each other, so that each closed loop contour RAB, RC, R
D will be converted to dot data corresponding to the whole of the character configuration area enclosed by D and RE, and the bolded kanji "Kusa" is a beautiful kanji that does not include white parts that are not printed in any part Printed. In addition, when the bolded kanji “grass” is printed in “white”, it can be printed as a beautiful white character based on the outline.

尚、前記データ変換制御において、線幅を太くする際
に、線幅の太さを規定する相対向する輪郭線セグメント
のうちの何れか一方を他方に対して移動させるようにし
てもよい。この場合には、移動させた輪郭線セグメント
についてのみ交点を求める演算処理が実行され、演算処
理の短縮化が図れる。
In the data conversion control, when the line width is increased, one of the opposing contour line segments defining the line width may be moved with respect to the other. In this case, the calculation processing for finding the intersection only for the moved outline segment is executed, and the calculation processing can be shortened.

尚、文字や記号などのキャラクタを輪郭線データで記
憶するようにしたプリンタやファクシミリや表示装置な
ど種々の出力機器に本発明を適用し得ることは勿論であ
る。
Of course, the present invention can be applied to various output devices such as a printer, a facsimile, and a display device in which characters such as characters and symbols are stored as contour data.

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

第1図は本発明の構成を示す機能ブロック図、第2図〜
第9図は本発明の実施例を示すもので、第2図はレーザ
プリンタのデータ変換装置の制御系のブロック図、第3
図はデータ変換制御のルーチンの概略フローチャート、
第4図はボールド化処理制御のルーチンのフローチャー
ト、第5図は2つの輪郭線の合成処理制御のルーチンの
フローチャート、第6図はアウトラインフォントメモリ
に格納されている漢字「草」の輪郭線データを可視的に
示す図、第7図はボールド化した漢字「草」の輪郭線デ
ータを可視的に示す図、第8図は2つの閉ループ的輪郭
線を1つに合成した漢字「草」の輪郭線データを可視的
に示す図、第9図は漢字「草」を画素スクリーンに重ね
合わせた図、第10図は従来技術におけるボールド化処理
した漢字「草」の印字例を示す図である。 14……データ変換制御装置、16……CPU、18……ROM(プ
ログラムメモリ)、20……アウトラインフォントメモ
リ、30……画素スクリーン、
FIG. 1 is a functional block diagram showing the configuration of the present invention, and FIGS.
FIG. 9 shows an embodiment of the present invention. FIG. 2 is a block diagram of a control system of a data conversion device of a laser printer.
The figure is a schematic flowchart of a data conversion control routine,
FIG. 4 is a flowchart of a routine for controlling bolding processing, FIG. 5 is a flowchart of a routine for controlling processing for synthesizing two outlines, and FIG. 6 is outline data of kanji “grass” stored in an outline font memory. FIG. 7 is a view visually showing contour data of a bolded kanji “grass”, and FIG. 8 is a view of a kanji “grass” obtained by combining two closed-loop contours into one. FIG. 9 is a diagram showing contour data visually, FIG. 9 is a diagram in which a kanji “grass” is superimposed on a pixel screen, and FIG. 10 is a diagram showing a print example of a bold-processed kanji “grass” in the prior art. . 14 Data conversion control device, 16 CPU, 18 ROM (program memory), 20 outline font memory, 30 pixel screen,

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G09G 5/24 B41J 2/485 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G09G 5/24 B41J 2/485

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】キャラクタの1つ又は複数の閉ループ的輪
郭線の輪郭線データを、前記輪郭線を複数行×複数列の
画素を有する画素スクリーンに重ね合わせたと想定した
場合に輪郭線で囲まれるキャラクタ構成領域内に完全に
又は概ね含まれる画素に対応するドットデータの集合に
変換するデータ変換手段を備えたキャラクタの輪郭線デ
ータ変換装置において、 前記キャラクタのキャラクタ構成領域の線幅を外部から
指示された線幅に変える為に、外部から受ける前記輪郭
線データを所定のルールに従って処理することにより、
キャラクタ構成領域を画定する輪郭線のうちの相対向す
る輪郭線セグメントの少なくとも一方を他方に対して移
動させ且つ再び閉ループ的輪郭線とする輪郭線データ変
更手段と、 前記輪郭線データ変更手段から変更された輪郭線データ
を受け、この輪郭線データを介して、前記移動した輪郭
線セグメントを含む輪郭線及びこれと交差した輪郭線に
ついては相手方のキャラクタ構成領域に突入した輪郭線
セグメントを除去して交差していない1つ又は複数の閉
ループ的輪郭線とし、また交差していない輪郭線はその
ままとし、その結果得られた1つ又は複数の閉ループ的
輪郭線からなるキャラクタの輪郭線データを前記データ
変換手段に供給する閉ループ合成手段と、 を備えたことを特徴とするキャラクタの輪郭線データ変
換装置。
An outline is defined by assuming that outline data of one or more closed-loop outlines of a character is superimposed on a pixel screen having pixels of a plurality of rows and a plurality of columns. In a character contour line data conversion device provided with data conversion means for converting into a set of dot data corresponding to pixels completely or substantially included in a character configuration area, a line width of the character configuration area of the character is externally designated. By processing the contour data received from the outside in accordance with a predetermined rule, in order to change the line width to
Contour data changing means for moving at least one of the opposing contour segments of the contours defining the character configuration area with respect to the other and again as a closed loop contour, and changing from the contour data changing means The received contour data is received, and through this contour data, the contour including the moved contour segment and the contour intersecting with the contour are removed by removing the contour segment that has entered the character configuration area of the other party. One or more closed-loop contours that do not intersect, and the non-intersecting contours are left as they are, and the resulting contour data of the character comprising one or more closed-loop contours is referred to as the data. And a closed-loop synthesizing means for supplying to the converting means.
JP02286727A 1990-10-23 1990-10-23 Character outline data converter Expired - Lifetime JP3082235B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02286727A JP3082235B2 (en) 1990-10-23 1990-10-23 Character outline data converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02286727A JP3082235B2 (en) 1990-10-23 1990-10-23 Character outline data converter

Publications (2)

Publication Number Publication Date
JPH04159594A JPH04159594A (en) 1992-06-02
JP3082235B2 true JP3082235B2 (en) 2000-08-28

Family

ID=17708237

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02286727A Expired - Lifetime JP3082235B2 (en) 1990-10-23 1990-10-23 Character outline data converter

Country Status (1)

Country Link
JP (1) JP3082235B2 (en)

Also Published As

Publication number Publication date
JPH04159594A (en) 1992-06-02

Similar Documents

Publication Publication Date Title
JP3111811B2 (en) Apparatus and method for adjusting character spacing
JPH02236595A (en) Character pattern data generator
JP2768423B2 (en) Character processor
JP3082235B2 (en) Character outline data converter
JP3486467B2 (en) Image recording apparatus and control method thereof
JP2710120B2 (en) Document processing method
JPH0443396A (en) Character pattern generating device
JP3055187B2 (en) Contour data processing device
JP2650324B2 (en) Multi-value character font generation system
JP2697328B2 (en) Contour data processing device
JP2856604B2 (en) Character processor
JP3082236B2 (en) Character drawing device
JP2771629B2 (en) Character processor
JP2800865B2 (en) Character processor
JP3063205B2 (en) Document image processing device
JPS60109888A (en) Character processor
JP2878715B2 (en) Document creation device
JPH09254459A (en) Character processing device, character process method and memory
JPH06130930A (en) Method and device for generating bit image data
JPH08101675A (en) Font developing device
JP2803746B2 (en) Character processing method and apparatus
JPH11219358A (en) Document data output device and its program recording medium
JP3040624B2 (en) Pattern generator
JPH04120594A (en) Data converter
JPH08153092A (en) Document processor

Legal Events

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

Free format text: PAYMENT UNTIL: 20080630

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090630

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100630

Year of fee payment: 10