JPH0715625B2 - Character figure generation processing method - Google Patents
Character figure generation processing methodInfo
- Publication number
- JPH0715625B2 JPH0715625B2 JP63129631A JP12963188A JPH0715625B2 JP H0715625 B2 JPH0715625 B2 JP H0715625B2 JP 63129631 A JP63129631 A JP 63129631A JP 12963188 A JP12963188 A JP 12963188A JP H0715625 B2 JPH0715625 B2 JP H0715625B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- shape
- component
- graphic
- constituent element
- 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
Links
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,多種の書体の文字図形を生成する文字図形生
成処理方式に関する。The present invention relates to a character / graphics generation processing method for generating character / graphics of various typefaces.
従来の文字図形を生成する方法としては,“文字図形の
骨格を示す線図形で記述された字体情報”と第9図(桑
山弥三郎,「文字デザイン」,グラフィック社,1971)
に示すような“文字図形の書体を構成する基本要素の形
状情報”を予め記憶しておき,“該字体情報に基づいて
該構成要素の形状を文字種毎に”変形し,これらの構成
要素を組み合わせることにより文字図形を生成する方法
がある(特願昭60-202476号公報参照)。この方法では
原理的に使用する文字図形の書体は予め記憶した“基本
要素”の形状に依存しており,従って構成要素形状が決
まれば生成される文字図形の書体が決まる。As a conventional method for generating a character graphic, “character information described by a line graphic showing the skeleton of the character graphic” and FIG. 9 (Yasaburo Kuwayama, “Character Design”, Graphic Publishing Co., 1971)
"Shape information of basic elements constituting a typeface of a character and a figure" is stored in advance, and "the shape of the constituent element is changed for each character type based on the font information". There is a method of generating a character figure by combining them (see Japanese Patent Application No. 60-202476). In this method, the typeface of the character / graphic used in principle depends on the shape of the "basic element" stored in advance, and therefore the typeface of the generated character / graphic is determined if the shapes of the constituent elements are determined.
従来は前述のような方式を取っていたため,予め記憶さ
れた以外の書体の文字図形を生成することは出来なかっ
た。また別の書体の文字図形を生成するには新たに該書
体に対応する構成要素の形状を設計して登録変更する必
要があるが,構成要素の形状を設計,登録するには構成
要素や文字図形を生成するための構成要素の組み合わせ
に関する文字図形デザインの専門的知識が必要であった
り,登録操作のための専門的な知識を必要とした。この
ため,専門的な知識のない一般の人にはこれらの構成要
素の変更は困難であった。Conventionally, since the above-mentioned method was adopted, it was not possible to generate a character graphic of a typeface other than that which was stored in advance. In order to generate a character graphic of another typeface, it is necessary to newly design and register the shape of the constituent element corresponding to the typeface. Special knowledge of character / graphic design regarding the combination of constituent elements to generate a graphic was required, and specialized knowledge for registration operation was also required. Therefore, it was difficult for ordinary people without specialized knowledge to change these components.
本発明はこれら従来技術の問題点を解決し,文書作成等
において任意の書体や形状の文字図形を容易に生成使用
可能とすることを目的とする。SUMMARY OF THE INVENTION It is an object of the present invention to solve these problems of the prior art and to easily generate and use a character graphic of any typeface or shape in document creation and the like.
この目的を実現するため本発明では,生成したい書体特
徴を有する文字図形を書体形状見本文字図形として入力
し,該入力された文字図形の構成要素を抽出するととも
に,該構成要素の形状的な特徴を抽出し,予め記憶され
た構成要素の形状を前記抽出した構成要素の形状的特徴
に基づいて変更する手段を設ける。To achieve this object, the present invention inputs a character graphic having a typeface feature to be generated as a typeface shape sample character graphic, extracts the constituent elements of the input character graphic, and determines the geometrical characteristics of the constituent element. And means for changing the shape of the constituent element stored in advance based on the geometrical characteristics of the extracted constituent element.
本発明では該手段を具備しているので,生成したい書体
特徴を有する見本文字図形を入力することにより,該手
段を用いて予め記憶された構成要素の形状を,生成した
い書体特徴を有する構成要素の形状に変更し,形状に変
更された構成要素を用いて生成したい書体の文字図形を
自動的に生成するものである。Since the present invention includes the means, by inputting a sample character graphic having a typeface feature to be generated, the shape of the component stored in advance by using the means is changed to a component having the typeface feature to be generated. The shape is changed, and the character and figure of the typeface desired to be generated are automatically generated using the constituent elements changed in shape.
以下図面に従って本発明の実施例を説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例の構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.
201は構成要素抽出部,202は構成要素特徴抽出部,203は
構成要素形状変更部,204は文字図形生成部,205は構成要
素形状記憶部,206は文字図形構成情報記憶部である。Reference numeral 201 is a constituent element extraction unit, 202 is a constituent element feature extraction unit, 203 is a constituent element shape changing unit, 204 is a character / graphics generation unit, 205 is a constituent shape storage unit, and 206 is a character / graphics configuration information storage unit.
構成要素形状記憶部205には,文字図形を構成するそれ
ぞれの構成要素の形状を予め記憶しておく。該記憶部20
5のデータ構造の例を第2図に示す。301は構成要素毎に
付与された識別子(以後IDと記述する),302は当該構成
要素の骨格を表す中心線(以後骨格線と記述する,第4
図参照)の形状を表す代表点の点数,303は該代表点の位
置を表す座標位置,304は該代表点における構成要素の幅
(第4図参照),305,306はそれぞれ構成要素の端点(骨
格線の始点,終点)の形状を表す点属性値である。点属
性値の意味の一例を表1に示す。The component shape storage unit 205 stores in advance the shapes of the respective components that form the character graphic. The storage unit 20
An example of the data structure of 5 is shown in FIG. 301 is an identifier assigned to each constituent element (hereinafter referred to as ID), 302 is a center line representing the skeleton of the constituent element (hereinafter referred to as skeleton line, fourth
(See the figure), the number of representative points that represent the shape, 303 is the coordinate position that represents the position of the representative point, 304 is the width of the component at the representative point (see FIG. 4), and 305 and 306 are the end points (skeletons) of the respective components. It is a point attribute value that represents the shape of the start point and end point of the line. Table 1 shows an example of the meaning of the point attribute value.
文字図形構成情報記憶部206は,文字図形を構成する要
素を組み合わせて文字図形を生成するために必要な情報
を予め記憶しておく。該記憶部206のデータ構造の例を
第3図に示す。401は文字図形毎に付与されたID,402は
当該文字図形を構成する構成要素数,403は当該文字図形
を構成する構成要素ID,404は該構成要素を生成する際,
座標軸方向に拡大,縮小などの変形をするための係数,4
05は該構成要素を生成・変形した後,張り合わせる座標
位置を示す合成位置である。 The character / graphic configuration information storage unit 206 stores in advance information necessary for generating a character / graphic by combining the elements forming the character / graphic. FIG. 3 shows an example of the data structure of the storage unit 206. 401 is an ID given to each character / graphic, 402 is the number of constituent elements that make up the character / graphic, 403 is a constituent element ID that makes up the character / graphic, and 404 is when generating the constituent
Coefficient for transformation such as enlargement or reduction in the coordinate axis direction, 4
Reference numeral 05 is a composite position that indicates the coordinate position where the constituent elements are pasted after being generated and transformed.
構成要素抽出部201は,入力された見本文字図形パタン
から該文字図形を構成する構成要素パタンをそれぞれの
構成要素について分離抽出するものである。構成要素抽
出部201の動作を第5図を用いて説明する。第5図にお
いて601は入力された見本文字図形パタン,602,603,604
は構成要素抽出部201により分離抽出された各々の構成
要素パタンである(第5図は都合により文字図形パタ
ン,構成要素パタンの内部は塗りつぶしていない)。入
力された見本文字図形パタン601から構成要素パタン60
2,603,604に分離する方法については,公知の方法,例
えば方向コードを用いる方法(電子通信学会論文誌,vo
l.J68-D,No.9,PP1680-1687,1985参照)がある。先ず該
方法等により入力された見本文字図形パタン601からそ
れぞれの構成要素パタン602,603,604に分離する。次に
分離された構成要素パタン602,603,604に関して該構成
要素に対応するIDを決定する。この決定方法には種々あ
るが例えば以下の(1),(2),(3)のような方法
が考えられる。The constituent element extraction unit 201 separates and extracts constituent elements patterns constituting the character graphic from the input sample character / graphic pattern for each constituent element. The operation of the component extraction unit 201 will be described with reference to FIG. In FIG. 5, 601 is the input sample character / graphic pattern, 602, 603, 604.
Are the constituent element patterns separated and extracted by the constituent element extracting unit 201 (in FIG. 5, the character / graphic pattern and the inside of the constituent element pattern are not painted for the sake of convenience). From the input sample character / graphic pattern 601 to the component pattern 60
Regarding the method of separating into 2,603,604, a known method, for example, a method using a direction code (Journal of the Institute of Electronics and Communication Engineers, vo
l.J68-D, No.9, PP1680-1687, 1985)). First, the sample character / graphic pattern 601 input by the method or the like is separated into the respective constituent element patterns 602, 603, 604. Next, regarding the separated component patterns 602, 603 and 604, the ID corresponding to the component is determined. There are various methods for this determination, but the following methods (1), (2), and (3) can be considered.
方法(1)構成要素抽出部201に,予め文字図形認識手
段,構成要素形状生成手段,パタンマッチング手段,見
本文字図形構成情報記憶手段,見本文字図形構成要素形
状記憶手段を具備する。Method (1) The component extraction unit 201 is provided with a character / graphic recognition unit, a component shape generation unit, a pattern matching unit, a sample character / graphic configuration information storage unit, and a sample character / graphic component shape storage unit in advance.
ここで見本文字図形構成情報記憶手段の記憶データ構
造,見本文字図形構成要素形状記憶手段の記憶データ構
造は,それぞれ第3図に示すデータ構造,第2図に示す
データ構造と同じもので構わない。内部で使用する構成
要素IDは206および205で使用している構成要素IDと同一
とする。この場合の構成要素抽出部201の詳細構成図の
例を第6図に示す。第6図の動作を以下に示す。Here, the storage data structure of the sample character / graphics configuration information storage means and the storage data structure of the sample character / graphics component shape storage means may be the same as the data structure shown in FIG. 3 and the data structure shown in FIG. 2, respectively. . The component ID used internally is the same as the component ID used in 206 and 205. An example of a detailed configuration diagram of the component extraction unit 201 in this case is shown in FIG. The operation of FIG. 6 is shown below.
先ず構成要素抽出制御部(以下単に制御部とよぶ)706
は,前述したように入力された見本文字図形パタン601
からそれぞれの構成要素パタン602,603,604に分離して
おく。First, a component extraction control unit (hereinafter simply referred to as a control unit) 706
Is the sample character graphic pattern 601 entered as described above.
From each component pattern 602, 603, 604.
次に制御部706は見本文字図形パタン601のデータを文字
図形認識手段701に渡す。文字図形認識手段701は予め有
している認識辞書を用いて該パタンデータ601を認識
し,対応する文字図形ID(Gjとする)を制御部706に渡
す。制御部706はGjをキーとして見本文字図形構成情報
記憶手段704を検索し,第3図に示すようなデータ構造
からGjに対応する構成要素ID(Ej1,Ej2,……)を読み出
す。次に制御部706は読み出したそれぞれの構成要素ID
に対して,該構成要素ID(Eiとする)をキーとして見本
文字図形構成要素形状記憶手段705を検索し,第2図に
示すようなデータ構造からEiに対応する該構成要素形状
情報(第2図ではEiに対応する302から306までのデー
タ)を読み出し,該情報を構成要素形状生成手段702に
渡す。構成要素形状生成手段702は後述する方法(文字
図形生成部204の動作説明参照)により構成要素Eiの形
状データを生成し,生成した形状データを制御部706に
渡す。このようにして制御部706はGjに対応する構成要
素ID(Ej1,Ej2,……)すべての形状データを生成し,そ
れぞれの構成要素の形状データと予め見本文字図形から
分離しておいた構成要素パタン602,603,604のそれぞれ
のデータをパタンマッチング手段703に渡して,パタン
マッチングを行い,それぞれの構成要素パタン602,603,
604と構成要素ID(Ej1,Ej2,……)との対応付けを行
う。Next, the control unit 706 passes the data of the sample character / graphic pattern 601 to the character / graphic recognition unit 701. The character / figure recognizing means 701 recognizes the pattern data 601 by using a recognition dictionary that it has in advance, and passes the corresponding character / figure ID (denoted as Gj) to the control unit 706. The control unit 706 searches the sample character / graphic configuration information storage means 704 using Gj as a key, and reads out the component ID (Ej1, Ej2, ...) Corresponding to Gj from the data structure as shown in FIG. Next, the control unit 706 reads each component ID
, The sample character graphic component shape storage means 705 is searched using the component ID (denoted as Ei) as a key, and the component shape information (first data) corresponding to Ei is calculated from the data structure shown in FIG. In FIG. 2, the data from 302 to 306 corresponding to Ei) is read and the information is passed to the component shape generation means 702. The constituent element shape generation means 702 generates the shape data of the constituent element Ei by the method described later (see the description of the operation of the character / graphics generation section 204), and passes the generated shape data to the control section 706. In this way, the control unit 706 generates the shape data of all the constituent element IDs (Ej1, Ej2, ...) Corresponding to Gj, and separates the shape data of each constituent element from the sample character graphic in advance. The respective data of the element patterns 602, 603, 604 are passed to the pattern matching means 703 to perform pattern matching, and the respective component element patterns 602, 603,
604 is associated with the component ID (Ej1, Ej2, ...).
尚,見本文字図形構成情報記憶手段704,見本文字図形構
成要素形状記憶手段705はそれぞれ文字図形構成情報記
憶部206,構成要素形状記憶部205そのものでも構わな
い。The sample character / graphics configuration information storage unit 704 and the sample character / graphics component shape storage unit 705 may be the character / graphics configuration information storage unit 206 and the component shape storage unit 205 themselves.
方法(2)構成要素抽出部201にパタンマッチング手段
を具備すると共に,201に入力する見本文字図形パタン60
1を構成する構成要素IDと該構成要素の骨格線形状をそ
れぞれ対応付けて予め与えておく。分離された構成要素
パタン602,603,604をそれぞれ細線化等により骨格線形
状を抽出し,前記パタンマッチング手段を用いて予め与
えられた骨格線形状と602,603,604の細線化等により求
めた骨格線形状とのパタンマッチングを行い,それぞれ
の構成要素パタン602,603,604と構成要素IDとの対応付
けを行う。Method (2): The component extraction unit 201 is provided with a pattern matching means, and the sample character / graphic pattern pattern 60 to be input to the 201 is input.
The constituent element ID constituting 1 and the skeleton line shape of the constituent element are associated and given in advance. The skeleton line shape is extracted by thinning each of the separated constituent element patterns 602, 603, 604, and the pattern matching between the skeleton line shape given in advance by the pattern matching means and the skeleton line shape obtained by thinning the 602, 603, 604, etc. Then, each component pattern 602, 603, 604 is associated with the component ID.
方法(3)構成要素抽出部201に会話手段を具備し,分
離された構成要素パタン602,603,604に対して会話的に
外部からそれぞれの構成要素IDを与える。Method (3) The constituent element extracting unit 201 is provided with a conversation means, and the constituent element patterns 602, 603, and 604 are interactively given respective constituent element IDs from the outside.
構成要素抽出部201は,上記(1),(2),(3)の
方法等により,構成要素パタン602,603,604に対応す構
成要素IDを求め,これらの構成要素パタン毎に,該構成
要素のIDとパタンデータ(602,603,604の内,対応する
パタンデータ)を対応付けて構成要素特徴抽出部202に
渡す。The constituent element extracting unit 201 obtains constituent element IDs corresponding to the constituent element patterns 602, 603, and 604 by the methods (1), (2), and (3) described above, and the constituent element ID for each of these constituent element patterns. And pattern data (corresponding pattern data among 602, 603, and 604) are associated with each other and passed to the component feature extraction unit 202.
構成要素特徴抽出部202は入力された構成要素ID(Eiと
する)と対応するパタン(第4図に示すパタンとする)
データから,該構成要素の形状特徴情報を抽出し,構成
要素ID(Ei)と抽出した該構成要素の形状特徴情報を構
成要素形状変更部203に渡す。構成要素の形状特徴情報
としては種々考えられるが,説明の都合上,ここでは該
形状特徴情報として構成要素形状記憶部205に記憶され
ている構成要素の形状データと同じ場合,即ち骨格線の
形状を表す代表点の点数,該代表点の位置を表す座標位
置,該代表点における構成要素の幅,構成要素の端点
(骨格線の始点,終点)の形状を表す点属性の場合を例
に取り,以下説明する(これ以外の場合は形状特徴情報
の変換が必要になるが,説明は省略する)。これらの特
徴情報の抽出は公知の方法を用いて以下のようにして実
現できる(第4図参照)。The component feature extraction unit 202 has a pattern (corresponding to the pattern shown in FIG. 4) corresponding to the input component ID (denoted as Ei).
The shape feature information of the component is extracted from the data, and the component ID (Ei) and the extracted shape feature information of the component are passed to the component shape changing unit 203. Although various types of shape feature information of the constituent elements are conceivable, for convenience of explanation, here, if the shape data is the same as the shape data of the constituent elements stored in the constituent shape storage unit 205 as the shape characteristic information, that is, the shape of the skeleton line. Taking the example of the case of a point attribute representing the number of representative points representing the, the coordinate position representing the position of the representative point, the width of the component at the representative point, and the shape of the end points (start and end points of the skeleton line) of the component , Which will be described below (in other cases, the shape feature information needs to be converted, but the description is omitted). The extraction of such characteristic information can be realized as follows using a known method (see FIG. 4).
構成要素パタン501から細線化等により骨格線503を求め
る。次に線追跡などにより骨格線の特徴点(端点,曲率
が大きな点など;第4図ではPi1,Pi2,Pi3とする)をも
とめ,これらの特徴点を骨格線の形状を表す代表点と
し,それぞれの座標位置(Xi1,Yi1),(Xi2,Yi2),
(Xi3,Yi3)および代表点数(Ni=3)を求める。この
後,該代表点における構成要素の幅(Wi1,Wi2,Wi3)を
求める。これは代表点での骨格線に対する法線と構成要
素の外形線(以後輪郭線と記述する;502)の交点(それ
ぞれQi1,Ri1,……とする)をもとめ,更に該代表点と該
交点の距離を幅とすることにより求められる。端点形状
としては曲線Qi1Ri1(または曲線Qi3Ri3)の形状パタン
に対応して表1に示す様な点属性をそれぞれ与える。こ
れは予め点属性に対応する端点形状パタンを内部に持つ
パタンマッチング手段を用いることにより容易に実現で
きる。The skeleton line 503 is obtained from the component pattern 501 by thinning or the like. Next, the feature points (end points, points with large curvature, etc .; Pi1, Pi2, Pi3 in Fig. 4) of the skeleton line are obtained by line tracing, and these feature points are used as representative points representing the shape of the skeleton line. Each coordinate position (Xi1, Yi1), (Xi2, Yi2),
(Xi3, Yi3) and the representative score (Ni = 3) are calculated. Then, the widths (Wi1, Wi2, Wi3) of the constituent elements at the representative point are obtained. This is based on the intersections of the normal to the skeleton line at the representative point and the outlines of the components (hereinafter referred to as contour lines; 502) (Qi1, Ri1, ... respectively), and the representative point and the intersection point. It is calculated by taking the distance of as the width. As the end point shape, the point attributes as shown in Table 1 are given corresponding to the shape pattern of the curve Qi1Ri1 (or the curve Qi3Ri3). This can be easily realized by using a pattern matching means which internally has an end point shape pattern corresponding to a point attribute.
尚,代表点の座標位置および該代表点における構成要素
の幅は予め正規化するものとする(例えば,座標位置は
始点が座標原点に,またサイズは骨格線の長さがL0とな
るようにスケーリングするなどして正規化する)。It should be noted that the coordinate position of the representative point and the width of the component at the representative point are normalized in advance (for example, in the coordinate position, the starting point is the coordinate origin, and the size is the length of the skeleton line is L0). Normalize by scaling etc.).
構成要素形状変更部203は構成要素特徴抽出部202から構
成要素ID(Eiとする)と該構成要素の形状特徴情報を入
力されると該構成要素IDと該形状特徴情報を第7図に示
す変更構成要素形状記憶テーブル801に登録する。第7
図において802は登録された構成要素形状情報であり,
データ構造は第2図に示すものと同一のもので構わな
い。The component shape changing unit 203 receives the component ID (Ei) and the shape feature information of the component from the component feature extraction unit 202, and shows the component ID and the shape feature information in FIG. It is registered in the changed component shape storage table 801. 7th
In the figure, 802 is the registered component shape information,
The data structure may be the same as that shown in FIG.
尚,構成要素特徴抽出部202から入力された構成要素ID
と該構成要素の形状特徴情報を変更構成要素形状記憶テ
ーブル801に登録せずに,構成要素形状記憶部205の該当
の構成要素IDの記憶領域を直接書き換える方法もある
が,容易に実現可能であり,説明は省略する。In addition, the component ID input from the component feature extraction unit 202
There is also a method of directly rewriting the storage area of the corresponding component ID of the component shape storage unit 205 without registering the shape feature information of the component with the changed component shape storage table 801, but this can be easily realized. Yes, and the description is omitted.
文字図形生成部204は,代表点間を補間することにより
構成要素形状生成手段と領域を塗りつぶす手段とを有
し,入力された文字図形コード(文字図形ID)に対応し
て文字図形構成情報記憶部206から当該の文字図形構成
情報(構成要素数,構成要素ID,係数,合成位置)を読
み出し,この情報に基づいて必要となる構成要素の形状
を構成要素形状変更部203に介して構成要素形状記憶部2
05から読み出し,構成要素を生成・変形し,生成した構
成要素を張り合わせて文字図形を生成する。具体的な動
作を以下に示す。The character / graphics generation unit 204 has a constituent element shape generation means and an area filling means by interpolating between representative points, and stores the character / graphics configuration information corresponding to the input character / figure code (character / figure ID). The relevant character / graphic configuration information (number of components, component ID, coefficient, composition position) is read from the unit 206, and the shape of the component required based on this information is transmitted to the component shape changing unit 203. Shape memory 2
It reads from 05, generates and transforms the constituent elements, and combines the generated constituent elements to generate character graphics. The specific operation is shown below.
先ず第1図に示すように,入力された文字図形コード
(以降では文字図形IDと記述する)をGjとする。文字図
形生成部204は文字図形IDがGjであることから,Gjをキー
として文字図形構成情報記憶部206から該当の構成情報
として第3図に示すように,構成要素数njと,それぞれ
の構成要素ID(Ejk),係数(Lxjk,Lyjk),合成位置
(xjk,yjk)(k=1,2,……,nj)を読み出す。First, as shown in FIG. 1, an input character / graphic code (hereinafter referred to as a character / graphic ID) is Gj. Since the character / graphics generation unit 204 has a character / graphic ID of Gj, the character / graphic structure information storage unit 206 uses the Gj as a key as the corresponding configuration information, as shown in FIG. The element ID (Ejk), the coefficient (Lxjk, Lyjk), and the combined position (xjk, yjk) (k = 1, 2, ..., Nj) are read.
読み出された各々の構成要素IDに対して構成要素形状変
更部203に構成要素IDをおくり,構成要素形状変更部203
では該構成要素IDをキーとして最初に第7図に示す変更
構成要素形状記憶テーブル801を,次に構成要素形状記
憶部205の順番に検索し,最初に該構成要素IDが見つか
った位置から該構成要素の形状情報を読み出して文字図
形生成部204に渡す。構成要素IDがEiの場合を例にとり
説明する。文字図形生成部204はEiをキーに構成要素形
状変更部203を介して該当の形状情報として,第2図に
示す,代表点の点数Ni,それぞれの代表点Pisの座標位置
(Xis,Yis),該代表点における構成要素の幅Wis(s=
1,2,……,Ni),および構成要素の両端点(始点,終
点)における端点形状を表すそれぞれの点属性を読み出
す。A component element ID is sent to the component element shape changing unit 203 for each read component element ID, and the component element shape changing unit 203
Then, using the component ID as a key, the changed component shape storage table 801 shown in FIG. 7 is searched first in the order of the component shape storage unit 205, and then the component ID is searched from the position where the component ID is first found. The shape information of the constituent elements is read and passed to the character / graphics generation unit 204. The case where the component ID is Ei will be described as an example. The character / graphics generation unit 204 uses the Ei as a key through the component shape change unit 203 as the corresponding shape information and shows the number of representative points Ni and the coordinate position (Xis, Yis) of each representative point Pis shown in FIG. , The width of the component at the representative point Wis (s =
1,2, ..., Ni), and each point attribute that represents the end point shape at both end points (start point, end point) of the component.
文字図形生成部204において,読み出した代表点の座標
位置および点属性から,構成要素形状生成手段を用いて
構成要素の形状を生成する例を第4図を例に取り説明す
る。第4図の例において,代表点がPi1,Pi2,Pi3までの
点数=3,代表点における構成要素の幅がそれぞれWi1,Wi
2,Wi3,構成要素の両端点Pi1,Pi3における点属性は前述
の表1に示す1(丸端点,曲率小)の場合とする。先
ず,Pi1,Pi2,Pi3の間を曲線(例えばスプライン曲線)補
間して骨格線503を求める。次に各代表点Pi1,Pi2,Pi3に
おいて骨格線503の法線方向に距離それぞれWi1,Wi2,Wi3
だけ離れた点(第4図に示すQi1,Ri1,Qi2,Ri2,Qi3,Ri
3)を求める。更に,Qi1,Qi2,Qi3を曲線補間して曲線Qi1
Qi2Qi3を,また同様にして曲線Ri1Ri2Ri3を求める。端
点形状は予め前述の表1に対応する端点形状生成方法を
定義しておくことにより,容易に生成できる。例えば,P
i1側の端点形状はQi1とRi1を弦の両端点とし,曲率r1の
円弧として生成する(Pi3側も同様にして生成する)。
以上により構成要素の輪郭線502の形状が生成できる。An example in which the character / graphics generation unit 204 generates the shape of the component from the read coordinate position and the point attribute of the representative point using the component shape generation means will be described with reference to FIG. In the example of FIG. 4, the number of representative points is Pi1, Pi2, and Pi3 = 3, and the widths of the constituent elements at the representative points are Wi1 and Wi, respectively.
2, Wi3, the point attribute at both end points Pi1 and Pi3 of the component is 1 (round end point, small curvature) shown in Table 1 above. First, a curve (for example, a spline curve) is interpolated between Pi1, Pi2, and Pi3 to obtain a skeleton line 503. Next, at each of the representative points Pi1, Pi2, Pi3, the distance in the normal direction of the skeleton line 503 is Wi1, Wi2, Wi3, respectively.
Points away from each other (Qi1, Ri1, Qi2, Ri2, Qi3, Ri shown in Fig. 4)
3) ask. In addition, Qi1, Qi2, Qi3 are
Qi2Qi3 and the curve Ri1Ri2Ri3 are obtained in the same manner. The end point shape can be easily generated by previously defining the end point shape generation method corresponding to Table 1 above. For example, P
The end point shape on the i1 side is generated as a circular arc with curvature r1 with Qi1 and Ri1 as the end points of the chord (the Pi3 side is also generated in the same way).
As described above, the shape of the contour line 502 of the component can be generated.
文字図形生成部204は生成した輪郭線502の内部領域を領
域塗りつぶし手段により塗りつぶすことにより,構成要
素を生成する。The character / graphics generation unit 204 fills the generated inner area of the contour line 502 with the area filling means to generate the constituent elements.
文字図形生成部204では第4図の例のようにして生成し
た構成要素を以下のように変形する。構成要素IDがEjk
の場合には,座標軸であるX軸方向に係数Lxjk倍,Y軸方
向にLyjk倍して,拡大,縮小などの変形した後,(xjk,
yjk)の位置に取り合わせる。これは(X,Y)を(Lxjk*
X+xjk,Lyjk*Y+yjk)に座標変換することに他なら
ない。尚,ここでは変形操作として,拡大,縮小等につ
いてのみ例示したが,変形のための係数を追加すること
により回転等のアフィン変換による変形を行ってもよ
い。In the character / graphics generation unit 204, the components generated as in the example of FIG. 4 are transformed as follows. Component ID is Ejk
In the case of, the coefficient Lxjk is multiplied in the X-axis direction, which is the coordinate axis, and Lyjk is multiplied in the Y-axis direction, and after transformation such as enlargement or reduction, (xjk,
yjk) position. This translates (X, Y) into (Lxjk *
It is nothing but the coordinate conversion to X + xjk, Lyjk * Y + yjk). Although only the enlargement, reduction, and the like are illustrated as the deformation operation here, the deformation by affine transformation such as rotation may be performed by adding a coefficient for the deformation.
文字図形生成部204では全ての構成要素Ejk(k=1,2,…
…,nj)について該構成要素の形状生成,変形,張り合
わせを繰り返すことによって,入力された文字図形ID
(Gj)に対応する形状を生成することが出来る。In the character / graphics generation unit 204, all the constituent elements Ejk (k = 1, 2, ...
, Nj) by repeating the generation, deformation, and pasting of the shape of the component, and the input character graphic ID
A shape corresponding to (Gj) can be generated.
第1図の実施例を動作させるには, 先ず,生成しようとする文字図形の書体に対応した見本
文字図形パタンを構成要素抽出部201に入力することに
より,構成要素形状変更部203の変更構成要素形状記憶
テーブル801に該書体に対応した構成要素形状情報を構
成要素毎に登録する。第8図は,構成要素形状記憶部に
予め記憶された角ゴシック体構成要素の形状に対し,こ
こで述べたようにして変更構成要素形状記憶テーブル80
1に丸ゴシック体構成要素の形状を登録することにより
構成要素の形状を変更した例を示す。見本文字図形が複
数ある場合にはある分だけ繰り返す。In order to operate the embodiment of FIG. 1, first, by inputting a sample character / graphic pattern corresponding to the typeface of the character / graphics to be generated to the component extracting unit 201, the change configuration of the component shape changing unit 203 is changed. The element shape storage table 801 registers the element shape information corresponding to the typeface for each element. FIG. 8 shows a modified component shape storage table 80 for the shape of a square Gothic component stored in advance in the component shape storage unit as described above.
Figure 1 shows an example of changing the shape of a component by registering the shape of a round Gothic component. If there are multiple sample character graphics, repeat for a certain amount.
この後,文字図形生成部204に生成しようとする文字図
形コード(ID)を入力すれば,前記文字図形生成部204
の動作説明で述べたような方法により,形状を変更した
構成要素を組み合わせた書体の文字図形を生成すること
が出来る。After that, if the character / graphic code (ID) to be generated is input to the character / graphic generation unit 204, the character / graphic generation unit 204
By the method described in the explanation of the operation of 1., it is possible to generate the character graphic of the typeface in which the constituent elements whose shapes are changed are combined.
本発明の実施例では,文字図形の構成要素の形状表現と
して,構成要素の骨格線(中心線)上に始点,中点,中
点,……,終点の代表点をとり,代表点の座標位置情報
と該代表点における構成要素の幅情報,端点形状情報な
どで表しておき,構成要素生成時にこれらの情報から輪
郭線を生成する方式(骨格肉付け方式)を示したが,他
の方法でもかまわない。例えば,構成要素の輪郭形状を
代表点列で表しておき,これを補間することにより構成
要素を生成する方式(輪郭塗りつぶし方式)がある。こ
の場合,構成要素形状特徴情報,構成要素形状変更部お
よび構成要素形状記憶部のデータ構造,文字図形構成情
報記憶部のデータ構造,構成要素の形状生成方法,構成
要素特徴抽出方法等は,文字図形の構成要素の形状表現
方法に依存して変える必要があるが,これまで述べた本
発明の実施例と同様にして実現できることは明らかであ
る。In the embodiment of the present invention, as the shape representation of the constituent elements of the character graphic, the representative points of the starting point, the middle point, the middle point, ..., The end point are set on the skeleton line (center line) of the constituent elements, and the coordinates of the representative points are set. A method (skeleton fleshing method) of generating a contour line from position information, width information of a constituent element at the representative point, end point shape information, and the like, and generating the constituent element information at the time of generating the constituent element is shown. I don't care. For example, there is a method (contour filling method) in which the contour shape of a constituent element is represented by a representative point sequence and the constituent element is generated by interpolating this. In this case, the component shape feature information, the data structure of the component shape changing unit and the component shape storage unit, the data structure of the character / graphic configuration information storage unit, the component shape generation method, the component feature extraction method, etc. Although it needs to be changed depending on the shape representation method of the constituent elements of the figure, it is obvious that the same can be realized in the same manner as the embodiments of the present invention described above.
以上述べたように,本発明によれば,予め記憶されてい
ない書体の文字図形を生成使用する際に,前記書体を構
成する構成要素を新たに登録しなくても,見本文字を入
力するだけで自動的に予め登録された構成要素の形状を
目的の書体を生成する構成要素形状に変更できる。また
文字図形構成要素や構成要素を組み合わせる文字図形構
成情報および情報登録操作に関する専門的な知識がなく
ても容易に目的の書体の文字図形を生成することができ
る。As described above, according to the present invention, when a character graphic of a typeface that is not stored in advance is generated and used, a sample character is simply input without newly registering the constituent elements of the typeface. With, it is possible to automatically change the shape of a component registered in advance to a component shape that produces a target typeface. Further, it is possible to easily generate a character graphic of a target typeface without requiring specialized knowledge about character / graphic constituent elements or character / graphic constituent information combining the constituent elements and information registration operation.
第1図は本発明の一実施例を示す図,第2図は構成要素
形状記憶部205のデータ構造の一例を示す図,第3図は
文字図形構成情報記憶部206のデータ構造の一例を示す
図,第4図は構成要素パタンに関する説明図,第5図は
見本文字図形パタンと分離抽出された構成要素パタンを
説明する図,第6図は本発明における構成要素抽出部20
1の詳細構成の一例を示す図,第7図は本発明における
構成要素形状変更部203の内部構成例を示す図,第8図
は本発明の実施例による構成要素の形状の変更を例示す
る図,第9図は文字図形の構成要素の例を示す図であ
る。 201……構成要素抽出部,202……構成要素特徴抽出部,20
3……構成要素形状変更部,204……文字図形生成部,205
……構成要素形状記憶部,206……文字図形構成情報記憶
部,301……構成要素ID,302……代表点の点数,303……代
表点の座標位置,304……代表点における構成要素の幅,3
05,306……構成要素の端点の形状を表す点属性値,401…
文字図形ID,402……構成要素数,403……構成要素ID,404
……変形の係数,405……構成要素の張り合わせ位置(合
成位置),501……構成要素パタン,502……輪郭線,503…
…骨格線,601……見本文字図形パタン,602,603,604……
分離抽出された構成要素パタン,701……文字図形認識手
段,702……構成要素形状生成手段,703……パタンマッチ
ング手段,704……見本文字図形構成情報記憶手段,705…
…見本文字図形構成要素形状記憶手段,706……構成要素
抽出制御部。FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of the data structure of the component shape storage unit 205, and FIG. 3 is an example of the data structure of the character / graphic configuration information storage unit 206. FIG. 4, FIG. 4 is an explanatory diagram regarding a component element pattern, FIG. 5 is a diagram illustrating a sample character / graphic pattern pattern and a component element pattern separated and extracted, and FIG. 6 is a component element extracting unit 20 in the present invention.
1 is a diagram showing an example of a detailed configuration of FIG. 1, FIG. 7 is a diagram showing an internal configuration example of a component shape changing unit 203 in the present invention, and FIG. 8 is an example of a change in component shape according to an embodiment of the present invention. FIG. 9 and FIG. 9 are diagrams showing examples of constituent elements of a character graphic. 201: component extraction unit, 202: component feature extraction unit, 20
3 …… Component shape change unit, 204 …… Character / Figure generation unit, 205
...... Constituent element shape storage unit, 206 …… Character / graphic configuration information storage unit, 301 …… Component element ID, 302 …… Representative point number, 303 …… Representative point coordinate position, 304 …… Representative element at representative point Width of, 3
05,306 …… Point attribute value that represents the shape of the end point of the component, 401…
Character / figure ID, 402 …… Number of components, 403 …… Component ID, 404
…… Deformation coefficient, 405 …… Composite element bonding position (composite position), 501 …… Component pattern, 502 …… Contour line, 503 ……
… Skeletal line, 601 …… Sample character figure pattern, 602,603,604 ……
Separated / extracted component pattern, 701 ... Character / figure recognition means, 702 ... Component shape generation means, 703 ... Pattern matching means, 704 ... Sample character / figure configuration information storage means, 705 ...
... Sample character / figure component element shape storage means, 706 ... Component element extraction control unit.
Claims (1)
状情報と,文字図形毎に構成要素を組み合わせて該文字
図形を生成するための文字図形構成情報とを,予め記憶
しておき,該構成要素の形状情報および該文字図形構成
情報に基づいて,生成すべき文字図形を構成する構成要
素を読み出して該構成要素を生成するとともに,拡大,
縮小,回転などの変形を行い,生成変形した該構成要素
を組み合わせて文字図形を生成する文字図形生成処理方
式において, 形状見本として入力された文字図形から該文字図形を構
成する構成要素を抽出する第一の手段と,該第一の手段
により抽出された該構成要素の形状的特徴を抽出する第
二の手段と,該第二の手段により抽出された該構成要素
の形状的特徴をもとに予め記憶された構成要素の形状情
報を変更する第三の手段を有し,該第三の手段により形
状が変更された構成要素を用いて文字図形を生成するこ
とを特徴とする文字図形生成処理方式。1. Preliminarily storing shape information of basic constituent elements forming a character graphic and character graphic configuration information for generating the character graphic by combining the constituent elements for each character graphic, On the basis of the shape information of the constituent element and the character / figure constituent information, the constituent element of the character / graphic object to be generated is read to generate the constituent element, and enlarged.
In the character / graphics generation processing method in which the character / graphics are generated by combining the deformed constituents by performing deformations such as reduction and rotation, the constituents of the character / graphics are extracted from the character / graphics input as the shape sample. Based on first means, second means for extracting the geometrical characteristics of the constituent element extracted by the first means, and based on the geometrical characteristics of the constituent element extracted by the second means. A character and figure generation having a third means for changing the shape information of the constituent elements stored in advance in the character shape and generating a character and figure by using the constituent element whose shape is changed by the third means. Processing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63129631A JPH0715625B2 (en) | 1988-05-27 | 1988-05-27 | Character figure generation processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63129631A JPH0715625B2 (en) | 1988-05-27 | 1988-05-27 | Character figure generation processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01298396A JPH01298396A (en) | 1989-12-01 |
| JPH0715625B2 true JPH0715625B2 (en) | 1995-02-22 |
Family
ID=15014272
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63129631A Expired - Fee Related JPH0715625B2 (en) | 1988-05-27 | 1988-05-27 | Character figure generation processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0715625B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2962937B2 (en) * | 1992-07-14 | 1999-10-12 | キヤノン株式会社 | Character processing apparatus and method |
| JPH07110675A (en) * | 1993-06-30 | 1995-04-25 | Iiten Inf Syst Co Ltd | Character constituting method and character generating device |
-
1988
- 1988-05-27 JP JP63129631A patent/JPH0715625B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01298396A (en) | 1989-12-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2718485B2 (en) | Character recognition method | |
| JPH02263277A (en) | Line image vectorization method | |
| JPH0715625B2 (en) | Character figure generation processing method | |
| JPH0944135A (en) | Character pattern generator | |
| JPH0954828A (en) | Similarity calculation device and method, and position detection device using the same | |
| JPH11134509A (en) | Drawing recognition processing method and architectural drawing recognition processing method | |
| JP2000215315A (en) | Graphic classification method, graphic search method, graphic classification search system, and recording medium | |
| JP2527187B2 (en) | Compression method of pattern data by curve approximation | |
| JPH0711771B2 (en) | Font information transfer method | |
| JP3344538B2 (en) | Character generator | |
| JP3183949B2 (en) | Pattern recognition processing method | |
| JPH0749888A (en) | Complex CAD system | |
| JP2001222718A (en) | Image data conversion method, image data conversion system, and computer-readable storage medium | |
| JPH04236678A (en) | Method for shaping area | |
| JPH03228092A (en) | Method for generating character pattern | |
| JP2798402B2 (en) | Method of determining stroke branch point and figure tracking method in figure recognition | |
| JPH01293391A (en) | Character pattern generation processing system | |
| JPS60251482A (en) | Non-linear normalizing system | |
| JPH0721315A (en) | Character feature extraction method and character recognition method | |
| CN121415431A (en) | A method and system for matching wall and column information based on architectural drawings | |
| JPH03132697A (en) | Character generator | |
| JP3061542B2 (en) | Outline figure transformation device | |
| JPH04250077A (en) | printing device | |
| JPH09288716A (en) | Online handwriting recognition method | |
| JPH03100883A (en) | Pattern normalizing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |