JP3283762B2 - Character pattern generator - Google Patents

Character pattern generator

Info

Publication number
JP3283762B2
JP3283762B2 JP21116496A JP21116496A JP3283762B2 JP 3283762 B2 JP3283762 B2 JP 3283762B2 JP 21116496 A JP21116496 A JP 21116496A JP 21116496 A JP21116496 A JP 21116496A JP 3283762 B2 JP3283762 B2 JP 3283762B2
Authority
JP
Japan
Prior art keywords
skeleton
code
character
shape information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP21116496A
Other languages
Japanese (ja)
Other versions
JPH1055162A (en
Inventor
優香 薮内
進 長谷川
豊 信貴
一 渡邊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP21116496A priority Critical patent/JP3283762B2/en
Publication of JPH1055162A publication Critical patent/JPH1055162A/en
Application granted granted Critical
Publication of JP3283762B2 publication Critical patent/JP3283762B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は文字パターン生成装
置に関し、より詳細には、ワードプロセッサ、コンピュ
ータ、電子手帳等の電子情報機器に適用され、文字の一
画線・点などを共通化した構成要素から文字パターンを
生成する文字パターン生成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character pattern generating apparatus, and more particularly, to a component which is applied to an electronic information device such as a word processor, a computer, an electronic organizer, etc., and shares one stroke / point of a character. The present invention relates to a character pattern generation device that generates a character pattern from a character pattern.

【0002】[0002]

【従来の技術】従来、アウトラインフォントの文字パタ
ーンを生成する装置は、全ての文字パターンデータを装
置内のメモリに記憶しているため、各種の書体の文字パ
ターンデータを記憶させることはメモリのデータ量が大
規模になる問題があった。そこでメモリのデータ量を少
なくするために、例えば、文字パターンを一つの画線
(ストローク)や点などの構成要素(パーツ)に分解
し、構成要素を組み合わせることにより文字パターンを
生成する技術が知られている。
2. Description of the Related Art Conventionally, an apparatus for generating an outline font character pattern stores all character pattern data in a memory in the apparatus. There was a problem that the volume became large. Therefore, in order to reduce the amount of data in the memory, for example, there is known a technique of decomposing a character pattern into components (parts) such as one image line (stroke) or a point and combining the components to generate a character pattern. Have been.

【0003】例えば、特開平4−340159号公報に
記載のマルチ書体出力装置では、文字を構成するストロ
ークを部品化した多種類のベースパーツが用意されてい
る。このベースパーツは一つの画線、または点など、そ
れ以上分解できない基本的なパーツで、骨格データ、肉
付けデータ、一つの骨格の開始端と終了端の両端形状デ
ータからなり、このベースパーツを組み合わせることに
よって一つの文字を得るとともにこのベースパーツを制
御してある一つの書体を基本として他の特定書体を形成
するものである。
For example, in a multi-type font output device described in Japanese Patent Application Laid-Open No. 4-340159, various types of base parts are prepared in which strokes constituting characters are made into parts. This base part is a basic part that cannot be further decomposed, such as one object line or point, and consists of skeletal data, flesh data, shape data of both ends of the start and end ends of one skeleton, and combines this base part Thus, one character is obtained, and another specific font is formed based on one font which controls the base part.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記特
開平4−340159号公報では、ある一つの書体を基
本として他の特定書体に変換する際、一つの画線または
骨格に対して開始端と終了端の両端形状データのベース
パーツを制御することによる書体変更しか行えないの
で、書体の変更範囲が狭くなり、限られた表現の書体し
か生成できなかった。
However, in the above-mentioned Japanese Patent Application Laid-Open No. 4-340159, when one typeface is converted to another specific typeface, the start and end points of one object or skeleton are converted. Since only the typeface can be changed by controlling the base parts of the end shape data of the end, the range of change of the typeface is narrowed, and only a limited typeface can be generated.

【0005】本発明は以上の事情を考慮してなされたも
ので、例えば、文字パターンの一画線や点を構成する各
構成要素として要素骨格形状情報と要素輪郭形状情報を
階層的に記憶し、かつこの要素骨格形状情報と要素輪郭
形状情報の組み合わせを書体に応じて予め設定すること
により、データ量を少なくして多種多様な書体の文字パ
ターンを生成することができる文字パターン生成装置を
提供するものである。
The present invention has been made in view of the above circumstances. For example, element skeleton shape information and element outline shape information are hierarchically stored as components constituting one stroke or point of a character pattern. In addition, a character pattern generating apparatus is provided which can set a combination of the element skeleton shape information and the element outline shape information in advance according to the typeface, thereby reducing a data amount and generating a variety of typeface character patterns. Is what you do.

【0006】[0006]

【課題を解決するための手段】図1は本発明の基本構成
を示すブロック図である。図1に示すように、本発明
は、生成する文字パターンの文字コード/書体コードを
入力する入力手段101と、文字パターンの一画線・点
を表す字体骨格形状情報、構成要素である一画線・点の
各要素骨格を表す要素骨格形状情報、構成要素の要素輪
郭を表す要素輪郭形状情報、及び字体骨格形状情報の一
画線・点に対応する要素骨格形状情報と要素輪郭形状情
報との組み合わせを設定する要素組み合わせコード情報
を文字コード/書体コードに対応して記憶している記憶
手段102と、前記入力手段からの文字コード/書体コ
ードの入力を受けた際、前記記憶手段102から要素組
み合わせコード情報を読み出しこの要素組み合わせコー
ド情報に対応する要素骨格形状情報と要素輪郭形状情報
とを順次読み出し合成して、入力された文字コード/書
体コードに対応する文字パターンを生成する文字生成手
段103と、生成された文字パターンを出力する出力手
段104とを備えたことを特徴とする文字パターン生成
装置である。
FIG. 1 is a block diagram showing the basic configuration of the present invention. As shown in FIG. 1, the present invention provides an input unit 101 for inputting a character code / font code of a character pattern to be generated, character skeleton shape information representing one stroke / point of the character pattern, and one stroke as a component. Element skeleton shape information representing each element skeleton of a line / point, element outline shape information representing an element outline of a component, and element skeleton shape information and element outline shape information corresponding to one stroke / point of font skeleton shape information The storage means 102 stores element combination code information for setting combinations of character codes and font codes, and the storage means 102 receives the input of the character code / font code from the input means. The element combination code information is read out, the element skeleton shape information and the element outline shape information corresponding to the element combination code information are sequentially read out and combined, and the input character code is read. A character generator 103 for generating a character pattern corresponding to the read / font code, a character pattern generating apparatus characterized by comprising an output means 104 for outputting the generated character pattern.

【0007】なお、本発明において、入力手段101
は、キーボード、ペン・タブレット等の入力装置で構成
されている。記憶手段102、文字生成手段103は、
CPU、ROM、RAM、I/Oポートからなるマイク
ロコンピュータで構成されることが好ましい。特に、記
憶手段102としては、この中のROMまたは外部記憶
装置のフロッピーディスクで構成される。また、ROM
はCPUが、文字生成手段103として機能するプログ
ラムが記憶されている。出力手段104はLCD(液
晶)ディスプレイ、CRTディスプレイ等の表示装置、
及びサーマルプリンタ、レーザープリンタ等の印刷装置
で構成されることが好ましい。
In the present invention, the input means 101
Is composed of an input device such as a keyboard and a pen / tablet. The storage unit 102 and the character generation unit 103
It is preferable that the microcomputer is constituted by a microcomputer including a CPU, a ROM, a RAM, and an I / O port. In particular, the storage means 102 is constituted by a ROM therein or a floppy disk of an external storage device. Also, ROM
Indicates a program in which the CPU functions as the character generation unit 103. The output unit 104 is a display device such as an LCD (liquid crystal) display or a CRT display;
And a printing device such as a thermal printer or a laser printer.

【0008】本発明によれば、文字パターンを構成する
一画線・点を構成する複数の構成要素として要素骨格形
状情報と要素輪郭形状情報を記憶し、かつこの要素骨格
形状情報と要素輪郭形状情報の組み合わせを書体に応じ
て予め設定することにより、データ量を少なくして多種
多様な書体の文字パターンを生成することができる。
According to the present invention, element skeleton shape information and element outline shape information are stored as a plurality of components forming one stroke / point constituting a character pattern, and the element skeleton shape information and the element outline shape are stored. By setting the combination of information in advance according to the typeface, it is possible to reduce the amount of data and generate character patterns of various types of typeface.

【0009】前記記憶手段102は、要素組み合わせコ
ード情報に対応して要素骨格形状情報と要素輪郭形状情
報を予め組み合わせ情報として記憶するよう構成される
ことが好ましい。また、前記要素組合せコード情報は、
字体骨格形状情報の一画線・点に対応する要素骨格形状
情報と要素輪郭形状情報との組み合わせを設定する要素
組み合わせ番号、要素コード、階層番号などから構成さ
れる。前記構成によれば、要素骨格形状情報と要素輪郭
形状情報の共有化ができ、記憶手段(ROM)のデータ
容量の削減が可能である。
Preferably, the storage means 102 is configured to store element skeleton shape information and element outline shape information as combination information in advance corresponding to the element combination code information. Further, the element combination code information includes:
It is composed of an element combination number, an element code, a hierarchy number, and the like for setting a combination of the element skeleton shape information and the element outline shape information corresponding to one stroke / point of the character skeleton shape information. According to the above configuration, the element skeleton shape information and the element outline shape information can be shared, and the data capacity of the storage means (ROM) can be reduced.

【0010】前記文字生成手段103は、入力された文
字コード/書体コードに対応する要素組み合わせコード
情報に基づいて一画線・点の各骨格形状とその各輪郭形
状を階層的に変更することにより書体に応じた文字パタ
ーンを生成するよう構成されることが好ましい。前記構
成によれば、一画線・点の各骨格形状とその各輪郭形状
を階層的に変更することにより、一画線・点の基本構成
要素である要素骨格形状情報と要素輪郭形状情報とのデ
ータ量を削減しつつ広がりある表現の書体を生成するこ
とが可能となる。
The character generating means 103 hierarchically changes each skeleton shape and each outline shape of one stroke / point based on the element combination code information corresponding to the input character code / typeface code. It is preferable to generate a character pattern corresponding to a typeface. According to the configuration, by changing the skeleton shape of one stroke / point and each contour shape in a hierarchical manner, element skeleton shape information and element contour shape information which are basic components of one stroke / point are changed. It is possible to generate a typeface with a wide expression while reducing the amount of data.

【0011】[0011]

【発明の実施の形態】以下、図に示す実施例に基づいて
本発明を詳述する。なお、これによって本発明は限定さ
れるものではない。本発明の文字パターン生成装置は、
ワードプロセッサ、コンピュータ、電子手帳等の電子情
報処理機器において、特に、各種書体の漢字パターン生
成に適用される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on an embodiment shown in the drawings. Note that the present invention is not limited by this. The character pattern generation device of the present invention includes:
In an electronic information processing device such as a word processor, a computer, and an electronic organizer, the present invention is applied particularly to kanji pattern generation of various typefaces.

【0012】図2は本発明の一実施例である文字パター
ン生成装置の構成を示すブロック図である。図2におい
て、1はキーボード、マウス、ペン・タブレット等で構
成される入力装置(図1の入力手段として機能)、2は
ROM、フロッピーディスク、ハードディスクで構成さ
れる補助メモリ(図1の記憶手段として機能)、3はプ
ログラムにより装置全体を制御するマイクロコンピュー
タのCPU(図1の文字生成手段として機能)、4はR
OM、RAMで構成される主メモリ、5はRAMで構成
されるビットマップメモリ、6はLCD(液晶)ディス
プレイ、CRTディスプレイ等の表示装置、及びサーマ
ルプリンタ、レーザープリンタ等の印刷装置で構成され
る出力装置(図1の出力手段として機能)である。
FIG. 2 is a block diagram showing a configuration of a character pattern generating apparatus according to one embodiment of the present invention. In FIG. 2, reference numeral 1 denotes an input device including a keyboard, a mouse, a pen and a tablet (functioning as an input unit in FIG. 1), and reference numeral 2 denotes an auxiliary memory including a ROM, a floppy disk, and a hard disk (storage unit in FIG. 1). 3) a CPU of a microcomputer for controlling the entire apparatus by a program (functioning as a character generation unit in FIG. 1);
OM, a main memory composed of a RAM, 5 a bitmap memory composed of a RAM, 6 a display device such as an LCD (liquid crystal) display and a CRT display, and a printing device such as a thermal printer and a laser printer. An output device (functions as an output unit in FIG. 1).

【0013】入力装置1は、生成する文字パターンの文
字コード、書体コード等を入力するために用いられる。
補助メモリ2は、生成する文字パターンの一画線・点を
表す字体骨格形状情報と、構成要素である一画線・点の
各要素骨格を表す要素骨格形状情報と、構成要素の要素
輪郭を表す要素輪郭形状情報と、一画線・点に対し字体
骨格形状情報と要素骨格形状情報と要素輪郭形状情報と
の組み合わせを設定する要素組み合わせコード情報を格
納している。
The input device 1 is used to input a character code, a typeface code, and the like of a character pattern to be generated.
The auxiliary memory 2 stores font skeleton shape information representing one stroke / point of the character pattern to be generated, element skeleton shape information representing each element skeleton of one stroke / point which is a component, and element outline of the component. It stores element outline shape information to be represented, and element combination code information for setting a combination of font skeleton shape information, element skeleton shape information, and element outline shape information for one stroke / point.

【0014】CPU3は、文字パターンを生成するプロ
グラム用のメモリとワーク用のメモリを備えたマイクロ
コンピュータで構成されており、補助メモリ2と主メモ
リ4に記憶した各データ(各情報)により文字パターン
を生成する文字生成部として機能する。また、文字パタ
ーンを生成する際、各情報を読み出す読出部、要素骨格
の形状を変更する要素骨格形状変更部、要素輪郭の形状
を変更する要素輪郭形状変更部、階層処理を行うか否か
を判断する階層処理判断部としても機能する。
The CPU 3 is composed of a microcomputer having a program memory for generating a character pattern and a work memory, and uses the data (each information) stored in the auxiliary memory 2 and the main memory 4 to store the character pattern. It functions as a character generation unit that generates. When generating a character pattern, a reading unit that reads out information, an element skeleton shape changing unit that changes the shape of an element skeleton, an element outline shape changing unit that changes the shape of an element outline, and whether or not to perform hierarchical processing. It also functions as a hierarchical processing determining unit for determining.

【0015】主メモリ4は、入力装置1から入力された
文字コード、書体コードなど、補助メモリ2から読み出
された要素組合せコード情報、要素骨格形状情報などの
各データを一時格納するための入力バッファと、形状が
変更された要素輪郭形状データを一時格納するための出
力バッファと、要素骨格形状変更情報と輪郭形状変更情
報等のデータを記憶する記憶部とから構成されている。
ビットマップメモリ5は、文字パターンをビットマップ
データに展開する。出力装置6は、展開された文字パタ
ーンを表示出力または印刷出力する。
The main memory 4 is an input for temporarily storing various data such as element combination code information and element skeleton shape information read from the auxiliary memory 2 such as character codes and typeface codes input from the input device 1. It comprises a buffer, an output buffer for temporarily storing element outline shape data whose shape has been changed, and a storage unit for storing data such as element skeleton shape change information and outline shape change information.
The bitmap memory 5 develops the character pattern into bitmap data. The output device 6 displays or prints out the developed character pattern.

【0016】ここで、文字の輪郭形状を記憶する方法を
説明すると、(1)文字の輪郭線を直線近似で記憶する
方法、(2)文字の輪郭線を直線と円弧で記憶する方
法、(3)文字の輪郭線を直線と曲線で記憶する方法等
を挙げることができる。文字品位、データ容量の効率等
を考慮した場合、上記(3)の方法が最も文字パターン
生成に適しており、従って、本実施例では上記(3)の
方法に基づいて要素輪郭形状情報における輪郭点座標デ
ータなどが補助メモリ2に記憶されている。次に、補助
メモリ2の詳細な構成を説明する。
Here, a method for storing the outline shape of a character will be described. (1) A method for storing the outline of a character by linear approximation, (2) a method for storing the outline of a character as a straight line and an arc, 3) A method of storing the outline of a character as a straight line and a curve can be used. In consideration of character quality, data capacity efficiency, and the like, the method (3) is most suitable for generating a character pattern. Therefore, in this embodiment, the contour in the element contour shape information is determined based on the method (3). Point coordinate data and the like are stored in the auxiliary memory 2. Next, a detailed configuration of the auxiliary memory 2 will be described.

【0017】図3は本発明による補助メモリに記憶して
いる字体骨格形状情報の構成例を示す説明図である。字
体骨格形状情報は、字種を区別する文字コード、一つの
字体骨格形状情報から生成される書体コード種、文字の
字体を構成する構成要素の組み合わせを示す総構成要素
数、一構成要素に対応する要素コードの組み合わせを示
す要素組合せ番号、一構成要素を形成する骨格点数、骨
格座標データへのポインタから構成されている。さら
に、一文字分の総骨格点数、各構成要素の骨格点座標デ
ータが続いて構成され、補助メモリ2に記憶されてい
る。
FIG. 3 is an explanatory diagram showing an example of the configuration of the font skeleton shape information stored in the auxiliary memory according to the present invention. The font skeleton shape information corresponds to a character code for distinguishing a character type, a font code type generated from one font skeleton shape information, a total number of components indicating a combination of components constituting a character font, and one component. An element combination number indicating a combination of element codes to be used, the number of skeleton points forming one component, and a pointer to skeleton coordinate data. Further, the total number of skeleton points for one character and skeleton point coordinate data of each component are successively formed and stored in the auxiliary memory 2.

【0018】図4は本発明による補助メモリに記憶して
いる要素骨格形状情報の構成例を示す説明図である。要
素骨格形状情報は、書体種を区別する書体コード、その
書体に用意されている総要素コード数、要素コード番
号、骨格を構成する骨格点数、各骨格点座標データへの
ポインタ、一書体分の総骨格点数の後に各要素コードの
骨格点座標で構成され、補助メモリ2に記憶されてい
る。
FIG. 4 is an explanatory diagram showing a configuration example of element skeleton shape information stored in the auxiliary memory according to the present invention. The element skeleton shape information includes a typeface code for distinguishing a typeface, the total number of element codes prepared for the typeface, the element code number, the number of skeleton points constituting the skeleton, a pointer to each skeleton point coordinate data, and one typeface. After the total number of skeleton points, skeleton point coordinates of each element code are formed and stored in the auxiliary memory 2.

【0019】図5は本発明による補助メモリに記憶して
いる要素輪郭形状情報の構成例を示す説明図である。要
素輪郭形状情報は、書体種を区別する書体コード、その
書体に用意されている総要素コード数、要素情報は要素
の数だけ存在する要素コード番号、輪郭を構成する輪郭
点数、各輪郭点座標データへのポインタ、一書体分の総
輪郭点数の後に各要素コードの輪郭点座標で構成され、
補助メモリに記憶されている。
FIG. 5 is an explanatory diagram showing a configuration example of element outline shape information stored in the auxiliary memory according to the present invention. The element outline shape information is a typeface code for distinguishing a typeface, the total number of element codes prepared for the typeface, the element information is an element code number that exists as many as the number of elements, the number of outline points constituting the outline, and the coordinates of each outline point. It is composed of a pointer to data, the contour point coordinates of each element code after the total contour points for one typeface,
It is stored in the auxiliary memory.

【0020】図6は本発明による補助メモリに記憶して
いる要素組合せコード情報の構成例を示す説明図であ
る。要素組合せコード情報は、書体種を区別する書体コ
ード、その書体に用意されている総要素組合せ番号数、
要素組合せ番号、上位要素コード番号、上位要素骨格点
の変形対応先となる字体骨格形状情報内の各構成要素の
骨格点情報である対応字体骨格点情報、階層処理が何層
段階に設定されているか示す階層番号、階層処理時の下
位要素コード番号、階層骨格展開を行なう際の骨格基準
点、変形対応先である要素骨格形状情報内の上位基準点
と下位階層の要素骨格形状情報内の下位基準点で構成さ
れ、補助メモリに記憶されている。
FIG. 6 is an explanatory diagram showing a configuration example of element combination code information stored in the auxiliary memory according to the present invention. The element combination code information includes a typeface code for distinguishing a typeface, the total number of element combination numbers prepared for the typeface,
The element combination number, the upper element code number, the corresponding font skeleton point information which is the skeleton point information of each component in the font skeleton shape information to which the deformation of the upper element skeleton point corresponds, and the number of layer stages are set. The hierarchical skeleton point for performing the hierarchical skeleton expansion, the upper reference point in the element skeleton shape information to which the deformation corresponds, and the lower level in the element skeleton shape information of the lower hierarchy. It is composed of reference points and stored in the auxiliary memory.

【0021】要素組合せコード情報は、字体骨格形状内
の一構成要素に対して変形させるための複数の要素コー
ド番号の組合せを予め設定したデータであり、これら下
位階層処理時に必要な、下位要素コード番号、上位基準
点、下位基準点は、階層処理を行う回数分(階層数)づ
つ、各組合せ番号内に設定されている。
The element combination code information is data in which a combination of a plurality of element code numbers for deforming one constituent element in the font skeleton shape is set in advance. The number, the upper reference point, and the lower reference point are set in each combination number by the number of times of performing the hierarchical processing (the number of layers).

【0022】図7は本実施例における要素骨格形状情報
の骨格点と要素輪郭形状情報の輪郭点との対応を示す説
明図である。図7において、点k0、k1、k2、k3
は、要素骨格形状情報内の一構成要素が持つ骨格点を示
すものであり、例えば、区点コード2002の「刈」の
字体骨格形状情報において、「丿(払い)」の部分に対
応する要素の骨格点である。次に、点p0、p1、p
2、p3、p4、p5、p6、p7、p8は要素輪郭形
状情報内の一構成要素が持つ輪郭点を示すものであり、
「丿(払い)」の部分に対応する要素の輪郭点である。
FIG. 7 is an explanatory diagram showing the correspondence between the skeleton points of the element skeleton shape information and the outline points of the element outline shape information in this embodiment. In FIG. 7, points k0, k1, k2, k3
Indicates a skeleton point of one component in the element skeleton shape information. For example, in the character skeleton shape information of “cut” in the kuten code 2002, an element corresponding to a part of “α (pay)” Is the skeletal point of Next, the points p0, p1, p
2, p3, p4, p5, p6, p7, and p8 indicate contour points of one component in the element contour shape information.
It is a contour point of the element corresponding to the part of “丿 (pay)”.

【0023】各骨格点k0、k1、k2、k3を結ぶ線
分を、それぞれk0−k1,k1−k2,k2−k3と
する。各輪郭点p0、p1、p2、p3、p4、p5、
p6、p7、p8から最短距離で到達できる線分を求
め、その線分の始点となる骨格点番号を、輪郭点が所属
する骨格点番号cp2、cp3、cp4、cp6、cp
7、cp8とする。このようにして求めた各骨格点番号
を、要素輪郭形状変更情報として要素輪郭形状情報内に
構成する。
Line segments connecting the skeleton points k0, k1, k2, and k3 are designated as k0-k1, k1-k2, and k2-k3, respectively. Each contour point p0, p1, p2, p3, p4, p5,
A line segment that can be reached at the shortest distance from p6, p7, and p8 is determined, and the skeleton point number as the starting point of the line segment is determined as the skeleton point number cp2, cp3, cp4, cp6, cp to which the contour point belongs.
7, cp8. Each skeleton point number thus obtained is configured in the element outline shape information as element outline shape change information.

【0024】要素骨格形状の変更に付随して要素輪郭形
状を変更する処理においては、一個の骨格点の座標値が
変更した場合、その前後の骨格点により定義される2本
の線分を求め、それぞれの始点となっている2点の骨格
点の番号を求める。そして2点の骨格点の番号と同じも
のを、要素輪郭形状変更情報として持っている輪郭点の
全てを移動の対象とする。
In the process of changing the element outline shape accompanying the change of the element skeleton shape, when the coordinate value of one skeleton point is changed, two line segments defined by the skeleton points before and after it are obtained. , The numbers of the two skeleton points that are the starting points of each are obtained. Then, all the contour points having the same skeleton point numbers as the element contour shape change information are to be moved.

【0025】図8は本発明による書体変更処理例1を示
す説明図である。また、図8に示す要素骨格形状の骨格
点、要素輪郭形状の輪郭点は、図7に示す区点コード2
002の「刈」の字体骨格形状情報において、「丿(払
い)」の部分に対応する骨格点と輪郭点である。ここ
で、線分k2−k3が線分k2’−k3’に移動した場
合、輪郭形状変更情報によりp4、p5、p6(輪郭点
が属する骨格点の番号(k2、k3))が移動の対象と
なる。p4とp6の移動時の条件は次の通りである。
FIG. 8 is an explanatory diagram showing a typeface change processing example 1 according to the present invention. The skeleton points of the element skeleton shape and the outline points of the element outline shape shown in FIG.
The skeleton points and the contour points corresponding to the part of “α (pay)” in the font type skeleton shape information “002” of “002”. Here, when the line segment k2-k3 moves to the line segment k2'-k3 ', p4, p5, and p6 (the skeleton point numbers (k2, k3) to which the contour points belong) are moved by the contour shape change information. Becomes The conditions at the time of movement of p4 and p6 are as follows.

【0026】(1)輪郭点p4、p6から降ろした垂線
D4、D6と、線分k2−k3との交点をcp4、cp
6とし、k2−cp4の長さL1、cp4−cp6の長
さL2、cp6−k3の長さL3とする。この時、輪郭
点p4とcp4とk2によって形成される角を角A(9
0°)とする。同じく輪郭点p6とcp6とk2によっ
て形成される角を角B(90°)とする。
(1) The intersections of the perpendiculars D4, D6 dropped from the contour points p4, p6 and the line segment k2-k3 are cp4, cp
6, the length L1 of k2-cp4, the length L2 of cp4-cp6, and the length L3 of cp6-k3. At this time, the angle formed by the contour points p4, cp4, and k2 is the angle A (9
0 °). Similarly, the angle formed by the contour points p6, cp6, and k2 is referred to as a corner B (90 °).

【0027】長さL1:L2:L3の比率と等しくなる
ように、線分k2’−k3’上に点cp1’、cp2’
を生成する。(骨格点k2’は骨格点k2と同じ位置で
ある。なお、k2’−cp4’の長さL1’、cp4’
−cp6’の長さL2’、cp6’−k3’の長さL
3’としておく。この時、輪郭点p4’とcp4’とk
2’によって形成される角を角A’(90°)とする。
同じく輪郭点p6’とcp6’とk2’によって形成さ
れる角を角B’(90°)とする。
The points cp1 'and cp2' are placed on the line segment k2'-k3 'so as to be equal to the ratio of the lengths L1: L2: L3.
Generate (The skeleton point k2 ′ is at the same position as the skeleton point k2. Note that the length L1 ′ and cp4 ′ of k2′−cp4 ′.
-Length L2 'of cp6', length L of cp6'-k3 '
3 '. At this time, the contour points p4 ', cp4' and k
The angle formed by 2 ′ is angle A ′ (90 °).
Similarly, the corner formed by the contour points p6 ', cp6', and k2 'is referred to as a corner B' (90 °).

【0028】(2)線分k2−k3からp4、P6まで
の距離をD4、D6とし、(1)で求めた点cp4’と
cp6’から線分k2’−k3’に対し垂直方向に距離
D4’、D6’だけ離れた所にp4、p6の移動後の点
p4’、p6’を置く。すなわち、図8において、P
4、P6の移動条件とは、 (a)長さの比が、L1:L2:L3=L1’:L
2’:L3’ (b)距離のD4=D4’かつD6=D6’ である。前記(a)、(b)の関係式を満たす輪郭点移
動処理により、字体骨格形状に即した要素輪郭形状変更
が行える。
(2) The distances from the line segment k2-k3 to p4 and P6 are D4 and D6, and the distance from the points cp4 'and cp6' obtained in (1) to the line segment k2'-k3 'in the vertical direction. The points p4 'and p6' after the movement of p4 and p6 are placed at positions D4 'and D6' apart. That is, in FIG.
The moving conditions of P4 and P6 are as follows: (a) The length ratio is L1: L2: L3 = L1 ′: L
2 ′: L3 ′ (b) The distances D4 = D4 ′ and D6 = D6 ′. By performing the contour point moving process that satisfies the relational expressions (a) and (b), the element contour shape can be changed according to the character skeleton shape.

【0029】図9は本実施例における要素組み合わせ番
号の要素骨格形状と要素輪郭形状を示す説明である。図
9を用いて、字体骨格形状情報内の一構成要素に相当す
る複数の要素骨格形状情報と要素輪郭形状情報とについ
て説明する。また、図9は図7に示す区点コード200
2「刈」の字体骨格形状情報において「丿(払い)」の
部分に対応する書体「B」で要素組合せ番号149を示
す。全要素(3722、0924)の各骨格点と各輪郭
点である。
FIG. 9 is an illustration showing the element skeleton shape and the element contour shape of the element combination number in this embodiment. With reference to FIG. 9, a plurality of element skeleton shape information and element outline shape information corresponding to one component in the font skeleton shape information will be described. FIG. 9 is a sectional code 200 shown in FIG.
2. The element combination number 149 is indicated by a typeface “B” corresponding to the part of “α (pay)” in the font type skeleton shape information of “cut”. Each skeleton point and each contour point of all elements (3722, 0924).

【0030】図9(a)は要素組合せ番号149の一構
成である要素コード3722の骨格点と輪郭点を示す説
明図である。図7と同様に、点k0、k1、k2、k3
は、要素骨格形状情報内の要素コード3722が持つ各
骨格点を示しており、一方、点p0、p1、p2、p
3、p4、p5、p6、p7、p8は、要素輪郭形状情
報内の要素コード3722が持つ各輪郭点を示すもので
ある。
FIG. 9A is an explanatory diagram showing skeleton points and outline points of an element code 3722 which is one configuration of the element combination number 149. As in FIG. 7, points k0, k1, k2, k3
Indicates each skeleton point of the element code 3722 in the element skeleton shape information. On the other hand, the points p0, p1, p2, p
3, p4, p5, p6, p7, and p8 indicate the respective contour points of the element code 3722 in the element contour shape information.

【0031】図9(b)は要素組合せ番号149の一構
成である要素コード0924の骨格点と輪郭点を示す説
明図である。図7と同様に、k0、k1、k2は、要素
骨格形状情報内の要素コード0924が持つ各骨格点を
示しており、一方、点p0.p1、p2、p3、p4、
p5は、要素輪郭形状情報内の要素番号0924が持つ
各輪郭点を示すものである。
FIG. 9B is an explanatory diagram showing skeleton points and outline points of the element code 0924 which is one configuration of the element combination number 149. Similarly to FIG. 7, k0, k1, and k2 indicate the skeleton points of the element code 0924 in the element skeleton shape information. p1, p2, p3, p4,
p5 indicates each contour point of the element number 0924 in the element contour shape information.

【0032】図10は本実施例における一画線分の字体
骨格形状を示す説明図である。この図10において、点
K0,K1,K2,K3,K4は、字体骨格形状を示す
各骨格点である。図11は本発明による書体変更処理例
2を示す説明である。図11に示すように、要素組合せ
番号149の字体骨格形状の各骨格点に沿って要素コー
ド3722と要素コード0924の各骨格点の移動処理
を行った後、要素輪郭形状の各輪郭点の移動処理(合成
処理)をすることにより書体の変更処理を行う。
FIG. 10 is an explanatory diagram showing the character skeleton shape of one stroke in this embodiment. In FIG. 10, points K0, K1, K2, K3, and K4 are skeleton points indicating a character skeleton shape. FIG. 11 is an illustration showing a typeface change processing example 2 according to the present invention. As shown in FIG. 11, after performing the movement process of each skeleton point of the element code 3722 and the element code 0924 along each skeleton point of the character skeleton shape of the element combination number 149, the movement of each outline point of the element outline shape By performing processing (combining processing), the font type is changed.

【0033】図11(a)は、要素組合せコード情報内
の要素組合せ番号149の字体骨格形状の各対応骨格点
と、要素コード3722の要素骨格形状の各骨格点と要
素輪郭形状の各輪郭点と、要素コード0924の要素骨
格形状の各骨格点と要素輪郭形状の各輪郭点とを示す。
一方、図11(b)は合成処理した1画線分の書体を示
す。要素コード3722の骨格点k0、k1、k2、k
3の対応骨格点は、K1、K2、K3、K4であり、同
様に、要素コード0924の骨格点k0、k1、k2の
対応骨格点は、K0、K1、K2となり、これは移動先
となる要素組み合わせ番号149の字体骨格形状に一致
させるということを示している。
FIG. 11 (a) shows each corresponding skeleton point of the character skeleton shape of the element combination number 149 in the element combination code information, each skeleton point of the element skeleton shape of the element code 3722, and each contour point of the element outline shape. And each skeleton point of the element skeleton shape of the element code 0924 and each outline point of the element outline shape.
On the other hand, FIG. 11B shows a typeface for one image line subjected to the synthesis processing. Skeleton points k0, k1, k2, k of element code 3722
The corresponding skeleton points of 3 are K1, K2, K3, and K4. Similarly, the corresponding skeleton points of the skeleton points k0, k1, and k2 of the element code 0924 are K0, K1, and K2, which are destinations. This indicates that the character combination skeleton shape of the element combination number 149 is matched.

【0034】図12は本発明による書体変更処理例3を
示す説明図である。図12に示すように、要素組合せ番
号150の字体骨格形状の骨格点に沿って要素コード3
722と要素コード0924の各骨格点の移動処理を行
った後、要素輪郭形状の各輪郭点の移動処理(合成処
理)、階層骨格形状(例えば、下位要素コード703
0)の展開処理をすることにより書体を変更処理する。
FIG. 12 is an explanatory diagram showing a typeface change processing example 3 according to the present invention. As shown in FIG. 12, the element code 3 is set along the skeleton point of the character skeleton shape of the element combination number 150.
After performing the movement processing of each skeleton point of the element outline 722 and the element code 0924, the movement processing (synthesis processing) of each outline point of the element outline shape, the hierarchical skeleton shape (for example, the lower element code 703)
The typeface is changed by performing the expansion processing of 0).

【0035】図12(a)は、要素組合せコード情報内
の要素組合せ番号150の字体骨格形状の各対応骨格点
と、上位要素コード3722の要素骨格形状の各骨格点
と要素輪郭形状の各輪郭点と、上位要素コード0924
の要素骨格形状の各骨格点と要素輪郭形状の各輪郭点
と、下位要素コード7030を示す。一方、図12
(b)は合成処理した1画線分の書体を示す。すなわ
ち、要素組合せ番号150は、要素組合せ番号149の
組合せに階層処理を行う下位要素コード7030が追加
されたものである。そして、要素組合せコード情報内で
要素コードの階層処理の段階示す階層番号は、その階層
が何段階の層であるか示す“階層番号=階層処理回数”
になっている。
FIG. 12 (a) shows each corresponding skeleton point of the character skeleton shape of the element combination number 150 in the element combination code information, each skeleton point of the element skeleton shape of the upper element code 3722, and each contour of the element outline shape. Point and upper element code 0924
, Each skeleton point of the element skeleton shape, each outline point of the element outline shape, and the lower element code 7030. On the other hand, FIG.
(B) shows a typeface for one image line subjected to the synthesis processing. That is, the element combination number 150 is obtained by adding a lower element code 7030 for performing hierarchical processing to the combination of the element combination number 149. The layer number indicating the stage of the layer processing of the element code in the element combination code information is “layer number = number of layer processing” indicating how many layers the layer is.
It has become.

【0036】つまり、要素組合せコード情報内の“階層
番号=0”の場合、上位要素コードの上位階層処理を行
うことを示しており、階層番号が“階層番>0”の場
合、下位階層処理を行うことを示す。要素組合せコード
情報内の要素組合せ番号150で示す要素コード総数
は、上位要素コードは、“3722”、“0924”の
2種と上位要素コード0924に対し階層処理を行う下
位要素コード“7030”の1種を含む合計3種であ
る。
In other words, when “layer number = 0” in the element combination code information, it indicates that the upper layer processing of the upper element code is performed, and when the layer number is “layer number> 0”, the lower layer processing is performed. To do. The total number of element codes indicated by the element combination number 150 in the element combination code information is the upper element code of “3722” and “0924” and the lower element code “7030” that performs hierarchical processing on the upper element code 0924. There are a total of three types including one type.

【0037】通常、要素骨格形状情報の各骨格点は、移
動先となる字体骨格形状情報内の一構成要素に相当する
各骨格点に即して変更され、この骨格点に即して要素輪
郭形状の輪郭点が移動処理される。しかし、この要素コ
ード0924には、要素組合せコード情報の階層番号が
1になっており、この要素コードは1層の階層処理を行
うことを示している。
Normally, each skeleton point of the element skeleton shape information is changed in accordance with each skeleton point corresponding to one component in the font skeleton shape information to be moved, and the element outline is changed in accordance with this skeleton point. The contour points of the shape are moved. However, in the element code 0924, the layer number of the element combination code information is 1, indicating that this element code performs one layer processing.

【0038】このように、階層処理を行う下位要素コー
ド7031の要素骨格形状情報の骨格点の移動先は、要
素組合せコード情報内に示す下位要素コードの次に続
く、上位要素コードの要素骨格情報内の要素骨格点を示
す上位基準点k0にこの下位要素コードの要素骨格形状
情報内の要素骨格点を示す下位基準点k1の各骨格座標
点を組合せ、各骨格点を移動処理される。そして、この
移動処理後の骨格点情報に即して下位要素コードの要素
輪郭形状の輪郭点が移動処理される。下位要素コードの
要素骨格形状情報は、この下位要素コードより一段階上
位要素コードの要素骨格形状情報内の上位基準点の骨格
点座標に即して展開処理を行なう階層骨格展開処理を行
う。
As described above, the destination of the skeleton point of the element skeleton shape information of the lower element code 7031 to be subjected to the hierarchical processing is the element skeleton information of the upper element code following the lower element code shown in the element combination code information. The skeleton points of the lower reference point k1 indicating the element skeleton point in the element skeleton shape information of the lower element code are combined with the upper reference point k0 indicating the element skeleton point in the above, and each skeleton point is moved. Then, the contour point of the element contour shape of the lower element code is moved according to the skeleton point information after the movement processing. The element skeleton shape information of the lower element code performs a hierarchical skeleton expansion process of performing expansion processing in accordance with the skeleton point coordinates of the upper reference point in the element skeleton shape information of the one-step upper element code from the lower element code.

【0039】図13は本実施例における書体変更処理後
の区点コード2002「刈」の要素骨格形状と要素輪郭
形状を示す説明図である。図13において、図13
(a)は、書体変更処理後の区点コード2002「刈」
の要素骨格形状情報内の骨格点座標を示し、一方、13
(b)は、要素輪郭形状情報内の輪郭点座標を示す。
FIG. 13 is an explanatory diagram showing the element skeleton shape and the element contour shape of the kuten code 2002 "cut" after the font type change processing in this embodiment. In FIG. 13, FIG.
(A) is a Kuten code 2002 “cut” after the font type change processing
Indicates the skeleton point coordinates in the element skeleton shape information.
(B) shows the contour point coordinates in the element contour shape information.

【0040】図14は本発明の一実施例の処理動作を示
すフローチャートである。また、図15は図14に続く
本発明の一実施例の処理動作を示すフローチャートであ
る。図14はステップS1〜S9までの処理動作を示
し、図15はステップS10〜S18の処理動作を示
す。 ステップS1:まず、入力装置1から、生成すべき文字
コード(2002)「刈」と、書体コード(B)を入力
する。 ステップS2:CPU3は、文字コードに従い補助メモ
リ2から文字生成処理に用いられる一文字分の字体骨格
形状情報と、書体コードに対応する要素骨格形状情報と
要素輪郭形状情報と要素組合せコード情報を読み出し、
主メモリ4の入力バッファに取り込む。
FIG. 14 is a flowchart showing the processing operation of one embodiment of the present invention. FIG. 15 is a flowchart showing the processing operation of the embodiment of the present invention following FIG. FIG. 14 shows the processing operations of steps S1 to S9, and FIG. 15 shows the processing operations of steps S10 to S18. Step S1: First, a character code (2002) “cut” to be generated and a typeface code (B) are input from the input device 1. Step S2: The CPU 3 reads, from the auxiliary memory 2, character skeleton shape information of one character used for character generation processing, element skeleton shape information corresponding to the font code, element outline shape information, and element combination code information in accordance with the character code.
The data is taken into the input buffer of the main memory 4.

【0041】ステップS3:ステップS2で取り込んだ
字体骨格形状情報(図3参照)の中から、ステップS1
にて指定された書体コードに対応する一構成要素分の要
素組合せコード情報内の要素組合せ番号と構成要素の骨
格点座標データをCPU3内のワーク用メモリに取り込
む。 ステップS4:ステップS2で取り込んだ要素組合せコ
ード情報(図6参照)内の要素組合せ番号が示す一構成
要素分に対応する要素コードをCPU3内のワーク用メ
モリに読み込む。 ステップS5:ステップS4で読み込んだ一構成要素分
の要素組合せ番号が示す要素コードの要素輪郭形状情報
(図4参照)と要素骨格形状情報(図5参照)を入力バ
ッファから呼び出す。
Step S3: From the font skeleton shape information (see FIG. 3) taken in step S2, step S1
The element combination number and the skeleton point coordinate data of the element in the element combination code information for one element corresponding to the typeface code specified by the above are taken into the work memory in the CPU 3. Step S4: The element code corresponding to one component indicated by the element combination number in the element combination code information (see FIG. 6) fetched in step S2 is read into the work memory in the CPU 3. Step S5: Call out the element outline shape information (see FIG. 4) and the element skeleton shape information (see FIG. 5) of the element code indicated by the element combination number of one component read in step S4 from the input buffer.

【0042】ステップS6:CPU3内の要素骨格形状
変更部で、ステップS3でCPU3内のワークメモリに
取り込んだ字体骨格形状情報内の構成要素の骨格点座標
と要素組合せコード情報内の要素対応骨格点に基づき、
ステップS5において取り出された要素骨格形状情報の
各骨格点の座標値を拡大・縮小・回転等の方法を用いて
骨格点座標データの値に一致させる(図11(a)参
照)。 ステップS7:CPU3内の要素輪郭形状変更部で、ス
テップS6で変更処理を行った要素骨格形状情報におけ
る移動に合わせて要素輪郭形状の輪郭点(座標値)を移
動させる(図11(b)参照)。
Step S6: The element skeleton shape changing unit in the CPU3, the skeleton point coordinates of the components in the font skeleton shape information fetched into the work memory in the CPU3 in step S3, and the element corresponding skeleton points in the element combination code information. Based on
The coordinate value of each skeleton point of the element skeleton shape information extracted in step S5 is made to match the value of the skeleton point coordinate data by using a method such as enlargement / reduction / rotation (see FIG. 11A). Step S7: The element outline shape changing unit in the CPU 3 moves the outline points (coordinate values) of the element outline shape in accordance with the movement in the element skeleton shape information subjected to the change processing in step S6 (see FIG. 11B). ).

【0043】ステップS8:CPU3は要素コードの階
層処理数をカウント数で判断するための処理情報とし
て、階層カウント(i)に“0”をセットする(i=
0)。 ステップS9:CPUの階層処理判断部により、ステッ
プS3で取り込んだ要素組合せコード情報内の階層番号
により、対象要素コードが構成要素に対しての組合せ内
で階層処理を実効するか判断を行う。階層番号=0の場
合、YESとなりステップS16に進み、階層番号>0
の場合、NOとなりステップS10に進む。
Step S8: The CPU 3 sets “0” to the layer count (i) as processing information for determining the number of layer processing of the element code by the count number (i =
0). Step S9: The hierarchical processing determination unit of the CPU determines whether or not the target element code performs the hierarchical processing within the combination for the constituent element based on the hierarchical number in the element combination code information fetched in step S3. If the hierarchical number is 0, the determination is YES, the process proceeds to step S16, and the hierarchical number is greater than 0.
In this case, the determination is NO, and the process proceeds to step S10.

【0044】ステップS10:CPU3は、階層カウン
ト(i)に“1”をプラスする(i=i+1)。 ステップS11:CPU3は、ステップS3で読み込ん
だ、要素組合せコード情報(図6参照)内で判断された
階層処理を行う下位要素コードの一要素輪郭形状情報と
一要素輪郭形状情報をCPU3のワークメモリに取り込
む。
Step S10: The CPU 3 adds "1" to the hierarchy count (i) (i = i + 1). Step S11: The CPU 3 stores the one element outline shape information and the one element outline shape information of the lower element code read in step S3 and subjected to the hierarchical processing determined in the element combination code information (see FIG. 6) in the work memory of the CPU 3. Take in.

【0045】ステップS12:CPU3は要素骨格形状
変更部で、要素組合せコード情報内の上位要素コードの
要素骨格形状情報の骨格点を示す上位基準点に基づき下
位要素コードの要素骨格形状情報の骨格点が示す下位基
準点の骨格点座標値を一致させ、この移動値に即して、
ステップS11において取り込んだ下位要素コードの一
要素骨格形状情報の各骨格点座標値の移動を行う(図1
2(a)参照)。
Step S12: The CPU 3 is an element skeleton shape changing section, based on the upper reference point indicating the skeleton point of the element skeleton shape information of the upper element code in the element combination code information, the skeleton point of the element skeleton shape information of the lower element code. The skeleton point coordinate values of the lower reference point indicated by are matched, and in accordance with this shift value,
The coordinate values of each skeleton point of the one-element skeleton shape information of the lower element code taken in step S11 are moved (FIG. 1).
2 (a)).

【0046】ステップS13:CPU3は要素輪郭形状
変更部で、ステップS12で展開を行った下位要素コー
ドの要素骨格形状情報の各骨格点座標値に基づき、下位
要素コードの要素輪郭形状情報の輪郭点(座標値)を移
動させる(図12(a)参照)。 ステップS14:CPU3は階層処理判断部で、階層番
号と、階層カウント(i)の数値が一致するか判断す
る。階層番号=階層カウント(i)の場合はYESとな
りS16へ進む。階層番号≠階層カウント(i)の場合
はNOとなりS15へ進む。
Step S13: The CPU 3 is an element outline shape changing unit, and based on each skeleton point coordinate value of the element skeleton shape information of the lower element code developed in step S12, the contour point of the element outline shape information of the lower element code. (Coordinate value) is moved (see FIG. 12A). Step S14: The CPU 3 determines whether or not the hierarchy number matches the numerical value of the hierarchy count (i) by the hierarchy processing determination unit. If the layer number is equal to the layer count (i), the determination is YES, and the process proceeds to S16. In the case of layer number ≠ layer count (i), NO is determined and the process proceeds to S15.

【0047】ステップS15:CPUは、ステップS3
で読み込んだ要素コード全てに対して、要素骨格点の移
動と要素輪郭形状の離隔点の移動が終了したか。終了し
た場合、ステップS16に進み、未終了の場合はステッ
プS4に進む。 ステップS16:一構成要素の輪郭点全てに対して移動
処理が済んだ後、ステップS7、ステップS13で移動
後の輪郭点を主メモリの出力バッファに出力する。
Step S15: The CPU proceeds to step S3
Whether the movement of the element skeleton point and the movement of the separation point of the element outline shape have been completed for all the element codes read in step 2. If the process has been completed, the process proceeds to step S16, and if not completed, the process proceeds to step S4. Step S16: After the moving process is completed for all the contour points of one component, the moved contour points are output to the output buffer of the main memory in steps S7 and S13.

【0048】ステップS17:CPU3で一文字中の全
構成要素について処理を行ったのか判断を行う。YES
の場合、ステップS18に進み、主メモリ4の出力バッ
ファ内のデータをビットマップメモリ5に転送してこの
処理を終了する(図12(b)参照)。NOの場合、ス
テップS3に戻り、次の構成要素に関する要素組合せ情
報と骨格点座標データ(図13(a)参照)を、入力バ
ッファからCPU3内のワーク用メモリに取り込む。 ステップS18:なお、ビットマップメモリ5に転送さ
れた輪郭点データは、ビットマップデータに展開された
後(図13(b)参照)、出力装置6により印刷されて
出力される。
Step S17: It is determined whether or not the CPU 3 has processed all the components in one character. YES
In the case of (1), the process proceeds to step S18, where the data in the output buffer of the main memory 4 is transferred to the bitmap memory 5, and the process is terminated (see FIG. 12B). In the case of NO, the process returns to step S3, and the element combination information and the skeleton point coordinate data (see FIG. 13A) relating to the next component are fetched from the input buffer into the work memory in the CPU 3. Step S18: The contour point data transferred to the bitmap memory 5 is developed into bitmap data (see FIG. 13B), and then printed and output by the output device 6.

【0049】本発明によれば、全ての文字パターンをデ
ザインする必要のある従来のフォント開発と比較した場
合、構成要素の輪郭を表す要素輪郭形状をデザインする
だけで文字パターンを生成できるのでより少ない工数で
書体開発することが可能である。さらに要素輪郭形状を
変更する手段を備えており、要素輪郭形状の共通化を図
ることができる。
According to the present invention, when compared with the conventional font development in which all character patterns need to be designed, the character pattern can be generated only by designing the element outline shape representing the outline of the constituent element, so that the number of character patterns can be reduced. It is possible to develop fonts with man-hours. Further, a means for changing the element outline shape is provided, so that the element outline shape can be shared.

【0050】また、要素骨格形状に階層骨格を有するも
のが存在するため、共通の構成要素の一部を変化させる
ことにより、形状表現が広がり1書体の開発に必要な構
成要素の要素輪郭形状情報と要素骨格形状情報を削減す
ることが可能となる。また、字体骨格形状情報内の一構
成要素に組合わさる複数の要素コードの組合せを予め設
定してあるため、要素骨格形状情報及び要素骨格形状情
報の共有化ができ、データ量の削減が可能である。ま
た、この同じ組み合わせ番号で階層処理数を示す階層番
号の判断を行い、要素骨格形状と要素輪郭形状が変更さ
れるため、少ないデータ量で多書体化が可能になる。
Further, since some element skeleton shapes have a hierarchical skeleton, by changing some of the common components, the shape expression is expanded and the element outline shape information of the components necessary for the development of one typeface is obtained. And element skeleton shape information can be reduced. Further, since a combination of a plurality of element codes associated with one component in the font skeleton shape information is set in advance, the element skeleton shape information and the element skeleton shape information can be shared, and the data amount can be reduced. is there. Also, the same combination number is used to determine the layer number indicating the number of layer processing, and the element skeleton shape and the element outline shape are changed, so that multiple fonts can be realized with a small amount of data.

【0051】[0051]

【発明の効果】本発明によれば、文字パターンの一画線
・点を構成する複数の構成要素として要素骨格形状情報
と要素輪郭形状情報を記憶し、かつこの要素骨格形状情
報と要素輪郭形状情報の組み合わせを書体に応じて予め
設定できることにより、データ量を少なくして多種多様
な書体の文字パターンを生成することができる。
According to the present invention, element skeleton shape information and element outline shape information are stored as a plurality of components constituting one stroke / point of a character pattern, and the element skeleton shape information and element outline shape are stored. Since the combination of information can be set in advance in accordance with the typeface, it is possible to reduce the amount of data and generate a variety of typeface character patterns.

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

【図1】本発明の基本構成を示すブロック図である。FIG. 1 is a block diagram showing a basic configuration of the present invention.

【図2】本発明の一実施例である文字パターン生成装置
の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a character pattern generation device according to an embodiment of the present invention.

【図3】本発明による補助メモリに記憶している字体骨
格形状情報の構成例を示す説明図である。
FIG. 3 is an explanatory diagram showing a configuration example of font skeleton shape information stored in an auxiliary memory according to the present invention.

【図4】本発明による補助メモリに記憶している要素骨
格形状情報の構成例を示す説明図である。
FIG. 4 is an explanatory diagram showing a configuration example of element skeleton shape information stored in an auxiliary memory according to the present invention.

【図5】本発明による補助メモリに記憶している要素輪
郭形状情報の構成例を示す説明図である。
FIG. 5 is an explanatory diagram showing a configuration example of element outline shape information stored in an auxiliary memory according to the present invention.

【図6】本発明による補助メモリに記憶している要素組
み合わせコード情報の構成例を示す説明図である。
FIG. 6 is an explanatory diagram showing a configuration example of element combination code information stored in an auxiliary memory according to the present invention.

【図7】本実施例における要素骨格形状情報の骨格点と
要素輪郭形状情報の輪郭点との対応を示す説明図であ
る。
FIG. 7 is an explanatory diagram showing correspondence between skeleton points of element skeleton shape information and contour points of element outline shape information in the embodiment.

【図8】本発明による書体変更処理例1を示す説明図で
ある。
FIG. 8 is an explanatory diagram showing a typeface change processing example 1 according to the present invention;

【図9】本実施例における要素組み合わせ番号の要素骨
格形状と要素輪郭形状を示す説明である。
FIG. 9 is an illustration showing an element skeleton shape and an element outline shape of an element combination number in the present embodiment.

【図10】本実施例における一画線分の字体骨格形状を
示す説明図である。
FIG. 10 is an explanatory diagram showing a character skeleton shape for one stroke in this embodiment.

【図11】本発明による書体変更処理例2を示す説明図
である。
FIG. 11 is an explanatory diagram showing a typeface change processing example 2 according to the present invention.

【図12】本発明による書体変更処理例3を示す説明図
である。
FIG. 12 is an explanatory diagram showing a typeface change processing example 3 according to the present invention.

【図13】本実施例における書体変更処理後の区点コー
ド2002「刈」の要素骨格形状と要素輪郭形状を示す
説明図である。
FIG. 13 is an explanatory diagram showing the element skeleton shape and the element contour shape of the punctuation code 2002 “cut” after the typeface change processing in this embodiment.

【図14】本発明の実施例の処理動作を示すフローチャ
ートである。
FIG. 14 is a flowchart illustrating a processing operation according to the embodiment of the present invention.

【図15】図14に続く本発明の実施例の処理動作を示
すフローチャートである。
FIG. 15 is a flowchart showing the processing operation of the embodiment of the present invention following FIG. 14;

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

1 入力装置 2 補助メモリ 3 CPU 4 主メモリ 5 ビットマップメモリ 6 出力装置 DESCRIPTION OF SYMBOLS 1 Input device 2 Auxiliary memory 3 CPU 4 Main memory 5 Bitmap memory 6 Output device

フロントページの続き (72)発明者 渡邊 一 大阪府大阪市阿倍野区長池町22番22号 シャープ株式会社内 (56)参考文献 特許3207336(JP,B2) (58)調査した分野(Int.Cl.7,DB名) G09G 5/24 Continuation of front page (72) Inventor Kazuki Watanabe 22-22 Nagaike-cho, Abeno-ku, Osaka-shi, Osaka Inside Sharp Corporation (56) References Patent 3207336 (JP, B2) (58) Fields investigated (Int. Cl. 7) , DB name) G09G 5/24

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 生成する文字パターンの文字コード/書
体コードを入力する入力手段と、文字パターンの一画線
・点を表す字体骨格形状情報、構成要素である一画線・
点の各要素骨格を表す要素骨格形状情報、構成要素の要
素輪郭を表す要素輪郭形状情報、及び字体骨格形状情報
の一画線・点に対応する要素骨格形状情報と要素輪郭形
状情報との組み合わせを設定する要素組合せコード情報
を文字コード/書体コードに対応して記憶している記憶
手段と、前記入力手段により文字コード/書体コードの
入力を受けた際、前記記憶手段から要素組み合わせコー
ド情報を読み出し、この要素組み合わせコード情報に対
応する要素骨格形状情報と要素輪郭形状情報とを順次読
み出し合成して、入力された文字コード/書体コードに
対応する文字パターンを生成する文字生成手段と、生成
された文字パターンを出力する出力手段とを備えたこと
を特徴とする文字パターン生成装置。
1. An input means for inputting a character code / font code of a character pattern to be generated, character skeleton shape information representing one stroke / point of the character pattern, and one stroke / line which is a constituent element.
Element skeleton shape information indicating each element skeleton of a point, element outline shape information indicating an element outline of a component, and combination of element skeleton shape information and element outline shape information corresponding to one stroke / point of font skeleton shape information Means for storing element combination code information corresponding to character codes / typeface codes, and when the input means receives a character code / typeface code, the element combination code information is stored from the storage means. Character generating means for reading out, sequentially reading and synthesizing element skeleton shape information and element outline shape information corresponding to the element combination code information, and generating a character pattern corresponding to the input character code / font code. A character pattern generating apparatus, comprising: output means for outputting a character pattern.
【請求項2】 前記記憶手段は、要素組み合わせコード
情報に対応して要素骨格形状情報と要素輪郭形状情報を
予め組み合わせ情報として記憶していることを特徴とす
る請求項1記載の文字パターン生成装置。
2. The character pattern generation apparatus according to claim 1, wherein said storage means stores element skeleton shape information and element outline shape information as combination information in advance corresponding to the element combination code information. .
【請求項3】 前記文字生成手段は、入力された文字コ
ード/書体コードに対応する要素組み合わせコード情報
に基づいて一画線・点の各骨格形状とその各輪郭形状を
階層的に変更することにより書体に応じた文字パターン
を生成することを特徴とする請求項1記載の文字パター
ン生成装置。
3. The character generation means for hierarchically changing each skeleton shape and each outline shape of one stroke / point based on element combination code information corresponding to the input character code / font code. 2. A character pattern generating apparatus according to claim 1, wherein the character pattern is generated according to the typeface.
JP21116496A 1996-08-09 1996-08-09 Character pattern generator Expired - Fee Related JP3283762B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21116496A JP3283762B2 (en) 1996-08-09 1996-08-09 Character pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21116496A JP3283762B2 (en) 1996-08-09 1996-08-09 Character pattern generator

Publications (2)

Publication Number Publication Date
JPH1055162A JPH1055162A (en) 1998-02-24
JP3283762B2 true JP3283762B2 (en) 2002-05-20

Family

ID=16601469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21116496A Expired - Fee Related JP3283762B2 (en) 1996-08-09 1996-08-09 Character pattern generator

Country Status (1)

Country Link
JP (1) JP3283762B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4149943A (en) * 1977-08-31 1979-04-17 Ppg Industries, Inc. Method of recovering mercury
JP3628523B2 (en) 1998-09-03 2005-03-16 シャープ株式会社 Information processing apparatus and recording medium recording pattern generation program

Also Published As

Publication number Publication date
JPH1055162A (en) 1998-02-24

Similar Documents

Publication Publication Date Title
JP3021547B2 (en) Character pattern generation method
JPH0732649A (en) Character synthesizing method and apparatus
JPH1063249A (en) Character pattern forming device
US6266070B1 (en) Character pattern generator, character generating method, and storage medium therefor
JP3330277B2 (en) Character pattern generator
JP3283762B2 (en) Character pattern generator
JPH02291055A (en) Document processor
JP3207336B2 (en) Character pattern generator
JP2740575B2 (en) Character processor
EP0409450B1 (en) Character generator
JPH05232926A (en) Character code generating device
JP3315861B2 (en) Character generator
JPH0934434A (en) Character generating device
JP3344538B2 (en) Character generator
JP3450869B2 (en) Bit image data generation device and bit image data generation method
JP3792171B2 (en) Character pattern generator
JPH01262149A (en) Document output device having dot-character font forming function
JP2896544B2 (en) Character generation method and apparatus
JP2737845B2 (en) Character processing method and apparatus
JP3437293B2 (en) Character output method and character processing device
JP3284172B2 (en) Character processor
JPH02250189A (en) Method and device for generating character
JP3082173B2 (en) Contour data processing device
JP2803746B2 (en) Character processing method and apparatus
JP2965429B2 (en) Character output device

Legal Events

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

Free format text: PAYMENT UNTIL: 20080301

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090301

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100301

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100301

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110301

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees