JP2737845B2 - Character processing method and apparatus - Google Patents

Character processing method and apparatus

Info

Publication number
JP2737845B2
JP2737845B2 JP63188354A JP18835488A JP2737845B2 JP 2737845 B2 JP2737845 B2 JP 2737845B2 JP 63188354 A JP63188354 A JP 63188354A JP 18835488 A JP18835488 A JP 18835488A JP 2737845 B2 JP2737845 B2 JP 2737845B2
Authority
JP
Japan
Prior art keywords
character
vector
data
font data
font
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP63188354A
Other languages
Japanese (ja)
Other versions
JPH0239360A (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.)
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

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、ベクトルフォントデータを用いて文字パタ
ーンを発生する文字処理方法及び装置に関するものであ
る。
Description: TECHNICAL FIELD The present invention relates to a character processing method and apparatus for generating a character pattern using vector font data.

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

ベクトルフオントはドツトマトリクスで構成されてい
るフオントに比べ、文字サイズ毎のフオントデータを持
たずに済むため、必要とするメモリ容量が少なくて済む
利点や、拡大/縮小を行つても文字等のガタつきが発生
しないという利点がある。
Vector fonts do not have font data for each character size as compared with fonts composed of dot matrices, and thus have the advantage of requiring less memory capacity, and the ability to play back characters and the like even when enlarged / reduced. There is an advantage that sticking does not occur.

[発明が解決しようとしている課題] アウトライン(輪郭線)をこのようなベクタフオント
で構成された文字等のうち、外字で作成したロゴ等のよ
うに、複数のベクタフオントを合成して1つの文字パタ
ーンを作成するものがある。このような文字フオントを
パターンデータに展開する際、各フオントデータのアウ
トライン(輪郭線)は閉ループで構成されているため、
それら複数のフオントデータを合成してパターンデータ
に変換するとき、ベタ黒のドツトパターンに変換すると
きは問題ないが、例えばドツトパターンを変換するとき
はそのアウトライン(輪郭線)部が残つてしまうような
場合があつた。
[Problems to be Solved by the Invention] Out of characters and the like composed of such vector fonts as outlines (contour lines), a plurality of vector fonts are combined into one character, such as a logo created with external characters. Some create patterns. When developing such fonts into pattern data, the outline (outline) of each font data is composed of a closed loop.
When combining the plurality of font data and converting the pattern data into pattern data, there is no problem when converting the data into a solid black dot pattern. However, when converting a dot pattern, for example, the outline (contour line) portion may be left. There was a case.

本発明は上記従来例に鑑みてなされたもので、複数行
にわたる1つの文字記号パターンに対応する複数のベク
トルフォントデータにより表される文字記号パターンの
輪郭のうち重畳する輪郭に対応するベクトルデータを消
去して合成することにより、高品位の文字記号パターン
を発生する文字処理方法及び装置を提供することを目的
とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described conventional example. Vector data corresponding to a contour to be superimposed among contours of a character / symbol pattern represented by a plurality of vector font data corresponding to one character / symbol pattern over a plurality of lines is provided. It is an object of the present invention to provide a character processing method and apparatus for generating a high-quality character symbol pattern by erasing and combining.

[課題を解決するための手段] 上記目的を達成するために本発明の文字処理装置は以
下のような構成を備える。即ち、 複数行にわたる1つの文字記号パターンに対応する複
数のベクトルフォントデータを記憶する記憶手段と、 複数行にわたる1つの文字記号パターンの発生が指示
されると、前記1つの文字記号に対応する前記記憶手段
に記憶されている複数のベクトルフォントデータを読み
出す読み出し手段と、 前記読み出し手段により読み出された複数のベクトル
フォントデータを合成する合成手段と、 前記合成手段により合成されたベクトルフォントデー
タに基づき複数行にわたる1つの文字記号パターンを発
生させる発生手段とを有し、 前記合成手段は、前記読み出し手段により読み出され
た複数のベクトルフォンとデータにより表される前記文
字記号パターンの輪郭のうち重畳する輪郭に対応するベ
クトルデータを消去して、複数のベクトルフォントデー
タを合成することを特徴とする。
[Means for Solving the Problems] In order to achieve the above object, a character processing device of the present invention has the following configuration. That is, storage means for storing a plurality of vector font data corresponding to one character / symbol pattern over a plurality of lines, and when generation of one character / symbol pattern over a plurality of lines is instructed, Reading means for reading the plurality of vector font data stored in the storage means; synthesizing means for synthesizing the plurality of vector font data read by the reading means; and a vector font data synthesized by the synthesizing means. Generating means for generating one character / symbol pattern over a plurality of lines, wherein the synthesizing means superimposes a plurality of vector phones read by the reading means and contours of the character / symbol pattern represented by data; The vector data corresponding to the contour to be And wherein the synthesis of font data.

また上記目的を達成するために本発明の文字処理方法
は以下のような工程を備える。即ち、 複数行にわたる1つの文字記号パターンに対応する複
数のベクトルフォントデータを記憶するフォントメモリ
を有する文字処理装置における文字処理方法であって、 複数行にわたる1つの文字記号パターンの発生が指示
されると、前記1つの文字記号に対応する前記フォント
メモリに記憶されている複数のベクトルフォントデータ
を読み出し、 その読み出した複数のベクトルフォントデータにより
表される前記文字記号パターンの輪郭のうち重畳する輪
郭に対応するベクトルデータを消去して、前記複数のベ
クトルフォントデータを合成し、 その合成されたベクトルフォントデータに基づき複数
行にわたる1つの文字記号パターンを発生させることを
特徴とする。
To achieve the above object, the character processing method of the present invention includes the following steps. That is, a character processing method in a character processing device having a font memory for storing a plurality of vector font data corresponding to one character symbol pattern over a plurality of lines, wherein generation of one character symbol pattern over a plurality of lines is instructed. And reads a plurality of vector font data stored in the font memory corresponding to the one character symbol, and superimposes a contour to be superimposed on a contour of the character symbol pattern represented by the read plurality of vector font data. The corresponding vector data is deleted, the plurality of vector font data are combined, and one character / symbol pattern over a plurality of lines is generated based on the combined vector font data.

[作用] 以上の構成において、複数行にわたる1つの文字記号
パターンに対応する複数のベクトルフォントデータを記
憶しておき、複数行にわたる1つの文字記号パターンの
発生が指示されると、その1つの文字記号に対応する、
記憶されている複数のベクトルフォントデータを読み出
し、その読み出した複数のベクトルフォントデータによ
り表される文字記号パターンの輪郭のうち重畳する輪郭
に対応するベクトルデータを消去して、複数のベクトル
フォントデータを合成し、その合成されたベクトルフォ
ントデータに基づき複数行にわたる1つの文字記号パタ
ーンを発生させる。
[Operation] In the above configuration, a plurality of vector font data corresponding to one character / symbol pattern over a plurality of lines are stored, and when generation of one character / symbol pattern over a plurality of lines is instructed, the one character Corresponding to the symbol,
A plurality of stored vector font data is read out, and among the contours of the character symbol pattern represented by the read out plurality of vector font data, the vector data corresponding to the overlapping outline is erased, and the plurality of vector font data is deleted. A single character / symbol pattern over a plurality of lines is generated based on the synthesized vector font data.

[実施例] 以下、添付図面を参照して本発明の好適な実施例を詳
細に説明する。
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 the document processing apparatus according to the 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, an address section 10 indicates a font address of a font storage section in which corresponding pattern data is stored, and 11 and 12 are font storage sections each storing a vector font. When there is a plurality of font data corresponding to one character code (for example, when a plurality of rows are to be described later), the two font storage units 11 and 12 are addressed by the address unit 10. 13 reads out the font storage units 11 and 12 and checks the font data to delete a common contour line.14 combines the font data of the font storage units 11 and 12 to input the character code. Is a synthesizing unit that creates a vector font corresponding to. Reference numeral 15 denotes a dot pattern conversion unit that converts the vector font synthesized by the synthesis unit 14 into dot pattern data.

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

図において、100はこの文書処理装置全体を制御する
制御部であり、マイクロコンピユータ等のCPU101、CPU1
01の制御プログラムや各種データ等を記憶しているROM1
02、CPU101のワークエリアとして各種データの一時保存
を行うRAM103を含んでいる。また、104、105はそれぞれ
文字パターンのサイズに対応して、フオントデータのア
ドレスを記憶しているアドレステーブルで、テーブル10
4は通常のサイズ(1行取り)のフオントデータ106を参
照するためのテーブル、テーブル105は大きいサイズ
(複数行に亙る)のフオントデータ107を読出すための
アドレステーブルである。
In the figure, reference numeral 100 denotes a control unit that controls the entire document processing apparatus, and includes a CPU 101 and a CPU 1 such as a microcomputer.
ROM1 that stores the control program and various data of 01
02, includes a RAM 103 for temporarily storing various data as a work area of the CPU 101. Reference numerals 104 and 105 denote address tables that store font data addresses corresponding to the size of the character pattern.
Reference numeral 4 denotes a table for referring to font data 106 of a normal size (one line), and table 105 denotes an address table for reading font data 107 of a large size (a plurality of lines).

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

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

117はこの実施例におけるパターン展開手段やパター
ン変形手段等として使用されるビツト・マニユピレーシ
ヨン・ユニツト(BMU)で、BMU117はポインテイング・
デバイス113よりCRT110に展開表示された任意の文字列
に対する変形区間及びこの文字列に対する文字変形情報
が指示入力されると、区間指示された各文字に対応する
表示データを変形して展開することができる。
Reference numeral 117 denotes a bit management unit (BMU) used as a pattern developing means or a pattern deforming means in this embodiment, and the BMU 117 is a pointing / unifying unit.
When a deformation section for an arbitrary character string expanded and displayed on the CRT 110 and character deformation information for this character string are input from the device 113, the display data corresponding to each character indicated in the section can be deformed and expanded. it 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ポ未満ならばド
ツトパターンにより文字パターンを作成するというよう
に、後続の処理を文字サイズにより切換えるサイズ判定
部である。
Reference numeral 201 denotes character data to be input. The data 201 includes data indicating a character code, a character size, and how many lines the character is displayed and output (including printing) (hereinafter, referred to as line data). Etc. are included. 202 is based on the input character size data, for example, a character pattern is created by a vector font if it is 16 points or more, and a character pattern is created by a dot pattern if it is less than 16 points. This is a size determination unit for switching.

ここで、第3図の上部のドツトパターンデータ205よ
り文字パターンを作成する処理の流れに対し、処理ブロ
ツク220で示されたベクタフオントによるパターン展開
処理がこの実施例の主たる部分である。以下、このブロ
ツク220を説明する。
Here, with respect to the flow of processing for creating a character pattern from the dot pattern data 205 in the upper part of FIG. 3, a pattern development processing by a vector font indicated by a processing block 220 is a main part of this embodiment. Hereinafter, the block 220 will be described.

行取り判定部210は、入力された文字コードで示され
た文字が何行に亙つてパターン展開されるかを判定す
る。この行取り判定部210における動作は行取り判定部2
03の動作と基本的には同じであう。アドレステーブル21
1は行取り判定部210よりの行情報に従つて、1行で表示
されるときはベクタフオント212のフオントデータをド
ツトデータに変換してパターン展開を行い、複数行に亙
つてパターン展開されるときはベクタフオント213の複
数のフオントデータによりパターン展開する。
The line determining unit 210 determines how many lines are subjected to pattern expansion for the character indicated by the input character code. The operation of the row determining section 210 is the row determining section 2.
It is basically the same as the operation of 03. Address table 21
In the case of 1, when displayed on one line, the font data of the vector font 212 is converted into dot data and pattern development is performed according to the line information from the line fetching determination unit 210, and pattern development is performed over a plurality of lines. At this time, the pattern is developed using a plurality of font data of the vector font 213.

ベクタフオント213のフオント222はインテグラ“∫”
のフオントデータを示し、ベクタフオント213のフオン
ト223はインテグラ記号“∫”の上半分データ、224はイ
ンテグラ記号“∫”の下半分のフオントデータを示す。
Font 222 of vector font 213 is Integra “イ ン テ グ”
The font 223 of the vector font 213 indicates the upper half data of the integra symbol "∫", and the reference numeral 224 indicates the lower half font data of the integra symbol "∫".

従つて、インテグラの文字コードが入力され、行取り
判定部210によつて、その記号“∫”が1行中に表示出
力されると判定されると、アドレステーブル211により
ベクタフオント212のフオントデータ222が参照されて読
出される。一方、行取り判定部210によつて複数行、例
えば2行に亙り表示されると判定されると、アドレステ
ーブル211によりフオントデータ223と224とが読出さ
れ、それぞれのベクタフオントフオントが1つのベクタ
フオントに合成される。こうして読出され、或いは合成
されたフオントデータは、それぞれ第4図に詳細を示す
ドツト変換部214によつて、ベクタフオントフオントか
らドツトイメージデータに変換され、ドツト文字パター
ンとして出力される。
Accordingly, when the character code of the Integra is input and the line-out determining unit 210 determines that the symbol “∫” is to be displayed and output in one line, the address table 211 stores the font data of the vector font 212. Reference is made to 222 for reading. On the other hand, if it is determined by the line fetching determination section 210 that the display is to be performed over a plurality of lines, for example, two lines, the font data 223 and 224 are read out from the address table 211, and each vector font is replaced by one vector font. The font is synthesized. The font data read out or synthesized in this manner is converted from vector fonts to dot image data by a dot conversion unit 214 shown in detail in FIG. 4, and output as dot character patterns.

一方、文字サイズが16ポ未満のときは、その文字コー
ドは行取り判定部203に送られて何行に亙り表示される
かが判定される。そして、1行で表示されるときは、ア
ドレステーブル204によりドツトパターンデータ205のパ
ターンデータが読出され、複数行に亙つて表示されると
きはドツトパターンデータ206より、対応する分割され
た複数のドツトパターンを読出す。ここでもベクタフオ
ント212、213の場合と同様に、ドツトパターンデータ20
5のパターンデータは“∫”全体のドツトパターンを記
憶しており、ドツトパターンデータ206のパターンデー
タは、“∫”の上半分と下半分のパターンデータをそれ
ぞれドツトパターンデータ205のパターンサイズと同じ
サイズで記憶している。207は行取りの数によつて、読
出したドツトパターンデータを拡大或いは縮小等の変換
を実施する変換部である。
On the other hand, if the character size is less than 16 characters, the character code is sent to the line-out determining unit 203 to determine how many lines are displayed. When the data is displayed in one line, the pattern data of the dot pattern data 205 is read out from the address table 204. When the data is displayed in a plurality of lines, a plurality of divided dots are read from the dot pattern data 206. Read the pattern. Here, as in the case of the vector fonts 212 and 213, the dot pattern data 20
The pattern data of 5 stores the dot pattern of the entire “∫”, and the pattern data of the dot pattern data 206 is the same as the pattern size of the dot pattern data 205 of the upper half and the lower half of “∫” respectively. I remember by size. A conversion unit 207 performs conversion such as enlargement or reduction of the read dot pattern data according to the number of rows.

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

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

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

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

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

ここで、上半分60の斜線部64を囲む閉ループ部分がイ
ンテグラ記号の上側のベクタフオントデータであり、下
半分の斜線部65を囲む閉ループがインテグラ記号の下側
のベクタフオントデータである。ここで、線分62と63が
互いに共通するベクタフオント部分であり、2つのフオ
ントデータを合成する際には、この線分部分が、例えば
排他的論理和が取られる等により消去されて、斜線部64
と65とが一体になつた形で合成される。
Here, the closed loop portion surrounding the hatched portion 64 of the upper half 60 is the vector font data above the integra symbol, and the closed loop surrounding the hatched portion 65 of the lower half is the vector font data below the Integra symbol. Here, the line segments 62 and 63 are a common vector font portion, and when combining two font data, the line segment portion is erased by, for example, taking an exclusive OR, etc. Part 64
And 65 are combined into one.

第7図は第6図の斜線部64のベクタフオントデータの
一例を示す図で、50は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 of the hatched portion 64 of FIG. 6. Reference numeral 50 denotes a control information section storing data such as JIS code, vector font data size, and contour lines. The indicated column is a sample data area storing the coordinate values and attribute flags of each sample point, 71 is the coordinate value of point 66 in FIG. 6, 72 is the coordinate value of sample point 67, and 73 is the coordinate value of sample point 68. Coordinate values are stored, and 74 further stores the coordinate value of the last sample point 69. 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 coordinate (sample) point common to the other vector font. According to the method using the exclusive OR described above, the points 66 and 69 are lost in white. Therefore, it is necessary to perform a process such as extracting the points in advance white before the exclusive OR is performed, or filling the points later. .

また、属性フラグ53の56は、第6図のサンプル点67が
曲線区間であることを示している。このように属性フラ
グ53は曲線区間の端点或いは始点、終点または直線区間
であることを示す情報、及びその端点が他のベクタフオ
ントと共通している点であることを示す情報等が格納さ
れている。
56 of the attribute flag 53 indicates that the sample point 67 in FIG. 6 is a curved section. As described above, the attribute flag 53 stores information indicating that an end point or a start point, an end point, or a straight line section of a curved section, information indicating that the end point is a point common to other vector fonts, and the like are stored. I have.

第8図と第9図はそれぞれアドレステーブル104と105
の内容を示す図で、アドレステーブル104はベクタフオ
ント106のベクタフオントデータをアドレスするアドレ
ステーブル、アドレステーブル105はベクタフオント107
のベクタフオントデータをアドレスするアドレステーブ
ルである。
8 and 9 show address tables 104 and 105, respectively.
The address table 104 is an address table for addressing vector font data of the vector font 106, and the address table 105 is a vector font 107.
5 is an address table for addressing the vector font data of FIG.

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

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

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

複数行に亙つて印刷或いは表示されるときはステツプ
S4に進み、アドレステーブル105を参照してベクタフオ
ント107の複数のベクタフオントデータをアドレスし、
ステツプS5でベクタフオント107よりアドレスされた複
数のフオントデータを読出して、RAM103に格納する。そ
して、ステツプS6ではこうしてベクタフオント107から
読出された複数のベクタフオントの各座標点の属性フラ
グをチエツクしていき、その座標点が他方の合成される
ベクタフオントの座標点と共通する座標点かどうかをみ
る。これは前述したように、属性フラグ53により容易に
判定できる。共通する点のときはステツプS7に進み、そ
れらの点同士を接続する線分を消去する。これは例えば
第7図において、第6図のサンプル点69を示すデータ74
の属性フラグを閉ループの最終点であることを示すフラ
グに変更することにより、第6図の斜線部64のベクタフ
オントが閉ループでなくなり線分62が消去されたことに
なる。なお、このとき前述したように点66と69の部分が
白く抜けるのを防止するために、点の部分を埋める等の
処理を行う。
When printing or displaying multiple lines,
Proceeding to S4, referring to the address table 105, addressing a plurality of vector font data of the vector font 107,
In step S5, a plurality of font data addressed from the vector font 107 is read and stored in the RAM 103. Then, in step S6, the attribute flags of the respective coordinate points of the plurality of vector fonts read from the vector font 107 are checked, and whether the coordinate point is a coordinate point common to the coordinate point of the other vector font to be combined is checked. Look at it. This can be easily determined by the attribute flag 53 as described above. If it is a common point, the process proceeds to step S7, and the line segment connecting those points is deleted. For example, in FIG. 7, the data 74 indicating the sample point 69 in FIG.
Is changed to a flag indicating the final point of the closed loop, the vector font of the hatched portion 64 in FIG. 6 is not a closed loop, and the line segment 62 has been deleted. At this time, as described above, in order to prevent the portions of points 66 and 69 from being whitened, processing such as filling the portions of points is performed.

こうして線分部分を消去したのちステツプS8に進み、
ステツプS6で検出された共通座標点と他方のフオントデ
ータの共通する座標点とを1つにする。これを示したの
が第11図で、点66と点92とが1つの点93に、点69と点95
とが1つの点96に変換される。なお、このとき斜線部64
のベクタフオントデータを基準にすると、斜線部65のベ
クタフオントデータはY軸方向に512ドツトバイアスさ
れたフオントデータになることはいうまでもない。こう
してステツプS9で全座標点のチエツクが終了したかを調
べ、終了していなければステツプS6に戻るが、終了する
とステツプS10に進み、フオントデータを第11図のよう
に合成し、ステツプS11でそのベクタフオントをドツト
パターンに展開してイメージメモリ116に格納する。
After erasing the line segment in this way, proceed to step S8,
The common coordinate point detected in step S6 and the common coordinate point of the other font data are reduced to one. This is shown in FIG. 11, where points 66 and 92 are one point 93, points 69 and 95
Are converted to one point 96. In this case, the hatched portion 64
It is needless to say that the vector font data in the hatched portion 65 is font data which is biased 512 dots in the Y-axis direction, based on the vector font data of FIG. In this way, it is checked in step S9 whether checking of all coordinate points has been completed, and if not completed, the process returns to step S6, but if completed, the process proceeds to step S10, where font data is synthesized as shown in FIG. The vector font is developed into a dot pattern and stored in the image memory 116.

一方、ステツプS3で1行内で表示或いは印刷される文
字パターンのときはステツプS12に進み、アドレステー
ブル104によりベクタフオント106のフオントデータをア
ドレスし、ステツプS13でベクタフオント106より1文字
分のパターンデータを読出す。そして、ステツプS11で
その文字パターンをドツトパターンに変換してイメージ
メモリ116に格納する。なお、このイメージメモリ116に
格納されたパターンデータはプリンタ114に出力されて
印刷されたり、或いはビデオメモリ111に格納されてCRT
110に表示される。
On the other hand, if the character pattern is to be displayed or printed in one line in step S3, the process proceeds to step S12, where the font data of the vector font 106 is addressed by the address table 104, and the pattern data of one character from the vector font 106 is addressed in step S13. Is read. Then, 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 stored in the CRT.
Displayed at 110.

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

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

[発明の効果] 以上説明したように本発明によれば、複数行にわたる
1つの文字記号パターンに対応する複数のベクトルフォ
ントデータにより表される文字記号パターンの輪郭のう
ち重畳する輪郭に対応するベクトルデータを消去して合
成することにより、高品位の文字記号パターンを発生で
きるという効果がある。
[Effects of the Invention] As described above, according to the present invention, a vector corresponding to a superimposed contour among contours of a character / symbol pattern represented by a plurality of vector font data corresponding to one character / symbol pattern over a plurality of lines. By erasing and combining data, there is an effect that a high-quality character symbol pattern can be generated.

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

第1図は実施例の文書処理装置の機能ブロツク図、 第2図は実施例の文書処理装置の概略構成を示すブロツ
ク図、 第3図は実施例の文書処理装置におけるパターン展開処
理を説明するための図、 第4図は第3図のドツト変換部の概略構成を示すブロツ
ク図、 第5図はBスプライン方式による文字のサンプル点を示
す図、 第6図と第11図はインテグラ記号のベクタフオントの合
成例を示す図、 第7図は実施例のベクタフオントデータの1例を示す
図、 第8図及び第9図は実施例のアドレステーブルの構成例
を示す図、そして 第10図は実施例の文書処理装置におけるパターン展開処
理を示すフローチヤートである。 図中、10……アドレス部、11,12……フオント記憶部、1
3……共通線削除部、14……合成部、15……ドツトパタ
ーン変換部、53……属性フラグ、62,63……共通線分、6
6〜69……サンプル点、100……制御部、101……CPU、10
2……ROM、103……RAM、104,105……アドレステーブ
ル、106,107……ベクタフオント、110……CRT、111……
ビデオメモリ、112……キーボード、113……マウス、11
4……プリンタ、115……インターフエース部、116……
イメージメモリ、117……BMU、118……システムバス、2
02……サイズ判定部、203,210……行取り判定部、204,2
11……アドレステーブル、207……変換部、214……ドツ
ト変換部、301……変形回路、302……輪郭描画部、303
……塗りつぶし部である。
FIG. 1 is a functional block diagram of the document processing apparatus according to the embodiment, FIG. 2 is a block diagram showing a schematic configuration of the document processing apparatus according to the embodiment, and FIG. 3 illustrates pattern development processing in the document processing apparatus according to the embodiment. FIG. 4 is a block diagram showing a schematic configuration of the dot conversion unit shown in FIG. 3, FIG. 5 is a diagram showing sample points of characters by the B-spline method, and FIGS. FIG. 7 is a diagram showing an example of vector font synthesis, FIG. 7 is a diagram showing an example of vector font data of the embodiment, FIGS. 8 and 9 are diagrams showing a configuration example of an address table of the embodiment, and FIG. 7 is a flowchart showing a pattern development process in the document processing apparatus of the embodiment. In the figure, 10 ... address part, 11,12 ... font storage part, 1
3 common line deletion unit, 14 synthesis unit, 15 dot pattern conversion unit, 53 attribute flag, 62, 63 common line segment, 6
6 to 69: Sample point, 100: Control unit, 101: CPU, 10
2 ... ROM, 103 ... RAM, 104,105 ... Address table, 106,107 ... Vector font, 110 ... CRT, 111 ...
Video memory, 112 ... keyboard, 113 ... mouse, 11
4… Printer, 115… Interface, 116…
Image memory, 117 BMU, 118 System bus, 2
02 …… Size judging unit, 203,210 …… Rowing judging unit, 204,2
11 ... Address table, 207 ... Conversion unit, 214 ... Dot conversion unit, 301 ... Deformed circuit, 302 ... Contour drawing unit, 303
...... This is the painted part.

フロントページの続き (72)発明者 白坂 昭史 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (72)発明者 浜田 正基 東京都大田区下丸子3丁目30番2号 キ ヤノン株式会社内 (56)参考文献 特開 昭61−199173(JP,A) 特開 昭61−169966(JP,A) 特開 昭60−11888(JP,A) 特開 昭55−133087(JP,A)Continued on the front page (72) Inventor Akishi Shirasaka 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (72) Inventor Masaki 3-30-2 Shimomaruko, Ota-ku, Tokyo Inside Canon Inc. (56) References JP-A-61-199173 (JP, A) JP-A-61-169966 (JP, A) JP-A-60-11888 (JP, A) JP-A-55-133087 (JP, A)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数行にわたる1つの文字記号パターンに
対応する複数のベクトルフォントデータを記憶する記憶
手段と、 複数行にわたる1つの文字記号パターンの発生が指示さ
れると、前記1つの文字記号に対応する前記記憶手段に
記憶されている複数のベクトルフォントデータを読み出
す読み出し手段と、 前記読み出し手段により読み出された複数のベクトルフ
ォントデータを合成する合成手段と、 前記合成手段により合成されたベクトルフォントデータ
に基づき複数行にわたる1つの文字記号パターンを発生
させる発生手段とを有し、 前記合成手段は、前記読み出し手段により読み出された
複数のベクトルフォンとデータにより表される前記文字
記号パターンの輪郭のうち重畳する輪郭に対応するベク
トルデータを消去して、複数のベクトルフォントデータ
を合成することを特徴とする文字処理装置。
1. A storage means for storing a plurality of vector font data corresponding to one character / symbol pattern over a plurality of lines, and when generation of one character / symbol pattern over a plurality of lines is instructed, Reading means for reading a plurality of vector font data stored in the corresponding storage means; synthesizing means for synthesizing the plurality of vector font data read by the reading means; vector font synthesized by the synthesizing means Generating means for generating one character / symbol pattern over a plurality of lines based on data, wherein the synthesizing means comprises a plurality of vector phones read by the reading means and an outline of the character / symbol pattern represented by data Of vector data corresponding to the contour to be superimposed, A character processing device characterized by combining vector font data.
【請求項2】前記発生手段により発生された文字記号パ
ターンを出力する出力手段を更に有することを特徴とす
る請求項1に記載の文字処理装置。
2. The character processing apparatus according to claim 1, further comprising output means for outputting a character / symbol pattern generated by said generating means.
【請求項3】複数行にわたる1つの文字記号パターンに
対応する複数のベクトルフォントデータを記憶するフォ
ントメモリを有する文字処理装置における文字処理方法
であって、 複数行にわたる1つの文字記号パターンの発生が指示さ
れると、前記1つの文字記号に対応する前記フォントメ
モリに記憶されている複数のベクトルフォントデータを
読み出し、 その読み出した複数のベクトルフォントデータにより表
される前記文字記号パターンの輪郭のうち重畳する輪郭
に対応するベクトルデータを消去して、前記複数のベク
トルフォントデータを合成し、 その合成されたベクトルフォントデータに基づき複数行
にわたる1つの文字記号パターンを発生させることを特
徴とする文字処理方法。
3. A character processing method in a character processing device having a font memory storing a plurality of vector font data corresponding to one character symbol pattern over a plurality of lines, wherein one character symbol pattern over a plurality of lines is generated. When instructed, a plurality of vector font data stored in the font memory corresponding to the one character symbol is read, and a superimposition of the outline of the character symbol pattern represented by the read plurality of vector font data is performed. A character processing method comprising: erasing vector data corresponding to a contour to be combined; synthesizing the plurality of vector font data; and generating one character / symbol pattern over a plurality of lines based on the synthesized vector font data. .
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 JPH0239360A (en) 1990-02-08
JP2737845B2 true 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
JPH0239360A (en) 1990-02-08

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
JPS6165290A (en) Generator for vector character font
JPS60140472A (en) Interactive controller for font pattern formation/correction/synthesis
US5574842A (en) Document processing apparatus and method for generating a character or symbol pattern across a plurality of lines
JP2737845B2 (en) Character processing method and apparatus
JP3317817B2 (en) Character generator
JP2588914B2 (en) Document processing device
JP2803746B2 (en) Character processing method and apparatus
JPS63108388A (en) Image processor
JP2663967B2 (en) Information storage control method
JP2785929B2 (en) Character processor
JP2791014B2 (en) Character processor
JPH0239362A (en) Document processor
JP3035126B2 (en) Information processing device
JP2856604B2 (en) Character processor
JPH06175639A (en) Method and device for character generation
JPH0239361A (en) Document processor
JP2974638B2 (en) Document processing apparatus and method
JPH03203769A (en) Map information processor
JP3040624B2 (en) Pattern generator
JP2967861B2 (en) Output device
JP2978178B2 (en) Document creation apparatus and control method thereof
JP3082173B2 (en) Contour data processing device
JP3351231B2 (en) Image forming device
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus

Legal Events

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