JPH0546146A - Character pattern generating method - Google Patents

Character pattern generating method

Info

Publication number
JPH0546146A
JPH0546146A JP3209352A JP20935291A JPH0546146A JP H0546146 A JPH0546146 A JP H0546146A JP 3209352 A JP3209352 A JP 3209352A JP 20935291 A JP20935291 A JP 20935291A JP H0546146 A JPH0546146 A JP H0546146A
Authority
JP
Japan
Prior art keywords
character
contour
point
points
coordinates
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
JP3209352A
Other languages
Japanese (ja)
Inventor
Tsugi Suzuki
嗣 鈴木
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 JP3209352A priority Critical patent/JPH0546146A/en
Publication of JPH0546146A publication Critical patent/JPH0546146A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To generate a character pattern which is faithful to an original character without being affected by the size of the generated character pattern. CONSTITUTION:A CPU 101 reads out the dot numbers and coordinates of respective longitudinal and lateral reference dots by referring to a storage part 102 for contour dot array number and coordinate data constituting the strokes of a character, multiplies them by an enlargement or reduction ratio, and performs integer conversion processing to determine the coordinates of the reference points, which are stored temporarily in a reference point coordinate temporary storage part 103.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、CRTやプリンタ等の
出力装置に文字図形等を出力するための文字図形発生方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character / graphics generation method for outputting a character / graphics or the like to an output device such as a CRT or a printer.

【0002】[0002]

【従来の技術】最近のレーザーを利用した文字図形発生
方法において、1mm角の小さな文字から大きなもので
は50mm角の文字まで同一の書体(いわゆる原字)を
用いて文字を発生させているのが一般的であるが、原字
のデータに拡大・縮小率を掛けて必要とする文字サイズ
の文字図形を発生させる際、拡大・縮小後の輪郭点の座
標を画素上等にのせるため、輪郭点の座標データに拡大
・縮小率を掛けて得られる座標値(非整数)に対して四
捨五入等の整数化処理を行うが、拡大・縮小後の輪郭点
の座標に対して各点独立に四捨五入等の整数化処理を行
うと、原字の段階では同一の線幅であったものが、各輪
郭点の座標を拡大・縮小して四捨五入等の整数化処理を
行うと線幅が異なってしまう例が発生し、このため拡大
・縮小にともない原字のデザインを著しく損なう場合も
発生していた。
2. Description of the Related Art In a recent character / graphics generation method using a laser, characters are generated using the same typeface (so-called original characters) from a small character of 1 mm square to a large character of 50 mm square. Generally, when the original character data is multiplied by the enlargement / reduction ratio to generate a character graphic of the required character size, the outline point coordinates after enlargement / reduction are placed on pixels, etc. The coordinate value (non-integer) obtained by multiplying the coordinate data of the point by the enlargement / reduction rate is rounded off to an integer, but the coordinates of the contour point after enlargement / reduction are rounded off independently for each point. When the integers are processed into integers, the line width is the same at the original character stage, but if the coordinates of each contour point are enlarged or reduced and the integers are rounded off, the line widths will be different. An example has occurred, and due to this It was also occur if you significantly impair the design of the character.

【0003】従来は、図5に示すように真の輪郭のみを
輪郭データとして記憶することが一般的であった。文字
図形を任意のサイズで出力する際には、記憶された原字
の輪郭点の座標データに、必要とするサイズの文字図形
に変換するための拡大・縮小率を掛けて得ることができ
る。拡大・縮小率をかけると輪郭点の座標値は一般に非
整数すなわち小数となるので、これらの輪郭点を画素上
等にのせるために四捨五入あるいは切上げ切捨て等の整
数化処理が必要となる。図形の発生はこうして整数化処
理して得られた各輪郭点の座標を用いて輪郭点間の輪郭
線を直線、2次曲線、3次曲線、円弧等の補間方法など
により算出し、次に輪郭線の内部を塗りつぶすことによ
り実現される。
Conventionally, as shown in FIG. 5, it was general to store only true contours as contour data. When outputting a character graphic in an arbitrary size, it can be obtained by multiplying the stored coordinate data of the contour points of the original character by an enlargement / reduction ratio for converting into a character graphic of a required size. When the enlargement / reduction ratio is applied, the coordinate values of the contour points are generally non-integer, that is, decimal, so that integer processing such as rounding or rounding down is required to place these contour points on pixels. To generate a figure, the contour line between contour points is calculated by using the coordinates of each contour point obtained by the integer processing in this way, by an interpolation method such as a straight line, a quadratic curve, a cubic curve, or a circular arc. It is realized by filling the inside of the contour line.

【0004】図6の点列は図5に記憶した“中”という
文字の輪郭点列の一部を拡大したもので、文字“中”の
縦線3本の線の幅は問題点の説明のために原字の段階で
は同一の太さであるとする。図5および図6の点Pから
点Uは、それらの線幅を決定する輪郭点である。点Pか
らUの各点は拡大・縮小率をかけたままの座標値でかつ
整数化処理を行う前の値で、図の点P’からU’は、拡
大・縮小率をかけて得られた輪郭点の座標点PからUを
画素上等にのせるため、従来から行われてきた方法、す
なわち各点の座標点PからUに対して各点独立に四捨五
入の整数化処理を行った場合の例である。なお、図の上
部に記載した等間隔の線は、整数座標位置を示す。図6
で示すように各点独立に整数化処理を行うと、整数化処
理を行う前は同一の線幅であった3本の縦線、すなわち
点PQ間、点RS間、点TU間の距離が、整数化処理を
行うことにより異なる線幅となることを示している。こ
のように、拡大・縮小等にともない文字のデザイン性を
損なうという課題があった。
The dot sequence in FIG. 6 is an enlargement of the outline dot sequence of the character "middle" stored in FIG. 5, and the width of the three vertical lines of the character "middle" is an explanation of the problem. Because of this, it is assumed that the original characters have the same thickness. Points P to U in FIGS. 5 and 6 are contour points that determine their line widths. The points P to U are the coordinate values with the scaling ratio still applied and the values before the integer conversion process. The points P'to U'in the figure are obtained by the scaling ratio. In order to place the coordinate points P to U of the contour points on the pixels and the like, a conventional method, that is, the coordinate points P to U of each point are individually rounded off to integers. This is an example of the case. It should be noted that the equally spaced lines shown at the top of the figure indicate integer coordinate positions. Figure 6
When the integer processing is performed independently for each point as shown by, the three vertical lines having the same line width before the integer processing, that is, the distances between points PQ, RS, and TU are , And that different line widths are obtained by performing integer processing. As described above, there is a problem in that the designability of characters is impaired due to enlargement / reduction.

【0005】[0005]

【発明が解決しようとする課題】そこで本発明はこのよ
うな問題点を解決するもので、その目的とするとこは原
字になるべく忠実な文字図形を、発生させる文字図形の
大きさに左右されず、効率よく発生させる方法を提供す
るところにある。
SUMMARY OF THE INVENTION The present invention is intended to solve such a problem, and its purpose is to make a character figure that is as faithful as the original character depending on the size of the character figure to be generated. Instead, it is to provide a method for generating efficiently.

【0006】[0006]

【課題を解決するための手段】本発明の文字図形発生方
法は、文字図形の輪郭線を離散的点列データとして記憶
し、この離散的点列データから文字図形の輪郭線を直
線、2次曲線、3次曲線、円弧等の補間により算出し
て、前記輪郭線の内部を塗り潰すことによって文字図形
を発生させる文字図形発生方法において、離散的点列デ
ータを記憶する記憶手段を有し、発生させる文字図形を
あらかじめ字画に相当する部分(以下、字画部品と呼
ぶ)ごとに分割し、輪郭点列座標データを前記字画部品
ごとに記憶させ、前記字画部品を構成する輪郭点列の中
から、縦軸、横軸方向それぞれ独立に基準点を各1点設
定し、前記字画部品を構成する輪郭点の座標データのう
ち、前記基準点以外の座標は基準点からの相対座標とし
て記憶することを特徴とする文字図形発生方法である。
According to the character and figure generating method of the present invention, the contour line of the character and figure is stored as discrete point sequence data, and the contour line of the character and figure is linear and quadratic from this discrete point sequence data. A character and figure generating method for generating a character and figure by filling the inside of the contour line by calculating by interpolation of a curve, a cubic curve, an arc, etc., and has a storage means for storing discrete point sequence data, A character figure to be generated is divided into portions corresponding to strokes (hereinafter referred to as stroke parts) in advance, and contour point sequence coordinate data is stored for each of the stroke parts. , One reference point is set for each of the vertical axis and the horizontal axis, and the coordinate data other than the reference point among the coordinate data of the contour points forming the stroke component is stored as relative coordinates from the reference point. Featuring That is a character figure generation method.

【0007】[0007]

【実施例】図1は、漢字の“中”という文字の輪郭点の
点列を示した例で、漢字“中”は5個の字画部品から構
成されている。図中の番号IからVがその字画部品を示
す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an example of a sequence of contour points of a character "middle" of a Chinese character, in which the Chinese character "middle" is composed of five stroke parts. The numbers I to V in the figure indicate the stroke parts.

【0008】図2の点列は、従来の方式における問題点
を説明するために使用した図6と同一の部分の輪郭点の
点列を示している。本実施例においては、まず最初に字
画部品ごとに基準点を設定する。図1および図2を例に
とると、点A、C、Eが各字画部品の基準点に相当す
る。次にこの基準点のみを対象として、拡大・縮小率を
掛けて得られた座標値に対して画素上にのるように四捨
五入等の整数化処理を行う。図2を例にとると、基準点
Aは点A’に、点Cは点C’に、点Eは点E’に固定さ
れる。次に基準点以外の各輪郭点は、基準点からの相対
座標で記憶されているので、整数化処理された基準点の
座標に、拡大・縮小率を掛けた後の相対座標値を加算す
ることにより求めることができる。点B’、点D’、点
F’がそれにより得られた点である。距離の関係で説明
すると、例えば、点B’の場合は、点AB間距離=点
A’B’間距離となるような点B’を求めることにな
る。さらにここで得られた点B’、D’、F’の点も出
力の際画素上にのせるため四捨五入等の整数化処理が必
要であり、図2の点B”、点D”、点F”が整数化処理
により得られた輪郭点の最終座標である。このように、
基準点以外の点は、基準点からの相対座標で記憶されて
いるため、基準点の座標を整数化する際に基準点が移動
するのに伴って、字画部品全体が平行移動することにな
り、各輪郭点の座標の小数部分は相対座標値の小数部分
と等価になるため、図2に示すように、拡大縮小を行う
前に同一の線幅であった複数の字画は、整数化後も同一
の線幅を有するか、あるいは細くなって消滅する場合は
同時に消滅するという改善がなされる。以上は、複数の
縦線に関する線幅合わせの例であったが、基準点を、
縦、横独立に設定することによって、横線に関しても同
様に線幅合わせを行うことができる。
The point sequence in FIG. 2 shows a point sequence of contour points of the same portion as in FIG. 6 used to explain the problems in the conventional method. In this embodiment, first, a reference point is set for each stroke component. Taking FIG. 1 and FIG. 2 as examples, points A, C, and E correspond to the reference points of the respective stroke parts. Next, with respect to only this reference point, the coordinate value obtained by multiplying the enlargement / reduction rate is subjected to integer processing such as rounding so that it is placed on a pixel. Taking FIG. 2 as an example, the reference point A is fixed to the point A ′, the point C is fixed to the point C ′, and the point E is fixed to the point E ′. Next, since each contour point other than the reference point is stored as relative coordinates from the reference point, the coordinates of the reference point subjected to the integer processing are multiplied by the scaling factor, and the relative coordinate value is added. It can be obtained by Points B ′, D ′, and F ′ are the points obtained thereby. Explaining in terms of the distance, for example, in the case of the point B ′, the point B ′ such that the distance between points AB = the distance between points A′B ′ is obtained. Furthermore, since the points B ′, D ′, and F ′ obtained here are also placed on the pixels at the time of output, integer processing such as rounding is required, and the points B ″, D ″, and points in FIG. F ″ is the final coordinate of the contour point obtained by the integer processing.
Since the points other than the reference point are stored as relative coordinates from the reference point, the whole stroke part moves in parallel as the reference point moves when the coordinates of the reference point are converted into integers. Since the fractional part of the coordinates of each contour point is equivalent to the fractional part of the relative coordinate values, a plurality of strokes having the same line width before scaling is converted to an integer after the scaling as shown in FIG. Also has the same line width, or when they become thin and disappear, they disappear at the same time. The above is an example of line width matching for a plurality of vertical lines.
By setting the vertical and horizontal directions independently, it is possible to perform line width matching for horizontal lines as well.

【0009】図3は、本発明の実施例を実現するための
システム構成の例で、システムはCPU101、字画を
構成する輪郭点列番号ならびに座標データ記憶部10
2、基準点整数座標一時記憶部103、輪郭線発生部1
04、輪郭線内部塗り潰し部105および文字図形出力
装置106から構成される。本実施例の構成上の特徴
は、字画を構成する輪郭点列番号ならびに座標データ記
憶部102および基準点整数座標一時記憶部103を有
することで、この輪郭点列番号記憶部の内部構成の列を
図4に示す。図4は図1に示した漢字“中”の輪郭点の
点列データを記憶した例で、例えば、字画部品IIは、
輪郭点C、Dを含む点列から構成され、かつ横軸方向の
基準点は点Cであることを示している。CPU101
は、まず字画を構成する輪郭点列番号ならびに座標デー
タ記憶部102を参照して、縦、横軸方向それぞれの基
準点の点番号ならびにその座標を読み出し拡大・縮小率
を掛けたのち、整数化処理を行うことにより基準点の座
標を決定し、それを基準点整数座標一時記憶部103に
一時記憶する。次に、基準点以外の座標については、輪
郭点列番号ならびに座標データ記憶部102から各輪郭
点の相対座標を順次呼び出して拡大縮小計算したのち、
その結果に基準点整数座標一時記憶部103に一時記憶
された基準点の整数座標を加算したのち整数化処理を行
い、結果を輪郭線発生部104に送って輪郭線を発生さ
せ、さらに塗り潰し部105にて内部を塗り潰すことに
より文字図形を発生させる。
FIG. 3 shows an example of a system configuration for implementing the embodiment of the present invention. The system is a CPU 101, a contour point sequence number forming a stroke and a coordinate data storage unit 10.
2, reference point integer coordinate temporary storage unit 103, contour line generation unit 1
04, a contour line interior filling unit 105, and a character / graphic output device 106. The structural feature of the present embodiment is that it has a contour point sequence number forming a stroke, a coordinate data storage unit 102, and a reference point integer coordinate temporary storage unit 103. Is shown in FIG. FIG. 4 is an example in which the point sequence data of the contour points of the Chinese character “middle” shown in FIG. 1 is stored.
It is shown that it is composed of a point sequence including contour points C and D, and the reference point in the horizontal axis direction is point C. CPU 101
First, referring to the contour point sequence number forming the stroke and the coordinate data storage unit 102, the point numbers of the reference points in the vertical and horizontal axis directions and their coordinates are read out and multiplied by the enlargement / reduction ratio, and then converted into integers. The coordinates of the reference point are determined by performing the processing, and the coordinates are temporarily stored in the reference point integer coordinate temporary storage unit 103. Next, for coordinates other than the reference point, the outline point sequence number and the relative coordinates of each outline point are sequentially called from the coordinate data storage unit 102, and the scaling is calculated.
The integer coordinates of the reference point temporarily stored in the reference point integer coordinate temporary storage unit 103 are added to the result, and then integer processing is performed, and the result is sent to the contour line generation unit 104 to generate the contour line, and the filling unit A character figure is generated by filling the inside at 105.

【0010】以上のように、本発明によれば、文字図形
の拡大・縮小に係わる線幅合わせを行う際、複数な計算
を必要としないで高速かつ簡便に処理することができ
る。
As described above, according to the present invention, when the line width matching for enlarging / reducing a character / figure is performed, it is possible to perform the processing quickly and easily without requiring a plurality of calculations.

【0011】[0011]

【発明の効果】以上述べたように、文字図形の拡大・縮
小にともなう線幅の不揃いを容易かつ高速に回避するこ
とができ、文字の品質を向上させることができるという
効果を有する。
As described above, it is possible to easily and quickly avoid the nonuniformity of the line width due to the enlargement / reduction of the character graphic, and it is possible to improve the character quality.

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

【図1】本発明の実施例を説明するために、例としてあ
げた文字の輪郭点の点列を示す図。
FIG. 1 is a diagram showing a point sequence of contour points of a character given as an example for explaining an embodiment of the present invention.

【図2】図1の点列を対象として、本発明の実施例によ
り整数化処理を行った場合の点列を示す図。
FIG. 2 is a diagram showing a point sequence when integer processing is performed according to an embodiment of the present invention for the point sequence in FIG.

【図3】本発明の実施例の構成例を示す図。FIG. 3 is a diagram showing a configuration example of an embodiment of the present invention.

【図4】本発明の実施例における輪郭点列番号記憶部の
内部構成例を示す図。
FIG. 4 is a diagram showing an internal configuration example of a contour point sequence number storage unit in the embodiment of the present invention.

【図5】従来の文字の輪郭点の点列を説明するための
図。
FIG. 5 is a view for explaining a conventional point sequence of contour points of a character.

【図6】図5の点列を対象として従来の方法により整数
化処理を行った場合の点列を示す図。
FIG. 6 is a diagram showing a point sequence when integer conversion processing is performed on the point sequence in FIG. 5 by a conventional method.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 文字図形の輪郭線を離散的点列データと
して記憶し、この離散的点列データから文字図形の輪郭
線を直線、2次曲線、3次曲線、円弧等の補間により算
出して、前記輪郭線の内部を塗り潰すことによって文字
図形を発生させる文字図形発生方法において、離散的輪
郭点列データを記憶する記憶手段を有し、発生させる文
字図形をあらかじめ字画に相当する部分(以下、字画部
品と呼ぶ)ごとに分割し、輪郭点列座標データを前記字
画部品ごとに記憶させ、前記字画部品を構成する輪郭点
列の中から、縦軸、横軸方向それぞれ独立に基準点を各
1点設定し、前記字画部品を構成する輪郭点の座標デー
タのうち、前記基準点以外の座標は基準点からの相対座
標として記憶することを特徴とする文字図形発生方法。
1. A contour line of a character figure is stored as discrete point sequence data, and the contour line of the character figure is calculated from this discrete point sequence data by interpolation of a straight line, a quadratic curve, a cubic curve, an arc, or the like. In the character and figure generating method for generating a character and figure by filling the inside of the contour line, the character and figure generating means has a storage means for storing discrete contour point sequence data, and the generated character and figure corresponds to a stroke in advance. (Hereinafter referred to as a stroke component), the contour point sequence coordinate data is stored for each stroke component, and reference points are independently set in the vertical and horizontal directions from the contour point sequence that constitutes the stroke component. Is set, and the coordinates other than the reference point in the coordinate data of the contour points forming the stroke component are stored as relative coordinates from the reference point.
JP3209352A 1991-08-21 1991-08-21 Character pattern generating method Pending JPH0546146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3209352A JPH0546146A (en) 1991-08-21 1991-08-21 Character pattern generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3209352A JPH0546146A (en) 1991-08-21 1991-08-21 Character pattern generating method

Publications (1)

Publication Number Publication Date
JPH0546146A true JPH0546146A (en) 1993-02-26

Family

ID=16571528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3209352A Pending JPH0546146A (en) 1991-08-21 1991-08-21 Character pattern generating method

Country Status (1)

Country Link
JP (1) JPH0546146A (en)

Similar Documents

Publication Publication Date Title
JP2909273B2 (en) Outline font line width adjusting method and apparatus
JP2876942B2 (en) Data converter
US5526474A (en) Image drawing with improved process for area ratio of pixel
EP0461811A2 (en) Pattern processing method
JPH0546146A (en) Character pattern generating method
US6504543B1 (en) Polygon drawing method and polygon drawing apparatus
JP2806679B2 (en) Character generator
JPH01191192A (en) High quality character generating device
JPH0573026A (en) Character and pattern generating method
JP3156294B2 (en) Data processing device
JPH0823741B2 (en) How to process vector characters or graphics
JPH05181451A (en) Character display device
JPH0392897A (en) Pattern generating device
JP2001109454A (en) Character processing device
JP3514895B2 (en) Image expansion processing method and apparatus
JP2001109899A (en) Image processor
JPH0553559A (en) Line width determination system
JPH0413182A (en) Method and device for generating character and pattern
JPH02278388A (en) Method and device for generating character and pattern
JPH07186449A (en) Character processing device
JPH06102853A (en) Method for generating character and pattern
JP2000259845A (en) Method and device for plotting polygon
JPH0450897A (en) Character pattern reduction conversion system
JPH096311A (en) Outline font plotting device
JPH01133097A (en) Character signal generator