JPS63210885A - Graphic generation system for character shape - Google Patents

Graphic generation system for character shape

Info

Publication number
JPS63210885A
JPS63210885A JP62042553A JP4255387A JPS63210885A JP S63210885 A JPS63210885 A JP S63210885A JP 62042553 A JP62042553 A JP 62042553A JP 4255387 A JP4255387 A JP 4255387A JP S63210885 A JPS63210885 A JP S63210885A
Authority
JP
Japan
Prior art keywords
character
stroke
thickness
generating
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62042553A
Other languages
Japanese (ja)
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62042553A priority Critical patent/JPS63210885A/en
Priority to US07/155,062 priority patent/US4897638A/en
Priority to KR1019880001422A priority patent/KR920001697B1/en
Priority to DE3806223A priority patent/DE3806223C2/en
Priority to CN88100794A priority patent/CN1017666B/en
Publication of JPS63210885A publication Critical patent/JPS63210885A/en
Pending legal-status Critical Current

Links

Landscapes

  • 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

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機出力に使用する文字形状の生成方式に係
り、特に、基本となる1つのパターンから種々のサイズ
の高品質文字形状を生成するに好適な文字形状の図形的
生成方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for generating character shapes used for computer output, and in particular, to a method for generating high-quality character shapes of various sizes from one basic pattern. This invention relates to a graphical generation method for character shapes suitable for.

〔従来の技術〕 現在広く用いられているドツト行列文字方式はMXNの
ドツト行列を予め定まった種類の(M。
[Prior Art] The currently widely used dot matrix character system uses a dot matrix of MXN as a predetermined type (M.

N)について出力装置に保持している。しかし、種々の
サイズの文字の出力へのニーズが高まるにつれて、この
方式の次の問題が明らかになった。
N) is held in the output device. However, as the need for outputting characters of various sizes has increased, the following problem with this method has become apparent.

(1)多種の(M、N)について文字パターンを保持す
るには、漢字の字数(J I S規格で6000余字)
を考えると、記憶量が多くなり過ぎること。
(1) In order to maintain character patterns for various types of (M, N), the number of kanji characters (more than 6,000 characters according to the JIS standard) is required.
Considering this, the amount of memory becomes too large.

(2)多種の(M、N)について文字パターンを作成す
るには、大きく人手工数がかかること。
(2) Creating character patterns for various types of (M, N) requires a large amount of manual labor.

そこで、ドツト行列文字の拡大縮小などの変形処理の試
みがなされている。しかし、これらの手法は、低価格出
力装置の実現手段として意義があるが、高品質出力の点
から見ると不十分である。
Therefore, attempts have been made to transform the dot matrix characters, such as enlarging and reducing them. However, although these methods are meaningful as means for realizing a low-cost output device, they are insufficient from the viewpoint of high-quality output.

この問題を解決するための新しい文字パターン保持・生
成方式としていくつかの図形的手法が提案されている0
例えば、菊池他2名による[字体へのパラメトリック基
本エレメント貼付は方式による高品質漢字フォント生成
方式」 (情報処理学会第28口金国大会、 1984
. pp、 1435−1436)によると、漢字のス
トロークの種別とその骨格点座標とパラメータ情報とを
入力として、各ストロークの輪郭形状を生成する第1の
変換と、この各ストロークの輪郭形状を適当な位置に貼
り合せて、生成対象となる文字を構成して得た輪郭文字
形状に対して第2の変換を施し、かつ塗りつぶし処理を
行なうことによって生成文字形状のドツト・パターンを
得る。この第2の変換において文字サイズの拡大縮小を
行なう。
Several graphical methods have been proposed as new character pattern retention and generation methods to solve this problem.
For example, Kikuchi et al., ``A high-quality kanji font generation method using a method for attaching parametric basic elements to fonts'' (Information Processing Society of Japan's 28th Kanji National Convention, 1984)
.. pp. 1435-1436), there is a first transformation that generates the contour shape of each stroke by inputting the type of stroke of a kanji, its skeleton point coordinates, and parameter information, and a first transformation that generates the contour shape of each stroke. A dot pattern of the generated character shape is obtained by applying a second conversion to the outline character shape obtained by pasting the characters in the position and composing the character to be generated, and then performing a filling process. In this second conversion, the character size is enlarged or reduced.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の文字形状生成方式は原理的には任意サイズの文字
形状を発生し得るものである。しかし。
In principle, the above character shape generation method can generate character shapes of any size. but.

現実には、小さいサイズの文字に適用すると品質上の問
題をもつ、サイズが小さいときは、即ち、出力時の文字
形状を表現するためのドツト数が少ないことを意味する
。上記引用の文字生成方式において、縮小計算の中間段
階では実数の範囲で精度の高い計算を行なうが、最終的
にはドツトの格子として文字パターンを表現する必要が
ある。縮小後の文字サイズ(即ちドツト数)がある程度
大きい(多い)場合には、ドツト格子への丸めは実用上
無視できるのであるが、文字サイズ(即ちドツト数)が
あるレベル以下になると、この誤差が明白になる。上記
従来技術はこの問題についての配慮がされていない、第
2図にこの問題を具体的に説明する例を示す、第2図(
a)に、この方式における基準のサイズ(つまり拡大縮
小率=])である384X384ドツトの文字の例を示
し、第2図(b)にこれを縮小した80×80ドツトの
文字の例を示す、384X384ドツトの文字例では高
品質の文字が80X80ドツトの文字例では、ストロー
ク間の空白が無くなって、読取りにくくなったり、正し
い文字と云えないパターンになったりする問題を生じて
いる。
In reality, when applied to small-sized characters, there is a quality problem.When the size is small, it means that there are fewer dots to represent the shape of the character when output. In the character generation method cited above, highly accurate calculations are performed in the range of real numbers in the intermediate stage of reduction calculations, but ultimately it is necessary to express the character pattern as a grid of dots. If the font size (i.e. the number of dots) after reduction is large (many) to a certain extent, the rounding to the dot grid can be practically ignored, but if the font size (i.e. the number of dots) falls below a certain level, this error becomes becomes obvious. The above-mentioned prior art does not take this problem into account. Figure 2 shows an example specifically explaining this problem.
Figure 2(b) shows an example of a character of 384 x 384 dots, which is the standard size for this method (that is, the scaling ratio = ]), and Figure 2 (b) shows an example of a character of 80 x 80 dots, which is a reduced size. , 384 x 384 dots, high quality characters are 80 x 80 dots, there are no spaces between strokes, making them difficult to read, and creating a pattern that cannot be called a correct character.

この問題を解決するために、基準サイズの文字における
各ストロークの太さを予め細めておく方法が考えられる
が、この方法では、逆に、大きい文字を生成したときに
、空白部分が大きいという問題を生じてしまう。
In order to solve this problem, it is possible to thin the thickness of each stroke in characters of standard size in advance, but this method has the problem that, conversely, when large characters are generated, the blank areas are large. will occur.

本発明の目的は、従来技術のこの問題を解決し、大きい
文字も小さい文字も高品質に発生し得る文字形状の図形
的生成方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve this problem of the prior art and to provide a method for graphically generating character shapes that can generate both large and small characters with high quality.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は1文字の骨格パターン情報と文字のストロー
クの太さ情報とを文字種毎に保持する手段と、骨格パタ
ーン情報の拡大縮小手段と、ストロークの太さ情報と骨
格パターン情報の拡大縮小率とにもとづいて生成後のス
トロークの太さを決定する手段と、骨格パターン情報と
該決定されたストロークの生成後の太さとから当該文字
の輪郭形状を生成する手段とを有し、当該文字の拡大縮
小後の骨格パターン情報から輪郭形状を生成するに際し
て、該文字の各々のストロークの太さの拡大縮小率を骨
格パターン情報の拡大縮小率とは異なる値として決定し
得る手段を設けることによって達成される。
The above purpose is to provide a means for storing skeleton pattern information of one character and stroke thickness information of a character for each character type, a means for enlarging/reducing the skeleton pattern information, and a means for expanding/reducing the stroke thickness information and the skeleton pattern information. means for determining the thickness of the generated stroke based on the generated stroke; and means for generating the outline shape of the character from the skeleton pattern information and the determined thickness of the generated stroke; This is achieved by providing a means that can determine the scaling ratio of the thickness of each stroke of the character as a value different from the scaling ratio of the skeleton pattern information when generating an outline shape from the skeleton pattern information after reduction. Ru.

〔作用〕[Effect]

ストロークの太さ情報は基準となる原パターンのストロ
ークの太さを表わす、これを各文字の各ストローク毎に
保持する。生成対象の文字の生成対象のストロークの太
さ情報の値をWOとし、骨格パターン情報の拡大縮小率
をRLとする。拡大時はRL>1、縮小時はRL<1で
ある。生成後の当該ストロークの太さWをWOとストロ
ークの太さの拡大率R8との積で定める。このR8をR
5=f(RL) とする、この関数fには次の性質を持たせる。つまり、 RL = 1  のとき f(RL)=1RL>1  
のとき f(RL)>RLR4、く1 のとき f(R
L)<RLの関係を満すようにする。更に、関数f(R
L)はRLについて弱意の増加関数である。このような
関数fを予め定めておき、生成後の太さを求める手段と
して動作させる。これによって生成後のストロークの太
さを、文字サイズの縮小時には相似縮小の場合よりも細
く、文字サイズの拡大時には相似拡大の場合よりも太く
することができる。つまり、文字サイズの縮小時の線間
空白のつぶれ、文字サイズの拡大時の線間空白の大きす
ぎという従来技術の問題が解消できる。
The stroke thickness information represents the stroke thickness of the original pattern serving as a reference, and is held for each stroke of each character. Let WO be the value of the thickness information of the stroke to be generated of the character to be generated, and let RL be the scaling ratio of the skeleton pattern information. RL>1 when enlarging, and RL<1 when reducing. The thickness W of the generated stroke is determined by the product of WO and the stroke thickness enlargement rate R8. This R8 is R
5=f(RL), and this function f has the following properties. In other words, when RL = 1, f(RL)=1RL>1
When f(RL)>RLR4, when f(R
L) The relationship of <RL should be satisfied. Furthermore, the function f(R
L) is a weakly increasing function for RL. Such a function f is determined in advance and operated as a means for determining the thickness after generation. As a result, the thickness of the generated stroke can be made thinner when the character size is reduced than in the case of similar reduction, and thicker when the character size is enlarged than in the case of similar enlargement. In other words, the problems of the prior art, such as the space between lines being crushed when the character size is reduced, and the space between lines being too large when the character size is expanded, can be solved.

〔実施例〕〔Example〕

以下、本発明の一実施例を第6図によって説明する。本
実施例では、文字形状が横線や払いなど比較的少数の種
類のストロークの組合せによって表現できるという文字
デザイン分野の考えにもとづく、各々の種類のストロー
クを高品質に生成する手段を備え、当該文字を構成する
各ストロークに対してこの手段を適用し、これらを組合
せて配置することによって1つの文字の形状を生成する
An embodiment of the present invention will be described below with reference to FIG. This embodiment is based on the idea in the character design field that a character shape can be expressed by a combination of a relatively small number of stroke types, such as horizontal lines and strokes. This means is applied to each stroke constituting the character, and the shape of one character is generated by combining and arranging these strokes.

第6図は本実施例のハードウェア構成図である。FIG. 6 is a hardware configuration diagram of this embodiment.

第6図で、100は処理装置、101はキーボード、1
02はディスプレイ装置、103はディスク装置、11
1はキーボード101からの入力を制御するキーボード
制御装置、112はディスプレイ装Ff102への出力
を制御するディスプレイ制御装置、113はディスク装
置103からの入力を制御するディスク制御装置、12
0はメイン・メモリ、121はディスプレイ装置に出力
するデータを保持するディスプレイ・メモリである。
In FIG. 6, 100 is a processing device, 101 is a keyboard, 1
02 is a display device, 103 is a disk device, 11
1 is a keyboard control device that controls input from the keyboard 101; 112 is a display control device that controls output to the display device Ff 102; 113 is a disk control device that controls input from the disk device 103;
0 is a main memory, and 121 is a display memory that holds data to be output to a display device.

生成する文字と大きさの指定はキーボード101から行
ない、生成した文字はディスプレイ装置102に表示す
る。メイン・メモリ120には文字生成プログラムと太
さ制御情報を格納する。この文字生成プログラムは処理
袋[100で実行され、キーボード101よりキーボー
ド制御装置111を介して入力される生成する文字と大
きさの指定に従って、文字パターンを生成し、ディスプ
レイ・メモリ121に設定することによってディスプレ
イ装置102に文字パターンを表示する。
The characters to be generated and their sizes are specified from the keyboard 101, and the generated characters are displayed on the display device 102. The main memory 120 stores a character generation program and thickness control information. This character generation program is executed in the processing bag [100, and generates a character pattern according to the designation of the character to be generated and the size inputted from the keyboard 101 via the keyboard control device 111, and sets it in the display memory 121. The character pattern is displayed on the display device 102.

太さ制御情報の詳細は後で示す。Details of the thickness control information will be shown later.

ディスク装置103には骨格パターン情報、パラメタお
よび太さ情報を格納しておく。太さ情報は基準サイズに
おけるストロークの太さであり、パラメタはストローク
の始終端の角度などである。
The disk device 103 stores skeleton pattern information, parameters, and thickness information. The thickness information is the thickness of the stroke in the reference size, and the parameters are the angles of the start and end of the stroke.

骨格パターン情報は文字を構成するストロークの位置と
大きさを表わすものであり、その形式は第4図の通りで
ある。第4図は1文字分の骨格パターン情報を示したも
のである。骨格パターン情報は大きく4つのフィールド
に分かれる。第1フイ−ルドは当該文字を表わす文字コ
ードを、第2フイールドは当該文字の書体を、第3フイ
ールドには第4フイールドの長さを各々格納する。第4
フイールドには当該文字を構成するストロークの情報を
格納する。第4フイールドの先頭には当該文字を構成す
るストロークの数Nを格納する。以下第4フイールドに
はN個のストローク情報を格納する。ストローク情報は
ストロークの種類、当該ストローク情報のデータ量、当
該種別のストロークを構成する骨格点の座標列から成る
The skeleton pattern information represents the position and size of the strokes that make up the character, and its format is as shown in FIG. FIG. 4 shows skeleton pattern information for one character. Skeletal pattern information is broadly divided into four fields. The first field stores the character code representing the character, the second field stores the font of the character, and the third field stores the length of the fourth field. Fourth
The field stores information about the strokes that make up the character. The number N of strokes composing the character is stored at the beginning of the fourth field. Thereafter, N pieces of stroke information are stored in the fourth field. The stroke information consists of the type of stroke, the data amount of the stroke information, and the coordinate string of the skeleton points that constitute the stroke of the type.

骨格パターン情報の構成とその考え方を具体的に示すた
めに、ストローク種別「左払い」を例として説明する。
In order to concretely illustrate the structure of the skeleton pattern information and its concept, the stroke type "left stroke" will be explained as an example.

「左払いjとは上から左下方向に筆を動かすストローク
であり、第2図(a)の「暇」という文字の例では20
1のストロークが「左払い」である、ゴシック体におけ
る[左払い」ストロークの構成を第3図に示す、「左払
い」ストロークは骨格点を3点もつ、第3図の401゜
402及び403が骨格点である0例えば「暇」という
文字に対する骨格パターン情報102の中には、第4図
の第4フイールドのうち、第16ストローク情報のスト
ロークの種別が「左払い」を表わす。更に、骨格点座標
列はfjS2図(n)の正方形枠を基準サイズと考え、
左下頂点を原点とするXY座標を設定したときの当該ス
トロークの骨格点のXYP4標の列である。例えば、第
2図(、)の「左払い」ストローク201の場合、第4
図の第4フイールドの第16ストローク情報の骨格点座
標列は(X1et、 Ytez) +  (Xtez、
 Ysθ2)及び(Xraa、 Ytga)の3点から
成る。これらの座標の値は次の通りである。即ち、第3
図の骨格点401.402及び403を第2図(a)の
正方形枠の中に配置して第21m (a)のストローク
201が得られるような骨格点401,402゜403
(7)XY座標値が各’2 (X 181 r Y 1
1+1) +(X1821 Yt6a) 、  (X1
83. Y1118) テある。即ち、第3図のストロ
ーク「左払い」の3つの骨格点401,402,403
を対象の文字の中の対象のストロークに対して、適切に
位置決めしておくことによって、当該「左払い」ストロ
ークを。
``Habari j'' is a stroke that moves the brush from the top to the bottom left.
Figure 3 shows the structure of the [left sweep] stroke in Gothic font, where the first stroke is "left sweep". The "left sweep" stroke has three skeleton points, 401° 402 and 403 in Figure 3. For example, in the skeleton pattern information 102 for the character ``Kyaku'' (0 where 0 is the skeleton point), the stroke type of the 16th stroke information in the 4th field in FIG. 4 represents ``left hand''. Furthermore, the frame point coordinate string considers the square frame in figure fjS2 (n) to be the standard size,
This is a row of four XYP marks of the skeleton points of the stroke when the XY coordinates with the lower left vertex as the origin are set. For example, in the case of the "left pay" stroke 201 in FIG.
The skeleton point coordinate string of the 16th stroke information in the 4th field in the figure is (X1et, Ytez) + (Xtez,
It consists of three points: Ysθ2) and (Xraa, Ytga). The values of these coordinates are as follows. That is, the third
Skeletal points 401, 402 and 403 are arranged in the square frame of FIG. 2(a) to obtain the 21mth stroke 201 of FIG.
(7) The XY coordinate values are each '2 (X 181 r Y 1
1+1) +(X1821 Yt6a), (X1
83. Y1118) There is. That is, the three skeleton points 401, 402, 403 of the stroke "left sweep" in FIG.
by properly positioning the ``left hand'' stroke in relation to the target stroke in the target character.

当該文字内の適切な位置に配置することができ。You can place it at the appropriate position within the character.

また、当該「左払い」ストロークの形状を適切に定める
ことが可能となる。
Furthermore, it becomes possible to appropriately define the shape of the "left-handed" stroke.

次に第6図メイン・メモリ120に格納する文字生成プ
ログラムの動作の概要を説明する。第1図は文字生成プ
ログラムの動作の概要を示したフローチャートである。
Next, an outline of the operation of the character generation program stored in the main memory 120 in FIG. 6 will be explained. FIG. 1 is a flowchart showing an overview of the operation of the character generation program.

第1図において601は第6図キーボード101から入
力される生成する文字のコードと大きさを読込む処理、
602は第1図ディスク装M103に格納している骨格
パターン情報、パラメタおよび太さ情報を読込む処理で
ある。603は601で読込んだ生成する文字の大きさ
と602で読込んだ骨格パターン情報から生成する大き
さの骨格パターン情報を求める処理である。具体的に説
明すると、第4図第4フイールドの骨格座標列を生成す
る大きさに相当する骨格真座標列に変換する処理である
。すなわち602で読込んだ骨格パターン情報の骨格点
座標をCB。
In FIG. 1, 601 is a process of reading the code and size of the character to be generated inputted from the keyboard 101 in FIG.
602 is a process for reading skeleton pattern information, parameters, and thickness information stored in the disk drive M103 in FIG. 603 is a process of obtaining skeleton pattern information of the size to be generated from the size of the character to be generated read in 601 and the skeleton pattern information read in 602. More specifically, this is a process of converting the skeletal coordinate string in the fourth field of FIG. 4 into a skeletal true coordinate string corresponding to the size to be generated. That is, the skeleton point coordinates of the skeleton pattern information read in 602 are CB.

基準サイズをSa、601で読込んだ生成する文字のサ
イズをSEとしたとき、603で求める骨格パターン情
報の骨格点座標Ceは、 Cp==Ca* S!!÷SO となる、ここでse÷Saの結果を文字パターン拡大縮
小率と呼ぶことにする。604はストロークの太さを決
定する処理である。ストロークの太さは、第5図(a)
に示す文字パターン拡大縮小率と太さ制御情報であるス
トロークの太さの拡大縮小率の対応表を用いて、文字パ
ターン拡大縮小率からストロークの太さの拡大縮小率を
求め、602゛で読込んだ太さ情報に乗することにより
決定する。
When the reference size is Sa and the size of the generated character read in 601 is SE, the skeleton point coordinates Ce of the skeleton pattern information obtained in 603 are as follows: Cp==Ca* S! ! ÷SO Here, the result of se÷Sa will be called the character pattern enlargement/reduction ratio. 604 is a process for determining the stroke thickness. The thickness of the stroke is shown in Figure 5 (a).
Using the correspondence table between the character pattern scaling ratio and the stroke thickness scaling ratio (thickness control information) shown in , find the stroke thickness scaling ratio from the character pattern scaling ratio and read it at 602゛. It is determined by multiplying the solder thickness information.

例えば、太さ情報が30のストロークを含む文字の文字
パターン拡大縮小率が0.5 のとき該ストロークの太
さは以下の通り決まる。第5図(a)の対応表からスト
ロークの太さの拡大縮小率Rsは。
For example, when the character pattern enlargement/reduction ratio of a character whose thickness information includes 30 strokes is 0.5, the thickness of the stroke is determined as follows. From the correspondence table in FIG. 5(a), the scaling ratio Rs of the stroke thickness is determined.

Rs=0.5X0.8=0.4 となる、これを太さ情報に乗じると、生成するストロー
クの太さWsは、 Ws= 30 X O,4= 12 となる。この結果、この例で生成するストロークの太さ
は12ドツトとなる。
Rs=0.5X0.8=0.4, and when this is multiplied by the thickness information, the thickness Ws of the generated stroke becomes Ws=30XO,4=12. As a result, the thickness of the stroke generated in this example is 12 dots.

ここで太さ決定処理604の別の方法を示す。Here, another method for the thickness determination process 604 will be described.

この方法では太さ制御情報として第5図(b)の文字パ
ターン拡大縮小率とストロークの太さの対応表を用いる
。また、このときの太さ情報には太さ種別を格納してお
く、太さ種別とは、1つの文字セット中に表われるスト
ロークの太さは同じサイズでも様々であるが、これを5
段階程度のまとめ各段階に付けた名前である0本実施例
では太さ種別を1から5の数字で表現する。太さ決定処
理604では太さ情報から得た太さ種別と文字パターン
拡大縮小率から生成すべきストロークの太さを、第5図
(b)の対応表を用いて決定する0例えば太さ種別2の
ストロークを含む文字の文字パターン拡大縮小率が0.
5 のとき該ストロークの太さは第5図(b)より12
と決められる。605はストローク発生処理である。ス
トローク発生処理の動作を「左払い」を例にして以下に
説明する。
In this method, the correspondence table between the character pattern enlargement/reduction ratio and the stroke thickness shown in FIG. 5(b) is used as the thickness control information. In addition, the thickness information at this time stores the thickness type.
Summary of stages 0 is the name given to each stage In this embodiment, the thickness type is represented by a number from 1 to 5. In the thickness determination process 604, the thickness of the stroke to be generated from the thickness type obtained from the thickness information and the character pattern scaling rate is determined using the correspondence table shown in FIG. 5(b).For example, the thickness type is 0. The character pattern enlargement/reduction ratio of a character containing a stroke of 2 is 0.
5, the thickness of the stroke is 12 from Fig. 5(b).
It can be decided. 605 is a stroke generation process. The operation of the stroke generation process will be explained below using a "left-handed stroke" as an example.

ストローク発生処理の入力情報は3種ある。これらの入
力情報とストローク発生処理605の発生するストロー
ク輪郭との関係を第3図に示す。第3図において、40
1,402および403は各各骨格点を示す、r刈払い
」というストローク種別とこの骨格点情報とは、603
で求めた当該ストローク情報として与えられる。第3図
に示した角度At、A2は602で読込んだパラメタで
ある。また、第4図に示した距離Wl、W2およびW3
は太さ決定処理604で求めた生成するストロークの太
さである。ストローク発生処理605は、まず、上記入
力情報によって輪郭点411゜412.413,414
,415および416を発生する。ここで輪郭点411
と416は骨格点401と402を結んで得られる直線
を骨格点401を中心にパラメタA1だけ左回転した直
線上で骨格点401を左右にW1/2だけ移動した点で
ある0輪郭点413,414も同様に求める。
There are three types of input information for stroke generation processing. The relationship between these input information and the stroke contour generated by the stroke generation process 605 is shown in FIG. In Figure 3, 40
1, 402 and 403 indicate each skeleton point, the stroke type "r mowing" and this skeleton point information are 603
It is given as the relevant stroke information obtained in . The angles At and A2 shown in FIG. 3 are the parameters read in 602. Moreover, the distances Wl, W2 and W3 shown in FIG.
is the thickness of the generated stroke determined in the thickness determination process 604. Stroke generation processing 605 first generates contour points 411°, 412, 413, 414 based on the above input information.
, 415 and 416. Here, contour point 411
416 is a 0 contour point 413, which is a point obtained by moving the skeleton point 401 left and right by W1/2 on a straight line obtained by connecting the skeleton points 401 and 402 and rotating the straight line by the parameter A1 to the left around the skeleton point 401, 414 is obtained in the same manner.

輪郭点412と415は骨格点401,402及び40
3のなす角の二等分線上で骨格点402を左右にW2/
2だけ移動した点とする1次に、ストローク発生処理6
05は411,412及び413をスプライン曲線で、
413と414を直線で、414,415及び416を
スプライン曲線で、416と411とを直線で結ぶこと
によって当該ストロークの輪郭を発生する。この輪郭曲
線は1つの閉図形を表わしている1次に公知の閉領域塗
りつぶし方法によってこの輪郭曲線の内部を塗りつぶし
、当該ス1〜ロークの塗りつぶしパターンを発生する。
Contour points 412 and 415 are skeleton points 401, 402 and 40
Move the skeleton point 402 to the left and right on the bisector of the angle formed by 3.
First-order stroke generation processing 6 with a point moved by 2
05 is 411, 412 and 413 with spline curves,
The contour of the stroke is generated by connecting 413 and 414 with a straight line, 414, 415, and 416 with a spline curve, and 416 and 411 with a straight line. This contour curve represents one closed figure.The inside of this contour curve is first filled by a known closed area filling method to generate a fill pattern for strokes 1 to 1.

1つのストロークの塗りつぶしパターンを発生する度に
ストローク合成処理606に制御が移る。ストローク合
成処理606は生成結果の文字パターンを置くべき領域
、すなわち第6図ディスプレイ・メモリ121に当該ス
トロークの塗りつぶしパターンを重ね合わせるにのこと
は、文字パターンの空白部分を値0で表わし、文字パタ
ーンの黒ドツトを値1で表わす2値表現を採用したとき
、ディスプレイ・メモリ121内の文字パターン領域を
構成する各点の現在値と、対応するストローク発生処理
605で求めた塗りつぶしパターンの値との論理和を求
めて、ディスプレイ・メモリ121内の文字パターン領
域の元の点の値とすることによって実現できる。この場
合、ディスプレイ・メモリ121内の文字パターン領域
の初期値はOとしておく、607は1文字を構成する全
てのストロークを発生したか否かのチェックである。全
てのストロークを発生していないときはストローク発生
処理605に制御を移し、まだ発生していないストロー
クを発生する。
Each time a fill pattern of one stroke is generated, control is transferred to stroke synthesis processing 606. The stroke synthesis process 606 superimposes the fill pattern of the stroke in the area where the generated character pattern is to be placed, that is, the display memory 121 in FIG. When a binary representation is adopted in which black dots are represented by a value of 1, the current value of each point constituting the character pattern area in the display memory 121 and the value of the corresponding fill pattern obtained in the stroke generation process 605 are calculated. This can be achieved by calculating the logical sum and using it as the value of the original point in the character pattern area in the display memory 121. In this case, the initial value of the character pattern area in the display memory 121 is set to O. 607 is a check to see if all the strokes constituting one character have been generated. When all strokes have not been generated, control is transferred to stroke generation processing 605, and the strokes that have not yet been generated are generated.

全てのストロークを発生しているときは608に制御を
移す、608は文字表示処理であり、第1図ディスプレ
イ・メモリ121内の文字パターン−領域を第6図ディ
スプレイ制御装置112を介して、ディスプレイ装置1
02に表示する。
When all the strokes are generated, control is transferred to 608. 608 is a character display process, in which the character pattern area in the display memory 121 in FIG. 1 is displayed on the display via the display control device 112 in FIG. Device 1
Display on 02.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、文字のサイズとストロークの太さを独
立に扱うことができるので1つの文字パターンから拡大
縮小によって種々サイズの文字を発生するときの品質向
上の効果がある。第2図(b)(Q)に文字パターンの
出力例を示す。第2図の(b)(c)の文字パターンは
第2図(a)の384ドツト角の文字パターンを80ド
ツト、角に縮小したものである。(b)は文字サイズと
ストロークの太さを一様に扱って生成した文字例であり
、(C)は本方式を採用して生成した文字列である。(
b)ではストローク間にあるべき空白が無くなり正しい
文字にならない、(C)はストローク間の空白は正しく
残る。
According to the present invention, since character size and stroke thickness can be handled independently, quality can be improved when characters of various sizes are generated from one character pattern by enlarging/reducing it. FIGS. 2(b) and 2(Q) show examples of character pattern output. The character patterns shown in FIGS. 2(b) and 2(c) are obtained by reducing the 384-dot square character pattern of FIG. 2(a) to 80 dots per square. (b) is an example of a character generated by treating the character size and stroke thickness uniformly, and (C) is a character string generated using this method. (
In b), there is no space between the strokes and the character is not correct; in (C), the space between the strokes remains correct.

以上が本方式の直接の効果がある。これにより1つの文
字パターンから種々のサイズの文字が高品質に生成でき
る結果、文字パターンを置くメモリ量の削減9文字パタ
ーンを作成する工数の削減°が可能となる。その効果の
程度は、現行のドツト行列文字方式で種々のサイズの文
字を実現する場合を比較して、メモリ量の削減について
1/10から1/100、文字パターン作成工数の削減
について約1/】0と予測される。
The above are the direct effects of this method. As a result, characters of various sizes can be generated with high quality from one character pattern, and as a result, the amount of memory for storing character patterns can be reduced, and the number of man-hours for creating nine-character patterns can be reduced. The degree of effectiveness is 1/10 to 1/100 in terms of memory reduction, and approximately 1/1/1 in reduction in the number of man-hours for creating character patterns, when comparing the current dot matrix character method to create characters of various sizes. ] is predicted to be 0.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例の処理装置で実行されるプログ
ラムのフローチャート、第2図は基準サイズの原パター
ンと本方式を採用しないで縮小した文字パターンと本方
式で縮小した文字パターンの例、第3図はストローク発
生処理の説明図、第4図は骨格パターン情報の形式を示
す図、第5図は太さ制御情報を示す図、第6図は本方式
の実施例のハードウェア構成図である。 100・・・処理装置、101・・・キーボード、10
2・・・ディスプレイ装置、103・・・ディスク装置
、111・・・キーボード制御装置、112・・・ディ
スプレイ制御装置、113・・・ディスク制御装置、1
20・・・メイン・メモリ、121・・・ディスプレイ
・メモリ。 代理人 弁理士 小川勝馬1′)、 ゝ、 鴇 l[!1 箒 2 区 (α) (b)             (0)開     
 賎 ¥3E −−−骨捧 第 4 区 第 5 図 (α) ¥、6  凹
FIG. 1 is a flowchart of a program executed by the processing device according to the embodiment of the present invention, and FIG. 2 is an example of an original pattern of a standard size, a character pattern reduced without using this method, and a character pattern reduced using this method. , Fig. 3 is an explanatory diagram of stroke generation processing, Fig. 4 is a diagram showing the format of skeleton pattern information, Fig. 5 is a diagram showing thickness control information, and Fig. 6 is a hardware configuration of an embodiment of this method. It is a diagram. 100... Processing device, 101... Keyboard, 10
2...Display device, 103...Disk device, 111...Keyboard control device, 112...Display control device, 113...Disk control device, 1
20... Main memory, 121... Display memory. Agent: Patent Attorney Katsuma Ogawa 1'), ゝ, Toki l[! 1 Broom 2 Ward (α) (b) (0) Open
¥3E --- Bone offering 4th section 5th figure (α) ¥, 6 concave

Claims (1)

【特許請求の範囲】 1、文字の骨格パターン情報と文字のストロークの太さ
情報とを文字種毎に保持する手段と、骨格パターン情報
から拡大あるいは縮小された骨格パターン情報を生成す
る手段と、ストローク太さ情報と骨格パターン情報の拡
大縮小率とにもとづいて生成後の太さを決定する手段と
、文字の骨格パターン情報と該決定されたストロークの
太さとから当該文字の輪郭形状を生成する手段とを有し
、文字の骨格パターン情報から該文字の輪郭形状を生成
するに際して、該文字の各々のストロークの太さの拡大
縮小率を骨格パターン情報の拡大縮小率と異なる値とし
て決定し得る手段を具備したことを特徴とする文字形状
の図形的生成方式。 2、大きい文字を生成する際には、骨格パターン情報の
拡大率より各ストロークの太さの拡大率を大きくするこ
とによって線の太さをさらに太め、小さい文字を生成す
る際には骨格パターン情報の縮小率より各ストロークの
太さの縮小率を小さくすることによって線の太さをさら
に細めることを特徴とする特許請求の範囲第1項記載の
文字形状の図形的生成方式。 3、太さ制御情報を文字のサイズの拡大縮小率の範囲に
対応して保持する手段を具備し、文字輪郭形状における
ストロークの生成に際し、当該文字の当該ストロークの
太さ情報を被乗数とし、当該拡大縮小率に対応する太さ
制御情報を乗数とする乗算によって生成時の当該ストロ
ークの太さを決定することを特徴とする特許請求の範囲
第1項記載の文字形状の図形的生成方式。 4、文字を構成する各ストロークの太さも文字のサイズ
の拡大縮小率の範囲に対応して保持する手段を具備し、
文字輪郭形状におけるストロークの生成に際し、当該文
字の当該ストロークの太さを当該拡大縮小率に対応する
ストロークの太さとすることを特徴とする特許請求の範
囲第1項記載の文字形状の図形的生成方式。 5、文字のストロークの太さを識別する複数個の種別を
設け、文字を構成する各ストロークに対してこの種別を
保持する手段を具備し、さらに、文字のサイズの拡大縮
小率の範囲に対応して上記のストロークの太さを識別す
る種別毎の太さを保持する手段を具備し、文字輪郭形状
におけるストロークの生成に際し、当該文字の当該スト
ロークの太さを、当該ストロークの太さを識別する種別
と、当該文字の拡大縮小率の値とから求めることを特徴
とする特許請求の範囲第1項記載の文字形状の図形的生
成方式。
[Claims] 1. Means for holding character skeleton pattern information and character stroke thickness information for each character type; means for generating skeleton pattern information enlarged or reduced from the skeleton pattern information; A means for determining the thickness after generation based on the thickness information and a scaling ratio of the skeleton pattern information, and a means for generating an outline shape of the character from the skeleton pattern information of the character and the determined stroke thickness. means for determining the scaling ratio of the thickness of each stroke of the character as a value different from the scaling ratio of the skeletal pattern information when generating the outline shape of the character from the skeletal pattern information of the character. A method for graphically generating character shapes, characterized by comprising: 2. When generating large characters, the thickness of each stroke is made larger by increasing the expansion rate of the thickness of each stroke than the expansion rate of the skeleton pattern information, and when generating small characters, the thickness of the line is further increased. 2. The method for graphically generating a character shape according to claim 1, wherein the thickness of the line is further reduced by making the reduction rate of the thickness of each stroke smaller than the reduction rate of the thickness of each stroke. 3. It is equipped with a means for holding thickness control information corresponding to the range of enlargement/reduction ratio of the character size, and when generating a stroke in a character outline shape, the thickness information of the stroke of the character is used as a multiplicand, and the 2. The graphical character shape generation method according to claim 1, wherein the thickness of the stroke at the time of generation is determined by multiplication using thickness control information corresponding to a scaling factor as a multiplier. 4. A means for maintaining the thickness of each stroke constituting a character corresponding to the range of scaling ratio of the character size,
Graphical generation of a character shape according to claim 1, characterized in that when generating a stroke in a character outline shape, the thickness of the stroke of the character is set to the thickness of the stroke corresponding to the scaling ratio. method. 5. A plurality of types are provided to identify the thickness of the stroke of a character, a means is provided for retaining this type for each stroke constituting the character, and furthermore, it corresponds to a range of enlargement/reduction ratios of the size of the character. and a means for holding the thickness of each type for identifying the thickness of the stroke, and identifying the thickness of the stroke of the character when generating the stroke in the character outline shape. 2. A method for graphically generating a character shape according to claim 1, wherein the method is determined based on a type of character to be used and a value of a scaling ratio of the character.
JP62042553A 1987-02-27 1987-02-27 Graphic generation system for character shape Pending JPS63210885A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62042553A JPS63210885A (en) 1987-02-27 1987-02-27 Graphic generation system for character shape
US07/155,062 US4897638A (en) 1987-02-27 1988-02-11 Method for generating character patterns with controlled size and thickness
KR1019880001422A KR920001697B1 (en) 1987-02-27 1988-02-13 Method for generating character patterns
DE3806223A DE3806223C2 (en) 1987-02-27 1988-02-26 Process for creating character patterns
CN88100794A CN1017666B (en) 1987-02-27 1988-02-27 Method for producing characters and graphs with controlled size and thick-thin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62042553A JPS63210885A (en) 1987-02-27 1987-02-27 Graphic generation system for character shape

Publications (1)

Publication Number Publication Date
JPS63210885A true JPS63210885A (en) 1988-09-01

Family

ID=12639240

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62042553A Pending JPS63210885A (en) 1987-02-27 1987-02-27 Graphic generation system for character shape

Country Status (1)

Country Link
JP (1) JPS63210885A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02158363A (en) * 1988-12-13 1990-06-18 Nec Off Syst Ltd Character generator
JPH02269389A (en) * 1989-02-10 1990-11-02 Fujitsu Ltd Automatic face converting system
JPH0443396A (en) * 1990-06-11 1992-02-13 Canon Inc Character pattern generating device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02158363A (en) * 1988-12-13 1990-06-18 Nec Off Syst Ltd Character generator
JPH02269389A (en) * 1989-02-10 1990-11-02 Fujitsu Ltd Automatic face converting system
JPH0443396A (en) * 1990-06-11 1992-02-13 Canon Inc Character pattern generating device

Similar Documents

Publication Publication Date Title
JP3021547B2 (en) Character pattern generation method
US4897638A (en) Method for generating character patterns with controlled size and thickness
JP4101275B2 (en) Depth tracking method in scan line based raster image processor
JP3019202B2 (en) Font type conversion method using center axis conversion
KR100297238B1 (en) Stroke-based font generation for low and high-resolution space
JPH0572627B2 (en)
JPS63271290A (en) Character pattern generation system
JPH05127654A (en) Character and figure deformation processing device
US5027304A (en) Character multifont compression and restoration device
JPS63210885A (en) Graphic generation system for character shape
JP3330277B2 (en) Character pattern generator
JPH03119387A (en) Method and apparatus for forming contour of digital type surface
JPS63235986A (en) Character output device
US5563627A (en) High-quality character generator
JP3224138B2 (en) Kanji font generation method
JPS62159279A (en) Character generator
JP3448606B2 (en) Method and apparatus for generating stroke-based characters in full resolution space
JP3191409B2 (en) Font data generator
JP2610825B2 (en) Graphic processing unit
JPS62157089A (en) Generation of vector character
JP2782904B2 (en) Polygon fill method
JP2846165B2 (en) Character learning device
JPH1153579A (en) Shape conversion method, storage medium recorded with its conversion procedure and shape conversion device
JPH0236955B2 (en)
WO2022225396A1 (en) Apparatus and method to generate an animated graphical object