JP2618528B2 - Character drawing device, character output correction method, and character output device - Google Patents

Character drawing device, character output correction method, and character output device

Info

Publication number
JP2618528B2
JP2618528B2 JP2315951A JP31595190A JP2618528B2 JP 2618528 B2 JP2618528 B2 JP 2618528B2 JP 2315951 A JP2315951 A JP 2315951A JP 31595190 A JP31595190 A JP 31595190A JP 2618528 B2 JP2618528 B2 JP 2618528B2
Authority
JP
Japan
Prior art keywords
character
coordinate
outline
integer
intervals
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
JP2315951A
Other languages
Japanese (ja)
Other versions
JPH04188190A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2315951A priority Critical patent/JP2618528B2/en
Publication of JPH04188190A publication Critical patent/JPH04188190A/en
Application granted granted Critical
Publication of JP2618528B2 publication Critical patent/JP2618528B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、レーザ・ビーム・プリンタ,ディスプレイ
装置などの表示装置に係り、特に、アウトラインフォン
トを用いて高品質な文字を出力するに好適な文字装置に
関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a display device such as a laser beam printer or a display device, and more particularly to a device suitable for outputting high-quality characters using an outline font. For character devices.

〔従来の技術〕[Conventional technology]

レーザ・ビーム・プリンタ,ディスプレイ等の表示装
置における文字データの記憶形式としてアウトラインフ
ォントがある。アウトラインフォントは、文字の形状
を、文字の輪郭の座標列として記憶するものである。こ
のアウトラインフォントを印字するには、まず所望の印
字サイズにするために各輪郭座標値を座標変換し、その
後、変換した輪郭座標の内部を塗りつぶすという処理を
行う。アウトラインフォントは、拡大縮小回転変形等が
自由自在にできるという特長がある反面、64×64ドット
以下の小さな文字を印字する場合には、量子化誤差によ
り文字の垂直線・水平線の線幅が不揃いとなり、文字の
表示品質が低下するという問題がある。
There is an outline font as a storage format of character data in a display device such as a laser beam printer and a display. An outline font stores the shape of a character as a coordinate sequence of the outline of the character. In order to print this outline font, first, coordinate conversion is performed on each outline coordinate value in order to obtain a desired print size, and then processing is performed in which the inside of the converted outline coordinates is painted out. Outline fonts have the advantage that they can be freely scaled, rotated, deformed, etc., but when printing small characters of 64 x 64 dots or less, the line widths of vertical and horizontal lines of characters are not uniform due to quantization errors. And there is a problem that the display quality of characters is deteriorated.

この線幅を補正するための従来方法として、あらかじ
め垂直線・水平線の線幅をテーブルに記憶しておき、印
字の際には、垂直線・水平線を形成する2本の輪郭線の
うちの一方を基準線としてテーブルに記憶された線幅を
参照し、他方の輪郭線座標を決定して線幅を補正し高品
質な印字を実現する方法がある。
As a conventional method for correcting the line width, the line widths of the vertical line and the horizontal line are stored in a table in advance, and when printing, one of the two contour lines forming the vertical line and the horizontal line is used. There is a method of referring to the line width stored in the table with reference to the reference line, determining the other contour line coordinates, correcting the line width, and realizing high quality printing.

尚、従来技術に関連するものとして、特開平2−8165
7号がある。
Incidentally, Japanese Patent Application Laid-Open No. 2-8165
There is No. 7.

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

しかし、上記従来方法では、各文字サイズ毎に線幅情
報をテーブルに記憶しておく必要がある。このため、印
字可能な文字サイズが線幅情報の有無によって制限され
てしまうという問題が生じる。また、上記従来方法で
は、水平・垂直線の線幅についての補正は可能である
が、2つの水平線もしくは2つの垂直線に囲まれた白の
領域の補正は考慮されていない。
However, in the above conventional method, it is necessary to store line width information in a table for each character size. For this reason, there is a problem that the printable character size is limited by the presence or absence of the line width information. Further, in the above-described conventional method, it is possible to correct the line widths of the horizontal and vertical lines, but no consideration is given to the correction of a white region surrounded by two horizontal lines or two vertical lines.

本発明の目的は、線幅補正のための付加的な情報を持
たないアウトラインフォントに関しても、任意の文字サ
イズに対して線幅補正可能な文字描画装置等を提供する
ことにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a character drawing device and the like which can correct a line width for an arbitrary character size even for an outline font having no additional information for line width correction.

また、本発明の別の目的は、水平・垂直線の線幅の補
正のみならず、2つの水平線もしくは2つの垂直線に囲
まれた白の領域の補正も考慮した高品質な文字描画装置
等を提供することにある。
Another object of the present invention is to provide a high-quality character drawing apparatus and the like that takes into account not only correction of the line width of horizontal and vertical lines, but also correction of a white area surrounded by two horizontal lines or two vertical lines. Is to provide.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的は、座標変換後の輪郭座標から水平・垂直線
の輪郭座標を抽出し、輪郭座標間の間隔をそれぞれ整数
化し、得られた整数間隔をもとに各輪郭座標を再計算す
ることで、達成される。
The above object is to extract the outline coordinates of the horizontal and vertical lines from the outline coordinates after the coordinate conversion, convert the intervals between the outline coordinates into integers, and recalculate the outline coordinates based on the obtained integer intervals. Is achieved.

また、輪郭座標間の間隔をそれぞれ整数化すると、全
体長が伸び縮みするが、黒の領域、白の領域の一方は幅
がそろった状態で固定し、他方は対称性を重視しながら
補正し、全体長を補正するようにすることで、達成され
る。
When the interval between the contour coordinates is converted to an integer, the overall length expands and contracts, but one of the black region and the white region is fixed with a uniform width, and the other is corrected with emphasis on symmetry. This is achieved by correcting the overall length.

〔作用〕[Action]

整数間隔算出部が文字輪郭座標データから自動的に水
平・垂直線の輪郭座標値を抽出し、各間隔をそれぞれ個
別に整数化する。これにより、任意の文字サイズに関
し、線幅補正情報をあらかじめ準備しておかなくても、
整数化される前に同じ間隔であった輪郭座標間の間隔
は、整数化後も同じ間隔となる。
The integer interval calculating unit automatically extracts the outline coordinate values of the horizontal and vertical lines from the character outline coordinate data, and individually converts each interval to an integer. As a result, it is possible to prepare line width correction information for an arbitrary character size in advance.
The interval between the contour coordinates that was the same before the conversion to the integer is the same after the conversion to the integer.

また、全体長補正部は補正の際に対称性を重視した補
正を行うので、対称性の保たれた高品質な補正が可能と
なる。
In addition, since the overall length correction unit performs correction with emphasis on symmetry at the time of correction, it is possible to perform high-quality correction while maintaining symmetry.

〔実施例〕〔Example〕

以下に、本発明の一実施例を第1図〜第9図を参照し
て説明する。
Hereinafter, an embodiment of the present invention will be described with reference to FIGS.

第1図は本発明の一実施例に係る文字描画装置の構成
図である。ホスト計算機1は、この文字描画装置2に印
字命令を転送すると、文字描画装置2は、上記印字命令
を受けて文字イメージを生成し、表示装置3に転送す
る。表示装置3は、レーザ・ビーム・プリンタ,グラフ
ィック・ディスプレイ,もしくは液晶表示装置であり、
上記文字イメージを印刷もしくは表示する。
FIG. 1 is a configuration diagram of a character drawing apparatus according to an embodiment of the present invention. When the host computer 1 transfers the print command to the character drawing device 2, the character drawing device 2 receives the print command, generates a character image, and transfers the character image to the display device 3. The display device 3 is a laser beam printer, a graphic display, or a liquid crystal display device.
Print or display the character image.

文字描画装置2の内部では、データ読出し部20が、ホ
スト計算機1から送られてきた書体情報と文字コードを
解読し、指定された文字輪郭座標データを、フォント記
憶部20からワークメモリ25に読み出す。座標変換部22
は、ホスト計算機1より文字サイズ情報を受け取り、ワ
ークメモリ25に読み出された文字輪郭座標データを所定
のサイズになるように変換する。このとき、文字輪郭座
標データが、ベジェー曲線,スプライン曲線,円弧等の
曲線表現を含む場合には、座標変換部22において直線近
似処理を行う。変換を受けた文字輪郭座標データは、線
幅補正部23において補正される。塗りつぶし部24は、補
正された文字輪郭座標データをもとに、輪郭内部を塗り
つぶすことによって文字イメージを生成し、表示装置3
に転送する。
Inside the character drawing device 2, the data reading unit 20 decodes the typeface information and the character code sent from the host computer 1, and reads out the specified character outline coordinate data from the font storage unit 20 to the work memory 25. . Coordinate converter 22
Receives character size information from the host computer 1 and converts the character contour coordinate data read into the work memory 25 to a predetermined size. At this time, if the character outline coordinate data includes a curved expression such as a Bezier curve, a spline curve, or an arc, the coordinate conversion unit 22 performs a linear approximation process. The converted character outline coordinate data is corrected by the line width correction unit 23. The filling unit 24 generates a character image by filling the inside of the outline based on the corrected character outline coordinate data, and
Transfer to

線幅補正部23の内部では、まず閉図形分離部230が、
座標変換部22により変換を受けた文字輪郭座標データ
を、閉図形を形成する座標データ列のグループに分離
し、1グループずつ切り出して、その範囲を整数間隔抽
出部231に指定する。線幅補正部23の、以下に続く処理
は、閉図形分離部230により分けられた各グループに対
して順に行われる。
Inside the line width correction unit 23, first, the closed figure separation unit 230
The character outline coordinate data converted by the coordinate conversion unit 22 is separated into groups of coordinate data strings forming a closed figure, cut out one by one, and the range is specified to the integer interval extraction unit 231. The following processing of the line width correction unit 23 is sequentially performed on each group divided by the closed figure separation unit 230.

第2図に、整数間隔抽出部231の動作を示す。第2図
では、文字「日」の水平線輪郭座標のy座標に対する処
理を例にとって動作を説明する。以下では、第2図に従
い、水平線輪郭座標のy座標に対する処理のみを説明す
るが、垂直線輪郭座標のx座標に関しても同様の処理を
行う。
FIG. 2 shows the operation of the integer interval extracting unit 231. In FIG. 2, the operation will be described by taking as an example the processing on the y-coordinate of the horizontal line contour coordinates of the character "date". In the following, only the processing on the y-coordinate of the horizontal line contour coordinates will be described with reference to FIG. 2, but the same processing is performed on the x-coordinate of the vertical line contour coordinates.

閉図形分離部230より指定された座標データ・グルー
プの中から水平線輪郭座標のy座標(y0〜y6)を抽出
し、該水平線輪郭座標のy座標に、上記座標データ・グ
ループにおけるy座標の最大値・最小値を加え、ソーテ
ィングし、重複する座標値は削除して、水平線テーブル
1000に記憶する。
The y coordinate (y0 to y6) of the horizontal line outline coordinate is extracted from the coordinate data group designated by the closed figure separation unit 230, and the maximum y coordinate of the coordinate data group is set to the y coordinate of the horizontal line outline coordinate. Add a value / minimum value, sort, remove duplicated coordinate values,
Remember to 1000.

次に、上記水平線テーブル1000の隣り合った座標値同
士の差(dy0〜dy5)を算出し、水平線間隔テーブル1001
に記憶する。さらに、水平線間隔テーブル1001の各要素
を整数化し、その結果(idy0〜idy5)を整数水平線間隔
テーブル1002に記憶する。
Next, differences (dy0 to dy5) between adjacent coordinate values of the horizontal line table 1000 are calculated, and the horizontal line interval table 1001 is calculated.
To memorize. Further, each element of the horizontal line interval table 1001 is converted into an integer, and the result (idy0 to idy5) is stored in the integer horizontal line interval table 1002.

また、水平線間隔テーブル1001の要素の合計(yt)を
求めて全体長テーブル1003に記憶し、該全体長(yt)を
整数化した整数全体長(iyt)を整数全体長テーブル100
5に記憶する。さらに、整数水平線間隔テーブル1002に
記憶された整数水平線間隔(idy0〜idy5)の合計(iy
s)を求めて整数水平線間隔合計テーブル1004に記憶す
る。
In addition, the total (yt) of the elements of the horizontal line interval table 1001 is obtained and stored in the overall length table 1003, and the entire integer (iyt) obtained by converting the overall length (yt) into an integer is stored in the entire integer length table 100.
Remember in 5. Further, the sum (iy) of the integer horizontal line intervals (idy0 to idy5) stored in the integer horizontal line interval table 1002
s) is obtained and stored in the integer horizontal line interval total table 1004.

次に、整数水平線間隔合計テーブル1004に記憶された
複数水平線間隔合計(iys)と、整数全体長テーブル100
5に記憶された整数全体長(iyt)との差(dyt)を求
め、全体長誤差テーブル1006に記憶する。全体長誤差テ
ーブル1006に記憶された全体長誤差(dyt)は、全体長
補正部232にて使用される。
Next, a plurality of total horizontal line intervals (iys) stored in the integer horizontal line interval total table 1004 and an integer overall length table 1004
The difference (dyt) from the whole integer length (iyt) stored in 5 is obtained and stored in the entire length error table 1006. The overall length error (dyt) stored in the overall length error table 1006 is used by the overall length correction unit 232.

一方、上記水平線輪郭座標のy座標を抽出する際に、
各水平線輪郭座標が線分の上辺にあたるか、下辺にあた
るかを調べ、その結果を水平線属性テーブル1007に記憶
する。次に上側を上辺に、下側を下辺に囲まれた領域を
黒領域、それ以外を白領域と判定し、結果を領域属性テ
ーブル1008に記憶する。領域属性テーブル1008に記憶さ
れた情報は、全体長補正部232にて使用される。
On the other hand, when extracting the y coordinate of the horizontal line contour coordinates,
It is checked whether each horizontal line outline coordinate corresponds to the upper side or the lower side of the line segment, and the result is stored in the horizontal line attribute table 1007. Next, the area surrounded by the upper side on the upper side and the lower side by the lower side is determined as a black area, and the rest is determined as a white area, and the result is stored in the area attribute table 1008. The information stored in the area attribute table 1008 is used by the overall length correction unit 232.

全体長補正部232では、まず全体長誤差テーブル1006
に記憶された全体長誤差(dyt)を調べ、全体長誤差(d
yt)が0でなければ補正処理を行い、0であれば何も処
理を行わず、次の座標点補正部232が起動される。
In the overall length correction unit 232, first, the overall length error table 1006
Check the total length error (dyt) stored in
If yt) is not 0, the correction process is performed. If 0, no process is performed, and the next coordinate point correction unit 232 is started.

全体長補正部232は、全体長誤差(dyt)が0でなかっ
たとき、第3図に示す以下の処理により全体長を補正す
る。まず、ステップ2000において、領域属性テーブル10
08内に黒領域,白領域の属性に対応させて、変更可能テ
ーブル1009の内容をそれぞれ変更不可,変更可に初期設
定する。つぎにステップ2001において、整数水平線間隔
テーブル1002の要素の中で、対応する変更可能テーブル
1009の内容が変更可であるもののうち、最大の幅を持つ
領域をリストアップする。これを変更対象領域と呼ぶこ
とにする。
When the overall length error (dyt) is not 0, the overall length correction unit 232 corrects the overall length by the following processing shown in FIG. First, in step 2000, the area attribute table 10
In 08, the contents of the changeable table 1009 are initially set to unchangeable and changeable, corresponding to the attributes of the black area and the white area. Next, in step 2001, among the elements of the integer horizontal line interval table 1002, the corresponding changeable table
List the area with the largest width among those whose contents of 1009 can be changed. This will be referred to as a change target area.

ここで全体長誤差(dyt)の絶対値をadytとし、dyt÷
adytとする。ステップ2002において、該変更対象領域数
が、adytより小さいか等しければ、ステップ2003におい
て全ての変更対象領域の幅にsdytを加算し、ステップ20
04において、もしdytが0より大きければ、ステップ200
5において該変更対象領域に対応する変更可能テーブル1
009の内容を変更不可にする。
Here, the absolute value of the total length error (dyt) is defined as adyt, and dyt ÷
adyt. In step 2002, if the number of change target areas is smaller than or equal to adyt, sdyt is added to the width of all change target areas in step 2003, and step 20
In 04, if dyt is greater than 0, step 200
5, the changeable table 1 corresponding to the change target area
Make the contents of 009 unchangeable.

一方、ステップ2002において、上記変更対象領域数
が、adytより大きければ、変更対象領域に全体長誤差を
分散させる。このとき、ステップ2006において、上記ad
ytが奇数ならば、ステップ2007において上記変更対象領
域の中央の領域から、偶数ならば、ステップ2008におい
て両端の領域から順に、変更対象領域の幅にsdytを加算
していく。
On the other hand, in step 2002, if the number of change target areas is larger than adyt, the entire length error is dispersed in the change target areas. At this time, in step 2006, the ad
If yt is an odd number, sdyt is added to the width of the change target area in order from the center area of the change target area in step 2007 and from both end areas in step 2008 if it is even.

以上の処理の後、ステップ2009において、adytから上
記変更対象領域を引き、その結果adytが0以下であれば
全体長補正処理を終了して、次の座標点補正部233が起
動される。adytが0より大きければステップ2002に戻
る。
After the above processing, in step 2009, the area to be changed is subtracted from adyt. If the result is that adyt is 0 or less, the entire length correction processing is terminated, and the next coordinate point correction unit 233 is started. If adyt is greater than 0, the process returns to step 2002.

第4図,第5図は上記全体長補正部232による文字図
形のパターンの変遷を示したものである。第4図は、最
大幅を持つ領域がadytより少ない場合を示し、ステップ
2002,2003,2004,2005,2009,2010を3回繰り返した様子
を示す。黒領域は幅1で変化せず、白領域は、幅の広い
領域から順に1ドットずつ幅が増えてゆく。第5図で
は、最大幅を持つ領域が複数あり、かつ該領域数がadyt
より大きい場合を示す。左図は補正量adytが奇数の場合
であり、ステップ2002,2006,2007と実行され、中央の白
領域から順に幅が補正される。一方、右図は補正量adyt
が偶数の場合であり、ステップ2002,2006,2008と実行さ
れ、両端の白領域から順に幅が補正される。
FIGS. 4 and 5 show the transition of the pattern of the character graphic by the overall length correction unit 232. FIG. FIG. 4 shows a case where the area having the maximum width is smaller than adyt,
This shows that 2002, 2003, 2004, 2005, 2009, and 2010 are repeated three times. The width of the black area does not change at the width 1, and the width of the white area increases by one dot in order from the wide area. In FIG. 5, there are a plurality of areas having the maximum width, and the number of the areas is adyt
Indicates a case of greater than The diagram on the left shows a case where the correction amount adyt is an odd number. Steps 2002, 2006, and 2007 are executed, and the width is corrected in order from the central white region. On the other hand, the right figure shows the correction amount adyt
Is an even number, and steps 2002, 2006, and 2008 are executed, and the width is corrected in order from the white regions at both ends.

上記のように全体長補正部232の処理が終了した後、
座標点補正部233が上記文字輪郭座標データを補正す
る。座標点補正部233は、まず、水平・垂直線の輪郭座
標値を決定し、次に上記水平・垂直線の輪郭座標値を基
準として、各座標点を補正していく。
After the processing of the overall length correction unit 232 is completed as described above,
The coordinate point correction unit 233 corrects the character outline coordinate data. The coordinate point correction unit 233 first determines outline coordinate values of horizontal and vertical lines, and then corrects each coordinate point based on the outline coordinate values of the horizontal and vertical lines.

第6図は、水平線の輪郭座標値を決定する様子を示
す。整数水平線間隔テーブル1002の各要素を足し込むこ
とによって、補正済み水平線輪郭座標(ny0〜ny6)を生
成し、補正済み水平線テーブル1010に記憶する。即ち基
準点座標ny0に整数間隔idy0をたしてny1を算出する。ny
1にidy1をたしてny2を求める。以下同様に、nyiとidyi
をたしてny(i+1)を求めるという処理を繰り返す。
FIG. 6 shows how to determine the outline coordinate value of the horizontal line. By adding each element of the integer horizontal line interval table 1002, corrected horizontal line outline coordinates (ny0 to ny6) are generated and stored in the corrected horizontal line table 1010. That is, ny1 is calculated by adding the integer interval idy0 to the reference point coordinate ny0. ny
Add idy1 to 1 to find ny2. Similarly, nyi and idyi
Is repeated to obtain ny (i + 1).

補正済み水平線(ny0〜ny6)が全て求まった後、全て
の座標点を補正する。即ち、各座標点毎に以下の処理を
行う。まず、補正すべき座標値と水平線テーブル1000の
要素とを比較して、該座標点がどの領域に属するかを調
べる。次に第7図に示すように、座標点yがyiとy(y
+1)の間にあるとすると以下の数式によって、補正後
の座標点nyを求める。
After all the corrected horizontal lines (ny0 to ny6) are obtained, all the coordinate points are corrected. That is, the following processing is performed for each coordinate point. First, a coordinate value to be corrected is compared with an element of the horizontal line table 1000 to determine to which region the coordinate point belongs. Next, as shown in FIG. 7, the coordinate point y is represented by yi and y (y
+1), the corrected coordinate point ny is obtained by the following equation.

以上の実施例により、文字の対称性を損うことなく、
水平・垂直線の線幅がそろった文字を、印字もしくは表
示することができる効果がある。
By the above embodiment, without deteriorating the symmetry of the character,
There is an effect that characters with uniform horizontal and vertical line widths can be printed or displayed.

第7図,第8図を用いて、別の実施例を説明する。本
実施例は、上記の実施例の第3図のステップ2000におい
て、変更可能テーブル1009の内容を、領域属性テーブル
1008内の黒領域,白領域の属性に対応させて、それぞれ
変更可,変更不可に初期設定するようにしたものであ
る。
Another embodiment will be described with reference to FIGS. 7 and 8. FIG. In this embodiment, the contents of the changeable table 1009 are stored in the area attribute table in step 2000 of FIG.
Initially, changeable and non-changeable are set in accordance with the attributes of the black area and white area in 1008, respectively.

第7図,第8図は上記全体長補正部232による文字図
形のパターンの変遷を示したものである。第7図は、最
大幅を持つ領域がadytより少ない場合を示し、第3のス
テップ2002,2003,2004,2005,2009,2010を3回繰り返し
た様子を示す。白領域は幅1で変化せず、黒領域は幅の
広い領域から順に1ドットずつ幅が増えてゆく。第9図
では、最大幅を持つ領域が複数あり、かつ該領域数がad
ytより大きい場合を示す。左図は補正量adytが奇数の場
合であり、ステップ2002,2006,2007と実行され、中央の
黒領域から順に幅が補正される。一方、右図は補正量ad
ytが偶数の場合であり、ステップ2002,2006,2008と実行
され、両端の黒領域から順に幅が補正される。
FIGS. 7 and 8 show the transition of the pattern of the character graphic by the overall length correction unit 232. FIG. FIG. 7 shows a case where the region having the maximum width is smaller than adyt, and shows a state where the third step 2002, 2003, 2004, 2005, 2009, 2010 is repeated three times. The white area does not change at the width of 1, and the black area increases in width by one dot in order from the wide area. In FIG. 9, there are a plurality of areas having the maximum width, and the number of the areas is ad.
Indicates a case greater than yt. The left figure shows the case where the correction amount adyt is an odd number, and the steps are executed in steps 2002, 2006, and 2007, and the width is corrected in order from the central black area. On the other hand, the right figure shows the correction amount ad
This is the case where yt is an even number. Steps 2002, 2006, and 2008 are executed, and the width is corrected in order from the black regions at both ends.

以上の実施例により、文字の対称性を損うことなく、
水平・垂直線の線間隔がそろった文字を、印字もしくは
表示することができる効果がある。
By the above embodiment, without deteriorating the symmetry of the character,
There is an effect that characters with uniform horizontal and vertical line spacing can be printed or displayed.

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

本発明によれば、線幅補正のための付加的な情報を持
たないアウトラインフォントに関しても、任意の文字サ
イズに対して線幅補正可能となる。また、水平・垂直線
の線幅の補正のみならず、2つの水平線もしくは2つの
垂直線に囲まれた白の領域の補正もでき高品質な文字が
得られる。
According to the present invention, even for an outline font having no additional information for line width correction, the line width can be corrected for an arbitrary character size. In addition, not only the line width of the horizontal and vertical lines can be corrected, but also a white region surrounded by two horizontal lines or two vertical lines can be corrected, and high-quality characters can be obtained.

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

第1図は本発明の一実施例に係る文字描画装置の構成
図、第2図は整数間隔抽出部の処理方式の説明図、第3
図は全体長補正部の処理方式のフローチャート、第4図
は全体長補正部の第1処理結果の説明図、第5図は全体
長補正部の第2処理結果の説明図、第6図は座標点補正
部の第1処理の説明図、第7図は座標点補正部の第2処
理の説明図、第8図は第2実施例における全体長補正部
の第1処理結果の説明図、第9図は第2実施例における
全体長補正部の第2処理結果の説明図である。 1……ホスト計算機、2……文字描画装置、3……表示
装置、20……フォント記憶部、21……データ読出し部、
22……座標変換部、23……線幅補正部、24……塗りつぶ
し部、230……閉図形分離部、231……整数間隔抽出部、
232……全体長補正部、233……座標点補正部。
FIG. 1 is a configuration diagram of a character drawing apparatus according to an embodiment of the present invention, FIG. 2 is an explanatory diagram of a processing method of an integer interval extraction unit, FIG.
FIG. 4 is a flowchart of a processing method of the overall length correcting unit, FIG. 4 is an explanatory diagram of a first processing result of the overall length correcting unit, FIG. 5 is an explanatory diagram of a second processing result of the overall length correcting unit, and FIG. FIG. 7 is an explanatory diagram of a first process of the coordinate point correcting unit, FIG. 7 is an explanatory diagram of a second process of the coordinate point correcting unit, FIG. 8 is an explanatory diagram of a first processing result of the overall length correcting unit in the second embodiment, FIG. 9 is an explanatory diagram of a second processing result of the overall length correction unit in the second embodiment. 1 host computer, 2 character drawing device, 3 display device, 20 font storage unit, 21 data reading unit,
22 ... Coordinate conversion unit, 23 ... Line width correction unit, 24 ... Filling unit, 230 ... Closed figure separation unit, 231 ... Integer interval extraction unit,
232: Overall length correction unit, 233: Coordinate point correction unit.

Claims (15)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アウトラインフォントを形成する文字描画
装置において、 座標変換により所定の文字サイズに変換された文字輪郭
座標データを閉図形毎に分離する閉図形分離部と、 該閉図形分離部で分離された文字輪郭座標データから水
平線輪郭座標のy座標・垂直線輪郭座標のx座標を抽出
し、上記座標値のそれぞれに対し、となりあった座標値
の間隔を求め、該間隔をそれぞれ整数化する整数間隔算
出部と、 該整数間隔算出部で整数化された間隔を合計し、該合計
値と文字の全体長とに差異が生じた場合には該合計値と
全体長が一致するように補正する全体長補正部と、 該全体長補正部で補正された間隔を加算することにより
前記水平線輪郭座標のy座標・垂直線輪郭座標のx座標
を再計算し補正を行なう座標点補正部と、 からなる線幅補正部を備えることを特徴とする文字描画
装置。
1. A character drawing device for forming an outline font, comprising: a closed figure separation unit for separating character outline coordinate data converted into a predetermined character size by coordinate conversion for each closed figure; The y-coordinate of the horizontal line outline coordinate and the x-coordinate of the vertical line outline coordinate are extracted from the obtained character outline coordinate data, the interval between the coordinate values corresponding to each of the coordinate values is determined, and the interval is converted into an integer. Integer interval calculator and sum of intervals converted into integers by the integer interval calculator, and when there is a difference between the total value and the entire length of a character, correct the total value and the entire length so that they match. A coordinate point correction unit that recalculates and corrects the y coordinate of the horizontal line outline coordinate and the x coordinate of the vertical line outline coordinate by adding the intervals corrected by the overall length correction unit, Line consisting of Character rendering device, characterized in that it comprises a correction unit.
【請求項2】請求項1において、全体長補正部は、最も
幅の広い白の領域から順に1ドットずつ幅を補正するこ
とを特徴とする文字描画装置。
2. The character drawing apparatus according to claim 1, wherein the overall length correction unit corrects the width by one dot in order from the widest white area.
【請求項3】請求項2において、全体長補正部は、最も
幅の広い白い領域が複数存在する場合、前記間隔の合計
値と前記文字の全体長との差異が奇数の時は中央の領域
から、偶数の時は両端の領域から順に1ドットずつ幅を
補正することを特徴とする文字描画装置。
3. The apparatus according to claim 2, wherein, when there are a plurality of white areas having the widest width, a central area is provided when the difference between the total value of the intervals and the overall length of the character is an odd number. A character drawing device that corrects the width by one dot in order from both end regions when the number is an even number.
【請求項4】請求項1において、全体長補正部は、最も
幅の広い黒の領域から順に1ドットずつ幅を補正するこ
とを特徴とする文字描画装置。
4. The character drawing apparatus according to claim 1, wherein the overall length correction section corrects the width one dot at a time in order from the widest black area.
【請求項5】請求項4において、全体長補正部は、最も
幅の広い黒の領域が複数存在する場合、前記間隔の合計
値と前記文字の全体長との差異が奇数の時は中央の領域
から、偶数の時は両端の領域から順に1ドットずつ補正
することを特徴とする文字描画装置。
5. An apparatus according to claim 4, wherein, when a plurality of black areas having the widest width are present, the difference between the total value of the intervals and the overall length of the character is an odd number. A character drawing apparatus for correcting dots one by one in order from an area at both ends of an area.
【請求項6】請求項1乃至請求項5のいずれか記載の文
字描画装置と、該文字描画装置に印字命令を送るホスト
計算機と、前記文字描画装置により生成した文字イメー
ジを表示する出力装置とを備えて成ることを特徴とする
データ処理装置。
6. A character drawing device according to claim 1, a host computer for sending a print command to said character drawing device, and an output device for displaying a character image generated by said character drawing device. A data processing device comprising:
【請求項7】請求項6において、出力装置は、レーザ・
ビーム・プリンタ,グラフィック・ディスプレイ端末,
液晶ディスプレイ端末のいずれかであることを特徴とす
るデータ処理装置であることを特徴とするデータ処理装
置。
7. An apparatus according to claim 6, wherein the output device is a laser.
Beam printer, graphic display terminal,
A data processing device characterized by being one of liquid crystal display terminals.
【請求項8】請求項3において、前記文字輪郭座標デー
タは、同じ線幅を持つ2つの水平線もしくは垂直線が印
字後も同じ線幅となることを特徴とする文字描画装置。
8. The character drawing apparatus according to claim 3, wherein the character outline coordinate data is such that two horizontal lines or vertical lines having the same line width have the same line width after printing.
【請求項9】請求項5において、前記文字輪郭座標デー
タは、ひとつの閉図形の中で、2つの水平線もしくは垂
直線に囲まれた白の領域のうち、同じ幅を持つ2つの白
の領域が印字後も同じ幅となることを特徴とする文字描
画装置。
9. The character outline coordinate data according to claim 5, wherein, in one closed figure, two white areas having the same width among white areas surrounded by two horizontal lines or vertical lines. A character drawing device characterized in that the same width is maintained after printing.
【請求項10】任意サイズに変換した出力対象文字のア
ウトラインフォントの文字座標データから該文字を構成
する各水平線輪郭座標のy座標値を求め、隣接するy座
標値間の間隔を算出し、各間隔の合計値を整数化した値
と、各間隔を整数化した値を合計した値との差を、前記
文字の出力時の垂直方向の補正量とすることを特徴とす
る文字出力補正方法。
10. A y-coordinate value of each horizontal line contour coordinate constituting the character is calculated from character coordinate data of an outline font of a character to be output converted to an arbitrary size, and an interval between adjacent y-coordinate values is calculated. A character output correction method, characterized in that a difference between a value obtained by converting the total value of the intervals into an integer and a value obtained by summing the values obtained by converting the respective intervals into an integer is used as a vertical correction amount at the time of outputting the character.
【請求項11】任意サイズに変換した出力対象文字のア
ウトラインフォントの文字座標データから該文字を構成
する各垂直線輪郭座標のx座標値を求め、隣接するx座
標値間の間隔を算出し、各間隔の合計を整数化した値
と、各間隔を整数化した値を合計した値との差を、前記
文字の出力時の水平方向の補正量とすることを特徴とす
る文字出力補正方法。
11. An x-coordinate value of each vertical line contour coordinate constituting the character is calculated from character coordinate data of an outline font of an output target character converted to an arbitrary size, and an interval between adjacent x-coordinate values is calculated. A character output correction method, characterized in that a difference between a value obtained by converting the sum of each interval into an integer and a value obtained by summing the values obtained by converting each interval into an integer is used as a horizontal correction amount when the character is output.
【請求項12】任意サイズに変換した出力対象文字のア
ウトラインフォントの文字座標データから該文字を構成
する各水平線輪郭座標のy座標値を求め、隣接するy座
標値間の間隔を算出し、各間隔の合計値を整数化した値
と、各間隔を整数化した値を合計した値との差を求め、
前記の各間隔のうち非文字領域を示す間隔を間隔の大き
い順に1ドットずつ前記差が小さくなる方向に補正する
ことを特徴とする文字出力補正方法。
12. A y-coordinate value of each horizontal line contour coordinate forming the character is calculated from character coordinate data of an outline font of the output target character converted to an arbitrary size, and an interval between adjacent y-coordinate values is calculated. The difference between the value obtained by converting the total value of the intervals into an integer and the value obtained by summing the values obtained by converting each of the intervals into an integer is calculated.
A character output correction method, wherein, among the above intervals, intervals indicating non-character areas are corrected in a direction in which the difference becomes smaller by one dot in ascending order of the intervals.
【請求項13】任意サイズに変換した出力対象文字のア
ウトラインフォントの文字座標データから該文字を構成
する各水垂線輪郭座標のx座標値を求め、隣接するx座
標値間の間隔を算出し、各間隔の合計値を整数化した値
と、各間隔を整数化した値を合計した値との差を求め、
前記の各間隔のうち非文字領域を示す間隔を間隔の大き
い順に1ドットずつ前記差が小さくなる方向に補正する
ことを特徴とする文字出力補正方法。
13. An x-coordinate value of each water perpendicular outline coordinate constituting the character is calculated from character coordinate data of an outline font of the output target character converted to an arbitrary size, and an interval between adjacent x-coordinate values is calculated. Find the difference between the value obtained by converting the total value of each interval to an integer and the value obtained by summing the values obtained by converting each interval to an integer,
A character output correction method, wherein, among the above intervals, intervals indicating non-character areas are corrected in a direction in which the difference becomes smaller by one dot in ascending order of the intervals.
【請求項14】出力する文字をアウトラインフォントで
行う文字出力装置であって、請求項12及び請求項13の各
方法で出力する文字の垂直方向,水平方向を補正した文
字を出力する手段を備えることを特徴とする文字出力装
置。
14. A character output device for outputting characters in an outline font, comprising means for outputting characters corrected in the vertical and horizontal directions of the characters output by each of the methods of claim 12. A character output device characterized by the above-mentioned.
【請求項15】出力する文字をアウトラインフォントで
行う文字出力装置であって、請求項10及び請求項11の方
法を実行し出力する文字の垂直方向,水平方向の補正量
を算出する手段を備えることを特徴とする文字出力装
置。
15. A character output device for outputting characters in an outline font, comprising means for executing the method according to claim 10 and calculating the vertical and horizontal correction amounts of the characters to be output. A character output device characterized by the above-mentioned.
JP2315951A 1990-11-22 1990-11-22 Character drawing device, character output correction method, and character output device Expired - Fee Related JP2618528B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2315951A JP2618528B2 (en) 1990-11-22 1990-11-22 Character drawing device, character output correction method, and character output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2315951A JP2618528B2 (en) 1990-11-22 1990-11-22 Character drawing device, character output correction method, and character output device

Publications (2)

Publication Number Publication Date
JPH04188190A JPH04188190A (en) 1992-07-06
JP2618528B2 true JP2618528B2 (en) 1997-06-11

Family

ID=18071564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2315951A Expired - Fee Related JP2618528B2 (en) 1990-11-22 1990-11-22 Character drawing device, character output correction method, and character output device

Country Status (1)

Country Link
JP (1) JP2618528B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100578604C (en) * 2003-05-15 2010-01-06 夏普株式会社 Character graphic display device and character graphic display method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08194459A (en) * 1995-01-19 1996-07-30 Fujitsu Ltd Outline character plotting device
JP3883554B2 (en) * 2005-01-19 2007-02-21 シャープ株式会社 Character / graphic display device, program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100578604C (en) * 2003-05-15 2010-01-06 夏普株式会社 Character graphic display device and character graphic display method

Also Published As

Publication number Publication date
JPH04188190A (en) 1992-07-06

Similar Documents

Publication Publication Date Title
JP3474037B2 (en) Character pattern generator
JP2618528B2 (en) Character drawing device, character output correction method, and character output device
JP2876942B2 (en) Data converter
US5519412A (en) Pattern processing method
JP2770582B2 (en) Figure filling device
JPH11109943A (en) Font processor and recording medium recorded with font processing program
JPS62211692A (en) Preparation system for character of varied size
JP3087414B2 (en) Data output device
JP3055306B2 (en) Data output device
JP3039214B2 (en) Data converter
JP2881924B2 (en) Data storage device
JP3087511B2 (en) Data converter
JP2629098B2 (en) Character arrangement correction method
JPS63224965A (en) Character generator
JP3119095B2 (en) Character storage
JP3089918B2 (en) Data converter
JPH05165455A (en) Character display processing method
JP2861201B2 (en) Data converter
JPH0784739A (en) Data converter
JPH09325748A (en) Device and method for generating character pattern
JPH1031471A (en) Method and device for printing and displaying foreign languages including english script and arabic using computer
JPH06110444A (en) Character processor and character output method
JPH0950272A (en) Method and device for outline font generation
JPS6188291A (en) Character font distortion correction system
JPH07112731B2 (en) Character playback method

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090311

Year of fee payment: 12

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20090311

Year of fee payment: 12

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20100311

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees