JPH02166497A - Conversion system for graphic segment drawn character - Google Patents
Conversion system for graphic segment drawn characterInfo
- Publication number
- JPH02166497A JPH02166497A JP63321435A JP32143588A JPH02166497A JP H02166497 A JPH02166497 A JP H02166497A JP 63321435 A JP63321435 A JP 63321435A JP 32143588 A JP32143588 A JP 32143588A JP H02166497 A JPH02166497 A JP H02166497A
- Authority
- JP
- Japan
- Prior art keywords
- character
- line segment
- graphic
- segment drawn
- control instruction
- 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
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 40
- 230000001419 dependent effect Effects 0.000 claims abstract description 25
- 238000000034 method Methods 0.000 claims description 25
- 230000000694 effects Effects 0.000 abstract description 5
- 239000011159 matrix material Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は図形線分描画文字変換方式に関し、特に装置独
立な図形描画用制御命令列を装置依存の図形描画用制御
命令列に変換してCRT、XYプロッター、日本語プリ
ンタなどの図形出力装置へ線分描画情報として出力する
図形線分描画用制御命令列の変換方式における線分によ
り描かれる図形線分描画文字変換方式に関する。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a graphic line segment drawing character conversion method, and particularly to a method for converting a device-independent graphic drawing control command string into a device-dependent graphic drawing control command string. The present invention relates to a graphic line segment drawing character conversion system drawn by line segments in a conversion system for a graphic line segment drawing control command sequence that is output as line segment drawing information to a graphic output device such as a CRT, an XY plotter, or a Japanese printer.
(従来の技術)
従来、この種の線分により描かれる図形線分描画文字の
変換方式においては、線分描画文字の大きさが変更され
ても線分描画文字を構成する線分の太さは一定のままで
あった。(Prior art) Conventionally, in the conversion method of figure line segment drawn characters drawn by this type of line segments, even if the size of the line segment drawn characters is changed, the thickness of the line segments constituting the line segment drawn characters is changed. remained constant.
(発明が解決しようとする課題)
上述した従来の線分により描かれる図形線分描画文字変
換方式は、線分描画文字の大きさが変更されても線分描
画文字を構成する線分の太さは一定のままであるので、
線分描画文字の大きさが大きくなると線分描画文字が文
字の大きさの割には目立たないという欠点がある。(Problems to be Solved by the Invention) The above-mentioned conventional graphic line segment drawing character conversion method that is drawn using line segments does not change the thickness of the line segments that constitute the line segment drawing character even if the size of the line segment drawing character is changed. Since the value remains constant,
When the size of line segment drawn characters increases, there is a drawback that the line segment drawn characters become less noticeable compared to the size of the character.
本発明は上記に鑑みて提案されたもので、その目的は線
分描画文字の表現効果の向上をはかるため、線分描画文
字の大きさに対応した太さで線分描画文字列を装置依存
な図形描画用制御命令列の集合に変換する図形線分描画
文字変換方式を提供することにある。The present invention has been proposed in view of the above, and its purpose is to improve the expressive effect of line segment drawn characters by device-dependently drawing line segment drawn character strings with a thickness corresponding to the size of the line segment drawn characters. The object of the present invention is to provide a graphic line segment drawing character conversion method that converts a graphic line segment drawing control command sequence into a set of graphic drawing control command sequences.
(課題を解決するための手段)
本発明による図形線分描画文字変換方式は、装置独立な
図形描画用制御命令列中の線分により描かれる線分描画
文字列描画用制御命令を装置依存の線分により描かれる
線分描画文字描画用制御命令の集合に変換する図形線分
描画文字変換方式において、
変換すべき装置独立な図形描画用制御命令列が格納され
る第1の記憶手段と、
一文字単位の文字を線分に展開した場合の線分の相対F
i標値が格納されている第2の記憶手段と変換された装
置依存の図形描画用制御命令列を図形として出力する図
形出力装置と、
前記装置独立な図形描画用制御命令列を前記装置依存の
図形描画用制御命令列に変換する変換処理手段と、
前記変換処理手段から呼び出され、装置独立な線分描画
文字列描画用制御命令を前記第2の記憶手段を参照して
装置依存の線分描画文字描画用制御命令の集合に変換す
る線分描画文字変換処理手段と、
前記線分描画文字変換処理手段における線分描画文字の
大きさに応じて前記線分描画文字の太さを決定する処理
手段とを含む。(Means for Solving the Problems) A figure line segment drawing character conversion method according to the present invention converts a line segment drawing character string drawing control command drawn by a line segment in a device-independent figure drawing control command string into a device-dependent drawing control command. In a figure line segment drawing character conversion method for converting into a set of control commands for drawing line segment drawing characters drawn by line segments, a first storage means stores a device-independent figure drawing control command sequence to be converted; Relative F of a line segment when a single character is expanded into a line segment
a second storage means in which an i-standard value is stored; a graphic output device that outputs the converted device-dependent graphic drawing control command string as a graphic; and a graphic output device that outputs the device-independent graphic drawing control command string as a graphic. a conversion processing means for converting a line segment drawing character string drawing control command that is called from the conversion processing means and is device-independent into a device-dependent line segment drawing control instruction string by referring to the second storage device; a line segment drawing character conversion processing means for converting the line segment drawing character into a set of control commands for drawing the line segment drawing character; and determining the thickness of the line segment drawing character according to the size of the line segment drawing character in the line segment drawing character conversion processing means. and processing means for.
(実施例) 次に本発明の実施例について図面を参照して説明する。(Example) Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明による図形線分描画文字変換方式の一実
施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the graphic line segment drawing character conversion method according to the present invention.
第1図において、記憶手段1は、例えばコアメモリ上に
設定され、装置依存の図形描画用制御命令列に変換すべ
き装置独立な図形描画用制御命令列が格納されている。In FIG. 1, a storage means 1 is set, for example, on a core memory, and stores a device-independent graphic drawing control instruction string to be converted into a device-dependent graphic drawing control instruction string.
記憶手段2は、例えばコアメモリ上に設定され、1文字
車位の文字を線分の集合に展開した場合の線分の相対座
標値が格納されている。The storage means 2 is set, for example, on a core memory, and stores relative coordinate values of line segments when characters of one character size are developed into a set of line segments.
変換処理手段3は、記憶手段1に格納されている図形描
画用制御命令列を1命令づつ取り出し、装置依存の図形
描画用制御命令列に変換していく。The conversion processing means 3 takes out the graphic drawing control command string stored in the storage means 1 one by one and converts it into a device-dependent graphic drawing control command string.
そして、線分描画文字列描画命令を検出した時点で必要
情報をレジスタ6を介して線分描画文字変換処理手段4
へ渡す。When a line segment drawing character string drawing command is detected, the necessary information is sent to the line segment drawing character conversion processing means 4 via the register 6.
pass it on to
この情報に基づいて線分描画文字変換処理手段4は、記
憶手段2に格納されている線分の相対的座標値を参照し
て線分描画文字列描画命令を装置依存の線分描画命令の
集合に変換する。この変換結果は変換処理手段3に返却
される。Based on this information, the line segment drawing character conversion processing means 4 refers to the relative coordinate values of the line segments stored in the storage means 2 and converts the line segment drawing character string drawing command into a device-dependent line segment drawing command. Convert to a set. This conversion result is returned to the conversion processing means 3.
変換処理手段3は、すべての図形描画用制御命令の変換
処理が終わった段階で変換された装置依存の図形描画用
制御命令列を図形出力袋fi5に送る。The conversion processing means 3 sends the converted device-dependent graphic drawing control command sequence to the graphic output bag fi5 at the stage when the conversion processing of all the graphic drawing control commands is completed.
図形出力装置5は、例えばCRTで構成され、変換処理
手段3から受は収った装置依存の図形描画用制御命令列
を解読して画面上に表示する。The graphic output device 5 is constituted by, for example, a CRT, and decodes the device-dependent graphic drawing control command sequence received from the conversion processing means 3 and displays it on the screen.
以上本実施例方式の動作概要を説明したが、次に、第1
図に示す本実施例における変換処理手段3の処理手順に
ついて第2図を参照しながら説明する。ここで記憶手段
1には、第4図に示すように、線分描画文字のサイズを
もつ文字サイズ命令、線分描画文字を描くための座標値
と文字列をもつ線分描画文字列描画命令と他の図形描画
用制御命令が任意の順序で格納されており、これらの命
令の出現順序や出現回数に特に制限はないものとする、
アプリケーションプログラムなどにより作成された装置
独立の図形描画用制御命令列は記憶子I’llに格納さ
れ、その後、変換処理手段3が起動される。The outline of the operation of this embodiment method has been explained above, but next, the first
The processing procedure of the conversion processing means 3 in the illustrated embodiment will be explained with reference to FIG. 2. Here, as shown in FIG. 4, the storage means 1 includes a character size command having the size of a line segment drawing character, a line segment drawing character string drawing command having coordinate values and character strings for drawing a line segment drawing character. and other graphic drawing control instructions are stored in any order, and there are no particular restrictions on the order or number of times these instructions appear.
A device-independent graphic drawing control instruction string created by an application program or the like is stored in the memory I'll, and then the conversion processing means 3 is activated.
さて、変換処理手段3は、起動されると第2図に示す処
理を開始し、記憶手段1から1命令を入力する(SIO
)、次にすべての命令の処理が終了したか否かを判断し
く520)、すべての命令の処理が終了した場合には図
形出力装置5へ変換データを出力して(S80)、変換
処理を終了する。Now, when the conversion processing means 3 is activated, it starts the process shown in FIG. 2, and inputs one command from the storage means 1 (SIO
), then it is determined whether or not the processing of all commands has been completed (520), and if the processing of all commands has been completed, the conversion data is output to the graphic output device 5 (S80), and the conversion processing is performed. finish.
すべての命令の処理が終了していない場合には、命令種
別を判定しく530)、それが文字サイズ命令であれば
文字サイズのカレント値をワーク領域に記憶しく540
)、次の命令を読み込む処理(310)へ移る。If processing of all commands has not been completed, the command type is determined (530), and if it is a character size command, the current value of character size is stored in the work area (540).
), the process moves to reading the next instruction (310).
入力した命令種別が線分描画文字列描画命令であれば、
文字列描画座標値、カレントの文字サイズ値、文字列お
よび装置独立な座標値を装置依存な座標値に変換するた
めの変換マトリクス値をレジスタ6に設定して、線分描
画文字変換処理手段4を呼び出しく560)、次の命令
を読み込む処理(310)へ移る。If the input command type is a line segment drawing character string drawing command,
A character string drawing coordinate value, a current character size value, a character string and a conversion matrix value for converting device-independent coordinate values into device-dependent coordinate values are set in the register 6, and the line segment drawing character conversion processing means 4 560), and the process moves to reading the next instruction (310).
入力した命令種別が文字サイズ、線分描画、文字列描画
のいずれでもない場合には、その命令を装置独立な図形
描画用制御命令から装置依存の図形描画用制御命令に変
換する(370)、この変換方式は公知の種々方式が用
いられるが、ここではその説明は省略する。If the input command type is neither character size, line segment drawing, nor character string drawing, the command is converted from a device-independent figure drawing control command to a device-dependent figure drawing control command (370); Various known methods are used for this conversion method, but their explanation will be omitted here.
その後、次の命令を読み込む処理(SIO)へ移る。Thereafter, the process moves to reading the next instruction (SIO).
以上述べた処理により、装置独立な図形描画用制御命令
列は装置依存の図形描画用制御命令列に変換され、図形
出力装置に出力される。Through the processing described above, a device-independent graphic drawing control instruction string is converted into a device-dependent graphic drawing control instruction string, which is output to the graphic output device.
次に第1図の実施例における線分描画文字変換処理手段
4の処理手順について第3図の流れ図を参照して説明す
る。この変換処理は線分文字列描画命令を装置依存の図
形描画用制御命令の1つである線分描画命令の集合に変
換するものである。Next, the processing procedure of the line segment drawing character conversion processing means 4 in the embodiment shown in FIG. 1 will be explained with reference to the flowchart shown in FIG. 3. This conversion process converts a line segment character string drawing command into a set of line segment drawing commands, which are one of device-dependent figure drawing control commands.
レジスタ6を介して渡されたカレントな文字サイズが任
意に定めた基本の大きさの2の何乗倍かを求め、この値
をnとする(FIO)。The current character size passed through the register 6 is calculated as a multiple of 2 of the arbitrarily determined basic size, and this value is set as n (FIO).
次に、線分描画文字を装置に出力する場合の線分描画文
字の太さをmとし、m=2n+lよりmの値を求める(
F20)。Next, let m be the thickness of the line segment drawn character when outputting the line segment drawn character to the device, and find the value of m from m=2n+l (
F20).
その後、レジスタ6を介して渡された文字列描画座標値
、文字サイズ値、文字列および変換マトリクスと記憶手
段2に格納されている文字を線分の集合に展開した相対
座標値を基に文字列を装置依存の線分描画命令群に変換
する(F30)。After that, a character is drawn based on the character string drawing coordinate value, character size value, character string and conversion matrix passed through the register 6, and the relative coordinate value obtained by expanding the character stored in the storage means 2 into a set of line segments. The column is converted into a device-dependent line segment drawing command group (F30).
更に、線分描画文字の太さmが1か否かを判定しくF4
0)、1であれば、呼び出し元である変換処理手段3へ
復帰する6mが1でなければ、mは偶数か否かを判定し
くF50)、偶数であれば処理F30で作成した線分描
画命令群で描かれる線分群より左または下および下側に
装置の固有にもつ線の太さ分ずらして線分描画文字列を
装置依存の線分描画命令群に変換する(F70)。Furthermore, check whether the thickness m of the line drawn character is 1 or not using F4.
0), if it is 1, it returns to the conversion processing means 3 that is the calling source.If 6m is not 1, it is determined whether m is an even number or not. The line segment drawing character string is converted into a device-dependent line segment drawing command group by shifting it to the left or below the line segment group drawn by the command group by the line thickness inherent to the device (F70).
mが奇数であれば、同様な処理で右または上およびなな
め上側にずらして変換する(F60)。If m is an odd number, similar processing is performed to shift the image to the right or upward or diagonally upward (F60).
こうして処理F60またはF80により装置に描画され
る線は装置のもつ固有の線の太さだけ太くなることにな
る0次にm=m−1の処理をしくF80m処理F処理へ
移る。In this way, the line drawn on the device in process F60 or F80 is thickened by the thickness of the line inherent in the device.The process for m=m-1 of the 0th order is performed, and the process moves on to process F80m and process F.
以上の処理により装置独立な線分描画文字列描画命令を
装置依存の線分描画命令の集合としてワーク領域上に変
換する。Through the above processing, device-independent line segment drawing character string drawing commands are converted onto the work area as a set of device-dependent line segment drawing commands.
上述の処理を行うことにより、第5図(A)〜(C)の
ように線分描画文字の大きさに対応した太さで線分描画
文字列を装置依存な図形描画用制御命令列集合に変換す
ることができる。第5図(A)は基本の大きさおよび線
の太さの文字を示す、第5図(B)および(C)は大き
さが2倍、線の太さが3倍および大きさが4倍、太さが
5倍の文字をそれぞれ示している。By performing the above-mentioned processing, a device-dependent set of control command strings for drawing a line segment is created with a thickness corresponding to the size of the line segment drawing character as shown in FIGS. 5(A) to 5(C). can be converted to . Figure 5 (A) shows the characters in the basic size and line thickness; Figures 5 (B) and (C) show the characters at double size, three times the line thickness and four times the line thickness. The characters are twice as thick and five times as thick.
(発明の効果)
以上説明したように本発明は、装置独立な図形描画用制
御命令列中の線分描画文字列描画用制御命令を装置依存
な線分描画文字描画用制御命令の集合に変換する場合に
、変換される装置依存な線分描画命令群の座標値を装置
にもつ固有の線の太さ分づつ線分の上下、左右またはな
なめ上下に交互にずらした座標値をもつ線分群を線分描
画文字が計算された太さになるまで繰り返して出力する
ことにより、図形出力装置に出力される線分描画文字を
大きさの2のn乗根に比例した太さで出力することがで
きる効果がある。(Effects of the Invention) As explained above, the present invention converts line segment drawing character string drawing control commands in a device-independent figure drawing control command sequence into a set of device-dependent line segment drawing character string drawing control commands. A group of line segments whose coordinate values are obtained by shifting the coordinate values of a group of device-dependent line segment drawing commands to be converted alternately up and down, left and right, or diagonally up and down by the device-specific line thickness. By repeatedly outputting the line segment drawn character until it reaches the calculated thickness, the line segment drawn character output to the graphic output device is outputted with a thickness proportional to the nth root of 2 of the size. There is an effect that can be done.
分描画文字変換処理手段、5・・・図形出力装置、6・
・・レジスタ。Minute drawing character conversion processing means, 5...Graphic output device, 6.
··register.
Claims (1)
る線分描画文字列描画用制御命令を装置依存の線分によ
り描かれる線分描画文字描画用制御命令の集合に変換す
る図形線分描画文字変換方式において、 変換すべき装置独立な図形描画用制御命令列が格納され
る第1の記憶手段と、 一文字単位の文字を線分に展開した場合の線分の相対座
標値が格納されている第2の記憶手段と、変換された装
置依存の図形描画用制御命令列を図形として出力する図
形出力装置と、 前記装置独立な図形描画用制御命令列を前記装置依存の
図形描画用制御命令列に変換する変換処理手段と、 前記変換処理手段から呼び出され、装置独立な線分描画
文字列描画用制御命令を前記第2の記憶手段を参照して
装置依存の線分描画文字描画用制御命令の集合に変換す
る線分描画文字変換処理手段と、 前記線分描画文字変換処理手段における線分描画文字の
大きさに応じて前記線分描画文字の太さを決定する処理
手段とを含むことを特徴とする図形線分描画文字変換方
式。[Scope of Claims] A set of control commands for drawing character strings to draw line segments drawn by line segments in a device-independent string of control commands for drawing figures, and a control command for drawing character strings to draw line segments drawn by device-dependent line segments. In the figure line segment drawing character conversion method, the first storage means stores a device-independent figure drawing control command sequence to be converted, and a second storage means in which relative coordinate values are stored; a graphics output device that outputs the converted device-dependent graphics drawing control instruction string as a graphics; and a graphics output device that outputs the device-independent graphics drawing control instruction string to the device. a conversion processing means for converting into a dependent figure drawing control instruction string; a line segment drawing character conversion processing means for converting the line segment drawing character into a set of drawing control commands; A graphic line segment drawing character conversion method, comprising: a processing means for determining.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63321435A JPH02166497A (en) | 1988-12-20 | 1988-12-20 | Conversion system for graphic segment drawn character |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63321435A JPH02166497A (en) | 1988-12-20 | 1988-12-20 | Conversion system for graphic segment drawn character |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02166497A true JPH02166497A (en) | 1990-06-27 |
Family
ID=18132522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63321435A Pending JPH02166497A (en) | 1988-12-20 | 1988-12-20 | Conversion system for graphic segment drawn character |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02166497A (en) |
-
1988
- 1988-12-20 JP JP63321435A patent/JPH02166497A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4849747A (en) | Display data transfer control apparatus applicable for display unit | |
JPH05298289A (en) | Word processor | |
US4837564A (en) | Display control apparatus employing bit map method | |
JPH02166497A (en) | Conversion system for graphic segment drawn character | |
JPS62278051A (en) | Character dictionary forming method | |
JPS6212917B2 (en) | ||
JPH04301886A (en) | Display control circuit | |
JPS61148487A (en) | Expander/reducer | |
JPH0250277A (en) | Screening system for binary picture information | |
JPH0329059A (en) | Method and equipment for processing image | |
JPH02148372A (en) | System for converting segment having width | |
JPH08314429A (en) | Translucent color image forming device | |
JP2937508B2 (en) | Bitmap expansion method | |
JP2605609B2 (en) | Dot display processing device | |
JPH0643836Y2 (en) | Character output device | |
JPH07322058A (en) | Picture processor | |
JPH01149091A (en) | Conversion system for graphic marker | |
JPH0635442A (en) | Data converting device | |
JPH03246595A (en) | Character pattern generating device | |
JPH08123956A (en) | Image processing device | |
JPS62147562A (en) | Structure analysis system | |
JPH0224783A (en) | Image display device | |
JPH10124692A (en) | Plotting circuit | |
JPH0378794A (en) | Outline font processor | |
JPH06301755A (en) | Picture preparation device |