JPH06202611A - Pattern generation device - Google Patents

Pattern generation device

Info

Publication number
JPH06202611A
JPH06202611A JP4361304A JP36130492A JPH06202611A JP H06202611 A JPH06202611 A JP H06202611A JP 4361304 A JP4361304 A JP 4361304A JP 36130492 A JP36130492 A JP 36130492A JP H06202611 A JPH06202611 A JP H06202611A
Authority
JP
Japan
Prior art keywords
pattern
character
output
coordinate system
string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4361304A
Other languages
Japanese (ja)
Other versions
JP3040624B2 (en
Inventor
Hiroshi Koga
宏 古閑
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 JP4361304A priority Critical patent/JP3040624B2/en
Publication of JPH06202611A publication Critical patent/JPH06202611A/en
Application granted granted Critical
Publication of JP3040624B2 publication Critical patent/JP3040624B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To flexibly cope with even a complicated pattern output indication and to output a pattern of high quality by generating the pattern from an outline font by using a final output from indication and 2nd information indicating the pattern itself and then outputting the pattern. CONSTITUTION:After an imaginary character (string) is processed by enlargement/reduction scaling in the character width (height) direction, slanting transformation, and scale factor conversion in an x-y coordinate system space, the output position of the character (string) is determined in the x-y coordinate system space and the character (string) is rotated. Coordinate transformation generated corresponding to indications of respective parameter are put together in order to determine a final dot expansion position. The processings based upon a series of the indication of the parameters are displayed as the result of one transformation for the x-y coordinate system and an indication to a connected printer device becomes only the result of final simple coordinate transformation, so that the character (string) can be outputted in consideration of all requests indicated with the parameters by using a device font incorporated in the printer device.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はパターン発生装置に関
し、特に、例えば、ディスプレイ及びプリンタなどに対
して指示されたパターン出力位置、パターン種、パター
ン出力形態でパターン及びパターン列を出力するパター
ン発生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern generator, and more particularly to a pattern generator for outputting a pattern and a pattern string in a pattern output position, a pattern type, and a pattern output mode designated for a display and a printer. It is about.

【0002】[0002]

【従来の技術】従来のアウトラインフォントを用いたプ
リンタ装置では、アウトラインフォントを制御して、そ
のアウトラインフォントに基づいてドット展開を行い、
そのドット集合から文字の形を表現(ラスタライズ)し
ていた。
2. Description of the Related Art In a printer device using a conventional outline font, the outline font is controlled, and dot development is performed based on the outline font.
The shape of the character was expressed (rasterized) from the set of dots.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記従来
例では、アウトラインフォントに基づいた文字パターン
出力時に、出力すべき文字(列)についてCPUからの
任意角度での回転出力命令や、回転出力に加えて拡大/
縮小の指示や斜体出力指示などを組み合わせた指示に対
応するための統一的な制御が行われておらず、以下に示
すような問題があった。
However, in the above-mentioned conventional example, when outputting a character pattern based on an outline font, in addition to a rotation output command or a rotation output from the CPU at an arbitrary angle for a character (column) to be output, Expansion /
There is no unified control to deal with a combination of a reduction instruction and an italic output instruction, and there are the following problems.

【0004】(1)CPUから任意角度でフォント及び
文字列配置方向を回転させて出力指示を行った場合に
は、CPUが接続している表示装置及び印刷装置が内蔵
する高品位な文字フォント(デバイスフォント)を使用
して文字出力をすることが出来ず、CPUが要求した文
字(種)に対して、線、矩形などの図形で構成される文
字でエミュレートして出力することが必要となり、高品
位な文字パターン出力ができない。また、文字エミュレ
ート処理が必要であるために文字パターン出力速度が低
下する。
(1) When an output instruction is issued by rotating the font and character string arrangement direction from the CPU at an arbitrary angle, a high-quality character font built in a display device and a printing device connected to the CPU ( It is not possible to output characters using device fonts, and it is necessary to emulate the characters (types) requested by the CPU with characters composed of figures such as lines and rectangles and output them. , High-quality character pattern output is not possible. In addition, the character pattern output speed decreases because the character emulation process is required.

【0005】(2)CPUから任意角度での文字(列)
回転指示に加えて、拡大/縮小、斜体文字出力などの指
示したとしても、統一した文字パターン出力制御がない
ために、指示された処理のうち1つ、或いは、複数の処
理ができず、ある動作条件下では装置の使用制限を行う
必要があった。
(2) Characters (string) at an arbitrary angle from the CPU
Even if an instruction such as enlargement / reduction or italic character output is issued in addition to the rotation instruction, one or more of the instructed processing cannot be performed because there is no unified character pattern output control. It was necessary to limit the use of the device under operating conditions.

【0006】本発明は上記従来例に鑑みてなされたもの
で、より多くのパターン出力形態に柔軟に対応し、か
つ、高速に高品位にパターン出力が可能なパターン発生
方法及びその装置を提供することを目的としている。
The present invention has been made in view of the above-mentioned conventional example, and provides a pattern generating method and apparatus capable of flexibly accommodating more pattern output forms and capable of high-speed and high-quality pattern output. Is intended.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明のパターン発生装置は以下に示すような構成
からなる。即ち、外部から指示された情報に基づいて、
アウトラインフォントをドット展開してパターンを発生
して出力するパターン発生装置であって、前記情報を入
力する入力手段と、前記入力手段によって入力された情
報から、例えば、パターン出力位置や出力方向などのパ
ターンの出力形態を指示する第1の情報と、前記パター
ン自体を示す第2の情報とを分離する分離手段と、前記
第1の情報に基づいて、仮想的に前記パターンの最終出
力形態指示を生成する出力形態指示生成手段と、前記最
終出力形態指示と前記第2の情報とに基づいて、前記ア
ウトラインフォントをドット展開してパターンを発生す
るパターン発生手段と、前記パターン発生手段によって
発生された前記パターンを出力する出力手段とを有する
ことを特徴とするパターン発生装置を備える。
In order to achieve the above object, the pattern generating apparatus of the present invention has the following constitution. That is, based on the information given from the outside,
A pattern generation device for dot-expanding an outline font to generate and outputting a pattern, wherein, for example, a pattern output position, an output direction, etc. are determined from input means for inputting the information and information input by the input means. Separation means for separating the first information indicating the output form of the pattern and the second information indicating the pattern itself, and a virtual final output form instruction of the pattern based on the first information. Output form instruction generating means for generating; pattern generating means for generating a pattern by dot-developing the outline font based on the final output form instruction and the second information; and the pattern generating means. And a pattern generating device for outputting the pattern.

【0008】[0008]

【作用】以上の構成により本発明は、分離された、例え
ば、パターン出力位置や出力方向などのパターンの出力
形態を指示する第1の情報を用いて、仮想的にパターン
の最終出力形態を想定した指示を生成し、その最終出力
形態指示とパターン自体を示す第2の情報とを用いて、
アウトラインフォントからパターン発生出力を行うよう
動作する。
With the above configuration, the present invention virtually assumes the final output form of the pattern by using the first information indicating the separated output form of the pattern such as the pattern output position and the output direction. Generated instruction, and using the final output form instruction and the second information indicating the pattern itself,
Operates to generate and output patterns from outline fonts.

【0009】[0009]

【実施例】以下添付図面を参照して本発明の好適な実施
例を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described in detail below with reference to the accompanying drawings.

【0010】[装置構成の説明(図1)]図1は本発明
の代表的な実施例であるパターン発生装置1の構成を示
すブロック図である。このパターン発生装置1は、パタ
ーン発生制御部100とプリンタ部108から構成され
ており、パターン発生制御部100が外部より受信した
データに基づいて、プリンタ部108から種々のパター
ンが出力される。なお、このパターン発生装置1はプリ
ンタ部108の代わりにディスプレイ装置に接続して発
生する文字や図形などのパターンを表示させることも可
能である。
[Description of Apparatus Configuration (FIG. 1)] FIG. 1 is a block diagram showing the configuration of a pattern generating apparatus 1 which is a typical embodiment of the present invention. The pattern generation apparatus 1 is composed of a pattern generation control unit 100 and a printer unit 108, and various patterns are output from the printer unit 108 based on data received by the pattern generation control unit 100 from the outside. The pattern generation device 1 can be connected to a display device instead of the printer unit 108 to display a pattern of characters or figures generated.

【0011】図1において、101は装置全体の制御
や、入力された指示に従ってパターンを発生させる一連
の処理を行ってそのパターンをプリンタ装置に転送する
処理を実行するCPU、102はプリンタ装置との入出
力インタフェース、103はCPU101が実行する各
種処理のための作業領域として用いられるRAM、10
4はパターン発生のための種々の指示を装置外部から入
力する入力パネル、105はパターン発生のための種々
の指示や情報を外部装置(例えば、ワードプロセッサな
ど)から入力するインタフェース、106はCPU10
1が実行する種々のプログラムを格納するROM、10
7は各装置構成要素を接続するCPUバス、そして、1
08はパターンの出力を行うプリンタ部(PR)であ
る。
In FIG. 1, reference numeral 101 denotes a CPU for controlling the entire apparatus, and for executing a series of processes for generating a pattern in accordance with an input instruction and executing a process for transferring the pattern to a printer device, and 102 denotes a printer device. An input / output interface, 103 is a RAM used as a work area for various processes executed by the CPU 101, and 10
Reference numeral 4 is an input panel for inputting various instructions for pattern generation from outside the apparatus, 105 is an interface for inputting various instructions and information for pattern generation from an external device (for example, a word processor), and 106 is the CPU 10.
ROM storing various programs executed by 1
7 is a CPU bus for connecting each device component, and 1
A printer unit (PR) 08 outputs a pattern.

【0012】入力装置(キーボード、マウス)104か
らは、文字の大きさ(サイズ)、文字の修飾(太文字、
斜体文字など)、文字変倍(拡大/縮小)、文字或は文
字列の回転など文字印字属性及び形態設定の指示入力、
文字の種類(書体)設定の指示入力、開始位置、指定出
力形態の展開位置などを設定する出力位置設定及び出力
文字(文字列)の文字コード、文字数などの入力を行
う。しかし、このような種々の指示入力はインタフェー
ス105で受信する情報に基づいて、入力装置104を
用いずに自動的に入力することもできる。
From the input device (keyboard, mouse) 104, character size (size), character decoration (bold character,
Italic characters, etc., character scaling (enlargement / reduction), rotation of characters or character strings, etc.
The input of character type (typeface) setting, the start position, the output position setting of the expansion position of the designated output form, etc., and the character code of the output character (character string), the number of characters, etc. are performed. However, such various instruction inputs can be automatically input based on the information received by the interface 105 without using the input device 104.

【0013】また、ROM106には装置全体を制御す
るための制御プログラム110の他に、入力指示された
各種パラメータなどを解析する解析処理プログラム11
1、各パラメータで指定された設定出力属性及び形態、
出力位置などに基づきフォントをどのようにドット展開
するかを指示する命令を生成するパラメータ処理プログ
ラム112、パラメータ処理プログラム112で生成さ
れた命令に加えてさらにパラメータで指示された回転角
で文字(列)を回転させた時どのようにドット展開がな
されるかを指示する命令を生成する出力形態展開プログ
ラム113、これら生成された命令、入力文字コード、
フォント情報に基づいてプリンタ部108に対する出力
制御命令を生成する出力制御命令変換プログラム114
が格納されている。
In addition to the control program 110 for controlling the entire apparatus, the ROM 106 also has an analysis processing program 11 for analyzing various input parameters.
1. Setting output attribute and form specified by each parameter,
In addition to the command generated by the parameter processing program 112 and the parameter processing program 112 that generates a command for instructing how to develop a dot based on the output position, characters (strings) ) Output form expansion program 113 for generating an instruction for instructing how dot expansion is performed, these generated instructions, input character code,
Output control command conversion program 114 for generating an output control command for the printer unit 108 based on the font information
Is stored.

【0014】さらにプリンタ部108には高品位でパタ
ーン出力を行うためのフォント(デバイスフォント)が
内蔵されており、入出力インタフェース102を介して
パターン発生制御部100から送られてくる出力制御命
令に基づいて、そのフォントが読み出され処理されて出
力される。
Further, the printer unit 108 has a built-in font (device font) for performing high-quality pattern output, and an output control command sent from the pattern generation control unit 100 via the input / output interface 102 is used. Based on this, the font is read, processed and output.

【0015】[パターン出力制御処理(図2〜図4)]
次に上記構成のパターン発生装置が実行するパターン出
力制御処理について、図2に示すフローチャートと、図
3〜図4に示す出力例を参照して説明する。なお、この
処理ではパターン発生装置1に与えられたパターン出力
のための指示をパターン発生制御部100で解析処理
し、プリンタ部108に内蔵したデバイスフォントを用
いて文字などのパターン出力を行うものとする。
[Pattern output control processing (FIGS. 2 to 4)]
Next, the pattern output control processing executed by the pattern generating apparatus having the above configuration will be described with reference to the flowchart shown in FIG. 2 and the output examples shown in FIGS. In this process, the pattern generation control unit 100 analyzes the pattern output instruction given to the pattern generation device 1 and outputs a pattern such as a character using a device font built in the printer unit 108. To do.

【0016】まずステップS1では、出力書体(明朝
体、ゴシック体、教科書体など)の文字種入力を行う。
ステップS2では入力された文字種の情報をRAM10
3に確保されたフォント情報データ記憶領域414に格
納され、以降の処理に備える。さらに、ステップS3で
は文字出力位置、文字出力スタイル(斜字体、普通体、
縦書き、横書きなど)、出力形態(文字変倍(文字パタ
ーンの縦横比変更)、文字(列)の回転)などの各種パ
ラメータの入力、文字(列)に対応する文字コード、文
字数などを入力する。
First, in step S1, the character type of an output typeface (Mincho typeface, Gothic typeface, text typeface type, etc.) is input.
In step S2, the input character type information is stored in the RAM 10
3 is stored in the font information data storage area 414 secured in No. 3 and prepared for the subsequent processing. Further, in step S3, the character output position, character output style (italic, normal,
Input of various parameters such as vertical writing, horizontal writing, etc., output form (character scaling (changing aspect ratio of character pattern), rotation of character (column)), character code corresponding to character (column), number of characters, etc. To do.

【0017】次にステップS4では、ステップS1〜S
3の処理において入力された各種パラメータと文字デー
タ(文字コード、文字数など)を区別し分類する。ここ
で、文字データであるとして区別されたデータに関して
は、処理はステップS13に進み、RAM103に確保
された文字データ記憶領域413にそのデータを格納
し、以降の処理に備える。また、パラメータであると区
別されたデータに関しては、処理はステップS5に進ん
で、そのパラメータ解析を行う。
Next, in step S4, steps S1 to S
Various parameters input in the processing of 3 and character data (character code, number of characters, etc.) are distinguished and classified. Here, with respect to the data distinguished as the character data, the process proceeds to step S13, and the data is stored in the character data storage area 413 secured in the RAM 103 to prepare for the subsequent processes. Further, for the data discriminated as parameters, the process proceeds to step S5 to analyze the parameters.

【0018】言い換えると、本実施例のパターン出力制
御処理の基本的な考え方とは、パターン出力のために必
要な入力情報を、制御パラメータと文字コードとフォン
ト情報とに分離し、まず、制御パラメータに関する情報
のみを以下に説明する座標系を導入することによって処
理し、その後、文字コードやフォント情報をマージして
最終的なパターン出力制御命令を生成することである。
In other words, the basic idea of the pattern output control processing of this embodiment is that the input information required for pattern output is separated into control parameters, character codes, and font information. Information is processed by introducing the coordinate system described below, and then the character code and font information are merged to generate the final pattern output control command.

【0019】ステップS6ではステップS5でなされた
パラメータ解析の結果に基づいて、そのパラメータを文
字出力位置、文字出力スタイル、出力形態の指示に関す
るパラメータと、その他の指示(例えば、文字サイズ、
文字の太さなど)に関するパラメータとに分離する。こ
こで、その他の指示に関するものとして分離されたパラ
メータについては処理はステップS12において、その
指示に従う印字文字属性処理を施す。さて、文字出力位
置、文字出力スタイル、出力形態指示に関するものとし
て分離されたパラメータについてはステップS7に進ん
で、ステップS7以降順に各設定項目ごとの処理を施
す。
In step S6, based on the result of the parameter analysis performed in step S5, the parameter is set to a parameter relating to a character output position, a character output style, an output form instruction, and other instructions (for example, character size,
Parameters such as character thickness). Here, with respect to the parameters separated as those relating to other instructions, the processing is performed in step S12, the print character attribute processing according to the instructions. Now, with respect to the parameters separated as the character output position, the character output style, and the output form instruction, the process proceeds to step S7, and the processing for each setting item is sequentially performed from step S7.

【0020】さて、ステップS7〜S11の処理では実
際の文字コードやフォントデータを用いることなく、仮
想的なデータについて、与えられたパラメータに基づい
た処理を行い、最終的にプリンタ部108から出力され
るプリンタ用紙を想定して定義した座標系空間(X−Y
座標系)にその仮想的なデータがどのように座標変換さ
れて出力されるのかを求める。
In the processing of steps S7 to S11, the virtual character data is processed based on the given parameters without using the actual character code or font data, and finally output from the printer unit 108. Coordinate system space (XY)
The coordinate system) is used to find out how the virtual data is coordinate-converted and output.

【0021】ステップS7では、横書き/縦書き文字、
斜体文字、普通文字などの出力スタイルの設定を行う。
この出力スタイル指示に対する処理は、図3を参照して
説明する。
In step S7, horizontal writing / vertical writing characters,
Set the output style such as italic and plain characters.
The process for this output style instruction will be described with reference to FIG.

【0022】図3(a)及び図3(b)は、ある仮想的
な文字(列)(ここでは、“A”、“ABCD…”とす
る)を横書き、普通文字として、そのままドット展開を
した場合のパターンを示している。このパターンの各ド
ット位置決定のために、各文字の左下端を原点とし、横
方向にx軸、縦方向にy軸をもつ座標系(x−y座標
系)を用いる。
In FIGS. 3 (a) and 3 (b), a certain virtual character (column) (here, "A", "ABCD ...") is horizontally written, and dot expansion is performed as it is as a normal character. The pattern in the case of doing is shown. In order to determine each dot position of this pattern, a coordinate system (x-y coordinate system) having the x-axis in the horizontal direction and the y-axis in the vertical direction with the lower left corner of each character as the origin is used.

【0023】さて、ここでパラメータに“横書き斜体”
の指示がなされていた場合には、図3(a)及び図3
(b)に示されているパターンに対して、座標変換を施
し、そのパターンを斜交座標系に展開することにより、
図3(c)及び図3(d)に示すような斜体文字が表現
される。この変換処理はx−y座標系におけるドット位
置に斜体角度(θ)を考慮して、座標位置を求めること
によって実現できる。
Now, the parameter is "horizontal writing italic"
3A and FIG.
By subjecting the pattern shown in (b) to coordinate conversion and developing the pattern in an oblique coordinate system,
Italic characters as shown in FIGS. 3C and 3D are expressed. This conversion process can be realized by obtaining the coordinate position by considering the italic angle (θ) in the dot position in the xy coordinate system.

【0024】さらに、パラメータに“縦書き斜体”の指
示がなされていた場合には、図3(a)及び図3(b)
に示されているパターンに対して、座標変換(x軸方向
への平行移動と座標原点を中心とする90°回転移動)
を施し、そのパターンを斜交座標系に展開することによ
り、図3(e)及び図3(f)に示すような斜体文字が
表現される。
Further, when the parameter indicates "vertical writing italic", FIG. 3 (a) and FIG. 3 (b).
Coordinate conversion (parallel movement in the x-axis direction and 90 degree rotation movement around the coordinate origin) for the pattern shown in
Is applied and the pattern is developed in an oblique coordinate system, so that italic characters as shown in FIGS. 3E and 3F are expressed.

【0025】このようにステップS7では、図3に示し
たように、各文字の文字幅(x)や文字高(y)を規定
する座標系(x−y座標系)を用いて、その文字幅
(x)と文字高(y)を指示されたパラメータに従っ
て、斜体文字、横書き/縦書き文字を表現するようにド
ットパターンを変更する。
As described above, in step S7, as shown in FIG. 3, the character width (x) and the character height (y) of each character are defined using the coordinate system (xy coordinate system). The dot pattern is changed so that the italic character and the horizontal writing / vertical writing character are expressed according to the specified parameters of the width (x) and the character height (y).

【0026】次にステップS8ではパラメータで指定さ
れた値に基づいて、文字変倍の処理を行う。これは、文
字幅(x)及び文字高(y)を設定された文字高/文字
幅比に基づいて変更する処理のことである。
Next, in step S8, character scaling processing is performed based on the value designated by the parameter. This is a process of changing the character width (x) and the character height (y) based on the set character height / character width ratio.

【0027】続いて、ステップS9ではパラメータで指
定された値に基づいて、文字の回転処理を行う。ステッ
プS10ではさらにパラメータで指定された値に基づい
て、文字列の回転処理を行う。これは、パターン出力位
置を規定するX−Y座標系において、ステップS7にお
いて処理された出力スタイルの文字パターンをパラメー
タによって与えられた角度(φ)で回転しビット展開す
る処理である。
Then, in step S9, a character rotation process is performed based on the value designated by the parameter. In step S10, the character string is rotated based on the value designated by the parameter. This is a process of rotating the character pattern of the output style processed in step S7 by the angle (φ) given by the parameter and performing bit expansion in the XY coordinate system that defines the pattern output position.

【0028】ここで、ステップS9〜S10における文
字或は文字列の回転処理について、図4を参照してさら
に詳しく説明する。図4は図3で示した出力スタイルを
もつ文字(列)にさらに回転処理を加えた文字パターン
を示す図である。図4(a)、図4(c)、及び、図4
(e)が文字に関する回転処理結果を、図4(b)、図
4(d)、及び、図4(f)が文字列に関する回転処理
結果をを示したものである。
The rotation process of the character or character string in steps S9 to S10 will be described in more detail with reference to FIG. FIG. 4 is a diagram showing a character pattern obtained by further rotating the character (string) having the output style shown in FIG. 4 (a), 4 (c), and 4
FIG. 4E shows the rotation processing result regarding the character, and FIG. 4B, FIG. 4D, and FIG. 4F show the rotation processing result regarding the character string.

【0029】まず、X−Y座標系という新しい座標系を
考える。これは、プリンタ部108のプリンタ用紙やデ
ィスプレイ装置の画面を想定し、その用紙或は画面のど
の位置にパターン出力を行うかを定めるために用いられ
る。ここでは、その用紙(有効出力領域)或は画面(有
効出力領域)の左上端を座標原点とし、横方向にX軸を
縦方向にY軸をとるような直交座標系とする。
First, consider a new coordinate system called an XY coordinate system. This is used for assuming the printer paper of the printer unit 108 or the screen of the display device and determining to which position on the paper or the screen the pattern is to be output. Here, the upper left end of the sheet (effective output area) or screen (effective output area) is used as the coordinate origin, and the Cartesian coordinate system has the X axis in the horizontal direction and the Y axis in the vertical direction.

【0030】図4(a)及び図4(b)は各々、文字種
として“欧文ニューヨーク”、出力スタイルとして“横
書き普通”、文字変倍として“y:x=1:1”、斜体
角度(θ)として“0°”のパラメータが指示されてい
る文字(列)パターンに対して、文字(列)の回転角度
(φ)として“反時計回りに45°”というパラメータ
が与えられた場合での文字(列)のX−Y座標空間への
展開を示したものである。この回転処理は、x−y座標
系において定められる文字幅(x)と文字高(y)と
を、出力位置を規定するX−Y座標系において展開する
と共に反時計回りに45°回転することによって実現で
きる。
4 (a) and 4 (b), the character type is "New York in New York", the output style is "horizontal writing", the character scaling is "y: x = 1: 1", and the italic angle (.theta.). In the case where a parameter of “45 ° counterclockwise” is given as the rotation angle (φ) of the character (column) for the character (column) pattern for which the parameter of “0 °” is designated as It shows the expansion of characters (columns) into the XY coordinate space. In this rotation processing, the character width (x) and the character height (y) defined in the xy coordinate system are expanded in the XY coordinate system that defines the output position, and rotated 45 ° counterclockwise. Can be realized by

【0031】図4(c)及び図4(d)は各々、図4
(a)及び図4(b)で示した文字(列)文字パターン
に与えらえているパラメータの内、出力スタイルとして
“斜体”を加え、文字(列)回転角度(φ)として“反
時計回りに90°”というパラメータが与えられた場合
のX−Y座標空間における文字(列)パターンを示した
ものである。これは、x−y座標系において定められる
文字幅(x)と文字高(y)とを、出力位置を規定する
X−Y座標系において展開すると共に反時計回りに90
°回転し、さらに文字高(y)を斜体角度(θ)に基づ
いて変換することによって実現できる。
4 (c) and 4 (d) are respectively shown in FIG.
Among the parameters given to the character (row) character pattern shown in (a) and FIG. 4 (b), "italic" is added as the output style, and "counterclockwise" is added as the character (row) rotation angle (φ). 9 shows a character (row) pattern in the XY coordinate space when a parameter of 90 ° "is given to the. This expands the character width (x) and the character height (y) defined in the xy coordinate system in the XY coordinate system that defines the output position, and rotates 90 in the counterclockwise direction.
It can be realized by rotating by ° and converting the character height (y) based on the italic angle (θ).

【0032】図4(e)及び図4(f)は各々、図4
(a)及び図4(b)で示した文字(列)文字パターン
に与えらえているパラメータの内、文字変倍のパラメー
タの値を“y:x=1:2”とし、文字(列)回転角度
(φ)として“反時計回りに135°”というパラメー
タが与えられた場合のX−Y座標空間における文字
(列)パターンを示したものである。これは、x−y座
標系において文字幅(x)と文字高(y)とを文字変倍
パラメータで設定された(y/x)比に基づいて拡大
し、出力位置を規定するX−Y座標系において共に反時
計回りに135°回転することによって実現できる。
4 (e) and 4 (f) are respectively shown in FIG.
Of the parameters given to the character (string) character pattern shown in (a) and FIG. 4 (b), the value of the parameter for character scaling is set to "y: x = 1: 2", and the character (string) is set. It shows a character (row) pattern in the XY coordinate space when a parameter of "135 ° counterclockwise" is given as the rotation angle (φ). This is to expand the character width (x) and the character height (y) in the xy coordinate system based on the (y / x) ratio set by the character scaling parameter, and define the output position in XY. This can be achieved by rotating them 135 ° counterclockwise in the coordinate system.

【0033】ステップS11では、ステップS7〜S1
0における各処理、即ち、x−y座標系での拡大/縮小
スケーリング及び回転を順次合成して、x−y座標系の
X−Y座標系に対する座標変換を実行する。
In step S11, steps S7 to S1 are performed.
0, that is, the enlargement / reduction scaling and rotation in the xy coordinate system are sequentially combined to perform coordinate conversion of the xy coordinate system with respect to the XY coordinate system.

【0034】さて、ステップS15ではステップS11
及びS12の処理結果と、RAM103の文字データ記
憶領域413とフォント情報データ記憶領域414に格
納したデータから、最終的な出力パターンを仮想的に生
成する。続いて、ステップS16では出力制御命令変換
プログラム114を用いてステップS15までの処理で
得られた処理結果に基づいてプリンタ部108での動作
が可能な出力制御命令を生成する。
Now, in step S15, step S11
A final output pattern is virtually generated from the processing results of S12 and S12 and the data stored in the character data storage area 413 and the font information data storage area 414 of the RAM 103. Then, in step S16, the output control command conversion program 114 is used to generate an output control command that enables the printer unit 108 to operate based on the processing results obtained in the processes up to step S15.

【0035】ステップS17では出力制御命令を入出力
インタフェース102を経てプリンタ部108に出力
し、最後にステップS18ではプリンタ部108が内蔵
したデバイスフォントを用いて文字パターンを出力す
る。
In step S17, the output control command is output to the printer unit 108 via the input / output interface 102, and finally in step S18, a character pattern is output using the device font built in the printer unit 108.

【0036】従って本実施例に従えば、仮想的な文字
(列)をx−y座標系空間において、文字幅(高)方向
に拡大/縮小スケーリング、斜体変換、変倍変換処理を
行った後に、X−Y座標系空間においてその文字(列)
の出力位置を決定し文字(列)の回転処理を施し、各パ
ラメータの指示に対応して発生した座標変換を順次合成
して、最終的なドット展開位置を決めることができる。
Therefore, according to the present embodiment, after the virtual character (string) is subjected to enlargement / reduction scaling, italic conversion, and scaling conversion processing in the character width (high) direction in the xy coordinate system space. , The character (string) in the XY coordinate system space
It is possible to determine the final dot development position by deciding the output position, performing the character (row) rotation processing, and sequentially synthesizing the coordinate transformations corresponding to the instructions of the respective parameters.

【0037】言い換えると、一連のパラメータの指示に
従う処理がX−Y座標系に対する1つの座標変換の結果
として表現され、接続したプリンタ装置に対する指示は
単純な最終的な座標変換の結果のみとなるので、プリン
タ装置が内蔵するデバイスフォントを用いてパラメータ
で指示されたすべての要求を考慮した文字(列)が出力
を行うことができる。
In other words, the process in accordance with the instruction of the series of parameters is expressed as the result of one coordinate transformation for the XY coordinate system, and the instruction to the connected printer device is only the result of the simple final coordinate transformation. By using the device font built in the printer device, it is possible to output a character (string) in consideration of all the requests designated by the parameters.

【0038】尚、本発明は、複数の機器から構成される
システムに適用しても良いし、1つの機器から成る装置
に適用しても良い。また、本発明は、システム或は装置
にプログラムを供給することによって達成される場合に
も適用できることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0039】[0039]

【発明の効果】以上説明したように本発明に従えば、分
離された、例えば、パターン出力位置や出力方向などの
パターンの出力形態を指示する第1の情報を用いて、仮
想的にパターンの最終出力形態を想定した指示を生成
し、その最終出力形態指示とパターン自体を示す第2の
情報とを用いてアウトラインフォントからパターン発生
出力を行うので、複雑なパターン出力指示に対しても柔
軟に対応して処理を行い、かつ高品位なパターン出力が
できるという効果がある。さらに、外部から指示された
情報を直接用いてアウトラインフォントを操作してパタ
ーン発生を行わないので、効率的なパターン発生が実現
でき、高速でのパターン発生が可能となるという効果が
ある。
As described above, according to the present invention, the first information indicating the output form of the separated pattern, such as the pattern output position and the output direction, is used to virtually generate the pattern. An instruction assuming the final output form is generated, and a pattern is generated and output from the outline font using the final output form instruction and the second information indicating the pattern itself, so that it is flexible even for complicated pattern output instructions. There is an effect that processing can be performed correspondingly and high-quality pattern output can be performed. Furthermore, since the outline font is not operated by directly using the information instructed from the outside to generate the pattern, there is an effect that the efficient pattern generation can be realized and the pattern generation can be performed at high speed.

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

【図1】本発明の代表的な実施例であるパターン発生装
置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a pattern generating apparatus that is a typical embodiment of the present invention.

【図2】指示されたパラメータに基づくパターン出力制
御処理を示すフローチャートである。
FIG. 2 is a flowchart showing a pattern output control process based on an instructed parameter.

【図3】文字及び文字列の出力形態を表す図である。FIG. 3 is a diagram showing an output form of characters and character strings.

【図4】文字及び文字列の出力形態を表す図である。FIG. 4 is a diagram showing an output form of characters and character strings.

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

1 パターン発生装置 100 パターン発生制御部 101 CPU 102 入出力インタフェース 103 RAM 104 入力装置(キーボード、マウスなど) 105 インタフェース 106 ROM 107 CPUバス 108 プリンタ部 110 制御プログラム 111 解析処理プログラム 112 パラメータ処理プログラム 113 出力形態展開プログラム 114 出力制御命令変換プログラム 1 pattern generation device 100 pattern generation control unit 101 CPU 102 input / output interface 103 RAM 104 input device (keyboard, mouse, etc.) 105 interface 106 ROM 107 CPU bus 108 printer unit 110 control program 111 analysis processing program 112 parameter processing program 113 output form Expansion program 114 Output control instruction conversion program

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/72 355 U 9192−5L G09G 5/36 8121−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI Technical display location G06F 15/72 355 U 9192-5L G09G 5/36 8121-5G

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 外部から指示された情報に基づいて、ア
ウトラインフォントをドット展開してパターンを発生し
て出力するパターン発生装置であって、 前記情報を入力する入力手段と、 前記入力手段によって入力された情報から、例えば、パ
ターン出力位置や出力方向などのパターンの出力形態を
指示する第1の情報と、前記パターン自体を示す第2の
情報とを分離する分離手段と、 前記第1の情報に基づいて、仮想的に前記パターンの最
終出力形態指示を生成する出力形態指示生成手段と、 前記最終出力形態指示と前記第2の情報とに基づいて、
前記アウトラインフォントをドット展開してパターンを
発生するパターン発生手段と、 前記パターン発生手段によって発生された前記パターン
を出力する出力手段とを有することを特徴とするパター
ン発生装置。
1. A pattern generator for dot-developing an outline font to generate a pattern based on information instructed from the outside, and outputting the pattern, the input unit inputting the information, and the input unit inputting the information. Separation means for separating the first information indicating the output form of the pattern, such as the pattern output position and the output direction, and the second information indicating the pattern itself from the generated information, and the first information. Based on the output form instruction generating means for virtually generating the final output form instruction of the pattern, and based on the final output form instruction and the second information,
A pattern generating apparatus comprising: a pattern generating means for generating a pattern by developing dots in the outline font; and an output means for outputting the pattern generated by the pattern generating means.
JP4361304A 1992-12-28 1992-12-28 Pattern generator Expired - Lifetime JP3040624B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4361304A JP3040624B2 (en) 1992-12-28 1992-12-28 Pattern generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4361304A JP3040624B2 (en) 1992-12-28 1992-12-28 Pattern generator

Publications (2)

Publication Number Publication Date
JPH06202611A true JPH06202611A (en) 1994-07-22
JP3040624B2 JP3040624B2 (en) 2000-05-15

Family

ID=18473032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4361304A Expired - Lifetime JP3040624B2 (en) 1992-12-28 1992-12-28 Pattern generator

Country Status (1)

Country Link
JP (1) JP3040624B2 (en)

Also Published As

Publication number Publication date
JP3040624B2 (en) 2000-05-15

Similar Documents

Publication Publication Date Title
EP0051857A1 (en) Method for editing document
JP3037854B2 (en) Character generation method and device
JP2845380B2 (en) Printing apparatus and control method thereof
JP3040624B2 (en) Pattern generator
JP2605022B2 (en) Graphic processing unit
JPH0934434A (en) Character generating device
JPH03288197A (en) Character processor
JP2899012B2 (en) Character processing apparatus and method
JP2815158B2 (en) Character processor
JPH09305160A (en) Character generator
JPH01229649A (en) Printing method using vector font data
JP3084817B2 (en) Character output device
JP2967861B2 (en) Output device
JP2803746B2 (en) Character processing method and apparatus
JP2737845B2 (en) Character processing method and apparatus
JP4080470B2 (en) Character pattern generator
JPH01215557A (en) Word processor
JPH05143053A (en) Word processor provided with enlarging and smoothing function
JPH03112668A (en) Printer
JPH086542A (en) Character font and method and device for pattern expansion of same
JPH05313635A (en) Image supply device
JPH10171436A (en) Data output device
JPH01217395A (en) Word processor
JP2000148734A (en) Document modifying method
JPH1063248A (en) Outline font plotter

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000128

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

Free format text: PAYMENT UNTIL: 20080303

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090303

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100303

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100303

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110303

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120303

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130303

Year of fee payment: 13

EXPY Cancellation because of completion of term