JP3473046B2 - Non-erected character drawing method and apparatus - Google Patents

Non-erected character drawing method and apparatus

Info

Publication number
JP3473046B2
JP3473046B2 JP16095593A JP16095593A JP3473046B2 JP 3473046 B2 JP3473046 B2 JP 3473046B2 JP 16095593 A JP16095593 A JP 16095593A JP 16095593 A JP16095593 A JP 16095593A JP 3473046 B2 JP3473046 B2 JP 3473046B2
Authority
JP
Japan
Prior art keywords
character
vector data
upright
erect
value
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
JP16095593A
Other languages
Japanese (ja)
Other versions
JPH0777967A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP16095593A priority Critical patent/JP3473046B2/en
Publication of JPH0777967A publication Critical patent/JPH0777967A/en
Application granted granted Critical
Publication of JP3473046B2 publication Critical patent/JP3473046B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、フォントなどから読み
出した正立文字のベクトルデータに基づいて、指定され
た倍率に拡大又は縮小された非正立文字を描画するため
の方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for drawing a non-erect character which has been enlarged or reduced to a specified magnification based on vector data of an upright character read from a font or the like.

【0002】近年において、コンピュータの出力装置の
多様化が進んでいるが、これら多様化した出力装置に対
して出力するデータを統一的に取り扱うために、図形デ
ータを出力装置に依存しない形式で表現する方式がしば
しば利用されている。そのように表現されたデータに対
して、拡大、縮小、回転、変形又はこれらの組み合わせ
などの種々の変換処理が装置毎に行われるが、その変換
処理に当たっては、指定された倍率などに対してできる
だけ忠実に変換の行われることが要望されている。
In recent years, output devices of computers have been diversified, but in order to handle data output to these diversified output devices in a unified manner, graphic data are expressed in a format independent of the output devices. The method of doing is often used. Various conversion processes such as enlarging, reducing, rotating, transforming, etc. are performed on the data expressed in such a way for each device. It is desired that the conversion be performed as faithfully as possible.

【0003】[0003]

【従来の技術】図7は従来の描画装置80を示すブロッ
ク図である。描画装置80は、例えばプリンタ装置の一
部として設けられている。ホストからプリンタ装置に対
して文字情報及び制御情報が送られる。文字情報とし
て、印字すべき文字の文字コード、及び、その属性情報
であるところの、文字サイズ、字形、字体などの情報が
送られる。文字サイズ及び字形は、指定ベクトルB,U
によって指定される。指定ベクトルB(Bx,By)は
文字の横方向成分の方向及び倍率を示し、指定ベクトル
U(Ux,Uy)は文字の縦方向成分の方向及び倍率を
示す。
2. Description of the Related Art FIG. 7 is a block diagram showing a conventional drawing apparatus 80. The drawing device 80 is provided, for example, as a part of a printer device. Character information and control information are sent from the host to the printer device. As the character information, the character code of the character to be printed and its attribute information, such as the character size, the character shape, and the character style, are sent. Character size and glyph are specified vector B, U
Specified by. The designated vector B (Bx, By) indicates the direction and magnification of the horizontal component of the character, and the designated vector U (Ux, Uy) indicates the direction and magnification of the vertical component of the character.

【0004】図3は指定ベクトルB,Uを説明するため
の図である。図3(a)は、等倍の正立文字を指定する
ときの指定ベクトルB,Uである。この場合の指定ベク
トルB(1,0),U(0,1)は、それぞれ、0度
(水平方向)又は90度(垂直方向)を向いており、か
つ長さが「1」である。
FIG. 3 is a diagram for explaining the designated vectors B and U. FIG. 3A shows designated vectors B and U when designating upright characters of the same size. The designated vectors B (1,0) and U (0,1) in this case are oriented at 0 degrees (horizontal direction) or 90 degrees (vertical direction), respectively, and have a length of "1".

【0005】図3(b)(c)(d)は、それぞれ、等
倍の斜文字、等倍の−45度回転文字、2倍の−45度
回転文字を指定するときの指定ベクトルB,Uである。
例えば図3(c)において、指定ベクトルB(0.70
7,−0.707),U(0.707,0.707)
は、それぞれ、−45度又は45度の方向を向いてお
り、かつ長さが「1」である。
FIGS. 3B, 3C and 3D are designating vectors B for designating a 1 × oblique character, a 1 × -45 ° rotated character, and a 2 × −45 ° rotated character, respectively. U.
For example, in FIG. 3C, the designated vector B (0.70
7, -0.707), U (0.707, 0.707)
Are oriented at -45 degrees or 45 degrees, respectively, and have a length of "1".

【0006】また、図3(d)において、指定ベクトル
B(1.41,−1.41),U(1.41,1.4
1)は、それぞれ、−45度又は45度の方向を向いて
おり、かつ長さが「2」である。
Further, in FIG. 3D, designated vectors B (1.41, -1.41), U (1.41, 1.4)
1) is oriented at -45 degrees or 45 degrees and has a length of "2", respectively.

【0007】フォント85には、種々の字体の文字につ
いて、標準的なサイズの正立文字のベクトルデータが格
納されている。正立文字とは、明朝体、ゴシック体など
のオリジナルな字体であり、それら正立文字に対して、
回転処理、変形処理(傾斜処理)、などを施した回転文
字、斜体文字などを非正立文字という。
The font 85 stores vector data of upright characters of standard sizes for characters of various fonts. Upright letters are the original typefaces such as Mincho typeface, Gothic type, etc.
Rotated characters, italic characters, etc. that have undergone rotation processing, transformation processing (tilt processing), etc. are called non-upright characters.

【0008】さて、図7の描画装置80において、ホス
トから送られた文字情報はデータ解析部81において解
析される。座標変換部82において、指定された文字コ
ードに対応するベクトルデータがフォント85から読み
出され、指定された指定ベクトルB,Uに基づいた変換
処理が行われる。
In the drawing device 80 of FIG. 7, the character information sent from the host is analyzed by the data analysis unit 81. In the coordinate conversion unit 82, vector data corresponding to the specified character code is read from the font 85, and conversion processing is performed based on the specified vectors B and U specified.

【0009】座標変換部82の変換処理においては、次
の(1)式に基づいた演算が行われる。
In the conversion process of the coordinate conversion unit 82, an operation based on the following equation (1) is performed.

【0010】[0010]

【数1】 [Equation 1]

【0011】ここで、x,yは、元のベクトルデータの
屈曲点の座標値であり、xa,yaは、変換後のベクト
ルデータの屈曲点の座標値である。屈曲点とは、ベクト
ルデータにおける各ベクトルの接続点のことである。
Here, x and y are the coordinate values of the bending point of the original vector data, and xa and ya are the coordinate values of the bending point of the converted vector data. The bending point is a connecting point of each vector in vector data.

【0012】例えば、指定ベクトルB,Uとして、図3
(d)に示す指定ベクトルB,Uが送られてきた場合、
つまり2倍の−45度回転文字が指定された場合には、
次のようにして各屈曲点の座標値が求められる。
For example, as the designated vectors B and U, FIG.
When the designated vectors B and U shown in (d) are sent,
In other words, if a doubled -45 degree rotated character is specified,
The coordinate value of each bending point is obtained as follows.

【0013】xa=Bx・x+Ux・y=1.41・x
+1.41・y ya=By・x+Uy・y=1.41・x+1.41・
y 全ての屈曲点についての変換処理が行われた後、そのベ
クトルデータに基づいて、描画処理部83により、ビッ
トマップメモリ84上に描画されて展開される。
Xa = Bx.x + Ux.y = 1.41.x
+1.41 ・ y ya = By ・ x + Uy ・ y = 1.41 ・ x + 1.41 ・
y After the conversion processing is performed for all the bending points, the drawing processing unit 83 draws and expands on the bitmap memory 84 based on the vector data.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、上述し
た従来の変換処理によると、変換後の非正立文字の大き
さ(サイズ)が、指定されたサイズと正確には一致せ
ず、それらの間で大きさが相違するという問題があっ
た。
However, according to the above-mentioned conventional conversion processing, the size (size) of the non-upright character after conversion does not exactly match the specified size, and the size between them does not match. There was a problem that the size was different.

【0015】すなわち、理解を容易とするために、図4
に示すように、5×5ドットのサイズのフォントに格納
された正立文字である文字「X」について、2倍の拡大
正立文字が指定された場合について説明する。
That is, in order to facilitate understanding, FIG.
As shown in FIG. 5, a case will be described in which a double enlarged upright character is designated for the character “X”, which is an upright character stored in a font having a size of 5 × 5 dots.

【0016】図4に示すフォントは、左上の頂点が原点
(0,0)であり、他の3つの頂点の座標は、それぞれ
(4,0)(4,4)(0,4)である。文字「X」の
ベクトルデータの屈曲点は、4つの頂点、及び中央の点
(2,2)である。指定ベクトルB,Uは、(2,0)
(0,2)である。
In the font shown in FIG. 4, the upper left vertex is the origin (0,0), and the coordinates of the other three vertices are (4,0) (4,4) (0,4). . The bending points of the vector data of the character “X” are four vertices and the central point (2, 2). Designated vectors B and U are (2,0)
It is (0, 2).

【0017】これらの屈曲点を、上述の(1)式に基づ
いて変換し、ビットマップメモリ84に描画すると、各
屈曲点の座標値が2倍となった図6(a)に示すような
拡大正立文字が得られる。図6(a)において理解され
るように、元の文字「X」の大きさが5×5ドットであ
り、2倍の拡大正立文字は正確には10×10ドットと
ならなければならないにもかかわらす、得られた拡大正
立文字の大きさは9×9ドットとなっている。これは元
の文字「X」の9/5倍であり、指定された2倍とはな
っていない。
When these bending points are converted based on the above equation (1) and drawn in the bitmap memory 84, the coordinate values of each bending point are doubled as shown in FIG. 6 (a). Enlarged upright characters are obtained. As can be seen in FIG. 6 (a), the size of the original character "X" must be 5x5 dots, and the doubled upright erect character must be exactly 10x10 dots. The size of the obtained enlarged upright characters is 9 × 9 dots. This is 9/5 times the original character "X", not the specified double.

【0018】また、図3(d)に示すように2倍の−4
5度回転文字が指定された場合には、上述の(1)式に
基づいて同様に変換処理が行われ、変換処理後の文字
(拡大非正立文字)として、図6(b)に示されるよう
に、12×12ドットの文字が得られる。図6(b)に
示される拡大非正立文字は、図6(a)に示される拡大
正立文字をそのまま−45度回転させたものであり、そ
のサイズは、やはり2倍ではなく、約9/4倍となって
しまっている。
Further, as shown in FIG.
When the 5-degree rotated character is designated, the conversion process is similarly performed based on the above formula (1), and the converted character (enlarged non-upright character) is shown in FIG. 6B. As described above, a 12 × 12 dot character is obtained. The enlarged non-upright character shown in FIG. 6 (b) is obtained by rotating the enlarged upright character shown in FIG. 6 (a) as it is by −45 degrees, and its size is not double, but about It has become 9/4 times.

【0019】因みに、この原因は、屈曲点の位置又はア
ウトラインなどが、理想的には面積のない点又は線幅の
ない線分によって示されるのであるが、図形処理の実際
では、有限の面積を有するドット又はその連続によって
しか示すことができないためであり、変換処理に当たっ
てはドット数に倍率を乗算するのでなく、原点を「0」
とする座標値に倍率を乗算することとなっているためで
ある。
Incidentally, the cause is that the position of the bending point or the outline is ideally indicated by a point having no area or a line segment having no line width. This is because it can be indicated only by the dots that it has or its continuation, and in the conversion process, the origin is set to “0” instead of multiplying the dot number by the magnification.
This is because the coordinate value to be multiplied by is multiplied by the magnification.

【0020】本発明は、上述の問題に鑑み、フォントな
どから読み出された元の正立文字に基づいて非正立文字
を描画するに当たり、指定の倍率に基づいたより正確な
大きさの非正立文字を得ることを目的とする。
In view of the above problems, the present invention draws a non-upright character based on the original upright character read from a font or the like, and draws a non-upright character with a more accurate size based on a designated magnification. The purpose is to get upright letters.

【0021】[0021]

【課題を解決するための手段】上述した課題を達成する
ため、請求項1の発明は、元となる正立文字のベクトル
データに基づいて、指定の倍率に拡大又は縮小された非
正立文字を描画するための方法であって、前記ベクトル
データに、指定の倍率による拡大処理又は縮小処理を行
ったときのドット数より1少ない値と、元となる正立文
字のドット数より1少ない値との比の値を乗じ、これに
よって変倍正立文字のベクトルデータを求め、求められ
た変倍正立文字のベクトルデータに、回転又は変形のた
めの座標変換処理を行い、これによって非正立文字のベ
クトルデータを求め、求められた非正立文字のベクトル
データに基づいてビットマップメモリに展開することを
特徴とする。
In order to achieve the above-mentioned object, the invention of claim 1 is a non-upright character enlarged or reduced to a designated magnification based on the original vector data of the upright character. For drawing the vector data, the value being one less than the number of dots when the enlarging process or the reducing process is performed at a specified magnification, and the value being one less than the number of dots of the original erect character. The vector data of the variable upright erect character is obtained by multiplying by the value of the ratio, and the obtained vector data of the variable upright character is subjected to coordinate conversion processing for rotation or deformation, and this It is characterized in that the vector data of the upright character is obtained, and the vector data of the non-upright character is expanded in the bitmap memory based on the obtained vector data.

【0022】また、請求項2の発明は、元となる正立文
字のベクトルデータに基づいて、指定の倍率に拡大又は
縮小された非正立文字を描画するための装置であって、
前記ベクトルデータに、指定の倍率による拡大処理又は
縮小処理を行ったときのドット数から1少ない値と、元
となる正立文字のドット数より1少ない値との比の値を
乗じて変倍正立文字のベクトルデータを求めるための文
字サイズ変換手段と、前記変倍正立文字のベクトルデー
タに、回転又は変形のための座標変換処理を行って非正
立文字のベクトルデータを求めるための座標変換手段
と、前記非正立文字のベクトルデータに基づいてビット
マップメモリに展開する描画処理手段とを有してなるこ
とを特徴とする。
The invention of claim 2 is an apparatus for drawing a non-erect character enlarged or reduced to a specified magnification based on the original vector data of the erect character.
The vector data is scaled by multiplying the vector data by a ratio of a value that is one less than the number of dots when the enlarging process or the reducing process is performed at a specified magnification and a value that is one less than the number of dots of the original erect character. Character size conversion means for obtaining vector data of upright characters, and for obtaining vector data of non-upright characters by performing coordinate conversion processing for rotation or deformation on the vector data of the variable upright characters. It is characterized by comprising coordinate conversion means and drawing processing means for developing in a bitmap memory based on the vector data of the non-upright characters.

【0023】[0023]

【0024】[0024]

【0025】[0025]

【作用】元の正立文字CAに対して、まず、指定の倍率
となるように拡大処理又は縮小処理が行われ、指定の倍
率と一致する大きさの変倍正立文字CBのベクトルデー
タが求められる。
The original upright character CA is first subjected to enlargement processing or reduction processing so as to have a specified magnification, and vector data of the variable upright character CB having a size matching the specified magnification is obtained. Desired.

【0026】その際に、例えば、ベクトルデータに、指
定の倍率による拡大処理又は縮小処理を行ったときのド
ット数より1少ない値と、元となる正立文字CAのドッ
ト数より1少ない値との比の値を乗じることによって、
変倍正立文字CBのベクトルデータが求められる。
At this time, for example, the vector data has a value that is one less than the number of dots when the enlarging process or the reducing process is performed at a specified magnification, and a value that is one less than the number of dots of the original upright character CA. By multiplying by the value of the ratio of
The vector data of the variable magnification erect character CB is obtained.

【0027】次に、求められた変倍正立文字CBに対し
て、座標変換処理が行われ、その変倍正立文字CBと大
きさの等しい非正立文字CCのベクトルデータが求めら
れる。求められた非正立文字CCのベクトルデータに基
づいて、ビットマップメモリ15に非正立文字CCが展
開される。
Next, a coordinate conversion process is performed on the obtained variable upright character CB to obtain vector data of the non-upright character CC having the same size as the variable upright character CB. The non-upright character CC is expanded in the bitmap memory 15 based on the obtained vector data of the non-upright character CC.

【0028】なお、本発明において、文字には記号又は
図形などが含まれる。
In the present invention, characters include symbols or figures.

【0029】[0029]

【実施例】図1は本発明に係る描画装置2を示すブロッ
ク図、図2は描画装置2による描画処理のフローチャー
トである。なお、従来の技術の項において説明した事項
については説明を簡略化する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing a drawing apparatus 2 according to the present invention, and FIG. 2 is a flowchart of drawing processing by the drawing apparatus 2. Note that the description of the matters described in the section of the related art will be simplified.

【0030】描画装置2は、データ解析部11、文字サ
イズ変換部12、座標変換部13、描画処理部14、ビ
ットマップメモリ15、フォント16などから構成され
ている。
The drawing device 2 is composed of a data analysis unit 11, a character size conversion unit 12, a coordinate conversion unit 13, a drawing processing unit 14, a bitmap memory 15, a font 16, and the like.

【0031】データ解析部11は、ホストから図示しな
いインタフェース部を介して送られてきた文字情報及び
制御情報を解析し、それが文字情報である場合に、字体
の種別、文字コード、指定ベクトルB,Uなどを文字サ
イズ変換部12に送る(#1)。
The data analysis unit 11 analyzes the character information and control information sent from the host through an interface unit (not shown), and when it is character information, the type of character font, character code, designated vector B. , U, etc. are sent to the character size conversion unit 12 (# 1).

【0032】文字サイズ変換部12は、送られてきた字
体及び文字コードに基づいて、対応するフォント16か
ら正立文字CAであるベクトルデータ(x,y)を読み
出し、指定ベクトルB,Uに基づいて拡大処理又は縮小
処理のみを行い、変倍正立文字のデータ(xc,yc)
を算出する(#2)。
The character size conversion unit 12 reads out vector data (x, y) which are upright characters CA from the corresponding font 16 based on the sent font and character code, and based on the designated vectors B and U. Scaled up or down, and scaled erect character data (xc, yc)
Is calculated (# 2).

【0033】文字サイズ変換部12の変換処理(変倍処
理)においては、次の(2)式に基づいた演算が行われ
る。
In the conversion processing (scaling processing) of the character size conversion unit 12, an operation based on the following equation (2) is performed.

【0034】[0034]

【数2】 [Equation 2]

【0035】ここで、x,yは、元の正立文字CAのベ
クトルデータの屈曲点の座標値であり、xc,ycは、
変換後のベクトルデータの屈曲点の座標値である。ま
た、a,bは、元のフォント16の縦方向又は横方向の
ドット数であり、フォント16の内容に応じて文字サイ
ズ変換部12に予め認識されている。|B|,|U|
は、指定ベクトルB,Uの長さ(倍率)である。つま
り、 |B|=(Bx2 +By2 1/2 |U|=(Ux2 +Uy2 1/2 である。
Here, x and y are the coordinate values of the bending point of the vector data of the original upright character CA, and xc and yc are
It is the coordinate value of the inflection point of the converted vector data. Further, a and b are the number of dots in the vertical direction or the horizontal direction of the original font 16, which is recognized in advance by the character size conversion unit 12 according to the content of the font 16. | B |, | U |
Is the length (magnification) of the designated vectors B and U. That is, | B | = (Bx 2 + By 2 ) 1/2 | U | = (Ux 2 + Uy 2 ) 1/2 .

【0036】上述の(2)式は、次の(3)(4)式に
展開できる。 xc=〔(b・|B|−1)/(b−1)〕・x ……(3) yc=〔(a・|U|−1)/(a−1)〕・y ……(4) これら(3)(4)式において、各右辺のx、yにそれ
ぞれかかる係数(変倍率)は、屈曲点が座標値で表され
ることによる誤差を補正するように修正が加えられてい
る。
The above equation (2) can be expanded to the following equations (3) and (4). xc = [(b · | B | −1) / (b-1)] · x (3) yc = [(a · | U | −1) / (a-1)] · y (( 4) In these equations (3) and (4), the coefficients (magnification factors) applied to x and y on each right side are modified so as to correct an error caused by the bending point being represented by coordinate values. There is.

【0037】すなわち、例えば、フォント16のサイズ
を38×38ドットとし、2倍に変倍するとした場合に
は、各係数とも「75/37」となる。この係数の値
「75/37」は、分子がドット数の2倍である「7
6」から「1」を引いた値に、分母はドット数である
「38」から「1」を引いた値に、それぞれなってお
り、その比の値は「2」よりも大きい値である。また別
の見方をすれば、分母は頂点の座標値である「37」に
対して、その2倍の値よりも「1」だけ大きくなってい
る。これによって、例えばx又はyの値が「37」であ
った場合(頂点であった場合)に、xc又はycの値は
「75」となり、得られる変倍正立文字CBが元の大き
さの丁度2倍の76ドットとなる。
That is, for example, when the size of the font 16 is set to 38 × 38 dots and the magnification is doubled, each coefficient becomes “75/37”. The value of this coefficient "75/37" is "7" when the numerator is twice the number of dots.
The value obtained by subtracting "1" from 6 "and the denominator being the value obtained by subtracting" 1 "from" 38 "which is the number of dots are respectively, and the value of the ratio is a value larger than" 2 ". . From another point of view, the denominator is "1" larger than twice the value of "37" which is the coordinate value of the vertex. Thereby, for example, when the value of x or y is “37” (when it is a vertex), the value of xc or yc becomes “75”, and the obtained variable upright character CB has the original size. It is exactly twice as large as 76 dots.

【0038】このように、文字サイズ変換部12によっ
て、元の正立文字CAのベクトルデータの各屈曲点の座
標(x,y)が、指定された倍率に正確に合う変倍正立
文字CBに対応するベクトルデータの各屈曲点の座標
(xc,yc)に変換(変倍)される。
As described above, the character size conversion unit 12 causes the coordinates (x, y) of each bending point of the original vector data of the upright character CA to accurately match the designated magnification. Is converted (scaled) into the coordinates (xc, yc) of each bending point of the vector data corresponding to.

【0039】座標変換部13は、変倍正立文字CBのデ
ータ(xc,yc)に対して、指定ベクトルB,Uに基
づいて座標変換処理のみを行い、変倍非正立文字CCの
データ(xa,ya)を算出する(#3)。
The coordinate conversion unit 13 performs only the coordinate conversion process on the data (xc, yc) of the variable scale upright character CB based on the designated vectors B and U, and the data of the variable scale upright character CC. Calculate (xa, ya) (# 3).

【0040】座標変換部13の変換処理(座標変換処
理)においては、次の(5)式に基づいた演算が行われ
る。
In the conversion process (coordinate conversion process) of the coordinate conversion unit 13, an operation based on the following equation (5) is performed.

【0041】[0041]

【数3】 [Equation 3]

【0042】ここで、xa,yaは、変換後のベクトル
データの屈曲点の座標値である。つまり、座標変換部1
3によって、変倍正立文字CBのベクトルデータの各屈
曲点の座標(xc,yc)が、同じ大きさの変倍非正立
文字CCに対応するベクトルデータの各屈曲点の座標
(xa,ya)に変換(座標変換)される。
Here, xa and ya are the coordinate values of the inflection points of the vector data after conversion. That is, the coordinate conversion unit 1
According to 3, the coordinates (xc, yc) of each inflection point of the vector data of the variable magnification upright character CB are converted into the coordinates (xa, xa, ya)) (coordinate conversion).

【0043】描画処理部14は、変倍非正立文字CCの
各データ(xa,ya)に基づいて、ビットマップメモ
リ15に文字を描画する(#4)。ビットマップメモリ
15に描画された変倍非正立文字CCは、図示しない印
刷制御部によって用紙に印刷される。
The drawing processing unit 14 draws a character in the bitmap memory 15 based on each data (xa, ya) of the scaled non-erect character CC (# 4). The scaled non-upright characters CC drawn in the bitmap memory 15 are printed on a sheet by a print control unit (not shown).

【0044】次に、図4に示す5×5ドットのサイズの
フォントに格納された正立文字CAである文字「X」に
ついて、2倍の−45度回転文字(変倍非正立文字)が
指定された場合について具体的に説明する。
Next, with respect to the character "X" which is the upright character CA stored in the font of the size of 5.times.5 dots shown in FIG. 4, a doubled -45 degree rotation character (variable non-upright character) is used. The case where is specified will be specifically described.

【0045】図5(a)は図4に示す正立文字CAの文
字「X」から得られた変倍正立文字CBを示す図、図5
(b)は図5(a)に示す変倍正立文字CBから得られ
た変倍非正立文字CCを示す図である。なお、この場合
の指定ベクトルB,Uは(1.41,−1.41),U
(1.41,1.41)であり、|B|=2、|U|=
2、a=5、b=5である。演算結果は、例えば四捨五
入などによって整数に丸められる。
FIG. 5 (a) is a diagram showing a variable upright character CB obtained from the character "X" of the upright character CA shown in FIG.
FIG. 5B is a diagram showing a variable scale upright character CC obtained from the variable scale upright character CB shown in FIG. The designated vectors B and U in this case are (1.41, -1.41), U
(1.41, 1.41), | B | = 2, | U | =
2, a = 5 and b = 5. The calculation result is rounded to an integer, for example, by rounding.

【0046】まず、上述の(3)(4)式より、 xc=(9/4)・x yc=(9/4)・y が得られる。First, from the above equations (3) and (4), xc = (9/4) * x yc = (9/4) · y Is obtained.

【0047】文字サイズ変換部12において、例えば各
頂点の座標(0,0)(4,0)(4,4)(0,4)
は、上述の式によって、(0,0)(9,0)(9,
9)(0,9)に変換される。この変換によって得られ
た変倍正立文字CBは、図5(a)に示すように、正確
に2倍である10×10ドットの構成となっている。
In the character size conversion unit 12, for example, the coordinates of each vertex are (0,0) (4,0) (4,4) (0,4).
Is (0,0) (9,0) (9,
9) converted to (0, 9). The scaled erect character CB obtained by this conversion has a structure of 10 × 10 dots which is exactly doubled, as shown in FIG.

【0048】次に、座標変換部13において、各頂点の
座標(0,0)(9,0)(9,9)(0,9)は、上
述の(5)式に基づき、(0,0)(6,−7)(1
2,0)(6,6)に変換される。この変換によって得
られた変倍非正立文字CCは、図5(b)に示すよう
に、従来方法による同様な変倍非正立文字を示す図6
(b)に比較して1ドット程度大きくなっている。この
ように、変倍非正立文字CCの大きさの相違が改善され
てより正確に2倍の大きさとなり、本来の大きさに近づ
いたものとなっている。
Next, in the coordinate conversion unit 13, the coordinates (0,0) (9,0) (9,9) (0,9) of each vertex are calculated as (0, 0) (6, -7) (1
2,0) (6,6). The scaled non-erect character CC obtained by this conversion is, as shown in FIG. 5 (b), the same scaled non-erect character as shown in FIG.
It is about 1 dot larger than that in (b). In this way, the difference in size of the variable-magnification non-upright characters CC is improved and more accurately doubled in size, approaching the original size.

【0049】上述の実施例においては、フォント16か
ら読み出した正立文字CAであるベクトルデータに基づ
いて変倍非正立文字CCを描画する場合について説明し
たが、ホストから送られてくるベクトルデータに基づい
て描画する場合であってもよい。元の正立文字CAを縮
小する場合にも適用することができる。ビットマップメ
モリ15として、1頁分、複数頁分、又は数行分の文字
を描画することのできるメモリ、又は上述のような描画
処理専用の小さなバッファメモリなど、種々のメモリを
用いることができる。文字サイズ変換部12と座標変換
部13、又は座標変換部13と描画処理部14との間
で、他の処理が行われてもよい。
In the above embodiment, the case where the variable scale non-erect character CC is drawn based on the vector data which is the erect character CA read from the font 16 has been described, but the vector data sent from the host is described. The drawing may be performed based on It can also be applied when reducing the original upright characters CA. As the bitmap memory 15, various memories such as a memory capable of drawing characters for one page, a plurality of pages, or several lines, or a small buffer memory dedicated to the above-described drawing processing can be used. . Other processing may be performed between the character size conversion unit 12 and the coordinate conversion unit 13, or between the coordinate conversion unit 13 and the drawing processing unit 14.

【0050】上述の実施例においては、指定ベクトル
B,Uの長さが倍率を示すものである場合について説明
したが、それが変倍非正立文字CCの大きさそのものを
示す場合にも適用できることは勿論である。その場合に
は、上述の(2)式が修正される必要がある。また、指
定ベクトルB,Uに代わる別の方法によって、倍率及び
方向などが指定されてもよい。元となる正立文字CAの
サイズ、座標方向及び回転方向の取り方、少数の丸め
方、その他、描画装置2の構成、処理内容、フローチャ
ートの内容などは、上述した以外に種々変更することが
できる。
In the above-described embodiment, the case where the lengths of the designated vectors B and U indicate the magnification is explained, but it is also applied to the case where it indicates the size of the variable non-erect character CC itself. Of course you can. In that case, the above equation (2) needs to be modified. Further, the magnification and the direction may be designated by another method instead of the designated vectors B and U. The size of the original upright character CA, how to take the coordinate direction and the rotation direction, how to round a small number, the configuration of the drawing device 2, the processing content, the content of the flowchart, and the like may be variously changed other than those described above. it can.

【0051】[0051]

【発明の効果】本発明によると、フォントなどから読み
出された元の正立文字に基づいて非正立文字を描画する
に当たり、指定の倍率に基づいたより正確な大きさの非
正立文字を得ることができる。
According to the present invention, when drawing a non-upright character based on an original upright character read from a font or the like, a non-upright character of a more accurate size based on a designated magnification is used. Obtainable.

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

【図1】本発明に係る描画装置を示すブロック図であ
る。
FIG. 1 is a block diagram showing a drawing apparatus according to the present invention.

【図2】描画装置による描画処理のフローチャートであ
る。
FIG. 2 is a flowchart of a drawing process by a drawing device.

【図3】指定ベクトルを説明するための図である。FIG. 3 is a diagram for explaining a designated vector.

【図4】フォントに格納された正立文字の例を示す図で
ある。
FIG. 4 is a diagram showing an example of upright characters stored in a font.

【図5】本発明の描画方法によって図4に示す正立文字
から得られた変倍正立文字及び変倍非正立文字の例を示
す図である。
FIG. 5 is a diagram showing an example of a scaled erect character and a scaled non-erect character obtained from the erect character shown in FIG. 4 by the drawing method of the present invention.

【図6】従来の描画方法によって図4に示す正立文字か
ら得られた変倍正立文字及び変倍非正立文字の例を示す
図である。
FIG. 6 is a diagram showing an example of a scaled erect character and a scaled non-erect character obtained from the erect character shown in FIG. 4 by a conventional drawing method.

【図7】従来の描画装置を示すブロック図である。FIG. 7 is a block diagram showing a conventional drawing apparatus.

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

2 描画装置 12 文字サイズ変換部(文字サイズ変換手段) 13 座標変換部(座標変換手段) 14 描画処理部(描画処理手段) 15 ビットマップメモリ CA 正立文字 CB 変倍正立文字 CC 変倍非正立文字(非正立文字) 2 Drawing device 12 Character size conversion unit (character size conversion means) 13 Coordinate conversion unit (coordinate conversion means) 14 Drawing processing unit (drawing processing means) 15 Bitmap memory CA upright character CB variable magnification erect character CC scaling non-upright characters (non-upright characters)

───────────────────────────────────────────────────── フロントページの続き (72)発明者 芝 紀子 兵庫県加東郡社町佐保35番(番地なし) 富士通周辺機株式会社内 (72)発明者 石井 好子 兵庫県加東郡社町佐保35番(番地なし) 富士通周辺機株式会社内 (56)参考文献 特開 平2−93591(JP,A) 特開 平4−255897(JP,A) (58)調査した分野(Int.Cl.7,DB名) G09G 5/22 - 5/32 ─────────────────────────────────────────────────── --- Continuation of the front page (72) Inventor Noriko Shiba 35, Saho, Kato-gun, Hyogo Prefecture (No address) Inside Fujitsu Peripherals Co., Ltd. (72) Yoshiko Ishii 35, Saho, Kato-gun, Hyogo Prefecture (No address) In Fujitsu Peripherals Co., Ltd. (56) References JP-A-2-93591 (JP, A) JP-A-4-255897 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G09G 5/22-5/32

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 元となる正立文字のベクトルデータに基
づいて、指定の倍率に拡大又は縮小された非正立文字を
描画するための方法であって、 前記ベクトルデータに、指定の倍率による拡大処理又は
縮小処理を行ったときのドット数より1少ない値と、元
となる正立文字のドット数より1少ない値との比の値を
乗じ、これによって変倍正立文字のベクトルデータを求
め、 求められた変倍正立文字のベクトルデータに、回転又は
変形のための座標変換処理を行い、これによって非正立
文字のベクトルデータを求め、 求められた非正立文字のベクトルデータに基づいてビッ
トマップメモリに展開することを特徴とする非正立文字
の描画方法。
1. A method for drawing a non-erect character enlarged or reduced to a specified magnification based on original vector data of an upright character, wherein the vector data has a specified magnification. Multiply the value of the ratio of the value that is 1 less than the number of dots when the enlargement process or reduction process is performed and the value that is 1 less than the number of dots of the original erect character, and obtain vector data The obtained vector data of the variable upright character is subjected to coordinate conversion processing for rotation or transformation, and the vector data of the non-upright character is obtained by this, and the vector data of the non-upright character is obtained. A method for drawing a non-upright character, which is characterized by expanding in a bitmap memory based on the above.
【請求項2】 元となる正立文字のベクトルデータに基
づいて、指定の倍率に拡大又は縮小された非正立文字を
描画するための装置であって、 前記ベクトルデータに、指定の倍率による拡大処理又は
縮小処理を行ったときのドット数から1少ない値と、元
となる正立文字のドット数より1少ない値との比の値を
乗じて変倍正立文字のベクトルデータを求めるための文
字サイズ変換手段と、 前記変倍正立文字のベクトルデータに、回転又は変形の
ための座標変換処理を行って非正立文字のベクトルデー
タを求めるための座標変換手段と、 前記非正立文字のベクトルデータに基づいてビットマッ
プメモリに展開する描画処理手段とを有してなることを
特徴とする非正立文字の描画装置。
2. An apparatus for drawing a non-erect character enlarged or reduced to a specified magnification based on original vector data of an upright character, wherein the vector data has a specified magnification. To obtain vector data of a variable upright character by multiplying it by the ratio of the value that is 1 less than the number of dots when the enlargement process or the reduction process is performed and the value that is 1 less than the number of dots of the original erect character A character size conversion means, and a coordinate conversion means for performing a coordinate conversion process for rotation or deformation on the vector data of the scaled erect character to obtain vector data of a non-erect character; A non-erect character drawing device, comprising: a drawing processing unit that expands in a bitmap memory based on character vector data.
JP16095593A 1993-06-30 1993-06-30 Non-erected character drawing method and apparatus Expired - Fee Related JP3473046B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16095593A JP3473046B2 (en) 1993-06-30 1993-06-30 Non-erected character drawing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16095593A JP3473046B2 (en) 1993-06-30 1993-06-30 Non-erected character drawing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0777967A JPH0777967A (en) 1995-03-20
JP3473046B2 true JP3473046B2 (en) 2003-12-02

Family

ID=15725811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16095593A Expired - Fee Related JP3473046B2 (en) 1993-06-30 1993-06-30 Non-erected character drawing method and apparatus

Country Status (1)

Country Link
JP (1) JP3473046B2 (en)

Also Published As

Publication number Publication date
JPH0777967A (en) 1995-03-20

Similar Documents

Publication Publication Date Title
US5159668A (en) Method and apparatus for manipulating outlines in improving digital typeface on raster output devices
US5155805A (en) Method and apparatus for moving control points in displaying digital typeface on raster output devices
JP3019202B2 (en) Font type conversion method using center axis conversion
US5489920A (en) Method for determining the optimum angle for displaying a line on raster output devices
KR970008546B1 (en) Character or graphic processing method
JP3037854B2 (en) Character generation method and device
KR940006918B1 (en) Method and system for filling contours in digital typefaces
JP3473046B2 (en) Non-erected character drawing method and apparatus
JP2770582B2 (en) Figure filling device
JP2562458B2 (en) Character generation method for computer system
JP3146771B2 (en) Font rasterizing apparatus and method
JP3055306B2 (en) Data output device
JPS62212167A (en) Synthesized character forming system
JP3025141B2 (en) Character modifier
JPS6173991A (en) Display method and apparatus
JP2835056B2 (en) High quality character pattern generation method
JP3362452B2 (en) Sample point creation method when converting dot pattern data to outline data
JP3072756B2 (en) Drawing equipment
JP3084817B2 (en) Character output device
JPH0773306A (en) Method for turning outline font data into parts and outline font data generator
JPH05216457A (en) Data output device
JPH05313634A (en) Outline font developing device
JPH06110444A (en) Character processor and character output method
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH03288894A (en) Document preparing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070919

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080919

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees