JPH07200561A - Character pattern generator - Google Patents
Character pattern generatorInfo
- Publication number
- JPH07200561A JPH07200561A JP5354266A JP35426693A JPH07200561A JP H07200561 A JPH07200561 A JP H07200561A JP 5354266 A JP5354266 A JP 5354266A JP 35426693 A JP35426693 A JP 35426693A JP H07200561 A JPH07200561 A JP H07200561A
- Authority
- JP
- Japan
- Prior art keywords
- font
- character
- typeface
- name
- fonts
- 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
Landscapes
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Generation (AREA)
Abstract
(57)【要約】
【目的】 予め内蔵されている複数の既存書体から新た
な書体の文字フォントを生成して多種多様の文字パター
ンを発生できると共に、新たな書体を生成させる際に、
ユーザが感覚的にその書体イメージを想起できるような
名称で書体を選択することを可能とする。
【構成】 フォントメモリ11−1〜11−n、12−
1〜12−nには同一データ構造を持ち、座標値のみが
異なる複数書体の文字フォントが格納されている。書体
選択レジスタ群15には複数の対合成比率と名称とが対
応付けて記憶されている。キー入力部から任意の名称が
指定されると、その名称に対応する合成比率が選択さ
れ、この合成比率に基づいて書体合成装置13は複数の
基準文字フォントの対応する座標データ同士を合成する
ことにより新たな文字フォントを発生する。
(57) [Summary] [Purpose] A wide variety of character patterns can be generated by generating a new typeface character font from a plurality of pre-existing existing typefaces, and when creating a new typeface,
It enables the user to select a typeface with a name that allows the user to intuitively recall the typeface image. [Structure] Font memories 11-1 to 11-n, 12-
Character fonts of a plurality of fonts having the same data structure and different coordinate values are stored in 1 to 12-n. In the typeface selection register group 15, a plurality of pair composition ratios and names are stored in association with each other. When an arbitrary name is designated from the key input unit, a composition ratio corresponding to the name is selected, and the typeface composition device 13 composes corresponding coordinate data of a plurality of reference character fonts based on this composition ratio. Generates a new character font.
Description
【0001】[0001]
【産業上の利用分野】この発明はワードプロセッサやパ
ーソナルコンピュータ等の文書処理装置において、アウ
トラインフォントから文字パターンを発生する文字パタ
ーン発生装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character pattern generator for generating a character pattern from an outline font in a document processor such as a word processor or a personal computer.
【0002】[0002]
【従来の技術】従来、ワードプロセッサ等の文書処理装
置には、予め明朝体、ゴシック体、楷書体等の各種書体
に対応する文字フォント(アウトラインフォント)がR
OM(リードオンリメモリ)に書体毎に格納されてお
り、入力した文字列データを出力する際に、その文字列
を予めどのような書体で出力するかを指定しておくと、
それに応じて書体の切り換えが行われ、その書体に対応
する文字フォントをメモリから読み出し、それを文字パ
ターンに変換して出力するようにしている。2. Description of the Related Art Conventionally, in a document processing device such as a word processor, character fonts (outline fonts) corresponding to various typefaces such as Mincho typeface, Gothic typeface, and square typeface are preliminarily R.
OM is stored for each typeface (read only memory), when outputting the character string data inputted, When specified whether to output the character string in advance in what typeface,
The typeface is switched in response to this, the character font corresponding to the typeface is read from the memory, converted into a character pattern, and output.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、従来の
文書処理装置においては、フロッピーディスク等から外
部供給されるものを除き、予め内蔵されている書体以外
は使用不能であり、ユーザが個性豊かな書体を要望して
も、それに応じきれず、極めて自由度が低いという欠点
があった。そこで、複数の書体(例えば、明朝体とゴシ
ック体)の中間的な特徴を持った書体等を新たにROM
に内蔵しておけば、それだけユーザの選択範囲を広げる
ことができるが、必ずしもユーザの要望に応じることが
できるとは限らず、また多種多様の書体をROMに内蔵
しておくことは大規模なメモリが必要となる等の問題が
ある。この発明の課題は、予め内蔵されている複数の既
存書体から新たな書体の文字フォントを生成して多種多
様の文字パターンを発生できると共に、新たな書体を生
成させる際に、ユーザが感覚的にその書体イメージを想
起できるような名称で書体を選択するようにしたもので
ある。However, in the conventional document processing apparatus, except for those supplied externally from a floppy disk or the like, it is impossible to use other than the built-in typefaces, and the typefaces that are unique to the user are available. However, there is a drawback in that the degree of freedom is extremely low because the request cannot be met. Therefore, a new typeface that has intermediate characteristics of multiple typefaces (for example, Mincho typeface and Gothic typeface) is newly added to the ROM.
If it is built in, the selection range of the user can be expanded to that extent, but it is not always possible to meet the user's request, and it is large-scale to build a wide variety of typefaces in the ROM. There is a problem that memory is required. An object of the present invention is to generate a character font of a new typeface from a plurality of preexisting typefaces that are built in advance to generate a wide variety of character patterns. The typeface is selected with a name that can recall the typeface image.
【0004】[0004]
【課題を解決するための手段】この発明の手段は次の通
りである。 (1)、フォント記憶手段は複数の書体に対応してそれ
ぞれ同一のデータ構造を持ち、座標データの座標値のみ
が異なる文字フォントを書体毎に記憶するもので、例え
ば、明朝体やゴシック体等のアウトラインフォントであ
る。 (2)、合成比率/名称記憶手段は複数の書体の各文字
フォントを合成対象として合成する為に、予め設定され
た複数の合成比率とこの合成比率に対応付けて設定され
た名称とを記憶する。 (3)、名称指定手段は名称を指定するキー入力装置等
である。ここで、名称とは書体の特徴を示した名称で、
例えば、通常の明朝体、ゴシック体等の他、「力強
い」、「軽い」、「重い」、「若い」等の様に感覚的に
書体イメージを想像できるような名称である。 (4)、合成比率読出手段はこの名称指定手段によって
指定された名称に対応する合成比率を読み出す。 (5)、フォント生成手段は前記フォント記憶手段から
合成対象である各文字フォントが読み出された際に、対
応関係にある座標データ同士を前記合成比率読出手段に
よって読み出された合成比率に基づいて合成することに
より新たな書体の文字フォントを生成する。The means of the present invention are as follows. (1) The font storage means has the same data structure corresponding to a plurality of typefaces and stores character fonts having different coordinate values of coordinate data for each typeface. For example, Mincho typeface or Gothic typeface. Etc. is an outline font. (2) The combination ratio / name storage means stores a plurality of preset combination ratios and names set in association with the combination ratios in order to combine the respective character fonts of a plurality of fonts as a combination target. To do. (3) The name designating means is a key input device or the like for designating a name. Here, the name is a name that shows the characteristics of the typeface,
For example, in addition to the usual Mincho typeface, Gothic typeface, etc., the name is a name that allows you to intuitively imagine a typeface image such as "strong", "light", "heavy", "young", and the like. (4), the composition ratio reading means reads the composition ratio corresponding to the name designated by the name designating means. (5) The font generation means, when the character fonts to be combined are read from the font storage means, the coordinate data having a corresponding relationship is based on the combination ratio read by the combination ratio reading means. A character font of a new typeface is generated by combining the two.
【0005】[0005]
【作用】この発明の手段の作用は次の通りである。い
ま、明朝体フォントとゴシック体とを既存フォントとす
ると共に、それらを合成する為の合成比率が複雑設定さ
れ、かつ各合成比率に対応付けて名称が設定されている
ものとする。ここで、ユーザが所望する任意の名称をリ
スト表示画面等から指定すると、指定された名称に対応
する合成比率が読み出される。この場合、明朝体フォン
トとゴシック体フォントとの合成比率として「6:4」
が読み出されたものとすると、明朝体フォントの各座標
データとこれと対応関係にあるゴシック体の各座標デー
タとがこの合成比率6:4に基づいて合成される。これ
によって生成された新たな合成フォントは明朝体が60
%、ゴシック体が40%の特徴を持ったフォントとな
り、この新たな合成文字フォントに基づいて文字パター
ンの発生が行われる。したがって、予め内蔵されている
複数の既存書体から新たな書体の文字フォントを生成し
て多種多様の文字パターンを発生できると共に、新たな
書体を生成させる際に、ユーザが感覚的にその書体イメ
ージを想起できるような名称で書体を選択することが可
能となる。The operation of the means of the present invention is as follows. Now, it is assumed that the Mincho font and the Gothic font are the existing fonts, the compositing ratio for composing them is complicatedly set, and the name is set in association with each compositing ratio. Here, when the user designates an arbitrary name desired from the list display screen or the like, the composition ratio corresponding to the designated name is read. In this case, the composition ratio of Mincho typeface and Gothic typeface is "6: 4".
Is read out, each coordinate data of the Mincho font and each coordinate data of the Gothic font having a corresponding relationship with each other are synthesized based on the synthesis ratio 6: 4. The new synthetic font generated by this is Mincho type 60.
%, And the Gothic font has a characteristic of 40%, and a character pattern is generated based on this new synthetic character font. Therefore, a new typeface character font can be generated from a plurality of preexisting typefaces that are built in advance to generate a wide variety of character patterns, and when a new typeface is generated, the user can sense the typeface image. It is possible to select a typeface with a name that can be recalled.
【0006】[0006]
【実施例】以下、図1〜図9を参照して一実施例を説明
する。図1は文字パターン発生装置を搭載したワードプ
ロセッサにおけるブロック構成図である。主制御部1は
各種プログラムにしたがってこのワードプロセッサの全
体動作を制御するもので、キー操作部2から文書データ
が入力されると、主制御部1はこれを取り込んで表示制
御部3に与え、表示装置4から表示出力させたり、文書
メモリ5に格納する文書作成処理を行う。なお、主制御
部1はこの文書メモリ5の内容をキー操作部2からの保
存指令に応答して読み出して外部記憶制御装置6に与
え、フロッピーディスク等の外部記憶装置7に登録させ
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram of a word processor equipped with a character pattern generator. The main control unit 1 controls the whole operation of the word processor according to various programs. When the document data is input from the key operation unit 2, the main control unit 1 fetches the document data and gives it to the display control unit 3 to display it. Document creation processing for displaying and outputting from the device 4 and storing in the document memory 5 is performed. The main control unit 1 reads the content of the document memory 5 in response to a save command from the key operation unit 2, gives it to the external storage control device 6, and registers it in the external storage device 7 such as a floppy disk.
【0007】文字フォント発生装置8は文書メモリ5の
内容を印刷出力させる際に用いられるアウトラインフォ
ントを発生するもので、主制御部1は文字フォント発生
装置8によって発生されたアウトラインフォントを印刷
用のドットパターン(文字パターン)に変換して印刷制
御部9に与え、印刷装置10から印刷出力させる。ま
た、文字フォント発生装置8は複数の書体に対応してそ
の文字フォント(アウトラインフォント)を記憶するフ
ォントメモリ11−1〜11−n、12−1〜12−n
と、このフォントメモリ11−1〜11−n、12−1
〜12−nから読み出された文字フォントを合成比率に
基づいて合成することにより新たな書体の文字フォント
を生成する書体合成装置13と、この書体合成装置13
によって生成された1文字分の書体フォントを一時記憶
する文字フォントバッファ14とを有する構成となって
いる。The character font generator 8 generates an outline font used when the contents of the document memory 5 are printed out, and the main controller 1 prints the outline font generated by the character font generator 8. It is converted into a dot pattern (character pattern), given to the print control unit 9, and printed out from the printing apparatus 10. The character font generation device 8 also stores fonts (outline fonts) corresponding to a plurality of fonts in font memories 11-1 to 11-n and 12-1 to 12-n.
And the font memories 11-1 to 11-n, 12-1
12-n, a typeface synthesizing device 13 for generating a new typeface character font by synthesizing the character fonts read out from each of the font type synthesizers 12-n, and this typeface synthesizing device 13
And a character font buffer 14 for temporarily storing a typeface font for one character generated by.
【0008】図2は文字フォント発生装置8の構成を示
したブロック図である。フォントメモリ11−1〜11
−n、12−1〜12−nには各書体毎に通常のアウト
ラインフォント(以下、基準文字フォントと称する)が
格納されており、本実施例においては「n=3」で、フ
ォントメモリ11−1〜11−nには第1の太さの基準
文字フォント、例えば、標準の太さを持った明朝体フォ
ント、ゴシック体フォント、毛筆楷書体フォントが格納
されている。また、フォントメモリ12−1〜12−n
には第2の太さの書体フォント、例えば太めの明朝体フ
ォント、ゴシック体フォント、毛筆楷書体フォントが格
納されている。ここで、各フォントメモリ11−1〜1
1−n、12−1〜12−nに格納されている同一文字
の文字フォントは同一データ構造を持ち、座標データの
座標値のみが異なるアウトラインフォントであり、その
座標データは書体合成装置13内に与えられる。FIG. 2 is a block diagram showing the configuration of the character font generator 8. Font memory 11-1 to 11
A normal outline font (hereinafter referred to as a reference character font) is stored in each of -n and 12-1 to 12-n for each typeface. In this embodiment, "n = 3" is set and the font memory 11 is used. -1 to 11-n store reference character fonts of the first thickness, for example, Mincho type font, Gothic type font, and brush typeface font having a standard thickness. Also, the font memories 12-1 to 12-n
A typeface font having a second thickness, for example, a thick Mincho typeface font, a Gothic typeface font, and a writing brush typeface font is stored. Here, each font memory 11-1 to 1
The character fonts of the same character stored in 1-n and 12-1 to 12-n are outline fonts having the same data structure and different only in the coordinate value of the coordinate data. Given to.
【0009】書体合成装置13において、書体選択レジ
スタ群15はROMによって構成されており、複数の既
存書体の各文字フォントを合成対象として合成する為
に、予めメーカサイドによって固定的に設定された複数
個(n個)の合成比率を記憶する合成比率レジスタ15
−1mと、この合成比率レジスタに対応付けて固定的に
設定された名称(書体の特徴を示す名称)を記憶する名
称レジスタ15−2mとを有する。ここで、各合成比率
レジスタ15−1mはn個(本実施例にあってはn=3
個)の値R1、R2、Rn(書体の種類の合成比率)
と、第1の太さと第2の太さの合成比率A、Bに分けら
れている。なお、太さの比率A、Bは「A=100−
B」の関係にある。また、各名称レジスタ15−2mの
内容は表示装置4からリスト画面に一覧表示され、その
中からユーザがカーソルキーを操作して任意の名称を指
定すると、この名称に対応する合成比率レジスタ15−
1mが選択される。In the typeface synthesizing device 13, the typeface selection register group 15 is composed of a ROM, and in order to synthesize each character font of a plurality of existing typefaces as a synthesis target, a plurality of fixed types are set in advance by the maker side. Synthesis ratio register 15 for storing the synthesis ratio of n (n)
-1m, and a name register 15-2m that stores a name (name indicating a characteristic of the typeface) fixedly set in association with the composition ratio register. Here, each of the composition ratio registers 15-1m is n (n = 3 in this embodiment).
Value) R1, R2, Rn (composition ratio of typeface type)
And the composite ratios A and B of the first thickness and the second thickness. The thickness ratios A and B are “A = 100−
B ”. Further, the contents of each name register 15-2m are listed on the list screen from the display device 4, and when the user operates a cursor key to specify an arbitrary name, the synthesis ratio register 15- corresponding to this name is displayed.
1m is selected.
【0010】書体合成装置13内において、乗算器16
−1〜16−nは第1の太さの基準文字フォントが格納
されているフォントメモリ11−1〜11−nに対応し
て設けられており、対応する書体の座標データと選択さ
れた合成比率レジスタ15−1m内の合成比率とを乗算
して加算器18に与える。乗算器17−1〜17−nは
第2の太さの基準文字フォントが格納されているフォン
トメモリ17−1〜17−nに対応して設けられてお
り、対応する書体の座標データと選択された合成比率レ
ジスタ15−1m内の合成比率とを乗算して加算器19
に与える。加算器18は対応する乗算器16−1〜16
−nの出力結果を全て加算し、同様に加算器19は対応
する乗算器17−1〜17−nの出力結果を全て加算す
るもので、この加算器18、19の出力結果(書体の合
成結果)は対応する乗算器20、乗算器21に与えられ
る。乗算器20は加算器18の出力結果と第1の太さの
合成比率Aとを乗算して加算器22に与え、乗算器21
は加算器19の出力結果と第2の太さの合成比率Bとを
乗算して加算器22に与えられてそれぞれ加算される
(太さの合成)。正規化装置23は選択された合成比率
レジスタ15−1mの内容に基づいて加算器22の出力
結果を正規化して基準文字フォントの大きさに合わせる
もので、この場合の正規化手法としては選択された合成
比率レジスタ15−1mの値R1〜Rn、A、Bを全て
加算し、その値で加算器22からの出力を除算すること
によって実現している。この正規化装置23からの出力
は文字フォントバッファ14に書き込まれる。この文字
フォントバッファ14内に1文字分の座標データが書き
込まれると、主制御部1は文字フォントバッファ14を
アクセスしてこれを文字パターンに変換する。In the typeface synthesizer 13, the multiplier 16
-1 to 16-n are provided corresponding to the font memories 11-1 to 11-n in which the reference character font of the first thickness is stored, and the coordinate data of the corresponding typeface and the selected composite The result is multiplied by the composite ratio in the ratio register 15-1m and given to the adder 18. The multipliers 17-1 to 17-n are provided corresponding to the font memories 17-1 to 17-n in which the reference character font of the second thickness is stored, and the coordinate data of the corresponding typeface and the selection. The combined ratio in the combined ratio register 15-1m
Give to. The adder 18 is the corresponding multiplier 16-1 to 16
All the output results of -n are added, and similarly, the adder 19 adds all the output results of the corresponding multipliers 17-1 to 17-n. The result) is given to the corresponding multiplier 20 and multiplier 21. The multiplier 20 multiplies the output result of the adder 18 and the synthesis ratio A of the first thickness and gives the result to the adder 22.
Is multiplied by the output result of the adder 19 and the second thickness composition ratio B and is given to the adder 22 for addition (thickness composition). The normalization device 23 normalizes the output result of the adder 22 based on the content of the selected synthesis ratio register 15-1m to match the size of the reference character font, and is selected as the normalization method in this case. It is realized by adding all the values R1 to Rn, A and B of the composition ratio register 15-1m and dividing the output from the adder 22 by the value. The output from the normalizer 23 is written in the character font buffer 14. When the coordinate data for one character is written in the character font buffer 14, the main controller 1 accesses the character font buffer 14 and converts it into a character pattern.
【0011】図3はフォントメモリ11−1〜11n、
12−1〜12−nに格納されている文字フォントのデ
ータ構造例を示した図で、文字フォントはアウトライン
フォントであり、文字を構成する輪郭線によって表現さ
れ、識別子+座標データ列の形で格納されている。即
ち、識別子の種類とそれに続くデータは図3の(A)に
示す如く定義されており、図中は開始点の識別子とそ
れに続く座標データを示し、また、は直線、はベジ
ェール曲線、は1輪郭線終了、は1文字終了の識別
子とそれに続く座標データを示している。例えば、ベジ
ェール曲線は識別子「02」と第1制御点座標(X1、
Y1)、第2制御点座標(X2、Y2)、終了点座標
(Xt、Yt)によって定義されている。また図3の
(B)はこの識別子とそれに続くデータがどのような状
態でメモリに格納されているかのメモリ格納状態を示し
たものである。なお、文字フォントバッファ14にもこ
れと同一形式でデータが格納される。FIG. 3 shows font memories 11-1 to 11n,
12-1 to 12-n are diagrams showing a data structure example of character fonts stored in 12-1 to 12-n. The character font is an outline font and is represented by contour lines forming characters, and is in the form of an identifier + coordinate data string. It is stored. That is, the type of identifier and the data following it are defined as shown in FIG. 3A. In the figure, the identifier of the starting point and the coordinate data following it are shown, and is a straight line, is a Bezier curve, and is 1 The contour line end indicates a one-character end identifier and the coordinate data following the identifier. For example, the Bezier curve has an identifier “02” and first control point coordinates (X1,
Y1), second control point coordinates (X2, Y2), end point coordinates (Xt, Yt). Further, FIG. 3B shows a memory storage state in which state the identifier and the data following the identifier are stored in the memory. The character font buffer 14 also stores data in the same format.
【0012】図4は同じ太さで書体が異なる基準文字フ
ォントのデータ例を示した図で、(A)はフォントメモ
リ11−1に格納されている標準の太さを持った文字
「あ」の明朝体フォント、(B)はフォントメモリ11
−2に格納されている標準の太さを持った文字「あ」の
ゴシック体フォントを示している。ここで、図中、□は
輪郭線の開始座標、○はベジェール曲線の第1制御点、
●はベジェール曲線の第2制御点、×はベジェール曲線
の終点または直線の終点である。この文字「あ」の両フ
ォントは同一データ構造で座標値のみが異なるもので、
図4(B)に示すゴシック体フォントにおいて、「あ」
の文字を構成する横線は直線であり、本来、ベジェール
曲線の第1制御点○や第2制御点●は不要であるが、明
朝体とデータ構造を同一とする為にあえて設けてある。
つまり、再フォントを構成する各座標点の数や順番は同
一であるが、両者は座標点の位置のみが相違している。
ここで、図中、明朝体の座標点をA1、A2、A3…
…、ゴシック体の座標点をB1、B2、B3……とする
と、ベジェール曲線の終点×のA1とB1、A2とB
2、またベジェール曲線の第2制御点●のA3とB3が
対応関係があり、これ以外の全ての座標点も1:1に対
応付けられている。このように各フォントを同一のデー
タ構造とすることによりフォントの合成が可能となる。FIG. 4 is a diagram showing an example of data of a standard character font having the same thickness but different typeface. FIG. 4A shows a character "a" having a standard thickness stored in the font memory 11-1. Mincho font, (B) is the font memory 11
2 shows a Gothic font of the character "A" having a standard thickness stored in "-2". Here, in the figure, □ is the starting coordinate of the contour line, ○ is the first control point of the Bezier curve,
● is the second control point of the Bezier curve, and × is the end of the Bezier curve or the end of the straight line. Both fonts of this character "A" have the same data structure but differ only in coordinate values.
In the Gothic font shown in FIG. 4B, "A"
The horizontal line forming the character is a straight line, and originally, the first control point ◯ and the second control point of the Bezier curve are unnecessary, but they are provided in order to make the data structure the same as the Mincho type.
That is, the number and order of the coordinate points forming the re-font are the same, but the two differ only in the position of the coordinate points.
Here, in the figure, the coordinate points of the Mincho type are A1, A2, A3 ...
…, Gothic coordinate points are B1, B2, B3 ..., A1 and B1, A2 and B at the end point of the Bezier curve.
2, and A3 and B3 of the second control point ● of the Bezier curve have a correspondence relationship, and all other coordinate points are also associated with 1: 1. In this way, fonts can be combined by making each font have the same data structure.
【0013】次に、本実施例の動作を図5〜図9を参照
して説明する。いま、フォントメモリ11−1〜11−
nには標準の太さを持った明朝体フォント、ゴシック体
フォント、毛筆楷書体フォントが格納され、またフォン
トメモリ12−1〜12−nには太めの明朝体フォン
ト、ゴシック体フォント、毛筆楷書体フォントが格納さ
れているものとする。この状態において、ユーザは発生
文字フォントの書体を選択する為にキー操作部2からそ
の指示を与えると、主制御部1は文字フォント発生装置
8内の各名称レジスタ15−2mの内容を読み出してリ
スト画面に一覧表示させる。ここで、各名称レジスタ1
5−2mには例えば、図9に示す如く、その名称として
通常の「明朝体」、「ゴシック体」、「楷書体」の他、
合成文字フォントの書体の特徴を感覚的に想像できるよ
うな名称として「やさしい」、「力強い」、「弱い」、
「軽い」、「重い」、「若い」が設定されている。この
リスト画面の中から任意の名称を指定すると、主制御部
1はその名称レジスタ15−2mに対応する合成比率レ
ジスタ15−1mを選択する。この場合、各合成比率レ
ジスタ15−1mには図9に示す如く名称に対応付けて
書体の種類、太さ別に合成の強さ(0〜100)が設定
されている。いま、通常の文字フォントとして標準の太
さの明朝体フォントを選択する場合にはリスト画面から
名称「明朝体」を指定する。すると、R1=100、R
2、R3=0、B=0(A=100)の値を持った合成
比率レジスタ15−1mが選択される。また、「やさし
い」の名称を選択すると、R1=69、R2=41、R
n=0、B=16(A=84)の値を持った合成比率レ
ジスタ15−1mが選択される。Next, the operation of this embodiment will be described with reference to FIGS. Now, the font memories 11-1 to 11-
n stores a Mincho typeface font, a Gothic typeface font, and a brush typeface font having a standard weight, and font memories 12-1 to 12-n have a thicker Mincho typeface font, a Gothic typeface font, It is assumed that the brush typeface font is stored. In this state, when the user gives an instruction from the key operation unit 2 to select the typeface of the generated character font, the main control unit 1 reads the contents of each name register 15-2m in the character font generation device 8. Display a list on the list screen. Where each name register 1
As shown in FIG. 9, for example, in 5-2 m, in addition to the usual names such as “Mincho type”, “Gothic type”, and “typeface”,
As a name that allows you to intuitively imagine the characteristics of the typeface of a synthetic character font, "friendly", "strong", "weak",
“Light”, “heavy”, and “young” are set. When an arbitrary name is designated from this list screen, the main control unit 1 selects the synthesis ratio register 15-1m corresponding to the name register 15-2m. In this case, in each composition ratio register 15-1m, the composition strength (0 to 100) is set for each type and thickness of the typeface in association with the name as shown in FIG. Now, when selecting a standard thickness Mincho type font as a normal character font, the name "Mincho type" is specified from the list screen. Then R1 = 100, R
2, the synthesis ratio register 15-1m having the values of R3 = 0 and B = 0 (A = 100) is selected. In addition, when the name of “gentle” is selected, R1 = 69, R2 = 41, R
The synthesis ratio register 15-1m having the values of n = 0 and B = 16 (A = 84) is selected.
【0014】ここで、文字フォント発生装置8に起動命
令が与えられると、文字フォント発生装置8は図5に示
すフローチャートにしたがった動作を実行する。先ず、
文字フォント発生装置8は合成対象である基準文字フォ
ントデータの先頭をアドレス指定する為に、基準文字ポ
インタ(図示せず)にその先頭アドレスをセットしてお
く(ステップS1)。この基準文字ポインタはフォント
メモリ11−1〜11−n、12−1〜12−nの読み
出しアドレスを指定するもので、各フォントメモリ毎に
設けてもよいが、1つだけ持ち、各フォントメモリのオ
フセットアドレスを加算して実アドレスを求めることに
よりアドレッシングしてもよい。次に、文字フォント発
生装置8は発生文字ポインタ(図示せず)に文字フォン
トバッファ14の先頭アドレスを指定する為の値をセッ
トしておく(ステップS2)。この発生文字ポインタは
文字フォントバッファ14の書き込みアドレスを指定す
るポインタである。Here, when the activation command is given to the character font generation device 8, the character font generation device 8 executes the operation according to the flowchart shown in FIG. First,
The character font generator 8 sets the starting address of a reference character pointer (not shown) in order to address the beginning of the reference character font data to be combined (step S1). This reference character pointer designates the read address of the font memories 11-1 to 11-n and 12-1 to 12-n. It may be provided for each font memory, but only one reference character pointer is provided. Addressing may be performed by adding the offset addresses of the above to obtain the real address. Next, the character font generator 8 sets a value for designating the start address of the character font buffer 14 in a generated character pointer (not shown) (step S2). The generated character pointer is a pointer that designates the write address of the character font buffer 14.
【0015】このような初期設定処理に終ると、ステッ
プS3に進み、基準文字ポインタの指定によって読み出
された基準文字フォントのデータが識別子、つまり図3
に示す様に、開始点識別子「00」、直線終了点識別子
「01」、ベジェール識別子「02」、1輪郭線の終了
識別子「03」、1文字終了識別子「04」かを判別す
る。ここで、最初は開始点識別子「00」が読み出され
るので、ステップS10に進み、この識別子を発生文字
ポインタで指定される文字フォントバッファ14のアド
レス位置にそのまま書き込む。そして、次のステップS
11ではこの識別子が1文字終了識別子「04」かを判
別するが、この場合、1文字終了識別子ではないので、
基準文字ポインタの値を更新すると共に(ステップS
8)、発生文字ポインタの値を更新し(ステップS
9)、その後、ステップS3に戻る。After such initialization processing, the process proceeds to step S3, and the reference character font data read by the designation of the reference character pointer is an identifier, that is, FIG.
As shown in FIG. 5, it is determined whether the start point identifier is “00”, the straight line end point identifier is “01”, the bezier identifier is “02”, the contour end identifier is “03”, and the one character end identifier is “04”. Here, since the starting point identifier "00" is initially read, the process proceeds to step S10, and this identifier is written as it is at the address position of the character font buffer 14 designated by the generated character pointer. And the next step S
In 11, it is determined whether this identifier is the 1-character end identifier "04". In this case, since it is not the 1-character end identifier,
While updating the value of the reference character pointer (step S
8) and updates the value of the generated character pointer (step S
9) Then, the process returns to step S3.
【0016】次に、各基準文字フォントから開始点識別
子に続いて読み出されるデータは開始点座標である為、
ステップS3でそのことが検出されてステップS4に進
み、書体合成積和処理が行われる。即ち、乗算器16−
1〜16−n、17−1〜17−nは対応するフォント
メモリ11−1〜11−n、12−1〜12−nから読
み出された基準文字フォントの開始点座標に、選択され
た合成比率レジスタ15−1mからの値R1〜Rnを乗
算する。いま、名称「やさしい」に対応する合成比率レ
ジスタ15−1mが選択されたものとすると、この合成
比率レジスタ15−1mには乗算係数としてR1=6
9、R2=41、Rn=0が設定されているので、例え
ば、乗算器16−1は標準の太さの明朝体フォントの開
始点座標に「69」を乗算し、また同様に乗算器17−
1は太めの明朝体フォントの開始点座標に「69」を乗
算する。このようにして対応するR1〜Rnの値が乗算
された各基準文字フォントの開始点座標は乗算器16−
1〜16−n、乗算器17−1〜17−nから出力さ
れ、対応する加算器18、19に送られる。ここで、加
算器18は乗算器16−1〜16−nの値を全て加算し
てその合計値を求め、同様に加算器19は乗算器17−
1〜17−nの値を全て加算してその合計値を求める。Next, since the data read from each reference character font following the start point identifier is the start point coordinates,
This is detected in step S3, and the flow advances to step S4 to perform the typeface synthesis product sum processing. That is, the multiplier 16-
1 to 16-n and 17-1 to 17-n are selected as the starting point coordinates of the reference character font read from the corresponding font memories 11-1 to 11-n and 12-1 to 12-n. The values R1 to Rn from the composition ratio register 15-1m are multiplied. Now, assuming that the composition ratio register 15-1m corresponding to the name “gentle” is selected, the composition ratio register 15-1m has a multiplication coefficient R1 = 6.
Since 9, R2 = 41, and Rn = 0 are set, for example, the multiplier 16-1 multiplies the start point coordinates of the standard thickness Mincho font by “69”, and similarly, 17-
1 multiplies the start point coordinates of the thick Mincho font by "69". The start point coordinates of each reference character font multiplied by the corresponding values of R1 to Rn in this way are the multiplier 16-
1 to 16-n and multipliers 17-1 to 17-n, and send to the corresponding adders 18 and 19. Here, the adder 18 adds all the values of the multipliers 16-1 to 16-n to obtain the total value, and similarly, the adder 19 outputs the multiplier 17-
All the values 1 to 17-n are added to obtain the total value.
【0017】このようにして書体合成積和処理が行われ
ると、次のステップS5に進み、太さの合成積和処理が
行われる。即ち、乗算器20、21は対応する加算器1
8、19の合計値に選択された合成比率レジスタ15−
1mからの値A、Bを乗算する。いま、名称「やさし
い」に対応する合成比率レジスタ15−1mが選択され
たものとすると、この合成比率レジスタ15−1mのB
=16(A=84)が設定されているので、乗算器20
は加算器18の出力結果に乗算係数としてのA=84を
乗算し、乗算器21は加算器19の出力結果に乗算係数
としてのB=16を乗算して加算器22に与え、加算器
22によってその合計が求められる。When the typeface combined product-sum processing is performed in this way, the process proceeds to the next step S5, and the combined thickness product-addition processing is executed. That is, the multipliers 20 and 21 correspond to the corresponding adder 1
Combined ratio register 15-selected to the total value of 8 and 19-
Multiply the values A, B from 1 m. Now, assuming that the composition ratio register 15-1m corresponding to the name "gentle" is selected, B of the composition ratio register 15-1m is selected.
= 16 (A = 84) is set, the multiplier 20
Multiplies the output result of the adder 18 by A = 84 as a multiplication coefficient, and the multiplier 21 multiplies the output result of the adder 19 by B = 16 as a multiplication coefficient and gives the result to the adder 22. The total is calculated by.
【0018】すると、正規化装置23は合成比率レジス
タ15−1m内の値を加算してその総和を求めると共
に、加算器22の出力結果をこの総和で除算して正規化
を行う(ステップS6)。このようにして正規化装置2
3によって正規化された座標データを登録文字ポインタ
によって指定される文字フォントバッファ14のアドレ
ス位置に書き込む(ステップS7)。そして、ステップ
S8、S9で基準文字ポインタおよび登録文字ポインタ
を更新し、ステップS3に戻り、以下、上述の動作を1
文字終了識別子が読み出されるまで繰り返す。Then, the normalizing device 23 adds the values in the composition ratio register 15-1m to obtain the total sum thereof, and divides the output result of the adder 22 by the total sum for normalization (step S6). . In this way, the normalization device 2
The coordinate data normalized by 3 is written in the address position of the character font buffer 14 designated by the registered character pointer (step S7). Then, in steps S8 and S9, the reference character pointer and the registered character pointer are updated, and the process returns to step S3.
Repeat until the character end identifier is read.
【0019】ここで、図6において、(A)は図4で示
した標準の太さの明朝体フォントと標準の太さのゴシッ
ク体フォントとを重ね合せた状態を示し、(B)はその
一部を拡大した図であり、×点のA1とB1、A2とB
2、●点のA3、B3とが対応する両フォントの座標点
で、それ以外も全て1:1に対応している。この対応す
る座標点同士を合成比率に基づいて合成することにより
対応する座標点間に新たな座標点が求められる。これに
よって両フォントから所望する書体の文字フォントが生
成されて文字フォントバッファ14に書き込まれる。Here, in FIG. 6, (A) shows a state in which the standard thickness Mincho font and the standard thickness Gothic font shown in FIG. 4 are superimposed, and (B) shows. It is the figure which expanded a part of it and is A1 and B1 of A point, A2 and B.
2. The points A3 and B3 correspond to the coordinate points of both fonts, and all other points correspond to 1: 1. A new coordinate point is obtained between the corresponding coordinate points by synthesizing the corresponding coordinate points based on the synthesizing ratio. As a result, a character font of a desired typeface is generated from both fonts and written in the character font buffer 14.
【0020】図7において、(A)は標準の太さの明朝
体フォントを示し、(B)は太い明朝体フォントを例示
したもので、この場合においても両フォントはデータ構
造が同様でその座標値のみが相違し、各座標点は1:1
に対応付けられている。このような両フォントを重ね合
せると、図8に示す如くとなる。なお、図8(B)はそ
の一部拡大図である。このように太さが相違するフォン
トであっても、対応する各座標点同士を合成比率に基づ
いて合成することによって対応する座標点間に新たな座
標点が求められ、これによって両フォントから所望する
新たな書体の文字フォントが生成されて文字フォントバ
ッファ14に書き込まれる。In FIG. 7, (A) shows a standard Mincho typeface font, and (B) shows an example of a thick Mincho typeface font. Even in this case, both fonts have the same data structure. Only the coordinate values differ, and each coordinate point is 1: 1
Is associated with. When these two fonts are overlapped, it becomes as shown in FIG. Note that FIG. 8B is a partially enlarged view thereof. Even for fonts having different thicknesses, new coordinate points are obtained between corresponding coordinate points by synthesizing corresponding coordinate points based on the synthesizing ratio. A new typeface character font is created and written in the character font buffer 14.
【0021】このように本実施例においては、感覚的に
書体イメージを想像できる名称を単に指定するだけで、
既存の基準文字フォントから図9に示す様な多種多様の
文字フォントを新たに発生することが可能となる。As described above, in the present embodiment, by simply designating a name that allows the user to intuitively imagine a typeface image,
It is possible to newly generate a wide variety of character fonts as shown in FIG. 9 from existing reference character fonts.
【0022】なお、上記実施例は書体選択レジスタ群1
5をROMによって構成し、予めメーカサイドによって
合成比率レジスタ15−1m、名称レジスタ15−2m
に所定のデータを固定的に設定したが、書体選択レジス
タ群15をRAMによって構成し、その初期値として予
めメーカサイドで決められた固定的名データを書体選択
レジスタ群15にコピーし、また、ユーザが任意の書体
を得る為にその名称と合成比率を入力して書体選択レジ
スタ群15に設定するようにすれば、ユーザの好みに応
じた名称で、個性豊かな書体の文字フォントで得ること
が可能となる。In the above embodiment, the typeface selection register group 1 is used.
5 is composed of a ROM, and a maker side preliminarily synthesizes ratio register 15-1m and name register 15-2m.
Although the predetermined data is fixedly set to, the typeface selection register group 15 is configured by the RAM, and the fixed name data determined in advance by the manufacturer as the initial value is copied to the typeface selection register group 15, and If the user inputs a name and a composition ratio and sets it in the font selection register group 15 in order to obtain an arbitrary font, the name according to the user's preference and a character font with a rich font can be obtained. Is possible.
【0023】[0023]
【発明の効果】この発明によれば、予め内蔵されている
複数の既存書体から新たな書体の文字フォントを生成し
て多種多様の文字パターンを発生できると共に、新たな
書体を生成させる際に、ユーザが感覚的にその書体イメ
ージを想起できるような名称で書体を選択することが可
能となる。したがって、ユーザが所望する多彩な書体の
文字パターンを容易に得ることが可能となり、極めて実
用性に富んだものとなる。According to the present invention, a new typeface character font can be generated from a plurality of preexisting existing typefaces to generate a wide variety of character patterns, and when a new typeface is generated, It is possible for the user to select a typeface with a name that allows the user to intuitively recall the typeface image. Therefore, it is possible to easily obtain the character pattern of various typefaces desired by the user, which is extremely practical.
【図1】実施例に係る文字パターン発生装置を搭載した
ワードプロセッサのブロック構成図。FIG. 1 is a block configuration diagram of a word processor equipped with a character pattern generation device according to an embodiment.
【図2】文字フォント発生装置8を示したブロック構成
図。FIG. 2 is a block diagram showing a character font generator 8.
【図3】文字フォントのデータ構造を説明する為の図。FIG. 3 is a diagram for explaining a data structure of a character font.
【図4】同じ太さで書体が異なる基準文字フォント例を
示し、(A)は明朝体の文字フォント、(B)はゴシッ
ク体の文字フォントを示した図。FIG. 4 is a diagram showing an example of standard character fonts having the same thickness but different typefaces, (A) showing a Mincho type character font, and (B) showing a Gothic type character font.
【図5】文字フォント発生装置8の動作を示したフロー
チャート。FIG. 5 is a flowchart showing the operation of the character font generation device 8.
【図6】書体が異なる2つの基準文字フォントを重ね合
せることにより座標の対応関係を説明する為の図で、
(A)は図4(A)で示した明朝体文字フォントと図4
(B)に示すゴシック体文字フォントとを重ね合せた状
態を示した図、(B)はその一部拡大図。FIG. 6 is a diagram for explaining a correspondence relationship of coordinates by overlapping two reference character fonts having different typefaces,
4A is the Mincho typeface font shown in FIG.
The figure which showed the state which overlapped with the Gothic font shown in (B), and (B) is the partially expanded view.
【図7】同一書体で太さが異なる基準文字フォント例を
示し、(A)は標準の太さを持った明朝体の文字フォン
ト、(B)は太い明朝体の文字フォントを示した図。7A and 7B show examples of reference character fonts having the same typeface but different thicknesses, FIG. 7A shows a Mincho type character font with a standard thickness, and FIG. 7B shows a thick Mincho type character font. Fig.
【図8】太さが異なる2つの基準文字フォントを重ね合
せることにより座標の対応関係を説明する為の図で、
(A)は図7(A)で示した標準の太さを持った明朝体
文字フォントと図7(B)で示した太い明朝体文字フォ
ントとを重ね合せた状態を示した図、(B)はその一部
拡大図。FIG. 8 is a diagram for explaining a correspondence relationship of coordinates by overlapping two reference character fonts having different thicknesses,
FIG. 7A is a diagram showing a state in which the Mincho typeface font having the standard thickness shown in FIG. 7A and the thick Mincho typeface font shown in FIG. (B) is a partially enlarged view.
【図9】書体選択レジスタ群15の内容に基づいて発生
される文字フォント例を示した図。FIG. 9 is a diagram showing an example of a character font generated based on the contents of the typeface selection register group 15.
1 主制御部 2 キー操作部 5 文書メモリ 8 文字フォント発生装置 11−1〜11−n、12−1〜12−n フォントメ
モリ 13 書体合成装置 14 文字フォントバッファ 15 書体選択レジスタ群 15−1m 合成比率レジスタ 15−2m 名称レジスタ 16−1〜16−n、17−1〜17−n、20、21
乗算器 18、19、22 加算器 23 正規化装置1 main control unit 2 key operation unit 5 document memory 8 character font generator 11-1 to 11-n, 12-1 to 12-n font memory 13 typeface synthesizer 14 character font buffer 15 typeface selection register group 15-1m synthesis Ratio register 15-2m Name register 16-1 to 16-n, 17-1 to 17-n, 20, 21
Multipliers 18, 19, 22 Adder 23 Normalizer
Claims (1)
タ構造を持ち、座標データの座標値のみが異なる文字フ
ォントを書体毎に記憶するフォント記憶手段と、 複数の書体の各文字フォントを合成対象として合成する
為に、予め設定された複数の合成比率とこの合成比率に
対応付けて設定された名称とを記憶する合成比率/名称
記憶手段と、 名称を指定する名称指定手段と、 この名称指定手段によって指定された名称に対応する合
成比率を読み出す合成比率読出手段と、 前記フォント記憶手段から合成対象である各文字フォン
トが読み出された際に、対応関係にある座標データ同士
を前記合成比率読出手段によって読み出された合成比率
に基づいて合成することにより新たな書体の文字フォン
トを生成するフォント生成手段と、 を具備し、前記フォント生成手段で生成された新たな書
体の文字フォントに基づいて文字パターンを発生するよ
うにしたことを特徴とする文字パターン発生装置。1. A font storage unit for storing character fonts having the same data structure corresponding to a plurality of typefaces and having different coordinate values of coordinate data for each typeface, and combining the character fonts of the plurality of typefaces. In order to combine as a target, a combination ratio / name storage means for storing a plurality of preset combination ratios and a name set in association with this combination ratio; a name designating means for designating a name; A combination ratio reading unit that reads a combination ratio corresponding to the name designated by the designating unit, and coordinate data that have a correspondence relationship when the character fonts to be combined are read from the font storage unit. A font generating means for generating a character font of a new typeface by synthesizing based on the synthesizing ratio read by the ratio reading means. Character pattern generating apparatus being characterized in that so as to generate a character pattern based on character font new font generated by the font generation means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5354266A JPH07200561A (en) | 1993-12-30 | 1993-12-30 | Character pattern generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5354266A JPH07200561A (en) | 1993-12-30 | 1993-12-30 | Character pattern generator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07200561A true JPH07200561A (en) | 1995-08-04 |
Family
ID=18436394
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5354266A Pending JPH07200561A (en) | 1993-12-30 | 1993-12-30 | Character pattern generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07200561A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6678688B1 (en) | 2000-10-26 | 2004-01-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for composite font generation |
| JP2023130217A (en) * | 2022-03-07 | 2023-09-20 | 株式会社AIdeaLab | Font generation system, font generation method and program |
| JP2023130216A (en) * | 2022-03-07 | 2023-09-20 | 株式会社AIdeaLab | Font generation system, font generation method and program |
-
1993
- 1993-12-30 JP JP5354266A patent/JPH07200561A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6678688B1 (en) | 2000-10-26 | 2004-01-13 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for composite font generation |
| JP2023130217A (en) * | 2022-03-07 | 2023-09-20 | 株式会社AIdeaLab | Font generation system, font generation method and program |
| JP2023130216A (en) * | 2022-03-07 | 2023-09-20 | 株式会社AIdeaLab | Font generation system, font generation method and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3113175B2 (en) | Character / symbol pattern generator | |
| US6266070B1 (en) | Character pattern generator, character generating method, and storage medium therefor | |
| JPH07199896A (en) | Character pattern generator | |
| JPH0966643A (en) | Print control device | |
| JP3317817B2 (en) | Character generator | |
| JPS6265126A (en) | Multiple document overlapping printing device | |
| JP3064323B2 (en) | Character string replacement device with attributes | |
| JP3997562B2 (en) | Electronic sticky note sticking device | |
| JP2737845B2 (en) | Character processing method and apparatus | |
| JP2803746B2 (en) | Character processing method and apparatus | |
| JP2652748B2 (en) | Character processor | |
| JP2907425B2 (en) | Character processor | |
| JPH03203769A (en) | Map information processor | |
| JP2786678B2 (en) | Code information conversion circuit | |
| JPH0239362A (en) | document processing device | |
| JP2967861B2 (en) | Output device | |
| JP2978178B2 (en) | Document creation apparatus and control method thereof | |
| JP2965429B2 (en) | Character output device | |
| JPH0373998A (en) | Character pattern data generating device | |
| JP2942107B2 (en) | Character code converter | |
| JPH07214874A (en) | Printer | |
| JP2974638B2 (en) | Document processing apparatus and method | |
| JPH0239361A (en) | document processing device | |
| JPH0728790A (en) | Document processing method and apparatus | |
| JPS63139391A (en) | character processing device |