JPH02197895A - Character pattern magnification device - Google Patents
Character pattern magnification deviceInfo
- Publication number
- JPH02197895A JPH02197895A JP1007233A JP723389A JPH02197895A JP H02197895 A JPH02197895 A JP H02197895A JP 1007233 A JP1007233 A JP 1007233A JP 723389 A JP723389 A JP 723389A JP H02197895 A JPH02197895 A JP H02197895A
- Authority
- JP
- Japan
- Prior art keywords
- character pattern
- line width
- line
- character
- width
- 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.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Digital Computer Display Output (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、文字の輪郭線の屈曲点の座標データを記憶し
ておき、この座標データに変倍率を乗じて展開すること
によって所望の大きさの文字パターンを得ることのでき
る文字パターン変倍装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention stores coordinate data of bending points of character outlines, and expands the coordinate data by multiplying it by a scaling factor to obtain a desired size. The present invention relates to a character pattern magnification device that can obtain character patterns.
従来の技術
近年、コスト低減と高品位な文字を生成するために、1
つの文字パターンで任意の文字が生成できる輪郭文字パ
ターンを拡大・縮小する文字パターン変倍装置が利用さ
れるようになってきた。Conventional technology In recent years, in order to reduce costs and generate high-quality characters, 1
2. Description of the Related Art Character pattern scaling devices that enlarge or reduce contour character patterns, which can generate any character using a single character pattern, have come into use.
しかしながら、輪郭文字パターンを何も補正せずに拡大
・縮小すると、文字パターンを離散化する際の四捨五入
等の丸め処理で線幅の均整の崩れた文字が生成される。However, when an outline character pattern is enlarged or reduced without any correction, characters with uneven line widths are generated due to rounding such as rounding when discretizing the character pattern.
従来、これを防ぐために拡大・縮小における線幅制御方
式が提案されている(時開62−63384)。Conventionally, in order to prevent this, a line width control method during enlargement/reduction has been proposed (Jikai 62-63384).
以下、従来の文字パターン変倍装置について説明する。A conventional character pattern scaling device will be described below.
第7図は従来の文字パターン変倍装置の構成を示すブロ
ック図である。12は基となる輪郭文字パターンで、1
3は基となる輪郭文字パターン12より屈曲点を抽出す
る屈曲点抽出部、14は屈曲点抽出部13の屈曲点の座
標値を拡大、縮小する座標変換部である。15は屈曲点
抽出部13で抽出した屈曲点より縦線、M線、飾り等の
属性を付与する属性付与部である。17は線幅制御情報
作成部16で作成した制御情報より線幅制御を行う屈曲
点制御部である。18は屈曲点制御部17で生成した屈
曲点の塗りつぶしを行う塗りつぶし部である。19は基
となる文字パターンを拡大、縮小し、線幅制御して得ら
れる拡大、縮小文字パターンである。FIG. 7 is a block diagram showing the configuration of a conventional character pattern scaling device. 12 is the basic outline character pattern, 1
Reference numeral 3 denotes an inflection point extracting section that extracts an inflection point from the basic outline character pattern 12, and 14 a coordinate conversion section that enlarges or reduces the coordinate values of the inflection points of the inflection point extracting section 13. Reference numeral 15 denotes an attribute assigning unit that assigns attributes such as vertical lines, M lines, decorations, etc. to the bending points extracted by the bending point extracting unit 13. Reference numeral 17 denotes a bending point control section that performs line width control based on the control information created by the line width control information creation section 16. Reference numeral 18 denotes a filling section that fills in the bending points generated by the bending point control section 17. 19 is an enlarged/reduced character pattern obtained by enlarging or reducing the base character pattern and controlling the line width.
発明が解決しようとする課題
しかしながら前記の従来例の構成では、基となる輪郭文
字パターンにおいて線幅の等しい複数の線は同じ線幅に
なるが基となる輪郭文字パターンが文字のバランスをと
るために1.2ドツト分太(したり細くしたりしている
場合にこれを縮小すると同じにした方が好ましい線幅の
線が違ってしまうことがあった。例えば第5図に示すよ
うに「亜」の文字の縦線の幅がまちまちになってしまう
ことがあった。Problems to be Solved by the Invention However, in the configuration of the conventional example described above, multiple lines having the same line width in the base outline character pattern have the same line width, but because the base outline character pattern balances the characters. If the line width is 1.2 dots thicker (or thinner) and you reduce it, the lines that would be better to keep the same width may become different. For example, as shown in Figure 5, The width of the vertical line of the character ``A'' sometimes became inconsistent.
課題を解決するための手段
本発明は、この課題を解決するため、輪郭文字パターン
の線幅を検出して各々の線幅に従ってこれを分類し、分
類された線群毎の目標線幅を算出する算出手段と、変倍
された文字パターンの線幅を算出手段によって算出され
た線幅に補正する構成でなる。Means for Solving the Problem In order to solve this problem, the present invention detects the line width of an outline character pattern, classifies it according to each line width, and calculates a target line width for each group of classified lines. and a configuration that corrects the line width of the scaled character pattern to the line width calculated by the calculation means.
作用
本発明は、この構成により、基となる文字パターンに僅
かな線幅の違いがあっても縮小したときは同じ線幅に補
正される。According to the present invention, with this configuration, even if there is a slight difference in line width in the base character pattern, the line width is corrected to the same line width when reduced.
実施例
第1図は本発明の一実施例におけるもしパターン変倍装
置における機能ブロック図を示すものである。Embodiment FIG. 1 shows a functional block diagram of a pattern magnification changing device according to an embodiment of the present invention.
1は、輪郭文字パターンデータ格納部であり、文字パタ
ーンを座標値で表現したデータが格納されている。3は
、輪郭文字パターン格納部1より取り込んだ文字パター
ンデータから縦、横線分を抽出する線分抽出部2で抽出
した線分より縦線、横線を構成する屈曲点を検出する構
成点抽出部である。4は、
構成点抽出部3で抽出された構成点より線幅と中心線を
計算する線幅検出部である。5は、線幅検出部4で求め
た線幅をグループ化する目標線幅検出部である。6は、
あらかじめ決定している拡大、縮小率を輪郭文字パター
ン格納部1に記憶された屈曲点に乗じて座標変換を行う
屈曲点座標変換部である。7は、構成点抽出部3、線幅
検出部4、及び目標線幅検出部5で得た構成点、線幅、
中心線を前記の拡大、縮小率上置じ拡大、縮小率を乗じ
てデータ変換する線幅変換部である。8は、構成点抽出
部3で抽出された構成点に付随する飾りの点を検出する
飾り検出部である。9は、以上検出されたデータを使用
して屈曲点を補正する屈曲点補正部である。10は、屈
曲点補正部9より補正された座標値の塗りつぶしを行う
塗りつぶし部である。11は、塗りつぶし部10で得ら
れた拡大、或は縮小された文字パターンである。Reference numeral 1 denotes an outline character pattern data storage section in which data representing character patterns in coordinate values is stored. 3 is a component point extraction unit that detects bending points forming vertical lines and horizontal lines from the line segments extracted by the line segment extraction unit 2 which extracts vertical and horizontal line segments from the character pattern data imported from the outline character pattern storage unit 1; It is. Reference numeral 4 denotes a line width detection unit that calculates the line width and center line from the constituent points extracted by the constituent point extraction unit 3. Reference numeral 5 denotes a target line width detection unit that groups the line widths determined by the line width detection unit 4. 6 is
This is a bending point coordinate conversion section that performs coordinate conversion by multiplying the bending points stored in the outline character pattern storage section 1 by a predetermined enlargement/reduction ratio. 7 are the constituent points, line widths, and
This is a line width conversion unit that converts data by multiplying the center line by the above-mentioned enlargement/reduction ratio and the enlargement/reduction ratio. Reference numeral 8 denotes a decoration detecting section that detects decorative points associated with the constituent points extracted by the constituent point extracting section 3. Reference numeral 9 denotes a bending point correction unit that corrects the bending point using the data detected above. Reference numeral 10 denotes a filling section that fills in the coordinate values corrected by the bending point correction section 9. Reference numeral 11 indicates an enlarged or reduced character pattern obtained by the filling section 10.
以上のように構成された輪郭文字パターンの拡大、縮小
における屈曲点補正方式について、第2図の「亜」の文
字を例に、以下その動作を説明する。The operation of the inflection point correction method for enlarging and reducing the contour character pattern constructed as described above will be explained below, using the character "A" in FIG. 2 as an example.
まず、第2図の文字パターンの屈曲点PO〜P54の座
標値を取り込む。この座標値は図に示すような左下を原
点とするX−Yの直交座標で整数値をとる。First, the coordinate values of the bending points PO to P54 of the character pattern shown in FIG. 2 are taken in. These coordinate values take integer values in X-Y orthogonal coordinates with the origin at the lower left as shown in the figure.
ここで、第3図は例題文字「亜」の文字サイズが109
2x1092マスの輪郭文字パターンデータである。Here, in Figure 3, the character size of the example character "A" is 109
This is outline character pattern data of 2x1092 squares.
次に、線分は屈曲点PiとPi+1を結んで得られるも
のであり、各々の線分の傾きを計算する。Next, line segments are obtained by connecting bending points Pi and Pi+1, and the slope of each line segment is calculated.
計算された傾きにより、縦線、横線を構成する線分を抽
出する。Based on the calculated slope, line segments forming vertical lines and horizontal lines are extracted.
(1)線分の傾き く ±Δl のときは横線分 (2)線分の傾き 〉 ±Δ2 のときは縦線分 Δ1、Δ2はあらかじめ決定されたしきい値である。(1) If the slope of the line segment is ±Δl, the horizontal line segment (2) Vertical line segment when the slope of the line segment is ±Δ2 Δ1 and Δ2 are predetermined threshold values.
このようにして得られた線分情報より各々の縦線(横線
〉を構成している線分を検出し、縦線(横線)を構成す
る右(上)の開始点、右(上)の終了点、左(下)の開
始点、左(下〉の終了点の構成点を抽出する。前記抽出
された4構成点より中心線と線幅を計算する。From the line segment information obtained in this way, the line segments that make up each vertical line (horizontal line) are detected, and the right (top) starting point and right (top) starting point of the vertical line (horizontal line) are detected. The constituent points of the end point, the left (bottom) start point, and the left (bottom) end point are extracted.The center line and line width are calculated from the four extracted constituent points.
ぞして、前記で得た線幅について縦線、横線と別々に線
幅のグループ化を行う。線幅グループ化については以下
のような処理を行う。Then, the line widths obtained above are grouped separately into vertical lines and horizontal lines. Regarding line width grouping, the following processing is performed.
[処理1] グループ化する基準幅の決定1、最も数の
多い幅
2、数の多い幅の±α以内に含まれる数が最も多い幅
3、メジアン線(ばらつきの中央に近い線幅の線)に最
も近い幅
基準幅の決定の優先順位は、1.2.3.とし、1、を
満たす幅がみつからない場合は2.へ移行し、2oを満
たす幅がみつからない場合は3.へ移行する。[Processing 1] Determination of standard width for grouping 1, Width 2 with the most number, Width 3 with the most number included within ±α of the width with the most number, Median line (line with line width close to the center of variation) ) The priority order for determining the width reference width closest to 1.2.3. If a width that satisfies 1 is not found, 2. If a width that satisfies 2o is not found, move to step 3. Move to.
[処理21 処理1で決定した基準幅±α以内を1グル
ープとし、グループ内で平均をとる。[Process 21 The reference width ±α determined in Process 1 is defined as one group, and the average within the group is taken.
[処理31 全線幅がグループ化されるまで処理1、処
理2を繰り返す。[Process 31 Repeat Process 1 and Process 2 until all line widths are grouped.
ここで、αは以下の式で表わされる。Here, α is expressed by the following formula.
α=基となる文字パターンのドツト数÷拡大*縮小した
ドツト数
第6図はグループ化する前の線幅とグループ化した後の
線幅である。α=Number of dots in the base character pattern ÷ Enlargement * Number of reduced dots FIG. 6 shows the line width before grouping and the line width after grouping.
次にあらかじめ決定している拡大、縮小率を屈曲点PO
〜P64に乗する。前記中心線、前記線幅グループ化で
得た線幅、線構成点の4点についても同様に拡大、縮小
率を乗する。Next, set the predetermined expansion/reduction ratio to the inflection point PO.
~Put on P64. The four points, the center line, the line width obtained by grouping the line widths, and the line constituent points, are similarly multiplied by the enlargement and reduction ratios.
次に、縦線、横線を構成する屈曲点以外の点より前記の
4構成点に属する飾りの点を検出する。Next, decorative points belonging to the four constituent points are detected from points other than the bending points that make up the vertical line and the horizontal line.
前記線幅グループ化で得た線幅と中心線の座標より右、
上の線幅、左、下の線幅を計算する。このようにして得
た目標線幅と各屈曲点の座標変換して得た線幅との差を
求め、その値を補正量とする。補正量は、各4点につい
て求める。To the right of the line width and center line coordinates obtained from the line width grouping,
Calculate the top, left, and bottom line widths. The difference between the target line width obtained in this way and the line width obtained by the coordinate transformation of each bending point is determined, and this value is used as the correction amount. The correction amount is determined for each of the four points.
以上のようにして求めた補正量を縦線の場合は右の開始
点、終了点、左の開始点、終了点に、横線の場合は上の
開始点、終了点、下の開始点、終了点に、およびそれら
の点に属する飾りについて各々の補正量を加える。For vertical lines, apply the correction amount calculated as above to the right start point, end point, left start point, and end point; for horizontal lines, apply the correction amount to the upper start point, end point, lower start point, and end point. Each correction amount is applied to the points and the decorations belonging to those points.
以上のようにして得られた座標データを塗りつぶすこと
により、高品位な文字パターンを生成することができる
。例えば「亜」という文字は第4図に示すように第5図
に示す文字とは異なり縦線の幅が揃って出力される。By filling in the coordinate data obtained as described above, a high-quality character pattern can be generated. For example, the character "A" is output as shown in FIG. 4, unlike the character shown in FIG. 5, in which the vertical lines are output with uniform widths.
発明の効果
本発明は、基となる輪郭文字パターンの各線幅を分類し
て各線群毎に目標線幅を算出して、変倍後の文字パター
ンに対してこの目標線幅になるように補正するので、基
となる輪郭文字パターンの各線幅が僅かに異なる場合に
もこれを縮小して線幅のばらつきが目立つことのない高
品位な文字パターンを得ることができる。Effects of the Invention The present invention classifies each line width of a basic outline character pattern, calculates a target line width for each line group, and corrects the character pattern after scaling so that it has this target line width. Therefore, even if the line widths of the basic outline character pattern differ slightly, this can be reduced to obtain a high-quality character pattern in which variations in line width are not noticeable.
第1図は本発明の一実施例における文字パターン変倍装
置の構成を示すブロック図、第2図は屈曲点補正の例題
文字「亜」において補正情報を抽出するための説明図、
第3図は例題文字パターンの座標データを示す図、第4
図は線幅制御を行なった場合の文字パターンを示す図、
第5図は線幅制御を行なわない場合の文字パターンを示
す図、第6図は線幅をグループ化をする前と後との対応
関係を示す説明図、第7図は従来の文字パターン変倍装
置の構成を示すブロック図である。
1・・・輪郭文字パターン格納部
2・・・線分抽出部
3・・・構成点抽出部
4・・・線幅検出部
5・・・目標線幅検出部
6・・・屈曲点座標変換部
7・・・線幅変換部
8・・・飾り検出部
9・・・屈曲点補正部
0・・・塗りつぶし部
1・・・拡大、縮小された文字パターン2・・・基とな
る輪郭文字パターン
3・・・屈曲点抽出部
4・・・座標変換部
5・・・属性付与部
6・・・線幅制御情報作成部
7・・・屈曲点制御部
8・・・塗りつぶし部
9・・・拡大、縮小文字パターン
代理人の氏名 弁理士 粟野重孝
ほか1名
第
図
第
第
図
図
第
図FIG. 1 is a block diagram showing the configuration of a character pattern scaling device according to an embodiment of the present invention, and FIG. 2 is an explanatory diagram for extracting correction information for the example character "A" for bending point correction.
Figure 3 shows the coordinate data of the example character pattern, Figure 4 shows the coordinate data of the example character pattern.
The figure shows the character pattern when line width is controlled.
Figure 5 is a diagram showing the character pattern when line width control is not performed, Figure 6 is an explanatory diagram showing the correspondence before and after line width is grouped, and Figure 7 is a diagram showing the character pattern when changing the line width. FIG. 2 is a block diagram showing the configuration of a multiplication device. 1... Contour character pattern storage unit 2... Line segment extraction unit 3... Constituent point extraction unit 4... Line width detection unit 5... Target line width detection unit 6... Bend point coordinate conversion Section 7... Line width conversion section 8... Decoration detection section 9... Bend point correction section 0... Filling section 1... Enlarged or reduced character pattern 2... Base outline character Pattern 3...Bending point extraction section 4...Coordinate conversion section 5...Attribute assignment section 6...Line width control information creation section 7...Bending point control section 8...Filling section 9...・Enlarged/reduced character pattern Name of agent: Patent attorney Shigetaka Awano and one other person
Claims (1)
ン記憶手段と、 前記記憶手段に記憶されたデータから文字を構成する線
の各々の線幅を検出する線幅検出手段と、 前記線幅検出手段によって検出された各々の線幅に従っ
てこれを分類する分類手段と、 前記分類手段によって分類された各線群毎の目標線幅を
算出する算出手段と、 文字パターン記憶手段に記憶された座標データに変倍率
を乗じる変倍手段と、 前記変倍手段によって変倍された座標データに基づく文
字パターンの線幅を前記算出手段によって算出された線
幅に補正する補正手段と、 を有することを特徴とする文字パターン変倍装置。[Scope of Claims] Character pattern storage means for storing coordinate data of bending points of character outlines; and line width detection means for detecting the line width of each line constituting a character from the data stored in the storage means. a classification means for classifying line widths detected by the line width detection means; a calculation means for calculating a target line width for each line group classified by the classification means; and a character pattern storage means. scaling means for multiplying the stored coordinate data by a scaling factor; correction means for correcting the line width of the character pattern based on the coordinate data scaled by the scaling means to the line width calculated by the calculating means; A character pattern magnification device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1007233A JP2748486B2 (en) | 1989-01-13 | 1989-01-13 | Character pattern scaling device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1007233A JP2748486B2 (en) | 1989-01-13 | 1989-01-13 | Character pattern scaling device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02197895A true JPH02197895A (en) | 1990-08-06 |
| JP2748486B2 JP2748486B2 (en) | 1998-05-06 |
Family
ID=11660278
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1007233A Expired - Fee Related JP2748486B2 (en) | 1989-01-13 | 1989-01-13 | Character pattern scaling device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2748486B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1992022888A1 (en) * | 1991-06-10 | 1992-12-23 | Yoshiro Otsuka | Method of correctly aligning the line width of outline font |
| US5526476A (en) * | 1992-12-07 | 1996-06-11 | Fujitsu Limited | Method and apparatus for generating character patterns expressed by coordinates of a coordinate system |
| JP2007264748A (en) * | 2006-03-27 | 2007-10-11 | Casio Comput Co Ltd | Image processing apparatus and image processing method |
| JP2012095079A (en) * | 2010-10-27 | 2012-05-17 | Nec Engineering Ltd | Pixel number conversion method, program for executing the same and pixel number converter |
-
1989
- 1989-01-13 JP JP1007233A patent/JP2748486B2/en not_active Expired - Fee Related
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1992022888A1 (en) * | 1991-06-10 | 1992-12-23 | Yoshiro Otsuka | Method of correctly aligning the line width of outline font |
| GB2273805A (en) * | 1991-06-10 | 1994-06-29 | Yoshiro Otsuka | Method of correctly aligning the line width of outline font |
| GB2273805B (en) * | 1991-06-10 | 1995-09-06 | Yoshiro Otsuka | Method and apparatus for adjusting line widths of outline font |
| US5714987A (en) * | 1991-06-10 | 1998-02-03 | Otsuka; Yoshiro | Method of equally adjusting line widths of outline font |
| US5526476A (en) * | 1992-12-07 | 1996-06-11 | Fujitsu Limited | Method and apparatus for generating character patterns expressed by coordinates of a coordinate system |
| JP2007264748A (en) * | 2006-03-27 | 2007-10-11 | Casio Comput Co Ltd | Image processing apparatus and image processing method |
| JP2012095079A (en) * | 2010-10-27 | 2012-05-17 | Nec Engineering Ltd | Pixel number conversion method, program for executing the same and pixel number converter |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2748486B2 (en) | 1998-05-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR900006886A (en) | Method and apparatus for minimizing visual reduction of digital typography | |
| JPH02197895A (en) | Character pattern magnification device | |
| JPS62272295A (en) | Expansion/reduction system of character pattern with line width control function | |
| US4853885A (en) | Method of compressing character or pictorial image data using curve approximation | |
| JPH02187371A (en) | Character pattern variable power multiplier | |
| JP2659584B2 (en) | How to fill shapes | |
| JPH0332111B2 (en) | ||
| JP2910101B2 (en) | Vector font data component point correction device | |
| JPH01303489A (en) | Character output system | |
| JP2521756B2 (en) | Pattern data generator | |
| JPH06175638A (en) | Character generation method and apparatus | |
| JP2603322B2 (en) | Character processing apparatus and method | |
| JP2777946B2 (en) | Scale recognition method for character patterns | |
| JPS6081683A (en) | Expanding and contracting method of dot pattern | |
| JPH0493992A (en) | Character and graphic plotter device | |
| JP3536894B2 (en) | Graphic processing unit | |
| JP3338484B2 (en) | Outline font transformation device | |
| AU742564B2 (en) | A method and apparatus for parametric variation of text | |
| JPH03290691A (en) | How to reduce vector fonts | |
| JPH0338622B2 (en) | ||
| JPH032895A (en) | How to scale character patterns using vector fonts | |
| JPH03100883A (en) | Pattern normalizing device | |
| JPH09106461A (en) | Graphic painting-out method | |
| JP3304255B2 (en) | Bezier curve approximation device | |
| JPH03271799A (en) | Character pattern similarity converting system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |