JP3268160B2 - Character pattern generator - Google Patents

Character pattern generator

Info

Publication number
JP3268160B2
JP3268160B2 JP08899495A JP8899495A JP3268160B2 JP 3268160 B2 JP3268160 B2 JP 3268160B2 JP 08899495 A JP08899495 A JP 08899495A JP 8899495 A JP8899495 A JP 8899495A JP 3268160 B2 JP3268160 B2 JP 3268160B2
Authority
JP
Japan
Prior art keywords
character
reference data
data
size
line
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
JP08899495A
Other languages
Japanese (ja)
Other versions
JPH08286655A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP08899495A priority Critical patent/JP3268160B2/en
Publication of JPH08286655A publication Critical patent/JPH08286655A/en
Application granted granted Critical
Publication of JP3268160B2 publication Critical patent/JP3268160B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、日本語ワードプロセッ
サ,パソコン,レーザプリンタ,デジタル複写機等に利
用し得る文字パターン発生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character pattern generator which can be used in a Japanese word processor, a personal computer, a laser printer, a digital copying machine, and the like.

【0002】[0002]

【従来の技術】従来の文字パターン発生装置には下記の
ような方法,装置が提案されている。特開平3−184
088号公報には、その文字の中心を通る骨格線と局部
輪郭とを持ち、文字を複数の基本要素(部品)から合成
する文字パターン発生方式が記載されている。各々の部
品は縦横に拡大できるように記載されているが、縦横の
拡大比率が異なった場合に、縦線,横線は問題ないが、
斜め線は図15のように線の幅が異なってしまう。例え
ば、2点間の座標の差がX方向10ドット,Y方向10
ドットの基準データを、X方向だけ倍に伸ばすとX方向
20ドット,Y方向10ドットとなり、元は45度の傾
きだったものが、tan-1(1/2)=26.6度にな
るため、線幅はcos(45ー26.6)=0.95、
つまり5%縮まってしまう。
2. Description of the Related Art The following methods and apparatuses have been proposed as conventional character pattern generating apparatuses. JP-A-3-184
No. 088 discloses a character pattern generation method having a skeleton line passing through the center of the character and a local contour, and synthesizing the character from a plurality of basic elements (parts). Each part is described so that it can be enlarged vertically and horizontally, but when the enlargement ratio of the height and width is different, the vertical line and the horizontal line are fine,
The oblique lines have different line widths as shown in FIG. For example, the difference in coordinates between two points is 10 dots in the X direction and 10 dots in the Y direction.
If the reference data of the dot is extended twice in the X direction, it becomes 20 dots in the X direction and 10 dots in the Y direction, and the original inclination of 45 degrees becomes tan -1 (1/2) = 26.6 degrees. Therefore, the line width is cos (45−26.6) = 0.95,
That is, it shrinks by 5%.

【0003】また、特開平3−234559号公報に
は、文字パラメータに従って変形する(先端の形を変え
る)パターン変形方式が記載されている。この方式では
角ゴシック体から丸ゴシック体に変形でき、書体を変え
たように見せられるが、文字サイズを小さくした場合に
骨格を入れ替えて見やすくしたり、文字サイズを大きく
した場合に線幅を太くして垂れ幕などに利用しても見栄
えがするようにはできない。
In addition, Japanese Patent Application Laid-Open No. 3-234559 discloses a pattern deformation method in which a character is deformed (the shape of the tip is changed) in accordance with a character parameter. With this method, you can transform from square Gothic to round Gothic, and it looks as if you changed the font, but if you reduce the font size, you can change the skeleton to make it easier to see, and if you increase the font size, make the line width thicker You can't make it look good even if you use it for banners.

【0004】また、特開平3−132795号公報に
は、文字を小さくした場合に文字の空白部分の縮小率を
文字の縮小率より小さくして、相対的に空白部を大きく
し、文字のつぶれを抑える縮小アウトラインフォント作
成方法が記載されている。この方法ではサーマルプリン
ターなどにじみの発生するプリンターでのつぶれを抑え
ることができる。しかし、空白部分を大きくするため、
「口」のような文字では文字の線幅が細くなってしま
い、「了」のような文字では線幅が変化しなく、文字の
幅にばらつきが出てしまうことになる。
Japanese Patent Application Laid-Open No. 3-132595 discloses that when a character is made smaller, the reduction ratio of the blank portion of the character is made smaller than the reduction ratio of the character, and the blank portion is made relatively large, and the character is collapsed. It describes a method for creating a reduced outline font that suppresses the problem. With this method, it is possible to suppress the collapse of a printer that causes bleeding such as a thermal printer. However, to make the blank space larger,
For characters such as "mouth", the line width of the character is thin, and for characters such as "end", the line width does not change, and the character width varies.

【0005】また、特開平5−61451号公報には、
小さい文字を展開するときに明朝体などの「うろこ」と
呼ばれている飾りを通常の飾りから簡単な飾りに変更し
て、高速出力とばらつきの抑制を行う文字出力装置が記
載されている。この装置では、飾り部分を特徴パラメー
タの形式で形状を記憶し、出力サイズに応じて変更する
ものである。これでは先端部分の形状の変更だけであ
り、全体の骨格,形までには対応できない。
[0005] Also, Japanese Patent Application Laid-Open No. 5-61451 discloses that
A character output device that changes the decoration called "scale" such as Mincho when developing small characters from a normal decoration to a simple decoration, and performs high-speed output and suppresses variation is described. . In this apparatus, the shape of the decorative part is stored in the form of a characteristic parameter, and is changed according to the output size. In this case, only the shape of the tip portion is changed, and it is not possible to cope with the entire skeleton and shape.

【0006】また、特開平4−10000号公報には、
ある特定の大きさ以上の文字サイズでは太さを拡大して
展開するアウトラインフォント出力装置が記載されてい
る。垂れ幕などの大きな文字では線幅が太く見やすい、
バランスがよいものが要求される。文字を太くする方法
も一つの解決方法であるが、全ての線に線の太さ情報を
持つ必要があり、骨格のデザインまで変更して、力強さ
を出すことはできない。
[0006] Japanese Patent Application Laid-Open No. H4-10000 discloses that
An outline font output device which expands a character size larger than a certain size by expanding the thickness is described. For large characters such as banners, the line width is thick and easy to see,
Good balance is required. One way to solve this problem is to make the characters thicker, but it is necessary to have line thickness information for all the lines, and it is not possible to change the design of the skeleton to give it strength.

【0007】さらにまた、特開昭64−35483号公
報には、文字の太さを変更する場合に線がぶつかった
り、線の間隔が空き過ぎたりするのを防ぐ文字パターン
生成方式が記載されている。これはあくまで文字の太さ
を変えたときのことで、文字の大きさを変えることによ
る対応はできない。
Further, Japanese Patent Application Laid-Open No. 64-35483 discloses a character pattern generation method for preventing a line from being hit or a line interval from being too empty when changing the thickness of a character. I have. This is only when the thickness of the character is changed, and cannot be dealt with by changing the size of the character.

【0008】図16は従来の、文字の部品(基本要素)
化例である。基準データの座標を単純に上下左右方向に
拡大縮小すると、もともと一定の太さだった線の線幅が
変わってしまう。図15(a)が基準データである。図
15(b)は左右に縮め、図15(c)は上下に縮め、
図15(d)は上下左右両方に縮めた例である。複数の
部品を組み合わせたときには線の幅の統一が取れなくな
ってしまうことは、文字としては実用に耐えられないも
のになる。
FIG. 16 shows a conventional character part (basic element).
It is a chemical example. If the coordinates of the reference data are simply scaled up, down, left and right, the line width of the line that originally had a constant thickness changes. FIG. 15A shows reference data. FIG. 15B is shrunk left and right, FIG. 15C is shrunk up and down,
FIG. 15D shows an example in which the image is shrunk both vertically and horizontally. When a plurality of parts are combined, the inconsistency in the line width cannot be obtained, which is not practical for a character.

【0009】図17(a)〜図17(c)は、「日」の
部品で大きさを変えたときの例である。線幅が変わって
しまうため、他の部品とつけ合わせた場合には問題があ
る。図17(d)〜図17(f)は、「日」の部品を単
純に拡大縮小して「日」,「昌」,「晶」を作った例で
ある。縦線横線とも線幅が文字によってバラバラであ
る。図17(g)〜図17(i)は、本来の「日」,
「昌」,「晶」の文字である。部品「日」の大きさが変
わっても線の太さは一定になっている。
FIGS. 17 (a) to 17 (c) show an example in which the size is changed for parts of "day". Since the line width changes, there is a problem when it is combined with other parts. FIGS. 17 (d) to 17 (f) are examples in which “day”, “chang”, and “crystal” are created by simply enlarging or reducing the parts of “day”. Both the vertical and horizontal lines have different line widths depending on the characters. 17 (g) to 17 (i) show the original “day”,
These are the characters "chang" and "crystal". The thickness of the line is constant even if the size of the part "day" changes.

【0010】[0010]

【発明が解決しようとする課題】小さな文字サイズのと
きに文字の線が曲線で複雑な場合に、図18(a)のよ
うにドットにしたときに線幅の太さのばらつきが発生し
たり、つぶれが発生したりするのを、デザインの異なる
直線的な部品に入れ替えることにより、図18(b)の
ようにドットにしたときの線幅をそろえ、つぶれを防
ぎ、また直線的なものにすることで処理速度も向上させ
る。
When the character line is curved and complicated when the character size is small, the thickness of the line width may vary when dots are formed as shown in FIG. By replacing the occurrence of crushing with linear parts having a different design, the line widths when dots are formed as shown in FIG. By doing so, the processing speed is also improved.

【0011】また、大きな文字サイズのときに文字が貧
弱に見えるのを、異なるウエイト(太さ)の部品に入れ
替えることにより、力強いものにさせる。また、明朝体
などでは縦棒,横棒の線の太さは線の長さには関係なく
一定である。部品を拡大,縮小しても線幅を一定にし
て、他の線と線幅をそろえることにより、書体としての
バランスを保たせる。
[0011] In addition, when a character looks poor at a large character size, it is made strong by replacing the part with a different weight (thickness). In Mincho, etc., the thickness of the vertical and horizontal lines is constant regardless of the length of the line. Even if the part is enlarged or reduced, the line width is kept constant and the line width is made uniform with other lines, thereby maintaining the balance as a typeface.

【0012】[0012]

【課題を解決するための手段】本発明による文字パター
ン発生装置は、上記課題を解決するため、次のような手
段を有するものである。文字をアウトライン等ベクトル
データで持ち、該ベクトルデータからドットに展開する
フォント展開装置において、偏旁などを複数の基準デー
タに分解し、それらを基準データの組み合わせにより文
字に構成してデータを保持する手段と、上記基準データ
を所定位置に配置し、その文字にあった大きさにするた
めにX,Y方向に拡大/縮小する手段と、展開する文字
サイズをチェックする手段により、同一文字でも展開す
る文字の大きさに応じて、形,デザインの違う複数の基
準データを使い分けることを特徴とするものである。
The character pattern generator according to the present invention has the following means to solve the above-mentioned problems. Means for holding characters by using a font expansion device that holds characters as vector data such as outlines and develops the dots from the vector data into a plurality of reference data, constructs them into characters by combining reference data, and holds the data Means for arranging the reference data at a predetermined position and enlarging / reducing in the X and Y directions so as to have a size suitable for the character; It is characterized in that a plurality of reference data having different shapes and designs are properly used according to the size of the character.

【0013】また、文字をアウトライン等ベクトルデー
タで持ち、該ベクトルデータからドットに展開するフォ
ント展開装置において、偏旁などを複数の基準データに
分解し、それらを基準データの組み合わせにより文字に
構成してデータを保持する手段と、上記基準データを所
定位置に配置し、その文字にあった大きさにするために
X,Y方向に拡大/縮小する手段と、展開する文字サイ
ズをチェックする手段により、同一文字でも展開する文
字の大きさに応じて、ウエイトの違う複数の基準データ
を使い分けることを特徴とするものである。
Further, in a font developing device which has a character as vector data such as an outline and develops the vector data into dots, the font developing device decomposes the sidelines and the like into a plurality of reference data, and forms them into characters by combining the reference data. Means for holding the data, means for arranging the reference data at a predetermined position, and means for enlarging / reducing in the X and Y directions so as to have a size suitable for the character, and means for checking the character size to be developed. The present invention is characterized in that a plurality of pieces of reference data having different weights are selectively used in accordance with the size of a character to be developed even with the same character.

【0014】また、文字をアウトライン等ベクトルデー
タで持ち、該ベクトルデータからドットに展開するフォ
ント展開装置において、偏旁などを複数の基準データに
分解し、該偏旁などを基準データの組み合わせにより文
字に構成してデータを保持する手段と、上記基準データ
を所定位置に配置し、その文字にあった大きさにするた
めにX,Y方向に拡大/縮小する手段とを備え、 上記文
字は、該文字をX,Y方向に拡大若しくは縮小する場合
に拡若しくは縮小する基準データと拡大若しくは縮小
しない基準データとの組み合わせで構成されることを特
徴とするものである。
Further, in a font developing device which has a character as vector data such as an outline and develops the dot from the vector data, the side by side is decomposed into a plurality of reference data, and the side by side is formed into a character by combining the reference data. means for holding the data, the reference data arranged in a predetermined position, and means for enlarging / reducing the X, Y direction in order to size was in the character, the sentence
When the character is enlarged or reduced in the X and Y directions
It is characterized in that formed in combination with the reference data that is not enlarged or reduced and expanded or reduced to reference data.

【0015】[0015]

【0016】[0016]

【0017】[0017]

【作用】本発明の文字パターン発生装置は、上記の構成
を有することにより、次のような作用をなすものであ
る。展開するサイズをチェックする手段により、小さい
文字サイズのときに、直線的なデザインの部品に置き換
えることにより、線幅が一定になり、また直線的なデザ
インのため線の間隔が取れ、懐の大きな見やすい文字と
なる。もともと直線の部品は変更が必要ないため、無駄
なデータを持つこともない。
The character pattern generating device of the present invention has the following effects by having the above configuration. By replacing the parts with linear design when the font size is small, the line width becomes constant. The characters are easy to see. Originally, straight parts do not need to be changed, so there is no useless data.

【0018】また、展開するサイズをチェックする手段
により、大きな文字サイズのときに、ウエイトの大きい
(太い)部品に置き換えることにより、垂れ幕などの印
刷時に太くて力強い文字になる。太くする必要のない部
品は変更が必要ないため、無駄なデータを持つこともな
い。また、拡大,縮小の時に、部品の特定部分のみ乗算
しないことで線幅を一定にし、他の線と線幅をそろえる
ことになり、書体としてのバランスを保つものである。
Further, by using a means for checking the size to be developed, by replacing a large character with a component having a large weight (thick) when the character size is large, the character becomes thick and powerful when printing a banner or the like. Parts that do not need to be thicker do not need to be changed, so that there is no useless data. Also, at the time of enlargement or reduction, by not multiplying only a specific part of the part, the line width is made constant and the line width is made uniform with other lines, thereby maintaining the balance as a typeface.

【0019】[0019]

【0020】[0020]

【実施例】【Example】

(実施例1)図1は、本発明による文字パターン発生装
置の構成を示すブロック回路図である。入力のためのフ
ルキー,印刷指定するための印刷キーを含む入力装置
1、CRTなどの表示装置2、レーザプリンターなどの
印刷装置3、FDなどの記憶装置4、輪郭線の接線,法
線を求める計算手段、角が離れた場合に接線方向に補完
する直線補完手段、白みが潰れるかどうかをチェックす
る潰れチェック手段、太める時の方法を保持する太さモ
ードフラグ、ベジェ曲線を直線近似するベジェ展開手
段、直線を各ドットに落とす直線展開手段、黒く塗られ
た面積を求める面積計算手段、輪郭線の中を塗りつぶす
塗り手段、重心を求める重心計算手段、包含関係をチェ
ックする包含関係チェック手段、文字コードに対応した
アウトラインフォントデータ、フォントを展開する展開
バッファを含むアウトラインフォント装置5がある。6
はこれらを演算処理するCPUである。
(Embodiment 1) FIG. 1 is a block circuit diagram showing a configuration of a character pattern generator according to the present invention. An input device 1 including a full key for input and a print key for specifying printing, a display device 2 such as a CRT, a printing device 3 such as a laser printer, a storage device 4 such as an FD, and tangents and normals of contour lines are obtained. Calculating means, straight line complementing means for tangentially complementing when a corner is separated, crushing checking means for checking whether whiteness is crushed, thickness mode flag for retaining thickening method, linear approximation of Bezier curve Bezier developing means, linear developing means for dropping a straight line into each dot, area calculating means for obtaining a black painted area, painting means for filling an outline, centroid calculating means for obtaining a center of gravity, inclusion relation checking means for checking an inclusion relation There is an outline font device 5 including an outline font data corresponding to a character code and an expansion buffer for expanding a font. 6
Is a CPU for calculating these.

【0021】図2はアウトラインフォントのデータの例
である。右回りは閉じた中側を塗りつぶす。左回りは閉
じた中側を白抜きにする。右回り,左回りは上記とは逆
でもよい。線として、直線と3次ベジェ曲線を例に説明
する。アウトラインフォントの曲線としては、2次スプ
ライン,3次スプライン,円弧等も使用されている。
FIG. 2 shows an example of outline font data. Clockwise paints the closed middle side. In the counterclockwise direction, the closed middle side is outlined. Clockwise and counterclockwise may be reversed. A straight line and a cubic Bezier curve will be described as examples of the line. Secondary curves, cubic splines, arcs, and the like are also used as the outline font curves.

【0022】尚、上記ベジェ曲線,スプライン曲線等
は、次のような曲線をいう。
The Bezier curve, spline curve and the like refer to the following curves.

【0023】2次ベジェ曲線:始点、制御点、終点で定
義される曲線で、始点から制御点への直線が始点での接
線となる終点から制御点への直線が終点での接線とな
る。
Quadratic Bezier curve: A curve defined by a start point, a control point, and an end point. A straight line from the start point to the control point is a tangent at the start point, and a straight line from the end point to the control point is a tangent at the end point.

【0024】また、 3次ベジェ曲線:始点、制御点1、制御点2、終点で定
義される曲線で、始点から制御点1への直線が始点での
接線となる終点から制御点2への直線が終点での接線と
なる。
Also, a cubic Bezier curve: a curve defined by a starting point, a control point 1, a control point 2, and an end point, wherein a straight line from the start point to the control point 1 is a tangent at the start point from the end point to the control point 2. The straight line is the tangent at the end point.

【0025】P=P0(1−t)3+3P1t(1−t)2+3P2
t2(1-t)+P3t3 で表わされる。
P = P 0 (1-t) 3 + 3P 1 t (1-t) 2 + 3P 2
t 2 (1−t) + P 3 t 3

【0026】ただし、P ベジェ曲線上の座標 P0 始点の座標 P1 制御点1の座標 P2 制御点1の座標 P3 終点の座標 t パラメータ 0≦t≦1 また、 スプライン曲線:P=a+bt+ct2+dt3 で表
わされる。
Here, P coordinates on the Bezier curve P 0 coordinates of the starting point P 1 coordinates of the control point 1 P 2 coordinates of the control point 1 P 3 coordinates of the ending point t parameter 0 ≦ t ≦ 1 Spline curve: P = a + bt + ct It is represented by 2 + dt 3 .

【0027】ただし、a,b,c,dはこの間の定数 t 線の間隔 左下を基準点とすると、図2の座標データは図3のデー
タフォーマットのようになる。図2の太実線は線の外回
りを表し、2重線は線の内回りを表す。レベルは一番外
の線から1,2,3と付けていく。図2(a)に示す文
字「日」の場合は、外側の線がレベル1、内側の2つの
線がどちらもレベル2となる。図2(b)に示す文字
「回」の場合は、外の「口」の外回りがレベル1、内回
りがレベル2、中の「口」の外回りがレベル3、内回り
がレベル4になる。このレベルは展開時にチェックでき
るのでデータとしては持たなくても良い。
However, if a, b, c, and d are intervals of the constant t-line between them, and the lower left is a reference point, the coordinate data of FIG. 2 has the data format of FIG. The thick solid line in FIG. 2 indicates the outer circumference of the line, and the double line indicates the inner circumference of the line. Levels are 1, 2, and 3 from the outermost line. In the case of the character "day" shown in FIG. 2A, the outer line is level 1 and the two inner lines are level 2. In the case of the character "time" shown in FIG. 2B, the outer circumference of the outer "mouth" is level 1, the inner circumference is level 2, the outer circumference of the middle "mouth" is level 3, and the inner circumference is level 4. Since this level can be checked at the time of development, it need not be held as data.

【0028】データとしては、各コードに対しての線の
数、1つの輪郭線の座標数である。外回り,内回りは座
標の移って行く方向、右回りか左回りかで判断する。例
えば、「回」の場合の座標(1,1)(1,14)(1
4,14)(14,1)は、X,Y座標の(1,1)か
ら(1,14)(14,14)(14,1)を通って元
の(1,1)までの4つの直線を引くことを意味する。
この例のように最初からレベルの小さい順に格納して置
けば包含関係のチェックが簡単にできる。
The data is the number of lines for each code and the number of coordinates of one contour line. The outer and inner turns are determined by the direction in which the coordinates move, clockwise or counterclockwise. For example, the coordinates (1, 1) (1, 14) (1
The (4,14) (14,1) is the four (4,14) from the (1,1) of the X, Y coordinates through the (1,14) (14,14) (14,1) to the original (1,1). Means to draw two straight lines.
If the information is stored and stored in ascending order of level from the beginning as in this example, the inclusion relation can be easily checked.

【0029】図4(a)〜図4(c)はアウトラインフ
ォントの実際にドットを塗りつぶすときの例で、線を展
開して座標に落とすときは、図4(c)のように四捨五
入などの方法により境界の座標を決める。
FIGS. 4 (a) to 4 (c) show an example in which dots are actually painted in an outline font. When a line is developed and dropped to coordinates, rounding or the like is performed as shown in FIG. 4 (c). Determine the coordinates of the boundary by the method.

【0030】図5は、請求項1の例である。図5(a)
の「方」の文字と、図5(b)及び図5(c)の「方」
の文字とは、同じ「方」の文字でも部品が異なる。小さ
い文字の場合は、直線的でふところが大きな文字の方が
線幅が揃い、隣の線との間隔がなくなって潰れが発生す
ることも少なく、また高速に展開できる。
FIG. 5 shows an example of the first embodiment. FIG. 5 (a)
Character of "" and "" in FIG. 5 (b) and FIG. 5 (c).
The parts of the same character are different from those of the character. In the case of a small character, a character that is linear and has a large portion has a uniform line width, a gap between adjacent lines is lost, and there is little occurrence of collapse, and the character can be developed at high speed.

【0031】図6は、請求項1における1つ1つの部品
の例であり、図6(a)は「方」の上の点、図6(b)
は「方」の下の右の部分、図6(c)は下の左払いの部
品の部分的な例である。各図の上が通常文字のときに使
う部品で、曲線で滑らかになっており、拡大してもきれ
いに見える。各図の下が小さな文字のときに使う部品
で、直線的なふところを大きくしているので1本の線が
ドットになるときのドット数のバラツキが少ない。この
場合、全データを2種類持つ必要がなく、変更したい部
品だけを別途指定すれば展開できる。この「方」の例で
は、横棒はどちらも共通である。
FIG. 6 shows an example of each part according to claim 1. FIG. 6 (a) is a point on the "side", and FIG. 6 (b).
Is a right part below the “kata”, and FIG. 6 (c) is a partial example of a lower left-paying part. The upper part of each figure is the part used for normal characters. It is curved and smooth, and looks beautiful even when enlarged. The lower part of each figure is a part used for small characters. Since the linear portion is enlarged, the variation in the number of dots when one line becomes a dot is small. In this case, there is no need to have two types of all data, and the data can be expanded by separately designating only the part to be changed. In this example of “one”, both horizontal bars are common.

【0032】図8は、本発明の部品化例であり、図8
(a)の部品と図8(b)の部品から図8(d)の
「押」が、また、図8(c)の部品と図8(b)の部品
から図8(e)の「岬」ができる。このように部品化す
ることで、1つ1つの文字は部品の種類とその部品を置
く位置とその大きさを持つだけで、文字を再現できるた
め、部品データは非常にコンパクトになる。
FIG. 8 shows an example of parts of the present invention.
8D from the part of FIG. 8A and the part of FIG. 8B, and the “push” of FIG. 8C from the part of FIG. 8C and the part of FIG. A cape is made. By forming the components in this way, each character can be reproduced simply by having the type of the component, the position where the component is placed, and the size thereof, so that the component data becomes very compact.

【0033】図9は、実際の部品の拡大縮小例であり、
図9(a)の「日」の文字の基準データを図9(b)の
ように拡大若しくは縮小し、そのデータを図9(c)の
ように本来の部品の位置に展開する。
FIG. 9 shows an example of actual enlargement / reduction of a part.
The reference data of the character “day” in FIG. 9A is enlarged or reduced as shown in FIG. 9B, and the data is developed at the original component position as shown in FIG. 9C.

【0034】図10は、本発明によるデータ構造例であ
る。JISコード順に図10(a)のようにインデック
スがあり、インデックスで指されているアドレスに図1
0(b)に示すようにその文字のデータが格納されてい
る。この文字のデータは、下記のように部品数と部品の
NO.とその部品を展開する位置(左上と右下のような
2点の指定でもよいし、左端のような1点と基準データ
からの拡大率でもよい)が格納されている。また、部品
データの部品NO.は部品毎に標準部品、小さいサイズ
の部品、大きなサイズの部品が格納されている。小さい
サイズの部品、大きなサイズの部品が無く標準部品だけ
の部品も当然存在する。また小さいサイズの部品だけが
無い部品、大きなサイズの部品だけが無い部品も存在す
る。部品データには文字サイズと大小の情報が格納され
ている。例えば、(小32)は32ドット以下の展開時
に使用することを意味する。(大128)は128ドッ
ト以上の展開時に使用することを意味する。 データ 部品数 4 部品NO.3 展開位置 (120,250)(130,240)(左
上,右下)の座標 部品NO.1 展開位置 (10,240)(250,230) 部品NO.4 展開位置.(20,230)(130,10) 部品NO.5 展開位置 (120,230)(200,10) 部品データ 部品NO.1− 標準 −(小32) 32ドット以下 −(大128) 128ドット以上 図17は小さいドットサイズのときのドット展開例であ
る。大きな文字の場合には図17(a)のように曲線的
な部品できれいになるが、小さいドットサイズのときは
線幅がばらつき、この例では1ドット、2ドットと一定
にならない。これを図17(b)のように直線的な部品
に入れ替えることで、2ドットで安定した太さに展開で
きる。
FIG. 10 shows an example of a data structure according to the present invention. There is an index as shown in FIG. 10 (a) in the order of JIS code, and FIG.
The data of the character is stored as shown in FIG. The data of this character includes the number of parts and the part number as follows. And the position where the part is developed (two points such as upper left and lower right may be designated, or one point such as the left end and an enlargement ratio from the reference data may be stored). Also, the part number of the part data is The table stores standard parts, small-sized parts, and large-sized parts for each part. Naturally, there are parts having only small parts and parts having only large parts without large parts. In addition, there are components without only small-sized components and components without only large-sized components. The component data stores information on character size and size. For example, (small 32) means that it is used when developing 32 dots or less. (Large 128) means that it is used when developing 128 dots or more. Data Number of parts 4 Part No. 3 Coordinates of development position (120, 250) (130, 240) (upper left, lower right) 1 Deployment position (10, 240) (250, 230) Part No. 4 Deployment position. (20, 230) (130, 10) Part No. 5 Deployment position (120, 230) (200, 10) Part data Part No. 1-Standard-(Small 32) 32 dots or less-(Large 128) 128 dots or more FIG. 17 shows an example of dot development when the dot size is small. In the case of a large character, it is beautiful with curved parts as shown in FIG. 17A, but in the case of a small dot size, the line width varies, and in this example, it is not constant at 1 dot and 2 dots. By replacing this with a linear part as shown in FIG. 17B, it is possible to develop a stable thickness with two dots.

【0035】図11は、本発明による文字パターン発生
装置の1文字展開のフローチャート例である。まず、展
開する文字のコードを取り出し(101)、展開する書
体情報を取り出し(102)、指定された書体の文字コ
ードのデータを取り出し(103)、展開する文字のサ
イズを取り出し(104)、展開する文字サイズ分だけ
バッファをクリアし(105)、文字サイズの先頭の部
品数情報を取り出し(106)、その部品を展開する位
置情報を取り出し(107)、部品NO.を取り出し
(108)、その部品NO.に対応する部品が1種類か
チェックし(109)、1種類であればその部品を取り
出し(111)、複数種類あれば展開する文字のサイズ
をチェックし(110)、展開する文字サイズが小さけ
れば小部品があるかチェックし(112)、小部品を取
り出し(114)、展開する文字サイズが大きければ大
部品があるかチェックし(113)、大部品を取り出し
(115)、その部品を指定された大きさに座標を拡大
若しくは縮小する(116)。指定された絶対座標位置
を計算する(117)。その座標を元にベジェ展開する
(118)。展開した部品の中をドットで塗りつぶして
行く(119)。その作業を部品数回繰り返し行うと
(120)1つの文字が完成する。
FIG. 11 is an example of a flowchart for one-character expansion of the character pattern generator according to the present invention. First, the code of the character to be expanded is extracted (101), the typeface information to be expanded is extracted (102), the data of the character code of the specified typeface is extracted (103), the size of the character to be expanded is extracted (104), and the expansion is performed. The buffer is cleared by the size of the character to be processed (105), the number-of-components information at the head of the character size is extracted (106), the position information for expanding the component is extracted (107), and the part number. (108), and the part No. Is checked if there is only one type of component (109), and if there is more than one type, the component is extracted (111). If there are multiple types, the size of the character to be expanded is checked (110). It is checked whether there is a small part (112), the small part is taken out (114), and if the character size to be expanded is large, it is checked whether there is a large part (113), the large part is taken out (115), and the part is designated. The coordinates are enlarged or reduced to the size (116). The designated absolute coordinate position is calculated (117). Bezier expansion is performed based on the coordinates (118). The inside of the developed part is painted out with dots (119). When this operation is repeated several times, one character is completed (120).

【0036】(実施例2)図7は、請求項2の例であ
る。図7(a)及び図7(b)の「方」の文字と、図7
(c)の「方」の文字とは、同じ「方」の文字でも部品
が異なる。大きな文字の場合は、同じ骨格の部品でも太
い部品を使用し、垂れ幕など大きく打っても貧弱に感じ
ないようになる。この場合全データを2種類持つ必要が
なく、変更したい部品だけを別途指定すれば、展開でき
る。この「方」では上の点はどちらも共通である。上記
文字「方」の場合、図7(a)、図7(b)、図7
(c)というように変化することもデータを構成するし
方により可能である。
(Embodiment 2) FIG. 7 shows an embodiment of the present invention. 7 (a) and 7 (b),
The part of the character of "kata" is different from the character of "kata" in (c). In the case of large characters, even parts with the same skeleton use thick parts, so that they do not feel poor even if they are hit with large banners. In this case, it is not necessary to have two types of all data, and the data can be developed by separately designating only the part to be changed. Both points above are common to this "one". 7 (a), 7 (b), 7
It is also possible to change as shown in (c) depending on how to configure the data.

【0037】(実施例3)図12は、請求項3の例であ
る。図15に示す従来の部品化例では、基準データの座
標を単純に上下左右方向に拡大,縮小すると、線幅が変
わってしまう。複数の部品を組み合わせたときには線の
幅の統一が取れなくなってしまう。本発明による部品化
例は、図12に示すように上下左右の拡大若しくは縮小
しても線の太さは維持されるため、ほかの部品と線幅の
統一は保たれる。図12(a)に示すように、AとBの
左右方向、CとDの上下方向の幅は一定に保たれ図12
(b)〜図12(d)の通りである。たとえば、Bの座
標は(A+α)、Dの座標は(C+β)と持っておくこ
とで実現できる。図12(e)〜図12(g)のように
線幅が変わってもよいものは従来通りの相対値で座標を
持っている。
(Embodiment 3) FIG. 12 shows a third embodiment. In the conventional component example shown in FIG. 15, if the coordinates of the reference data are simply enlarged or reduced in the up, down, left, or right direction, the line width changes. When a plurality of parts are combined, the line width cannot be unified. In the example of componentization according to the present invention, as shown in FIG. 12, the line thickness is maintained even if it is enlarged or reduced vertically and horizontally, so that the uniformity of the line width with other components is maintained. As shown in FIG. 12A, the widths of A and B in the left-right direction and C and D in the up-down direction are kept constant.
(B) to (d) of FIG. For example, it can be realized by holding the coordinates of B as (A + α) and the coordinates of D as (C + β). As shown in FIGS. 12 (e) to 12 (g), those whose line widths may be changed have coordinates in the conventional relative values.

【0038】[0038]

【0039】[0039]

【0040】[0040]

【発明の効果】請求項1によって、文字を複数の基本要
素(部品)から合成するとき、直線的なものになるの
で、つぶれを防ぎ、また処理速度も向上する。
According to the first aspect, when a character is synthesized from a plurality of basic elements (parts), the character is linear, so that the character is prevented from being crushed and the processing speed is improved.

【0041】請求項2によって、文字を複数の部品から
合成するとき、大きな文字サイズのときに必要な部品の
み自動的に異なるウエイト(太さ)の部品に入れ替える
ことで、少ない付加情報で、力強い文字にできる。
According to the second aspect, when a character is synthesized from a plurality of parts, only parts necessary for a large character size are automatically replaced with parts having different weights (thickness), so that powerful information can be obtained with a small amount of additional information. Can be characters.

【0042】請求項3によって、文字を部品の組み合わ
せで持つことで、容量を削減し、部品を拡大,縮小して
も線幅を一定にすることで、書体としてのバランスを保
つことができる。
According to the third aspect of the present invention, the character can be held in a combination of parts, thereby reducing the capacity. Even when the parts are enlarged or reduced, the line width is kept constant, so that the balance as a typeface can be maintained.

【0043】[0043]

【0044】[0044]

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

【図1】本発明による文字パターン発生装置の構成を示
すブロック回路図である。
FIG. 1 is a block circuit diagram showing a configuration of a character pattern generator according to the present invention.

【図2】本発明によるアウトラインフォントのデータ例
を示す図である。
FIG. 2 is a diagram showing an example of outline font data according to the present invention.

【図3】本発明によるアウトラインフォントのデータフ
ォーマット例を示す図である。
FIG. 3 is a diagram showing an example of a data format of an outline font according to the present invention.

【図4】本発明によるアウトラインフォントの塗りつぶ
し例を示す図である。
FIG. 4 is a diagram showing an example of filling an outline font according to the present invention.

【図5】本発明の1実施例による文字例を示す図であ
る。
FIG. 5 is a diagram showing an example of characters according to an embodiment of the present invention.

【図6】本発明の1実施例による文字部分を示す図であ
る。
FIG. 6 is a diagram illustrating a character portion according to an embodiment of the present invention.

【図7】本発明の他の実施例による文字例を示す図であ
る。
FIG. 7 is a diagram showing an example of characters according to another embodiment of the present invention.

【図8】本発明による部品化例を示す図である。FIG. 8 is a diagram showing an example of componentization according to the present invention.

【図9】本発明による基準データから部品展開の例を示
す図である。
FIG. 9 is a diagram showing an example of part development from reference data according to the present invention.

【図10】本発明によるデータ構造例を示す図である。FIG. 10 is a diagram showing an example of a data structure according to the present invention.

【図11】本発明によるフローチャート例を示す図であ
る。
FIG. 11 is a diagram showing an example of a flowchart according to the present invention.

【図12】本発明の他の実施例による部品化例の線幅の
状態を示す図である。
FIG. 12 is a diagram showing a state of a line width of a component example according to another embodiment of the present invention.

【図13】本発明の他の実施例による文字部分を示す図
である。
FIG. 13 is a diagram illustrating a character portion according to another embodiment of the present invention.

【図14】本発明の他の実施例による文字部分の線幅の
状態を示す図である。
FIG. 14 is a diagram illustrating a state of a line width of a character portion according to another embodiment of the present invention.

【図15】従来例による文字部分の線幅の状態を示す図
である。
FIG. 15 is a diagram showing a state of a line width of a character portion according to a conventional example.

【図16】従来の部品化例の線幅の状態を示す図であ
る。
FIG. 16 is a diagram illustrating a state of a line width in a conventional example of componentization.

【図17】従来例による部品及び部品展開の例を示す図
である。
FIG. 17 is a diagram showing an example of a component and component development according to a conventional example.

【図18】従来例による文字部品のドット展開の例を示
す図である。
FIG. 18 is a diagram illustrating an example of dot development of a character component according to a conventional example.

【符号の説明】[Explanation of symbols]

1 入力装置 2 表示装置 3 印刷装置 4 記憶装置 5 アウトラインフォント装置 DESCRIPTION OF SYMBOLS 1 Input device 2 Display device 3 Printing device 4 Storage device 5 Outline font device

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G09G 5/26 G06F 15/20 562C 630 562P 15/72 355U (56)参考文献 特開 平5−232931(JP,A) 特開 平5−165457(JP,A) 特開 平3−252697(JP,A) 特開 平5−216456(JP,A) 特開 平5−66758(JP,A) 特開 平4−161985(JP,A) 特開 昭64−590(JP,A) (58)調査した分野(Int.Cl.7,DB名) G09G 5/24 G09G 5/26 ────────────────────────────────────────────────── ─── Continued on the front page (51) Int.Cl. 7 Identification symbol FI G09G 5/26 G06F 15/20 562C 630 562P 15/72 355U (56) References JP-A-5-232931 (JP, A) JP-A-5-165457 (JP, A) JP-A-3-25297 (JP, A) JP-A-5-216456 (JP, A) JP-A-5-66758 (JP, A) JP-A-4-161985 ( JP, A) JP-A-64-590 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G09G 5/24 G09G 5/26

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 文字をアウトライン等ベクトルデータで
持ち、該ベクトルデータからドットに展開するフォント
展開装置において、 偏旁などを複数の基準データに分解し、該偏旁などを基
準データの組み合わせにより文字に構成してデータを保
持する手段と、 上記基準データを所定位置に配置し、その文字にあった
大きさにするためにX,Y方向に拡大若しくは縮小する
手段と、 展開する文字サイズをチェックする手段により、同一文
字でも展開する文字の大きさに応じて、形,デザインの
違う複数の基準データを使い分けることを特徴とする文
字パターン発生装置。
1. A font developing apparatus which has a character as vector data such as an outline and develops the dot from the vector data into a plurality of reference data and constructs the character by combining the reference data into a plurality of reference data. Means for arranging the reference data at a predetermined position and enlarging or reducing in the X and Y directions so as to have a size suitable for the character; means for checking the size of the character to be expanded A character pattern generating apparatus characterized in that a plurality of reference data having different shapes and designs are selectively used according to the size of a character to be developed even with the same character.
【請求項2】 文字をアウトライン等ベクトルデータで
持ち、該ベクトルデータからドットに展開するフォント
展開装置において、 偏旁などを複数の基準データに分解し、該偏旁などを基
準データの組み合わせにより文字に構成してデータを保
持する手段と、 基準データを所定位置に配置し、その文字にあった大き
さにするためにX,Y方向に拡大/縮小する手段と、 展開する文字サイズをチェックする手段により、同一文
字でも展開する文字の大きさに応じて、ウエイトの違う
複数の基準データを使い分けることを特徴とする文字パ
ターン発生装置。
2. A font developing apparatus which has a character as vector data such as an outline and develops the vector data into dots. The font developing device decomposes the by-side and the like into a plurality of reference data, and forms the by-side and the like into a character by combining the reference data. Means for arranging the reference data at a predetermined position and enlarging / reducing in the X and Y directions so as to have a size suitable for the character; and means for checking the size of the character to be developed. A character pattern generating apparatus characterized in that a plurality of pieces of reference data having different weights are selectively used according to the size of a character to be developed even with the same character.
【請求項3】 文字をアウトライン等ベクトルデータで
持ち、該ベクトルデータからドットに展開するフォント
展開装置において、 偏旁などを複数の基準データに分解し、該偏旁などを基
準データの組み合わせにより文字に構成してデータを保
持する手段と、 上記基準データを所定位置に配置し、その文字にあった
大きさにするためにX,Y方向に拡大/縮小する手段と
を備え、 上記文字は、該文字をX,Y方向に拡大若しくは縮小す
場合に拡大若しくは縮小する基準データと拡大若しく
は縮小しない基準データとの組み合わせで構成される
とを特徴とする文字パターン発生装置。
3. A font developing apparatus which has a character as vector data such as an outline and develops the dot from the vector data into a plurality of reference data, and constructs the character into a character by a combination of the reference data. means for holding the data, the reference data arranged in a predetermined position, and means for enlarging / reducing the X, Y direction in order to size suited to the character
And the character enlarges or reduces the character in the X and Y directions.
Character pattern generating apparatus according to claim this <br/> and composed in combination with the reference data that is not enlarged or reduced and expanded or reduced to reference data when that.
JP08899495A 1995-04-14 1995-04-14 Character pattern generator Expired - Fee Related JP3268160B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08899495A JP3268160B2 (en) 1995-04-14 1995-04-14 Character pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08899495A JP3268160B2 (en) 1995-04-14 1995-04-14 Character pattern generator

Publications (2)

Publication Number Publication Date
JPH08286655A JPH08286655A (en) 1996-11-01
JP3268160B2 true JP3268160B2 (en) 2002-03-25

Family

ID=13958374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08899495A Expired - Fee Related JP3268160B2 (en) 1995-04-14 1995-04-14 Character pattern generator

Country Status (1)

Country Link
JP (1) JP3268160B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080068383A1 (en) * 2006-09-20 2008-03-20 Adobe Systems Incorporated Rendering and encoding glyphs

Also Published As

Publication number Publication date
JPH08286655A (en) 1996-11-01

Similar Documents

Publication Publication Date Title
JPH06266847A (en) Method and equipment for displaying object changed into raster
KR19990045391A (en) A medium that stores the character pattern generator and the character pattern generator control program
JP3037854B2 (en) Character generation method and device
JP3268160B2 (en) Character pattern generator
US5222208A (en) Device and method for generating dot pattern enlargement data
JP2806679B2 (en) Character generator
JP3037023B2 (en) Character generator
JPS59210482A (en) Character pattern generator
JP3170155B2 (en) Font expansion device
JPH0823741B2 (en) How to process vector characters or graphics
JPS6370890A (en) Graphic processor
JPH05216456A (en) Character output device
JP2771629B2 (en) Character processor
JP2580965B2 (en) Printer device
JPH024549A (en) Character processing system
JP2800865B2 (en) Character processor
JP2740539B2 (en) Enlarged reproduction image information creation method and apparatus
JPH0323496A (en) Character processor
JP2803746B2 (en) Character processing method and apparatus
JP3028665B2 (en) Character output device
JPH08297482A (en) Character processing device and method
JPH11110150A (en) Image processing system, method therefor and computer-readable recording medium recording image processing control program
JPH07140958A (en) Device for describing character font and graphics
JPH02238965A (en) Recorder
JPH05188911A (en) Outline font generation device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080111

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090111

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100111

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110111

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120111

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees