JP2985275B2 - Character generation method of outline font - Google Patents

Character generation method of outline font

Info

Publication number
JP2985275B2
JP2985275B2 JP2288010A JP28801090A JP2985275B2 JP 2985275 B2 JP2985275 B2 JP 2985275B2 JP 2288010 A JP2288010 A JP 2288010A JP 28801090 A JP28801090 A JP 28801090A JP 2985275 B2 JP2985275 B2 JP 2985275B2
Authority
JP
Japan
Prior art keywords
character
data
representative point
outline
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2288010A
Other languages
Japanese (ja)
Other versions
JPH04162092A (en
Inventor
宣秀 林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2288010A priority Critical patent/JP2985275B2/en
Publication of JPH04162092A publication Critical patent/JPH04162092A/en
Application granted granted Critical
Publication of JP2985275B2 publication Critical patent/JP2985275B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータから紙の上やディスプレイに
文字を出力する際に必要なディジタルの文字発生方式に
関し、特に少量のデータで自由な大きさの文字を出力す
ることのできるアウトラインフォントと呼ばれる文字の
発生方式に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital character generation method necessary for outputting characters from a computer onto paper or a display, and particularly to a free size with a small amount of data. The present invention relates to a method of generating a character called an outline font capable of outputting a character.

〔従来の技術〕[Conventional technology]

ディジタルの文字発生方式としては、その文字を構成
する画素の白黒に対応する1、0ビット列をデータとし
て持ち、これをそのまま出力するいわゆるビットマップ
フォントが最も多く用いられているが、色々な大きさの
文字を出力するためにはその大きさ毎に別々のデータが
必要になりメモリの負担が大きい。このためビットマッ
プフォントに替わって、文字の輪郭線上の代表点の座標
をデータとして持ち、このデータに出力したい文字の大
きさから定まる係数を掛けた値に対して補間計算を行な
って輪郭を求めた後、囲まれた領域を塗潰すことによっ
てビットマップフォントに相当するデータを得るアウト
ラインフォントとよばれる方式が用いられることがあ
る。
As a digital character generation method, a so-called bitmap font, which has 1,0 bit strings corresponding to black and white of pixels constituting the character as data and outputs the data as it is, is most often used. In order to output this character, separate data is required for each size, and the load on the memory is large. Therefore, instead of the bitmap font, the coordinates of the representative point on the outline of the character are used as data, and the data is multiplied by a coefficient determined by the size of the character to be output. After that, a method called an outline font that obtains data corresponding to a bitmap font by filling an enclosed area is sometimes used.

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

アウトラインフォントによれば出力したい文字の大き
さ毎にデータを持つ必要はないけれども、輪郭上の代表
点間の相対的な位置関係は固定されているので、文字を
構成する線の太さを変えて出力することはできず、太さ
の異なる文字はそのようにデザインされたデータを別に
用意してこのデータを用いて出力する必要がある。その
ため、すべての文字について異なる太さの文字をデサイ
ンすることは大きな負担となるばかりでなく、データ量
もおおくなることからメモリに対しても負担が大きい。
According to the outline font, it is not necessary to have data for each size of the character to be output, but since the relative positional relationship between the representative points on the outline is fixed, change the thickness of the lines constituting the character. It is necessary to prepare separately designed data for characters having different thicknesses and output using this data. Therefore, it is not only burdensome to assign characters of different thicknesses to all characters, but also to the memory since the amount of data is large.

そこで本発明はこのような問題を解決するもので、一
種類の文字データから線の太さの異なる文字を発生する
ことを目的とする。
Therefore, the present invention is to solve such a problem, and an object of the present invention is to generate characters having different line thicknesses from one type of character data.

〔課題を解決するための手段〕[Means for solving the problem]

本発明のアウトラインフォントの文字発生方式は、文
字輪郭上の代表点の座標を記憶し、前記代表点の座標デ
ータを基に補間計算を行い文字輪郭を求め、必要に応じ
て前記文字輪郭によって囲まれた領域を塗り潰して文字
を発生するアウトラインフォントの文字発生方式におい
て、前記代表点の座標値データと対に前記代表点の移動
可能方向と移動比率を記憶し、指定された文字を構成す
る線幅情報に前記移動比率を加味した分、前記代表点を
前記移動可能方向に移動した後に位置する前記代表点の
座標値データを基に文字輪郭を補間計算により求めるこ
とを特徴とする。
In the outline font character generation method of the present invention, the coordinates of a representative point on a character outline are stored, a character outline is obtained by performing an interpolation calculation based on the coordinate data of the representative point, and the character outline is surrounded by the character outline as necessary. In a character generation method of an outline font in which a character is generated by filling a designated area, a movable direction and a movement ratio of the representative point are stored in pairs with the coordinate value data of the representative point, and a line constituting the designated character is stored. The character contour is obtained by interpolation calculation based on the coordinate value data of the representative point located after the representative point is moved in the movable direction by an amount corresponding to the movement ratio in addition to the width information.

〔実 施 例〕〔Example〕

以下に本発明の詳細を図面に基づいて説明する。第1
図は本発明の第一の実施例における移動可能方向データ
を表す。矢印の先に数字がかかれているのは、この数字
がどの方向への移動を表すかを模式的に表している。す
なわち実際に装置内に記憶しておくべきものは、この数
字のみである。
Hereinafter, details of the present invention will be described with reference to the drawings. First
The figure shows movable direction data in the first embodiment of the present invention. The number in front of the arrow schematically indicates in which direction the number indicates movement. That is, what is actually stored in the apparatus is only these numbers.

第2図は本発明におけるデータの並びの例であって、
アウトラインフォントを発生させるために必要な座標デ
ータに、第1図のように定義された移動可能方向データ
を付加したものである。1行の4個のデータで1つの点
を表現していて、最初のアルフォベットの記号は点と点
の間を補間するときに、直線で結ぶのか曲線で結ぶのか
を区別するためのフラグである。例えばSならば文字の
最初の点を、Lならば直線、Cならば曲線、Tならば直
線と曲線との境目を表す。次に並んだ2つの数字はそれ
ぞれx座標とy座標の値である。最後の数字が第1図で
意味を定義した移動可能方向データである。このような
4種類のデータからなる組が文字の輪郭上の代表点の数
だけ記憶されていて、これらの座標から点と点との間を
補間計算して文字を発生するわけであるが、補間計算を
する前に移動可能方向データを考慮しながらある一定の
数値をx座標やy座標に加えたり引いたりする。文字の
縦線の太さを増やしたいというときには、代表点の位置
を左右に動かすことで実現できるので、移動可能方向デ
ータとして1と2と8のデータが付加されている座票値
についてはx座標を増やし、4と5と6のデータが付加
されている座標値についてはx座標を減らした後に補間
計算を行なう。
FIG. 2 shows an example of a data arrangement according to the present invention.
This is obtained by adding the movable direction data defined as shown in FIG. 1 to the coordinate data required to generate an outline font. One point is represented by four data in one line, and the first symbol of Alfovet is a flag for distinguishing whether to connect with a straight line or a curve when interpolating between points. is there. For example, S represents the first point of a character, L represents a straight line, C represents a curve, and T represents a boundary between a straight line and a curve. The next two numbers are the values of the x coordinate and the y coordinate, respectively. The last number is the movable direction data whose meaning is defined in FIG. A set of such four types of data is stored as many as the number of representative points on the outline of a character, and a character is generated by interpolating between points from these coordinates. Before performing the interpolation calculation, a certain numerical value is added to or subtracted from the x-coordinate and the y-coordinate while considering the movable direction data. When it is desired to increase the thickness of the vertical line of the character, it can be realized by moving the position of the representative point to the left or right. Therefore, the slip value to which the data of 1, 2, and 8 is added as the movable direction data is x For the coordinate values to which the coordinates are increased and to which the data of 4, 5 and 6 are added, the x-coordinate is reduced and then the interpolation calculation is performed.

第3図はこのようx方向の移動によって文字の輪郭が
変化する様子を表した図である。点線で表しているのが
代表点の元の位置での補間によって発生する輪郭があ
り、実線が本発明の手段を用いて代表点の位置を移動し
た後に補間して発生した輪郭である。第2図の15と16の
代表点が第3図の三角で表した15aと16aの点であって、
これを移動した点がそれぞれ15bと16bである。この場合
は第2図の11、12、13、14のそれぞれの代表点は、移動
可能方向データが3と7であるのでx座標の移動には影
響されず、第3図11a、12a、13a、14aで表すように動い
ていない。
FIG. 3 is a diagram showing a state in which the outline of the character is changed by the movement in the x direction. A dotted line indicates a contour generated by interpolation at the original position of the representative point, and a solid line indicates a contour generated by interpolating after moving the position of the representative point using the means of the present invention. The representative points 15 and 16 in FIG. 2 are the points 15a and 16a represented by triangles in FIG.
The points which moved this are 15b and 16b, respectively. In this case, the respective representative points 11, 12, 13, and 14 in FIG. 2 are not affected by the movement of the x coordinate because the movable direction data are 3 and 7, and are not affected by the movement of the x coordinate. , Not moving as represented by 14a.

次に文字の横線を太くしたいときを説明すると、第4
図に示したように移動可能方向データが2と3と4の代
表点はy座標を増やし、移動可能方向データが6と7と
8の代表点はy座標を減らすことで点の位置を移動す
る。なおこの実施例では座標の原点を文字の左下に設定
しており、右方向がxの正の方向で上方向がyの正の方
向である。この結果、第4図の11a、12aの点は下に移動
しそれぞれ11b、12bとなり、13a、14aの点は上に移動し
それぞれ13b、14bとなっている。このとき15aと16aの点
は移動可能データが1であるのでy方向の移動の影響は
受けない。
Next, the case where the horizontal line of the character is to be thickened will be described.
As shown in the figure, the representative point whose movable direction data is 2, 3, and 4 increases the y coordinate, and the representative point whose movable direction data is 6, 7, and 8 decreases the y coordinate, thereby moving the position of the point. I do. In this embodiment, the origin of the coordinates is set at the lower left of the character, the right direction is the positive direction of x, and the upward direction is the positive direction of y. As a result, points 11a and 12a in FIG. 4 move downward to become 11b and 12b, respectively, and points 13a and 14a move upward to become 13b and 14b, respectively. At this time, the points 15a and 16a are not affected by the movement in the y direction since the movable data is 1.

第5図は、本発明の第二の実施例におけるデータの並
びの例であって、第2図に示した第一の実施例における
データに加えて、各代表点の移動量をあらかじめ決めら
れた量に対する比率で与えたものである。すなわち17、
18、19、20の代表点は移動の際に、あらかじめ定められ
た移動量の80%だけ動かし、21は60%、22は70%、そし
て23はあらかじめ定められた移動量だけ動かすことを示
している。これによて代表点ごとに移動方向だけでなく
移動量も設定するので、文字の中で同じ縦線、横線でも
異なる太さの文字を発生できることになる。
FIG. 5 shows an example of the arrangement of data in the second embodiment of the present invention. In addition to the data in the first embodiment shown in FIG. 2, the amount of movement of each representative point can be determined in advance. It is given as a ratio to the amount Ie 17,
The points 18, 19 and 20 indicate that when moving, they move by 80% of the predetermined amount of movement, 21 means 60%, 22 means 70%, and 23 means that they move by the predetermined amount. ing. Thus, not only the moving direction but also the moving amount is set for each representative point, so that characters having different thicknesses can be generated even in the same vertical line and horizontal line in the character.

〔発明の効果〕〔The invention's effect〕

以上述べたように本発明によれば、太さの異なる文字
を発生するために別のデータを用意することなく、また
代表点の移動計算も単純化できるので、少ないデータ量
でバラエティに富んだ文字を高速に発生できるという効
果を奏するものである。
As described above, according to the present invention, since there is no need to prepare separate data for generating characters having different thicknesses, and it is possible to simplify the calculation for moving the representative point, a variety of data can be obtained with a small amount of data. This has the effect that characters can be generated at high speed.

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

第1図は本発明で用いる移動可能方向データの定義を表
す図。 第2図は本発明の第一の実施例における文字発生用デー
タの並びの一部分を抜き出した図。 第3図は本発明の第一の実施例における代表点の横移動
の結果発生される輪郭を表す図。 第4図は本発明の第一の実施例における代表点の縦移動
の結果発生される輪郭を表す図。 第5図は本発明の第二の実施例における文字発生用デー
タの並びの一部分を抜き出した図。
FIG. 1 is a diagram showing definitions of movable direction data used in the present invention. FIG. 2 is a diagram showing a part of the arrangement of character generation data in the first embodiment of the present invention. FIG. 3 is a diagram showing a contour generated as a result of the lateral movement of the representative point in the first embodiment of the present invention. FIG. 4 is a diagram showing an outline generated as a result of vertical movement of a representative point in the first embodiment of the present invention. FIG. 5 is a diagram in which a part of the arrangement of character generating data according to the second embodiment of the present invention is extracted.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】文字輪郭上の代表点の座標を記憶し、前記
代表点の座標データを基に補間計算を行い文字輪郭を求
め、必要に応じて前記文字輪郭によって囲まれた領域を
塗り潰して文字を発生するアウトラインフォントの文字
発生方式において、 前記代表点の座標値データと対に前記代表点の移動可能
方向と移動比率を記憶し、 指定された文字を構成する線幅情報に前記移動比率を加
味した分、前記代表点を前記移動可能方向に移動した後
に位置する前記代表点の座標値データを基に文字輪郭を
補間計算により求めることを特徴とするアウトラインフ
ォントの文字発生方式。
1. The coordinates of a representative point on a character outline are stored, a character outline is obtained by performing an interpolation calculation based on the coordinate data of the representative point, and an area surrounded by the character outline is filled as necessary. In a character generation method of an outline font for generating a character, a movable direction and a moving ratio of the representative point are stored in combination with coordinate value data of the representative point, and the moving ratio is stored in line width information constituting a designated character. Wherein the character outline is determined by interpolation calculation based on the coordinate value data of the representative point located after the representative point is moved in the movable direction in consideration of the following.
JP2288010A 1990-10-25 1990-10-25 Character generation method of outline font Expired - Fee Related JP2985275B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2288010A JP2985275B2 (en) 1990-10-25 1990-10-25 Character generation method of outline font

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2288010A JP2985275B2 (en) 1990-10-25 1990-10-25 Character generation method of outline font

Publications (2)

Publication Number Publication Date
JPH04162092A JPH04162092A (en) 1992-06-05
JP2985275B2 true JP2985275B2 (en) 1999-11-29

Family

ID=17724639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2288010A Expired - Fee Related JP2985275B2 (en) 1990-10-25 1990-10-25 Character generation method of outline font

Country Status (1)

Country Link
JP (1) JP2985275B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW262547B (en) 1992-11-30 1995-11-11 Canon Kk
JPH096310A (en) * 1995-06-20 1997-01-10 Nippon Joho Kagaku Kk Method and device for character generation

Also Published As

Publication number Publication date
JPH04162092A (en) 1992-06-05

Similar Documents

Publication Publication Date Title
JP2985275B2 (en) Character generation method of outline font
JPH02232690A (en) Data converting device
JP3034140B2 (en) Character generation method and device
US5428719A (en) Method and apparatus for generating high-quality pattern in accordance with an edge defining a character pattern
JPS59210482A (en) Character pattern generator
JP2910101B2 (en) Vector font data component point correction device
JPH1021415A (en) Graphic processor and graphic processing method
JP2937509B2 (en) Bitmap expansion method
JP2901526B2 (en) Character generator
JP2906643B2 (en) Document processing device
JP2782904B2 (en) Polygon fill method
JP3692639B2 (en) Drawing processor
JP2605609B2 (en) Dot display processing device
JPH0315193B2 (en)
JPH04218094A (en) Outline font processor
CN115713460A (en) Information processing device, teacher data generation method, learned model generation method, and storage medium
JP3004993B2 (en) Image processing device
JP3055306B2 (en) Data output device
JPH0567108A (en) Character input editor
JPH07192139A (en) Division point setting method
JPS6392993A (en) Painting circuit
JPH0567215A (en) Picture processor
JPS60126694A (en) Cursor display for graphic display
JPH04301887A (en) Outline font processor
JPH06301755A (en) Picture preparation device

Legal Events

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

Free format text: PAYMENT UNTIL: 20081001

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20091001

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees