JPH01156881A - Plotting method for stroke character - Google Patents

Plotting method for stroke character

Info

Publication number
JPH01156881A
JPH01156881A JP62314289A JP31428987A JPH01156881A JP H01156881 A JPH01156881 A JP H01156881A JP 62314289 A JP62314289 A JP 62314289A JP 31428987 A JP31428987 A JP 31428987A JP H01156881 A JPH01156881 A JP H01156881A
Authority
JP
Japan
Prior art keywords
mode
character
vertex
stroke
apex
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
JP62314289A
Other languages
Japanese (ja)
Inventor
Masamitsu Akatsu
赤津 正光
Yasushi Fukunaga
泰 福永
Tsutomu Kobayashi
務 小林
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering 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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP62314289A priority Critical patent/JPH01156881A/en
Publication of JPH01156881A publication Critical patent/JPH01156881A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To omit-undesired processing and to improve the efficiency of processing for a stroke character of small size by regarding no apex of the stroke character and skipping the operation to the process of the next apex in case the corresponding stroke character is smaller than prescribed size. CONSTITUTION:Another mode 4 where the operation is skipped to the next process in case a character displayed on a screen is smaller than prescribed size is used in addition to three types of modes which are given to apex data on conventional stroke characters. The apex data forming each character stores the coordinates and the mode of the relevant apex. In this respect, such an apex that requires no form of a display character even tough it is neglected is previously checked with a character smaller than the prescribed size. Then this apex is designated as the mode 4. As a result, apex processing is omitted in the mode 4 at a plotting process. Thus useless processing is omitted and therefore the processing efficiency is improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はストローク文字描画方法に関するものである。[Detailed description of the invention] [Industrial application field] The present invention relates to a stroke character drawing method.

〔従来の技術〕[Conventional technology]

グラフィックデイスプレィのストローク文字は、文字を
直線の集まりで表すもので、各直線の始点、終点を与え
てその点間を直線で結ぶように表示ドツトを定めて(直
線展開)、文字を表示する。文字を細分して直線の数を
ふやせば、それだけ曲線部分も正確に表示されるが、そ
のためにはより多くの直線展開を必要とし、処理時間が
増大する。
Stroke characters on graphic displays represent characters as a collection of straight lines, and the characters are displayed by giving the start and end points of each straight line and determining display dots to connect those points with straight lines (straight line expansion). . If characters are subdivided to increase the number of straight lines, even curved parts will be displayed more accurately, but this will require more straight lines to be developed, increasing processing time.

更に、デイスプレィ上では表示ドツトが最小の表示単位
であるから、・あまり細かくしても意味がない。
Furthermore, since the display dot is the smallest display unit on a display, there is no point in making it too fine.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のストローク文字描画処理では1表示文字サイズの
大きさに関係なく、すべての頂点座標に対し直線展開が
行われていた。しかし、文字サイズが小さい時には、各
頂点が同じ画素にマツピングされることが多くなり、又
画素に対する各頂点の誤差が大きくなるため、いびつな
文字となってくる。このような状態では全ての頂点座標
を処理しても意味がなく、処理時間だけが大きくなると
いう問題があった。
In conventional stroke character drawing processing, linear expansion is performed for all vertex coordinates, regardless of the size of one displayed character. However, when the character size is small, each vertex is often mapped to the same pixel, and the error of each vertex relative to the pixel becomes large, resulting in distorted characters. In such a state, there is no point in processing all the vertex coordinates, and there is a problem in that only the processing time increases.

本発明の目的は、小さなサイズのストローク文字に対し
て、不必要な処理を除いて処理効率を改善したストロー
ク文字描画方法を提供するにある。
An object of the present invention is to provide a stroke character drawing method that improves processing efficiency by eliminating unnecessary processing for small-sized stroke characters.

〔問題点を解決するための手段〕[Means for solving problems]

上記の目的は、従来のストローク文字の各頂点データに
与える3種のモード、すなわちモード1; 「本頂点を
始点登録」、モード2; 「始点から本頂点まで描画及
び本頂点を始点登録」、モード3; [始点から本頂点
まで描画及び本文字データ終了」の他にもう一つのモー
ド4; 「通常はモード2に同じであるが、画面上に表
示する文字サイズが所定値より小さい時には処理をスキ
ップする」を追加し、所定値より小さい文字サイズ時に
はモード4の頂点は無視して描画処理を行うことにより
達成される。
The above purpose is based on three modes given to each vertex data of conventional stroke characters: Mode 1: "Register this vertex as the starting point", Mode 2: "Draw from the starting point to the actual vertex and register this vertex as the starting point"; Mode 3: In addition to [drawing from the starting point to the main vertex and finishing the main character data], there is another mode 4: [Normally the same as mode 2, but when the character size displayed on the screen is smaller than a predetermined value, processing is performed. This is achieved by adding "skip" and performing drawing processing while ignoring the vertices in mode 4 when the character size is smaller than a predetermined value.

〔作用〕[Effect]

各文字を構成する頂点データにはその頂点の座標とモー
ドが記憶されている。そこで、石室値以下のサイズの文
字の場合、無視しても表示文字の形が要らないような頂
点を予めしらべておき、このような頂点をモード4と指
定しておけば、描画処理時にはこのモード4の頂点の処
理が省け、無駄な処理をなくすことで処理効率を同上で
きる。
Vertex data constituting each character stores the coordinates and mode of the vertex. Therefore, in the case of characters whose size is less than the stone room value, if you find in advance vertices that do not require the shape of the displayed character even if ignored, and specify such vertices as mode 4, this vertex will be used during the drawing process. Processing of vertices in mode 4 can be omitted, and processing efficiency can be improved by eliminating unnecessary processing.

〔実施例〕〔Example〕

以下、本発明を実施例により説明する。第2図はグラフ
ィックデイスプレィシステムのハードウェア構成を示す
もので中央処理装置(CP U)202及び主記憶20
1により、グラフィック図形情報がセグメントバッファ
203に格納される。
The present invention will be explained below using examples. FIG. 2 shows the hardware configuration of the graphic display system, which includes a central processing unit (CPU) 202 and a main memory 20.
1, graphic figure information is stored in the segment buffer 203.

格納された上記情報は、グラフィックデイスプレィプロ
セサ(GDP)205により、バスコントローラ204
を介して読出され、その情報が解釈されてフレームメモ
リ206上へ画像展開され、ディスプレイ207八表示
される。
The stored information is sent to the bus controller 204 by the graphic display processor (GDP) 205.
The information is interpreted and developed into an image on the frame memory 206, and displayed on the display 207.

ストローク文字データは、セグメントバッファ203に
格納されていて、文字展開用コマンドが発行された時に
ストローク文字データを参照し、各頂点モードに従い、
直線展開することにより描画される。
The stroke character data is stored in the segment buffer 203, and when a character expansion command is issued, the stroke character data is referred to and is processed according to each vertex mode.
It is drawn by linear expansion.

第3図及び第4図は、文字“GIIに対するストローク
文字構成とストローク文字データを示している。第3図
の頂点301〜316を結ぶ直線が文字“G”を構成し
、これらの頂点のデータは、第4図に示す様に16ビツ
トで構成され、X座標はビット翫14〜8で与えられ、
0〜6oの範囲の数値をとり得る。Y座標はビット−6
〜Oで与えられ、O〜80の範囲の数値をとり得る。上
記X、Y座標が実際の物理画面上の座標に、比例配分法
によりマツピングされ展開される。又、各頂点ごとに2
つのフラグa、bがあり、この2ビツトにより、4つの
頂点モードを表わす、(a、b)= (0,O)の時、
この頂点は、「始点登録する」モード1である。(a、
b)= (0,1)の時は「始点から本頂点まで描画し
、本頂点を始点登録する」モード2である。(a、b)
= (1,1)は「始点から本頂点まで描画し、本文字
処理を終了する」モード3である。従来はこの3つのモ
ードまでしかなかったが1本発明ではもう一つのモード
(a、b)= (1,O)を設定し[通常は、(a、b
)= (0,1)と同じであるが、文字サイズが小さい
時は本頂点の処理はスキップする」というモード4を追
加した。
Figures 3 and 4 show the stroke character structure and stroke character data for the character "GII." The straight line connecting the vertices 301 to 316 in Figure 3 constitutes the character "G", and the data of these vertices is composed of 16 bits as shown in Fig. 4, and the X coordinate is given by bits 14 to 8.
It can take a numerical value in the range 0 to 6o. Y coordinate is bit -6
It is given by ~O and can take a numerical value in the range O~80. The above X and Y coordinates are mapped and expanded to coordinates on the actual physical screen using a proportional distribution method. Also, 2 for each vertex
There are two flags a and b, and these two bits represent four vertex modes. When (a, b) = (0, O),
This vertex is in mode 1 of "register starting point". (a,
b) When = (0, 1), mode 2 is "draw from the starting point to the main vertex and register the main vertex as the starting point". (a, b)
= (1, 1) is mode 3 "draw from the starting point to the main vertex and end the main character processing". Conventionally, there were only these three modes, but in the present invention, another mode is set (a, b) = (1, O) [Normally, (a, b)
) = (0, 1), but when the font size is small, the processing of this vertex is skipped.'' Mode 4 has been added.

第1図は1本発明のストローク文字描画方法の一実施例
を示すフローチャートで、第2図の中央処理装置202
により実行される。同図において、まずストローク文字
を処理する前に、画面上に出力される文字サイズが所定
値(例えば16X16ドツト)より小さいかどうかを判
定して、文字サイズフラグをオン(小さいとき)又はオ
フ(太きいとき)としくステップ601〜603)、次
に文字のデータアドレスを計算する(ステップ604)
FIG. 1 is a flowchart showing an embodiment of the stroke character drawing method of the present invention.
Executed by In the figure, before processing stroke characters, it is determined whether the character size output on the screen is smaller than a predetermined value (for example, 16 x 16 dots), and the character size flag is turned on (if small) or off ( Steps 601-603), then calculate the data address of the character (step 604)
.

次に第4図に示したようなストローク文字データから、
最初の頂点の座標データとモードを読み込み(ステップ
605)、そのモードが1のときは「始点登録」して(
ステップ610)次のデータリード(ステップ605)
へ移る。モードが2゜3の時は、「始点から本頂点まで
の描画」を行い(ステップ609)、「始点登録」をし
くステップ610)、その後モードが3であれば、1文
字の処理を終了する(ステップ611)。一方モードが
4のときは1文字サイズフラグを判定しくステップ60
8)、オフなら描画するが1文字が小さくてオンの場合
は次の文字データリード(ステップ605)ヘジャンプ
し、その頂点の処理は行われない。
Next, from the stroke character data shown in Figure 4,
Read the coordinate data and mode of the first vertex (step 605), and if the mode is 1, "register the starting point" (
Step 610) Next data read (Step 605)
Move to. When the mode is 2°3, "drawing from the starting point to this vertex" is performed (step 609), and "registering the starting point" is performed (step 610), and then when the mode is 3, processing for one character is finished. (Step 611). On the other hand, when the mode is 4, the 1 character size flag is determined in step 60.
8) If it is off, it is drawn, but if one character is small and it is on, it jumps to the next character data read (step 605) and no processing is performed on that vertex.

第5図は文字ストローク処理の例を、文字1KG”につ
いて示すもので、同図(a)は文字501の各頂点デー
タをモード1〜3のみで表した(第4図のモード4; 
 (a、b) =(1,O)をすべてモード2;  (
0,1)とした場合)ときの表示面502 (5×5ド
ツト画面)を示している。但し文字501(後述の50
3も同じ)上の点につけた符号はモード番号である。一
方、第5図(b)は本発明の方法によったときを示し、
第4図のようにモード1〜4を指定している。このとき
1文字サイズが小さいとモード4の頂点は無視され、5
×5ドツトの表示面504が得られる。このように文字
サイズ(ドツト数)が小さければ、ある程度頂点をスキ
ップしながら展開しても表示される文字の形はほとんど
変わらず、スキップした頂点の処理時間が不要となる。
Fig. 5 shows an example of character stroke processing for a character 1KG'', and Fig. 5 (a) shows each vertex data of a character 501 only in modes 1 to 3 (mode 4 in Fig. 4;
(a, b) = (1, O) all in mode 2; (
A display screen 502 (5×5 dot screen) is shown in the case of 0, 1). However, the character 501 (50 described later)
(Same for 3) The code attached to the upper point is the mode number. On the other hand, FIG. 5(b) shows the method of the present invention,
Modes 1 to 4 are specified as shown in FIG. At this time, if one character size is small, the vertex of mode 4 will be ignored, and the vertices of mode 4 will be ignored.
A display surface 504 of ×5 dots is obtained. If the character size (number of dots) is small in this way, the shape of the displayed character will hardly change even if the character is expanded while skipping some vertices, and no processing time is required for the skipped vertices.

本実施例によれば、例えば16画素X16画素以内の文
字サイズのIt G 11文文字画は、第4図のデータ
指定を行うと、16個中5個がモード4に指定されてい
るから、従来の処理速度の約11/16でよい。
According to this embodiment, for example, for It G 11 text character strokes with a character size of 16 pixels x 16 pixels or less, when the data designation shown in FIG. 4 is performed, 5 out of 16 characters are designated as mode 4. The processing speed can be approximately 11/16 of the conventional processing speed.

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

本発明によれば、ストローク文字描画の処理が高速に行
われるので、マンマシン性の良いグラフィックデイスプ
レィ装置を実現することができる。
According to the present invention, since stroke character drawing processing is performed at high speed, it is possible to realize a graphic display device with good man-machine performance.

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

第1図は本発明の方法の一実施例を示すフローチャート
、第2図は本発明を適用するシステムのハードウェア構
成図、第3図及び第4図はストローク文字構成とそのデ
ータを示す図、第5図は本発明の方法による表示文字の
例を示す図である。 202・・・中央処理装置、203・・・セグメントバ
ッファ、205・・・グラフィック・デイスプレィ・プ
ロセサ。
FIG. 1 is a flowchart showing an embodiment of the method of the present invention, FIG. 2 is a hardware configuration diagram of a system to which the present invention is applied, FIGS. 3 and 4 are diagrams showing the stroke character structure and its data, FIG. 5 is a diagram showing an example of displayed characters according to the method of the present invention. 202... Central processing unit, 203... Segment buffer, 205... Graphic display processor.

Claims (1)

【特許請求の範囲】[Claims] 1、ストローク文字の頂点の各々に、その頂点が次の処
理の始点であることを示す第1モード、終点でありかつ
次の処理の始点であることを示す第2モード、あるいは
終点でかつ当該文字データは終わりであることを示す第
3モードのいずれのモードであるかを示す番号を対応ず
け、上記第1モードまたは第2モードの頂点の座標位置
からその次の上記第2モードまたは第3モードの頂点の
座標位置に至る直線を表示面で表示するための表示デー
タを作成する直線展開処理を、各頂点に対して順次実行
してストローク文字を生成するところのストローク文字
描画方法において、上記第2モードの頂点の内の一部に
上記第2モードに代わつて対応づけるための第4モード
を設けるとともに、該第4のモードを対応ずけられた頂
点を、該当するストローク文字が所定の大きさを越えて
いるときには第2モードの頂点として処理し、上記所定
の大きさより小さいときにはストローク文字の頂点とは
みなさないで次の頂点の処理へスキップするようにした
ことを特徴とするストローク文字描画方法。
1. For each vertex of a stroke character, the first mode indicates that the vertex is the start point of the next process, the second mode indicates that it is the end point and the start point of the next process, or the end point and the corresponding The character data is assigned a number indicating which mode of the third mode indicating the end, and the coordinate position of the vertex of the first mode or the second mode is assigned to the next mode of the second mode or the second mode. In a stroke character drawing method in which a stroke character is generated by sequentially executing a straight line development process for each vertex to create display data for displaying a straight line leading to the coordinate position of a vertex in three modes on a display surface, A fourth mode is provided to correspond to some of the vertices in the second mode instead of the second mode, and the vertices to which the fourth mode is associated are associated with a corresponding stroke character. If the size exceeds the above-mentioned predetermined size, the stroke is processed as a second mode vertex, and if the size is smaller than the predetermined size, it is not considered as the vertex of the stroke character and the process skips to the next vertex. How to draw characters.
JP62314289A 1987-12-14 1987-12-14 Plotting method for stroke character Pending JPH01156881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62314289A JPH01156881A (en) 1987-12-14 1987-12-14 Plotting method for stroke character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62314289A JPH01156881A (en) 1987-12-14 1987-12-14 Plotting method for stroke character

Publications (1)

Publication Number Publication Date
JPH01156881A true JPH01156881A (en) 1989-06-20

Family

ID=18051572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62314289A Pending JPH01156881A (en) 1987-12-14 1987-12-14 Plotting method for stroke character

Country Status (1)

Country Link
JP (1) JPH01156881A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6285289A (en) * 1985-10-09 1987-04-18 アルプス電気株式会社 Character display control system for user terminal
JPS62191882A (en) * 1986-02-18 1987-08-22 三菱電機株式会社 Character display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6285289A (en) * 1985-10-09 1987-04-18 アルプス電気株式会社 Character display control system for user terminal
JPS62191882A (en) * 1986-02-18 1987-08-22 三菱電機株式会社 Character display

Similar Documents

Publication Publication Date Title
KR900006042B1 (en) Display control apparatus for use in composite document processing apparatus
JPH01156881A (en) Plotting method for stroke character
JP3146771B2 (en) Font rasterizing apparatus and method
JP2000148126A (en) Image display device and method
JPH02245886A (en) Pattern plotting method, pattern processor and pattern processing system using the same processor
JPH0330076A (en) Picture drawing system for repeated pattern
JP2652435B2 (en) Image display method
JP3211591B2 (en) Image processing device
JPH0350686A (en) Graphic processing system
JP3567728B2 (en) Image processing method and apparatus
JP2787497B2 (en) Graphic drawing method and apparatus
JPH04160479A (en) Setting system for character string display position
JPH01191928A (en) Data input device
JP2988936B2 (en) 3D graphics processing unit
JP2605609B2 (en) Dot display processing device
JPH04326474A (en) Picture display device
JPH02308381A (en) Polygon painting-out system
JPH08185516A (en) Method and device for controlling image
JP2002073001A (en) Quadrangle plotting method and apparatus
JPH0535912B2 (en)
JPS63271672A (en) Graphic output controller
JPH03246590A (en) Process display device
JP2002342763A (en) Line segment plotting device
JPS62127971A (en) Clipping system in line segment drawing
JPH05242214A (en) Input system for graphic processing system