JPH0239362A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0239362A
JPH0239362A JP63188356A JP18835688A JPH0239362A JP H0239362 A JPH0239362 A JP H0239362A JP 63188356 A JP63188356 A JP 63188356A JP 18835688 A JP18835688 A JP 18835688A JP H0239362 A JPH0239362 A JP H0239362A
Authority
JP
Japan
Prior art keywords
font
data
vector
character
pattern
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
Application number
JP63188356A
Other languages
Japanese (ja)
Inventor
Hiroshi Takakura
洋 高倉
Takahiro Kato
高裕 加藤
Kunio Seto
邦雄 瀬戸
Terushi Shirasaka
白坂 昭史
Masaki Hamada
浜田 正基
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP63188356A priority Critical patent/JPH0239362A/en
Publication of JPH0239362A publication Critical patent/JPH0239362A/en
Priority to US08/397,711 priority patent/US5574842A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To facilitate the evolution of vector fonts into dot pattern data by connecting directly or indirectly the common end points of the vector fonts to each other for preparation of the outline data. CONSTITUTION:An address part 10 inputs the index codes like character codes, etc., and points the font addresses of font memory parts 11 and 12 storing the corresponding pattern data. In case plural font data are available to a single index code, both memory parts 11 and 12 are addressed. A common point detecting part 13 reads the vector font data out of the parts 11 and 12 and checks these font data to detect the common end points. An end point connecting part 14 connects these detected end points to each other via a segment having the length equivalent to the size of a character pattern to be outputted. These connected end points are synthesized into a vector font by a synthesizing part 15 and converted into the dot pattern data by a dot pattern converting part 16.

Description

【発明の詳細な説明】 [産業上の利用分野〕 本発明は文字や図形等のフォントデータをベクタフォン
トで格納する文書処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document processing device that stores font data such as characters and graphics in vector fonts.

[従来の技術] 一般に、ベクタフォントを有する文書処理装置では、表
示或いは印刷される文書のフォントデータが、1文字を
構成する各線分情報として、それを表示したときの表示
開始位置と終了位置とで表わしたベクタの形で記憶され
ている。また、このよつなベクタフォントの各線分を具
現化する方式として、直線線分による方式や円弧或いは
3次スプラインにより補間する方式またはB−スプライ
ンで生成する方式等がある。なお、ベクトルフォントの
内、文字の輪郭をベクトルで表すフォントの場合はアウ
トラインフォントと呼ばれる場合がある。
[Prior Art] Generally, in a document processing device having a vector font, the font data of a document to be displayed or printed is divided into the display start position and end position when it is displayed as information on each line segment constituting one character. It is stored in the form of a vector represented by . Further, methods for realizing each line segment of such a vector font include a method using straight line segments, a method using interpolation using circular arcs or cubic splines, and a method generating using B-splines. Note that among vector fonts, fonts in which the outlines of characters are expressed by vectors are sometimes called outline fonts.

ベクトルフォントはドツトマトリクスで構成されている
フォントに比べ、文字サイズ毎のフォントデータな持た
ずに済むため、必要とするメモリ容量が少なくて済む利
点や、拡大/縮小を行っても文字等のガタつきが発生し
ないという利点がある。
Compared to fonts composed of dot matrix, vector fonts do not require font data for each character size, so they have the advantage of requiring less memory space, and there is no wobble in characters even when enlarged/reduced. It has the advantage that no sticking occurs.

[発明が解決しようとしている課題] このようなベクタフォントでは、1つの文字パターンを
、例えば上半分と下半分に分け、それぞれのベクタフォ
ントを文字コードに対応して記憶しておき、対応する文
字コードが入力されたときに、複数のベクタフォントを
合成して対応する1つの文字パターンを作成することが
応用として考えられる。しかし、このようなことのでき
る装置は従来は存在しなかった。実際、このような文字
フォントをパターンデータに展開するためには、フォン
トデータ同士の接続が問題となり、特にフォントデータ
がアウトライン(輪郭線)で構成されている場合、各フ
ォントデータが閉ループで構成されているため、それら
複数のフォントデータを合成してパターンデータに変換
するときは、各フォントデータのアウトライン部に対し
て特別な処理を行う必要があった。
[Problem to be solved by the invention] In such a vector font, one character pattern is divided into, for example, an upper half and a lower half, each vector font is stored in correspondence with the character code, and the corresponding character A possible application would be to synthesize a plurality of vector fonts to create a corresponding character pattern when a code is input. However, no device that can do this has conventionally existed. In fact, in order to develop such character fonts into pattern data, the connection between the font data becomes a problem, especially when the font data consists of outlines (contour lines), each font data is composed of a closed loop. Therefore, when combining these multiple font data and converting them into pattern data, it was necessary to perform special processing on the outline portion of each font data.

本発明は上記従来例に鑑みてなされたもので、複数のベ
クタフォントを合成して文字コードに対する合成したベ
クタフォントを作成するとき、各ベクタフォントの共通
な端点同士を直接或いは間接的に接続して、その文字コ
ードに対するアウトラインデータを作成することにより
、ベクタフォントよりドツトパターンデータへの展開処
理なし易くした文書処理装置を提供することを目的とす
る。
The present invention was made in view of the above-mentioned conventional example, and when a plurality of vector fonts are synthesized to create a synthesized vector font for a character code, the common end points of each vector font are connected directly or indirectly. It is an object of the present invention to provide a document processing device that makes it easier to develop dot pattern data from vector fonts by creating outline data for the character codes.

[課題を解決するための手段] 上記目的を達成するために本発明の文書処理装置は以下
の様な構成からなる。即ち、 フォントデータをベクタフォントで記憶している文書処
理装置であって、複数のベクタフォント間の共通する端
点を指示する指示情報を記憶する記憶手段と、前記指示
情報に基づいて各ベクトルの端点同士を直接或いは間接
的に連結する連結手段とを備える。
[Means for Solving the Problems] In order to achieve the above object, a document processing device of the present invention has the following configuration. That is, a document processing device that stores font data in the form of vector fonts, comprising a storage means for storing instruction information that indicates common endpoints between a plurality of vector fonts, and an endpoint of each vector based on the instruction information. and connecting means for directly or indirectly connecting the two.

[作用] 以上の構成において、複数のベクタフォント間の共通す
る端点な指示する指示情報を記憶し、それら指示情報に
基づいて各ベクトルの端点同士を直接或いは間接的に連
結するようにしている。
[Operation] In the above configuration, instruction information indicating common endpoints between a plurality of vector fonts is stored, and the endpoints of each vector are connected directly or indirectly based on the instruction information.

[実施例] 以下、添付図面な9照して本発明の好適な実施例を詳細
に説明する。
[Embodiments] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[文書処理装置の説明 (第1図)コ 第1図は実施例の文書処理装置の機能ブロック図である
[Description of Document Processing Apparatus (Fig. 1) Fig. 1 is a functional block diagram of a document processing apparatus according to an embodiment.

図において、10は文字コード等の索引コードを入力す
ると、対応するパターンデータが格納されているフォン
ト記憶部のフォントアドレスを指示するアドレス部、1
1.12は共にベクタフォントを記憶しているフォント
記憶部で、1つの索引コードに対応して複数のフォント
データが存在するとき(例えば、後述する複数の行取り
の時)は、アドレス部10により2つのフォント記憶部
11と12がアドレスされる。13はフォント記憶部1
1と12のベクタフォントデータを続出し、フォントデ
ータをチエツクして共通する端点を検出する共通点検出
部である。
In the figure, reference numeral 10 denotes an address section that, when an index code such as a character code is input, specifies the font address of the font storage section in which the corresponding pattern data is stored;
1 and 12 are font storage sections that store vector fonts, and when there is multiple font data corresponding to one index code (for example, when multiple lines are used as described later), the address section 10 is stored. The two font storage units 11 and 12 are addressed by. 13 is font storage unit 1
This is a common point detecting section that sequentially outputs vector font data 1 and 12, checks the font data, and detects common end points.

14はフォント記憶部11と12のフォントデータを読
出し、共通端点検出部13により検出された端点同士を
、出力される文字パターンの大きさに対応する長さの線
分で接続する端点接続部である。15はフォント記憶部
11と12よりの各フォントデータの端点同士を端点接
続部14により接続し、端点同士が接続された1つのベ
クタフォントに合成して、入力された文字コードに対応
するベクタフォントを作成する合成部である。
Reference numeral 14 denotes an end point connecting section which reads the font data from the font storage sections 11 and 12 and connects the end points detected by the common end point detection section 13 with a line segment having a length corresponding to the size of the character pattern to be output. be. Reference numeral 15 connects the end points of each font data from the font storage units 11 and 12 using the end point connecting unit 14, synthesizes the end points into one vector font, and creates a vector font corresponding to the input character code. This is the synthesis section that creates the .

16は合成部15で合成されたベクタフォントをドツト
パターンデータに変換するドツトパターン変換部である
Reference numeral 16 denotes a dot pattern converter that converts the vector font synthesized by the synthesizer 15 into dot pattern data.

第2図はこの発明の1実施例の文書処理装置の概略構成
を示すブロック図である。
FIG. 2 is a block diagram showing a schematic configuration of a document processing apparatus according to an embodiment of the present invention.

図において、100はこの文書処理装置全体を制御する
制御部であり、マイクロコンピュータ等のCPUl0I
、CPUl0Iの制御プログラムや各種データ等を記憶
しているROM102、CPUl0Iのワークエリアと
して各種データの一時保存を行うRAM103等を含ん
でいる。また、104.105はそれぞれ文字パターン
のサイズに対応して、フォントメモリ106と107の
アドレスを記憶しているアドレステーブルで、テーブル
104はフォントメモリ106の通常のサイズ(1行取
り)のフォントデータを参照するためのテーブル、テー
ブル105はフォントメモリ107の複数のフォントデ
ータを読出し、例えば複数行に亙る大きなサイズのフォ
ントデータな作成するためのアドレステーブルで、1つ
の文字コードに対し複数のベクタフォントをアクセスす
る。
In the figure, 100 is a control unit that controls the entire document processing device, and includes a CPU 10I such as a microcomputer.
, a ROM 102 that stores control programs and various data for the CPU 10I, and a RAM 103 that temporarily stores various data as a work area for the CPU 10I. Further, 104 and 105 are address tables that store addresses of font memories 106 and 107 corresponding to the size of character patterns, respectively, and table 104 is font data of normal size (one line) in font memory 106. The table 105 is an address table for reading multiple font data from the font memory 107 and creating, for example, large-sized font data spanning multiple lines. access.

106と107は共に文字等のフォントデータをベクタ
フォントで記憶しているフォントメモリで、フォントメ
モリ106は通常の文字サイズのフォントデータ、フォ
ントメモリ107は後述するように複数行に亙る大きさ
を有するフォントデータを、それぞれフォントメモリ1
06のフォントサイズと同じサイズで分割して記憶して
いるメモリである。
Both 106 and 107 are font memories that store font data such as characters in vector fonts, font memory 106 has font data of normal character size, and font memory 107 has a size spanning multiple lines as described later. Each font data is stored in font memory 1.
This memory is divided and stored in the same size as the font size of 06.

110はCRT表示部で、ビデオメモリ111に格納さ
れたドツト情報に対応した画像を表示し、入力された文
書情報やオペレータへのメツセージや制御データ等を表
示している。112は文書情報やオペレータによる制御
情報等を入力するキーボード、113はCRTIIOで
カーソル等を移動させ、アイコン等のコマンドイメージ
を指示してコマンドを入力したり、画面上での座標位置
を指定するマウス等のボインティング・デバイスである
。114は例えばレーザビーム等のプリンタ、115体
プリンタ114と制御部100との間でインターフェー
ス制御を実施するインターフェース部である。116は
文字等のイメージデータを格納するイメージメモリで、
キーボード112やマウス113等から出力される命令
によってブ+、lンタ114等に出力されて像形成され
る。
A CRT display section 110 displays images corresponding to the dot information stored in the video memory 111, as well as input document information, messages to the operator, control data, and the like. 112 is a keyboard for inputting document information, operator control information, etc., and 113 is a mouse for moving a cursor etc. on the CRTIIO, inputting a command by pointing to a command image such as an icon, or specifying a coordinate position on the screen. It is a pointing device such as. Reference numeral 114 denotes an interface unit that performs interface control between the 115-body printer 114 and the control unit 100, such as a printer such as a laser beam. 116 is an image memory for storing image data such as characters;
The commands output from the keyboard 112, mouse 113, etc. are output to the printer 114, etc., and images are formed.

117はこの実施例におけるパターン展開手段やパター
ン変形手段等として使用されるビット・マニュビレーシ
ョン・ユニット(BMU)で、BMU117はボインテ
ィング・デバイス113よりCRTIIOに展開表示さ
れた任意の文字列に対する変形区間及びこの文字列に対
する文字変形情報が指示入力されると、区間指示された
各文字に対応する表示データを変形して展開することが
できる。
Reference numeral 117 denotes a bit manipulation unit (BMU) used as a pattern development means, a pattern transformation means, etc. in this embodiment, and the BMU 117 transforms any character string developed and displayed on the CRTIIO from the pointing device 113. When a section and character transformation information for this character string are specified and input, display data corresponding to each character specified in the section can be transformed and developed.

[パターン展開の説明 (第3図、第4図)]第3図は
この実施例の文書処理装置における文字コードのパター
ン展開処理を説明するための図である。
[Explanation of Pattern Development (FIGS. 3 and 4)] FIG. 3 is a diagram for explaining the character code pattern development process in the document processing apparatus of this embodiment.

201は入力される文字データで、このデータ201に
は文字コートや文字サイズ及びこの文字が何行に亙って
表示出力(印刷も含む)されるかを示すデータ(以下、
行取りデータと呼ぶ)等が含まれている。202は入力
した文字サイズデータを基に、例えば16ボ以上ならば
ベクタフォントにより文字パターンを作成し、16ボ未
満ならばドツトパターンにより文字パターンを作成する
というように、後続の処理を文字サイズにより切換える
サイズ判定部である。
201 is input character data, and this data 201 includes data indicating the character coat, character size, and how many lines this character will be displayed (including printing) (hereinafter referred to as
(referred to as gyodori data), etc. 202 performs subsequent processing based on the input font size data, for example, if it is 16 font or more, a character pattern is created using a vector font, and if it is less than 16 font, a character pattern is created using a dot pattern. This is a size determination section for switching.

ここで、第3図の上部に示したドツトパターンデータ2
05より文字パターンを作成する処理の流れに対し、処
理ブロック220で示されたベクタフォントによるパタ
ーン展開処理がこの実施例の主たる部分である。以下、
このブロック220を説明する。
Here, dot pattern data 2 shown at the top of FIG.
In contrast to the flow of processing for creating a character pattern from 05, the pattern development processing using a vector font shown in processing block 220 is the main part of this embodiment. below,
This block 220 will be explained.

行取り判定部210は、入力された文字コードで示され
た文字が何行に亙ってパターン展開されるかを判定する
。この行取り判定部210における動作は行取り判定部
203の動作と基本的に同じで、文字サイズデータ等を
基にその文字パターンが回行分の大きさを有するかを判
定する。アドレステーブル211は第2図のアドレステ
ーブル104と105を含み、行取り判定部210より
の行情報に従って、1行で表示されるときはフォントメ
モリ106のベクタフォントをアドレスし、これにより
読出されたベクタフォントがドツト変換部214に出力
されてドツトデータに変換される。
The line pattern determining unit 210 determines how many lines the character indicated by the input character code is patterned over. The operation of the gyo-dori determining section 210 is basically the same as the operation of the gyo-dori determining section 203, and it is determined whether the character pattern has the size of the number of lines based on character size data and the like. The address table 211 includes the address tables 104 and 105 shown in FIG. 2, and addresses the vector font in the font memory 106 when it is displayed in one line according to the line information from the line arrangement determination unit 210, and thereby reads out the vector font. The vector font is output to the dot conversion section 214 and converted into dot data.

一方、行取り判定部210により複数行に亙ってパター
ン展開されると判定されたときは、アドレステーブル2
11のテーフ゛ル105によりフォントメモリ107の
複数のフォントデータが指示されて読出される。これら
複数のベクタフォントは合成部212により、行取りデ
ータに従って合成されてドツト変換部214に出力され
、パターン展開される。
On the other hand, when the line arrangement determination unit 210 determines that the pattern is expanded over multiple lines, the address table 2
A plurality of font data in the font memory 107 are designated and read out by the eleven tables 105. These plural vector fonts are synthesized by the synthesis section 212 according to the gyodori data, and outputted to the dot conversion section 214, where the pattern is developed.

フォントメモリ106のベクタフォント222はインチ
グラ“1”のフォントデータを示し、フォントメモリ1
07のベクタフォント223はインチグラ記号” I 
”の上半分データ、224はインチグラ記号“1”の下
半分のフォントデータを示す。
Vector font 222 of font memory 106 indicates font data of inch graphics "1", and font memory 1
07 vector font 223 is inch gras symbol "I"
”, and 224 indicates the lower half font data of the inch gram symbol “1”.

従って、インチグラの文字コードが入力され、行取り判
定部210によって、その記号“1”が1行中に表示出
力されると判定されると、アドレステーブル211のテ
ーブル104によりフォントメモリ106のフォントデ
ータ222が参照されて読出される。一方、行取り判定
部210によって複数行、例えば2行に亙り表示される
と判定されると、アドレステーブル211のテーブル1
07によりフォントデータ223と224とがアドレス
されて読出され、後述するように合成部212によりそ
れぞれのベクタフォントフォントが1つのベクタフォン
トに合成される。
Therefore, when the character code of Inchgra is input and the line arrangement determining unit 210 determines that the symbol "1" is to be displayed and output in one line, the font data in the font memory 106 is determined by the table 104 of the address table 211. 222 is referenced and read out. On the other hand, if the line arrangement determination unit 210 determines that the display will span multiple lines, for example, two lines, table 1 of the address table 211 will be displayed.
Font data 223 and 224 are addressed and read by 07, and the respective vector fonts are combined into one vector font by the combining unit 212 as described later.

こうして読出され、或いは合成されたフォントデータは
、それぞれ第4図に詳細を示すドツト変換部214によ
って、ベクタフォントフォントからドツトイメージデー
タに変換され、ドツト文字パターンとして出力される。
The font data thus read out or synthesized is converted from a vector font into dot image data by a dot conversion section 214, details of which are shown in FIG. 4, and output as a dot character pattern.

一方、文字サイズが16ボ未溝のときは、その文字コー
ドは行取り判定部203に送られて回行に亙り表示され
るかが判定される。そして、1行で表示されるときは、
アドレステーブル204によりドツトパターンデータ2
05のパターンデータが読出され、複数行に亙って表示
されるときはドツトパターンデータ206より、対応す
る分割された複数のドツトパターンを読出す。ここでも
ベクタフォント212.213の場合と同様に、ドツト
パターンデータ205のパターンデータは” i ”全
体のドツトパターンを記憶しており、ドツトパターンデ
ータ206のパターンデータは、“I ”の上半分と下
半分のパターンデータをそれぞれドツトパターンデータ
として記憶している。
On the other hand, when the character size is 16 characters, the character code is sent to the gyodori determination section 203, and it is determined whether or not it will be displayed throughout the line. And when it is displayed in one line,
Dot pattern data 2 is determined by the address table 204.
When the pattern data 05 is read out and displayed over a plurality of lines, a plurality of corresponding divided dot patterns are read out from the dot pattern data 206. Here, as in the case of vector fonts 212 and 213, the pattern data of the dot pattern data 205 stores the dot pattern of the entire "i", and the pattern data of the dot pattern data 206 stores the dot pattern of the entire "i". The pattern data of the lower half is stored as dot pattern data.

207は行取りの数によって、読出したドツトパターン
データを拡大成いは縮小等の変換を実施する変換部であ
る。
Reference numeral 207 is a conversion unit that performs conversion such as enlarging or reducing the read dot pattern data depending on the number of lines.

第4図は実施例のドツト変換部214の概略構成を示す
ブロック図である。
FIG. 4 is a block diagram showing a schematic configuration of the dot conversion section 214 of the embodiment.

このドツト変換部214は、ベクタフォントを構成して
いる座標データを入力し、変形回路301により必要に
応じてアフィン変換等を行う。そして変換された座標デ
ータは輪郭描画部302に送られて文字等の輪郭データ
が作成される。これら輪郭線は閉曲線で構成されており
、303はこれら輪郭データの内部を塗りつぶす塗りつ
ぶし部303である。このような塗りつぶし処理は、例
えばBASIC言語のペイント(PA I NT)命令
等と同様な処理で実行できる。
The dot conversion unit 214 receives coordinate data constituting a vector font, and the transformation circuit 301 performs affine transformation or the like as necessary. The converted coordinate data is then sent to the contour drawing section 302, where contour data of characters and the like is created. These contour lines are composed of closed curves, and 303 is a filling section 303 that fills in the inside of these contour data. Such a filling process can be executed by a process similar to, for example, the paint (PAINT) command of the BASIC language.

[ベクタフォントの合成処理の説明 (第5図〜第9図)コ 第5図はBスプライン方式により漢字「愛」をサンプル
したサンプル点からなるアウトラインデータを示す図で
ある。
[Description of vector font synthesis processing (Figs. 5 to 9) Fig. 5 is a diagram showing outline data consisting of sample points obtained by sampling the kanji character "ai" using the B-spline method.

図において、文字「愛」のサンプル点を円形の小ドツト
で示し、ここでは512X512ドツトのマトリクス内
に配置されている。そして、ここで各アウトラインデー
タは閉ループで構成されている。Bスプラインはある曲
線区間の始点と終点を支点に、サンプル点を頂点にした
内側にスプラインを生成させるようにして作成されてい
る。
In the figure, the sample points of the character ``love'' are shown as small circular dots, which are arranged in a matrix of 512 x 512 dots. Here, each outline data is configured in a closed loop. A B-spline is created by using the start and end points of a certain curve section as fulcrums and generating a spline inside the sample point as the apex.

第6図はこのようなりスプライン方式により展開された
インチグラ記号“1”の上半分223と下半分224の
ベクタフォントデータの一例を示す図である。
FIG. 6 is a diagram showing an example of vector font data of the upper half 223 and lower half 224 of the inch graphic symbol "1" developed by the spline method.

ここで、上半分223の斜線部64を囲む閉ループ部分
がインチグラ記号の上側のベクタフォントデータであり
、下半分224の斜線部65を囲む閉ループがインチグ
ラ記号の下側のベクタフォントデータである。ここで、
点60と点66、点61と点69とが互いに共通する端
点である。
Here, the closed loop surrounding the diagonal line part 64 in the upper half 223 is the vector font data above the inch-grain symbol, and the closed loop surrounding the diagonal line part 65 in the lower half 224 is the vector font data below the inch-grain symbol. here,
Points 60 and 66, and points 61 and 69 are mutually common end points.

従って、これら2つのフォントデータな合成する際には
、行取り情報に対応してこれら各点を結ぶ線分に対応す
るベクタフォントが作成されて、ベクタフォント223
と224とが一体になった形で合成される。これにより
、線分62と63に対応するベクタフォントデータが消
去されるため、合成されたベクタフォントを通常のベク
タフォントと同様にしてドツトパターンデータに変換す
ることができる。
Therefore, when composing these two font data, a vector font corresponding to the line segment connecting these points is created in accordance with the gyodori information, and the vector font 223
and 224 are combined into one. As a result, the vector font data corresponding to the line segments 62 and 63 are erased, so that the combined vector font can be converted into dot pattern data in the same way as a normal vector font.

第7図は第6図の斜線部64のベクタフォントデータの
一例を示す図で、50はJISコードやベクタフォント
データサイズ、輪郭線等のデータを格納している制御情
報部、71〜73で示した欄は各サンプル点の座標値及
び属性フラグを記憶しているサンプルデータエリアで、
71は第6図の点66の座標値、72はサンプル点67
の座標値、73はサンプル点68の座標値を記憶してお
り、更に74は最後のサンプル点69の座標値を記憶し
ている。また、属性フラグ53は各サンプル点の特性を
記憶している。即ち、54はサンプル点66が始点であ
ることを示すフラグで、55.57はサンプル点66が
他方のベクタフォントとの共通する座標(サンプル)点
であることを示すフラグである。従って、このベクタフ
ォントにより点66と69が対応するもう一方のベクタ
フォントと共通している点であることがわかる。
FIG. 7 is a diagram showing an example of the vector font data in the shaded area 64 in FIG. The column shown is the sample data area that stores the coordinate values and attribute flags of each sample point.
71 is the coordinate value of point 66 in Fig. 6, 72 is the sample point 67
73 stores the coordinate value of the sample point 68, and 74 stores the coordinate value of the last sample point 69. Further, the attribute flag 53 stores the characteristics of each sample point. That is, 54 is a flag indicating that the sample point 66 is the starting point, and 55.57 is a flag indicating that the sample point 66 is a common coordinate (sample) point with the other vector font. Therefore, it can be seen that points 66 and 69 are common points in this vector font with the other corresponding vector font.

また、属性フラグ53の56は、第6図のサンプル点6
7が曲線区間であることを示している。
In addition, 56 of the attribute flags 53 is the sample point 6 in FIG.
7 indicates that it is a curve section.

このように属性フラグ53は曲線区間の端点或いは始点
、終点また直線区間であることを示す情報、及びその端
点が他のベクタフォントと共通している点であることを
示す情報等が格納されている。
In this way, the attribute flag 53 stores information such as the end point or start point of a curve section, information indicating that it is an end point or a straight section, and information indicating that the end point is a point common to other vector fonts. There is.

第8図と第9図はそれぞれアドレステーブル104と1
05の内容を示す図で、アドレステーブル104はフォ
ントメモリ106のベクタフォントデータをアドレスす
るアドレステーブル、アドレステーブル105はフォン
トメモリ107のベクタフォントデータをアドレスする
アドレステーブルである。
FIGS. 8 and 9 show address tables 104 and 1, respectively.
05, address table 104 is an address table for addressing vector font data in font memory 106, and address table 105 is an address table for addressing vector font data in font memory 107.

いずれのテーブルにおいても、管理テーブルにはフォン
トデータの作成年月日、フォントデータのファイルサイ
ズ、フォントデータの開始アドレス等が格納されている
。アドレステーブル104のアドレスエリア80には、
JISコードに対応したフォントメモリ106のアドレ
スがそれぞれ2バイトで格納されている。アドレステー
ブル105のアドレスエリア81には、1つのJISコ
ートに対応して、例えば第3図のフォントデータ223
や224等のように、1つの文字や記号に対応した分割
された複数のフォントデータの、フォントメモリ107
におけるアドレスが格納されている。
In either table, the management table stores the creation date of the font data, the file size of the font data, the start address of the font data, and the like. In the address area 80 of the address table 104,
Addresses of the font memory 106 corresponding to JIS codes are each stored in 2 bytes. In the address area 81 of the address table 105, for example, font data 223 shown in FIG.
The font memory 107 stores a plurality of divided font data corresponding to one character or symbol, such as or 224.
address is stored.

[パターン展開処理の説明 (第10図)]第10図は
この実施例の文書処理装置の制御部100によるパター
ン展開処理を示すフローチャートで、この処理を実行す
るCPU 101の制御プログラムは制御部100のR
OM102に格納されている。
[Description of pattern development processing (FIG. 10)] FIG. 10 is a flowchart showing pattern development processing by the control unit 100 of the document processing apparatus of this embodiment. R of
It is stored in OM102.

このプログラムは文字コードの入力により開始され、こ
れはキーボード112等より文字コードが入力されても
良く、またはRAM、103の文書バッファ等より1文
字分の文字コードを読出しても良い。こうしてまず、ス
テップS1で文字コードを入力し、ステップS2で行取
りの判定を行い、その文字コードがパターン展開されて
1行に展開されるか或いは複数行に亙って展開されるか
をみる(ステップS3)。
This program is started by inputting a character code, and the character code may be input from the keyboard 112 or the like, or the character code for one character may be read from the RAM, the document buffer 103, or the like. In this way, first, in step S1, a character code is input, and in step S2, the gyodori is determined, and it is checked whether the character code is expanded into a pattern and expanded into one line or across multiple lines. (Step S3).

複数行に亙って印刷或いは表示されるときはステップS
4に進み、アドレステーブル105を参照してフォント
メモリ107の複数のベクタフォントデータをアドレス
し、ステップS5でフォントメモリ107よりアドレス
された複数のフオントデータを読出して、RAM103
に格納する。
If printing or displaying over multiple lines, step S
Step S4 addresses the plurality of vector font data in the font memory 107 with reference to the address table 105. In step S5, the addressed plurality of font data is read from the font memory 107 and is stored in the RAM 103.
Store in.

そして、ステップS6ではこうしてフォントメモリ10
7から読出された複数のベクタフォントの各座標点の属
性フラグをチエツクしていき、その座標点が他方の合成
されるベクタフォントの座標点と共通する座標点かどう
かをみる。これは前述したように、属性フラグ53によ
り容易に判定できる。共通する点のときはステップS7
に進み、それらの共通点の属性フラグを曲線区間である
ことを示すフラグに変更する。
Then, in step S6, the font memory 10
The attribute flag of each coordinate point of a plurality of vector fonts read from 7 is checked to see if the coordinate point is a common coordinate point with the coordinate point of the other vector font to be synthesized. This can be easily determined using the attribute flag 53 as described above. If there are common points, step S7
Then, the attribute flag of those common points is changed to a flag indicating that it is a curved section.

そして、ステップS8で行取り情報に対応した線分でこ
れら共通点同士を接続する。これは、例えば第6図のサ
ンプル点69を示すデータ74の属性フラグを変更して
サンプル点61に接続するベクタフォントとするととも
に、サンプル点60と66とを接続するベクタフォント
を作成することにより、第6図の斜線部64と65とを
結合した閉ループのベクタフォントが作成される。
Then, in step S8, these common points are connected with line segments corresponding to the line information. This can be done, for example, by changing the attribute flag of data 74 indicating sample point 69 in FIG. 6 to create a vector font that connects sample point 61, and by creating a vector font that connects sample points 60 and 66. , a closed-loop vector font is created by combining the hatched areas 64 and 65 in FIG.

こうしてステップS9で全座標点のチエツクが終了した
かを調べ、終了していなければステップS6に戻るが、
終了するとステップSIOに進み、ベクタフォントデー
タをドツトパターンデータに変換して、イメージメモリ
116或いはビデオメモリ111に格納する。
In this way, it is checked in step S9 whether all coordinate points have been checked, and if not, the process returns to step S6.
Upon completion, the process proceeds to step SIO, where the vector font data is converted into dot pattern data and stored in the image memory 116 or video memory 111.

一方、ステップS3で1行内で表示或いは印刷される文
字パターンのときはステップSllに進み、アドレステ
ーブルl○4によりフォントメモリ106のフォントデ
ータをアドレスし、ステップS12でフォントメモリ1
06より1文字分のパターンデータを読出す。そして、
ステップs10でそのベクタフォントをドツトパターン
に変換してイメージメモリ116に格納する。なお、こ
のイメージメモリ116に格納されたパターンデータは
プリンタ114に出力されて印刷されたり、或いはビデ
オメモリ111に格納されてCRTIIOに表示される
On the other hand, if the character pattern is to be displayed or printed within one line in step S3, the process advances to step Sll, where the font data in the font memory 106 is addressed using the address table l○4, and in step S12, the font data in the font memory 106 is
Read pattern data for one character from 06. and,
In step s10, the vector font is converted into a dot pattern and stored in the image memory 116. Note that the pattern data stored in the image memory 116 is output to the printer 114 and printed, or stored in the video memory 111 and displayed on the CRTIIO.

以上説明したようにこの実施例によれば、各行に対応し
て分割された文字等の複数のベクタフォントを記憶して
おき、その文字等のパターンが複数行方って印刷或いは
表示されるとき、その複数の分割パターン同士を接続し
たベクタフォントを作成し、そのベクタフォントをドツ
トパターンに変換することにより、容易に合成したドツ
トパターンを作成できる。
As explained above, according to this embodiment, when a plurality of vector fonts, such as characters divided corresponding to each line, are stored, and a plurality of patterns of the characters, etc. are printed or displayed, By creating a vector font by connecting the plurality of divided patterns and converting the vector font into a dot pattern, a combined dot pattern can be easily created.

なお、この実施例では説明を簡単にするため、2行取り
の場合について説明したが、3行取り以上の場合でもフ
ォントデータな3行取り以上に分割して保有することに
より、容易に実施できることはいうまでもない。
In order to simplify the explanation, this embodiment has been explained for the case of two lines, but even in the case of three or more lines, it can be easily implemented by dividing the font data into three or more lines and holding it. Needless to say.

また、この合成する際には、各ベクタフォント間で共通
する点同士を接続するようにして、各ベクタフォント間
での不要な境界線部分が残存しないようにできるため、
文字の塗りつぶしや反転処理等が非常に簡単にできるよ
うになる。
Also, when compositing, it is possible to connect common points between vector fonts so that unnecessary border parts between vector fonts do not remain.
Filling in characters, reversing them, etc. can be done very easily.

また更に、この実施例では共通点同士を重ねる形で説明
したがこれに限定されるものでなく、共通点同士を直線
等で補間する形でフォント同士を合成するようにしても
良い。こうすることにより、任意の行取りに対し容易に
合成文字を得ることができる。
Furthermore, although this embodiment has been explained in such a manner that the common points are overlapped, the fonts are not limited to this, but the fonts may be synthesized by interpolating the common points with a straight line or the like. By doing this, it is possible to easily obtain composite characters for any gyodori.

[発明の効果] 以上説明したように本発明によれば、複数のベクタフォ
ントを合成して文字や記号に対するベクタフォントを作
成するとき、各ベクタフォントに共通な点同士を接続し
て合成したベクタフォントを作成することにより、ドツ
トパターンへの展開処理が簡単になる効果がある。
[Effects of the Invention] As explained above, according to the present invention, when a vector font for a character or symbol is created by combining a plurality of vector fonts, the combined vector is created by connecting points common to each vector font. Creating a font has the effect of simplifying the process of developing it into a dot pattern.

また、接続部分に接続線が入ることがないため、白抜き
文字やハツチング等の飾り文字を作成するときも良質の
文字が得られるという効果がある。
Furthermore, since there are no connecting lines in the connecting portion, there is an effect that high-quality characters can be obtained even when creating decorative characters such as outline characters and hatching.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は実施例の文書処理装置の機能ブロック図、 第2図は実施例の文書処理装置の概略構成を示すブロッ
ク図、 第3図は実施例の文書処理装置におけるパターン展開処
理を説明するための図、 第4図は第3図のドツト変換部の概略構成を示すブロッ
ク図、 第5図はBスプライン方式による文字のサンプル点を示
す図、 第6図はインチグラ記号のベクタフォントの合成例を示
す図、 第7図は実施例のベクタフォントデータの1例を示す図
、 第8図及び第9図は実施例のアドレステーブルの構成例
を示す図、そして 第10図は実施例の文書処理装置におけるパターン展開
処理を示すフローチャートである。 図中、10・・・アドレス部、11.12・・・フォン
ト記憶部、13・・・共通線削除部、14・・・合成部
、15・・・ドツトパターン変換部、53・・・属性フ
ラグ、66〜69・・・サンプル点、100・・・制御
部、101・・・CPU、102・・・ROM、103
・・・RAM、104,105・・・アドレステーブル
、106.107・・・フォントメモリ、110・・・
CRT。 111・・・ビデオメモリ、112・・・キーボード、
113・・・マウス、114・・・ブリ゛ンタ、115
・・・インターフェース部、116・・・イメージメモ
リ、117・・・BMU、118・・・システムバス、
202・・・サイズ判定部、203,210・・・行取
り判定部、204.211・・・アドレステーブル、2
07・・・変換部、214・・・ドツト変換部、301
・・・変形回路、302・・・輪郭描画部、303・・
・塗りつぶし部である。 文で4コード 特許出願人  キャノン株式会社 第1図 第 図 第 図 弔 図 弔 図 第 図
FIG. 1 is a functional block diagram of a document processing device according to an embodiment. FIG. 2 is a block diagram showing a schematic configuration of a document processing device according to an embodiment. FIG. 3 explains pattern development processing in the document processing device according to an embodiment. Figure 4 is a block diagram showing the schematic configuration of the dot conversion section in Figure 3. Figure 5 is a diagram showing character sample points using the B-spline method. Figure 6 is a diagram showing the synthesis of vector fonts for inch graphics symbols. FIG. 7 is a diagram showing an example of vector font data in the embodiment. FIGS. 8 and 9 are diagrams showing an example of the address table configuration in the embodiment. FIG. 10 is a diagram showing an example of the address table configuration in the embodiment. 7 is a flowchart showing pattern development processing in the document processing device. In the figure, 10... Address section, 11. 12... Font storage section, 13... Common line deletion section, 14... Composition section, 15... Dot pattern conversion section, 53... Attribute Flags, 66-69... Sample points, 100... Control unit, 101... CPU, 102... ROM, 103
...RAM, 104,105...Address table, 106.107...Font memory, 110...
C.R.T. 111...Video memory, 112...Keyboard,
113...mouse, 114...printer, 115
...Interface unit, 116...Image memory, 117...BMU, 118...System bus,
202...Size determination unit, 203, 210...Gyokudori determination unit, 204.211...Address table, 2
07... Conversion unit, 214... Dot conversion unit, 301
...Deformation circuit, 302...Contour drawing section, 303...
・This is a filled part. 4 Codes in a Sentence Patent Applicant: Canon Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] (1)フォントデータをベクタフォントで記憶している
文書処理装置であつて、 複数のベクタフォント間の共通する端点を指示する指示
情報を記憶する記憶手段と、前記指示情報に基づいて各
ベクトルの端点同士を直接或いは間接的に連結する連結
手段とを備えることを特徴とする文書処理装置。
(1) A document processing device that stores font data in the form of vector fonts, comprising: a storage means for storing instruction information indicating common end points between a plurality of vector fonts; 1. A document processing device comprising: connecting means for directly or indirectly connecting end points to each other.
(2)前記連結手段は前記端点同士の間を補間すること
を特徴とする請求項第1項に記載の文書処理装置。
(2) The document processing apparatus according to claim 1, wherein the connecting means interpolates between the end points.
JP63188356A 1988-07-29 1988-07-29 Document processor Pending JPH0239362A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63188356A JPH0239362A (en) 1988-07-29 1988-07-29 Document processor
US08/397,711 US5574842A (en) 1988-07-29 1995-03-02 Document processing apparatus and method for generating a character or symbol pattern across a plurality of lines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63188356A JPH0239362A (en) 1988-07-29 1988-07-29 Document processor

Publications (1)

Publication Number Publication Date
JPH0239362A true JPH0239362A (en) 1990-02-08

Family

ID=16222192

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63188356A Pending JPH0239362A (en) 1988-07-29 1988-07-29 Document processor

Country Status (1)

Country Link
JP (1) JPH0239362A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0684582A2 (en) * 1994-05-16 1995-11-29 Bayer Corporation Method and apparatus for font data storage and retrieval

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61199173A (en) * 1985-03-01 1986-09-03 Hitachi Ltd Editing method for graphic

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61199173A (en) * 1985-03-01 1986-09-03 Hitachi Ltd Editing method for graphic

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0684582A2 (en) * 1994-05-16 1995-11-29 Bayer Corporation Method and apparatus for font data storage and retrieval
EP0684582A3 (en) * 1994-05-16 1997-04-09 Miles Inc Method and apparatus for font data storage and retrieval.

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
KR100302306B1 (en) Table data processing device
KR970008546B1 (en) Character or graphic processing method
JPH0749760A (en) Word processor
JPH06274307A (en) Screen display system
US5574842A (en) Document processing apparatus and method for generating a character or symbol pattern across a plurality of lines
JPH0239362A (en) Document processor
JP2737845B2 (en) Character processing method and apparatus
JPH0239359A (en) Document processor
JPH0239361A (en) Document processor
JP3129717B2 (en) Image processing apparatus and image processing method
JPH0697387B2 (en) Character processing method
JPS63217394A (en) Character contour line generation system
JP2856604B2 (en) Character processor
JP3035126B2 (en) Information processing device
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JP2652748B2 (en) Character processor
JPS62157089A (en) Generation of vector character
JP2965429B2 (en) Character output device
JPH03203769A (en) Map information processor
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JPH0394323A (en) Document output device
JPH08305865A (en) Figure drawing device
JPH05143053A (en) Word processor provided with enlarging and smoothing function
JPH01134494A (en) Data processor having character expanding function