JPH04184393A - Plotting system and data expressing system for vector font - Google Patents

Plotting system and data expressing system for vector font

Info

Publication number
JPH04184393A
JPH04184393A JP2314996A JP31499690A JPH04184393A JP H04184393 A JPH04184393 A JP H04184393A JP 2314996 A JP2314996 A JP 2314996A JP 31499690 A JP31499690 A JP 31499690A JP H04184393 A JPH04184393 A JP H04184393A
Authority
JP
Japan
Prior art keywords
data
font
area
block
work area
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
JP2314996A
Other languages
Japanese (ja)
Inventor
Ikunori Yamaguchi
山口 郁準
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.)
Minolta Co Ltd
Original Assignee
Minolta Co Ltd
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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP2314996A priority Critical patent/JPH04184393A/en
Publication of JPH04184393A publication Critical patent/JPH04184393A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To necessitate the smaller memory capacity of the work area necessary for the development of font patterns and to improve the development of magnified characters by previously dividing the font data with one character to plural block regions, developing the font data read out of vector fonts on the work area by each of block regions and transferring the data to a bit map memory by each of the block regions. CONSTITUTION:The graphic element FE of Chinese character 'NIN' is divided to the five block regions BE11 to 15 and the graphic elements FE11 to 15 of the respective block regions BE11 to 15 are plotted to the proper points of the font work region 32b. The respective block regions BE11 to 15 are thereafter transferred to the bit map region 3a and the correct font pattern EP2 is plotted. One piece of the font data FD is divided to the plural regions BE in such a manner and is developed to the regions 32b by each region BE to decrease the memory capacity of the region 32b. The possibility that the region 32b becomes short and leads to a failure in plotting decreases in the case of largely magnifying and plotting the font data FD.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ベクターフォントの描画方式及びデータ表現
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a vector font drawing method and data representation method.

〔従来の技術〕[Conventional technology]

従来より、プリンタ装置における文字印刷のために、文
字を輪郭線で表現したベクターフォント(アウトライン
フォント)が用いられている。
2. Description of the Related Art Conventionally, vector fonts (outline fonts) in which characters are expressed by outlines have been used for printing characters in printer devices.

従来のベクターフォントでは、文字の輪郭を連続する直
線又は曲線によって近似し、それらの接続点の座標デー
タを順次配列することによってデータ表現が行われてい
る。
In conventional vector fonts, data representation is performed by approximating the contours of characters with continuous straight lines or curved lines, and sequentially arranging coordinate data of the connecting points.

このようなベクターフォントによって文字の描画を行う
際には、ベクターフォントから読み出した座標データに
基づいて文字の輪郭を展開し、その輪郭の内部を、例え
ばラインスキャン法などによって塗り潰す。
When drawing a character using such a vector font, the outline of the character is developed based on coordinate data read from the vector font, and the inside of the outline is filled in using, for example, a line scan method.

しかし、その塗り潰しのための処理手順が複雑であるた
め印字速度が遅いという欠点がある。
However, since the processing procedure for filling it out is complicated, there is a drawback that the printing speed is slow.

これに対して、文字を構成する図形要素を1つ又は2つ
以上の三角形によって近似し、各三角形の頂点の座標デ
ータを連続的に配列することによってデータ表現を行う
ことが提案されている(特開平1−255888号公報
)。
On the other hand, it has been proposed that the graphical elements constituting a character be approximated by one or more triangles, and that the data be expressed by continuously arranging the coordinate data of the vertices of each triangle ( JP-A-1-255888).

このようなベクターフォントによると、ベクターフォン
トから読み出した座標データに基づいて、1つ又は2つ
以上の三角形の輪郭がビットマツプメモリに展開され、
それぞれの三角形の内部を塗り潰すことによって文字の
描画が行われる。
According to such a vector font, the outline of one or more triangles is developed in a bitmap memory based on the coordinate data read from the vector font.
Characters are drawn by filling in the inside of each triangle.

三角形の内部を塗り潰すための処理は比較的簡単であり
、ハード回路を用いて高速な処理を行えるため、印字速
度が早いという利点を有する。
The processing for filling the inside of the triangle is relatively simple and can be performed at high speed using a hardware circuit, so it has the advantage of high printing speed.

しかし、この従来の描画方式では、ベクターフォントか
ら読み出したフォントデータに基づいて、1つの文字の
フォントパターンの全体をワークエリアに一旦展開し、
その後に、展開したフォントパターンのデータをビット
マツプメモリに転送していた。
However, in this conventional drawing method, the entire font pattern of one character is once developed in the work area based on font data read from a vector font.
After that, the expanded font pattern data was transferred to bitmap memory.

〔発明が解決しようとする課題] 上述したように、1つの文字のフォントパターンの全体
をワークエリアに展開するためには、それに応じたメモ
リ容量のワークエリアが必要である。
[Problems to be Solved by the Invention] As described above, in order to develop the entire font pattern of one character in the work area, a work area with a memory capacity corresponding to the font pattern is required.

そのため、従来においては、ワークエリアに展開可能な
フォントパターンが少数に限られており、ワークエリア
に展開したフォントパターンを保存しておいて必要に応
してビットマツプメモリに転送するというキャッシュ化
が充分に行えないので、ベクターフォントを描画する際
の処理効率が悪かった。
For this reason, in the past, the number of font patterns that could be developed in the work area was limited to a small number, and caching was used to save the font patterns developed in the work area and transfer them to bitmap memory as needed. Because it could not be done satisfactorily, the processing efficiency when drawing vector fonts was poor.

また、文字を大きく拡大する場合には、拡大されたフォ
ントパターンをワークエリアに展開することができな(
なり、その結果描画不可能になるという問題もあった。
Also, when enlarging text, the enlarged font pattern cannot be expanded to the work area (
There was also the problem that as a result, it became impossible to draw.

これらの問題は、ワークエリアのメモリ容量を増やすこ
とによっである程度は解決することが可能であるが、メ
モリ容量が増えることによるコスト高、処理速度の低下
、他のメモリエリアの減少など、種々の新たな問題が発
生する。
These problems can be solved to some extent by increasing the memory capacity of the work area, but increasing the memory capacity will also cause various problems such as higher costs, lower processing speed, and less space for other memory areas. A new problem arises.

本発明は、上述の問題に鑑み、フォントパターンの展開
に必要なワークエリアのメモリ容量が少なくて済み、拡
大文字の展開においても有利なベクターフォントの描画
方式及びデータ表現方式を提供することを目的としてい
る。
In view of the above-mentioned problems, an object of the present invention is to provide a vector font drawing method and data representation method that requires less memory capacity in the work area required for developing font patterns and is also advantageous in expanding enlarged characters. It is said that

〔課題を解決するための手段〕[Means to solve the problem]

請求項1の発明に係る描画方式は、上述の課題を解決す
るため、ベクターフォントからフォントデータを読み出
してワークエリア上に展開し、ワークエリア上に展開さ
れたデータをビットマツプメモリに転送することによっ
て文字を描画する方式において、1つの文字についての
フォントデータを複数のブロック領域に分割しておき、
前記ベクターフォントから読み出したフォントデータを
前記ブロック領域毎に前記ワークエリア上に展開し、ワ
ークエリア上に展開されたブロック領域毎に前記ビット
マツプメモリに転送する。
In order to solve the above-mentioned problem, the drawing method according to the invention of claim 1 reads font data from a vector font, develops it on a work area, and transfers the data developed on the work area to a bitmap memory. In the method of drawing characters by dividing the font data for one character into multiple block areas,
Font data read from the vector font is developed on the work area for each block area, and transferred to the bitmap memory for each block area developed on the work area.

請求項2の発明に係るデータ表現方式は、1つの文字に
ついてのフォントデータを複数のブロック領域に分割し
、前記フォントデータ内に、それぞれのブロック領域の
大きさを示す領域サイズデータと、それぞれのブロック
領域の開始を示す領域開始データと、それぞれのブロッ
ク領域の終了を示す領域終了データとを含んでデータ表
現する。
The data representation method according to the invention of claim 2 divides font data for one character into a plurality of block areas, and includes area size data indicating the size of each block area in the font data, and area size data for each block area. The data is represented by including area start data indicating the start of a block area and area end data indicating the end of each block area.

〔作 用〕 ベクターフォントから読み出されたフォントデータに基
づいて、ブロック開城毎に、文字のフォントパターンに
展開される。
[Operation] Based on the font data read from the vector font, it is developed into a character font pattern for each block.

その際に、ブロック領域毎に、領域サイズデータに基づ
いてワークエリア内にブロック領域が確保され、領域開
始データから領域終了データまでの間のフォントデータ
が、確保されたブロック領域内に展開される。
At that time, a block area is secured in the work area for each block area based on the area size data, and the font data between the area start data and the area end data is developed within the secured block area. .

ワークエリアへの展開が終了すると、そのブロック領域
は、適当なタイミングでビットマツプメモリ上の適当な
位置に転送される。
When expansion into the work area is completed, the block area is transferred to an appropriate position on the bitmap memory at an appropriate timing.

それぞれのブロック領域がビットマツプメモリ上で合成
されることによって、1つの文字が描画される。
One character is drawn by combining the respective block areas on the bitmap memory.

なお、文字には数字又は記号などが含まれる。Note that the characters include numbers, symbols, and the like.

〔実施例〕〔Example〕

以下、本発明の実施例を図面を参照しつつ説明する。 Embodiments of the present invention will be described below with reference to the drawings.

まず、本発明に係るフォントFTのデータフォーマット
について説明する。
First, the data format of the font FT according to the present invention will be explained.

第5図はフォノ)FTの全体の構成を示す図である。FIG. 5 is a diagram showing the overall configuration of the phono-FT.

フォントFTは、グローバル情報部MG、ディレクトリ
情報部MD、フォントデータ情報部MFから構成されて
いる。
The font FT is composed of a global information section MG, a directory information section MD, and a font data information section MF.

第6図はグローバル情報部MGのデータ構成を示す図で
ある。
FIG. 6 is a diagram showing the data structure of the global information section MG.

グローバル情報部MGは、フォントFTの全体の管理デ
ータDMを格納しており、プリントヘッド制御部42が
複数のフォントの中からこのフォントFTを選択すると
きに参照する。
The global information section MG stores the entire management data DM of the font FT, and is referred to when the print head control section 42 selects this font FT from among a plurality of fonts.

第7図はディレクトリ情報部MDのデータ構成を示す図
である。
FIG. 7 is a diagram showing the data structure of the directory information section MD.

ディレクトリ情報部MDは、各文字コードに対応するフ
ォントデータFDを管理するためのディレクトリデータ
DFを格納している。ディレクトリデータDFは、フォ
ントFTが含んでいる文字数と同数の分が、文字コード
の順序に対応して配列されている。
The directory information section MD stores directory data DF for managing font data FD corresponding to each character code. The directory data DF has the same number of characters as the font FT includes, and is arranged in accordance with the order of character codes.

データ先頭アドレスDFAは、文字コードに対応するフ
ォントデータFDが格納されている先頭のアドレスであ
る。また、各フォントFTのセルサイズ(縦y×横X)
を示すセルサイズデータDFS、ベースラインからの高
さDFH、センターラインまでの距離DFLは、文字(
フォノトノ(ターン)の描画位置の決定又はカーソル位
置の移動のために用いられる。
The data start address DFA is the start address where the font data FD corresponding to the character code is stored. Also, the cell size of each font FT (vertical y x horizontal x)
The cell size data DFS, the height from the baseline DFH, and the distance to the center line DFL are indicated by the letters (
Used to determine the drawing position of a phonotono (turn) or move the cursor position.

次に、フォントデータ情報部MFに格納されたフォント
データFDについて、文字(数字)「1」を例にとって
具体的に説明する。
Next, the font data FD stored in the font data information section MF will be specifically explained using the character (number) "1" as an example.

なお、以下において、個別的又は具体的な物を表す場合
には、例えば「フォントデータFDIJのように、アル
ファベット符号のあとに数字を付加して表示し、全体的
又は−船釣な名称を表す場合には、例えば「フォントデ
ータFDJのように、数字を付加せずに表示する。
In addition, in the following, when representing an individual or specific thing, for example, "font data FDIJ, numbers are added after the alphabetic code to represent the overall or - boat fishing name. In this case, for example, ``font data FDJ is displayed without adding numbers.

第1図は本発明に係るフォントのデータ表現方式を説明
するための図、第2図は第1図のフォントパターンFP
IのフォントデータFDIを示す図である。
FIG. 1 is a diagram for explaining the font data representation system according to the present invention, and FIG. 2 is a diagram showing the font pattern FP of FIG.
FIG. 3 is a diagram showing font data FDI of I.

第2図において、フォントデータFDは、座標データD
D、コマンドデータDC,及びサイズデータDSからな
っている。
In FIG. 2, font data FD is coordinate data D
D, command data DC, and size data DS.

第3図はフォントデータFDに含まれる座標データDD
のビット構成を示す図、第4図はフォントデータFDに
含まれるコマンドデータDCのビット構成を示す図であ
る。
Figure 3 shows the coordinate data DD included in the font data FD.
FIG. 4 is a diagram showing the bit structure of command data DC included in font data FD.

座標データDDは、2ワード構成(2バイト構成)とな
っており、X座標データ及びy座標データを有している
。なお、座標データDDの最上位ビット(31ビツト目
)は座標データDDであることを示すために「0」とさ
れ、また15ビツト目も「0」とされる。
The coordinate data DD has a 2-word configuration (2-byte configuration) and includes X coordinate data and y coordinate data. Note that the most significant bit (31st bit) of the coordinate data DD is set to "0" to indicate that it is coordinate data DD, and the 15th bit is also set to "0".

コマンドデータDCは、2ワード構成となっており、最
上位ビット(31ビツト目)はコマンドデータDCであ
ることを示すために「l」とされ、下位の7ビツト(6
〜0ビツト目)がコマンドの内容を表すためのパラメー
タとなっている。
The command data DC has a 2-word structure, with the most significant bit (31st bit) set to “l” to indicate that it is command data DC, and the lower 7 bits (6th bit)
. . . bit 0) is a parameter to represent the contents of the command.

すなわち、コマンドデータDCの6ビツト目は、1つの
フォントデータFDの終了を示す、これを示すコマンド
データDCは、各フォントデータFDの最後に付けられ
る。
That is, the 6th bit of the command data DC indicates the end of one font data FD, and the command data DC indicating this is appended to the end of each font data FD.

5ビツト目はブロック領域BEの開始を示すブロック定
義フラグFGS、4ビツト目はブロック領域BEの終了
を示すブロックデータ終了フラグFGEである。ブロッ
ク領域BEの開始から終了までのデータが1つのブロッ
クとして扱われ、ブロック単位でフォントパターンFP
の展開処理が行われる。なお、コマンドデータDCによ
りブロック領域BEの開始が指示された後には、ブロッ
クサイズを定義するためのパラメータとして4ノ1′イ
トのサイズデータDSが続く、このサイズデータDSは
、プラス又はマイナスのデータであり、これによって現
在位置に対するブロック領域BEの位置も定められる。
The 5th bit is a block definition flag FGS indicating the start of the block area BE, and the 4th bit is a block data end flag FGE indicating the end of the block area BE. The data from the start to the end of the block area BE is treated as one block, and the font pattern FP is created in block units.
The expansion process is performed. Note that after the command data DC instructs the start of the block area BE, size data DS of 4 bytes follows as a parameter for defining the block size. This size data DS can be positive or negative data. This also determines the position of the block area BE relative to the current position.

3ビツト目は、そのコマンドデータDCの後に続く座標
データDDによって定義される三角形の内部の領域を塗
り潰すかどうかを指定するためのフラグである。このフ
ラグが「1」のときは描画禁止となり、これは次の座標
データDDに対して一回限り有効である。このフラグは
、データの組み合わせにより塗り潰す領域が重なるよう
な冗長性が生じたときに用いられる。
The third bit is a flag for specifying whether to fill in the area inside the triangle defined by the coordinate data DD following the command data DC. When this flag is "1", drawing is prohibited, and this is valid only once for the next coordinate data DD. This flag is used when redundancy occurs such that areas to be filled out overlap due to a combination of data.

2ビツト目は、このコマンドデータDCの後に続く座標
データDDが白ベクター(描画を行わないデータ)であ
るか又は黒ベクター(描画を行うデータ)であるかを指
定するためのフラグである。
The second bit is a flag for specifying whether the coordinate data DD following this command data DC is a white vector (data that does not perform drawing) or a black vector (data that performs drawing).

このフラグが「0」の場合、すなわち白ベクターを指定
した場合には、後述するフォントイメージ展開部311
のベクターレジスタ311cxeの内容がリセットされ
、次の座標データDDが新しい開始点としてセットされ
る。
When this flag is "0", that is, when a white vector is specified, the font image development unit 311 described later
The contents of the vector register 311cxe are reset, and the next coordinate data DD is set as a new starting point.

1ビツト目は、ベジェ曲線BCを指定するためのベジェ
曲線指定フラグFGBである。ベジェ曲線指定フラグF
GBが「1」の場合には、このコマンドデータDCの後
に続(2つの座標データDDを制御点とし、現在の座標
位置とOビット目の終点指定フラグで指定される1つ前
または2つ前の座標データDDによって形成されるベジ
ェ曲線BCであることが示される。
The first bit is a Bezier curve designation flag FGB for designating the Bezier curve BC. Bezier curve specification flag F
If GB is "1", the command data following this command data DC (with two coordinate data DD as control points, the current coordinate position and the previous or two points specified by the O-th end point designation flag) It is shown that this is a Bezier curve BC formed by the previous coordinate data DD.

さて、第1図において、文字「1」についてのフォント
パターンFPIは、三角形T1〜T4、及び三角形T2
の1つの辺SDIとベジェ曲vABC1とによって囲ま
れた曲線図形S1によって表現されている。
Now, in FIG. 1, the font pattern FPI for the character "1" consists of triangles T1 to T4 and triangle T2.
It is expressed by a curved figure S1 surrounded by one side SDI of and a Bezier curve vABC1.

すなわち、数字「1」の図形要素FEは、点P1、P3
、P4、Bで囲まれる矩形のブロック領域BEI (第
8図参照)と、点P8、P9、P7、P4で囲まれる矩
形のブロック領域BE2 (第9図参照)とに分割され
ており、これらのブロック領域BEI、2に描画された
図形要素FB1.2の合成によって表現される。
In other words, the graphic element FE with the number "1" is located at the points P1 and P3.
, P4, and B (see Figure 8), and a rectangular block area BE2 (see Figure 9) surrounded by points P8, P9, P7, and P4. It is expressed by combining the graphic elements FB1.2 drawn in the block area BEI,2.

ブロック領域BEIの図形要素FBIは、点P1、P2
、P3で囲まれる三角形T1、点P2、P3、P4で囲
まれる三角形T2、及び点P2から点P4に至る辺SD
Iとベジェ曲線BCIとによって囲まれた曲線図形S1
とに分解されている。
The graphic elements FBI of the block area BEI are points P1 and P2
, a triangle T1 surrounded by P3, a triangle T2 surrounded by points P2, P3, and P4, and a side SD from point P2 to point P4.
Curve figure S1 surrounded by I and Bezier curve BCI
It is broken down into.

第2図をも参照して、これらの三角形T1.2は、それ
ぞれの頂点である点P1〜3、及び点P2〜4の座標デ
ータDD1〜4によって表現され゛る。
Referring also to FIG. 2, these triangles T1.2 are expressed by coordinate data DD1-4 of points P1-3 and points P2-4, which are respective vertices.

また、ベジェ曲IBcIは、ベジェ曲線BCであること
を示すコマンドデータDC3のベジェ曲線指定フラグF
GB、及びベジェ曲線BCIの軌跡を特定するための制
御点(駆動点)P5.P6の座標データDD5.6など
のデータ(ベジェ曲線データ)によって表現される。
Also, the Bezier curve designation flag F of the command data DC3 indicates that the Bezier song IBcI is a Bezier curve BC.
GB, and a control point (driving point) P5 for specifying the locus of the Bezier curve BCI. It is expressed by data (Bezier curve data) such as coordinate data DD5.6 of P6.

ブロック領域BE2の図形要素FE2は、点P4、P7
、P8で囲まれる三角形T3、及び点P7、P8、P9
で囲まれる三角形T4とに分解されている。
The graphic element FE2 of the block area BE2 has points P4 and P7.
, P8, and the points P7, P8, P9
It is decomposed into a triangle T4 surrounded by .

これらの三角形T3.4は、それぞれの頂点である点P
4、P7、P8、及び点P7、P8、P9の座標データ
DD4及び座標データDD7〜9によって表現される。
These triangles T3.4 have their vertices at points P
4, P7, P8, and coordinate data DD4 and coordinate data DD7-9 of points P7, P8, and P9.

次に、フォノ)FTの展開及び描画処理について説明す
る。
Next, the expansion and drawing processing of phono-FT will be explained.

第13図はグラフィック描画の可能なレーザプリンタP
を用いたプリントシステムPSの構成を示すブロック図
である。
Figure 13 shows a laser printer P that can draw graphics.
1 is a block diagram showing the configuration of a print system PS using the .

同図において、プリントシステムPSは、汎用のデータ
処理装置1、データ処理装置lからバスB1を介して出
力されるデータを一旦格納するファイルバッファ2、及
びレーザプリンタPから構成される装置 レーザプリンタPは、ビットマツプ方式のデータ処理部
3と、レーザー露光による周知の電子写真プロセスを用
いてハードコピー画像を形成するプリントエンジン4と
、外部給紙ユニット5やソータ6などのアクセサリ−装
置とからなる。
In the figure, a print system PS is a device laser printer P that is composed of a general-purpose data processing device 1, a file buffer 2 that temporarily stores data output from the data processing device 1 via a bus B1, and a laser printer P. consists of a bitmap type data processing section 3, a print engine 4 that forms a hard copy image using a well-known electrophotographic process using laser exposure, and accessory devices such as an external paper feed unit 5 and a sorter 6.

第14図はレーザプリンタPの制御部の構成を示すブロ
ック図である。
FIG. 14 is a block diagram showing the configuration of the control section of the laser printer P.

データ処理部3は、ビットマツプ制御部30、ビットマ
ツプ方式の読み書き可能なメモリであるBM−RAM3
2、BM−RAM32に描画を行うピントマツプ書込部
31、及び、フォントFTが格納されたフォント部33
から構成されている。
The data processing unit 3 includes a bitmap control unit 30 and a BM-RAM 3 which is a bitmap type readable/writable memory.
2. A focus map writing section 31 that performs drawing in the BM-RAM 32, and a font section 33 that stores a font FT.
It consists of

プリントエンジン4との接続は、制御データ(エンジン
、アクセサリ−制御など)用のバスB3とイメージデー
タ用のバスB4により行う。
Connection with the print engine 4 is made through a bus B3 for control data (engine, accessory control, etc.) and a bus B4 for image data.

プリントエンジン4は、3つの制御部を中心に構成され
ている。まず、インタフェース制御部(IFC)40は
、ビットマツプ制御部30からの制御データの処理、操
作パネルの制御、及び内部バスB5を通じてプリントエ
ンジン4全体のタイミングの制御を行う、電子写真制御
部41は、内部バスB5を通してインタフェース制御部
40から送られるデータに応して、電子写真プロセス部
4゛5の制御を行う。
The print engine 4 is mainly composed of three control sections. First, an interface control section (IFC) 40 processes control data from the bitmap control section 30, controls the operation panel, and controls the overall timing of the print engine 4 through the internal bus B5. The electrophotographic processing sections 4 and 5 are controlled in accordance with data sent from the interface control section 40 through the internal bus B5.

プリントヘッド制御部42は、バスB4を通してビット
マツプ書込部3Iから送られてくるイメージデータを書
き込むため、バスB5を介してIFC40から送られて
くる情報にしたがって、プリントヘッド部43でのレー
ザー露光を制御する。
The print head control unit 42 controls the laser exposure in the print head unit 43 according to the information sent from the IFC 40 via the bus B5 in order to write the image data sent from the bitmap writing unit 3I via the bus B4. Control.

データ処理装置1から送られてくる印字データ(はとん
どはコードで表される)は、データ処理部3のBM−R
AM32上に実際の印字イメージとして展開され(描画
され)、プリントエンジン4に出力される。プリントエ
ンジン4では、データ処理部3からのデータに応じてレ
ーザビームを変調して感光体上に画像を形成し、これを
記録紙に転写する。
The print data (mostly represented by a code) sent from the data processing device 1 is sent to the BM-R of the data processing section 3.
It is developed (drawn) as an actual print image on the AM 32 and output to the print engine 4. The print engine 4 modulates the laser beam according to the data from the data processing section 3 to form an image on the photoreceptor, and transfers this onto recording paper.

データ処理装置1から送られてくるデータには、印字デ
ータの他に、書式の制御やエンジンのモード設定を行う
コードも含まれる。
The data sent from the data processing device 1 includes not only print data but also codes for format control and engine mode setting.

データ処理部3では、印字データの他にこれらのプロト
コル解析も行い、プリントエンジン4に対して書式の制
御を行い、必要に応して通紙やオプションのモード変更
などの指示を出す。
The data processing unit 3 analyzes these protocols in addition to the print data, controls the format of the print engine 4, and issues instructions for paper feeding, optional mode changes, etc. as necessary.

プリントエンジン4では、上述の記録制御の他に、それ
にともなう電子写真系の制御、記録紙のタイミング制御
、さらに、他のアクセサリ−装置への通紙に同期した制
御を行う、プリントエンジン4の制御は、走査系を除い
て電子写真複写機と同様である。
In addition to the above-mentioned recording control, the print engine 4 also controls the electrophotographic system, controls the timing of recording paper, and performs control in synchronization with the feeding of paper to other accessory devices. is similar to an electrophotographic copying machine except for the scanning system.

第15図はビットマツプ書込部31のブロック図である
FIG. 15 is a block diagram of the bitmap writing section 31.

ピントマツプ書込部31の機能は、大別して、BM−R
AM32へのtiii機能と、プリントの際にBM−R
AM32のデータをプリントエンジン4へ出力する機能
とに分かれる。
The functions of the focus map writing section 31 can be roughly divided into BM-R
tiii function to AM32 and BM-R when printing
It is divided into a function of outputting AM32 data to the print engine 4.

BM−RAM32への描画の機能は、さらに2つに分け
られ、グラフィック描画部316により行われる線、円
、三角形などの図形描画と、フォントイメージ展開部3
11により行われるフォントデータFDの展開(演算)
とからなる、これら両者は、ビットマツプ制御部インタ
フェース317を介してビットマツプ制御部30から送
られてくるパケット(データ群)により動作するロジッ
ク部である。
The function of drawing to the BM-RAM 32 is further divided into two parts: drawing of figures such as lines, circles, and triangles performed by the graphic drawing section 316, and font image development section 3.
Expansion (calculation) of font data FD performed by 11
Both of these are logic units that operate based on packets (data groups) sent from the bitmap control unit 30 via the bitmap control unit interface 317.

すなわち、グラフィック描画部316は、パケット内の
パラメータを解析してBM−RAM32への描iを行う
、特に本実施例においては、フォントイメージ展開部3
11から送られてくる三角形Tの3つの頂点の座標デー
タDDに基づいて、塗り潰された三角形Tの描画を行う
、三角形Tの描画は、後述するように背景データとの排
他的論理和演真によって行う。
That is, the graphic drawing unit 316 analyzes the parameters in the packet and draws it on the BM-RAM 32. In particular, in this embodiment, the font image development unit 3
A filled triangle T is drawn based on the coordinate data DD of the three vertices of the triangle T sent from 11. The drawing of the triangle T is performed by exclusive OR operation with background data as described later. done by.

またその際に、予め分割された各フォントデータFDの
ブロック領域8E毎に、BM−RAM32の一部である
フォントワーク領域32bに一旦描画を行い、その後に
、描画したブロック領域BEのデータを、BM−RAM
32のビットマツプ領域32aの所定の位置に転送する
At that time, each block area 8E of each font data FD divided in advance is once drawn in the font work area 32b which is a part of the BM-RAM 32, and then the data of the drawn block area BE is BM-RAM
32 to a predetermined position in the bitmap area 32a.

また、フォントイメージ展開部311は、パケット内の
データに従ってフォント部インタフェース314を介し
てフォント部33から読み出したフォントデータFDを
、必要に応して演算した後、グラフインク描画部316
ヘパケツトとしてデータを送る。
Further, the font image development unit 311 calculates the font data FD read from the font unit 33 via the font unit interface 314 according to the data in the packet as necessary, and then converts the font data FD to the graph ink drawing unit 316.
Send data as a packet.

フォントイメージ展開部311では、後述するように、
フォントデータFDの中にベジェ曲線BCのデータがあ
る場合に、そのベジェ曲線BCを求め、そのベジェ曲線
BCと三角形Tの1つの辺SDとで囲まれた曲線図形S
を、さらに1つ又は2つ以上の三角形に分解してそれぞ
れの頂点の座標データを求める演算が行われる。
The font image development unit 311, as described later,
If the font data FD includes Bezier curve BC data, obtain the Bezier curve BC and create a curved figure S surrounded by the Bezier curve BC and one side SD of the triangle T.
is further decomposed into one or more triangles and calculations are performed to obtain coordinate data of each vertex.

すなわち、グラフィック描画部316の主な機能は、内
部が塗り潰された三角形Tをブロック領域BE毎にフォ
ントワーク領域32bに展開した後にビットマツプ領域
32aに転送することであり、フォントイメージ展開部
311の主な機能は、そのために必要なデータを高速で
演算してグラフィック描画部316へ送ることである。
That is, the main function of the graphic drawing unit 316 is to develop the triangle T whose inside is filled in in the font work area 32b for each block area BE and then transfer it to the bitmap area 32a. The main function is to calculate the necessary data at high speed and send it to the graphic drawing unit 316.

一方、プリントの際のデータ出力の機能は、プリントヘ
ッド制m部インタフェース315により行われる。すな
わち、ビットマツプ制御部30からインタフェース31
7を介して送られてくるプリント開始コードを受は取る
と、プリントエンジン4のプリントヘッド制御部42か
らバスB4を介して送られてくる同期信号に従って、B
M−RAM32のデータをプリントへンド制御部42に
出力する。
On the other hand, the data output function during printing is performed by the print head controller interface 315. That is, from the bitmap control unit 30 to the interface 31
When the print start code sent via bus B4 is received, the print start code is sent via bus B4 in accordance with the synchronization signal sent from the print head control section 42 of print engine 4 via bus B4.
Data in the M-RAM 32 is output to the print hand control section 42.

第111はフォントイメージ展開部311のブロック図
である。
No. 111 is a block diagram of the font image development section 311.

フォントイメージ展開部311は、ピントマツプll櫃
部インタフェース317から送られてくるフォント指定
コマンド、文字コード指定コマンドなどにしたがい、フ
ォント部インタフェース314を介してフォント部33
のフォントデータFDを読み込む、ビットマツプ制御部
インタフェース317から送られてくる文字の大きさ、
角度などのパラメータは、パラメータレジスタ311b
(Rg)にセットされ、フォントデータFDのベクター
量(三角形Tの頂点の座標データDD)は3つのベクタ
ーレジスタ311c、d、e (R1−R3)にセット
され、BM−RAM32上のアドレス計算に用いられる
The font image development section 311 converts the font image to the font section 33 via the font section interface 314 in accordance with the font specification command, character code specification command, etc. sent from the focus map ll library section interface 317.
The character size sent from the bitmap control unit interface 317 that reads the font data FD of
Parameters such as angle are stored in the parameter register 311b.
(Rg), the vector amount of the font data FD (coordinate data DD of the vertex of the triangle T) is set in the three vector registers 311c, d, e (R1-R3), and the address calculation on the BM-RAM 32 is performed. used.

ベクターレジスタ311c〜eに座標データDDが揃う
と、塗り潰しを行う三角形Tのグラフィックを指定する
グラフィックデータのパケットとしてグラフィック描画
部316に送られる。
When the coordinate data DD is stored in the vector registers 311c to 311e, it is sent to the graphic drawing unit 316 as a packet of graphic data specifying the graphic of the triangle T to be filled.

塗り潰しを行うための三角形Tの領域は、三角形Tの各
頂点を結ぶ線分(つまり辺SD)で囲まれるため、演算
によって求めることができる。つまり、例えば、頂点の
座標データDDに基づいて、3つの辺SDと水平方向の
各ラインとの交点を求め、それらの交点間に線分を引く
ことで塗り潰された三角形Tを描画することができる。
The area of the triangle T to be filled in is surrounded by line segments connecting the vertices of the triangle T (that is, the sides SD), and therefore can be determined by calculation. That is, for example, it is possible to draw a filled triangle T by finding the intersections of the three sides SD and each horizontal line based on the coordinate data DD of the vertices, and drawing line segments between these intersections. can.

これらの演算はグラフィック描画部316のロジック回
路により実行されるので、演算処理及び描画が高速で行
われる。
Since these calculations are executed by the logic circuit of the graphic drawing unit 316, calculation processing and drawing are performed at high speed.

演算部311aにおいては、ベジェ曲線BCのデータに
基づいて近似した三角形のそれぞれの頂点の座標データ
DDが、演算によって求められる(第12図参照)、こ
れについては後で詳述する。
In the calculation unit 311a, coordinate data DD of each vertex of the triangle approximated based on the data of the Bezier curve BC is calculated by calculation (see FIG. 12), which will be described in detail later.

第8図及び第9図はフォントデータFDIをBM−RA
M32に展開して描画する様子を示した図、第10図は
BM−RAM32に描画されたフォントパターンFPI
を示す図である。
Figures 8 and 9 show the font data FDI as BM-RA.
Figure 10 shows the font pattern FPI drawn on the BM-RAM32.
FIG.

第1図及び第2図をも参照して、フォント部33のフォ
ントデータFDIが、フォント部インタフェース314
を介してフォントイメージ展開部311に読み込まれ、
そこで必要な演算などが行われた後に、グラフィック描
画部316に送られてBM−RAM32上に展開され又
は描画される。
Referring also to FIGS. 1 and 2, font data FDI of the font unit 33 is transferred to the font unit interface 314.
is read into the font image development unit 311 via
After necessary calculations are performed there, the data is sent to the graphic drawing unit 316 and expanded or drawn on the BM-RAM 32.

まず、コマンドデータDCIによって白ベクターである
ことが指定され、カーソルが、現在の位置である点PO
から座標データDD1で示される描画開始点PIまで、
描画することな(移動する。
First, command data DCI specifies that it is a white vector, and the cursor moves to the point PO, which is the current position.
to the drawing start point PI indicated by the coordinate data DD1,
Don't draw (move).

次に、コマンドデータDC2によって、黒ベクターであ
ること、及びブロック領域BHの開始が指定され、次の
サイズデータDSL、2によって示されるサイズのブロ
ック領域BEIがフォントワーク領域32b上に確保さ
れる。
Next, the command data DC2 specifies that it is a black vector and the start of the block area BH, and a block area BEI of the size indicated by the next size data DSL,2 is secured on the font work area 32b.

次に、座標データDDI〜3がベクターレジスタ311
c〜eにセットされ、演算が行われた後、第8図(a)
に示すように、これらの3つの点P1〜3を頂点とする
塗り潰された三角形T1がフォントワーク領域32bの
ブロック領域BEI内に描画(展開)される。
Next, the coordinate data DDI~3 is stored in the vector register 311.
After setting c to e and performing calculations, Fig. 8(a)
As shown in FIG. 3, a filled triangle T1 having these three points P1 to P3 as vertices is drawn (developed) within the block area BEI of the font work area 32b.

この描画の際には、三角形T1のデータと背景データと
の間で排他的論理和演算が行われ、その結果がブロック
領域BHに書き込まれる。
During this drawing, an exclusive OR operation is performed between the data of the triangle T1 and the background data, and the result is written into the block area BH.

同様にして、第8図(b)に示すように、3つの点P2
〜4を頂点とする三角形T2がブロック領域BEIに描
画される。
Similarly, as shown in FIG. 8(b), three points P2
A triangle T2 having vertices ˜4 is drawn in the block area BEI.

次に、コマンドデータDC3によって、ベジェ曲線BC
の指定が行われ、且つその終点指定フラグによって2つ
前の点P2が終点として指定される。また、現在の位置
である点P2が開始点に指定され、次の座標データDD
5.6によって制御点P5.6が指定される。
Next, by command data DC3, Bezier curve BC
is specified, and the two previous point P2 is specified as the end point by the end point designation flag. In addition, point P2, which is the current position, is specified as the starting point, and the next coordinate data DD
5.6 specifies the control point P5.6.

ベジェ曲線BCIが指定されると、ベクターレジスタ3
11cmeに格納されている座標データD02〜4が演
算部311aのワークエリア内にスタックされ、曲線図
形S1の描画のための演算処理が行われる。この演算処
理については後述する。
When Bezier curve BCI is specified, vector register 3
The coordinate data D02 to D4 stored in 11 cm are stacked in the work area of the calculation unit 311a, and calculation processing for drawing the curved figure S1 is performed. This calculation process will be described later.

曲線図形SLの描画のための演算が終了すると、そのデ
ータがグラフィック描画部316に送られ、フォントワ
ーク領域32bのブロック領域BEIに描画される。
When the calculation for drawing the curved figure SL is completed, the data is sent to the graphic drawing section 316 and drawn in the block area BEI of the font work area 32b.

曲線図形S1の描画は、三角形T1.2と同様に、背景
データとの排他的論理和演算によって書き込まれる0本
実施例においては曲線図形S1と三角形T2とは重なる
ため、第8図(C)に示すように、三角形T2の内の曲
線図形S1の部分が消去されることとなる。
Similarly to the triangle T1.2, the curved figure S1 is drawn by an exclusive OR operation with the background data. In this embodiment, the curved figure S1 and the triangle T2 overlap, so the drawing shown in FIG. As shown in the figure, the portion of the curved figure S1 within the triangle T2 is erased.

しかし、曲線図形Sと二角形Tとが重ならない場合には
、排他的論理和演算を行うと、・これらの図形は単に加
算され、したがって曲線図形Sの部分は塗り潰されて描
画されることとなる。
However, if the curved figure S and the diagonal T do not overlap, then when the exclusive OR operation is performed, these figures will simply be added, and therefore the curved figure S will be drawn filled in. Become.

このように、三角形T及び曲線図形Sをブロック領域B
Hに描画するにあたり、それらを背景データとの排他的
論理和演算によって書き込むことで、曲線図形Sの塗り
潰し又は消去を行うことができるので、簡単なロジック
回路によって高速な描画を行うことができる。
In this way, the triangle T and the curved figure S are divided into the block area B
When drawing on H, the curved figure S can be filled in or erased by writing them by exclusive OR operation with background data, so high-speed drawing can be performed with a simple logic circuit.

次のコマンドデータDC4によって、ブロック領域BE
Iの終了が指定され、描画されたブロック領域BEIは
、フォントワーク領域32bからビットマツプ領域32
a上のカーソルによって定まる所定の位置に転送される
。これとともに、演算部311a内にスタックしておい
たデータがベクターレジスタ311cmeに戻される。
By the next command data DC4, the block area BE
The end of I is specified and the drawn block area BEI is transferred from the font work area 32b to the bitmap area 32.
It is transferred to a predetermined position determined by the cursor on a. At the same time, the data stacked in the calculation unit 311a is returned to the vector register 311cme.

なお、フォントワーク領域32bの空き容量に応じて、
次のブロック領域BE2の描画の後にまとめて転送が行
われることもある。
Note that depending on the free space of the font work area 32b,
The data may be transferred all at once after drawing the next block area BE2.

そして、コマンドデータDC4によって次のブロック領
域BE2の開始が指定され、次のサイズデータDS3.
4によって示されるサイズのブロック領域BE2がフォ
ントワーク領域32b上に確保される。
Then, the start of the next block area BE2 is specified by the command data DC4, and the next size data DS3.
A block area BE2 having a size indicated by 4 is secured on the font work area 32b.

そして、第9図(a)(b)に示すように、ブロック領
域BEIと同様にしてブロック領域BE2内に三角形子
3.4が順次描画され、コマンドデータDC5によるブ
ロック領域BE2の終了の指定によって、ブロック領域
BE2がビットマツプ領域32aに転送される。これと
とも°に、フォントデータFDIの終了が宣言される。
Then, as shown in FIGS. 9(a) and 9(b), triangle elements 3.4 are sequentially drawn in the block area BE2 in the same manner as in the block area BEI, and by specifying the end of the block area BE2 using the command data DC5. , block area BE2 is transferred to the bitmap area 32a. At the same time, the end of the font data FDI is declared.

転送時におけるブロック領域BE1.2の位置関係は座
標データDDによって定まっているので、第1O図に示
すように、文字「1」のフォントパターンFPIがBM
−RAM32上に正しく描画される。
Since the positional relationship of the block area BE1.2 at the time of transfer is determined by the coordinate data DD, as shown in Figure 1O, the font pattern FPI of the character "1" is BM
- Drawing is performed correctly on the RAM 32.

第11図は他のフォントデータFD2によるフォントパ
ターンFP2をBM−RAM32に描画する様子を示し
た図である。
FIG. 11 is a diagram showing how a font pattern FP2 based on other font data FD2 is drawn on the BM-RAM 32.

第11図(b)においては、文字「忍」の図形要素FE
が5つのブロック領域BEII〜15に分割され、それ
ぞれのブロック領域BEII〜15の図形要素FEII
−15がフォントワーク領域32bの適所に描画される
。その後、それぞれのブロック領域BEII〜15がビ
ットマツプ領域32aに転送されることによって、第1
1[1(a)に示すように正しいフォントパターンFP
2が描画される。
In FIG. 11(b), the graphic element FE of the character “Shin”
is divided into five block areas BEII to 15, and the graphic element FEII of each block area BEII to 15 is divided into five block areas BEII to 15.
-15 is drawn at the appropriate location in the font work area 32b. Thereafter, each of the block areas BEII to BEII-15 is transferred to the bitmap area 32a, so that the first
1[Correct font pattern FP as shown in 1(a)
2 is drawn.

このように、1つのフォントデータFD (lっの文字
)を複数のブロック領域BHに分割しておき、各ブロッ
ク領域BE毎にフォントワーク領域32bに展開するこ
とによって、フォントワーク領域32bのメモリ容量を
小さくすることができる。また、フォントデータFDを
大きく拡大して描画する場合においても、フォントワー
ク領域32bが不足して描画不能となるおそれが減少す
る。
In this way, by dividing one font data FD (l character) into a plurality of block areas BH and developing each block area BE in the font work area 32b, the memory capacity of the font work area 32b can be reduced. can be made smaller. Further, even when drawing the font data FD after greatly enlarging it, the possibility that the font work area 32b becomes insufficient and drawing becomes impossible is reduced.

また、フォントワーク領域32bがフォントデータFD
に対して充分に大きいときは、複数のフォントデータF
DをフォントワークIM32bに展開しておき、必要に
応じてフォントワーク領域32bからビットマツプ領域
32aへ転送するようなキャッシュ化も容易に行なうこ
とができる。
In addition, the font work area 32b is the font data FD.
, multiple font data F
D can be developed into the fontwork IM 32b, and cached by transferring it from the fontwork area 32b to the bitmap area 32a as needed.

次に、曲線図形Sの描画のための演夏処理について説明
する。
Next, the summer processing for drawing the curved figure S will be explained.

第12図4!曲線図形Sを塗り潰すための処理を説明す
る図である。
Figure 12 4! 7 is a diagram illustrating a process for filling in a curved figure S. FIG.

曲線図形Sは、点pOが開始点、点P1が終点、点22
.3が制御点であるベジェ曲線BCと、線分pOplと
によって囲まれた図形である。
The curve figure S has a starting point at point pO, an ending point at point P1, and a point 22.
.. 3 is a figure surrounded by a Bezier curve BC, which is a control point, and a line segment pOpl.

ベジェ曲線BCは次式で定義される。The Bezier curve BC is defined by the following equation.

X (t)=aXt” +bxt’ +cxt+X。X (t)=aXt”+bxt’+cxt+X.

Y (t)”ayt’ +byt’ +cyt十Ye但
し、0≦t≦1 このベジェ曲118cは、次のようにして近似される。
Y (t) "ayt' + byt' + cyt + Ye, where 0≦t≦1 This Bezier piece 118c is approximated as follows.

すなわち、線分pop2、p2p3、p3plのそれぞ
れの中点を91、q2、q3とし、さらに線分q4q5
の中点を96とすると、ベジェ曲線BCは、点pO,q
6に対してql、q4で制御されるベジェ曲線BCaと
、点q6.plに対してq5.q3で制御されるベジェ
曲線BCbとに分割される。
In other words, the midpoints of line segments pop2, p2p3, and p3pl are 91, q2, and q3, and the line segments q4q5
If the midpoint of is 96, the Bezier curve BC is the point pO, q
6, a Bezier curve BCa controlled by ql and q4, and a point q6. q5 for pl. It is divided into a Bezier curve BCb controlled by q3.

このようにして得られた点(分割点)q6はベジェ曲線
BC上の点であり、点po、q6、plを頂点とする三
角形TAは、曲線図形Sの最も荒い近位図形である。
The point (division point) q6 thus obtained is a point on the Bezier curve BC, and the triangle TA having the points po, q6, and pl as vertices is the roughest proximal figure of the curved figure S.

このような分割を繰り返すことによって、ベジェ曲線B
C上の多数の分割点が得られ、且つそれらの分割点を頂
点する多数の三角形TAを得ることができる。
By repeating such division, the Bezier curve B
A large number of dividing points on C can be obtained, and a large number of triangles TA having vertices at these dividing points can be obtained.

この分割処理は、三角形TAの高さHが一定の評価値、
例えばレーザプリンタPの解像度での1ドツト分の寸法
よりも小さくなったときに終了する。
In this division process, the height H of the triangle TA is a constant evaluation value,
For example, the process ends when the size becomes smaller than the size of one dot in the resolution of the laser printer P.

曲線図形Sの描画は、これらの三角形TAを上述と同様
の手法により描画することによって行われる。
The curved figure S is drawn by drawing these triangles TA using the same method as described above.

すなわち、三角形TAの各頂点の座標データDDがベク
ターレジスタ311cmeにセットされた後、そのデー
タがグラフィック描画部316に送られ、BM−RAM
32上の所定の位置に、塗り潰された三角形TAが描画
される。このような処理が、三角形TAの高さHが評価
値よりも小さくなるまで繰り返される。
That is, after the coordinate data DD of each vertex of the triangle TA is set in the vector register 311cme, the data is sent to the graphic drawing unit 316 and stored in the BM-RAM.
A filled triangle TA is drawn at a predetermined position on 32. Such processing is repeated until the height H of the triangle TA becomes smaller than the evaluation value.

このように、曲線図形Sを三角形TAで近似するので、
曲線図形Sを描画するための演算を加減乗除のみによっ
て行うことができる。
In this way, since the curved figure S is approximated by the triangle TA,
Calculations for drawing the curved figure S can be performed only by addition, subtraction, multiplication, and division.

したがワて、演算部311aを比較的簡単なロジック回
路によって実現することができ、且つ高速な処理が可能
である。
Therefore, the arithmetic unit 311a can be realized by a relatively simple logic circuit, and high-speed processing is possible.

次に、フォントデータFDの描画処理をフローチャート
に基づいて説明する。
Next, the drawing process of the font data FD will be explained based on a flowchart.

第17図はフォントデータFDの描画処理を示すフロー
チャートである。
FIG. 17 is a flowchart showing the drawing process of font data FD.

このフローチャートによる処理の前に、描画を行う文字
の文字種及びその属性をセットするデータがビットマツ
プ制御部インタフェース317を介して送られてくる。
Before the processing according to this flowchart, data for setting the character type of the character to be drawn and its attributes is sent via the bitmap control unit interface 317.

これによって文字コードが指定される。但し、送られて
こない場合にはデフォルト値となる。
This specifies the character code. However, if it is not sent, it will be the default value.

その後、文字コードにしたがって、フォントFTのディ
レクトリ情報部MDからデータ先頭アドレスDFA及び
その他のパラメータが読み出されてセットされる。
Thereafter, the data start address DFA and other parameters are read from the directory information section MD of the font FT and set according to the character code.

このフローチャートで使用されるフラグWVECは、白
ベクターの指定時及び描画禁止指定時にrl、となる。
The flag WVEC used in this flowchart becomes rl when a white vector is specified and when drawing is prohibited.

まず、フォントデータFDの先頭アドレスからデータが
順次読み出されてビットマツプ書込部31に入力される
(ステップ#11)。
First, data is sequentially read from the first address of the font data FD and input to the bitmap writing section 31 (step #11).

入力されたデータが座標データDDであるかコマンドデ
ータDCであるかをチエツクする(ステップ#12)。
It is checked whether the input data is coordinate data DD or command data DC (step #12).

座標データDDであるときには(ステップ#12でイエ
ス)、その座標データDDをベクターレジスタ311c
meにセットする(ステップ#13)。
If the coordinate data DD is the coordinate data DD (YES in step #12), the coordinate data DD is stored in the vector register 311c.
set to me (step #13).

次に、フラグWVECが「0」のとき(ステップ#14
でイエスのとき)には、三角形Tの3つの頂点の座標デ
ータDDが揃うのを待って(ステップ#15でイエス)
、その座標データDDをグラフィック描画部316へ送
る(ステップ#16)。
Next, when the flag WVEC is "0" (step #14
(Yes in step #15), wait until the coordinate data DD of the three vertices of triangle T are aligned (Yes in step #15).
, sends the coordinate data DD to the graphic drawing section 316 (step #16).

グラフィック描画部316では、その座標データDDに
基づいて三角形子の描画を行う。
The graphic drawing unit 316 draws a triangle child based on the coordinate data DD.

フラグWVECがrIJのとき(ステップ#14でノー
のとき)には、フラグWVECを「0」にリセットしく
ステップ#17)、三角形Tの描画を行わない。
When the flag WVEC is rIJ (No in step #14), the flag WVEC is reset to "0" (step #17) and the triangle T is not drawn.

コマンドデータDCであるときには(ステップ#11で
ノー)、その内容にしたがって次のような処理を行う。
If it is command data DC (No in step #11), the following processing is performed according to its contents.

白ベクターが指定されたときには(ステップ#21でイ
エス)、ベクターレジスタ311cmeをクリアしくス
テップ#22)、フラグWVECを「1」にセットする
(ステップ#23)。
When the white vector is specified (YES in step #21), the vector register 311cme is cleared (step #22), and the flag WVEC is set to "1" (step #23).

描画禁止が指定されたときには(ステップ#3Iでイエ
ス)、フラグWVECを「1」にセットする(ステップ
#32)。
When prohibition of drawing is specified (YES in step #3I), the flag WVEC is set to "1" (step #32).

ベジェ曲線BCが指定されたときには(ステップ#41
でイエス)、制御点となる座標データDDを読み出しく
ステップ#42)、曲線図形Sの描画処理を行う(ステ
ップ#43)。
When Bezier curve BC is specified (step #41
(Yes), the coordinate data DD to be the control point is read out (Step #42), and the drawing process of the curved figure S is performed (Step #43).

ブロック領域BHの終了が指定されたときには(ステッ
プ#51でイエス)、ブロック領域BEのデータをフォ
ントワーク領域32bからビットマツプ領域32aに転
送する(ステップ#52)。
When the end of the block area BH is specified (YES in step #51), the data in the block area BE is transferred from the font work area 32b to the bitmap area 32a (step #52).

ブロック領域BEの開始が指定されたときには(ステッ
プ#61でイエス)、フ゛ロック領域BEのサイズを示
すサイズデータDSを読み出しくステップ#62)、フ
ォントワーク領域32b上にその領域を確保する(ステ
ップ#63)、なお、領域が不足した場合に、もしフォ
ントワーク領域32b中にフォントキャッシュデータな
どの不要なデータがあれば、そのデータを削除すること
により、領域を確保してもよい。
When the start of the block area BE is specified (YES in step #61), the size data DS indicating the size of the block area BE is read out (step #62), and the area is secured on the font work area 32b (step #62). 63), when the area is insufficient, if there is unnecessary data such as font cache data in the font work area 32b, the area may be secured by deleting that data.

フォントデータFDの終了が指定されたときは(ステッ
プ#71でイエス)、ベクターレジスタ311cmeを
クリアする(ステップ#72)。
When the end of the font data FD is specified (YES in step #71), the vector register 311cme is cleared (step #72).

第18図は曲線図形Sの描画処理を示すフローチャート
である。
FIG. 18 is a flowchart showing the drawing process of the curved figure S.

まず、ベジェ曲線BCの開始点、終点、及び2つの制御
点をセントする(ステップ#81)。
First, the start point, end point, and two control points of the Bezier curve BC are determined (step #81).

次に、第12図において説明したように、ベジェ曲1i
Bcを2つのベジェ曲線BCに分割しくステップ#82
)、分割点、開始点、及び終点のそれぞれの座標データ
をベクターレジスタ311c〜eにセットしくステップ
#83)、これに基づいて三角形Tを描画する(ステッ
プ#84)。
Next, as explained in FIG. 12, the Bezier piece 1i
Divide Bc into two Bezier curves BC Step #82
), the coordinate data of the dividing point, the starting point, and the ending point are set in the vector registers 311c to 311e (step #83), and a triangle T is drawn based on this (step #84).

分割点を頂点とする三角形Tの高さHが評価値よりも小
さくなるまで(ステップ#85でノーとなるまで)、ス
テップ#81以鋒の処理を繰り返す。
The processes from step #81 onward are repeated until the height H of the triangle T having the dividing point as the apex becomes smaller than the evaluation value (until the result in step #85 is NO).

描画処理を行うべき他の曲線図形Sがなくなるまで(ス
テップ#86でノーとなるまで)、上述の処理を繰り返
す。
The above-described process is repeated until there are no other curved figures S to be subjected to the drawing process (until the result in step #86 is NO).

上述の実施例によると、塗り潰された三角形Tを描画す
ることによって文字を描画するので、比較的簡単なハー
ド回路を用いて高速に処理を行うことができる。
According to the above-described embodiment, since characters are drawn by drawing the filled triangle T, processing can be performed at high speed using a relatively simple hardware circuit.

また、文字を三角形Tとベジェ曲線BCを含んだ曲線図
形Sとにより近似するので、データ量の大幅な増大を招
くことなく文字の品質を向上させることができる。
Further, since the character is approximated by the triangle T and the curved figure S including the Bezier curve BC, the quality of the character can be improved without causing a significant increase in the amount of data.

上述の実施例によると、ブロック領域BEを矩形とした
ので、ブロック領域BEの確保、データの転送などの処
理が容易である。
According to the above embodiment, since the block area BE is rectangular, processing such as securing the block area BE and transferring data is easy.

上述の実施例において、多次曲線としてベジェ曲線BC
以外の種々の曲線を用いることが可能である。フォント
データ情報部MF、ディレクトリ情報部MD、座標デー
タDD、コマンドデータDCなどの構成、及びフォント
イメージ展開部311、ビットマツプ書込部31、レー
ザプリンタPなどの構成は、上述した以外に種々変更す
ることができる。
In the above embodiment, the Bezier curve BC is used as the multidimensional curve.
It is possible to use various curves other than . The configurations of the font data information section MF, directory information section MD, coordinate data DD, command data DC, etc., as well as the configurations of the font image development section 311, bitmap writing section 31, laser printer P, etc., may be changed in various ways other than those described above. be able to.

〔発明の効果〕〔Effect of the invention〕

本発明によると、フォントパターンの展開に必要なワー
クエリアのメモリ容量が少な(で済むため、キャッシュ
化が容易であり、拡大文字の展開において有利であり、
またコスト的にも有利である。
According to the present invention, the memory capacity of the work area required for developing font patterns is small (only a small amount is required), so caching is easy, and it is advantageous in developing enlarged characters.
It is also advantageous in terms of cost.

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

第1図は本発明に係るフォントのデータ表現方式を説明
するための図、 第2図は第1図のフォントパターンのフォントデータを
示す図、 第3図はフォントデータに含まれる座標データのビット
構成を示す図、 第4図はフォントデータに含まれるコマンドデータのビ
・ット構成を示す図、 第5図はフォントの全体の構成を示す図、第6図はグロ
ーバル情報部のデータ構成を示す図、 第7図はディレクトリ情報部のデータ構成を示す図、 第8図及び第9図はフォントデータをBM−RAMに展
開して描画する梯子を示した図、第10図はBM−RA
Mに描画されたフォントパターンを示す図、 第11図は他のフォントデータによるフォントパターン
をBM−RAMに描画する様子を示した図、 第12図は曲線図形を塗り潰すための処理を説明する図
、 第13図はレーザプリンタを用いたプリントシステムの
構成を示すブロック図、 第14図はレーザプリンタの制御部の構成を示すブロッ
ク図、 第15図はビットマツプ書込部のブロック図、第16図
はフォントイメージ展開部のブロック図、 第17図はフォントデータの描画処理を示すフローチャ
ート、 第18図は曲1s図形の描画処理を示すフローチャート
である。 1・・・データ処理装置、3・−・データ処理部、4・
・・プリントエンジン、31・・・ビットマツプ書込部
、32・・・BM−RAM、32 a・・・ビットマツ
プ頭載(ビットマツプメモリ)、32b・・・フォント
ワーク領域(ワークエリア)、311・・・フォントイ
メージ展開部、311a・・・演算部、311cme・
・・ベクターレジスタ、316・・・グラフィック描画
部、PS・・・プリントシステム、T・・・三角形、B
C・・・ベジェ曲線、S・・・曲線図形、FT・・・フ
ォント(ベクターフォント)、FD・・・フォントデー
タ、BE・・・ブロック領域、DS・・・サイズデータ
(領域サイズデータL FGS・・・ブロック定義フラ
グ(領域開始データ)、FGE・・・ブロックデータ終
了フラグ(領域終了データ)。 出願人  ミノルタカメラ株式会社 代理人  弁理士  久 保 幸 雄 第1図 セルサイズ横  (X) 第2図 第3図 座標データDD 第4図 コマンドデータDC 第5図 第6図 第7図 MD  ディレクトリ↑貴報部 第11図 第12図 51ハ 第16図 3111tノ)イメーン展開部 フ濾ン)部イノタフ1−ス314へ 第18図
FIG. 1 is a diagram for explaining the font data representation method according to the present invention, FIG. 2 is a diagram showing font data of the font pattern of FIG. 1, and FIG. 3 is a diagram of bits of coordinate data included in the font data. Figure 4 is a diagram showing the bit configuration of command data included in font data, Figure 5 is a diagram showing the overall configuration of the font, and Figure 6 is a diagram showing the data configuration of the global information section. Figure 7 is a diagram showing the data structure of the directory information section, Figures 8 and 9 are diagrams showing a ladder for developing and drawing font data in BM-RAM, and Figure 10 is a diagram showing the data structure of the directory information section.
A diagram showing a font pattern drawn on M, Figure 11 a diagram showing how a font pattern based on other font data is drawn in BM-RAM, and Figure 12 explaining the process for filling in a curved figure. Figure 13 is a block diagram showing the configuration of a printing system using a laser printer, Figure 14 is a block diagram showing the configuration of the control unit of the laser printer, Figure 15 is a block diagram of the bitmap writing unit, and Figure 16 is a block diagram showing the configuration of the control unit of the laser printer. The figure is a block diagram of the font image development section, FIG. 17 is a flowchart showing font data drawing processing, and FIG. 18 is a flowchart showing music 1s figure drawing processing. DESCRIPTION OF SYMBOLS 1... Data processing device, 3... Data processing part, 4...
...Print engine, 31...Bitmap writing unit, 32...BM-RAM, 32a...Bitmap header (bitmap memory), 32b...Font work area (work area), 311... ... Font image development section, 311a... Calculation section, 311cme.
...Vector register, 316...Graphic drawing unit, PS...Print system, T...Triangle, B
C... Bezier curve, S... curve figure, FT... font (vector font), FD... font data, BE... block area, DS... size data (area size data L FGS ...Block definition flag (area start data), FGE...Block data end flag (area end data).Applicant Minolta Camera Co., Ltd. Agent Patent attorney Yukio Kubo Figure 1 Cell size horizontal (X) 2 Figure 3 Coordinate data DD Figure 4 Command data DC Figure 5 Figure 6 Figure 7 Figure 7 MD Directory ↑ Information section Figure 11 Figure 12 Figure 51C Figure 16 3111t-) Image expansion section Figure 18

Claims (2)

【特許請求の範囲】[Claims] (1)ベクターフォントからフォントデータを読み出し
てワークエリア上に展開し、ワークエリア上に展開され
たデータをビットマップメモリに転送することによって
文字を描画する方式において、 1つの文字についてのフォントデータを複数のブロック
領域に分割しておき、 前記ベクターフォントから読み出したフォントデータを
前記ブロック領域毎に前記ワークエリア上に展開し、 ワークエリア上に展開されたブロック領域毎に前記ビッ
トマップメモリに転送する ことを特徴とするベクターフォントの描画方式。
(1) In a method that draws characters by reading font data from a vector font, developing it on the work area, and transferring the data developed on the work area to bitmap memory, the font data for one character is Dividing the vector font into a plurality of block areas, developing the font data read from the vector font onto the work area for each block area, and transferring each block area developed on the work area to the bitmap memory. A vector font drawing method characterized by:
(2)1つの文字についてのフォントデータを複数のブ
ロック領域に分割し、 前記フォントデータ内に、 それぞれのブロック領域の大きさを示す領域サイズデー
タと、 それぞれのブロック領域の開始を示す領域開始データと
、 それぞれのブロック領域の終了を示す領域終了データと を含んでデータ表現する ことを特徴とするベクターフォントのデータ表現方式。
(2) Font data for one character is divided into multiple block areas, and within the font data, area size data indicating the size of each block area and area start data indicating the start of each block area are included. and area end data indicating the end of each block area.
JP2314996A 1990-11-19 1990-11-19 Plotting system and data expressing system for vector font Pending JPH04184393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2314996A JPH04184393A (en) 1990-11-19 1990-11-19 Plotting system and data expressing system for vector font

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2314996A JPH04184393A (en) 1990-11-19 1990-11-19 Plotting system and data expressing system for vector font

Publications (1)

Publication Number Publication Date
JPH04184393A true JPH04184393A (en) 1992-07-01

Family

ID=18060157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2314996A Pending JPH04184393A (en) 1990-11-19 1990-11-19 Plotting system and data expressing system for vector font

Country Status (1)

Country Link
JP (1) JPH04184393A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414448A (en) * 1991-09-03 1995-05-09 Hitachi, Ltd. Character/pattern generator and information processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5414448A (en) * 1991-09-03 1995-05-09 Hitachi, Ltd. Character/pattern generator and information processing system

Similar Documents

Publication Publication Date Title
JPH0345076A (en) Processing system for picture data
JP3382265B2 (en) Character pattern creation method and apparatus
JP2007140597A (en) Print control program
JPH09164739A (en) Printing device
JPH06328785A (en) Method and apparatus for forming character
JPS6282472A (en) Picture processing system
JPH04184393A (en) Plotting system and data expressing system for vector font
US5878194A (en) Method and device for outputting multicolor document
JPH04184392A (en) Data expression system and plotting system for vector font
JPH0877324A (en) Electronic filing device
JP4458640B2 (en) Drawing instruction apparatus, drawing instruction method thereof, and computer-readable storage medium
JPH08101675A (en) Font developing device
JPH09277616A (en) Printer and control method therefor
JP4100779B2 (en) Information processing apparatus and method, and storage medium
JP2575267B2 (en) Character processor
EP0418868A2 (en) Image processing system
JP2710131B2 (en) Character processing apparatus and method
JPH05265428A (en) Outline data converting device
JPH05143050A (en) Outline font pattern generating device
JP2833921B2 (en) Vector font transformation processing method
JP2715475B2 (en) Graphic output device
JPH0926779A (en) Graphic processor and graphic processing method
JPH0492987A (en) Image forming device
JPH09207385A (en) Color printing method and device
JPH05210717A (en) Graphic processing method