JPH01234892A - Method for displaying character string in graphic image plane - Google Patents

Method for displaying character string in graphic image plane

Info

Publication number
JPH01234892A
JPH01234892A JP63060417A JP6041788A JPH01234892A JP H01234892 A JPH01234892 A JP H01234892A JP 63060417 A JP63060417 A JP 63060417A JP 6041788 A JP6041788 A JP 6041788A JP H01234892 A JPH01234892 A JP H01234892A
Authority
JP
Japan
Prior art keywords
character
font
display
pattern
memory
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
JP63060417A
Other languages
Japanese (ja)
Inventor
Katsu Inoue
井上 克
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
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63060417A priority Critical patent/JPH01234892A/en
Publication of JPH01234892A publication Critical patent/JPH01234892A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the handling for character display by giving one optional character in a character string to be displayed the front start address of a specific area according to the corresponding character code, and transferring a font pattern from the address to a specified location in a graphic display memory. CONSTITUTION:Character front data 11 are stored in the specific area of a rewritable memory 10 in the order of character code corresponding to characters, and character font data B0l-B15l corresponding to, for example, a lower-case English letter l represent a character front 10 by 16 bytes from a start address 12. Then a one-byte front pattern read out to the high-order digits of the arithmetic register of a processor is shifted right logically by 0-7 bits to perform two-byte transfer, so that a character string beings to be displayed from an optional dot position. Consequently, the character string can be displayed freely and repeatedly during a character string display procedure and the display position is optional in a display dot area, so the handling for the character display is improved greatly.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文字列の表示方法に係り、特にグラフィック画
面と文字との同時ハードコピーに好適なグラフィック画
面に文字列を表示する方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for displaying character strings, and more particularly to a method for displaying character strings on a graphic screen suitable for simultaneous hard copying of a graphic screen and characters.

〔従来の技術〕[Conventional technology]

従来1文字列の表示は、テキスト(文字)表示メモリに
対する文字コード及び文字属性の書込みによって行われ
ていた。又、グラフィック画面への表示は、表示メモリ
に対して文字フォントを展開させる必要があり、該文字
フォントは表示の都度、フォント読出し専用メモリから
のシステムコールによって読み出されていた。
Conventionally, one character string has been displayed by writing character codes and character attributes into a text (character) display memory. Furthermore, in order to display on a graphic screen, it is necessary to develop a character font in a display memory, and each time the character font is displayed, it is read out by a system call from a font read-only memory.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

テキスト画面においては文字表示位置が、例えば8o字
×25行の如く定まっており、任意の位置に任意のスペ
ーシングで表示することは不可能であった。一方、グラ
フィック画面は、ドツト・マツプであり、任意の位置に
文字表示可能であるが、文字フォントを展開する必要が
あり1文字フォントを得るには、一般にシステムコール
を利用せねばならず、その処理にかなりの時間を要して
いた。
On a text screen, character display positions are fixed, for example, 80 characters x 25 lines, and it is impossible to display characters at arbitrary positions and with arbitrary spacing. On the other hand, the graphic screen is a dot map, and characters can be displayed in any position, but it is necessary to expand the character font, and to obtain a single character font, generally a system call must be used. It took a considerable amount of time to process.

本発明の目的は、任意の位置に文字を表示することと、
表示時間を短縮することにより、文字表示における使い
勝手の向上にある。
The purpose of the present invention is to display characters at any position,
By shortening the display time, the usability of character display is improved.

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

上記第一の目的は、文字列をフォントパタン群としてグ
ラフィック画面に展開することにより達成され、予め書
替え可能メモリの固定エリヤに展開して置いた1文字フ
ォントから表示メモリへ転写することにより第二の目的
である高速化が達成される。
The first purpose is achieved by developing a character string as a font pattern group on a graphic screen, and the second purpose is achieved by transferring a single character font, which has been developed and placed in a fixed area of a rewritable memory, to a display memory. The goal of speeding up is achieved.

〔作用〕[Effect]

文字として、8×16ドツトで文字フォントを表わす英
数仮名文字を考える。1字分の文字フォントは横8ドツ
トを1バイトのビットパタンで表わし、上から下への1
6パタンすなわち16バイトで表現される。グラフィッ
ク画面のドツト構成を640X400ドツI・とすると
、表示メモリは80X400バイ1−となり、横方向に
8ドツト移動すると1バイト、縦方向に1ドツト分移動
すると80バイト分1表示メモリアドレスを修正しなけ
ればならない。従って、グラフィック画面における文字
の表示位置を、8ドツト以内の細かさで指定することは
直接できず、表示すべき文字フォノ1−のドットパタン
を2バイトに渡ってシフトする必要がある。そのため、
処理装置の演算レジスタの上位に読出された1バイトの
フォントパタンを0〜7ビットの論理右シフト(最大桁
MSBからは0が満される)して、2バイト分の転送を
行うことにより任意のドツト位置から、文字列の表示を
開始することができる。
As characters, consider alphanumeric kana characters representing a character font of 8×16 dots. A character font for one character represents 8 horizontal dots as a 1-byte bit pattern, and 1 from top to bottom.
It is expressed in 6 patterns, or 16 bytes. If the dot configuration of the graphic screen is 640 x 400 dots I, the display memory will be 80 x 400 by 1-, and moving 8 dots horizontally will modify the display memory address by 1 byte, and moving 1 dot vertically will modify the display memory address by 80 bytes. There must be. Therefore, it is not possible to directly specify the display position of a character on the graphic screen with a precision of 8 dots or less, and it is necessary to shift the dot pattern of the character phono 1- to be displayed over 2 bytes. Therefore,
The 1-byte font pattern read into the upper part of the calculation register of the processing unit is logically shifted to the right by 0 to 7 bits (0 is filled from the maximum digit MSB) and 2 bytes are transferred. You can start displaying the string from the dot position.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図により説明する。書替
え可能メモリ旦の特定領域に1文字に対応する文字コー
ド(例えばASCI I)の順に、文字フォントデータ
11が記憶されている。例えば英小文字Qに対する文字
フォントデータBofl〜B1512は、先頭アドレス
12からの16バイトで、文字フォント20を表わして
おり、この字形は、標準的な形を修正したものである。
An embodiment of the present invention will be described below with reference to FIG. Character font data 11 is stored in a specific area of the rewritable memory in the order of character codes (for example, ASCI I) corresponding to one character. For example, the character font data Bofl-B1512 for the lowercase English letter Q represents the character font 20 using 16 bytes from the start address 12, and this character shape is a modified standard shape.

一方、画像表示を行うには、画像の画素に対応する表示
メモリ30に、画像のドツトパタンに対応するバイトデ
ータ31を書込む必要がある。
On the other hand, in order to display an image, it is necessary to write byte data 31 corresponding to the dot pattern of the image into the display memory 30 corresponding to the pixels of the image.

文字フォント20を画面の指定された絶対座標(xp+
yp)に表示する場合を考える。この時、表示すべき素
子の座標(i、j)は1表示メモリのアドレスA I 
Jに対応しており、で計算される。
The character font 20 is moved to the specified absolute coordinates of the screen (xp+
Consider the case where the image is displayed on yp). At this time, the coordinates (i, j) of the element to be displayed are 1 display memory address A I
It corresponds to J and is calculated by .

もし、絶対座標XPが8の倍数でない時は、S = X
p mod 8           ・・・(2)の
ビットシフトがフォントパタン20に対して必要となり
、例えばパタン25.27の様に変換せねばならない。
If the absolute coordinate XP is not a multiple of 8, S = X
The bit shift of p mod 8 (2) is required for the font pattern 20, and it must be converted into the pattern 25.27, for example.

これは、演算レジスタの上位バイトに元パタン20を転
送し、S  (<7) ビット論理右シフトを行えば、
ビットパタンはSビット右に移動したものが得られる。
This can be done by transferring the original pattern 20 to the upper byte of the calculation register and performing an S (<7) bit logical shift to the right.
A bit pattern shifted to the right by S bits is obtained.

この2バイトデータを、横に連続する2個の画素(i、
j)l  (i+1.j)に転送すれば、指定の絶対座
標((xp。
This 2-byte data is divided into two horizontally consecutive pixels (i,
j) l (i+1.j), the specified absolute coordinates ((xp.

yp)に文字フォントを表示する事が出来る。yp) can display the character font.

表示メモリ上の1フオントライン(1バイト)下のアド
レスは、式(1)に示す様に80バイト後となる。
The address below one font line (one byte) on the display memory is 80 bytes later, as shown in equation (1).

第4図に、文字列を任意の文字間隔で画像表示する処理
の流れを示す。表示手続き70がスタートすると、先ず
式(1)の計算処理71を行い、文字列中の1文字の文
字コードを先頭より順に読出す。その文字フォントが転
送されるべき1画素アドレスA及び、指定された文字ド
ツト間隔dにより S’  =  (S+d) mod  8      
    −(3)で与えられるシフト量を計算する処理
72を行う。
FIG. 4 shows the flow of processing for displaying a character string as an image at arbitrary character intervals. When the display procedure 70 starts, first, calculation processing 71 of equation (1) is performed, and the character code of one character in the character string is read out in order from the beginning. S' = (S+d) mod 8 by the 1-pixel address A to which the character font is to be transferred and the specified character dot spacing d
- Perform processing 72 to calculate the shift amount given by (3).

文字フォントの1ラインに対する処理75は、前述と同
様で、1字終了判定85を介して、未終了の場合には、
転送先アドレスを+80して、次のフォントデータの処
理75を戻る。処理80は、表示条件として与えられた
属性に従い、文字が表示されるべきバ(画面との論理演
算、例えばAND。
The processing 75 for one line of the character font is the same as described above, and if it is not finished, the one character end determination 85 is performed.
The transfer destination address is incremented by +80 and the process returns to the next font data processing 75. Processing 80 performs a logical operation with the bar (screen) on which characters are to be displayed, for example, AND, according to attributes given as display conditions.

OR,XOR等の演算であって、転送先の2画素分のメ
モリデータとの結合状態を定める。
It is an operation such as OR or XOR, and determines the combination state with memory data for two pixels at the transfer destination.

文字列終了判定90が否である間、次の1文字の処理7
2を繰返す。
While the character string end determination 90 is negative, process 7 for the next character.
Repeat step 2.

第3図は、本実施例の作動に必要な、システム及びプロ
グラム上の機能を流れ図的に示したものである。
FIG. 3 is a flowchart showing the system and program functions necessary for the operation of this embodiment.

第2図は、添字用の小形文字(8×8フオント)におけ
る転送データ処理の例で、書替え可能メモリ測のフォン
トデータB O52〜Btaszは、文字フォント20
であるが、フォント読出しの先頭アドレス17から転送
すると、上方に移動した文字フォント23が得られる。
Figure 2 is an example of transfer data processing for subscript small letters (8 x 8 font), and the font data B052 to Btasz in the rewritable memory size are character font 20.
However, if the font is transferred from the start address 17 of font reading, a character font 23 that has been moved upward is obtained.

これ等のフォントデータを表示メモリの指定位置に転送
すれば、表示画面工立における添字42.43の様な使
分けが可能である。
If these font data are transferred to a designated location in the display memory, they can be used selectively like subscripts 42 and 43 in display screen construction.

フォント読出しアドレスの指定は、文字列に対する属性
で行い得て、転送先画素のアドレス計算が一様単純とな
る。
The font read address can be specified using the attribute for the character string, and the address calculation of the transfer destination pixel is uniformly simple.

以上の説明には言及しなかったが、文字フォノ]〜の表
示色は、指定の色に応じて、3原色(RGB)   ノ
に対応する3画面の表示メモリに対し、順次又は同時に
フォントを転送することにより可能である。
Although not mentioned in the above explanation, the display color of the character phono is transferred sequentially or simultaneously to the display memory of the three screens corresponding to the three primary colors (RGB), depending on the specified color. This is possible by doing the following.

本実施例によれば1表示画面の任意の位置に、任意の文
字間隔で、任意のパタン又は色の文字フォントを表示す
る事ができるので、グラフィック画像と、文字とを混在
させた画面表示を極めて効果的に行うことが可能である
According to this embodiment, character fonts of any pattern or color can be displayed at any position on one display screen, at any character spacing, and therefore it is possible to display a screen displaying a mixture of graphic images and characters. This can be done very effectively.

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

本発明によれば、特定のギリシャ文字や、記号イメージ
を、書替え可能メモリの特定領域に記憶して置き、文字
列表示手続中で自由に何回でも表示することができる。
According to the present invention, a specific Greek letter or symbol image can be stored in a specific area of a rewritable memory and displayed any number of times during a character string display procedure.

又、その表示位置も、表示ドツトエリヤ内で任意である
から、文字表示における使い勝手が大幅に向上する。
Furthermore, since the display position can be arbitrary within the display dot area, the usability of character display is greatly improved.

ここで述べた文字列表示方法は、高級言語例えばBAS
ICの機械語サブルチンや、PAS(ALの手続きとし
て使用者がソフト的に作成。
The character string display method described here is based on a high-level language such as BAS.
IC machine language subroutines and PAS (AL procedures) are created by users as software.

使用できるため、従来のハード部分に手を加える必要が
全く無い。
Since it can be used, there is no need to modify conventional hardware parts.

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

第1図は本発明の一実施例の説明図、第2図は一実施例
の別の説明図、第3図、第4図は本発明におけるデータ
処理の流れ図である。 10 ・・・書替え可能メモリ、20・・・文字フォン
ト、25.27・・・フォントデータ、30・・・画碌
表示メモリ、40 ・・・表示画面、41〜43・・・
画像表示文字、50・・・準備作業、60・・・条件指
定作業、70・・・実行手続き、80・・・論理演算、
85.90・・・判定。 代理人 弁理士 小川筋力へ:”> (・・ ゛ 第10 (0,3’IQ+ (+、詰り−−−−UIM、5MM
〕宅2−図 4−1   午乙      4δ 莞3図
FIG. 1 is an explanatory diagram of one embodiment of the present invention, FIG. 2 is another explanatory diagram of the embodiment, and FIGS. 3 and 4 are flowcharts of data processing in the present invention. 10... Rewritable memory, 20... Character font, 25.27... Font data, 30... Image quality display memory, 40... Display screen, 41-43...
Image display characters, 50... Preparation work, 60... Condition specification work, 70... Execution procedure, 80... Logical operation,
85.90...Judgment. To agent and patent attorney Muscle Ogawa: ”> (...゛10th (0,3'IQ+ (+, clogged---UIM, 5MM
]House 2-Figure 4-1 Utsu 4δ Guan 3

Claims (1)

【特許請求の範囲】 1、予め文字フォントを書替え可能メモリの特定領域に
文字コード順に展開して置き、表示すべき文字列の任意
の一字に対応する文字コードから前記特定領域のフォン
ト先頭アドレスを与え、該アドレスからグラフィック表
示メモリの指定位置にフォントパタンを、転写する事を
特徴とするグラフィック画面に文字列を表示する方法。 2、第1項記載の方法において、システム起動時に文字
フォント読出し専用メモリより読出すと共に、任意の読
出し文字のフォントに適宜の修正を加え、又は未定義文
字コードに対し任意のフォントパタンを割付け、書替え
可能メモリの特定領域に展開する事を特徴とするグラフ
ィック画面に文字列を表示する方法。 3、第1項または第2項記載の方法において、フォント
パタンの転写に際し該フォントパタン自体の論理否定演
算及び又は、表示画面位置に対応する表示メモリに存在
するドットパタンとの論理演算を行う事を特徴とするグ
ラフィック画面に文字列を表示する方法。 4、第1項ないし第3項記載の方法において、フォント
パタンの転写に際しレジスタに読出された1バイトのフ
ォントパタンを最大7ビット迄の右シフトを行い、2バ
イト分のパタンとして表示メモリ位置に存在するドット
パタンとの論理和演算を行うことにより、任意の画面位
置に任意のスペーシングで表示可能とした事を特徴とす
るグラフィック画面に文字列を表示する方法。 5、第1項ないし第4項記載の方法において、書替え可
能メモリの特定領域に記憶した任意の小形文字に対する
フォントデータの読出し開始番地を先頭より移動するこ
とにより、該小形文字の表示縦位置を可変とした事を特
徴とするグラフィック画面に文字列を表示する方法。
[Claims] 1. Character fonts are developed in advance in the order of character codes in a specific area of a rewritable memory, and the font start address of the specific area is determined from the character code corresponding to any one character of the character string to be displayed. A method for displaying a character string on a graphic screen, characterized in that a font pattern is transferred from the address to a specified position in a graphic display memory. 2. In the method described in item 1, at the time of system startup, the character font is read from the read-only memory, and appropriate modifications are made to the font of any read character, or any font pattern is assigned to the undefined character code, A method of displaying character strings on a graphic screen characterized by expanding them to a specific area of rewritable memory. 3. In the method described in item 1 or 2, when transferring the font pattern, perform a logical negation operation on the font pattern itself and/or a logical operation with the dot pattern existing in the display memory corresponding to the display screen position. A method of displaying strings on a graphic screen featuring 4. In the method described in Items 1 to 3, when transferring the font pattern, the 1-byte font pattern read into the register is shifted to the right by up to 7 bits and transferred to the display memory location as a 2-byte pattern. A method for displaying character strings on a graphic screen, characterized in that character strings can be displayed at any screen position and with any spacing by performing a logical sum operation with existing dot patterns. 5. In the method described in paragraphs 1 to 4, by moving the read start address of font data for any small character stored in a specific area of the rewritable memory from the beginning, the display vertical position of the small character is changed. A method for displaying character strings on a graphic screen characterized by making them variable.
JP63060417A 1988-03-16 1988-03-16 Method for displaying character string in graphic image plane Pending JPH01234892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63060417A JPH01234892A (en) 1988-03-16 1988-03-16 Method for displaying character string in graphic image plane

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63060417A JPH01234892A (en) 1988-03-16 1988-03-16 Method for displaying character string in graphic image plane

Publications (1)

Publication Number Publication Date
JPH01234892A true JPH01234892A (en) 1989-09-20

Family

ID=13141600

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63060417A Pending JPH01234892A (en) 1988-03-16 1988-03-16 Method for displaying character string in graphic image plane

Country Status (1)

Country Link
JP (1) JPH01234892A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010197501A (en) * 2009-02-23 2010-09-09 Toray Eng Co Ltd Method for extracting external-character bitmap data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010197501A (en) * 2009-02-23 2010-09-09 Toray Eng Co Ltd Method for extracting external-character bitmap data

Similar Documents

Publication Publication Date Title
JPS61254980A (en) Character front transmission control system
JPS6216436B2 (en)
JPH01234892A (en) Method for displaying character string in graphic image plane
JP2699974B2 (en) Pattern registration method
JPH06295322A (en) Device and method for displaying segment
JP2698348B2 (en) Character processor
JPS6132676B2 (en)
JP2815158B2 (en) Character processor
JP2617190B2 (en) String output device
JP2560999B2 (en) String output method
JPH0728790A (en) Method and device for document processing
JPH0643836Y2 (en) Character output device
JPS62293286A (en) Word processor
JPH02277121A (en) Display system for rectangular frame of character
JPH0229853A (en) Document processor
JPS6012648B2 (en) Display control method
JPH0740185B2 (en) Display device
JPH081554B2 (en) Character processor
JPS62144196A (en) System of drawing segment on color display screen
JPH0950535A (en) Image data output device
JP2561000C (en)
JPH0581947B2 (en)
JPS62191919A (en) Data processor
JPH0855112A (en) Document processor
JPH07141346A (en) Character processor