JP3018426B2 - Character / graphic drawing device - Google Patents

Character / graphic drawing device

Info

Publication number
JP3018426B2
JP3018426B2 JP2203984A JP20398490A JP3018426B2 JP 3018426 B2 JP3018426 B2 JP 3018426B2 JP 2203984 A JP2203984 A JP 2203984A JP 20398490 A JP20398490 A JP 20398490A JP 3018426 B2 JP3018426 B2 JP 3018426B2
Authority
JP
Japan
Prior art keywords
stroke width
outline data
outline
data
character
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
JP2203984A
Other languages
Japanese (ja)
Other versions
JPH0490595A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2203984A priority Critical patent/JP3018426B2/en
Publication of JPH0490595A publication Critical patent/JPH0490595A/en
Application granted granted Critical
Publication of JP3018426B2 publication Critical patent/JP3018426B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION 【産業上の利用分野】[Industrial applications]

本発明は、アウトラインフォントをビットマップに展
開して描画する文字・図形描画装置に関する。
The present invention relates to a character / graphic drawing apparatus that develops outline fonts into bitmaps and draws them.

【従来の技術】[Prior art]

文字や図形を表すのにアウトライン方式が従来から知
られている。 このアウトライン方式は文字や図形の輪郭の座標をひ
ろい、それらを線分や曲線で補間することにより文字や
図形を表現する方式である。アウトラインデータの文字
や図形を出力表示するには、アウトラインデータ(アウ
トラインフォント)により輪郭を描き、内部を塗り潰す
処理が行われる。すなわち、このアウトラインフォント
をビットマップに展開する際には、アウトラインフォン
トを所望のサイズのビットマップとなるように、拡大、
縮小、回転等の変換(アフィン変換)を施しした後にそ
の輪郭情報を用いて塗り潰しをするという方法をとって
いる。
An outline method is conventionally known for representing characters and figures. The outline method is a method in which the coordinates of outlines of characters and figures are widened and the characters and figures are expressed by interpolating them with line segments and curves. In order to output and display the characters and figures of the outline data, a process of drawing an outline using the outline data (outline font) and filling the inside is performed. That is, when this outline font is developed into a bitmap, the outline font is enlarged and enlarged so as to become a bitmap of a desired size.
A method is used in which conversion (affine transformation) such as reduction and rotation is performed, and then the outline is filled using the outline information.

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

このアウトライン方式では、文字のサイズが小さい場
合や出力装置の解像度が低い場合には、アウトラインデ
ータをビッマップに展開してもうまく補間ができなかっ
たり、出力装置のもつ印字特性に字形が大きく影響され
る等の問題があった。例えば第5図(a)あるいは
(c)に示すようにアウトラインフォントの幅が出力装
置で表現できる最小ストローク幅Wiotより小さい部分が
あると、上記展開をする際に、そのストロークの幅の小
さい部分に同図(b)(d)に示すようにフォントの抜
けや、途切れが発生し、本来の形状を正しく表せないこ
とがあった。 本発明は、上記の従来技術の問題点を除去することを
目的とするものであり、文字や図形のサイズが小さい場
合あるいは出力装置の解像度が低い場合にも抜けや途切
れの少ない、本来の形状をよく表すことのできる文字・
図形描画装置を提供することを目的とするものである。
In this outline method, when the character size is small or the resolution of the output device is low, interpolation cannot be performed well even if the outline data is expanded to a bitmap, and the character shape is greatly affected by the print characteristics of the output device. Problems. For example, if there is a portion where the width of the outline font is smaller than the minimum stroke width Wiot that can be expressed by the output device as shown in FIG. In addition, as shown in FIGS. 7B and 7D, a missing or interrupted font may occur, and the original shape may not be correctly represented. SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above-mentioned problems of the prior art, and to reduce the size of characters and graphics or the resolution of an output device so that there are few omissions or breaks in the original shape. Characters that can well represent
It is an object of the present invention to provide a graphic drawing device.

【課題を解決するための手段】[Means for Solving the Problems]

本発明の文字・図形描画装置は、アウトラインデータ
から文字・図形の最小ストローク幅を求めるストローク
幅抽出手段(第1図4)と、そのストローク幅抽出手段
(4)で得られた前記最小ストローク幅と出力装置で表
示可能な最小ストローク幅とを比較し、この比較の結果
に基づいてストローク幅を広げるよう補正するアウトラ
インデータ補正手段(第1図5)とを設けたことを特徴
とする。
The character / graphic drawing apparatus of the present invention comprises a stroke width extracting means (FIG. 1) for obtaining the minimum stroke width of the character / graphic from the outline data, and the minimum stroke width obtained by the stroke width extracting means (4). And an outline data correcting means (FIG. 1) for comparing the minimum stroke width and the minimum stroke width that can be displayed on the output device, and correcting the stroke width based on the result of the comparison.

【作用】[Action]

本発明は、アウトラインデータの示すストローク幅
が、出力装置に表示可能な最小のストローク幅(出力装
置の解像度)よりも小さいときには、ビットマップに展
開したときフォントの抜けや途切れが発生するので、ア
ウトラインデータを補正する。具体的には、アウトライ
ンデータの最小ストローク幅(第4図,第6図W)をス
トローク幅抽出手段(4)により抽出する。アウトライ
ンデータ補正手段(5,6)は、その抽出した最小ストロ
ーク幅(W)が出力装置に表示可能な最小ストローク幅
(第4図,第6図Wiot)よりも小さいときに、フォント
の幅を広げるようにアウトラインデータを補正する。第
6図はその補正の例を示すもので、アウトラインデータ
により表されるアウトラインフォントを同図(a)ある
いは(c)の破線に示すようにフォントの幅を広げて、
最小ストローク幅(W)が出力装置に表示可能な最小ス
トローク幅(Wiot)よりも大きくすることにより、同図
(b)(d)に示すように、フォントの抜けがなくな
る。
According to the present invention, when the stroke width indicated by the outline data is smaller than the minimum stroke width (resolution of the output device) that can be displayed on the output device, missing or broken fonts occur when the data is developed into a bitmap. Correct the data. More specifically, the minimum stroke width (W in FIGS. 4 and 6) of the outline data is extracted by the stroke width extracting means (4). When the extracted minimum stroke width (W) is smaller than the minimum stroke width (Wiot in FIGS. 4 and 6) that can be displayed on the output device, the outline data correction means (5, 6) changes the font width. Correct the outline data so that it expands. FIG. 6 shows an example of the correction, in which the outline font represented by the outline data is widened as shown by a broken line in FIG.
By making the minimum stroke width (W) larger than the minimum stroke width (Wiot) that can be displayed on the output device, font omission is eliminated as shown in FIGS.

【実施例】【Example】

第1図は本発明の実施例の機能ブロック図である。 この装置は、出力表示する文字、図形データを入力
し、あるいは保持する入力部1と、入力データに対応す
るアウトラインデータを保持するアウトラインデータ保
持部2と、出力装置の解像度を示すデータを保持する出
力解像度データ保持部3と、アウトラインデータからス
トローク幅の最小値を求めるストロークデータ抽出部4
と、抽出した最小のストローク値と出力装置解像度デー
タを比較し、アウトラインデータの補正を必要とするか
否かを判定する補正判定部5と、補正すると判定された
ときアウトラインデータの最小ストローク幅と出力解像
度データとに基づきアウトラインデータの補正をするア
ウトラインデータ補正部6と、アウトラインデータ補正
部6の出力するアウトラインデータをビットマップに展
開するビットマップ展開部7と、プリンタやディスプレ
イなどによって構成される出力部8とを備えている。 第2図は本実施例のアウトラインデータの補正を説明
するための動作フロー図である。 アウトラインデータのストローク幅の最小値Wを抽出
するのに用いる特定文字を読み込み、アウトラインデー
タ保持部2に保持する(ステップ201)。 次に現在使用している出力部8の装置において表示可
能なストローク幅の最小値Wiotを出力部解像度データ保
持部3に読み込み(ステップ202)。 アウトラインデータ保持部2のアウトラインデータか
らストローク幅の最小値を抽出する(ステップ203)。
その抽出には、特別の文字を用いるのが処理が簡単とな
る。例えば、「0」,「8」,「9」などの上部が最小
ストローク幅となるのが一般的であるので、最小幅の抽
出用の特定文字として用いるのに適している。 文字「8」を例にとり、最小ストローク幅の抽出処理
を説明する。 第3図に示すように各閉曲線31,32,33を囲む最小の
長方形を求め、それぞれの長方形のY座標の最大値a,b,
cを求める。「8」の場合は3つの閉曲線で構成された
いるので、3つの最大値が得られる。 これらの最大値を降順にソートする。 一番大きな最大値と次に大きな最大値の差を最小ス
トローク幅Wとする。第3図の例では、W=a−bとな
る。 次にストロークデータを補正するか否かすなわちスト
ロークを太める補正をするか否かを判定する(ステップ
204)。すなわち、ストローク幅抽出部4により抽出し
たアウトラインデータの最小ストローク幅Wと出力装置
に表示可能な最小ストローク幅Wiotとを比較する。比較
の結果、W≧Wiotのときは、ストロークはビットマップ
に展開したときに抜けたり、途切れたりしないので、補
正の必要がないと判定して、ビットマップに展開する処
理を行う(ステップ207)。 比較の結果、W<Wiotであったときは、ストロークの
細さが出力装置の解像度では表現できないので、ストロ
ークを太めるためのアウトラインデータの補正をすべき
であるると判定し、太らせる値Tを計算する(ステップ
205)。第5図に示すように、太らせる値Tは、出力部
8の装置の表示可能最小ストローク幅Wiotからアウトラ
インデータの最小ストローク幅Wを差し引くことによっ
て求める。 すなわち、T=Wiot−Wである。 次に、アウトラインデータを太める処理をする(ステ
ップ206)。 そのために、出力すべきアウトラインデータをアウト
ラインデータ保持部2からアウトラインデータ補正部6
に転送し、そのデータに対して前記のように得られた太
め値Tを用いて太め処理を行う。それは、次のように行
う。 各セグメントの法線ベクトルを求める。高速化のた
め曲線については始点と終点よりおおよその法線ベクト
ルを求める。 この法線ベクトルとx軸の傾きをθとし、太める値
をTとすると、実際に太める値のx軸成分Xとy軸成分
Yは、 X=T*cosθ Y=T*sinθ により求める。 このようにして求めたストロークを太らせる値X,Yを
各制御点に加えることによってアウトラインデータのス
トロークを太らせる。 ステップ205〜206によりアウトラインデータを補正し
たときは、その補正されたアウトラインデータを、ビッ
トマップ展開部7によりビットマップ展開する(ステッ
プ207)。 このようにして得られたビットマップデータを出力部
(例えばプリンタ)8に送り、ストロークの抜けや途切
れのない文字、図形を出力表示することができる。第5
図(a)(b)は補正をしない場合のアウトラインフォ
ントを示し、同図(b)(d)はそれをビットマップ展
開した文字を表しているが、アウトラインフォントのス
トローク幅が出力装置の印字可能な最小のドットの幅Wi
otより小さい部分でフォントの抜けが生じている。これ
に対し、本実施例により第6図(a)(c)のようにフ
ォントを太らせることにより同図(b)(d)のように
フォントの抜けを防ぐことができる。 以上に説明した実施例においては、アウトラインデー
タの最小ストローク幅を自動的に抽出する例を説明した
が、これは半自動的に抽出するように構成してもよい。
すなわち、予めオペレータの手操作によって最小ストロ
ーク幅を抽出しておき、アウトラインデータ内の属性パ
ラメータとして入力しておく。そして、アウトラインデ
ータをビットマップデータに変換する際に、アウトライ
ンデータ内から上記の属性パラメータとして入力されて
いる最小ストローク幅情報をとりだし、補正処理をする
ようにしてもよい。
FIG. 1 is a functional block diagram of an embodiment of the present invention. This device stores an input unit 1 for inputting or storing character and graphic data to be output and displayed, an outline data storage unit 2 for storing outline data corresponding to the input data, and data indicating the resolution of the output device. An output resolution data holding unit 3 and a stroke data extracting unit 4 for obtaining a minimum value of a stroke width from outline data
And a correction determining unit 5 that compares the extracted minimum stroke value with the output device resolution data to determine whether or not the outline data needs to be corrected. An outline data correction unit 6 for correcting outline data based on output resolution data, a bitmap development unit 7 for developing outline data output from the outline data correction unit 6 into a bitmap, a printer, a display, and the like. And an output unit 8. FIG. 2 is an operation flowchart for explaining the correction of the outline data according to the present embodiment. The specific character used to extract the minimum stroke width W of the outline data is read and stored in the outline data storage unit 2 (step 201). Next, the minimum value Wiot of the stroke width that can be displayed on the device of the output unit 8 currently used is read into the output unit resolution data holding unit 3 (step 202). The minimum value of the stroke width is extracted from the outline data in the outline data holding unit 2 (step 203).
It is easier to use a special character for the extraction. For example, since the upper part of “0”, “8”, “9”, etc. generally has the minimum stroke width, it is suitable for use as a specific character for extracting the minimum width. The extraction process of the minimum stroke width will be described using the character “8” as an example. As shown in FIG. 3, the minimum rectangle surrounding each of the closed curves 31, 32, 33 is obtained, and the maximum value a, b,
Find c. In the case of "8", it is desired to be constituted by three closed curves, so that three maximum values are obtained. Sort these maximums in descending order. The difference between the largest maximum value and the next largest maximum value is defined as the minimum stroke width W. In the example of FIG. 3, W = ab. Next, it is determined whether or not the stroke data is to be corrected, that is, whether or not to make the stroke thicker.
204). That is, the minimum stroke width W of the outline data extracted by the stroke width extracting unit 4 is compared with the minimum stroke width Wiot that can be displayed on the output device. As a result of the comparison, when W ≧ Wiot, the stroke is not lost or interrupted when developed into a bitmap, so that it is determined that no correction is necessary, and processing for developing into a bitmap is performed (step 207). . As a result of the comparison, when W <Wiot, since the fineness of the stroke cannot be represented by the resolution of the output device, it is determined that the outline data should be corrected to increase the stroke, and the value to be increased. Calculate T (step
205). As shown in FIG. 5, the thickening value T is obtained by subtracting the minimum stroke width W of the outline data from the displayable minimum stroke width Wiot of the device of the output unit 8. That is, T = Wiot-W. Next, a process of thickening the outline data is performed (step 206). For this purpose, the outline data to be output is transferred from the outline data holding unit 2 to the outline data correction unit 6.
And the data is subjected to a thickening process using the thickened value T obtained as described above. It does the following. Find the normal vector of each segment. For the curve, an approximate normal vector is obtained from the start point and the end point for the curve. Assuming that the normal vector and the inclination of the x-axis are θ, and the thickening value is T, the x-axis component X and the y-axis component Y of the actually thickening value are obtained by X = T * cosθ Y = T * sinθ . The stroke of the outline data is thickened by adding the values X and Y for thickening the stroke thus obtained to each control point. When the outline data has been corrected in steps 205 to 206, the corrected outline data is bitmap-deployed by the bitmap developing unit 7 (step 207). The bitmap data obtained in this manner is sent to an output unit (for example, a printer) 8 so that characters and figures without missing or missing strokes can be output and displayed. Fifth
Figures (a) and (b) show the outline font when no correction is made, and Figures (b) and (d) show the characters obtained by bitmap expansion, and the stroke width of the outline font is printed by the output device. The smallest possible dot width Wi
Missing fonts occur in parts smaller than ot. On the other hand, according to the present embodiment, the font can be prevented from being lost as shown in FIGS. 6B and 6D by making the font thicker as shown in FIGS. 6A and 6C. In the embodiment described above, an example in which the minimum stroke width of the outline data is automatically extracted has been described. However, this may be configured to be semi-automatically extracted.
That is, the minimum stroke width is extracted in advance by an operator's manual operation, and is input as an attribute parameter in the outline data. Then, when converting the outline data into bitmap data, the minimum stroke width information input as the above-mentioned attribute parameter may be extracted from the outline data, and a correction process may be performed.

【発明の効果】【The invention's effect】

本発明によれば、アウトラインデータの文字や図形の
サイズが出力装置の解像度に比べて相対的に小さい場合
あるいは出力装置の解像度が文字や図形のサイズに比べ
て低い場合などに、抜けや途切れの少ない文字・図形を
描画することができる。
According to the present invention, when the size of characters or graphics in the outline data is relatively small compared to the resolution of the output device, or when the resolution of the output device is low compared to the size of the characters or graphics, the omission or interruption occurs. It is possible to draw few characters and figures.

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

第1図は本発明の実施例の機能ブロック図である。 第2図は本実施例のアウトラインデータの補正処理を示
す動作フロー図である。 第3図は最小ストローク幅の抽出処理を説明するための
図である。 第4図は太らせる値の計算を説明するための図である。 第5図(a)〜(d)はアウトラインデータを従来技術
によりビットマップ展開した際のストロークの抜けや途
切れが生じ例を示す図である。 第6図(a)〜(d)はアウトラインデータを本発明に
より太らせてビットマップ展開することによりストロー
クの抜けや途切れの発生が防止される例を示す図であ
る。 1……入力部、2……アウトラインデータ保持部、3…
…出力部解像度データ保持部、4……ストローク幅抽出
部、5……補正判定部、6……アウトラインデータ補正
部、7……ビットマップ展開部、8……出力部
FIG. 1 is a functional block diagram of an embodiment of the present invention. FIG. 2 is an operation flowchart showing the outline data correction processing of this embodiment. FIG. 3 is a diagram for explaining a minimum stroke width extraction process. FIG. 4 is a diagram for explaining the calculation of the value to be thickened. FIGS. 5 (a) to 5 (d) are diagrams showing examples in which strokes are lost or interrupted when outline data is developed into a bitmap by a conventional technique. FIGS. 6 (a) to 6 (d) are diagrams showing an example in which the outline data is expanded according to the present invention and bitmap-expanded, thereby preventing the occurrence of missing or interrupted strokes. 1 ... input unit, 2 ... outline data holding unit, 3 ...
... Output section resolution data storage section, 4... Stroke width extraction section, 5... Correction determination section, 6... Outline data correction section, 7.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アウトラインデータから文字・図形の最小
ストローク幅を求めるストローク幅抽出手段と、 そのストローク幅抽出手段で得られた前記最小ストロー
ク幅と出力装置で表示可能な最小ストローク幅とを比較
し、この比較の結果に基づいてストローク幅を広げるよ
う補正するアウトラインデータ補正手段と を設けたことを特徴とする文字・図形描画装置。
1. A stroke width extracting means for obtaining a minimum stroke width of a character or figure from outline data, and comparing the minimum stroke width obtained by the stroke width extracting means with a minimum stroke width which can be displayed on an output device. A character / figure drawing device comprising: an outline data correcting unit for correcting the stroke width to be increased based on the result of the comparison.
JP2203984A 1990-08-02 1990-08-02 Character / graphic drawing device Expired - Fee Related JP3018426B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2203984A JP3018426B2 (en) 1990-08-02 1990-08-02 Character / graphic drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2203984A JP3018426B2 (en) 1990-08-02 1990-08-02 Character / graphic drawing device

Publications (2)

Publication Number Publication Date
JPH0490595A JPH0490595A (en) 1992-03-24
JP3018426B2 true JP3018426B2 (en) 2000-03-13

Family

ID=16482865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2203984A Expired - Fee Related JP3018426B2 (en) 1990-08-02 1990-08-02 Character / graphic drawing device

Country Status (1)

Country Link
JP (1) JP3018426B2 (en)

Also Published As

Publication number Publication date
JPH0490595A (en) 1992-03-24

Similar Documents

Publication Publication Date Title
JP3483946B2 (en) Font processing apparatus and font processing method
JP5759621B2 (en) Character display method and character display device
US5367620A (en) Character output device
JP3037854B2 (en) Character generation method and device
JP3018426B2 (en) Character / graphic drawing device
JP3416489B2 (en) Font processing device and recording medium recording font processing program
JP3146771B2 (en) Font rasterizing apparatus and method
JP2819961B2 (en) Printing control device
JPH10198333A (en) Outline character drawing device
JP2726951B2 (en) Character / graphic drawing device
JP2002244643A (en) Image processor
JP3215179B2 (en) Hinting outline fonts
JP3057959B2 (en) Data converter
JP2675363B2 (en) Character processor
JPH06175637A (en) Method for generating character
JPH11242472A (en) Outline font developing device
JP2856704B2 (en) Character generator
JP3082236B2 (en) Character drawing device
JP3244411B2 (en) Character image data generation method and device, and character output method and device
JPH08254973A (en) Character output device and its method
JP2000322586A (en) Device and method for generating contour information and device and method for expanding contour information, contour information generation program storage medium and contour information expansion program storage medium
JPH08314427A (en) Data conversion device
JPH04161986A (en) Graphic processing device
JPH11102177A (en) Font data creation device and method thereof, and storage medium
JPS62175794A (en) Character generator

Legal Events

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

Free format text: PAYMENT UNTIL: 20080107

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090107

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees