JPH03113497A - Character generating device - Google Patents
Character generating deviceInfo
- Publication number
- JPH03113497A JPH03113497A JP1250559A JP25055989A JPH03113497A JP H03113497 A JPH03113497 A JP H03113497A JP 1250559 A JP1250559 A JP 1250559A JP 25055989 A JP25055989 A JP 25055989A JP H03113497 A JPH03113497 A JP H03113497A
- Authority
- JP
- Japan
- Prior art keywords
- font
- deformation
- character
- information
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 abstract description 5
- 230000009466 transformation Effects 0.000 description 22
- 238000000034 method Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 11
- 230000004048 modification Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 7
- 230000001131 transforming effect Effects 0.000 description 7
- 238000005034 decoration Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000011426 transformation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000002715 modification method Methods 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は文字発生装置に関し、例えばフォントデータに
基づいて文字を発生する文字発生装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character generator, and more particularly, to a character generator that generates characters based on font data.
[従来の技術]
通常、文字は1文字ごとにフォントデータ(ここでは、
アウトラインデータ)を有している。類似した技術とし
て、1つのフォントデータから袋文字やシャドウをつけ
た文字等を発生方法がある。[Prior art] Normally, each character has font data (here,
outline data). As a similar technique, there is a method of generating outline characters, characters with shadows, etc. from one font data.
[発明が解決しようとしている課題]
しかしながら、文字種(書体)を増やすためには、デー
タ容量の問題や開発等の問題を考慮し、1つのデータか
ら複数の書体が発生できれば良い。[Problems to be Solved by the Invention] However, in order to increase the number of character types (fonts), it is sufficient to be able to generate a plurality of fonts from one piece of data, taking into account issues such as data capacity and development.
また、従来例では、文字を変形しても単なる書体の装飾
というイメージしかな(、別書体という感じを出すこと
ができないという欠点があった。In addition, in the conventional example, even if the characters were transformed, it only gave the impression that it was simply a decoration of the typeface (there was a drawback that it was not possible to create the impression that it was a different typeface).
本発明は上述した従来例の欠点に鑑みてなされたもので
あり、その目的とするところは、文字の骨格は同じであ
るが書体が異なる文字をひとつのフォントデータから発
生させることができる文字発生装置を提供する点にある
。The present invention has been made in view of the drawbacks of the conventional examples described above, and its purpose is to generate characters that have the same character skeleton but different fonts from a single font data. The point is to provide equipment.
[課題を解決するための手段]
上述した課題を解決し、目的を達成するため、本発明に
係わる文字発生装置は、フォント情報を記憶する記憶手
段と、前記記憶されたフォント情報を読出す読出手段と
、前記読出されたフォント情報から変形対象の部位を検
出する検出手段と、前記検出された変形対象の部位を変
形する変形手段と、前記変形によってフォントパターン
を発生する発生手段とを備える。[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the objectives, a character generation device according to the present invention includes a storage means for storing font information, and a reading device for reading out the stored font information. a detecting means for detecting a part to be transformed from the read font information, a transforming means for transforming the detected part to be transformed, and a generating means for generating a font pattern by the transformation.
[作用]
かかる構成によれば、記憶手段はフォント情報を記憶し
、記憶されたフォント情報を読出し、検出手段は読出さ
れたフォント情報から変形対象の部位を検出し、変形手
段は検出された変形対象の部位を変形し、発生手段は変
形によってフォントパターンを発生する。[Operation] According to this configuration, the storage means stores font information, reads out the stored font information, the detection means detects a part to be transformed from the read font information, and the transformation means detects the detected transformation. The target part is transformed, and the generating means generates a font pattern by the transformation.
[実施例]
以下に、添付図面を参照して本発明に係る好適な実施例
を詳細に説明する。[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
く第1実施例〉 まず、第1実施例について説明する。First Example> First, a first example will be described.
第1図は第1実施例の基本構成を示すブロック図である
。同図において、1は記憶手段を示し、これは文字を輪
郭線で表わしたフォントデータ、即ち、アウトラインフ
ォントを記憶している。ここでは、一般的なゴシック体
を記憶していると仮定する。2は変形情報記憶手段を示
し、これは文字の横角の端をある曲率で丸(する情報や
文字の角になる部分をある曲率で丸(する情報等の変形
情報を記憶している。ここでは、変形情報がパラメータ
として記憶されており、各種変形情報に基づいて記憶手
段1に記憶されたアウトラインフォントのデータが変形
される。3は発生・変形手段を示し、これは変形情報記
憶手段2から得た変形情報に基づいて記憶手段1から受
けとったフォントデータ(アウトラインフォント)を変
形し、文字パターンを発生する。FIG. 1 is a block diagram showing the basic configuration of the first embodiment. In the figure, reference numeral 1 indicates a storage means, which stores font data in which characters are represented by outline lines, that is, an outline font. Here, it is assumed that you have memorized the general Gothic font. Reference numeral 2 indicates a deformation information storage means, which stores deformation information such as information on rounding the horizontal corners of characters with a certain curvature and information on rounding the corners of characters with a certain curvature. Here, transformation information is stored as a parameter, and the data of the outline font stored in the storage means 1 is transformed based on various transformation information. 3 indicates a generation/transformation means, which is a transformation information storage means. The font data (outline font) received from the storage means 1 is transformed based on the transformation information obtained from step 2 to generate a character pattern.
第2図は第1実施例の文字発生装置の構成を示すブロッ
ク図である。同図において、10は印刷や表示に用いら
れる文字画像のフォントパターンを発生する文字発生装
置を示している。20は文字発生処理の全動作の制御を
行う中央処理装置(CPU)を示している。30は制御
プログラム、エラー処理プログラム、後述の第3図に示
されるフローチャートに従ったプログラム等を記憶して
いる。CPU20は第3図に示される制御手順を実行し
て各種の文字パターンを発生する。40は各種プログラ
ムのワークエリア及びエラー処理時の一時退避エリアと
して用いるRAMを示している。50はアウトラインフ
ォントデータを記憶しているフォント用メモリを示し、
ここではゴシック体のアウトラインフォントが使用され
る。FIG. 2 is a block diagram showing the configuration of the character generator of the first embodiment. In the figure, numeral 10 indicates a character generating device that generates a font pattern for character images used for printing and display. Reference numeral 20 indicates a central processing unit (CPU) that controls all operations of character generation processing. 30 stores a control program, an error processing program, a program according to a flowchart shown in FIG. 3, which will be described later, and the like. The CPU 20 executes the control procedure shown in FIG. 3 to generate various character patterns. Reference numeral 40 indicates a RAM used as a work area for various programs and a temporary save area during error processing. 50 indicates a font memory storing outline font data;
A Gothic outline font is used here.
このフォント用メモリ50には、第1図の記憶手段1が
対応する。60は変形情報用メモリを示し、これはフォ
ント用メモリ50から受は取ったアウトラインフォント
データをCPU20で変形させるための各種変形情報を
記憶している。この変形情報用メモリ60には、第1図
の変形情報記憶手段2が対応する。90はホストコンピ
ュータ等による文字発生対象の文字コードを出力する外
部装置を示している。70は大力バッファを示し、これ
は外部装置90からの入力データを一時格納する。80
は出力バッファを示し、これはCUP20の処理の結果
発生したフォントデータを一時格納する。lOOは出力
バッファ80から出力されるフォントデータに基づいて
文字画像を表示または印刷する出力装置を示している。This font memory 50 corresponds to the storage means 1 shown in FIG. Reference numeral 60 denotes a transformation information memory, which stores various transformation information for the CPU 20 to transform the outline font data received from the font memory 50. This deformation information memory 60 corresponds to the deformation information storage means 2 shown in FIG. Reference numeral 90 indicates an external device that outputs a character code for character generation by a host computer or the like. Reference numeral 70 indicates a large power buffer, which temporarily stores input data from the external device 90. 80
indicates an output buffer, which temporarily stores font data generated as a result of processing by the CUP 20. lOO indicates an output device that displays or prints a character image based on font data output from the output buffer 80.
次に、第1実施例による文字の変形原理を説明する。Next, the principle of character transformation according to the first embodiment will be explained.
第4図(A)、(B)、(C)及び第5図(A)、(B
)、(C)は第1実施例の変形情報の種類を説明する図
である。第6図(’A )(B)、(C)は第1実施例
による文字の変形前後を示す図である。Figure 4 (A), (B), (C) and Figure 5 (A), (B
) and (C) are diagrams illustrating types of modification information in the first embodiment. FIGS. 6('A), 6(B), and 6(C) are diagrams showing characters before and after transformation according to the first embodiment.
まず、第1実施例では、アウトラインフォントデータの
書体として第6図(A)に示される文字「相」のように
ゴシック体が使用される。変形部位としては、縦画及び
横面及び斜め線の端や斜めの曲線の角、または、“口”
等の四角の角等が該当する。例えば、第4図(A)に示
されるように、変形部位となる横面の端を変形させる場
合、第4図(B)に示されるように丸(形成したり、第
4図(C)に示されるようにくさび状の飾りを形成して
異なる書体が発生する。同様に、第5図(A)に示され
るように、変形部位となる°゛口゛等の四角の角を変形
させる場合、第5図(B)に示されるように丸く形成し
たり、第5図(C)に示されるようにくさび状の飾りを
形成して異なる書体が発生する。以上の変形方法に基づ
いて、第6図(A)に示される文字「相jを変形させる
場合には、元のアウトラインフォントデータから上述し
た変形部位を検出して、例えば、第6図(B)に示され
るように、角部に丸みのある書体の文字「相」を発生し
たり、第6図(C)に示されるように、角部が飾られた
書体の文字「相jを発生する。First, in the first embodiment, a Gothic font is used as the font of the outline font data, such as the character "Sou" shown in FIG. 6(A). Deformed parts include vertical and horizontal drawings, edges of diagonal lines, corners of diagonal curves, or the “mouth”.
This applies to the corners of squares such as. For example, as shown in FIG. 4(A), when deforming the edge of the lateral surface that becomes the deformed part, it may be formed into a circle (as shown in FIG. 4(B)) or As shown in Fig. 5(A), different typefaces are generated by forming wedge-shaped decorations.Similarly, as shown in Fig. 5(A), the corners of squares such as ゛mouth゛, which are the deformed parts, are deformed. In this case, different typefaces are generated by forming round shapes as shown in Figure 5(B) or forming wedge-shaped decorations as shown in Figure 5(C).Based on the above transformation method, , When transforming the character "phase j" shown in FIG. 6(A), the above-mentioned deformed part is detected from the original outline font data and, for example, as shown in FIG. 6(B), A character "phase" in a typeface with rounded corners is generated, or a character "phase j" in a typeface with decorated corners as shown in FIG. 6(C) is generated.
次に、第1実施例の動作について説明する。Next, the operation of the first embodiment will be explained.
第3図は第1実施例のCPU20による書体変換処理の
動作を説明するフローチャートである。FIG. 3 is a flowchart illustrating the operation of font conversion processing by the CPU 20 of the first embodiment.
まず、外部装置90から発生すべき文字の文字コードが
受信されると、その文字コードは大力バッファ70に格
納される(ステップSL、ステップS2)。次に、受信
された文字コードに従ってフォント用メモリ50からア
ウトラインフォントデータが読み出され(ステップS3
)、そのデータから線端の角や“口”の角等の変形対象
部位が検出される(ステップS4)。そして、上記デー
タの変形部位に対応した変形情報が変形情報用メモリ6
0から読出され(ステップS5)、その変形対象部位が
変形される(ステップS6)。この変形によって得られ
たアウトラインデータはドツトデータに変換処理され(
ステップS7)、その後に出力バッファ8oに出力され
る(ステップS8)。そして、出力バッファ80から出
力装置100に書体が変形されたドツトデータが送信さ
れる(ステップS9)。First, when the character code of a character to be generated is received from the external device 90, the character code is stored in the power buffer 70 (step SL, step S2). Next, outline font data is read from the font memory 50 according to the received character code (step S3
), and parts to be transformed, such as the corners of line ends and the corners of the "mouth", are detected from the data (step S4). Then, the deformation information corresponding to the deformed part of the data is stored in the deformation information memory 6.
0 is read out (step S5), and the region to be transformed is transformed (step S6). The outline data obtained by this transformation is converted into dot data (
Step S7), and then output to the output buffer 8o (Step S8). Then, the dot data with the modified font is transmitted from the output buffer 80 to the output device 100 (step S9).
ここで、上述したステップS4での角を検出する方法と
しては、アウトラインフォントの輪郭線のベクトルの方
向から検出する等のように複数の方法が考えられる。ま
た、上述した処理は、−文字分の書体の変形であるため
、書体の種類を選択する方法が述べられていないが、そ
の選択方法については、文字単位、ページ単位等があり
これは公知のため、説明を省略する。Here, as a method for detecting the corner in step S4 described above, a plurality of methods can be considered, such as detecting from the direction of the vector of the outline of the outline font. In addition, since the above-mentioned process is a transformation of the font for -characters, the method for selecting the type of font is not described, but there are several methods for selecting the font type, such as character by character and page by page, which are well-known methods. Therefore, the explanation will be omitted.
以上説明したように、第1実施例によれば、ひとつのア
ウトラインフォントデータから、無数のフォントデータ
を発生することが可能となり、出力文字画像の書体を多
様化することができる。同時に、従来、書体の開発にか
かっていた膨大な時間を削減できるだけでな(、フォン
トデータのメモリ容量も少なくて済む。As described above, according to the first embodiment, it is possible to generate an infinite number of font data from one outline font data, and it is possible to diversify the fonts of output character images. At the same time, it not only reduces the enormous amount of time traditionally required to develop typefaces (it also requires less memory capacity for font data).
さて、上記第1実施例の変形例を以下に述べる。Now, a modification of the first embodiment will be described below.
(1)上述した第1実施例では、アウトラインフォント
データの段階で角の検出及び変形を行ってドツトフォン
トに変換しているが、アウトラインフォントをドツトフ
ォントに変換した後に角を検出し、その角部な変形する
ことも可能である。(1) In the first embodiment described above, corners are detected and transformed at the outline font data stage and converted to a dot font. However, after converting an outline font to a dot font, corners are detected and the corners are It is also possible to make some modifications.
(2)上述した第1実施例では、元のフォントデータを
ゴシック体としているが、本発明はこれに限定されるも
のではな(、本発明の趣旨を逸脱しない範囲であれば、
明朝体等のように他の書体でもよい。(2) In the first embodiment described above, the original font data is Gothic, but the present invention is not limited to this (as long as it does not depart from the spirit of the present invention,
Other fonts such as Mincho font may also be used.
(3)上述した第1実施例では、元のフォントデータを
アウトラインフォントとしているが、骨格フォント、ベ
クトルフォント、ドツトフォント等でも良いことは述べ
るまでもない。(3) In the first embodiment described above, the original font data is an outline font, but it goes without saying that skeleton fonts, vector fonts, dot fonts, etc. may also be used.
(4)上述した第1実施例では、変形情報としてのパラ
メータを持っているが、パターンそのものを持つことで
その変形部分を置き換えることにより変形しても良い。(4) Although the first embodiment described above has parameters as transformation information, it is also possible to have the pattern itself and transform it by replacing the modified portion.
(5)上述した第1実施例では、CPU20によって毎
回「角」を検出しているが、予めアウトラインフォント
のデータの中に「角」の情報を入れてお(ことによって
、第3図のステップS4の「角」を検出する工程を「角
情報」を検出する工程に置き換えることも可能である。(5) In the first embodiment described above, the "corner" is detected every time by the CPU 20, but the "corner" information is included in the outline font data in advance (by doing so, the step shown in FIG. It is also possible to replace the step of detecting the "corner" in S4 with the step of detecting "corner information".
く第2実施例〉 次に、本発明の第2実施例について説明する。Second embodiment> Next, a second embodiment of the present invention will be described.
第2実施例も第1実施例と全体の構成がほぼ同様のため
、全体の説明を省略し、異なる点について説明する。第
1実施例では、変形情報記憶手段2に文字の横面の端を
成る曲率で丸くする情報や文字の角になる部分を成る曲
率で丸(する情報等が記憶されていたが、第2実施例で
は、変形情報記憶手段2° (不図示)に文字の直線部
分をその長さ等によっである曲率で湾曲させる情報や記
憶手段1で記憶しているアウトラインフォントデー夕を
変形させるためのパラメータ、即ち、変形情報が記憶さ
れている。従って、変形情報用メモリ60° (不図示
)には、以上の変形情報が記憶されている。Since the second embodiment has almost the same overall configuration as the first embodiment, the overall explanation will be omitted and only the different points will be explained. In the first embodiment, the deformation information storage means 2 stores information such as rounding the side edges of characters with a certain curvature, and information rounding the corners of characters with a certain curvature. In the embodiment, information for curving a straight line part of a character with a certain curvature depending on its length, etc. is stored in the transformation information storage means 2 (not shown), and information for transforming the outline font data stored in the storage means 1 is stored. parameters, that is, deformation information are stored.Therefore, the deformation information memory 60° (not shown) stores the above deformation information.
次に、第2実施例の文字の変形処理について説明する。Next, character transformation processing in the second embodiment will be explained.
第8図(A)、(B)、(C)は第2実施例の変形情報
の種類を説明する図である。第9図(A)、(B)、(
C)は第2実施例による文字の変形前後を示す図である
。FIGS. 8(A), 8(B), and 8(C) are diagrams for explaining types of modification information in the second embodiment. Figure 9 (A), (B), (
C) is a diagram showing characters before and after deformation according to the second embodiment.
第2実施例も第1実施例と同様に、元となるアウトライ
ンフォントデータの書体をゴシック体とする。第2実施
例では、アウトラインの直線部(または曲線部)を変形
対象部位とし、アウトラインフォントデータかも直線部
(または曲線部)が検出されると、その線の端から端を
ある与えられた曲率の曲線に変形する。例えば、第8図
(A)に示される文字の一部の場合、変形対象部位は直
線部となり、第8図(B)に示される書体への変形方法
によると、外方に膨らむように変形が行われ、また、第
8図(C)に示される書体への変形方法によると、内方
へ窪むように変形が行われる。ただし、第8図(C)に
示される書体の場合、アウトラインフォントの輪郭にお
いて、直線と直線とがぶつかり合う角度が180゛以下
であれば、通常の変形を行い、その角度が180゜を越
えるのであれば、変形対象の直線部は変形させずに残す
。従って、第9図(A)に示されるゴシック体の文字「
相」の書体を変形させる場合、第8図(B)に示した変
形方法では、第9図(B)に示される丸みを帯びた形状
の書体となり、また、第8図(C)に示した変形方法で
は、第9図(C)に示される絞んだ形状の書体となる。In the second embodiment, as in the first embodiment, the font of the original outline font data is Gothic. In the second embodiment, the straight part (or curved part) of the outline is the part to be transformed, and when a straight part (or curved part) is detected in the outline font data, the end of the line is changed to a certain given curvature. deforms into a curve. For example, in the case of a part of the character shown in Figure 8 (A), the part to be transformed is a straight line part, and according to the transformation method to the typeface shown in Figure 8 (B), it is deformed so as to bulge outward. According to the method of transforming the font shown in FIG. 8(C), the font is transformed so as to be concave inward. However, in the case of the typeface shown in Figure 8 (C), if the angle at which two straight lines collide in the outline of the outline font is less than 180°, normal transformation will be performed, and if the angle exceeds 180°, , the straight line part to be deformed is left undeformed. Therefore, the Gothic letters "
When transforming the font ``Sou'', the deformation method shown in Figure 8(B) results in a rounded typeface as shown in Figure 9(B), and the font has a rounded shape as shown in Figure 8(C). With the above modification method, a font with a narrowed shape as shown in FIG. 9(C) is obtained.
この第9図CC)に示される文字「相」においては、輪
郭線が“口”を形成する部位には変形を施しておらず、
これは、上述したように、輪郭線の直線と直線とがぶつ
かり合う角度が180゜を越えてしまうためである。以
上の変形情報は、不図示の変形情報用メモリ60’に記
憶されている。In the character ``Ao'' shown in Figure 9 CC), the part where the outline forms the ``mouth'' is not modified;
This is because, as described above, the angle at which the straight lines of the contour lines collide exceeds 180°. The above modification information is stored in a modification information memory 60' (not shown).
次に、第2実施例の動作について説明する。Next, the operation of the second embodiment will be explained.
第7図は第2実施例のCPUによる書体変換処理の動作
を説明するフローチャートである。FIG. 7 is a flowchart illustrating the operation of font conversion processing by the CPU of the second embodiment.
第2実施例も第1実施例と同様に、文字の書体変形が行
われるため、異なる処理のみを取り出して説明する。尚
、第7図において、第3図に示される第1実施例の処理
と同様のステップSには同一番号を付加している。In the second embodiment, as in the first embodiment, the fonts of the characters are transformed, so only the different processes will be explained. In FIG. 7, the same numbers are added to steps S that are the same as those in the first embodiment shown in FIG.
処理の異なる部分は、第1実施例で角部の検出を行った
ステップS4(第3図)に対して、第2実施例では直線
部の検出を元のアウトラインフォントから検出する点に
ある(ステップ514)。The difference in processing is that in contrast to step S4 (Fig. 3) in which corner parts were detected in the first embodiment, in the second embodiment straight parts are detected from the original outline font ( Step 514).
以降は、第1実施例での角部の変形情報を読み出すと同
様に、変形情報用メモリ60゛ (不図示)から第8図
(B)や第8図(C)に示される変形方法で書体を変形
し、出力する。なお、上述したステップS4での直線を
検出する方法としては、アウトラインフォントの輪郭線
のベクトルの方向から検出する等のように複数の方法が
考えられる。また、上述した処理は、−文字分の書体の
変形であるため、書体の種類を選択する方法が述べられ
ていないが、その選択方法については、文字単位、ペー
ジ単位等がありこれは公知のため、説明を省略する。Thereafter, in the same way as reading the corner deformation information in the first embodiment, the deformation information is read from the deformation information memory 60' (not shown) using the deformation method shown in FIGS. 8(B) and 8(C). Transform the font and output. Note that a plurality of methods can be considered for detecting the straight line in step S4 described above, such as detecting from the direction of the vector of the contour line of the outline font. In addition, since the above-mentioned process is a transformation of the font for -characters, the method for selecting the type of font is not described, but there are several methods for selecting the font type, such as character by character and page by page, which are well-known methods. Therefore, the explanation will be omitted.
このように、第2実施例においても第1実施例と同様の
作用・効果を得ることができる。In this way, the second embodiment can also provide the same functions and effects as the first embodiment.
さて、上記第2実施例の変形例を以下に述べる。Now, a modification of the second embodiment will be described below.
(1)上述した第2実施例では、アウトラインの段階で
直線の検出及び変形を行ってドツトフォントにしている
が、最初に読出したアウトラインをドツトフォントにし
てから直線を検出し、変形することも可能である。(1) In the second embodiment described above, straight lines are detected and transformed at the outline stage to create a dot font, but it is also possible to transform the first read outline into a dot font and then detect straight lines and transform it. It is possible.
(2)上述した第2実施例では、元のフォントデータを
ゴシック体としているが、本発明はこれに限定されるも
のではなく、本発明の趣旨を逸脱しない範囲であれば、
明朝体等のように他の書体でもよい。(2) In the second embodiment described above, the original font data is Gothic, but the present invention is not limited to this, and as long as it does not depart from the spirit of the present invention.
Other fonts such as Mincho font may also be used.
(3)上述した第2実施例では、元のフォントデータを
アウトラインフォントとしているが、骨格フォント、ベ
クトルフォント、ドツトフォントとしても良いことは述
べるまでもない。(3) In the second embodiment described above, the original font data is an outline font, but it goes without saying that a skeleton font, vector font, or dot font may also be used.
(4)上述した第2実施例では、変形情報としての値(
パラメータ)を持っているが、パターンそのものを持ち
、そのバクーン部分を置き換えることにより変形を行っ
ても良い。(4) In the second embodiment described above, the value (
(parameters), but it is also possible to have the pattern itself and transform it by replacing the Bakun part.
(5)上述した第2実施例では、CPUにて、毎回「直
線」を検出しているが、予めアウトラインフォントデー
タの中に「直線」の情報を入れておいても良い(実際に
はこの型のデータが多い)。(5) In the second embodiment described above, the CPU detects a "straight line" every time, but it is also possible to include "straight line" information in the outline font data in advance (actually, this type data).
この場合、第7図のステップS14の「直線」を検出す
る工程を「直線情報」(「直線フラッグ」)を検出する
工程とすれば良い。In this case, the step of detecting a "straight line" in step S14 in FIG. 7 may be replaced with the step of detecting "straight line information"("straight line flag").
さて、上述した第1.第2実施例は、それぞれ別々に説
明されているが、外部装置からの命令で上述した各書体
への変形を指示きできるようにして、同一の文字発生装
置で書体の種類を更に増やすようにしても良い。Now, the first point mentioned above. Although the second embodiment has been described separately, it is possible to instruct transformation into each of the above-mentioned fonts by commands from an external device, thereby further increasing the number of font types using the same character generator. It's okay.
[発明の効果]
以上説明したように、本発明によれば、ひとつのアウト
ラインフォントデータから、無数のフォントデータを発
生することが可能となり、出力文字画像の書体を多様化
することができる。同時に、従来、書体の開発にかかっ
ていた膨大な時間を削減できるだけでな(、フォントデ
ータのメモリ容量も少なくて済む。[Effects of the Invention] As described above, according to the present invention, it is possible to generate an infinite number of font data from one outline font data, and it is possible to diversify the fonts of output character images. At the same time, it not only reduces the enormous amount of time traditionally required to develop typefaces (it also requires less memory capacity for font data).
第1図は第1実施例の基本構成を示すブロック図、
第2図は第1実施例の文字発生装置の構成を示すブロッ
ク図、
第3図は第1実施例のCPU20による書体変換処理の
動作を説明するフローチャート、第4図(A)、(B)
、(C)及び第5図(A)、(B)、(C)は第1実施
例の変形情報の種類を説明する図、
第6図(A)、(B)、(C)は第1実施例による文字
の変形前後を示す図、
第7図は第2実施例のCPUによる書体変換処理の動作
を説明するフローチャート、
第8図(A)、(B)、(C)は第2実施例の変形情報
の種類を説明する図、
第9図(A)、(B)、(C)は第2実施例による文字
の変形前後を示す図である。
図中、1・・・記憶手段、2・・・変形情報記憶手段、
3・・・発生・変形手段、10・・・文字発生装置、2
0・・・CPU、30・・・ROM、40・・・RAM
。
50・・・フォント用メモリ、60・・・変形情報用メ
モリ、70・・・入力バッファ、80・・・出力バッフ
ァ、9o・・・外部装置、100・・・出力装置である
。FIG. 1 is a block diagram showing the basic configuration of the first embodiment, FIG. 2 is a block diagram showing the configuration of the character generator of the first embodiment, and FIG. 3 is a block diagram showing the font conversion process by the CPU 20 of the first embodiment. Flowchart explaining the operation, Fig. 4 (A), (B)
, (C) and FIGS. 5(A), (B), and (C) are diagrams explaining the types of deformation information of the first embodiment. FIGS. 7 is a flowchart illustrating the operation of the font conversion process by the CPU of the second embodiment. FIGS. FIGS. 9(A), 9(B), and 9(C) are diagrams showing before and after character transformation according to the second embodiment. In the figure, 1... storage means, 2... deformation information storage means,
3... Generating/transforming means, 10... Character generating device, 2
0...CPU, 30...ROM, 40...RAM
. 50... Memory for font, 60... Memory for deformation information, 70... Input buffer, 80... Output buffer, 9o... External device, 100... Output device.
Claims (5)
れたフォント情報を読出す読出手段と、 前記読出されたフォント情報から変形対象の部位を検出
する検出手段と、 前記検出された変形対象の部位を変形する変形手段と、 前記変形によつてフォントパターンを発生する発生手段
とを備えることを特徴とする文字発生装置。(1) Storage means for storing font information; reading means for reading out the stored font information; detection means for detecting a part to be transformed from the read font information; and a part to be transformed from the detected part to be transformed. A character generating device comprising: a deforming means for deforming a part; and a generating means for generating a font pattern by the deformation.
を変形対象の部位としたことを特徴とする請求項第1項
記載の文字発生装置。(2) The character generating device according to claim 1, wherein said detecting means uses line ends and corners of strokes constituting a character as parts to be transformed.
象の部位を記憶したことを特徴とする請求項第2項記載
の文字発生装置。(3) The character generating device according to claim 2, wherein the storage means stores the part to be transformed in font information in advance.
曲線部を変形対象の部位としたことを特徴とする請求項
第1項記載の文字発生装置。(4) The character generating device according to claim 1, wherein the detecting means deforms a straight part or a curved part of a stroke constituting a character.
象の部位を記憶したことを特徴とする請求項第4項記載
の文字発生装置。(5) The character generating device according to claim 4, wherein the storage means stores the part to be transformed in font information in advance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1250559A JPH03113497A (en) | 1989-09-28 | 1989-09-28 | Character generating device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1250559A JPH03113497A (en) | 1989-09-28 | 1989-09-28 | Character generating device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03113497A true JPH03113497A (en) | 1991-05-14 |
Family
ID=17209704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1250559A Pending JPH03113497A (en) | 1989-09-28 | 1989-09-28 | Character generating device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03113497A (en) |
-
1989
- 1989-09-28 JP JP1250559A patent/JPH03113497A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3474037B2 (en) | Character pattern generator | |
JP3037854B2 (en) | Character generation method and device | |
JPH03113497A (en) | Character generating device | |
US5500922A (en) | Printer apparatus for enlarging or reducing the size of characters | |
JPH0351894A (en) | Information processor equipped with character pattern generating function using vector font | |
JPH0711771B2 (en) | Font information transfer method | |
JPH02280195A (en) | Character generator | |
JP3057978B2 (en) | Character generator | |
JPH04280296A (en) | Contour data processing device | |
JP2782752B2 (en) | Character pattern output device | |
JP2782753B2 (en) | Character pattern scaling device | |
JP2856704B2 (en) | Character generator | |
JPS62175794A (en) | character generator | |
JPH08315162A (en) | Shape processing device | |
JPH01191192A (en) | High quality character generating device | |
JP2675363B2 (en) | Character processor | |
JP3082236B2 (en) | Character drawing device | |
JP3018426B2 (en) | Character / graphic drawing device | |
JPH0323496A (en) | Character processor | |
JPS62212167A (en) | Synthesized character forming system | |
JP3473046B2 (en) | Non-erected character drawing method and apparatus | |
JP2662238B2 (en) | Creating dictionary for character recognition | |
JP3089918B2 (en) | Data converter | |
JPH06110444A (en) | Character processing device and character output method | |
JPH04278993A (en) | Outline data processor |