Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2910101B2 - Vector font data component point correction device - Google Patents
[go: Go Back, main page]

JP2910101B2 - Vector font data component point correction device - Google Patents

Vector font data component point correction device

Info

Publication number
JP2910101B2
JP2910101B2 JP1304163A JP30416389A JP2910101B2 JP 2910101 B2 JP2910101 B2 JP 2910101B2 JP 1304163 A JP1304163 A JP 1304163A JP 30416389 A JP30416389 A JP 30416389A JP 2910101 B2 JP2910101 B2 JP 2910101B2
Authority
JP
Japan
Prior art keywords
line
value
lines
font data
scaling
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
JP1304163A
Other languages
Japanese (ja)
Other versions
JPH03163596A (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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1304163A priority Critical patent/JP2910101B2/en
Publication of JPH03163596A publication Critical patent/JPH03163596A/en
Application granted granted Critical
Publication of JP2910101B2 publication Critical patent/JP2910101B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、日本語デスクトップパブリッシング等の印
刷システムにおいて、輪郭文字パターンを使用して高品
位な文字を印刷するためのベクトル・フォント・データ
の構成点補正装置に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a configuration of vector font data for printing high-quality characters using an outline character pattern in a printing system such as Japanese desktop publishing. The present invention relates to a correction device.

従来の技術 近年、印刷システムでは低コストで高品位文字印刷を
実現するために、1つの文字パターンで任意の文字が生
成できる輪郭文字パターン拡大・縮小方式が多く利用さ
れるようになってきた。
2. Description of the Related Art In recent years, in a printing system, in order to realize high-quality character printing at low cost, a contour character pattern enlarging / reducing method capable of generating an arbitrary character with one character pattern has been frequently used.

しかしながら、単に輪郭文字パターンの座標を拡大・
縮小するだけでは四捨五入等の丸め処理が入るために高
品位な文字が生成されない。
However, simply expanding the coordinates of the outline character pattern
Simply reducing the size does not produce high-quality characters due to rounding such as rounding.

従来、これを防ぐために拡大・縮小における線幅制御
方式が提案されている(特開昭62−63384号公報)。
Conventionally, a line width control method for enlargement / reduction has been proposed to prevent this (Japanese Patent Application Laid-Open No. 62-63384).

以下、従来の線幅制御方式について説明する。 Hereinafter, a conventional line width control method will be described.

第4図は従来の例のブロック図である。13はベクトル
・フォント・データで、14はベクトル・フォント・デー
タ13の屈曲点の座標値を変倍する座標変換部である。
FIG. 4 is a block diagram of a conventional example. Reference numeral 13 denotes vector font data, and reference numeral 14 denotes a coordinate conversion unit for changing the coordinate value of the bending point of the vector font data 13.

15は縦線・横線の属性を付与する線属性付与部であ
る。16は線属性付与部で得た線属性情報に基づいて、横
線の場合は上の線の制御量と下の線の制御量を、横線の
場合は右の線の制御量と左の線の制御量を作成する制御
情報作成部である。
Reference numeral 15 denotes a line attribute assigning unit that assigns attributes of vertical lines and horizontal lines. 16 is based on the line attribute information obtained by the line attribute assigning unit, the control amount of the upper line and the control amount of the lower line in the case of a horizontal line, and the control amount of the right line and the control amount of the left line in the case of a horizontal line. This is a control information creation unit that creates a control amount.

17は線幅制御情報作成部16で作成した制御情報より線
幅制御を行う屈曲点制御部である。
Reference numeral 17 denotes a bending point control unit that performs line width control based on the control information created by the line width control information creation unit 16.

18は屈曲点制御部17で生成した屈曲点より、ドット・
フォントを生成するフォント生成部である。
18 is a dot / dot from the inflection point generated by the inflection point controller 17.
A font generation unit that generates a font.

発明が解決しようとする課題 しかしながら前記の従来例の構成では、各々の線につ
いては希望通りの線幅となるが、線間を考慮せずに補正
処理を行っていたため、変倍率によって線間にバラツキ
が生じてしまい、低品位の文字が生成さるてしまう。と
いったような課題を有していた。
However, in the above-described configuration of the related art, each line has a desired line width. However, since the correction process is performed without considering the line interval, the distance between the lines is changed by the scaling factor. Variations occur, and low-quality characters are generated. There was such a problem.

課題を解決するための手段 本発明は、前記問題点を解決するため、ベクトル・フ
ォント・データの構成点に基づいて、文字の縦線・横線
を検出する線検出部と、線検出部で検出された縦線・横
線のうち、所定の関係を有するものをグループ化する手
段と、線検出部で検出された線の構成点に基づいて、グ
ループ化された各線についての線間値、線幅値及びグル
ープの全体幅値をそれぞれ求める手段と、ベクトル・フ
ォント・データの構成点を座標変換により所定倍率で変
倍する座標変換部と、グループ化された各線について
は、変倍前の線間値、線幅値及びグループの全体幅値を
それぞれ変倍した各値に基づいて補正量を求め、該補正
量を用いて、座標変換部による変倍後の構成点の座標値
を補正する構成点補正部と、構成点補正部で補正した座
標値からドット・フォントを生成するフォント生成部
と、を有する構成とした。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a line detecting unit for detecting vertical and horizontal lines of a character based on the constituent points of vector font data, Means for grouping those having a predetermined relationship among the vertical and horizontal lines, and a line-to-line value and a line width for each of the grouped lines based on the constituent points of the lines detected by the line detection unit. Means for calculating the values of the values and the entire width of the group, a coordinate transformation unit for scaling the constituent points of the vector font data at a predetermined magnification by coordinate transformation, and, for each grouped line, the distance between the lines before scaling. A configuration in which a correction amount is obtained based on each value obtained by scaling the value, the line width value, and the entire width value of the group, and the coordinate value of the component point after scaling by the coordinate conversion unit is corrected using the correction amount. The point correction unit and the component point correction unit And a font generation unit that generates a dot font from the coordinate values.

作用 本発明は前記の構成により、ベクトル・フォント・デ
ータの変倍を行うに際し、所定の関係を有するものをグ
ループ化し、グループ化された各線については、変倍前
の線間値、線幅値及びグループの全体幅値をそれぞれ変
倍した各値に基づいて補正量を求め、該補正量を用い
て、座標変換部による変倍後の構成点の座標値を補正す
るので、元データのイメージと同様のイメージバランス
の文字を生成することができる。
According to the present invention, when performing scaling of vector font data with the above-described configuration, those having a predetermined relationship are grouped, and for each grouped line, the line-to-line value and the line width value before scaling are performed. And a correction amount is obtained based on each value obtained by scaling the entire width value of the group, and the coordinate value of the constituent point after the scaling by the coordinate conversion unit is corrected using the correction amount. It is possible to generate characters with the same image balance as.

実施例 第1図は本発明の一実施例におけるベクトル・フォン
ト・データの屈曲点補正方式のブロック図を示すもので
ある。
FIG. 1 is a block diagram showing a method of correcting a bending point of vector font data according to an embodiment of the present invention.

1は、出力する文字の種類やサイズ、あるいは出力位
置を得る入力部、2は、ベクトル・フォント・データを
格納しているベクトル・フォントっ記憶部、3は、入力
部1より得た情報より屈曲点を補正する屈曲点補正部、
4は、補正された屈曲点データよりドット・フォントを
生成するドット・フォント生成部、5は、生成されたド
ット・フォントをCRT、あるいはプリンタに出力する出
力部、6はこれらの制御を行なう実行処理部である。
1 is an input unit for obtaining the type and size of a character to be output, or an output position, 2 is a vector font storage unit storing vector font data, and 3 is a unit based on information obtained from the input unit 1. Bending point correction unit that corrects the bending point,
Reference numeral 4 denotes a dot font generation unit that generates a dot font from the corrected inflection point data, 5 denotes an output unit that outputs the generated dot font to a CRT or a printer, and 6 denotes an execution unit that performs these controls. It is a processing unit.

以上のように構成されたベクトル・フォントの屈曲点
補正方式について第2図のフローチャート、第3図の構
成図より、その動作を説明する。
The operation of the vector font bending point correction method configured as described above will be described with reference to the flowchart of FIG. 2 and the configuration diagram of FIG.

まず、ベクトル・データを記憶装置8より取り込み
(S1)、各々の線分の傾きを計算することによって、文
字を形成する縦線,横線を検出し、各々の線に番号をつ
ける(S2)。第5図の例では、線総数は5で、1〜5ま
で番号がつけられる。
First, the vector data is fetched from the storage device 8 (S1), the vertical line and the horizontal line forming the character are detected by calculating the inclination of each line segment, and each line is numbered (S2). In the example of FIG. 5, the total number of lines is 5, and numbers from 1 to 5 are given.

次に、このようにして検出した各々の縦・横線が他の
どの線と接しているか検出し(S3,S4)、接している線
が3本以上ある場合は線幅プラス線間制御処理(S6)
を、それ以外の場合は通常の線幅制御処理を行なう(S
7)。例では、線2あるいは線4に接する線が、線1・
線3・線5と3本あるので、この場合、線1・線3・線
5を1つのグループとして、線幅プラス線間処理を行
い、線2・線4については、通常の処理を行なう。
Next, each of the vertical and horizontal lines detected in this manner is detected as to which other line is in contact (S3, S4). If there are three or more lines in contact, the line width plus the line-to-line control processing ( S6)
Otherwise, the normal line width control processing is performed (S
7). In the example, the line tangent to line 2 or line 4 is line 1
In this case, since there are three lines 3 and 5, in this case, the line 1, line 3, and line 5 are made into one group, and the line width plus the line-to-line processing is performed, and the lines 2 and 4 are subjected to normal processing. .

線幅プラス線間制御処理として、まず、グループ単位
で各々の線幅,線間と、グループ全体の幅を求め(グル
ープ全体の幅は、(線1の上線)−(線3の下線)を計
算することにより、求めることができる)、それぞれの
値に変倍率を乗じる(S9〜S12)。
As the line width plus line interval control processing, first, the line width and line interval of each group and the width of the entire group are obtained in groups (the width of the entire group is (upper line of line 1) − (underline of line 3)). It can be obtained by calculation), and each value is multiplied by a scaling factor (S9 to S12).

ここで、高品位な文字を生成するための条件を優先順
位の高い順に述べると 1.線幅が揃っている 2.全体的なバランスがよい 3.線間が適当である のようになる。
Here, the conditions for generating high-quality characters are described in the order of priority: 1. The line width is uniform. 2. The overall balance is good. 3. The space between lines is appropriate.

実数計算では、変倍率を乗じた場合でも以下の関係式
が成り立つが、 (線幅×変倍率)+(線間×変倍率) =((屈曲点×変倍率)より得た線幅) +((屈曲点×変倍率)より得た線間) 実際には四捨五入等の丸め処理を行なうため、 <線幅×変倍率>+<線間×変倍率> ≠<<屈曲点×変倍率>より得た線幅> +<<屈曲点×変倍率>より得た線間> の関係となる場合が多い(ここで、()内の値は実数
値、<>内の値は整数値とする)。
In the real number calculation, the following relational expression holds even when multiplied by the scaling factor, but (line width × magnification ratio) + (line × magnification ratio) = (line width obtained from (bending point × magnification ratio)) + (Between lines obtained from (bending point x magnification)) Actually, rounding processing such as rounding is performed. <Line width x magnification> + <line x magnification> ≠ <<< bending point x magnification> In many cases, the following relationship is obtained: line width obtained from the equation> + <interval obtained from the bending point × magnification ratio> (where the value in parentheses is a real value, and the value in <> is an integer value). Do).

このような関係式となった場合に、<線幅×変倍率
>,<全体の幅×変倍率>の値は保持したいので、優先
順位の低い線間に補正量を加えることにする。
In the case of such a relational expression, since it is desired to hold the values of <line width × magnification> and <overall width × magnification>, the correction amount is added between the lines having lower priority.

α=<<全体の幅×変倍率> −<線幅×変倍率> −<線間×変倍率>> ÷線間の数 αの値を各々の線間に加える(S13)。余りについて
は、以下の処理を行なう。
α = <overall width × magnification> − <line width × magnification> − <interval × magnification >>> 間 の Number between lines The value of α is added between each line (S13). For the remainder, the following processing is performed.

漢字の特徴として下あるいは右の線間が広い方が安定
で、文字のバランスがよいので、横線グループで余りが
正の場合は下線間から上線間に向かって余り分だけ+1
をする。負の場合の上線間から下線間に向かって余り分
だけ−1する。縦線グループで余りが正の場合は右線間
から左線間に向かって余り分だけ+1する。負の場合は
左線間から右線間に向かって余り分だけ−1する(S14
〜S21)。
As a characteristic of kanji, the wider the lower or right line is more stable and the character balance is better, so if the remainder is positive in the horizontal line group, +1 from the underline to the upper line
do. In the case of a negative value, -1 is subtracted from the upper line to the lower line. If the remainder is positive in the vertical line group, the remainder is incremented by 1 from the right line to the left line. In the case of a negative value, the remainder is decremented by -1 from the left line to the right line (S14).
~ S21).

以上のようにして補正された屈曲点をページメモリ10
にドットデータを展開し、プリンタ11またはCRT12に出
力する(S8)。
The bending point corrected as described above is stored in the page memory 10.
The dot data is developed on the printer 11 and output to the printer 11 or CRT 12 (S8).

発明の効果 本発明は、ベクトル・フォント・データの構成点に基
づいて、文字の縦線・横線を検出する線検出部と、線検
出部で検出された縦線・横線のうち、所定の関係を有す
るものをグループ化する手段と、線検出部で検出された
線の構成点に基づいて、グループ化された各線について
の線間値、線幅値及びグループの全体幅値をそれぞれ求
める手段と、ベクトル・フォント・データの構成点を座
標変換により所定倍率で変倍する座標変換部と、グルー
プ化された各線については、変倍前の線間値、線幅値及
びグループの全体幅値をそれぞれ変倍した各値に基づい
て補正量を求め、該補正量を用いて、座標変換部による
変倍後の構成点の座標値を補正する構成点補正部と、構
成点補正部で補正した座標値からドット・フォントを生
成するフォント生成部と、を有する構成としたことによ
り、ベクトル・フォント・データの変倍を行うに際し、
所定の関係を有するものをグループ化し、グループ化さ
れた各線については、変倍前の線間値、線幅値及びグル
ープの全体幅値をそれぞれ変倍した各値に基づいて補正
量を求め、該補正量を用いて、座標変換部による変倍後
の構成点の座標値を補正するので、元データのイメージ
バランスと同様のイメージバランスの文字を生成するこ
とができ、ドット・フォントを得ることができる。
Advantageous Effects of the Invention The present invention provides a line detection unit that detects vertical and horizontal lines of a character based on the constituent points of vector font data, and a predetermined relationship between the vertical and horizontal lines detected by the line detection unit. Means for grouping those having a, and, based on the constituent points of the lines detected by the line detection unit, means for respectively determining the line-to-line value, line width value, and overall width value of the group for each grouped line A coordinate conversion unit for scaling the constituent points of the vector font data at a predetermined magnification by coordinate conversion, and for each of the grouped lines, an inter-line value, a line width value, and a total width value of the group before scaling. A correction amount is obtained based on each of the scaled values, and the correction amount is corrected by the component point correction unit that corrects the coordinate value of the component point after the scaling by the coordinate conversion unit using the correction amount. A font that generates a dot font from coordinate values And a font generation unit, when scaling the vector font data,
Those having a predetermined relationship are grouped, and for each grouped line, a correction amount is obtained based on each line value before and after scaling, the line width value and the overall width value of the group, respectively, Since the coordinate values of the constituent points after scaling by the coordinate conversion unit are corrected using the correction amount, characters having the same image balance as that of the original data can be generated, and a dot font can be obtained. Can be.

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

第1図は実施例における処理のブロック図、第2図は実
施例のフローチャート、第3図は実施例に使用する装置
のブロック図、第4図は従来例の処理のブロック図、第
5図は屈曲点補正の例題文字「日」において補正情報を
抽出するための説明図、第6図は変倍率によって線間に
バラツキの例を示す図である。
FIG. 1 is a block diagram of processing in the embodiment, FIG. 2 is a flowchart of the embodiment, FIG. 3 is a block diagram of an apparatus used in the embodiment, FIG. 4 is a block diagram of processing in a conventional example, and FIG. Is an explanatory diagram for extracting correction information for the example character "day" of the bending point correction, and FIG. 6 is a diagram showing an example of variation between lines due to a magnification.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】ベクトル・フォント・データの構成点に基
づいて、文字の縦線・横線を検出する線検出部と、 前記線検出部で検出された縦線・横線のうち、所定の関
係を有するものをグループ化する手段と、 前記線検出部で検出された線の構成点に基づいて、前記
グループ化された各線についての線間値、線幅値及びグ
ループの全体幅値をそれぞれ求める手段と、 ベクトル・フォント・データの構成点を座標変換により
所定倍率で変倍する座標変換部と、 前記グループ化された各線については、変倍前の線間
値、線幅値及びグループの全体幅値をそれぞれ変倍した
各値に基づいて補正量を求め、該補正量を用いて、前記
座標変換部による変倍後の構成点の座標値を補正する構
成点補正部と、 前記構成点補正部で補正した座標値からドット・フォン
トを生成するフォント生成部と、を有することを特徴と
するベクトル・フォント・データの構成点補正装置。
1. A line detector for detecting vertical and horizontal lines of a character based on the constituent points of vector font data, and a predetermined relationship among the vertical and horizontal lines detected by the line detector. Means for grouping the lines having, and means for obtaining a line-to-line value, a line width value, and an overall group width value for each of the grouped lines based on the constituent points of the lines detected by the line detection unit. A coordinate conversion unit that scales the constituent points of the vector font data at a predetermined magnification by coordinate conversion, and for each of the grouped lines, an inter-line value, a line width value, and the entire width of the group before scaling. A component correction unit that obtains a correction amount based on each value obtained by scaling the value, and uses the correction amount to correct the coordinate value of the component point after scaling by the coordinate conversion unit; and Dot from the coordinate value And font generator for generating a Onto configuration point correction apparatus of the vector font data, characterized in that it comprises a.
JP1304163A 1989-11-22 1989-11-22 Vector font data component point correction device Expired - Fee Related JP2910101B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1304163A JP2910101B2 (en) 1989-11-22 1989-11-22 Vector font data component point correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1304163A JP2910101B2 (en) 1989-11-22 1989-11-22 Vector font data component point correction device

Publications (2)

Publication Number Publication Date
JPH03163596A JPH03163596A (en) 1991-07-15
JP2910101B2 true JP2910101B2 (en) 1999-06-23

Family

ID=17929813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1304163A Expired - Fee Related JP2910101B2 (en) 1989-11-22 1989-11-22 Vector font data component point correction device

Country Status (1)

Country Link
JP (1) JP2910101B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102942774B (en) 2009-02-09 2015-02-25 三菱工程塑胶株式会社 Polycarbonate resin composition and molded object thereof
WO2011049228A1 (en) 2009-10-19 2011-04-28 帝人化成株式会社 Aromatic polycarbonate resin composition

Also Published As

Publication number Publication date
JPH03163596A (en) 1991-07-15

Similar Documents

Publication Publication Date Title
JP3238580B2 (en) Thicker text generator
JP2909273B2 (en) Outline font line width adjusting method and apparatus
US5351315A (en) Apparatus for smoothing outlines of images
JP2910101B2 (en) Vector font data component point correction device
JP2634851B2 (en) Image processing device
JPH09325750A (en) Image processing apparatus and method
JP2646437B2 (en) Jagi correction device for data expansion
JP3039015B2 (en) Character processor
JPH01303489A (en) Character output system
JP3437032B2 (en) Character creator
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JP2985275B2 (en) Character generation method of outline font
JP3024479B2 (en) Data converter
JP2630843B2 (en) Straight line drawing method and apparatus
JP3030998B2 (en) Character generator
JP2782753B2 (en) Character pattern scaling device
JP2603322B2 (en) Character processing apparatus and method
JP2776347B2 (en) Drawing device for printer
JP2804651B2 (en) Outline filling method
JPH0424689A (en) Image processor
JP2861097B2 (en) Shading image generation method and apparatus
JP2861201B2 (en) Data converter
JP3072756B2 (en) Drawing equipment
JPH0844336A (en) Outline font developing circuit
JPH10161799A (en) Coordinate input device and processing method of handwritten locus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees