JPH02222080A - Producing/storing system for character string drawing command - Google Patents
Producing/storing system for character string drawing commandInfo
- Publication number
- JPH02222080A JPH02222080A JP4366189A JP4366189A JPH02222080A JP H02222080 A JPH02222080 A JP H02222080A JP 4366189 A JP4366189 A JP 4366189A JP 4366189 A JP4366189 A JP 4366189A JP H02222080 A JPH02222080 A JP H02222080A
- Authority
- JP
- Japan
- Prior art keywords
- character
- character code
- character string
- drawing command
- string drawing
- 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
Links
- 238000000034 method Methods 0.000 claims description 18
- 238000010586 diagram Methods 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Image Generation (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野〕
本発明は文字列描画コマンドの生成・格納方式に関し、
特にコンピュータグラフィックスシステムにおいて文字
列描画コマンドを生成してセグメント(あるまとまった
図形要素をいう)記憶域に格納する文字列描画コマンド
の生成・格納方式に関する。[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to a method for generating and storing character string drawing commands.
In particular, the present invention relates to a method for generating and storing character string drawing commands in a computer graphics system, which generates character string drawing commands and stores them in a segment (a group of graphical elements) storage areas.
従来、この種の文字列描画コマンドの生成・格納方式に
は、次のような2通りの方法があった。Conventionally, there have been two methods for generating and storing this type of character string drawing command, as follows.
まず、第1の方法は、第3図(a)に示すように、表示
指定された文字列の文字コードをそのまま文字コードと
して持つ文字列描画コマンド31を生成してセグメント
記憶域に格納する方法である。First, as shown in FIG. 3(a), the first method is to generate a character string drawing command 31 that has the character code of the character string specified for display as the character code and store it in a segment storage area. It is.
この方法で生成された文字列描画コマンド31は、オペ
レーシッンコード(以下、OPコードと略記する・)と
、表示基準点の座標値(X、 Y)と、文字コードとを
持っている。The character string drawing command 31 generated by this method has an operation code (hereinafter abbreviated as OP code), coordinate values (X, Y) of a display reference point, and a character code.
第2の方法・は、第、3図(b)に示すように、文字列
描画コマンドの生成前に表示指定された文字列の文字コ
ードを基に文字フォントバタンか格納された領域を参照
して文字コードの文字フォントパクンを得て、文字フォ
ントバタンか示す文字を始点/終点情報(始点であるか
終点であるかを示す情N)と座標値(X、Y)とからな
る複数の線分データに展開しく以下、線分展開するとい
う)、複数の線分データを持つ文字列描画コマンド32
を生成してセグメント記憶域に格納する方法である。The second method is to refer to the area where the character font button is stored based on the character code of the character string specified for display before generating the character string drawing command, as shown in Figure 3(b). , obtain the character font break of the character code, and insert the character indicating the character font slam into multiple lines consisting of start point/end point information (Information N indicating whether it is a start point or end point) and coordinate values (X, Y). Character string drawing command 32 with multiple line segment data (hereinafter referred to as line segment expansion)
This method generates and stores it in segment storage.
この方法で生成された文字列描画コマンド32は、OP
コードと、複数の線分データとを持っている。The string drawing command 32 generated in this way is
It has a code and multiple line segment data.
上述した従来の文字列描画コマンドの生成・格納方式で
は、以下に述べる欠点がある。The conventional method for generating and storing character string drawing commands described above has the following drawbacks.
まず、第1の方法では、セグメント記憶域に格納された
文字列描画コマンド31により文字列をグラフィックス
デイスプレィに表示する場合に、グラフィックスプロセ
ッサにおいて文字列描画コマンド31内の文字コードを
線分展開する処理が追加されるので、文字列の表示速度
が遅くなるという欠点がある。First, in the first method, when a character string is displayed on a graphics display using a character string drawing command 31 stored in a segment storage area, the character code in the character string drawing command 31 is expanded into line segments in the graphics processor. This has the disadvantage that the speed at which character strings are displayed becomes slower because additional processing is required.
また、第2の方法では、文字列描画コマンド32が文字
コードを持っていないので、文字列描画コマンド32が
セグメント記憶域に格納された後は問合せを行っても現
在のセグメントの内容、すなわち文字コードまでは知る
ことができず、文字列描画コマンドがセグメント記憶域
に格納された後は描画する文字列の変更等のセグメント
編集処理を簡単には行うことができないという欠点があ
る。In addition, in the second method, since the string drawing command 32 does not have a character code, even if an inquiry is made after the string drawing command 32 is stored in the segment storage area, the contents of the current segment, that is, the character The drawback is that the code cannot be known, and segment editing processing such as changing the character string to be drawn cannot be easily performed after the character string drawing command is stored in the segment storage area.
本発明の目的は、上述の点に鑑み、文字列の表示速度を
高速化できるとともに、文字列描画コマンドがセグメン
ト記憶域に格納された後でも文字コードの内容を知るこ
とができ描画する文字列の変更等のセグメント編集処理
を容易に行うことができるようにする文字列描画コマン
ドの生成・格納方式を提供することにある。In view of the above-mentioned points, an object of the present invention is to provide a character string to be drawn that can speed up the display speed of character strings, and also allows the contents of character codes to be known even after a character string drawing command is stored in a segment storage area. It is an object of the present invention to provide a method for generating and storing character string drawing commands that allows segment editing processing such as changes to be easily performed.
本発明の文字列1画コマンドの生成・格納方式は、表示
指定された文字列の文字コードを文字コード格納域に格
納する文字コード格納手段と、前記文字コードを線分デ
ータに線分展開する文字コード格納手段と、この文字コ
ード線分展開手段により線分展開された線分データと前
記文字コード格納手段により前記文字コード格納域に格
納された文字コードの位置を示す文字コード格納域指示
ポインタとを持つ文字列描画コマンドを生成するコマン
ド生成手段と、このコマンド生成手段により生成された
文字列描画コマンドをセグメント記憶域に格納するコマ
ンド格納手段とを含むホストプロセッサと、このホスト
プロセッサから文字列描画コマンドを受け取り文字コー
ド格納域指示ポインタをダミーデータとして読み飛ばし
て文字列描画コマンド内の他の情報に従って文字列を描
画する文字列描画手段を含むグラフィックスプロセッサ
とを有する。The method for generating and storing a character string one-stroke command of the present invention includes a character code storage means that stores the character code of a character string specified for display in a character code storage area, and a line segment expansion of the character code into line segment data. Character code storage means, line segment data expanded into line segments by the character code line expansion means, and a character code storage area indicating pointer indicating the position of the character code stored in the character code storage area by the character code storage means. A host processor includes a command generation means for generating a string drawing command having The graphics processor includes a character string drawing means that receives a drawing command, skips a character code storage area instruction pointer as dummy data, and draws a character string according to other information in the string drawing command.
本発明の文字列描画コマンドの生成・格納方式では、ホ
ストプロセッサの文字コード格納手段が表示指定された
文字列の文字コードを文字コード格納域に格納し、文字
コード線分展開手段が文字コードを線分データに線分展
開し、コマンド生成手段が文字コード線分展開手段によ
り線分展開された線分データと文字コード格納手段によ
り文字コード格納域に格納された文字コードの位置を示
す文字コード格納域指示ポインタとを持つ文字列描画コ
マンドを生成し、コマンド格納手段がコマンド生成手段
により生成された文字列描画コマンドをセグメント記憶
域に格納し、グラフィックスプロセッサの文字列描画手
段がホストプロセッサから文字列描画コマンドを受け取
り文字コード格納域指示ポインタをダミーデータとして
読み飛ばして文字列描画コマンド内の他の情報に従って
文字列を描画する。In the character string drawing command generation/storage method of the present invention, the character code storage means of the host processor stores the character code of the character string specified for display in the character code storage area, and the character code line segment expansion means stores the character code. A character code indicating the position of the line segment data expanded into line segment data by the command generation means and the character code stored in the character code storage area by the character code storage means. A string drawing command having a storage area instruction pointer is generated, the command storage means stores the string drawing command generated by the command generation means in the segment storage area, and the string drawing means of the graphics processor receives the string drawing command from the host processor. A character string drawing command is received, the character code storage area instruction pointer is skipped as dummy data, and a character string is drawn according to other information in the character string drawing command.
(実施例〕 次に、本発明について図面を参照して詳細に説明する。(Example〕 Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例に係る文字列描画コマンド
の生成・格納方式が適用されたコンピュータグラフィッ
クスシステムの構成を示すブロック図である。このコン
ピュータグラフィックスシステムは、ホストプロセッサ
1と、グラフィックスプロセッサ2と、グラフィックス
デイスプレィ3とから構成されている。FIG. 1 is a block diagram showing the configuration of a computer graphics system to which a method for generating and storing character string drawing commands according to an embodiment of the present invention is applied. This computer graphics system includes a host processor 1, a graphics processor 2, and a graphics display 3.
ホストプロセッサlは、セグメント記憶域10と、文字
コード格納手段11と、文字コード線分展開手段12と
、コマンド生成手段13と、コマンド格納手段14とを
含んで構成されている。The host processor 1 includes a segment storage area 10, a character code storage means 11, a character code line segment expansion means 12, a command generation means 13, and a command storage means 14.
セグメント記憶域10内には、文字コードを格納する文
字コード格納域10aが設けられている。なお、この文
字コード格納域10aは、かならずしもセグメント記憶
域10内に設けられている必要はない。A character code storage area 10a is provided within the segment storage area 10 to store character codes. Note that this character code storage area 10a does not necessarily need to be provided within the segment storage area 10.
グラフィックスプロセッサ2は、文字列描画手段21を
含んで構成されている。The graphics processor 2 includes a character string drawing means 21.
第2図は、コマンド生成手段13により生成される文字
列描画コマンド200の構成を示す図である。FIG. 2 is a diagram showing the structure of a character string drawing command 200 generated by the command generating means 13.
文字列描画コマンド200は、OPコード210と、文
字コード格納域指示ポインタ220と、複数の線分デー
タ230とから構成されている。The character string drawing command 200 is composed of an OP code 210, a character code storage area instruction pointer 220, and a plurality of line segment data 230.
文字コード格納域指示ポインタ220は、文字コード格
納手段11により文字コード格納域10aに格納された
文字コードの位置を示すポインタである。The character code storage area indication pointer 220 is a pointer that indicates the position of the character code stored in the character code storage area 10a by the character code storage means 11.
各線分データ230は、始点/終点情報と、座標値(X
、 Y)とから構成されている。始点/終点情報は、例
えば、0は始点を、1は終点をそれぞれ示す。Each line segment data 230 includes start point/end point information and coordinate values (X
, Y). In the start point/end point information, for example, 0 indicates the start point, and 1 indicates the end point.
次に、このように構成された本実施例の文字列描画コマ
ンドの生成・格納方式の動作について説明する。Next, the operation of the character string drawing command generation/storage method of this embodiment configured as described above will be explained.
コンピュータグラフィックスシステムの文字列表示機能
が呼び出され、ホストプロセッサ1に表示指定された文
字列の文字コードが入力されると、文字コード格納手段
11は、文字コードをセグメント記憶域IO内の文字コ
ード格納域10aに格納する。When the character string display function of the computer graphics system is called and the character code of the character string specified for display is input to the host processor 1, the character code storage means 11 stores the character code in the segment storage area IO. It is stored in the storage area 10a.
次に、文字コード線分展開手段12は、文字フォントバ
タンか格納された領域(図示せず)を参照して入力され
た文字コードの文字フォントバタンを得て、文字フォン
トパクンを複数の線分データに線分展開し、表示指定さ
れた文字列の各文字の線分データを生成する。Next, the character code line segment development means 12 obtains the character font button of the input character code by referring to an area (not shown) in which the character font button is stored, and converts the character font into a plurality of line segments. Expands the data to line segments and generates line segment data for each character in the string specified for display.
続いて、コマンド生成手段13は、OPコード210と
、文字コード格納手段11により文字コード格納域10
aに格納された文字コードの位置を示す文字コード格納
域指示ポインタ220と、文字コード線分展開手段12
による線分展開結果の複数の線分データ230とを持つ
文字列描画コマンド200を生成する。Subsequently, the command generation means 13 generates the OP code 210 and the character code storage area 10 using the character code storage means 11.
A character code storage area indicating pointer 220 indicating the position of the character code stored in a, and a character code line segment expansion means 12
A character string drawing command 200 having a plurality of line segment data 230 as a result of line segment expansion is generated.
コマンド生成手段13により文字列描画コマンド200
が生成されると、コマンド格納手段14は、生成された
文字列描画コマンド200をセグメント記憶域10に格
納する。Character string drawing command 200 by command generation means 13
When the character string drawing command 200 is generated, the command storage means 14 stores the generated character string drawing command 200 in the segment storage area 10.
セグメント記憶域10内が文字列描画コマンド200で
満杯になる等の契機によって、ホストプロセッサlから
セグメント記憶域10内の文字列描画コマンド200が
グラフィックスプロセッサ2に転送される。When the segment storage area 10 becomes full of character string drawing commands 200, the string drawing commands 200 in the segment storage area 10 are transferred from the host processor 1 to the graphics processor 2.
グラフィックスプロセッサ2では、文字列描画手段21
が、転送されてきた文字列描画コマンド200中の文字
コード格納域指示ポインタ220をダミーデータとして
読み飛ばし、線分データ230から文字列を表示すると
きの文字の各線分の始点および終点の座標値を決め、始
点/終点情報を参照して、OPコード210に基づいて
表示指示された文字列の各文字をグラフィックスデイス
プレィ3に描画する。In the graphics processor 2, a character string drawing means 21
However, the character code storage area instruction pointer 220 in the transferred character string drawing command 200 is skipped as dummy data, and the coordinate values of the start and end points of each line segment of the character when displaying the character string from the line segment data 230 are calculated. is determined, and each character of the character string instructed to be displayed based on the OP code 210 is drawn on the graphics display 3 with reference to the start point/end point information.
ところで、文字列描画コマンド200中の文字コード格
納域指示ポインタ220は、グラフィックスプロセッサ
2の文字列描画手段21における描画処理では読み飛ば
されるダミーデータであるが、ホストプロセッサ1では
、アプリケーションプログラム等からの間合せによって
文字列描画コマンド200より文字コード格納域tOa
内の文字コードをたどることを可能とし、描画する文字
列を変更する等のセグメント編集始線時に文字コードを
特定するために用いられる。By the way, the character code storage area instruction pointer 220 in the character string drawing command 200 is dummy data that is skipped in the drawing process in the character string drawing means 21 of the graphics processor 2, but in the host processor 1, it is read from the application program etc. Character code storage area tOa from character string drawing command 200 according to the timing.
It is used to specify the character code at the beginning of segment editing, such as when changing the character string to be drawn.
以上説明したように本発明は、ホストブロセッサにおい
て文字列描画コマンドの生成およびセグメント記憶域へ
の格納を行うときに、文字コードを文字コード格納域に
格納し、生成する文字列描画コマンドに文字コードを格
納した文字コード格納域の位置を示す文字コード格納域
指示ポインタを持たせるようにしたことにより、文字列
の表示処理を高速に行うことができるとともに、文字列
描画コマンドのセグメント記憶域への格納後にも文字コ
ードを知ることを可能として、tin!iiする文字列
の変更等のセグメントW集処理を容易に行うことができ
るようにするという効果がある。As explained above, the present invention stores a character code in a character code storage area when generating a character string drawing command in a host processor and stores it in a segment storage area, and adds characters to the generated string drawing command. By having a character code storage area instruction pointer that indicates the location of the character code storage area where the code is stored, character string display processing can be performed at high speed, and the segment storage area for character string drawing commands can be accessed. It is possible to know the character code even after storing tin! This has the effect of making it easier to perform segment W collection processing such as changing character strings.
第1図は本発明の一実施例に係る文字列描画コマンドの
生成・格納方式が適用されたコンピュータグラフィック
スシステムの構成を示すブロック図、
第2図は第1図中のコマンド生成手段により生成される
文字列描画コマンドの構成を示す図、第3図(a)およ
び第3図(b)は従来の文字列描画コマンドの生成・格
納方式において生成される文字列描画コマンドの構成を
それぞれ示す図である。
図において、
1・・・ホストプロセッサ、
2・・・グラフィックスプロセッサ、
3・・・グラフィックスデイスプレィ、10・・・セグ
メント記憶域、
10a・・文字コード格納域、
11・・・文字コード格納手段、
12・・・文字コード線分展開手段、
13・・・コマンド生成手段、
14・・・コマンド格納手段、
21・・・文字列描画手段、
200 ・・文字列描画コマンド、
210 ・ ・OPコード、
220 ・・文字コード格納域指示ポインタ、230
・・線分データである。FIG. 1 is a block diagram showing the configuration of a computer graphics system to which a method for generating and storing character string drawing commands according to an embodiment of the present invention is applied, and FIG. Figures 3(a) and 3(b) show the structure of a string drawing command generated in the conventional string drawing command generation/storage method, respectively. It is a diagram. In the figure, 1... host processor, 2... graphics processor, 3... graphics display, 10... segment storage area, 10a... character code storage area, 11... character code storage means , 12...Character code line segment expansion means, 13...Command generation means, 14...Command storage means, 21...Character string drawing means, 200...Character string drawing command, 210...OP code , 220 ...Character code storage area instruction pointer, 230
...It is line segment data.
Claims (1)
に格納する文字コード格納手段と、前記文字コードを線
分データに線分展開する文字コード線分展開手段と、こ
の文字コード線分展開手段により線分展開された線分デ
ータと前記文字コード格納手段により前記文字コード格
納域に格納された文字コードの位置を示す文字コード格
納域指示ポインタとを持つ文字列描画コマンドを生成す
るコマンド生成手段と、このコマンド生成手段により生
成された文字列描画コマンドをセグメント記憶域に格納
するコマンド格納手段とを含むホストプロセッサと、 このホストプロセッサから文字列描画コマンドを受け取
り文字コード格納域指示ポインタをダミーデータとして
読み飛ばして文字列描画コマンド内の他の情報に従って
文字列を描画する文字列描画手段を含むグラフィックス
プロセッサと を有することを特徴とする文字列描画コマンドの生成・
格納方式。[Scope of Claims] Character code storage means for storing a character code of a character string specified for display in a character code storage area; character code line segment expansion means for line segment expansion of the character code into line segment data; a character string drawing command having line segment data expanded by a character code line segment expansion means and a character code storage area instruction pointer indicating the position of the character code stored in the character code storage area by the character code storage means; a host processor comprising command generation means for generating a character string drawing command, and command storage means for storing a character string drawing command generated by the command generation means in a segment storage area; A graphics processor including a string drawing means that skips an area indication pointer as dummy data and draws a string according to other information in the string drawing command.
Storage method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4366189A JPH02222080A (en) | 1989-02-23 | 1989-02-23 | Producing/storing system for character string drawing command |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4366189A JPH02222080A (en) | 1989-02-23 | 1989-02-23 | Producing/storing system for character string drawing command |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02222080A true JPH02222080A (en) | 1990-09-04 |
Family
ID=12670037
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4366189A Pending JPH02222080A (en) | 1989-02-23 | 1989-02-23 | Producing/storing system for character string drawing command |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02222080A (en) |
-
1989
- 1989-02-23 JP JP4366189A patent/JPH02222080A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH02222080A (en) | Producing/storing system for character string drawing command | |
| US5727224A (en) | Document image processor for inserting and editing bracket symbols and associated text | |
| JP2513771B2 (en) | Multimedia display system | |
| JPH0522933B2 (en) | ||
| JPS5985532A (en) | Designating system for editing range of sentence | |
| JP2572441B2 (en) | Form-specific figure creation device | |
| JPH02110775A (en) | Graphic character data preserving system | |
| JP2536619B2 (en) | Graphic processing device | |
| JPH0334098B2 (en) | ||
| JPH0643836Y2 (en) | Character output device | |
| JPH06308939A (en) | Real time display system for graphics | |
| JPS6133567A (en) | Display method of document processor | |
| JPH077397B2 (en) | Kana-Kanji conversion method and device | |
| JPH0695642A (en) | Character / symbol pattern generator | |
| JPS59188722A (en) | character processing device | |
| JPH0497493A (en) | Marker data storing system | |
| JPS5944088A (en) | composite display device | |
| JPH0543146B2 (en) | ||
| JPH0546141A (en) | Character cache system | |
| JPS59142632A (en) | character processing device | |
| JPS60221865A (en) | Document processor | |
| JPH06102854A (en) | Image data generator | |
| JPH04258996A (en) | Plotting device | |
| JPH0556536B2 (en) | ||
| JPH03282496A (en) | character pattern generator |