JPH0736434A - Character output device - Google Patents

Character output device

Info

Publication number
JPH0736434A
JPH0736434A JP5182976A JP18297693A JPH0736434A JP H0736434 A JPH0736434 A JP H0736434A JP 5182976 A JP5182976 A JP 5182976A JP 18297693 A JP18297693 A JP 18297693A JP H0736434 A JPH0736434 A JP H0736434A
Authority
JP
Japan
Prior art keywords
character
coordinate
correction
line
contour
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.)
Pending
Application number
JP5182976A
Other languages
Japanese (ja)
Inventor
Naomi Ogawa
直美 小川
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 JP5182976A priority Critical patent/JPH0736434A/en
Publication of JPH0736434A publication Critical patent/JPH0736434A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To correct characters by an optimum method corresponding to the characters by discriminating the correcting method according to characters of the characters and characteristics of a printer. CONSTITUTION:The character output device, equipped with an input means 11 for inputting optional characters and sizes, an output means 14 for outputting them, a character plotting means 13 for plotting the characters, and a control means 12 for controlling them, consists of a data read means 131 which reads character outline coordinate data corresponding to a character code sent from the input means 11 out of a font storage means 132 stored with character outline coordinate data forming an outline font, a coordinate converting means 133 which converts the coordinates of the character outline coordinate data according to specific character size, a painting-out means 136 which paints out the inside of the coordinate-converted character outline coordinate data, a line width correcting means 134 which corrects line width by using the character outline coordinate data whose coordinates are converted by the coordinate converting means 133, and a correcting method selecting means 1344 which selects a correcting method for correcting the line width by the line width correcting means 134.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、レーザ・ビーム・プリ
ンタ、ディスプレイ装置などの表示装置に係り、特にマ
ルチサイズ、マルチフォントの高品質文字を含む文書を
作成する文字出力装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a display device such as a laser beam printer and a display device, and more particularly to a character output device for creating a document containing high quality characters of multi-size and multi-font.

【0002】[0002]

【従来の技術】レーザ・ビーム・プリンタ、ディスプレ
イ等の表示装置における文字データの記憶形式としてア
ウトラインフォントがある。アウトラインフォントは、
文字の形状を文字の輪郭の座標列として記憶するもので
ある。このアウトラインフォントを印字するには、まず
所望の印字サイズにするために各輪郭座標値を座標変換
し、その後、変換した輪郭座標の内部を塗りつぶすとい
う処理を行う。アウトラインフォントは、拡大縮小回転
等が自由自在にできるという特長があるが、小さな文字
を印字する場合には、量子化誤差により文字の垂直線・
水平線の線幅が不揃いとなり、文字の表示品質が低下す
るという問題があった。
2. Description of the Related Art Outline fonts are a storage format for character data in display devices such as laser beam printers and displays. Outline font is
The shape of the character is stored as a coordinate sequence of the outline of the character. In order to print this outline font, first, each outline coordinate value is subjected to coordinate conversion to obtain a desired print size, and then the inside of the converted outline coordinate is filled. The outline font has the feature that it can be freely enlarged, reduced, rotated, etc., but when printing small characters, vertical lines and
There is a problem that the line widths of the horizontal lines are not uniform and the display quality of characters is degraded.

【0003】この線幅を補正するための従来方法とし
て、特開平4−188190公報記載のものが知られて
いる。
As a conventional method for correcting the line width, a method described in Japanese Patent Laid-Open No. 4-188190 is known.

【0004】この方法は、座標変換後の輪郭座標から水
平・垂直線の輪郭座標を抽出し、輪郭座標間の間隔を整
数化し、得られた整数間隔をもとに輪郭座標を再計算す
る方法であり、線幅補正のための付加的な情報を持たな
くても任意の文字サイズに対して線幅補正を可能にして
いた。
In this method, the contour coordinates of horizontal and vertical lines are extracted from the contour coordinates after coordinate conversion, the intervals between the contour coordinates are converted into integers, and the contour coordinates are recalculated based on the obtained integer intervals. Therefore, the line width can be corrected for an arbitrary character size without having additional information for the line width correction.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記従来方法
は量子化誤差による線幅のバラツキを補正することに重
点を置き、各文字に対する細かな補正について配慮され
ていなかった。すなわち、画数の多い複雑な文字、単純
な文字、さらに文字サイズの大小などの文字の諸要素の
相違にかかわらず同じ補正方法をとっていた。そのた
め、画数の多い複雑な文字や小さい文字に対してはつぶ
れがなくなり、本来のアウトラインフォントの美しさを
十分に表現できるだけの成果を上げていたが、画数の少
ない単純な文字は線が細めになり、全体的に弱々しい印
象があった。
However, the above-mentioned conventional method focuses on the correction of the line width variation due to the quantization error, and does not consider the fine correction for each character. That is, the same correction method is used regardless of differences in various character elements such as complicated characters with many strokes, simple characters, and size of characters. For this reason, it was possible to eliminate the collapse of complicated characters with a large number of strokes and small characters, and the result was sufficient to express the beauty of the original outline font, but for simple characters with a small number of strokes the line becomes finer. So, there was a weak impression overall.

【0006】これを図5に基づいて具体的に説明する。
この例では、「日」という文字をアウトラインフォント
によって処理する場合を示している。すなわち「日」と
いう文字の各輪郭の水平方向の輪郭値を抽出すると、
に示すように下から「0.00」、「6.36」、「1
0.60」、「25.44」、「29.68」、「4
4.52」、「48.76」となる。これを補正処理を
行わないで50×50ドットの文字として出力するため
に整数化処理するとに示すように「0」、「6」、
「11」、「25」、「30」、「45」、「49」と
なる。すると、線幅はそれぞれの差をとって、に示す
ように下から「5」、「5」、「4」となる。すなわち
一番上の線が20%だけ他の線よりも細くなる。このよ
うに細くなると、線のバランスが崩れ、文字の美しさが
阻害されるので、線幅を揃えるように補正するようにな
った。これが上記従来例である。
This will be specifically described with reference to FIG.
In this example, the character "day" is processed by an outline font. That is, when the horizontal contour value of each contour of the character "day" is extracted,
"0.00", "6.36", "1" from the bottom
0.60 "," 25.44 "," 29.68 "," 4 "
It becomes "4.52" and "48.76". "0", "6", as shown in Performing integer processing to output this as a character of 50 × 50 dots without performing correction processing
It becomes "11", "25", "30", "45", "49". Then, the line widths take respective differences and become "5", "5", "4" from the bottom as shown in. That is, the top line is 20% thinner than the other lines. If it becomes thin like this, the balance of the lines will be lost and the beauty of the characters will be hindered. Therefore, the correction has been made so that the line widths are made uniform. This is the above conventional example.

【0007】そこで、この従来例では、で検出した水
平線の輪郭値の差をとってのようにして各線幅を算出
し、さらにその幅を四捨五入して整数化処理するとで
示すように線間隔「6」、「4」、「15」、「4」、
「15」、「4」を得る。しかし、このようにして得ら
れた線間隔は、合計すると「48」となるが、におけ
る抽出された線幅算出値を合計すると「48.76」
で、これは整数化処理すると四捨五入して「49」とな
る。したがって、線幅を算出したものとドットに変換し
たものとでは「1」ドットのずれが出てくる。そこで、
この補正では、のように線幅が細くならないように線
と線との間を補正し、に示すように下側の空白部分を
「15」ドットから「16」ドットにした。そして、
において座標点を補正し、に示すように「4」ドット
ずつの線幅の文字として出力し、線幅を揃えた綺麗な文
字としている。
Therefore, in this conventional example, each line width is calculated by taking the difference between the contour values of the horizontal lines detected at, and the width is rounded off to be an integer. 6 ”,“ 4 ”,“ 15 ”,“ 4 ”,
You get "15" and "4". However, the line spacings thus obtained total "48", but the total calculated line width values in "48.76"
When this is converted into an integer, it is rounded to "49". Therefore, there is a deviation of "1" dot between the line width calculated and the dot converted. Therefore,
In this correction, the space between the lines is corrected so that the line width does not become thin as in, and the lower blank part is changed from "15" dots to "16" dots as shown in. And
In, the coordinate points are corrected, and as shown in, the characters are output as line widths of "4" dots each, and the characters are made uniform in line width.

【0008】このように補正した実例を図6に示す。図
6は400DPIのレーザ・ビーム・プリンタによって
出力された1字のドット数が50×50ドットの文字の
拡大図で、同図(a)は上述のようにして補正した
「信」の文字である。言い換えればのようにした
「信」の文字であり、同図6(b)は補正しない場合の
「信」の文字で、図5ではに相当する。このように補
正すると、線が細くなって弱々しい印象を受けることは
否めない。
An actual example corrected in this way is shown in FIG. FIG. 6 is an enlarged view of a character with a dot number of 50 × 50 dots output by a 400 DPI laser beam printer, and FIG. 6 (a) shows the letter “Shin” corrected as described above. is there. In other words, it is the letter of "Shin" as shown in FIG. 6, and FIG. 6B shows the letter of "Shin" in the case of no correction, which corresponds to in FIG. With this correction, it is undeniable that the line becomes thin and gives a weak impression.

【0009】本発明は、このような背景に鑑みてなされ
たもので、その目的は、文字の特性及びプリンタの特性
により補正方法を区別し、各文字に見合った最適な方法
で補正できるような文字出力装置を提供することにあ
る。
The present invention has been made in view of such a background, and an object thereof is to distinguish the correction methods according to the characteristics of the characters and the characteristics of the printer so that the correction can be performed by an optimum method suitable for each character. It is to provide a character output device.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、文字の複雑さやプリンタの特性等により
補正方法を制御するように構成されている。例えば、プ
リンタの解像度に基づいた文字のドットサイズ、白領域
の幅等のように簡単な条件のもとで補正方法を振り分け
る。その結果、各文字に見合った方法で補正を行うこと
ができるため、複雑な文字はつぶれないように細めに補
正を行い、単純な文字、すなわちつぶれる可能性のない
文字に対しては、弱々しくならないよう太めに補正する
といったように、本来の文字の形状を崩すことなく、各
文字に適した補正が可能となる。
To achieve the above object, the present invention is configured to control a correction method according to the complexity of characters, the characteristics of a printer, and the like. For example, the correction methods are distributed under simple conditions such as the dot size of the character based on the resolution of the printer and the width of the white area. As a result, it is possible to make corrections in a way that suits each character, so make small corrections to prevent complicated characters from being crushed, and weakly modify simple characters, that is, characters that cannot be crushed. This makes it possible to make corrections suitable for each character without compromising the original shape of the character, such as making a thick correction so that it does not become difficult.

【0011】具体的には、任意の文字及びサイズを入力
する入力手段と、文字を出力する出力手段と、文字を描
画する文字描画手段と、これらを制御する制御手段とを
備えた文字出力装置において、上記文字描画手段を、ア
ウトラインフォントを形成する文字輪郭座標データを記
憶するフォント記憶手段から、前記入力手段より送られ
てくる文字コードに対応する文字輪郭座標データを読み
出すデータ読み出し手段と、前記文字輪郭座標データを
所定の文字サイズに従って座標変換する座標変換手段
と、座標変換された文字輪郭座標データの内部を塗りつ
ぶす塗りつぶし手段と、あらかじめ設定された複数の補
正方法の中から補正する方法を選択する補正方法判定手
段を含み、当該補正方法判定手段によって選択された補
正方法により前記座標変換された文字輪郭座標データを
用いて線幅を補正する線幅補正手段とから構成した。
Specifically, a character output device having input means for inputting arbitrary characters and sizes, output means for outputting characters, character drawing means for drawing characters, and control means for controlling these. In the character drawing means, data reading means for reading character contour coordinate data corresponding to a character code sent from the input means from font storage means for storing character contour coordinate data forming an outline font, and A coordinate conversion means for converting the coordinate of the character contour coordinate data according to a predetermined character size, a filling means for filling the inside of the coordinate-converted character contour coordinate data, and a correction method from a plurality of preset correction methods are selected. And a correction method determining unit for performing the correction method selected by the correction method determining unit. It was composed of a line width correction means for correcting the line width by using the converted character outline coordinate data.

【0012】[0012]

【作用】入力手段により文字及びサイズが入力される
と、制御手段は、フォントデータ記憶手段からアウトラ
インデータを読み出し、座標変換を行う。次に線幅補正
手段では、座標変換された文字輪郭座標データから水平
線輪郭座標のy座標、垂直線輪郭座標のx座標を抽出
し、抽出された各々の座標に対し、隣接した座標値の間
隔を求め、該間隔を整数化し、例えば文字の線間の白領
域の幅のような補正方法判定手段で用いる判定値を算出
する。そして判定値を用いて該文字に適した補正方法を
選択し、補正を行う。補正が終了した後、前記補正に従
い、前記輪郭座標を再計算して座標点を補正し、出力手
段から文字を出力させる。
When a character and a size are input by the input means, the control means reads out outline data from the font data storage means and performs coordinate conversion. Next, the line width correction means extracts the y-coordinate of the horizontal line contour coordinates and the x-coordinate of the vertical line contour coordinates from the coordinate-converted character contour coordinate data, and the interval between adjacent coordinate values is extracted from each of the extracted coordinates. Then, the interval is converted into an integer, and the determination value used by the correction method determination means, such as the width of the white area between the character lines, is calculated. Then, using the judgment value, a correction method suitable for the character is selected and correction is performed. After the correction is completed, the contour coordinates are recalculated to correct the coordinate points according to the correction, and the character is output from the output means.

【0013】また、例えば線幅太め補正及び線幅細め補
正の2種類の補正方法をあらかじめ設定しておき、文字
及びプリンタの特性に従って最適と思われる補正方法を
割り付ければよいので、複雑な文字であってもサイズが
大きければ、太めの補正処理を、小さければ細め(従
来)の補正処理を、というように、文字本来の形状を崩
さず、サイズを考慮した上で、該文字に見合った補正が
可能となる。ここで、本来同じ線幅をもつ複数個の線が
複数組存在する場合、そのうち1組でも太めに補正でき
る線が存在すれば太め補正を行うことになる。
Further, for example, two types of correction methods, that is, a line width thickening correction and a line width thinning correction, may be set in advance, and a correction method which seems to be optimal may be assigned according to the characteristics of the character and the printer. However, if the size is large, a thicker correction process is performed, and if the size is smaller, a thinner (conventional) correction process is performed. Correction is possible. Here, when there are a plurality of pairs of lines having originally the same line width, thick correction is performed if there is a line that can be thickly corrected even in one set.

【0014】[0014]

【実施例】以下、図面を参照し、本発明の実施例につい
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1は、本発明の実施例に係る文字出力装
置のシステム構成を示すブロック図である。同図におい
て、このシステムは、文字を入力する入力手段11と、
一連の処理を制御する制御装置12と、文字を描画する
文字描画手段13と、文字を出力する出力手段14とか
ら基本的に構成されている。
FIG. 1 is a block diagram showing a system configuration of a character output device according to an embodiment of the present invention. In this figure, this system includes input means 11 for inputting characters,
It basically comprises a control device 12 for controlling a series of processes, a character drawing means 13 for drawing a character, and an output means 14 for outputting a character.

【0016】文字描画手段13は、フォントデータを記
憶しておくフォント記憶手段132と、フォント記憶手
段132からフォントデータを読み出すデータ読み出し
手段131と、読み出したフォントデータから所定の文
字サイズに変換する座標変換手段133と、変換された
文字輪郭座標データから線幅を補正する線幅補正手段1
34と、読み出された文字輪郭座標データ等の計算処理
を行うワークメモリ135と、文字イメージを生成する
ために文字輪郭内部を塗りつぶす塗りつぶし手段136
とからなっている。さらに、線幅補正手段134は、文
字輪郭座標データから水平線及び垂直線を抽出し、各線
幅を算出する水平線抽出手段1341と、算出された各
線幅を整数化して整数間隔を求める整数間隔抽出手段1
342と、各文字に適した補正方法を割り当てる際の判
定に用いる値を算出する判定値算出手段1343と、判
定値算出手段1343により算出した値を用いて補正方
法を判定する補正方法判定手段1344と、補正方法判
定手段1344により選択された補正方法に基づき、座
標点の補正を行う座標点補正手段1345とからなって
いる。
The character drawing means 13 has a font storage means 132 for storing font data, a data reading means 131 for reading font data from the font storage means 132, and coordinates for converting the read font data into a predetermined character size. Conversion means 133 and line width correction means 1 for correcting the line width from the converted character contour coordinate data.
34, a work memory 135 for calculating the read character contour coordinate data and the like, and a filling means 136 for filling the inside of the character contour to generate a character image.
It consists of Further, the line width correcting means 134 extracts horizontal lines and vertical lines from the character contour coordinate data, and calculates the respective line widths, and the horizontal line extracting means 1341 and the integer interval extracting means for converting the calculated line widths into integers to obtain integer intervals. 1
342, a determination value calculation unit 1343 that calculates a value used for determination when assigning a correction method suitable for each character, and a correction method determination unit 1344 that determines a correction method using the value calculated by the determination value calculation unit 1343. And a coordinate point correction means 1345 for correcting the coordinate points based on the correction method selected by the correction method determination means 1344.

【0017】このように構成されたシステムにおいて
は、入力手段11は文字描画手段13に印字命令を転送
すると、文字描画手段13は前記印字命令を受けて文字
イメージを生成し、出力手段14に転送する。これら一
連の処理を制御するのは制御装置12である。出力手段
14はプリンタ、ディスプレイ等であり、前記文字イメ
ージを印刷もしくは表示する。文字描画手段13の内部
では、データ読み出し手段が入力手段11から送られて
きた書体情報と文字コードを解読し、指定された文字輪
郭座標データをフォント記憶手段132からワークメモ
リ135に読み出す。座標変換手段133は入力手段1
1より文字サイズ情報を受け取り、ワークメモリ135
に読み出された文字輪郭座標データを所定のサイズにな
るように変換する。このとき、文字輪郭座標データがベ
ジェー曲線等のような曲線表現を含む場合には、座標変
換手段133において直線近似処理を行う。変換を受け
た文字輪郭座標データは線幅補正手段134において補
正される。塗りつぶし手段136は補正された文字輪郭
座標データをもとに、輪郭内部を塗りつぶすことによっ
て文字イメージを生成し、出力手段14に転送する。
In the system configured as described above, when the input unit 11 transfers the print command to the character drawing unit 13, the character drawing unit 13 receives the print command to generate a character image and transfers the character image to the output unit 14. To do. The control device 12 controls these series of processes. The output unit 14 is a printer, a display, or the like, and prints or displays the character image. In the character drawing means 13, the data reading means decodes the typeface information and the character code sent from the input means 11, and reads the designated character contour coordinate data from the font storage means 132 into the work memory 135. The coordinate conversion means 133 is the input means 1
1 receives the character size information from the work memory 135
The character contour coordinate data read out in step 1 is converted into a predetermined size. At this time, when the character contour coordinate data includes a curve expression such as a Bezier curve, the coordinate conversion unit 133 performs a linear approximation process. The converted character contour coordinate data is corrected by the line width correction means 134. The filling unit 136 fills the inside of the contour based on the corrected character contour coordinate data to generate a character image, and transfers the character image to the output unit 14.

【0018】線幅補正手段134の内部では、まず水平
線抽出手段1341が座標変換手段133により変換を
受けた文字輪郭座標データから水平線・垂直線を抽出
し、その線幅を算出する。整数間隔抽出手段1342で
は、算出した線幅から各線幅を整数化し、前記判定値算
出手段1343では、前記水平線抽出手段1341及び
前記整数間隔抽出手段1342で算出した各々の線幅等
の情報以外に補正方法を判定する際に必要となる値があ
れば算出し、補正方法判定手段1344では該文字に適
した補正方法を選択する。座標点補正手段1345で
は、前記補正方法判定手段1344で選択した補正方法
に基づき、座標点の補正を行う。
In the line width correcting means 134, the horizontal line extracting means 1341 first extracts horizontal lines / vertical lines from the character contour coordinate data converted by the coordinate converting means 133, and calculates the line widths. The integer space extraction means 1342 converts each line width into an integer from the calculated line width, and the judgment value calculation means 1343 stores information other than the line width information calculated by the horizontal line extraction means 1341 and the integer space extraction means 1342. If there is a value necessary for determining the correction method, it is calculated, and the correction method determination means 1344 selects a correction method suitable for the character. The coordinate point correction means 1345 corrects the coordinate points based on the correction method selected by the correction method determination means 1344.

【0019】引き続き図2ないし図4を参照して線幅補
正処理の処理手順について説明する。
Next, the processing procedure of the line width correction processing will be described with reference to FIGS.

【0020】図2は前記線幅補正手段134における処
理手順を示すフローチャートであり、図3は補正の手順
を示す説明図である。この補正では、まず、ステップS
T21において、読み出された文字輪郭座標データより
水平線輪郭座標(y0〜y7)を抽出する。次いで、ス
テップST22で、ステップST21で抽出した水平線
間の領域が文字を構成する線分(黒領域)であるか文字
の線間の部分(白領域)であるかを判定し、これを白黒
領域判定テーブル31に記憶する。この判定の方法の一
例として特開平4−188190公報記載のものが知ら
れているが、判定方法は上記公報記載以外の方法でも構
わないことはもちろんである。このようにして白黒領域
を判定すると、ステップST23で、ステップST22
で求めたすべて白黒領域の間隔(dy0〜dy6)を抽
出し、これを水平線間隔テーブル32に記憶する。さら
にこれらの和yt34を求め、さらにyt34を整数化
したiyt36を求めておく。
FIG. 2 is a flow chart showing a processing procedure in the line width correcting means 134, and FIG. 3 is an explanatory view showing a correction procedure. In this correction, first, step S
At T21, horizontal line contour coordinates (y0 to y7) are extracted from the read character contour coordinate data. Next, in step ST22, it is determined whether the area between the horizontal lines extracted in step ST21 is a line segment (black area) that constitutes a character or a portion (white area) between the lines of the character. It is stored in the determination table 31. A method disclosed in Japanese Patent Laid-Open No. 4-188190 is known as an example of this determination method, but it goes without saying that the determination method may be a method other than that described in the above publication. When the black-and-white area is determined in this way, in step ST23, step ST22
The intervals (dy0 to dy6) of all black-and-white areas obtained in step 3 are extracted and stored in the horizontal line interval table 32. Further, the sum yt34 of these is obtained, and further iyt36 obtained by converting yt34 into an integer is obtained.

【0021】ステップST23で線間隔を抽出した後、
ステップST24で、ステップST23で算出した線間
隔を整数化し、各々の整数間隔(idy0〜idy6)
を抽出し、水平線整数間隔テーブル33に記憶する。さ
らにこれらの和iys35を求めておく。ステップST
25では、補正方法を区別する判定値を算出する。ここ
で、もし判定値がステップST21〜24で既に算出さ
れていれば何もしないことになる。次にステップST2
6では、ステップST25及びステップST21〜24
で求めた判定値をもとに補正方法を選択する。もし判定
条件を満足する場合にはステップST27の線幅太め補
正処理を行い、満足しない場合にはステップST28の
線幅細め補正処理、すなわち従来の補正処理を行う。次
にステップST29で、判定された補正処理に基づき、
ステップST23及びステップST24で求めたyt3
4、iys35を用いて、全体長の調整も考慮した座標
点の補正を行う。
After the line spacing is extracted in step ST23,
In step ST24, the line spacing calculated in step ST23 is converted into an integer, and each integer spacing (idy0-idy6)
Is stored in the horizontal line integer interval table 33. Furthermore, the sum iys35 of these is obtained. Step ST
In 25, a judgment value for distinguishing the correction methods is calculated. Here, if the determination value is already calculated in steps ST21 to ST24, nothing is done. Next, step ST2
In step 6, step ST25 and steps ST21 to 24
A correction method is selected based on the judgment value obtained in step. If the determination condition is satisfied, the line width thickening correction process of step ST27 is performed, and if the determination condition is not satisfied, the line width thinning correction process of step ST28, that is, the conventional correction process is performed. Next, in step ST29, based on the determined correction process,
Yt3 obtained in steps ST23 and ST24
4. Using iys35, the coordinate points are corrected in consideration of the adjustment of the overall length.

【0022】上記ステップST25で算出した判定値
は、上記ステップST26で補正方法を判定する際に使
用される値であるが、ステップST26で補正方法を判
定する例を図3及び図4を用いて説明する。
The determination value calculated in step ST25 is a value used when determining the correction method in step ST26. An example of determining the correction method in step ST26 will be described with reference to FIGS. 3 and 4. explain.

【0023】図4において、ステップST41で、まず
黒領域の線間隔(dyn)と整数間隔(idyn)を比
較して、線間隔が整数間隔以上であればステップST4
2の処理に進み、小さければステップST28へ進む。
ステップST42では、ステップST41で比較対象と
した黒領域の下に隣接する白領域の線間隔(dyn−
1)と整数間隔(idyn−1)を比較する。ここで整
数間隔が線間隔以上であれば、ステップST43の処理
に進み、小さければステップST28へ進む。ステップ
ST43では、ステップST42で対象とした白領域の
線間隔(dyn−1)が2ドット以上のとき、ステップ
ST27へ進んで線幅太め補正処理を行い、小さければ
ステップST28へ進んで線幅細め補正処理を行う。
In FIG. 4, in step ST41, the line spacing (dyn) of the black region is first compared with the integer spacing (idyn). If the line spacing is equal to or greater than the integer spacing, step ST4.
If it is smaller, the process proceeds to step ST28.
In step ST42, the line spacing (dyn-
1) is compared with the integer interval (idyn-1). If the integer interval is equal to or larger than the line interval, the process proceeds to step ST43, and if it is smaller, the process proceeds to step ST28. In step ST43, when the line spacing (dyn-1) of the target white area in step ST42 is 2 dots or more, the process proceeds to step ST27 to perform the line width thickening correction process, and if smaller, the process proceeds to step ST28 to thin the line width. Perform correction processing.

【0024】本実施例は、座標変換後の座標データより
算出した水平線間隔テーブル32中の黒領域の線間隔
で、水平線整数間隔テーブル33中の整数化した整数間
隔以上であるものが存在し、さらに上記条件を満足する
黒領域に隣接する水平線間隔テーブル32中の白領域の
線間隔が、対応する水平線整数間隔テーブル33中の整
数間隔以下でかつ2ドット以上の幅があるとき、という
条件で補正方法を区別するものである。すなわち、この
実施例は、文字の複雑さやサイズ、及びプリンタの解像
度等を考慮して補正方法を決定する例である。
In the present embodiment, there is a line interval of the black area in the horizontal line interval table 32 calculated from the coordinate data after coordinate conversion, which is equal to or greater than the integerized integer interval in the horizontal line integer interval table 33. Further, when the line spacing of the white area in the horizontal line spacing table 32 adjacent to the black area satisfying the above condition is equal to or less than the integer spacing in the corresponding horizontal line integer spacing table 33 and has a width of 2 dots or more, The correction method is distinguished. That is, this embodiment is an example in which the correction method is determined in consideration of the complexity and size of characters, the resolution of the printer, and the like.

【0025】さらに図3を用いて別の実施例について説
明する。
Further, another embodiment will be described with reference to FIG.

【0026】この実施例は、座標変換後の座標データを
直接整数化し、各白黒領域の線幅を補正方法の選択に用
いる。その際に必要となる前記値は判定値算出手段13
43であらかじめ求めておく。ここでは座標変換後の座
標データを直接整数化して整数座標テーブル37に記憶
し、この整数値より線幅を算出して水平線整数間隔座標
テーブル38に記憶する。そして水平線整数間隔テーブ
ル33に記憶してある値(idyn)と水平線整数間隔
座標テーブル38に記憶してある値(idn)を比較
し、本来線幅が等しい複数個の黒領域でidn>idy
nを満たす値が存在し、かつこの条件39を満足する値
(idm)の両端の白領域(idm−1,idm+1)
のいずれかが2ドット以上であるという条件40を満足
しているとき、太め補正処理41を行う。本実施例は、
補正しないで描画するときの座標値と、従来方法による
補正を行った後の座標値を比較して、太めに補正できる
線が存在すれば太め処理を行うというものである。ここ
で、整数化される前に同じ間隔であった輪郭座標間の間
隔は、整数化後も同じ間隔となるのはもちろんである。
In this embodiment, the coordinate data after coordinate conversion is directly converted into an integer, and the line width of each black and white area is used for selecting the correction method. The value required at that time is the judgment value calculation means 13
43 is obtained in advance. Here, the coordinate data after the coordinate conversion is directly converted into an integer and stored in the integer coordinate table 37, and the line width is calculated from this integer value and stored in the horizontal line integer interval coordinate table 38. Then, the value (idyn) stored in the horizontal line integer interval table 33 and the value (idn) stored in the horizontal line integer interval coordinate table 38 are compared, and idn> idy in a plurality of black areas having originally the same line width.
White areas (idm-1, idm + 1) at both ends of a value (idm) that satisfies the condition 39 and has a value that satisfies n.
When any of the above conditions satisfies the condition 40 that the number of dots is 2 dots or more, the thickening correction process 41 is performed. In this example,
The coordinate value at the time of drawing without correction is compared with the coordinate value after correction by the conventional method, and if there is a line that can be corrected thickly, thickening processing is performed. Here, it goes without saying that the intervals between the contour coordinates that were the same before being converted into an integer are the same after the conversion into an integer.

【0027】次いで、さらに他の実施例について図3を
用いて説明する。
Next, still another embodiment will be described with reference to FIG.

【0028】本実施例は前記ステップST26中の最初
の条件を (黒領域の各整数線幅の和)+(白領域×2) ≦ 全
体長 とするものである。
In this embodiment, the first condition in the step ST26 is (sum of integer line widths of black area) + (white area × 2) ≦ total length.

【0029】これは、全体長iys35からすべての水
平線整数間隔テーブル33中の黒領域の整数線幅の和を
引いた残りが2ドット以上分の白領域が確保できるとい
う条件である。この条件を満たすことができれば、仮に
すべての黒領域を1ドット分増加させても文字のつぶれ
を引き起こすことはないため、太め処理が可能となる。
また、上記条件は太め処理が可能であるかどうかを判定
するのみに留まっている。太め補正が必要である線を実
際に抽出するには、上記実施例のような条件をさらに付
加することが必要となる。
This is a condition that the remaining white area for 2 dots or more can be secured by subtracting the sum of the integer line widths of the black areas in all the horizontal line integer interval tables 33 from the total length iys35. If this condition can be satisfied, even if all the black areas are increased by one dot, the characters will not be crushed, and thus the thickening process can be performed.
Further, the above condition is limited to determining whether thickening processing is possible. In order to actually extract a line that needs to be thickened, it is necessary to add the condition as in the above embodiment.

【0030】次に太め処理における実施例を示す。これ
は前記判定値算出手段において、線を太めに補正できる
という条件を満足した本来同じ線幅の1組の線に対し
て、1ドット分線幅を増加する。上記以外の処理につい
ては、例えば特開平4−188190公報のような従来
方法に従って行うことになる。また座標点補正処理は、
上記以外の方法であってもよいことはもちろんである。
Next, an example of the thickening process will be described. This is to increase the line width by one dot for a set of lines having originally the same line width that satisfies the condition that the line can be thickly corrected in the judgment value calculation means. Processing other than the above is performed according to a conventional method as disclosed in, for example, Japanese Patent Laid-Open No. 4-188190. The coordinate point correction process is
Of course, a method other than the above may be used.

【0031】これらの実施例によれば、複雑な文字はつ
ぶれをなくすために細めに補正し、単純な文字は弱々し
くなるのを防ぐために太めに補正する等、各文字ごとに
適した補正方法を選択することが出来る。これら実施例
で示したように、補正方法の選択基準は上記の方法でな
くてもよいことはもちろんである。
According to these embodiments, a complicated character is corrected thinly to eliminate crushing, and a simple character is corrected thicker to prevent it from becoming weak. You can choose the method. As shown in these embodiments, the selection criterion of the correction method need not be the above method.

【0032】また上記では、水平線輪郭座標のy座標に
対する処理のみを説明したが、垂直線輪郭座標のx座標
に関しても同様の処理を行う。
Further, in the above description, only the processing for the y coordinate of the horizontal line contour coordinates has been described, but the same processing is performed for the x coordinate of the vertical line contour coordinates.

【0033】[0033]

【発明の効果】これまでの説明で明らかなように、本発
明によれば、線幅補正のための付加的な情報を持たない
アウトラインフォントに関して、文字の特性及びプリン
タの特性により補正方法を区別し、任意の文字及びサイ
ズに適した線幅補正が可能となるので、各文字に見合っ
た最適な方法で補正することができる。
As is apparent from the above description, according to the present invention, regarding the outline font having no additional information for line width correction, the correction method is distinguished by the character characteristics and the printer characteristics. However, since line width correction suitable for any character and size is possible, it is possible to perform correction by an optimum method suitable for each character.

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

【図1】本発明の実施例に係るシステムを示すブロック
図である。
FIG. 1 is a block diagram showing a system according to an embodiment of the present invention.

【図2】実施例に係る文字出力処理の処理手順を示すフ
ローチャートである。
FIG. 2 is a flowchart showing a processing procedure of character output processing according to the embodiment.

【図3】実施例に係る線幅補正処理を示す説明図であ
る。
FIG. 3 is an explanatory diagram showing a line width correction process according to the embodiment.

【図4】他の実施例を示すフローチャートである。FIG. 4 is a flowchart showing another embodiment.

【図5】従来例に係る補正方法を説明するための説明図
である。
FIG. 5 is an explanatory diagram for explaining a correction method according to a conventional example.

【図6】未補正の文字と従来例に係る方法で補正した文
字を示す図である。
FIG. 6 is a diagram showing uncorrected characters and characters corrected by a method according to a conventional example.

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

11 入力手段 12 制御装置 13 文字描画手段 131 データ読み出し手段 132 フォント記憶手段 133 座標変換手段 134 線幅補正手段 135 ワークメモリ 136 塗りつぶし手段 1341 水平線抽出手段 1342 整数間隔抽出手段 1343 判定値算出手段 1344 補正方法判定手段 1345 座標点補正手段 14 出力手段 31 白黒領域判定テーブル 32 水平線間隔テーブル 33 水平線整数間隔テーブル 37 整数座標テーブル 38 水平整数間隔座標テーブル 11 input means 12 control device 13 character drawing means 131 data reading means 132 font storage means 133 coordinate conversion means 134 line width correction means 135 work memory 136 fill means 1341 horizontal line extraction means 1342 integer interval extraction means 1343 judgment value calculation means 1344 correction method Judgment means 1345 Coordinate point correction means 14 Output means 31 Monochrome area judgment table 32 Horizontal line interval table 33 Horizontal line integer interval table 37 Integer coordinate table 38 Horizontal integer interval coordinate table

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 任意の文字及びサイズを入力する入力手
段と、文字を出力する出力手段と、文字を描画する文字
描画手段と、これらを制御する制御手段とを備えた文字
出力装置において、 上記文字描画手段が、アウトラインフォントを形成する
文字輪郭座標データを記憶するフォント記憶手段と、 前記入力手段より送られてくる文字コードに対応する文
字輪郭座標データを前記フォント記憶手段から読み出す
データ読み出し手段と、 データ読み出し手段によって読み出された文字輪郭座標
データを所定の文字サイズに従って座標変換する座標変
換手段と、 座標変換手段によって座標変換された文字輪郭座標デー
タの内部を塗りつぶす塗りつぶし手段と、 あらかじめ設定された複数の補正方法の中から補正する
方法を選択する補正方法判定手段を含み、当該補正方法
判定手段によって選択された補正方法により前記座標変
換された文字輪郭座標データを用いて線幅を補正する線
幅補正手段と、を備えていることを特徴とする文字出力
装置。
1. A character output device comprising input means for inputting an arbitrary character and size, output means for outputting a character, character drawing means for drawing a character, and control means for controlling these. A character drawing means for storing character contour coordinate data forming an outline font; and a data reading means for reading character contour coordinate data corresponding to a character code sent from the input means from the font storage means. A coordinate conversion means for performing coordinate conversion of the character contour coordinate data read by the data reading means according to a predetermined character size; a filling means for filling the inside of the character contour coordinate data coordinate-converted by the coordinate conversion means; Select the correction method from the multiple correction methods And a line width correcting unit that corrects the line width using the character contour coordinate data that has been subjected to the coordinate conversion by the correction method selected by the correction method determining unit. .
【請求項2】 前記補正方法判定手段が、任意の条件の
もとで補正方法を選択するように設定され、 前記線幅補正手段が、前記座標変換手段により変換され
た文字輪郭座標データから水平線輪郭座標のy座標およ
び垂直線輪郭座標のx座標を抽出する線抽出手段と、 抽出された前記線輪郭座標のy座標および垂直線輪郭座
標のx座標の各々に対し、隣接した座標値の間隔を求
め、該間隔をそれぞれ整数化する整数間隔抽出手段と、 前記補正方法判定手段における判定の基準となる値を算
出する判定値算出手段と、 前記補正方法判定手段により補正された間隔の和を求め
ることにより前記輪郭座標を再計算し、補正を行う座標
点補正手段と、を備えていることを特徴とする請求項1
記載の文字出力装置。
2. The correction method determination means is set so as to select a correction method under an arbitrary condition, and the line width correction means uses a horizontal line from the character contour coordinate data converted by the coordinate conversion means. Line extraction means for extracting the y coordinate of the contour coordinates and the x coordinate of the vertical line contour coordinates, and the interval between adjacent coordinate values for each of the extracted y coordinate of the line contour coordinates and the x coordinate of the vertical line contour coordinates. And an integer interval extracting means for converting each of the intervals into an integer, a judgment value calculating means for calculating a value serving as a reference for judgment in the correction method judging means, and a sum of the intervals corrected by the correction method judging means. A coordinate point correction unit that recalculates the contour coordinates by obtaining and corrects the contour coordinates.
Character output device described.
【請求項3】 前記補正方法判定手段によって選択され
る補正方法が、文字の特性を基準にして選択される2つ
の補正方法であることを特徴とする請求項1または2記
載の文字出力装置。
3. The character output device according to claim 1, wherein the correction method selected by the correction method determination means is two correction methods selected on the basis of character characteristics.
【請求項4】 前記2つの補正方法が、線を太めに補正
する方法と細めに補正する方法であることを特徴とする
請求項3記載の文字出力装置。
4. The character output device according to claim 3, wherein the two correction methods are a method of correcting a line thickly and a method of correcting a line thinly.
【請求項5】 前記任意の条件が、文字の複雑さ及びサ
イズを基準に設定されていることを特徴とする請求項2
記載の文字出力装置。
5. The arbitrary condition is set based on the complexity and size of a character.
Character output device described.
【請求項6】 前記任意の条件が、文字の境界ボックス
の中の白領域の面積を基準に設定されていることを特徴
とする請求項2記載の文字出力装置。
6. The character output device according to claim 2, wherein the arbitrary condition is set on the basis of an area of a white region in a character bounding box.
【請求項7】 前記任意の条件が、座標データを整数化
したものと線幅を整数化したものとの誤差を基準に設定
されていることを特徴とする請求項2記載の文字出力装
置。
7. The character output device according to claim 2, wherein the arbitrary condition is set on the basis of an error between an integer of coordinate data and an integer of line width.
【請求項8】 前記任意の条件が、線幅を整数化したと
きに生じる丸め誤差を基準に設定されていることを特徴
とする請求項2記載の文字出力装置。
8. The character output device according to claim 2, wherein the arbitrary condition is set on the basis of a rounding error generated when the line width is converted into an integer.
JP5182976A 1993-07-23 1993-07-23 Character output device Pending JPH0736434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5182976A JPH0736434A (en) 1993-07-23 1993-07-23 Character output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5182976A JPH0736434A (en) 1993-07-23 1993-07-23 Character output device

Publications (1)

Publication Number Publication Date
JPH0736434A true JPH0736434A (en) 1995-02-07

Family

ID=16127601

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5182976A Pending JPH0736434A (en) 1993-07-23 1993-07-23 Character output device

Country Status (1)

Country Link
JP (1) JPH0736434A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004102524A1 (en) * 2003-05-15 2004-11-25 Sharp Kabushiki Kaisha Character graphic display device, character graphic display method, program, and recording medium
WO2006077800A1 (en) * 2005-01-19 2006-07-27 Sharp Kabushiki Kaisha Character graphic display device, program, and recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004102524A1 (en) * 2003-05-15 2004-11-25 Sharp Kabushiki Kaisha Character graphic display device, character graphic display method, program, and recording medium
JP2004341253A (en) * 2003-05-15 2004-12-02 Sharp Corp Character and graphic display apparatus, character and graphic display method, program, and recording medium
WO2006077800A1 (en) * 2005-01-19 2006-07-27 Sharp Kabushiki Kaisha Character graphic display device, program, and recording medium

Similar Documents

Publication Publication Date Title
US5959635A (en) Character pattern generator
JPH056438A (en) Method of correcting image displayed by printer or display unit and device for correcting output from printer or display unit generating digitized image by dot matrix format
US4712185A (en) Dot interpolation control system
JPH05143742A (en) Vector image drawing device
JP2876942B2 (en) Data converter
EP0461811B1 (en) Pattern processing method
EP0415742B1 (en) Image processing apparatus
JPH0736434A (en) Character output device
US5222208A (en) Device and method for generating dot pattern enlargement data
JP3416489B2 (en) Font processing device and recording medium recording font processing program
KR950014169B1 (en) Output method and apparatus
EP0420575B1 (en) Printer apparatus
JP2650324B2 (en) Multi-value character font generation system
JP3417753B2 (en) Method and apparatus for generating gradation character
JP3057978B2 (en) Character generator
JPH0661960B2 (en) Dot interpolation control device
JP2782752B2 (en) Character pattern output device
JP2771629B2 (en) Character processor
JP3244411B2 (en) Character image data generation method and device, and character output method and device
JP3089913B2 (en) High quality character output device
JP2558254B2 (en) Pattern generation method
JPH04161986A (en) Graphic processing device
JPH0784739A (en) Data converter
JPH09101770A (en) Character data conversion device
JPH1023241A (en) Gradation character output device