Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2887263B2 - Character transformation device - Google Patents
[go: Go Back, main page]

JP2887263B2 - Character transformation device - Google Patents

Character transformation device

Info

Publication number
JP2887263B2
JP2887263B2 JP2257423A JP25742390A JP2887263B2 JP 2887263 B2 JP2887263 B2 JP 2887263B2 JP 2257423 A JP2257423 A JP 2257423A JP 25742390 A JP25742390 A JP 25742390A JP 2887263 B2 JP2887263 B2 JP 2887263B2
Authority
JP
Japan
Prior art keywords
attribute
segment
character
horizontal
vertical
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 - Lifetime
Application number
JP2257423A
Other languages
Japanese (ja)
Other versions
JPH04136898A (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
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 filed Critical Fuji Xerox Co Ltd
Priority to JP2257423A priority Critical patent/JP2887263B2/en
Publication of JPH04136898A publication Critical patent/JPH04136898A/en
Application granted granted Critical
Publication of JP2887263B2 publication Critical patent/JP2887263B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、アウトラインデータからストロークの線幅
を変更した文字や輪郭形状を部分ごとに変形した文字を
発生するディジタルベクターフォントの変形を行う文字
変形装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a character for performing a digital vector font deformation which generates a character whose stroke line width has been changed or a character whose contour has been deformed for each part from outline data. It relates to a deformation device.

〔従来の技術〕 近年、DTP(ディスク トップ パブリッシング)に
見られるように、コンピユータで活字印刷並の画質と編
集機能を目指した装置が開発されつつある。
[Prior Art] In recent years, as seen in desktop publishing (DTP), devices aiming at image quality and editing functions equivalent to those of type printing on computers have been developed.

この種の装置では、多種・多様の文字を扱うことがで
きるようにするために、文字の大きさを自由に変更でき
るフォントとして、文字の輪郭を直線および曲線(直線
/曲線)で近似して圧縮するアウトラインフォントを使
用している。
In this type of device, in order to be able to handle a wide variety of characters, the character outline is approximated by straight lines and curves (straight lines / curves) as a font whose size can be freely changed. Use outline fonts to compress.

なお、この種の従来技術を開示したものとしては、例
えば特開昭63−196986号公報を挙げることができる。
Japanese Patent Application Laid-Open No. 63-196986 is an example of this type of prior art.

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

上記従来の技術においては、アウトラインフォント
が、直線/曲線近似を制御点と呼ばれる座標値から計算
することによって行われるものであるため、全ての座標
値に同じ変換を行う既知の「アフィン変換」のような変
換は比較的簡単に、文字の品質を高く維持したまま、行
うことができるが、ストローク幅(漢字などの画幅)を
変更したり、輪郭形状を部分ごとに変換するような変形
は高品質をもって実行することが出来ないという欠点が
あった。
In the above prior art, since the outline font is obtained by calculating a straight line / curve approximation from coordinate values called control points, a known “affine transformation” that performs the same conversion for all coordinate values is used. Such conversions can be performed relatively easily while maintaining high character quality. However, deformations such as changing the stroke width (the width of an image such as a kanji) or converting the outline shape for each part are high. There was a disadvantage that it could not be performed with quality.

また、そのようなフォントを、すべてフォントデータ
として揃えてもつことは、その開発工数が膨大なものと
なること、仮に全てのフォントを開発したとしても、そ
のデータを格納する記憶手段の容量確保の点で不可能に
近い。
Also, having all such fonts as font data requires enormous development man-hours. Even if all fonts are developed, it is necessary to secure the capacity of the storage means for storing the data. Nearly impossible in point.

本発明の目的は、上記従来技術の欠点を解消し、変換
後の文字の画質低下を防いで高画質な変形文字(線幅/
部分的な形状変形)の発生を可能とした文字変形装置を
提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned disadvantages of the prior art and prevent high-quality transformed characters (line width /
It is an object of the present invention to provide a character deformation device capable of causing partial shape deformation).

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

上記目的を達成するために、本発明は、 文字の輪郭線を直線/曲線近似したデータに、その各
近似直線/曲線の状況に応じた属性を付加する属性付加
手段(第1図,第2図の100)と、 前記属性付加手段によって付加された属性を利用し
て、ストロークの線幅の変更,輪郭形状を部分的に変え
る変形を行う変形手段(第1図,第2図の200)と、 を備えたことを特徴とする。
In order to achieve the above object, the present invention provides an attribute adding means (FIG. 1, FIG. 2) for adding, to data obtained by approximating the outline of a character by a straight line / curve, an attribute according to the situation of each approximate straight line / curve. (100 in FIG. 1, FIG. 1), and deformation means (200 in FIG. 1 and FIG. 2) for performing a deformation by changing the line width of the stroke and partially changing the contour shape using the attribute added by the attribute addition means. And characterized in that:

前記属性付加手段は、文字の輪郭線を直線/曲線近似
したデータに、その各近似直線/曲線(セグメント:近
似直線/曲線の一区切り)の状況に応じた属性(近似ス
トロークの属性、例えば、横ストロークの輪郭を作る直
線)を付加する機能を持ち、 前記変形手段は、前記属性付加手段によって付加され
た属性を利用してストロークの線幅の変更、輪郭形状を
部分的に変えるような変形(例えば角ゴシックから丸ゴ
シックにするようなもの)を行う機能を持つ。
The attribute adding means adds, to the data obtained by approximating the outline of the character with a straight line / curve, an attribute (an attribute of an approximate stroke, for example, a horizontal stroke) corresponding to the state of each approximate straight line / curve (segment: one segment of the approximate straight line / curve) The transformation means has a function of adding a straight line forming a contour of a stroke, and the deformation means uses the attribute added by the attribute addition means to change the stroke line width and partially change the contour shape. For example, it has a function of performing a round gothic from a corner gothic).

また、もともと水平/垂直であったセグメントを抽出
するセグメント抽出手段(第1図の4、第2図の40)
と、線幅変換後も前記セグメントの水平/垂直を維持す
る手段(第1図,第2図の6)を設けることで、変換後
の文字の画質低下を防ぎ、高画質な変形文字(線幅/部
分的な形状変形)の発生を可能としたことを特徴とす
る。
Further, a segment extracting means for extracting a segment which was originally horizontal / vertical (4 in FIG. 1, 40 in FIG. 2)
And means (6 in FIGS. 1 and 2) for maintaining the horizontal / vertical direction of the segment even after the line width conversion is performed. (Width / partial shape deformation).

〔作用〕[Action]

属性付加手段(第1図,第2図の100)は、文字の輪
郭線を直線/曲線近似したデータに、その各近似直線/
曲線(セグメント:近似直線/曲線の一区切り)の状況
に応じた属性(近似ストロークの属性、例えば、横スト
ロークの輪郭を作る直線)を付加する。
The attribute adding means (100 in FIGS. 1 and 2) converts the approximate line /
An attribute (attribute of an approximate stroke, for example, a straight line forming an outline of a horizontal stroke) according to the situation of the curve (segment: approximate straight line / part of the curve) is added.

変形手段(第1図,第2図の200)は、属性付加手段
によって付加された属性を利用してストロークの線幅の
変更、輪郭形状を部分的に変えるような変形(例えば角
ゴシックから丸ゴシックにするようなもの)を行う。
The deforming means (200 in FIGS. 1 and 2) uses the attribute added by the attribute adding means to change the stroke line width and partially change the contour shape (for example, from square gothic to round). Gothic).

また、もともと水平/垂直であったセグメントを抽出
するセグメント抽出手段(第1図の4、第2図の40)
と、線幅変換後もそれを維持する手段(第1図,第2図
の6)は、変換後の文字の画質低下を防ぎ、高画質な変
形文字(線幅/部分的な形状変形)を発生させることを
可能とする。
Further, a segment extracting means for extracting a segment which was originally horizontal / vertical (4 in FIG. 1, 40 in FIG. 2)
And means for maintaining the line width even after the conversion (6 in FIGS. 1 and 2) prevent the image quality of the converted character from deteriorating and provide a high-quality deformed character (line width / partial shape deformation). Can be generated.

〔実施例〕〔Example〕

以下、本発明の実施例につき、図面を参照して詳細に
説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

まず、第1図により、本発明の基本構成を説明する。 First, the basic configuration of the present invention will be described with reference to FIG.

第1図は本発明による文字変形装置の基本構成を説明
するブロツク図であって、100は属性付加手段、200は変
形手段、300はフォント生成手段である。
FIG. 1 is a block diagram for explaining the basic configuration of a character transformation apparatus according to the present invention, wherein 100 is an attribute adding unit, 200 is a transformation unit, and 300 is a font generation unit.

そして、属性付加手段100を構成する1はフォントメ
モリ、2はパラメータ設定手段である。
The attribute adding means 100 has a font memory 1 and a parameter setting means 2.

変形手段200は、属性解読手段3,水平/垂直セグメン
ト抽出手段4、線幅調整手段、水平/垂直維持手段6、
形状変形手段7で構成される。
The transforming means 200 includes attribute decoding means 3, horizontal / vertical segment extracting means 4, line width adjusting means, horizontal / vertical maintaining means 6,
It is composed of shape deforming means 7.

また、フォント生成手段300は、アフィン変換手段
8、文字描画手段9、イメージメモリ10で構成される。
The font generating means 300 includes an affine conversion means 8, a character drawing means 9, and an image memory 10.

同図において、属性付加手段100のフォントメモリ1
は、文字輪郭を直線/曲線により近似したデータに、そ
の近似直線/曲線の属性を付加したアウトラインデータ
を蓄えている。
In the figure, font memory 1 of attribute adding means 100
Stores outline data obtained by adding the attribute of the approximate straight line / curve to the data obtained by approximating the character contour by a straight line / curve.

また、パラメータ設定手段2は線幅調整手段5,水平/
垂直維持手段6,形状変形手段7およびアフィン変換手段
8に対して、文字の大きさ/線幅/変換の種類など変換
に必要なパラメータを設定する。
The parameter setting means 2 includes a line width adjusting means 5, a horizontal /
For the vertical maintaining means 6, the shape deforming means 7 and the affine converting means 8, parameters necessary for conversion such as character size / line width / type of conversion are set.

一方、変形手段200の属性解読手段3は、アウトライ
ンデータの属性を解読し、これを線幅調整手段5,形状変
形手段7に供給する。
On the other hand, the attribute decoding means 3 of the deforming means 200 decodes the attribute of the outline data and supplies it to the line width adjusting means 5 and the shape deforming means 7.

水平/垂直抽出手段4は、文字の近似輪郭のうち水平
/垂直であることを抽出する機能し、線幅調整手段5
は、パラメータ設定手段2の線幅(実際は、太める値/
細める値)と、フォントメモリ1から与えられる文字の
属性を属性解読手段3の解読結果にもとづいて座標点を
変更する機能を有する。
The horizontal / vertical extraction means 4 functions to extract horizontal / vertical among the approximate contours of the character, and the line width adjustment means 5
Is the line width of the parameter setting means 2 (actually, the thickening value /
It has the function of changing the coordinate point based on the result of decoding of the attribute of the character given from the font memory 1 and of the character given from the font memory 1.

水平/垂直維持手段6は、線幅調整手段5の処理で座
標点を変更した結果、水平または垂直であった近似輪郭
が変更されるようなときに、水平または垂直を変更前と
同じに維持するよう座標点を再変更する。
The horizontal / vertical maintaining means 6 keeps the horizontal or vertical the same as before the change when the approximate contour which was horizontal or vertical is changed as a result of changing the coordinate point in the processing of the line width adjusting means 5. The coordinate points again.

形状変換手段7は、パラメータ設定手段2で設定され
たパラメータに基づく形状変換を行うために、属性解読
手段3の解読結果に基づいて、当該文字の属性のそれぞ
れの座標点を変更する。
The shape conversion means 7 changes each coordinate point of the attribute of the character based on the decoding result of the attribute decoding means 3 in order to perform the shape conversion based on the parameters set by the parameter setting means 2.

フォント生成手段300において、アフィン変換手段8
は、パラメータ設定手段3で設定されたパラメータに基
づいてアフィン変換を行う。
In the font generation means 300, the affine transformation means 8
Performs affine transformation based on the parameters set by the parameter setting means 3.

また、文字描画手段9は、アフィン変換によって変換
された座標点を直線および/または曲線描画、および直
線または曲線で囲まれた文字構成部品の内部を塗りつぶ
し処理を行って、文字を発生させる。
The character drawing means 9 generates a character by performing a straight line and / or curve drawing on the coordinate points converted by the affine transformation and a process of painting the inside of a character component surrounded by the straight line or the curve.

そして、イメージメモリ10は、文字描画手段9によっ
て描かれたイメージを蓄積する。
Then, the image memory 10 stores the image drawn by the character drawing means 9.

第2図は文字の属性の説明図であって、ここでは、同
図に示すように、角ゴジックの文字「ぱ」の輪郭を直線
とBezier(ベジエ)曲線によって近似したデータに、各
セグメントに対して次のような属性を付加したデータを
用いて、線幅制御およびストローク(一筆)の筆端を変
形して丸ゴジック文字に変換する例によって説明する。
FIG. 2 is an explanatory diagram of the attribute of the character. As shown in FIG. 2, the outline of the character “ぱ” of the corner gozic is approximated by a straight line and a Bezier curve, and each segment is On the other hand, an example will be described in which line width control is performed using data to which the following attributes are added, and the end of a stroke (one stroke) is transformed into a round Gozic character.

なお、ここで付加する属性である「付加属性」とは、
セグメント毎の輪郭の特徴を表す共通の部分を一つの概
念として括ったものをいう。
The “additional attribute”, which is the attribute to be added here,
It refers to a common concept that expresses the common features representing the contour features of each segment.

「付加属性」 1.ストローク端(エッジ)の輪郭 2.縦/横ストロークの両性質を持った輪郭 3.縦ストロークの左側の輪郭 4.縦ストロークの右側の輪郭 5.横ストロークの上側の輪郭 6.横ストロークの下側の輪郭 7.曲線ストローク(曲率の大きいストローク)の輪郭 8.円の輪郭 上記付加属性「1」は第2図ので示したストローク
の輪郭を示し、各ゴジック文字「ぱ」では6箇所ある。
"Additional attributes" 1. Outline of stroke end (edge) 2. Outline having both characteristics of vertical and horizontal stroke 3. Outline of left side of vertical stroke 4. Outline of right side of vertical stroke 5. Outline of upper side of horizontal stroke 6. The lower outline of the horizontal stroke 7. The outline of a curved stroke (stroke with a large curvature) 8. The outline of a circle The additional attribute "1" indicates the outline of the stroke shown in FIG. ", There are six places.

付加属性「2」は同じく、で示した2箇所に、付加
属性「3」はで示した5箇所、付加属性「4」はで
示した5箇所、付加属性「5」はで示した3箇所、付
加属性「6」はで示した2箇所、付加属性「7」は
で示した4箇所、付加属性「8」はで示した8箇所あ
る。
Similarly, the additional attribute “2” is provided in two places indicated by, the additional attribute “3” is provided in five places indicated by, the additional attribute “4” is provided in five places indicated by, and the additional attribute “5” is provided in three places indicated by , The additional attribute “6” has two locations indicated by, the additional attribute “7” has four locations indicated by, and the additional attribute “8” has eight locations indicated by.

第3図は本発明の一実施例の構成を説明するブロツク
図であって、属性付加手段100において、1はフォント
メモリ、20はパラメータ設定部、21は線幅制御レジス
タ、22は丸め制御レジスタ、23はアフィン係数レジス
タ、24はパラメータ入力部である。
FIG. 3 is a block diagram for explaining the configuration of one embodiment of the present invention. In the attribute adding means 100, 1 is a font memory, 20 is a parameter setting section, 21 is a line width control register, and 22 is a rounding control register. , 23 are affine coefficient registers, and 24 is a parameter input unit.

また、変形手段200において、3は属性解読部、40は
水平/垂直セグメントレジスタ、70は丸め変換部であ
る。
In the deforming means 200, reference numeral 3 denotes an attribute decoding unit, 40 denotes a horizontal / vertical segment register, and 70 denotes a rounding conversion unit.

なお、パラメータ設定部20,水平/垂直セグメントレ
ジスタ40,丸め変換部70は、それぞれ第1図のパラメー
タ設定手段2,水平/垂直セグメント抽出手段4,形状変形
手段7に相当し、第1図と同一符号は同一機能部分に対
応する。
The parameter setting unit 20, the horizontal / vertical segment register 40, and the rounding conversion unit 70 correspond to the parameter setting unit 2, the horizontal / vertical segment extraction unit 4, and the shape deformation unit 7 in FIG. 1, respectively. The same reference numerals correspond to the same functional parts.

同図において、パラメータ設定部20のパラメータ入力
部24では、下記のようなパラメータh、r、a,b,c,dの
入力を行い、それぞれを、線幅制御レジスタ21、丸め制
御レジスタ22、アフィン係数レジスタ23に登録する。
In the figure, parameters h, r, a, b, c, and d are input in the parameter input unit 24 of the parameter setting unit 20 as follows, and the parameters are respectively input to the line width control register 21, the rounding control register 22, Register in the affine coefficient register 23.

・パラメータh:線幅(オリジナルに対して細める(−)
太める(+)dot数を指定) ・パラメータr:丸め程度(丸みの度合いを小数以下で指
定する;1.0:丸ゴジック) ・パラメータa,b,c,d:アフィン変換係数 第4図はフォントメモリに記憶されたフォントデータ
の説明図であって、第2図で説明したような属性「1」
〜「8」を与えられた文字のフォントデータは、第4図
に示したように、文字の各セグメントが同図に101,102,
・・103に示したように、属性によって区切られた形で
フォントメモリ1に蓄えられている。(また、それぞれ
のセグメントの始点座標は、前のセグメントの終点に一
致している。) このようなフォントデータのうち、座標データは、水
平/垂直セグメントレジスタ40と線幅調整手段5へ送ら
れ、属性データは属性解読手段3へ送られる。
・ Parameter h: Line width (narrower than original (-)
・ Parameter r: degree of rounding (specify the degree of rounding with decimals or less; 1.0: round gozic) ・ Parameters a, b, c, d: affine transformation coefficients Figure 4 shows fonts FIG. 4 is an explanatory diagram of font data stored in a memory, wherein an attribute “1” as described in FIG. 2 is used.
As shown in FIG. 4, the font data of a character given ".about.8" is such that each segment of the character is 101, 102,
.. Are stored in the font memory 1 in a form separated by attributes as shown in 103. (In addition, the start point coordinates of each segment coincide with the end point of the previous segment.) Among such font data, the coordinate data is sent to the horizontal / vertical segment register 40 and the line width adjusting means 5. , The attribute data is sent to the attribute decoding means 3.

水平/垂直セグメントレジスタ40では、各セグメント
の座標値を計算して、水平または垂直であった場合は、
セグメント番号(文字の開始を0として1セグメントず
つインクリメントした番号)と水平(0)、垂直(1)
のフラグを記憶する。
The horizontal / vertical segment register 40 calculates the coordinate value of each segment, and if the value is horizontal or vertical,
Segment number (number incremented by one segment with the start of character set to 0), horizontal (0), vertical (1)
Is stored.

また、属性解読手段3で処理する前後合わせて3つの
セグメントの属性を線幅調整手段5へ送る。
Further, the attributes of the three segments before and after the processing by the attribute decoding unit 3 are sent to the line width adjusting unit 5.

線幅調整手段5では、属性解読手段3から送られてき
た属性と線幅制御レジスタ21の値hに従つて、次の第5
図〜第11図で説明するように座標点の処理を行う。
In accordance with the attribute sent from the attribute decoding unit 3 and the value h of the line width control register 21, the line width adjusting unit 5
Processing of coordinate points is performed as described with reference to FIGS.

第5図〜第11図は本実施例における文字変形処理の説
明図であって、第5図は属性1」の太め処理、第6図は
属性「2」の太め処理、第7図は属性「3」「4」
「5」「6」「7」の太め処理、第8図は属性「8」の
太め処理、第9図は属性「1」の丸め処理、第10図は角
の丸め処理、第11図は太め/丸め処理の説明図である。
5 to 11 are explanatory diagrams of the character deformation processing in this embodiment. FIG. 5 is a thickening processing of the attribute 1 ", FIG. 6 is a thickening processing of the attribute" 2 ", and FIG. "3""4"
8 is a thickening process for the attribute “8”, FIG. 9 is a rounding process for the attribute “1”, FIG. 10 is a rounding process for the corner, and FIG. 11 is a rounding process for the corner. It is explanatory drawing of a thickening / rounding process.

以下、第5図〜第11図の順で本実施例の文字変形の処
理を説明する。
Hereinafter, the character deformation processing of this embodiment will be described in the order of FIGS. 5 to 11.

(1)処理しているセグメントの属性が「1」の場合
(第5図参照)。
(1) When the attribute of the segment being processed is “1” (see FIG. 5).

前後のセグメントの属性がどれであっても、セグメン
トの始点/終点(P0,P3)を、ともにセグメント(延長
線幅上も含む)をh/|sinθ|ドット分(P0′,P3′に)
移動する。
Regardless of the attribute of the preceding and following segments, both the start point / end point (P0, P3) of the segment and the segment (including the extended line width) are equivalent to h / | sinθ | dots (P0 ', P3')
Moving.

なお、細めは当該セグメント上に、太めは当該セグメ
ントの延長線上に移動する(図は、太め処理を示す)。
Note that thinning moves on the segment and thickening moves on an extension of the segment (the figure shows a thickening process).

また、θ(θ0)は始点/終点でそれぞれ前後の
セグメントと交わる角度である。
Θ (θ 0 , θ 3 ) is the angle at which the start and end points intersect the preceding and following segments, respectively.

(2)処理しているセグメントの属性が「2」の場合
(第6図参照)。
(2) When the attribute of the segment being processed is “2” (see FIG. 6).

セグメントの始点/終点ともに、接続されたセグメン
トの属性が1以外(同図では属性「4」)は、それらの
セグメントの法線方向にhドット分移動する(P1→P
1′,P2→P2′,P3→P3′)。
If the attribute of the connected segment is other than 1 (attribute "4" in the figure) at both the start point / end point of the segment, the segment is moved by h dots in the normal direction of the segment (P1 → P
1 ′, P2 → P2 ′, P3 → P3 ′).

なお、細めの場合は、前記法線と逆方向に移動する。 In the case of narrowing, it moves in the direction opposite to the normal line.

P0→P0′の移動は前記(1)の処理である。 The movement from P0 to P0 'is the processing of the above (1).

(3)処理しているセグメントの属性が3、4、5、
6、7の場合(第7図参照)。
(3) The attribute of the segment being processed is 3, 4, 5,
Cases 6 and 7 (see FIG. 7).

同図に700で示したように、セグメントの始点/終点
ともに、接続されたセグメントの属性が2または当該セ
グメントと同じ属性のときは当該セグメントの法線方向
にhドット移動する(P0→P0′)。
As shown by reference numeral 700 in the drawing, when the attribute of the connected segment is 2 or the same attribute as the segment at both the start point / end point of the segment, the dot is moved by h dots in the normal direction of the segment (P0 → P0 '). ).

セグメントの始点/終点ともに接続されたセグメント
の属性が他の場合は、同図に701で示したように、当該
セグメント上に(延長線上も含む)h/|sinθ|ドット分
移動し、さらに接続されたセグメント上方向にh/|sinθ
|ドット移動する(P3→P3′)。
If the attribute of the segment connected to both the start point and the end point of the segment is other, as shown by 701 in the figure, the segment is moved by h / | sinθ | (including the extension line) on the segment and further connected. H / | sinθ above the segment
| Dot moves (P3 → P3 ').

細め/太めの方向はセグメントの属性によって異な
る。例えば、P3において、702で示したように、当該セ
グメントの属性が3で、接続されたセグメントの属性が
5で太めならば、まずYの座標が増える方向に当セグメ
ント上を移動し、さらにXの座標が減る方向に接続され
たセグメント上方向に移動する(P1→P1′,P2→P
2′)。
The thinning / thickening direction differs depending on the attribute of the segment. For example, in P3, as shown by 702, if the attribute of the segment is 3 and the attribute of the connected segment is 5 and it is thick, first move on this segment in the direction in which the coordinate of Y increases, and then X Moves upward in the connected segment in the direction in which the coordinates of (P1 → P1 ′, P2 → P
2 ').

なお、θ(θ)は始点/終点でそれぞれ前後のセグ
メントの交わる角度である。
Θ (θ 3 ) is the angle at which the front and rear segments intersect at the start point / end point.

(4)処理しているセグメントの属性が8の場合(第8
図参照)。
(4) When the attribute of the segment being processed is 8 (eighth
See figure).

セグメントの始点/終点ともに、当セグメントの法線
方向にhドット分移動する(P0→P0′,P3→P3′)。
Both the start point / end point of the segment are moved by h dots in the normal direction of the segment (P0 → P0 ′, P3 → P3 ′).

(5)ベジエ曲線の場合の制御点の移動(属性8以外の
場合)。
(5) Movement of a control point in the case of a Bezier curve (other than attribute 8).

ベジエ曲線の第一制御点をP1、第二制御点をP2とする
と、 第一制御点P1の移動量=2/3×(始点移動量)+1/3×
(終点の移動量) 第二制御点P2の移動量=1/3×(始点移動量)+2/3×
(終点の移動量) とすることで、P1→P1′、P2→P2′に各制御点を移動
する。
If the first control point of the Bezier curve is P1 and the second control point is P2, the movement amount of the first control point P1 = 2/3 × (starting point movement amount) + 1/3 ×
(Amount of movement at end point) Amount of movement of second control point P2 = 1/3 x (Amount of movement at start point) + 2/3 x
(The movement amount of the end point), the control points are moved from P1 to P1 'and from P2 to P2'.

(6)属性8の場合の制御点の移動(第8図参照)。(6) Movement of control point in case of attribute 8 (see FIG. 8).

この場合は、属性「8」すなわり円の輪郭であるか
ら、図の800に示したように、その始点,終点とも法線
方向にhだけ移動し(P0→P0′)、 第一制御点P1の移動量=(始点移動量)+1/20×(終
点の移動量) 第二制御点P2の移動量=11/20×(始点移動量)+
(終点の移動量) とすることで、第8図に示したように、P1→P1′、P2
→P2′に各制御点を移動する。
In this case, since the attribute “8” is a contour of a circle, both the start point and the end point move by h in the normal direction (P0 → P0 ′) as shown at 800 in FIG. Movement amount of point P1 = (movement amount of start point) + 1/20 x (movement amount of end point) Movement amount of second control point P2 = 11/20 x (movement amount of start point) +
(The amount of movement of the end point), as shown in FIG. 8, P1 → P1 ′, P2
→ Move each control point to P2 '.

以上のように、細め/太めの処理が終了すると、座標
値が水平/垂直維持部6へ送られ、水平/垂直セグメン
トレジスタ40で、水平/垂直と登録されたセグメント
が、変換後も水平/垂直が維持されているかを確認し、
維持されていない場合には著しい画質の低下をもたらす
ので、それぞれの座標値の平均を採用して水平/垂直を
維持するように移動する。
As described above, when the thinning / thickening processing is completed, the coordinate values are sent to the horizontal / vertical maintaining unit 6, and the segments registered as horizontal / vertical in the horizontal / vertical segment register 40 remain horizontal / vertical after conversion. Check that the vertical is maintained,
If not maintained, the image quality will be significantly degraded. Therefore, an average of the respective coordinate values is used to move so as to maintain the horizontal / vertical.

その後、丸め変換部70では属性解読部20から送られて
くる属性と水平/垂直セグメントレジスタ40からの情報
に基づいて、次のような丸め処理を行う。
After that, the rounding conversion unit 70 performs the following rounding processing based on the attribute sent from the attribute decoding unit 20 and the information from the horizontal / vertical segment register 40.

(7)属性1のセグメント(第9図参照)。(7) Attribute 1 segment (see FIG. 9).

丸め制御レジスタ22の内容rの値によって、すなわち
rの値で始点と終点を結ぶ線の曲率を制御して、セグメ
ントに曲りをもたせるように座標点を移動する。
The coordinate point is moved so that the segment has a bend by controlling the curvature of a line connecting the start point and the end point with the value of the content r of the rounding control register 22, that is, by controlling the curvature of the line connecting the start point and the end point with the value of r.

同図(a)は丸め処理前、(b)は丸め処理後を属性
「1」の形状を示す。なお、当該セグメントが直線セグ
メントである場合には、ベジエ曲線の制御点900を設定
してベジエセグメントとすることによって、丸め処理を
施こす。
FIG. 6A shows the shape of the attribute “1” before the rounding process and FIG. 6B shows the shape after the rounding process. When the segment is a straight line segment, a rounding process is performed by setting the control point 900 of the Bezier curve to make the segment a Bezier segment.

(8)水平セグメントと垂直セグメントが交わるところ
(第10図参照)。
(8) Where the horizontal and vertical segments intersect (see Figure 10).

第10図の(a)に示したように、水平セグメントと垂
直セグメントが交わるところでは、同図(b)に示した
ように、新たにセグメント1000を挿入して、上記と同様
に丸め制御レジスタ22からのパラメータrの値に応じて
角をまるめる。
As shown in FIG. 10A, where the horizontal segment and the vertical segment intersect, a new segment 1000 is inserted as shown in FIG. Round the corner according to the value of the parameter r from 22.

その後、フォント生成手段300のアフィン変換手段8
では、アフィン係数レジスタ33の値a,b,c,dで、次のよ
うに座標変換を行う。
Then, the affine transformation means 8 of the font generation means 300
Then, coordinate conversion is performed as follows using the values a, b, c, and d of the affine coefficient register 33.

X′=a×X+b×Y Y′=c×X+d×Y 以上で座標の移動は全て完了したので、その座標値か
ら文字描画部9でイメージメモリ10に輪郭近似で輪郭を
描き、内部を塗りつぶし処理し、線幅を調整/丸め処理
された文字の発生を完了する(第11図の(a)は処理
前、同(b)は処理後のエッジの形状例を示す)。
X '= a.times.X + b.times.Y Y' = c.times.X + d.times.Y Since the coordinates have been completely moved, the character drawing unit 9 draws a contour in the image memory 10 by contour approximation from the coordinate values, and paints the inside. After processing, the generation of the character whose line width has been adjusted / rounded is completed (FIG. 11 (a) shows an example of an edge shape before processing, and FIG. 11 (b) shows an example of an edge shape after processing).

以上説明した実施例では、第1図のパラメータ設定手
段2に丸め制御レジスタ22を設け、第1図の形状変換手
段7を第3図で丸め変換手段70として、筆端形状の変換
を、形状を丸くする例で説明したが、前記丸め制御レジ
スタ22に替えて鋭角化制御レジスタ、波形状制御レジス
タを設け、形状変換手段7を鋭角変換手段、波形変換手
段とすることによって、変換方法(座標点の動かしか
た)を変えることにより、筆端をとがらせたり、波だた
せた文字とすることが出来る。
In the embodiment described above, the rounding control register 22 is provided in the parameter setting means 2 in FIG. 1, and the shape conversion means 7 in FIG. 1 is used as the rounding conversion means 70 in FIG. Although an example of rounding has been described, an acute angle control register and a wave shape control register are provided in place of the rounding control register 22, and the shape converting means 7 is an acute angle converting means and a waveform converting means. You can make the brush point sharp or waved by changing the way you move it.

また、線幅制御部50に与えるパラメータを横ストロー
クのものと、縦ストロークのものと別々に与えることに
よって、それぞれのストロークの太さ制御を行うことも
出来る。
Also, by giving parameters to the line width control unit 50 separately for the horizontal stroke and for the vertical stroke, it is also possible to control the thickness of each stroke.

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

以上説明したように、本発明によれば、 (a)アウトラインデータを、ビットマップに展開する
手法は、従来どうりの手法で良い、 (b)フォントデータとして各セグメントの状況による
属性付けされたものを用いる、 (c)座標値を変換するためのパラメータを指定保持す
る手法およびセグメントの属性とパラメータを利用して
アウトラインデータの座標値を変更する手段を新たに設
ける、 ことによって、アウトラインデータから様々な変形文
字を生成させることが可能となる。
As described above, according to the present invention, (a) a method of expanding outline data into a bitmap may be a conventional method, and (b) font data is attributed according to the status of each segment. (C) a method for designating and holding parameters for converting coordinate values and a means for changing the coordinate values of the outline data using the attributes and parameters of the segment are newly provided. Various modified characters can be generated.

すなわち、本発明によれば、同一のアウトラインデー
タからストロークの線幅を変更した文字、輪郭形状を部
分ごとに変形した文字を発生させることができる。
That is, according to the present invention, it is possible to generate a character in which the line width of a stroke is changed and a character in which the outline shape is modified for each part from the same outline data.

また、水平/垂直セグメントは、そのまま維持される
ため変形後の文字品質も高品質を維持できる。
In addition, since the horizontal / vertical segments are maintained as they are, the character quality after deformation can be maintained at high quality.

そのため、多種多様のアウトラインデータを揃える必
要がないので、フォントデータを蓄積して置くためのメ
モリ容量の削減にもつながり、上記従来技術の欠点を解
消した文字変形装置を提供できる。
Therefore, since it is not necessary to prepare a variety of outline data, it is possible to reduce the memory capacity for storing font data, and to provide a character transformation apparatus that solves the above-mentioned disadvantages of the related art.

【図面の簡単な説明】 第1図は本発明による文字変形装置の基本構成を説明す
るブロック図、第2図は文字の属性の種類の説明図、第
3図は本発明の一実施例の構成を説明するブロック図、
第4図はフォントメモリに格納されるフォントデータの
説明図、第5図,第6図,第7図,第8図,第9図,第
10図,第11図は本発明の実施例における文字変形処理の
説明図である。 1……フォントメモリ、2……属性解読手段、3……パ
ラメータ設定手段、4……水平/垂直セグメント抽出手
段、5……線幅調整手段、6……水平/垂直維持手段、
7……形状変形手段、8……アフィン変換手段、9……
文字描画手段、10……イメージメモリ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram for explaining a basic configuration of a character transformation device according to the present invention, FIG. 2 is a diagram for explaining types of character attributes, and FIG. 3 is an embodiment of the present invention. Block diagram illustrating the configuration,
FIG. 4 is an explanatory view of the font data stored in the font memory, FIG. 5, FIG. 6, FIG. 7, FIG.
FIG. 10 and FIG. 11 are explanatory diagrams of the character deformation processing in the embodiment of the present invention. 1 ... Font memory, 2 ... Attribute decoding means, 3 ... Parameter setting means, 4 ... Horizontal / vertical segment extracting means, 5 ... Line width adjusting means, 6 ... Horizontal / vertical maintaining means,
7 ... shape deforming means, 8 ... affine transformation means, 9 ...
Character drawing means, 10 ... Image memory.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】文字の輪郭線を直線/曲線近似したデータ
に、その各近似直線/曲線の状況に応じた属性を付加す
る属性付加手段と、 前記属性付加手段によって付加された属性を利用して、
ストロークの線幅の変更,輪郭形状を部分的に変える変
形を行う変形手段と、 を備えたことを特徴とする文字変形装置。
1. An attribute adding means for adding an attribute according to the situation of each approximate line / curve to data obtained by approximating a contour line of a character with a straight line / curve, and using the attribute added by the attribute adding means. hand,
A character deforming device, comprising: deforming means for changing a line width of a stroke and partially changing a contour shape.
JP2257423A 1990-09-28 1990-09-28 Character transformation device Expired - Lifetime JP2887263B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2257423A JP2887263B2 (en) 1990-09-28 1990-09-28 Character transformation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2257423A JP2887263B2 (en) 1990-09-28 1990-09-28 Character transformation device

Publications (2)

Publication Number Publication Date
JPH04136898A JPH04136898A (en) 1992-05-11
JP2887263B2 true JP2887263B2 (en) 1999-04-26

Family

ID=17306165

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2257423A Expired - Lifetime JP2887263B2 (en) 1990-09-28 1990-09-28 Character transformation device

Country Status (1)

Country Link
JP (1) JP2887263B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0604685A1 (en) * 1992-12-28 1994-07-06 Océ-Nederland B.V. Method of modifying the fatness of characters
JP3238580B2 (en) * 1994-09-14 2001-12-17 シャープ株式会社 Thicker text generator

Also Published As

Publication number Publication date
JPH04136898A (en) 1992-05-11

Similar Documents

Publication Publication Date Title
KR100216614B1 (en) Character pattern generating device
JPS60500385A (en) Method and apparatus for representing curves of uniform width
JPH06149212A (en) Character generation method and apparatus
JPH0916146A (en) Character / symbol pattern generator
JP2887263B2 (en) Character transformation device
JP2004004302A (en) System for generating font by genetic algorithm
US5542050A (en) Font information transfer system
JP2833101B2 (en) Pattern deformation method
JP2003209685A (en) Resolution improvement method, apparatus, program, recording medium, lookup table construction method, and lookup table
JPH06274149A (en) Method and device for varying width of outline font
JPH08194816A (en) Segment approximation method and its system
JPS62211692A (en) Preparation system for character of varied size
JPH05314268A (en) Curve drawing method and device
JP2856704B2 (en) Character generator
JPH04280296A (en) Contour data processing device
JP2521756B2 (en) Pattern data generator
JP3381326B2 (en) Outline font data coordinate normalization method and outline font data generation device
JP2881884B2 (en) Document creation device
JPS62175794A (en) Character generator
JP2908194B2 (en) Character transformation control method
JP3160957B2 (en) Document creation device
JPS62212167A (en) Synthesized character forming system
JPS62211691A (en) Character synthesization system
JPH1020846A (en) Character processor
Sohel et al. Modified Model for Bezier Curves