JP2569489C - - Google Patents

Info

Publication number
JP2569489C
JP2569489C JP2569489C JP 2569489 C JP2569489 C JP 2569489C JP 2569489 C JP2569489 C JP 2569489C
Authority
JP
Japan
Prior art keywords
character
continuous
pattern
font
character font
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
Other languages
Japanese (ja)
Publication date

Links

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、毛筆書体の文字を連綿して出力する日本語ワードプロセッサなど
の毛筆文字出力装置に関する。 [従来の技術] 最近、かた苦しい活字フォントによる従来の出力、印刷機能から脱却する意味
で、毛筆書体のようなパターンをもつフォント(毛筆フォント)を用いて手書風
な文書を得ることが試みられている。 しかしながら、このような毛筆フォント同士を所望の組合せでスムーズに連綿
させることのできるような装置は、要望はあるものの、いまだ実現されていない
。 [発明が解決しようとする課題] 従来、連綿させた文字列を線によって出力することができる装置では、メモリ 内に連綿させた文字列フォントを最初からもっており、各文字列フォントを取り
出すことにより、出力媒体上に連綿した文字列を展開させる。従って、使用でき
る文字列の数はメモリの容量に比例し、決まった文字列しか連綿文字列として得
ることができるのにとどまり、任意の文字同志を連綿させることができない。ま
た、毛筆書体の文字の場合、各文字の太さが異なるためメモリ内に連綿させた毛
筆フォントを最初から持たせることはその数が膨大になり、毛筆書体の文字を連
綿させることは考えられていない。 この発明の課題は、複数の毛筆書体の文字を連綿させて出力できるようにする
ことである。 [課題を解決するための手段] この発明の手段は次の通りである。 太さを待った毛筆書体の文字フォントパターンを出力する装置であって、 連綿パターン生成手段は、互いに隣接して出力される第1の文字フォントパタ
ーンと第2の文字フォントパターンとを出力する際、その第1の文字フォントパ
ターンの終筆位置における太さのパターンが前記第2の文字フォントパターンの
始筆位置における太さのパターンへ連続的につながる連綿パターンを生成する。 連綿パターン出力手段は、前記連綿パターン生成手段で生成された連綿パター
ンを前記第1の文字フォントパターンと前記第2の文字フォントパターンとの問
に出力する。 [作用] この発明の手段の作用は次の通りである。 太さを持ったも筆書体の文字フォントパターンを出力する装置であって、互い
に隣接して出力される第1の文字フォントパターンと第2の文字フォントパター
ンとを出力する際、その第1の文字フォントパターンの終筆位置における太さの
パターンが前記第2の文字フォントパターンの始筆位置における太さのパターン
へ連続的につながる連綿パターンを連綿パターン生成手段によって生成して、こ
の連綿パターン生成手段で生成された連綿パターンを前記第1の文字フォントパ
ターンと前記第2の文字フォントパターンとの問に連綿パターン出力手段によっ
て出力する。 従って、太さが異なる複数の毛筆書体の文字をきれいに連綿させて出力するこ
とができる。 [展開] いま、第1図において、アクセス手段Cがフォントデータ発生手段Aから取り
出した2つの文字フォントの情報を連綿領域生成手段Dに渡したとする。これに
対し、連綿領域Dは、受け取った情報と関係する制御パラメータを制御パラメー
タ発生手段Bより取り出す。そして、この制御パラメータを使って、アクセスに
係る2つの文字フォント間の連綿領域を生成する。 上記のフォントデータ発生手段Aは、毛筆書体等の連綿に本発明を適用する場
合には、最終的に出力される毛筆書体と同じパターン、形態をもついわゆるドッ
トフォントメモリ(点の集合でフォントを定義するメモリ)を使用するのが好ま
しいが、一般的には、他の型式のもので構成してもよい。例えば、始点や終点を
記憶するメモリ、これらの問を適当な描画アルゴリズムで描画する手段、描画さ
れた閉領域内に位置するペイント開始位置を記憶するメモリ、ペイント開始位置
よりペイントアルゴリズム(ぬりつぶしのプログラム)を起動して閉領域内のぬ
りつぶしを実行する手段等から構成されるいわゆるベクトルフォントタイプのフ
ォント発生源で構成することができる。 制御パラメータ発生手段Bの提供する制御パラメータは、文字間の連綿に関す
るパラメータを規定するものである。 本発明の好ましい一実施態様においては、この制御パラメータ中に、文字間の
連綿の可否を指定する情報が含まれ、連綿の不可が指定されている場合、連綿領
域生成手段Dは関連する文字と文字との間の連綿領域を作成しない。より好まし
くは、この連綿の可否情報はプログラマブルとする。例えば、ユーザーサイドで
自由に連綿の可否情報を可変設定できるようにする。このようにすれば、連綿に
関するフレキシビリティが向上し、例えば、毛筆書体の連綿に応用する場合、ユ
ーザーの好みの日本語文字のところで連綿を終了させることができる。 また、制御パラメータ中に、文字間の連綿領域内に位置する制御座標(補間点
)を含めることができる。この制御座標は連綿領域生成手段Dが描画やぬりつぶ
しを行う場合の制御点として利点され得る。フレキシビリティ向上のため、この
制 御座標をプログラマブルにするとなおよい。 さらに、制御パラメータ中に、最大の連綿可能な文字数の情報を含ませること
ができる。これに関連して、連綿領域生成手段D側に係数手段を設け、この計数
手段に生成した連綿領域の数を計数させ、その計数値が最大の連綿可能な文字数
に達したら、次の文字との連綿領域の作成を禁止することとする。毛筆書体の連
綿出力への応用において、このような機能を組み込むことにより、あまりに文字
がつづきすぎて読みにくくなる、という問題を有効に避けることができる。上記
の最大の連綿文字数もプログラマブルにすることができる。また、複数の設定連
綿文字数を連綿文字作成の際、文字列上の位置に応じて切り換えるようにしても
よい。 さらに、制御パラメータ中に、文字端データを含ませることができる。この場
合の文字端とは、文字フォント(パターン)のうち連綿領域とつながれる部分を
指している。好ましくは、文字端データは着目している文字の端部の幅(画幅)
とその座標より成る。このような情報は、連綿領域生成手段によって生成される
連綿領域の境界線の一部と整合する。 本発明の好ましい一実施態様においては、制御パラメータは文字ごとに割り当
てられる。いいかえれば、フォントデータ発生手段Aより発生可能な文字数だけ
の制御パラメータがあればよいことになる。したがって、<ひらがな>の場合に
は高々数十組の制御パラメータを用意すれば十分である。また、1文字につき1
組の制御パラメータの割当方式は、設計上の負担も軽減し、システム構成、処理
が単純化される、という利点ももたらしてくれる。 もっとも、これには限らず、例えば、使用文字セットをグループ化し、ある文
字種(グループ)に属する文字と同一もしくは他のグループに属する文字との関
係に従って、すなわち2つの文字グループの組合せに対応して、制御パラメータ
(例えば制御座標)を割り当てるようにしてもよい。 以下説明する実施例は本発明を草書風のひらがなの連綿に適用したものである
が、本発明の原理はそれにどどまらず、他の文字の綿連にも同様にして、あるい
は自明な変更を加えることにより、適用できる。したがって、特許請求の範囲第
1項に規定する用語「文字」の意味は最広義に解されるべきであり、少なくとも
、 ソースのコードを用いて変換できるような任意のパターンをもつもの(例えば、
図形シンボル)を含み得る。 [実施例] 以下、図面を参照して本発明の一実施例を説明する。〈構成〉 第2図に、実施例の全体構成を示す。この実施例は草書風のひらがなを連綿さ
せて印刷する機能をもっている。 1はテキストメモリなどと呼ばれるメモリで文書データを保存する。この文書
データメモリ1上の各文字はコード化された形で表現されている(例えばJIS
コード)。 2は草書体のひらがなのフォント(パターン)を記憶するメモリ(草書フォン
トデータメモリ)である。 3は文字間の連綿に関する制御パラメータを記憶するテーブルメモリである。
本実施例では、それぞれの制御パラメータの組は草書フォントごとに割り当てら
れている。この詳細については後で詳述する。 4は印字制御部であり、図示しない入力装置(例えばキーボード)を介して与
えられる連綿文字の印刷要求に応じて動作し、上記の文書データ1、草書フォン
トデータメモリ2、連綿テーブル3を使って、必要な情報を1文字単位で出力文
字記憶エリア(出力バッファ)5に設定するとともに、適宜、連綿字形作成部6
を起動する。 連綿字形作成部6の基本機能は2つの文字間の連綿部の生成を行うことである
。 7は連綿可能な最大文字数を記憶するものである。この文字数は入力装置を介
してユーザーが自由に設定することができる。 8は3次スプライン計算の実行部である。3つの制御点を通る曲線(3次スプ
ライン曲線)の生成を行う。 9は生成されたひと続きの連綿文字数、すなわち作成された連綿領域の数の計
数値を格納するレジスタ(カウンタとして機能する)である。この内容は連綿文
字の最大設定数との比較に用いられる。 10は例えばページプリンタのような印字装置であり、11は印刷媒体(用紙
)である。 連綿テーブル(第3A図、第3B図) 第3A図に第2図の連綿テーブル3の構成例を示す。ここでは、テーブル中に
、次のような制御パラメータが文字別に保存されている。説明の便宜上、第3B
図もあわせて参照する。 連綿の可否情報:第1列目の情報で、該当する文字フォントが次の文字フォン トに連綿できるか否かのビットで構成される。 始点:該当する文字の第1画の始端の座標を規定するものである。 終点:該当する文字の最終画の終端の座標を規定するものである(第3B図参 照)。 補間:該当する文字と次の文字との連綿領域の内部点であって、3次スプライ ン計算における3つの制御点の1つを規定する。また、ペイント(ぬりつ ぶし)の際のペイント開始点にもなる。 第1画線幅:該当する文字の第1画の始端の幅を示す。これは、2つの始点 (X1、Y1)、(X2、Y2)を使って求めることもできる。 最終画線幅:該当する文字フォントの最終画の終端の幅を示す。これは、2つ の終点(X3、Y3)、(X4、Y4)を用いて求めることもできる。 〈動作〉 次に以上のように構成した実施例の動作を第4図、第5図を参照して説明する
。 第5図は実施例のフローチャートを示すもので、印刷する文書の範囲その他必
要な書式の設定(例えば、連綿可能な文字数の設定)後、草書の連綿印刷の要求
が与えられたとき、このフローに入る。ポインタが処理の完了を示すエンドポイ
ントに達するまで以下の処理をくり返し実行する(S3)。 前の文字と連綿しない文字の処理に入るときに連綿カウンタ9をイニシャライ
ズする(S1)。ポインタを2つ進め(S2)、文字情報をテキスト例の草書フ
ォントデータメモリ2と連綿テーブル3より1文字分とり出しバッファ5の後文
字格納エリアに格納する(S4)。その文字を印字する(S5)。ポインタをひ
とつ戻す(S6)。文の先頭か否かをチェックし(S7)、先頭なら最初の処理
(S1)に戻り、先頭でないなら以下の処理に戻る。 ポインタの示す文字情報をバッファ7の全文字格納エリアにセットする (S8)。連綿カウンタ9の内容が設定文字数を越えたか否かをチェックし、越
えたときは最初(S1)に戻り、越えてなければ前文字の制御パラメータ中の連
綿の可否ビットを検査する。つまり、今回の文字を前文字に連綿できるか否かを
調べる(S10)。連綿不可なら最初(S1)に戻り、連綿可なら以下の連綿部
生成、印字処理を実行する。 3次スプラインのプログラムに従って、連綿領域の境界線の描画、境界内部の
ペイント処理を実行する(S11)。なお、この処理については、後で第4図を
参照してより詳しく説明する。生成した連綿領域を印刷し(S12)、連綿カウ
ンタ9をインクリメントし(S13)、しかる後、S2のポインタ更新に戻って
処理をくり返す。 上記のフローチャートによる処理を簡単に述べると、まず1文字分の情報をと
り出し、それを印字し、ひとつ前の文字の情報をとり出し、前文字と後文字とを
連綿できるかどうかを前文字の連綿可否ビットを見て決め、また、設定した連綿
数を越えていないかどうかを連綿カウンタ9と設定レジスタ7の内容を比較して
決め、両条件を満たしている場合にのみ、関連する制御パラメータを使って連綿
領域を生成し、それを印刷し、次の文字へ処理を進める。 連綿部の生成処理部(S11、S12、第4図) 次に、前文字と後文字との連綿領域の作成について第4図を参照して説明する
。 上述したように、本実施例の場合は、第4図におけるA点、B点、C点、D点
、それに1つの補間点Iの情報が与えられている。A点(X3、Y3)とB点(X
4、Y4)は前文字の最終画の終筆のところの2つのかどの座標であり、第5図の
S8のところで入手できている。同じくS8のところで、補間点Iの情報も入手
されている。一方、C点(X1、Y1)とD点(X2、Y2)は後文字の第1画の始
筆のところの2つのかどの座標であり、第5図のS4のところで入手できている
。A〜D点及びI点の供給源は連綿テーブル3(第1図、第3A図)である。 連綿領域の生成プロセスは大きく分けて、境界線の描画(DRAW)と境界線
で仕切られる閉領域内のぬりつぶし(PAINT)より成る。 境界線の描画プロセスとして、本例では3次スプライン(パラメトリック3次 曲線の一種)を使用する。例えば、次のような手順で描画を行う。 まず、補間点Iの左側の点E(左スプライン曲線上の中央の制御点を規定する
もの)と、補間点Iの右側の点F(右スプライン曲線上の中央の制御点を規定す
るもの)をすでに与えられているA〜D点とI点の情報を使って求める。 例えばE点は次のようにして求められる。 Kは例えば4(このときはほほ中間の太さになる)。 Ey=Iy (添字のyはy座標の値を示す) 同様にして、F点は次のようにして求められる。 y=Iy 以上により、スプライン曲線の描画に必要な全ての制御点、すなわちA、E、
Cの3点と、B、F、Dの3点が決定した。 そこで、3つの制御点A、E、Cを使って、これらの点を通る3次スプライン
曲線(左境界線)を生成する。同様に、3つの制御点B、F、Dを使ってこれら
の点を通る3次スプライン曲線(右境界線)を生成する。この生成自体はよく知
られている技術である。 以上により描画プロセスが完了する。この段階で、ペイント(ぬりつぶし)の
閉領域の境界線がすべて与えられている。すなわち、AよりE、C、D、F、B
、Aに至る閉曲線が、適当な画像バッファ上に展開されている。そしてこの閉曲
線で囲まれる中にI点が存在する。そこで、この内部点Iをペイント開始点とし
てペイントプログラムを実行する。この結果、閉曲線で囲まれる領域が全てぬり
つぶされる。この領域が、前文字と後文字との連綿領域である。これを印刷装置
10を介して印刷することにより、前文字と後文字との連綿部が印刷される。 〈変形例〉 本発明は上記実施例には限定されず、種々の変形、変更が容易に実現できる。 例えば、上記実施例において、連綿数の設定、連綿可否、連綿数の計数を行っ ている理由は、主として草書文書のよみやすさを保つためにある(すべてを連綿
させると可読性が落ちる)。しかし、フレキシビリティ、各ユーザーの好み等を
考慮して、その他の変形が容易に考えられる。例えば、縦書だけでなく横書用も
できるようにする。このためには、横書用の連綿テーブルが必要となる(1部の
情報は縦書用の連綿テーブルと共用してもよい)。 また、文字間のピッチに合わせて、補間点を動かしてもよい。これは例えば、
基準補間点をスケール変換することにより(ピッチ係数を乗じることにより)、
あるいは複数の設定補問点のひとつを選択することにより容易に実現できる。 印字装置としては、グラフィック機能の付いたページプリンタ以外に、ドット
プリンタのようなものでも使用できる(本体側で文字間の補間イメージデータを
生成し、それをプリンタ側に転送することにより)。 連綿の終了に関連し、連綿終了文字のときは連綿書体とは別の書体のフォント
を使用してもよい。 連綿部の描画に関し、3次スプライン以外に任意の他の曲線生成プログラムを
使用することができる。(例えばエルミート(Hermite)、ヘジェ(Be
zier))。くねりを多くしたければ、4次以上の多項式を使ってもよい。 また連綿領域中に「穴」領域を設け、そこのところがかすれて印刷されるよう
にしてもよい。これは例えば、ペイントで連綿領域をつくった後、ソフトフォー
カスのような「かすれ」のプログラムを実行することで行うことができる(毛筆
のタッチ感を出すために)。 また、上記実施例では、補間点を2つの連続する文字のうち前文字の方に割り
当てた座標データで構成しているが、選択した2つの文字(連続して出力された
もの)の組合せに依存して与えるようにしてもよい。これにより、連綿の最適化
が図れる。 また、文字端データを工夫することも考えられる。例えば、連綿させるときに
、連綿用の文字端データと連綿用のイメージデータ(フォント)を使い、イメー
ジデータを文字フォントの端につなぎ(整合がとれるパターンにしておく)、こ
の文字端データを使って描画、ペイントをかける。この方式は特に、漢字類の連
綿に適すると思われる。 [発明の効果] 本発明によれば、互いに太さをもった毛筆書体の第1の文字フォントと第2の
文字フォントとを連綿する連綿パターンを出力する際は、その第1の文字フォン
トから第2の文字フォントへ連続的につながる太さの連綿パターンを出力するよ
うにしたので、毛筆書体の文字フォントのように、互いに太さが異なる各文字フ
ォントをその太さを生かしてスムーズに連綿することができ、毛筆書体の文字フ
ォントにおける連綿出力として最適な出力が可能となる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a brush character output device such as a Japanese word processor for continuously outputting characters in a brush typeface. [Prior Art] In recent years, it has become difficult to obtain a handwritten document by using a font having a pattern like a brush typeface (brush font) in a sense of deviating from the conventional output and printing functions using hard type fonts. Attempted. However, although there is a demand for an apparatus capable of smoothly connecting such brush fonts in a desired combination, it has not yet been realized. [Problems to be Solved by the Invention] Conventionally, in a device that can output a continuous character string by a line, a continuous character string font is stored in a memory from the beginning, and by extracting each character string font, Then, the continuous character string is developed on the output medium. Therefore, the number of character strings that can be used is proportional to the capacity of the memory, and only fixed character strings can be obtained as continuous character strings, and arbitrary characters cannot be combined. Also, in the case of brush typeface characters, since the thickness of each character is different, it is enormous to have the brush fonts linked in memory from the beginning, and it is conceivable that the letters of the brush typeface will be linked continuously. Not. An object of the present invention is to make it possible to output a plurality of characters in a brush typeface in a continuous manner. [Means for Solving the Problems] The means of the present invention are as follows. An apparatus for outputting a character font pattern of a brush typeface waiting for thickness, wherein the continuous cotton pattern generating means outputs a first character font pattern and a second character font pattern which are output adjacent to each other. A continuous pattern in which the thickness pattern at the end position of the first character font pattern is continuously connected to the thickness pattern at the start position of the second character font pattern is generated. The continuous pattern output unit outputs the continuous pattern generated by the continuous pattern generation unit as a query between the first character font pattern and the second character font pattern. [Operation] The operation of the means of the present invention is as follows. An apparatus for outputting a character font pattern in a cursive font having a thickness, and when outputting a first character font pattern and a second character font pattern output adjacent to each other, the first A continuous pattern generation unit generates a continuous pattern in which the thickness pattern at the end position of the character font pattern is continuously connected to the thickness pattern at the start position of the second character font pattern. Is output by the continuous pattern output means in response to the question of the first character font pattern and the second character font pattern. Therefore, it is possible to output a plurality of characters of different brush styles with different thicknesses in a continuous manner. [Expansion] Now, in FIG. 1, it is assumed that the access unit C has passed information of two character fonts extracted from the font data generation unit A to the continuous area generation unit D. On the other hand, the continuous area D extracts control parameters related to the received information from the control parameter generating means B. Then, a continuous area between two character fonts to be accessed is generated using the control parameters. In the case where the present invention is applied to continuous writing such as a brush typeface, the font data generating means A is a so-called dot font memory (a font set is formed by a set of dots) having the same pattern and form as the brush typeface finally output. (Defined memory) is preferred, but in general may be of other types. For example, a memory for storing a start point and an end point, means for drawing these questions by an appropriate drawing algorithm, a memory for storing a paint start position located in a drawn closed area, and a paint algorithm (painting program) based on a paint start position ), And a so-called vector font type font generation source including means for executing the painting in the closed area. The control parameter provided by the control parameter generation means B defines a parameter relating to continuous operation between characters. In a preferred embodiment of the present invention, the control parameter includes information for designating whether or not repetition between characters is performed. Do not create a continuous area between characters. More preferably, the availability information is programmable. For example, the user is allowed to freely set continuity information. In this way, the flexibility of the continuous cotton is improved. For example, when the present invention is applied to the writing of a brush, the continuous cotton can be terminated at a Japanese character desired by the user. Further, control coordinates (interpolation points) located in a continuous area between characters can be included in the control parameters. These control coordinates can be advantageously used as control points when the continuous area generating means D performs drawing or painting. In order to improve flexibility, it is more preferable to make the control coordinates programmable. Further, information on the maximum number of characters that can be continuously linked can be included in the control parameters. In this connection, a coefficient means is provided on the side of the continuous area generating means D, and the counting means is caused to count the number of generated continuous areas. When the counted value reaches the maximum number of consecutive characters, the next character is output. The creation of a continuous area is prohibited. By incorporating such a function in the application of the brush typeface to continuous output, it is possible to effectively avoid the problem that characters are too continuous and difficult to read. The maximum number of consecutive characters described above can also be made programmable. Further, a plurality of set continuous character numbers may be switched in accordance with the position on the character string at the time of continuous character creation. Furthermore, character end data can be included in the control parameters. The character end in this case refers to a portion of the character font (pattern) that is connected to the continuous area. Preferably, the character edge data is the width (image width) of the edge of the character of interest.
And its coordinates. Such information matches a part of the boundary line of the continuous area generated by the continuous area generation unit. In a preferred embodiment of the invention, the control parameters are assigned on a character-by-character basis. In other words, it suffices if there are control parameters for the number of characters that can be generated by the font data generating means A. Therefore, in the case of <Hiragana>, it is sufficient to prepare at most several dozen sets of control parameters. Also, one per character
The method of assigning a set of control parameters also has the advantage of reducing the design load and simplifying the system configuration and processing. However, the present invention is not limited to this. For example, the character sets to be used are grouped, and according to the relationship between characters belonging to a certain character type (group) and characters belonging to the same or another group, that is, corresponding to a combination of two character groups. , Control parameters (for example, control coordinates) may be assigned. Although the embodiments described below apply the present invention to a series of hiragana-style hiragana, the principle of the present invention is not limited to this, and the same applies to other types of hiragana, or obvious changes. Can be applied by adding Therefore, the meaning of the term "character" defined in claim 1 should be interpreted in the broadest sense, at least with any pattern that can be converted using the source code (for example,
Graphic symbols). Hereinafter, an embodiment of the present invention will be described with reference to the drawings. <Configuration> FIG. 2 shows the overall configuration of the embodiment. This embodiment has a function of printing with hiragana in a cursive style. 1 stores document data in a memory called a text memory or the like. Each character on the document data memory 1 is represented in a coded form (for example, JIS
code). Reference numeral 2 denotes a memory (cursive font data memory) for storing a hiragana font (pattern) of cursive font. Reference numeral 3 denotes a table memory for storing control parameters relating to continuous connection between characters.
In this embodiment, each set of control parameters is assigned to each cursive font. The details will be described later. Reference numeral 4 denotes a print control unit which operates in response to a print request for continuous characters given via an input device (for example, a keyboard) (not shown), and uses the document data 1, the cursive font data memory 2, and the continuous table 3 described above. The necessary information is set in the output character storage area (output buffer) 5 on a character-by-character basis, and the continuous
Start The basic function of the continuous character forming unit 6 is to generate a continuous part between two characters. Numeral 7 stores the maximum number of characters that can be continuously linked. The number of characters can be freely set by the user via the input device. Reference numeral 8 denotes a cubic spline calculation execution unit. A curve (cubic spline curve) passing through three control points is generated. Reference numeral 9 denotes a register (which functions as a counter) that stores the number of continuous characters generated, that is, the count value of the number of the generated continuous regions. This content is used for comparison with the maximum set number of continuous characters. Reference numeral 10 denotes a printing device such as a page printer, and reference numeral 11 denotes a printing medium (paper). Continuous Table (FIGS. 3A and 3B) FIG. 3A shows a configuration example of the continuous table 3 in FIG. Here, the following control parameters are stored for each character in the table. For convenience of explanation, 3B
Also refer to the figure. Information on the availability of continuous fonts: Information in the first column, consisting of bits indicating whether the corresponding character font can be transmitted to the next font. Start point: Specifies the coordinates of the start end of the first stroke of the corresponding character. End point: Defines the coordinates of the end of the last stroke of the corresponding character (see FIG. 3B). Interpolation: An internal point in the continuous area between the relevant character and the next character, which specifies one of three control points in the cubic spline calculation. It is also the starting point for painting when painting. First image line width: Indicates the width of the start end of the first image of the corresponding character. This can also be determined using two starting points (X 1 , Y 1 ) and (X 2 , Y 2 ). Final stroke width: Indicates the width of the end of the final stroke of the corresponding character font. This can be determined using the two end points (X 3 , Y 3 ) and (X 4 , Y 4 ). <Operation> Next, the operation of the embodiment configured as described above will be described with reference to FIG. 4 and FIG. FIG. 5 shows a flow chart of the embodiment. After the setting of the range of the document to be printed and other necessary formats (for example, the setting of the number of characters that can be repeated), when a request for continuous draft printing is given, this flowchart is used. to go into. The following processing is repeatedly executed until the pointer reaches the end point indicating the completion of the processing (S3). When processing of a character that is not continuous with the previous character is started, the continuous counter 9 is initialized (S1). The pointer is advanced by two (S2), and the character information is extracted from the cursive font data memory 2 of the text example and the continuous table 3 for one character and stored in the character storage area after the buffer 5 (S4). The character is printed (S5). The pointer is reset by one (S6). It is checked whether the sentence is at the head (S7). If it is the head, the process returns to the first process (S1). If it is not the head, the process returns to the following process. The character information indicated by the pointer is set in the entire character storage area of the buffer 7 (S8). It is checked whether or not the content of the continuous counter 9 has exceeded the set number of characters. If it has exceeded, the process returns to the beginning (S1), and if not, the control bit of the preceding character checks whether or not the continuous character is valid. That is, it is determined whether or not the current character can be repeated as the previous character (S10). If repetition is not possible, the process returns to the beginning (S1). If repetition is possible, the following repetition portion generation and print processing are executed. According to the program of the cubic spline, drawing of the boundary of the continuous area and painting of the inside of the boundary are executed (S11). This processing will be described later in more detail with reference to FIG. The generated continuous area is printed (S12), the continuous counter 9 is incremented (S13), and thereafter, the process returns to the pointer update of S2 and repeats the processing. To briefly describe the processing according to the above flow chart, first take out the information for one character, print it out, take out the information of the previous character, and check whether the previous character and the succeeding character can be connected consecutively. And whether or not the set number of repetitions is exceeded is determined by comparing the contents of the repetition counter 9 and the setting register 7. Only when both conditions are satisfied, the related control is performed. A continuous area is generated using parameters, printed, and the process proceeds to the next character. Next, a process of generating a continuous area of a preceding character and a succeeding character will be described with reference to FIG. As described above, in the case of the present embodiment, the information on the points A, B, C, D, and one interpolation point I in FIG. 4 is given. Point A (X 3 , Y 3 ) and Point B (X
4 , Y 4 ) are the coordinates of the two corners at the end of the last stroke of the previous character, which are available at S8 in FIG. Similarly, at S8, information on the interpolation point I is also obtained. On the other hand, point C (X 1 , Y 1 ) and point D (X 2 , Y 2 ) are two corner coordinates of the first stroke of the first stroke of the succeeding character, and can be obtained at S 4 in FIG. ing. The supply source at the points A to D and I is the continuous table 3 (FIGS. 1 and 3A). The generation process of the continuous area is roughly divided into drawing of a boundary line (DRAW) and painting (PAINT) within a closed area partitioned by the boundary line. In this example, a cubic spline (a type of parametric cubic curve) is used as the boundary line drawing process. For example, drawing is performed in the following procedure. First, a point E on the left side of the interpolation point I (defining a central control point on the left spline curve) and a point F on the right side of the interpolation point I (defining a central control point on the right spline curve) Is obtained using the information of points A to D and point I which have already been given. For example, point E is obtained as follows. K is, for example, 4 (in this case, the thickness becomes almost the middle). E y = I y (the subscript y indicates the value of the y coordinate) Similarly, the point F is obtained as follows. With F y = I y or more, all control points necessary for drawing a spline curve, that is, A, E,
Three points of C and three points of B, F and D were determined. Therefore, a cubic spline curve (left boundary line) passing through these three control points A, E, and C is generated. Similarly, a cubic spline curve (right boundary) passing through these three control points B, F, and D is generated. This generation itself is a well-known technique. Thus, the drawing process is completed. At this stage, all the boundaries of the closed area of paint have been given. That is, from A, E, C, D, F, B
, A are developed on a suitable image buffer. The point I exists inside the closed curve. Therefore, a paint program is executed using the internal point I as a paint start point. As a result, the entire area surrounded by the closed curve is painted. This area is a continuous area of the preceding character and the succeeding character. By printing this through the printing device 10, a continuous portion of the preceding character and the succeeding character is printed. <Modifications> The present invention is not limited to the above embodiment, and various modifications and changes can be easily realized. For example, in the above-described embodiment, the reason for setting the number of repetitions, determining whether repetition is possible, and counting the number of repetitions is mainly to maintain legibility of a cursive document (reading all reduces the readability). However, other variations are easily conceivable in consideration of flexibility, user preferences, and the like. For example, horizontal writing as well as vertical writing can be performed. For this purpose, a continuous writing table for horizontal writing is required (a part of the information may be shared with the continuous writing table for vertical writing). The interpolation point may be moved in accordance with the pitch between characters. This is for example
By scaling the reference interpolation point (by multiplying it by the pitch factor)
Alternatively, it can be easily realized by selecting one of a plurality of setting inquiry points. As a printing device, in addition to a page printer having a graphic function, a dot printer can also be used (by generating interpolated image data between characters on the main body and transferring it to the printer). In connection with the end of the continuation, a font of a font different from the continuation typeface may be used for the continuation character. Any other curve generation program other than the cubic spline can be used for drawing the continuous portion. (For example, Hermite, Heje
zier)). If you want more bends, you may use a polynomial of degree 4 or higher. Further, a "hole" area may be provided in the continuous area, and the area may be blurred and printed. This can be done, for example, by creating a continuous area with paint, and then executing a program of "blurring" such as soft focus (to give a touch of a brush). Further, in the above embodiment, the interpolation point is constituted by the coordinate data assigned to the preceding character of the two consecutive characters, but the interpolation point is determined by the combination of the selected two characters (consecutively output). It may be given depending on. As a result, optimization of continuous yarn can be achieved. It is also conceivable to devise character end data. For example, when performing continuous use, the character end data for continuous use and the image data (font) for continuous use are used, and the image data is connected to the end of the character font (in a pattern that can be matched), and this character end data is used. Draw and paint. This method seems to be particularly suitable for kanji. [Effects of the Invention] According to the present invention, when outputting a continuous pattern in which a first character font and a second character font of a brush typeface having a different thickness are output, the first character font is output from the first character font. Since a continuous pattern with a thickness that is continuously connected to the second character font is output, each character font with a different thickness, such as a character font of a brush typeface, can be smoothly combined using its thickness. Output can be optimally performed as continuous output in a character font of a brush typeface.

【図面の簡単な説明】 第1図は本発明の機能ブロック図、第2図は一実施例の構成図、第3A図は第
2図の連綿テーブルの構成例を示す図、第3B図は連綿テーブル内の連綿制御パ
ラメータの説明図、第4図は連綿部生成の説明図、第5図は実施例の連綿文字作
成のフローチャートである。 2……草書フォントデータメモリ、3……連綿テーブル、4……印字制御部、
6……連綿字形作成部、8……3次スプライン計算部。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a functional block diagram of the present invention, FIG. 2 is a configuration diagram of one embodiment, FIG. 3A is a diagram showing a configuration example of the continuous table of FIG. 2, and FIG. FIG. 4 is an explanatory diagram of a continuous control parameter in a continuous table, FIG. 4 is an explanatory diagram of a continuous portion generation, and FIG. 5 is a flowchart of continuous character creation in the embodiment. 2 ... cursive font data memory, 3 ... continuous table, 4 ... print control unit,
6 ... a continuous-figure-shaped forming unit, 8 ... a cubic spline calculating unit.

Claims (1)

【特許請求の範囲】 太さを持った毛筆書体の文字フォントパターンを出力する装置であって、 互いに隣接する第1の文字及び第2の文字について予め定められた毛筆書体の
文字フォントパターンを出力する文字フォントパターン出力手段と、 上記文字フォントパターン出力手段が出力した文字フォントパターンに対して
上記第1の文字の文字フォントパターンの終筆位置2点座標と、上記第2の文
字の文字フォントパターンの始筆位置2点座標とに基づいて、上記第1の文字の
文字フォントパターンの終筆位置と上記第2の文字の文字フォントパターンの始
筆位置とを結ぶ2本の連続曲線を描画すると共に、この2本の連続曲線を境界線
としてこの2本の境界線で挟まれる閉領域に対して塗りつぶし描画を行なうこと
により、上記第1の文字の文字フォントパターンの終筆位置における太さのパタ
ーンが上記第2の文字の文字フォントパターンの始筆位置における太さのパター
ンへ連続的につながる連綿パターンを出力する連綿パターン出力手段と、 を具備したことを特徴とする毛筆文字出力装置。
An apparatus for outputting a character font pattern of the brush typeface with All Claims thickness, outputs a first character and a character font pattern of the predetermined brush typeface for the second character adjacent to each other Character font pattern output means, and a character font pattern output by the character font pattern output means .
The a stroke end position by two coordinate points of the character font pattern of the first character, based on the Shihitsu position by two coordinate points of the character font pattern of the second character, the first character of the character font pattern end of Draw two continuous curves connecting the brush position and the starting position of the character font pattern of the second character, and use the two continuous curves as boundaries to form a closed region sandwiched between the two boundaries. On the other hand, by performing the fill drawing, the thickness pattern at the end position of the character font pattern of the first character is continuously connected to the thickness pattern at the start position of the character font pattern of the second character. A brush character output device, comprising: a continuous cotton pattern output unit that outputs a continuous cotton pattern.

Family

ID=

Similar Documents

Publication Publication Date Title
JP3145509B2 (en) Character generation method and device
JP3037854B2 (en) Character generation method and device
JPH06328785A (en) Method and apparatus for forming character
JP2569489B2 (en) Brush character output device
US5542050A (en) Font information transfer system
JP2569489C (en)
JPH05232926A (en) Character code generating device
JPH02280195A (en) Character generator
JP2562458B2 (en) Character generation method for computer system
JP2951809B2 (en) Handwritten font printing method
JPH01272460A (en) Method and apparatus for generating character
JP3347756B2 (en) Character generation method and device
JPH04348388A (en) Character output system
JP2965429B2 (en) Character output device
JPH0789274B2 (en) Continuous cotton character creation method
JP2908194B2 (en) Character transformation control method
JP2525333B2 (en) Output device
JP3025141B2 (en) Character modifier
JPH08101675A (en) Font developing device
JP3072756B2 (en) Drawing equipment
JPH06100905B2 (en) Pattern output method
JP2861201B2 (en) Data converter
JP2800865B2 (en) Character processor
JPH07141340A (en) Document output method and document processor
JPH0687249A (en) Apparatus for printing address