JPH0239360A - Document processor - Google Patents

Document processor

Info

Publication number
JPH0239360A
JPH0239360A JP63188354A JP18835488A JPH0239360A JP H0239360 A JPH0239360 A JP H0239360A JP 63188354 A JP63188354 A JP 63188354A JP 18835488 A JP18835488 A JP 18835488A JP H0239360 A JPH0239360 A JP H0239360A
Authority
JP
Japan
Prior art keywords
data
font
vector
pattern
character
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.)
Granted
Application number
JP63188354A
Other languages
Japanese (ja)
Other versions
JP2737845B2 (en
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 JP63188354A priority Critical patent/JP2737845B2/en
Publication of JPH0239360A publication Critical patent/JPH0239360A/en
Priority to US08/397,711 priority patent/US5574842A/en
Application granted granted Critical
Publication of JP2737845B2 publication Critical patent/JP2737845B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Document Processing Apparatus (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To obtain outline data that is easily evolved by erasing the common contour lines in case plural vector fonts are synthesized for production of characters covering plural lines. CONSTITUTION:When the input character codes show the characters covering plural lines, an address part 10 points out plural addresses of a font memory part and reads out the vector font data 60 and 61. The outlines of these font data are defined by the closed loops and therefore a common line deleting part 13 deletes the undesired parts 62 and 63 when said data are synthesized. Thus the outline data is synthesized by a synthesizing part 14.

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 need to have 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つの文字パター
ンを作成するものがある。
[Problem to be solved by the invention] Out of the characters whose outlines are composed of such vector fonts, it is possible to combine multiple vector fonts into one character, such as logos created with external characters. There are things that create patterns.

このような文字フォントをパターンデータに展開する際
、各フォントデータのアウトライン(輪郭線)は閉ルー
プで構成されているため、それら複数のフォントデータ
を合成してパターンデータに変換するとき、ベタ黒のド
ツトパターンに変換するときは問題ないが、例えばドツ
トパターンを変換するときはそのアウトライン(輪郭線
)部が残ってしまうような場合があった。
When developing such character fonts into pattern data, the outline of each font data consists of a closed loop, so when combining multiple font data and converting it into pattern data, solid black There is no problem when converting to a dot pattern, but when converting a dot pattern, for example, there are cases where the outline remains.

本発明は上記従来例に鑑みてなされたもので、複数のベ
クタフォントを合成して文字や記号に対するベクタフォ
ントを作成するとき、各ベクタフォントに共通な輪郭線
部を消去して、その文字や記号に対するアウトラインデ
ータを作成することにより、ドツトパターンへの展開処
理をし易くした文書処理装置を提供することを目的とす
る。
The present invention has been made in view of the above-mentioned conventional example, and when creating a vector font for characters or symbols by combining a plurality of vector fonts, the outline portion common to each vector font is erased, and the characters and symbols are It is an object of the present invention to provide a document processing device that facilitates processing of developing a symbol into a dot pattern by creating outline data for a symbol.

[課題を解決するための手段] 上記目的を達成するために本発明の文書処理装置は以下
の様な構成からなる。即ち、 文字や記号の輪郭をベクトルで表したベクタフォントで
記憶している文書処理装置であって、文字や記号のパタ
ーン情報を表す複数のベクタフォントを記憶する記憶手
段と、索引コードに対応して複数のベクタフォントから
前記輪郭を表すドツトに展開するドツト展開手段と、前
記ベクタフォント間の共通する輪郭線を表すデータを消
去して合成する合成手段とを備える。
[Means for Solving the Problems] In order to achieve the above object, a document processing device of the present invention has the following configuration. In other words, it is a document processing device that stores the outlines of characters and symbols as vector fonts, which includes a storage means that stores a plurality of vector fonts representing pattern information of characters and symbols, and a storage means that corresponds to an index code. The image forming apparatus includes a dot developing means for developing dots representing the outline from a plurality of vector fonts, and a synthesizing means for erasing and composing data representing common outlines among the vector fonts.

[作用] 以上の構成において、記憶手段に文字や記号のパターン
情報を表す複数のベクタフォントを記憶し、索引コード
に対応して複数のベクタフォントから輪郭を表すドツト
に展開する。このとき、ベクタフォント間の共通する輪
郭線を表すデータを消去して合成するようにしている。
[Operation] In the above configuration, a plurality of vector fonts representing pattern information of characters and symbols are stored in the storage means, and dots representing outlines are developed from the plurality of vector fonts in accordance with an index code. At this time, data representing common outlines between vector fonts is erased and composited.

[実施例] 以下、添付図面を参照して本発明の詳細な説明例を詳細
に説明する。
[Examples] Hereinafter, detailed examples 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は文字コードを入力すると、対応する
パターンデータが格納されているフォント記憶部のフォ
ントアドレスを指示するアドレス部、11.12は共に
ベクタフォントを記憶しているフォント記憶部で、1つ
の文字コードに対応して複数のフォントデータが存在す
るとき(例えば、後述する複数の行取りの時)は、アド
レス部10により2つのフォント記憶部11と12がア
ドレスされる。13はフォント記憶部11と12を読出
し、フォントデータをチエツクして共通する輪郭線を削
除する共通線削除部、14はフォント記憶部11と12
のフォントデータを合成して、入力された文字コードに
対応するベクタフォントを作成する合成部である。15
は合成部14で合成されたベクタフォントからドツトパ
ターンデータに変換するドツトパターン変換部である。
In the figure, when a character code is input, 10 is an address field that specifies the font address of the font storage unit where the corresponding pattern data is stored, 11.12 are both font storage units that store vector fonts, and 1 When there is a plurality of font data corresponding to one character code (for example, in the case of a plurality of lines to be described later), two font storage sections 11 and 12 are addressed by the address section 10. 13 is a common line deletion unit that reads out the font storage units 11 and 12, checks the font data, and deletes common contour lines; 14 is a font storage unit 11 and 12;
This is a synthesis unit that synthesizes the font data of , and creates a vector font corresponding to the input character code. 15
is a dot pattern converter that converts the vector font synthesized by the synthesizer 14 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.

図において、iooはこの文書処理装置全体を制御する
制御部であり、マイクロコンピュータ等のCPUl0I
、CPUl0Iの制御プログラムや各種データ等を記憶
しているROM102、CPUl0Iのワークエリアと
して各種データの一時保存を行うRAM103を含んで
いる。また、104.105はそれぞれ文字パターンの
サイズに対応して、フォントデータのアドレスを記憶し
ているアドレステーブルで、テーブル104は通常のサ
イズ(1行取り)のフォントデータ106を参照するた
めのテーブル、テーブル105は大きいサイズ(複数行
に亙る)のフォントデータ107を読出すためのアドレ
ステーブルである。
In the figure, ioo is a control unit that controls the entire document processing device, and is a CPU 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 data corresponding to the size of each character pattern, and table 104 is a table for referring to font data 106 of normal size (one line). , table 105 is an address table for reading out font data 107 of large size (spanning multiple lines).

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

110はCRT表示部で、ビデオメモリ111に格納さ
れたドツト情報に対応した画像を表示し、入力された文
書情報やオペレータへのメツセージや制御データ等を表
示している。112は文書情報やオペレータによる制御
情報等を人力するキーボード、113はCRTIIOで
カーソル等を移動させ、アイコン等のコマンドイメージ
を指示してコマンドを人力したり、画面上での座標位置
を指定するマウス等のボインティング・デバイスである
。114は例えばレーザビーム等のプリンタ、115は
プリンタ114と制御部100との間でインターフェー
ス制御を実施するインターフェース部である。116は
文字等のイメージデータを格納するイメージメモリで、
キーボード112やマウス113等から出力される命令
によってプリンタ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. Reference numeral 112 indicates a keyboard for inputting document information and control information by an operator, and reference numeral 113 indicates a mouse for manually inputting commands by moving a cursor, etc. with CRTIIO, specifying a command image such as an icon, or specifying a coordinate position on the screen. It is a pointing device such as. 114 is a printer such as a laser beam, and 115 is an interface unit that performs interface control between the printer 114 and the control unit 100. 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 an image is 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 an interval and character transformation information for this character string are specified manually, display data corresponding to each character specified in the interval can be transformed and developed.

できる。can.

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

201は入力される文字データで、このデータ201に
は文字コードや文字サイズ及びこの文字が何行に亙って
表示出力(印刷も含む)されるかを示すデータ(以下、
行取りデータと呼ぶ)等が含まれている。202は入力
した文字サイズデータを基に、例えば16ボ以上ならば
ベクタフォントにより文字パターンを作成し、16ボ未
満ならばドツトパターンにより文字パターンを作成する
というように、後続の処理を文字サイズにより切換える
サイズ判定部である。
201 is input character data, and this data 201 includes character code, character size, and data indicating 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図の上部のドツトパターンデータ205よ
り文字パターンを作成する処理の流れに対し、処理ブロ
ック220で示されたベクタフォントによるパターン展
開処理がこの実施例の主たる部分である。以下、このブ
ロック220を説明する。
Here, in contrast to the flow of processing for creating a character pattern from the dot pattern data 205 at the top of FIG. 3, the main part of this embodiment is pattern development processing using a vector font shown in processing block 220. This block 220 will be explained below.

行取り判定部210は、入力された文字コードで示され
た文字が何行に互ってパターン展開されるかを判定する
。この行取り判定部210における動作は行取り判定部
203の動作と基本的には同じである。アドレステーブ
ル211は行取り判定部210よりの行情報に従って、
1行で表示されるときはベクタフォント212のフォン
トデータをドツトデータに変換してパターン展開を行い
、複数行に亙ってパターン展開されるときはベクタフォ
ント213の複数のフォントデータによりパターン展開
する。
The line pattern determining unit 210 determines how many lines the characters indicated by the input character code are arranged in a pattern. The operation of this line-dori determination section 210 is basically the same as the operation of the line-dori determination section 203. The address table 211 is configured according to the line information from the line arrangement determination unit 210.
When displayed in one line, the pattern is developed by converting the font data of the vector font 212 into dot data, and when the pattern is developed over multiple lines, the pattern is developed using multiple font data of the vector font 213. .

ベクタフォント212のフォント222はインチグラ“
(”のフォントデータを示し、ベクタフォント213の
フォント223はインチグラ記号゛1″の上半分データ
、224はインチグラ記号“1”の下半分のフォントデ
ータを示す。
The font 222 of the vector font 212 is
The font 223 of the vector font 213 represents the upper half of the inch-gray symbol "1", and the font 224 represents the lower half of the inch-gray symbol "1".

従って、インチグラの文字コードが入力され、行取り判
定部210によって、その記号“(”が1行中に表示出
力されると判定されると、アドレステーブル211によ
りベクタフォント212のフォントデータ222が参照
されて読出される。
Therefore, when the character code of Inchgra is input and the line arrangement determination unit 210 determines that the symbol "(" will be displayed and output in one line, the font data 222 of the vector font 212 is referenced by the address table 211. and read out.

一方、行取り判定部210によって複数行、例えば2行
に亙り表示されると判定されると、アドレステーブル2
11によりフォントデータ223と224とが読出され
、それぞれのベクタフォントフォントが1つのベクタフ
ォントに合成される。
On the other hand, if the line arrangement determination unit 210 determines that the display will span multiple lines, for example, two lines, the address table 2
11, the font data 223 and 224 are read out, and the respective vector fonts are combined into one vector font.

こうして読出され、或いは合成されたフォントデータは
、それぞれ第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.2!3の場合と同様に、ドット
パターンデ〜り205のパターンデータは“(“全体の
ドツトパターンを記憶しており、ドツトパターンデータ
206のパターンデータは、“(”の上半分と下半分の
パターンデータをそれぞれドツトパターンデータ205
のパターンサイズと同じサイズで記憶している。207
は行取りの数によって、読出したドツトパターンデータ
を拡大成いは縮小等の変換を実施する変換部である。
On the other hand, when the character size is 16 digits, the character code is sent to the gyodori determination section 203, and it is determined how many lines the character code will be displayed over. 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 alternately in 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 font 212.2!3, the pattern data of the dot pattern data 205 is "("The entire dot pattern is stored, and the pattern data of the dot pattern data 206 is "(" The pattern data for the upper half and lower half of the dot pattern data 205
The size is the same as the pattern size. 207
1 is a conversion unit that performs conversion such as enlarging or reducing the read dot pattern data according to 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は、ベクタフォントを構成して
いる座標データを人力し、変形回路3゜1により必要に
応じてアフィン変換等を行う。そして変換された座標デ
ータは輪郭描画部302に送られて文字等の輪郭データ
が作成される。これら輪郭線は閉曲線で構成されており
、303はこれら輪郭データの内部を塗りつぶす塗りつ
ぶし部303である。このような塗りつぶし処理は、例
えばBAS I C言語のペイント(PA I NT)
命令等と同様な処理で実行できる。
This dot conversion section 214 manually inputs the coordinate data constituting the vector font, and performs affine transformation etc. as necessary using the transformation circuit 3.1. 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. This type of filling process is performed using, for example, paint (PAI NT) in the BASIC language.
It can be executed using the same processing as commands.

[ベクタフォントの合成処理の説明 (第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”の上半分60と下半分61のベク
タフォントデータの一例を示す図である。
FIG. 6 is a diagram showing an example of vector font data of the upper half 60 and lower half 61 of the inch graphic symbol "1" developed by the spline method.

ここで、下半分60の斜線部64を囲む閉ループ部分が
インチグラ記号の上側のベクタフォントデータであり、
下半分の斜線部65を囲む閉ループがインチグラ記号の
下側のベクタフォントデータである。ここで、線分62
と63が互いに共通するベクタフォント部分であり、2
つのフォントデータを合成する際には、この線分部分が
、例えば排他的論理和が取られる等により消去されて、
斜線部64と65とが一体になった形で合成される。
Here, the closed loop part surrounding the diagonal line part 64 of the lower half 60 is the vector font data above the inch graphic symbol,
The closed loop surrounding the diagonally shaded portion 65 in the lower half is the vector font data below the inch gras symbol. Here, line segment 62
and 63 are vector font parts common to each other, and 2
When composing two font data, this line segment is deleted by, for example, exclusive ORing, etc.
The shaded portions 64 and 65 are combined into one piece.

第7図は第6図の斜線部64のベクタフォントデータの
一例を示す図で、5oはJISコードやベクタフォント
データサイズ、輪郭線等のデータを格納している制御情
報部、71〜73で示した欄は各サンプル点の座標値及
び属性フラグを記憶しているサンプルデータエリアで、
71は第6図の点66の座標値、72はサンプル点67
の座標値、73はサンプル点68の座標値を記憶してお
り、更に74は最後のサンプル点69の座標値を記憶し
ている。また、属性フラグ53は各サンプル点の特性を
記憶している。即ち、54はサンプル点66が始点であ
ることを示すフラグで、55はサンプル点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 is a flag indicating that the sample point 66 is a common coordinate (sample) point with the other vector font. According to the above-mentioned exclusive OR method, the points 66 and 69 are blanked out, so it is necessary to remove the points as white before performing the exclusive OR, or to fill in the points later. .

また、属性フラグ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, an address table 104 is an address table for addressing vector font data of a vector font 106, and an address table 105 is an address table for addressing vector font data of a vector font 107.

いずれのテーブルにおいても、管理テーブルにはフォン
トデータの作成年月日、フォントデータのファイルサイ
ズ、フォントデータの開始アドレス等が格納されている
。アドレステーブル104のアドレスエリア80には、
JISコードに対応したフォントデータのアドレスがそ
れぞれ2バイトで格納されている。アドレステーブル1
05のアドレスエリア81には、1つのJISコードに
対応して、例えば第3図のフォントデータ223や22
4等のように、1つの文字や記号に対応した分割された
複数のフォントデータのフォントアドレスが格納されて
いる。
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 font data corresponding to JIS codes are each stored in 2 bytes. address table 1
The address area 81 of 05 contains, for example, font data 223 and 22 in Fig. 3, corresponding to one JIS code.
Font addresses of a plurality of divided font data corresponding to one character or symbol, such as 4, are stored.

[パターン展開処理の説明 (第10図)]第10図は
この実施例の文書処理装置の制御部100によるパター
ン展開処理を示すフローチャートで、この処理を実行す
るCPUl0Iの制御プログラムは制御部100のRO
M102に格納されている。
[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.O.
It is stored in M102.

このプログラムは文字コードの入力により開始され、こ
れはキーボード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 document buffer of the RAM 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
4, a plurality of vector font data of the vector font 107 is addressed with reference to the address table 105, and in step S5, the addressed plurality of font data is read from the vector font 107, and the data is stored in the RAM 103.
Store in.

そして、ステップS6ではこうしてベクタフォント10
7から読出された複数のベクタフォントの各座標点の属
性フラグをチエツクしていき、その座標点が他方の合成
されるベクタフォントの座標点と共通する座標点かどう
かをみる。これは前述したように、属性フラグ53によ
り容易に判定できる。共通する点のときはステップS7
に進み、それらの点同士を接続する線分を消去する。こ
れは例えば第7図において、第6図のサンプル点69を
示すデータ74の属性フラグを閉ループの最終点である
ことを示すフラグに変更することにより、第6図の斜線
部64のベクタフォントが閉ループでなくなり線分62
が消去されたことになる。なお、このとき前述したよう
に点66と69の部分が白く抜けるのを防止するために
、点の部分を埋める等のm8!を行う。
Then, in step S6, the vector font 10 is
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
and delete the line segments connecting those points. For example, in FIG. 7, by changing the attribute flag of data 74 indicating sample point 69 in FIG. It is no longer a closed loop and line segment 62
will have been deleted. At this time, as mentioned above, in order to prevent the points 66 and 69 from appearing white, fill in the points, etc. m8! I do.

こうして線分部分を消去したのちステップS8に進み、
ステップS6で検出された共通座標点と他方のフォント
データの共通する座標点とを1つにする。これを示した
のが第11図で、点66と点92とが1つの点93に、
点69と点95とが1つの点96に変換される。なお、
このとき斜線部64のベクタフォントデータを基準にす
ると、斜線部65のベクタフォントデータはY軸方向に
512ドツトバイアスされたフォントデータになること
はいうまでもない。こうしてステップS9で全座標点の
チエツクが終了したかを調べ、終了していなければステ
ップS6に戻るが、終了するとステップSIOに進み、
フォントデータを第11図のように合成し、ステップS
ttでそのベクタフォントをドツトパターンに展開して
イメージメモリ116に格納する。
After erasing the line segment portion in this way, the process proceeds to step S8.
The common coordinate point detected in step S6 and the common coordinate point of the other font data are combined into one. This is shown in Figure 11, where point 66 and point 92 are combined into one point 93,
Point 69 and point 95 are converted into one point 96. In addition,
At this time, if the vector font data in the shaded area 64 is used as a reference, it goes without saying that the vector font data in the shaded area 65 will be font data biased by 512 dots in the Y-axis direction. In this way, it is checked in step S9 whether all the coordinate points have been checked, and if not, the process returns to step S6, but when it is finished, the process proceeds to step SIO.
Combine the font data as shown in Figure 11 and proceed to step S.
tt, the vector font is developed into a dot pattern and stored in the image memory 116.

一方、ステップS3で1行内で表示或いは印刷される文
字パターンのときはステップS12に進み、アドレステ
ーブル104によりベクタフォント106のフォントデ
ータをアドレスし、ステップ513でベクタフォント1
06より1文字分のパターンデータを読出す。そして、
ステップS11でその文字パターンをドツトパターンに
変換してイメージメモリ116に格納する。なお、この
イメージメモリ116に格納されたパターンデータはプ
リンタ114に出力されて印刷されたり、或いはビデオ
メモリ111に格納されてCRTlloに表示される。
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 S12, where the font data of the vector font 106 is addressed using the address table 104, and in step 513, the vector font 1
Read pattern data for one character from 06. and,
In step S11, the character pattern is converted into a dot pattern and stored in the image memory 116. 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 CRTllo.

以上説明したようにこの実施例によれば、各行に対応し
て分割された文字等の複数のベクタフォントを記憶して
おき、その文字等のパターンが複数行方って印刷或いは
表示されるとき、その複数の分割パターンを合成してド
ツトパターンに変換することにより、容易にそのドツト
パターンを作成できる。
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 combining the plurality of divided patterns and converting it into a dot pattern, the dot pattern can be easily created.

また、この合成する際には、各ベクタフォント間で共通
する線分部分を消去するようにして、各ベクタフォント
間での不要な境界線部分が残存しないようにできるため
、文字の塗りつぶしや反転処理等が非常に簡単にできる
ようになる。
In addition, when compositing, it is possible to erase common line segments between vector fonts so that unnecessary border lines between vector fonts do not remain, so characters can be filled in or reversed. Processing etc. can be done very easily.

[発明の効果] 以上説明したように本発明によれば、複数のベクタフォ
ントを合成して文字や記号を作成するとき、各ベクタフ
ォントに共通な輪郭線部を消去して、その文字や記号に
対するアウトラインデータを作成することにより、ドツ
トパターンへの展開処理をし易くできる効果がある。
[Effects of the Invention] As explained above, according to the present invention, when a character or symbol is created by composing a plurality of vector fonts, the outline portion common to each vector font is deleted, and the character or symbol is By creating outline data for the dot pattern, it is possible to easily develop it into a dot pattern.

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

第1図は実施例の文書処理装置の機能ブロック図、 第2図は実施例の文書処理装置の概略構成を示すブロッ
ク図、 第3図は実施例の文書処理装置におけるパターン展開処
理を説明するための図、 第4図は第3図のドツト変換部の概略構成を示すブロッ
ク図、 第5図はBスプライン方式による文字のサンプル点を示
す図、 第6図と第11図はインチグラ記号のベクタフォントの
合成例を示す図、 第7図は実施例のベクタフォントデータの1例を示す図
、 第8図及び第9図は実施例のアドレステーブルの構成例
を示す図、そして 第10図は実施例の文書処理装置におけるパターン展開
処理を示すフローチャートである。 図中、10・・・アドレス部、11.12・・・フォン
ト記憶部、13・・・共通線削除部、14・・・合成部
、15・・・ドツトパターン変換部、53・・・属性フ
ラグ、62.63・・・共通線分、66〜69・・・サ
ンプル点、100・・・制御部、101・・・CPU、
102・・・ROM、103・・・RAM、104,1
05・・・アドレステーブル、106,107・・・ベ
クタフォント、110・・・CRT、111・・・ビデ
オメモリ、112・・・キーボード、113・・・マウ
ス、114・・・プリンタ、115・・・インターフェ
ース部、116・・・イメージメモリ、117・・・B
MU、118・・・システムバス、202・・・サイズ
判定部、203.210・・・行取り判定部、204.
211・・・アドレステーブル、207・・・変換部、
214・・・ド・ント変換部、301・・・変形回路、
302・・・輪郭描画部、303・・・塗りつぶし部で
ある。
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. Figures 6 and 11 are diagrams of the inch graph symbol. FIG. 7 is a diagram showing an example of vector font composition, 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 structure of the address table in the embodiment, and FIG. is a flowchart showing pattern development processing in the document processing device of the embodiment. 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 Flag, 62.63...Common line segment, 66-69...Sample point, 100...Control unit, 101...CPU,
102...ROM, 103...RAM, 104,1
05... Address table, 106, 107... Vector font, 110... CRT, 111... Video memory, 112... Keyboard, 113... Mouse, 114... Printer, 115...・Interface section, 116...image memory, 117...B
MU, 118...System bus, 202...Size determination unit, 203.210...Gyodori determination unit, 204.
211... Address table, 207... Conversion unit,
214... Dont conversion unit, 301... Transformation circuit,
302: Outline drawing section, 303: Filling section.

Claims (2)

【特許請求の範囲】[Claims] (1)文字や記号の輪郭をベクトルで表したベクタフォ
ントで記憶している文書処理装置であつて、 文字や記号のパターン情報を表す複数のベクタフォント
を記憶する記憶手段と、索引コードに対応して複数のベ
クタフォントから前記輪郭を表すドットに展開するドッ
ト展開手段と、前記ベクタフォント間の共通する輪郭線
を表すデータを消去して合成する合成手段とを備えるこ
とを特徴とする文書処理装置。
(1) A document processing device that stores the contours of characters and symbols in vector fonts, which is compatible with a storage means that stores multiple vector fonts that represent pattern information of characters and symbols, and an index code. document processing comprising: dot development means for developing dots representing contours from a plurality of vector fonts; and composition means for deleting and composing data representing common contours among the vector fonts. Device.
(2)前記合成手段によつて合成された輪郭線の内部を
所望のパターンで塗りつぶす手段とを更に備えることを
特徴とする請求項第1項に記載の文書処理装置。
2. The document processing apparatus according to claim 1, further comprising: (2) means for filling in the inside of the contour line synthesized by the synthesizing means with a desired pattern.
JP63188354A 1988-07-29 1988-07-29 Character processing method and apparatus Expired - Fee Related JP2737845B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63188354A JP2737845B2 (en) 1988-07-29 1988-07-29 Character processing method and apparatus
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
JP63188354A JP2737845B2 (en) 1988-07-29 1988-07-29 Character processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH0239360A true JPH0239360A (en) 1990-02-08
JP2737845B2 JP2737845B2 (en) 1998-04-08

Family

ID=16222160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63188354A Expired - Fee Related JP2737845B2 (en) 1988-07-29 1988-07-29 Character processing method and apparatus

Country Status (1)

Country Link
JP (1) JP2737845B2 (en)

Also Published As

Publication number Publication date
JP2737845B2 (en) 1998-04-08

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
JPS60140472A (en) Interactive controller for font pattern formation/correction/synthesis
JP2639517B2 (en) Image area color processing method
US5574842A (en) Document processing apparatus and method for generating a character or symbol pattern across a plurality of lines
JPH0239360A (en) Document processor
JP3146771B2 (en) Font rasterizing apparatus and method
JPS63108388A (en) Image processor
JPH01128843A (en) Document processing apparatus
JP3015066B2 (en) Document processing device
JPH0239362A (en) Document processor
JPH0697387B2 (en) Character processing method
JP4309987B2 (en) Raster data editing method and apparatus
JPS63217394A (en) Character contour line generation system
JP2803746B2 (en) Character processing method and apparatus
JP3129717B2 (en) Image processing apparatus and image processing method
JPH0366157B2 (en)
JP3035126B2 (en) Information processing device
JPH06175639A (en) Method and device for character generation
JPH0239361A (en) Document processor
JP2856604B2 (en) Character processor
JPH04177294A (en) Vector font developing device
JPH0394323A (en) Document output device
JPH06110442A (en) Character and figure processor and method for deforming character of figure
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JP2965429B2 (en) Character output device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees