JPH0627923A - Outline font conversion processing method - Google Patents

Outline font conversion processing method

Info

Publication number
JPH0627923A
JPH0627923A JP4204514A JP20451492A JPH0627923A JP H0627923 A JPH0627923 A JP H0627923A JP 4204514 A JP4204514 A JP 4204514A JP 20451492 A JP20451492 A JP 20451492A JP H0627923 A JPH0627923 A JP H0627923A
Authority
JP
Japan
Prior art keywords
bitmap data
outline font
cache memory
stored
data
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
JP4204514A
Other languages
Japanese (ja)
Inventor
遠 ▲高▼橋
Toushi Takahashi
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP4204514A priority Critical patent/JPH0627923A/en
Publication of JPH0627923A publication Critical patent/JPH0627923A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To increase the probability of a cache hit to reduce a rasterizing process, and to improve the processing speed by utilizing bit map data stored in a cache memory for mutually symmetrical characters. CONSTITUTION:When bit map data 16-1 on an outline font 15-1 which is already converted in past are stored in the cache memory 9, no converting processing is not performed for an outline font 15-2 which is currently requested to be printed and the symmetry conversion of symmetrical bit map data 16-1 read out of the cache memory 9 is performed to obtain new bit map data 16-2. Consequently, a cache hit is made even when symmetrical characters are used in addition to a case wherein the same character is used frequently, and the printing speed can be made fast.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、アウトラインフォント
を用いてプリンタやディスプレイ等に文字や図形を表示
する際に、そのビットマップデータを得るためのアウト
ラインフォント変換処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an outline font conversion processing method for obtaining bitmap data when a character or a graphic is displayed on a printer or a display using an outline font.

【0002】[0002]

【従来の技術】プリンタやディスプレイに文字や図形を
表示する場合、高品位の印字を行なうためにアウトライ
ンフォントが使用される。図2に一般のアウトラインフ
ォント変換処理説明図を示す。アウトラインフォント
は、文字の輪郭に相当する図形をその頂点及び頂点の間
を結ぶ線分で表したデータによって構成される。実際の
印字要求があると、この図に示す元のアウトラインフォ
ントデータ1は、縮小座標変換されて印字すべき文字の
大きさの新たなアウトラインフォント2に変換処理され
る。その後、輪郭線で囲まれた部分を塗りつぶしビット
マップデータ3を得る。このビットマップデータ3が印
字ヘッドに供給され印刷されたり、あるいはディスプレ
イに供給されて文字の表示が行なわれる。
2. Description of the Related Art When displaying characters or graphics on a printer or a display, an outline font is used for high-quality printing. FIG. 2 shows an explanatory diagram of a general outline font conversion process. The outline font is composed of data representing a figure corresponding to the outline of a character by its vertices and line segments connecting the vertices. When an actual print request is made, the original outline font data 1 shown in this figure is subjected to reduced coordinate conversion and converted into a new outline font 2 having the size of the character to be printed. After that, the portion surrounded by the contour line is painted out to obtain the bitmap data 3. The bitmap data 3 is supplied to the print head for printing, or is supplied to the display for displaying characters.

【0003】図3に従来一般の印字装置ブロック図を示
す。上記のようなアウトラインフォントを使用する場
合、印字装置はこのようなブロック構成となる。この装
置は、例えばバスライン5に接続された印字データバッ
ファ6、アウトラインフォントメモリ7、演算処理部
8、キャッシュメモリ9、印字データバッファ10及び
プリンタ11から構成される。印字データバッファ6
は、上位装置から転送された文字コードや制御コード等
を格納するメモリである。アウトラインフォントメモリ
7は、印字に必要な全ての文字についてそのアウトライ
ンフォントを格納しておくメモリである。演算処理部8
は、先に図2で示したような演算処理を行い、アウトラ
インフォントデータからビットマップデータを得る演算
回路から構成される。キャッシュメモリ9は、最も最近
に変換処理されたビットマップデータを格納しておき、
頻繁に変換処理が要求される文字についてその変換処理
を省略し、文字の印字速度の高速化を図るためのメモリ
である。印字データバッファ10は、プリンタ11に転
送するための変換処理後のビットマップデータを一時格
納するためのメモリである。プリンタ11は印字データ
バッファ10から順にビットマップデータを読み出し用
紙上に印字を行なう装置から構成される。
FIG. 3 shows a block diagram of a conventional general printing apparatus. When the outline font as described above is used, the printing apparatus has such a block structure. This apparatus is composed of a print data buffer 6, an outline font memory 7, an arithmetic processing unit 8, a cache memory 9, a print data buffer 10 and a printer 11, which are connected to a bus line 5, for example. Print data buffer 6
Is a memory for storing a character code, a control code, and the like transferred from the host device. The outline font memory 7 is a memory for storing the outline fonts of all characters required for printing. Arithmetic processing unit 8
Is composed of an arithmetic circuit that obtains bitmap data from outline font data by performing the arithmetic processing shown in FIG. The cache memory 9 stores the most recently converted bitmap data,
This is a memory for increasing the printing speed of characters by omitting the conversion processing for characters that are frequently required to be converted. The print data buffer 10 is a memory for temporarily storing the converted bitmap data for transfer to the printer 11. The printer 11 is composed of a device which sequentially reads bitmap data from the print data buffer 10 and prints on the paper.

【0004】図4に従来のアウトラインフォント変換処
理フローチャートを示す。上記のような装置は、次のよ
うな手順に従ってアウトラインフォントをビットマップ
データに変換する。ステップS1において、はじめのア
ウトラインフォントの変換要求があると、まずキャッシ
ュメモリ9に既に何らかのビットマップデータが格納さ
れているかどうかを判断する。例えば印字開始直後であ
ればキャッシュメモリ9には何のデータも格納されてい
ない。そのような場合にはステップS3に移る。また、
既に印字動作が進んでいる場合には、キャッシュメモリ
9に何らかのビットマップデータが格納されている。こ
の時ステップS2において、これから演算処理しようと
するアウトラインフォントが既にビットマップデータと
してキャッシュメモリ9に格納されているかどうかを判
断する。もし、はじめて変換処理されるようなアウトラ
インフォントであればステップS3に移る。
FIG. 4 shows a conventional outline font conversion processing flowchart. The apparatus as described above converts the outline font into bitmap data according to the following procedure. In step S1, when there is a first outline font conversion request, it is first determined whether or not any bit map data is already stored in the cache memory 9. For example, immediately after the start of printing, no data is stored in the cache memory 9. In such a case, the process proceeds to step S3. Also,
If the printing operation is already in progress, some bitmap data is stored in the cache memory 9. At this time, in step S2, it is determined whether or not the outline font to be arithmetically processed is already stored in the cache memory 9 as bitmap data. If the font is an outline font that is converted for the first time, the process proceeds to step S3.

【0005】そしてステップS3においてアウトライン
フォントのデータを読み出し、ステップS4においてこ
れをビットマップデータに変換するためのラスタライズ
処理を行なう。次にキャッシュメモリ9に対し、そのビ
ットマップデータの書き込みを行なう(ステップS
5)。一方、ステップS2において既にキャッシュメモ
リ9にビットマップデータが格納されていると判断され
た場合には、ステップS6に移り、そのキャッシュメモ
リ9から該当するビットマップデータを読み出す。そし
てステップS6あるいはステップS5において得られた
ビットマップデータはステップS7において文字の出力
に使用される。
Then, in step S3, the outline font data is read out, and in step S4, rasterization processing for converting this into bitmap data is performed. Then, the bitmap data is written to the cache memory 9 (step S
5). On the other hand, if it is determined in step S2 that the bitmap data has already been stored in the cache memory 9, the process proceeds to step S6, and the corresponding bitmap data is read from the cache memory 9. Then, the bitmap data obtained in step S6 or step S5 is used for character output in step S7.

【0006】[0006]

【発明が解決しようとする課題】ところで、上記のよう
なアウトラインフォントからビットマップデータを得る
ための変換処理には、相応の処理時間を必要とする。従
って、最近に使用されたビットマップデータをキャッシ
ュメモリに格納し、いわゆるキャッシュヒットがあった
場合には、アウトラインフォントの変換処理を省略して
直ちにビットマップデータを得て処理の高速化を図るよ
うにしている。しかしながら、上記のようなキャッシュ
メモリへのビットマップデータの格納はその量に限界が
ある。また、同一の文字の繰り返し印字が少ない場合に
は、キャッシュメモリを設けた効果が減少する。このた
めキャッシュヒットが少ない場合、文字を印字するまで
の時間が長くなり、装置全体のスループットに影響を及
ぼすという問題があった。
By the way, the conversion processing for obtaining the bitmap data from the outline font as described above requires a corresponding processing time. Therefore, store the recently used bitmap data in the cache memory, and if there is a so-called cache hit, skip the outline font conversion process and immediately obtain the bitmap data to speed up the process. I have to. However, there is a limit to the amount of bitmap data that can be stored in the cache memory as described above. Further, when the same character is not repeatedly printed, the effect of providing the cache memory is reduced. Therefore, when there are few cache hits, it takes a long time to print characters, which affects the throughput of the entire apparatus.

【0007】本発明は以上の点に着目してなされたもの
で、相互に対称形の文字についてキャッシュメモリに格
納されているビットマップデータを利用することを可能
にし、キャッシュヒットの確率を高めてラスタライジン
グ処理を減少させ、処理速度を向上させたアウトライン
フォント変換処理方法を提供することを目的とするもの
である。
The present invention has been made by paying attention to the above points, and makes it possible to use the bitmap data stored in the cache memory for mutually symmetrical characters, thereby increasing the probability of a cache hit. It is an object of the present invention to provide an outline font conversion processing method that reduces rasterizing processing and improves processing speed.

【0008】[0008]

【課題を解決するための手段】本発明のアウトラインフ
ォント変換処理方法は、アウトラインフォントを変換処
理して得たビットマップデータを使用する場合におい
て、直前に使用された所定量の文字のビットマップデー
タをキャシッシュメモリに一時格納して、前記キャッシ
ュメモリに格納されたビットマップデータに該当する文
字について、新たなアウトラインフォントの変換処理要
求があったときは、その変換処理を省略して、キャッシ
ュメモリから該当するビットマップデータを読み出して
使用し、前記キャッシュメモリに格納されたビットマッ
プデータ以外の文字のアウトラインフォントについて、
新たなアウトラインフォントの変換処理要求があったと
きは、その文字と対称形の文字のビットマップデータが
前記キャッシュメモリに格納されているかどうかを判断
して、対称形の文字のビットマップデータが格納されて
いるときは、そのビットマップデータを前記キャッシュ
メモリから読み出して、読み出されたビットマップデー
タを対称変換して、新たなビットマップデータを得て使
用することを特徴とするものである。
According to the outline font conversion processing method of the present invention, when the bitmap data obtained by converting the outline font is used, the bitmap data of a predetermined amount of character used immediately before is used. Is temporarily stored in the cache memory, and when a new outline font conversion processing request is made for the character corresponding to the bitmap data stored in the cache memory, the conversion processing is omitted and the cache memory The outline font of the characters other than the bitmap data stored in the cache memory is read and used from the corresponding bitmap data from
When a new outline font conversion processing request is made, it is judged whether the bitmap data of the character symmetrical to the character is stored in the cache memory, and the bitmap data of the symmetrical character is stored. If so, the bitmap data is read from the cache memory, the read bitmap data is symmetrically converted, and new bitmap data is obtained and used.

【0009】[0009]

【作用】この方法では、既に過去に変換処理を行なった
アウトラインフォントのビットマップデータが、キャッ
シュメモリに格納されている場合、今回印字等が要求さ
れているアウトラインフォントについてその変換処理を
行なわず、キャッシュメモリから読み出された対称形の
ビットマップデータを対称変換し、新たなビットマップ
データを得る。これにより、同一の文字を頻繁に使用す
る場合以外に、対称形の文字を使用する場合もキャッシ
ュヒットが生じ、ラスタライジング処理を減少させて印
字速度の高速化が図れる。
With this method, if the bitmap data of the outline font that has already been converted in the past is stored in the cache memory, the conversion process is not performed for the outline font requested to be printed this time. Symmetric conversion is performed on the symmetrical bitmap data read from the cache memory to obtain new bitmap data. This causes a cache hit not only when the same character is frequently used but also when a symmetrical character is used, which reduces the rasterizing process and increases the printing speed.

【0010】[0010]

【実施例】以下、本発明を図の実施例を用いて詳細に説
明する。図1は本発明のアウトラインフォント変換処理
方法実施例を示す説明図である。本発明は概略次のよう
に実施される。まず、アウトラインフォント15−1が
変換処理されてビットマップデータ16−1を得る。こ
のビットマップデータ16−1は、印字に使用される一
方、同一文字の繰り返し使用に備えてキャッシュメモリ
9に格納される。このようなキャッシュメモリ9への格
納はキャッシュメモリ9の容量がいっぱいになるまで繰
り返され、古いものから順に追い出される。
The present invention will be described in detail below with reference to the embodiments shown in the drawings. FIG. 1 is an explanatory diagram showing an embodiment of an outline font conversion processing method of the present invention. The present invention is generally carried out as follows. First, the outline font 15-1 is converted to obtain bitmap data 16-1. The bitmap data 16-1 is used for printing and is stored in the cache memory 9 in preparation for repeated use of the same character. Such storage in the cache memory 9 is repeated until the capacity of the cache memory 9 is full, and the oldest ones are expelled.

【0011】ここで、今回新たなアウトラインフォント
15−2についてその変換処理が要求された場合、まず
キャッシュメモリ9に同一のアウトラインフォントに対
するビットマップデータが格納されているかどうかを判
断する。格納されていない場合には、今度は対称形のビ
ットマップデータが格納されているかどうかを判断す
る。そして、対称形のビットマップデータが格納されて
いる場合これを読み出し対称変換処理を行なう。これに
よって、新たなビットマップデータ16−2を得る。即
ち、この場合今回のアウトラインフォント15−2は変
換処理が省略されて新たなビットマップデータ16−2
が印字に使用される。
Here, when the conversion processing is requested for the new outline font 15-2 this time, it is first determined whether or not the bitmap data for the same outline font is stored in the cache memory 9. If it is not stored, it is next determined whether or not symmetrical bitmap data is stored. If symmetrical bitmap data is stored, it is read out and subjected to symmetry conversion processing. As a result, new bitmap data 16-2 is obtained. That is, in this case, the conversion process is omitted for the outline font 15-2 of this time, and the new bitmap data 16-2 is generated.
Is used for printing.

【0012】図5に本発明の方法の実施に適する互いに
対称形の文字の例を図示した。(a)は左右対称文字の
リストで、(b)は上下対称文字のリストである。即
ち、例えば「(」と「)」とは一般に組み合わせて使用
される場合が多い。この時キャッシュメモリに「(」の
ビットマップデータのみを格納する。そして「)」のビ
ットマップデータについては後で説明する対称変換によ
って、元のアウトラインフォントを使用することなく直
ちに必要なビットマップデータを得る。このような性質
の文字は、通常比較的多く使用されており、予めそのリ
ストを作成して本発明の方法を実行する。
FIG. 5 shows an example of mutually symmetrical characters suitable for carrying out the method of the present invention. (A) is a list of symmetrical characters, and (b) is a list of vertically symmetrical characters. That is, for example, “(” and “)” are often used in combination in general. At this time, only the bitmap data of "(" is stored in the cache memory, and the bitmap data of ")" is immediately necessary without using the original outline font by the symmetric conversion described later. To get Characters of this nature are usually used in relatively large numbers, and a list of them is created in advance to carry out the method of the present invention.

【0013】図6に本発明の方法を実施する場合に参照
されるテーブルの一例を示した。(a)は対称形文字コ
ード変換テーブルである。また(b)はキャッシュテー
ブルの説明図である。図の(a)に示すように、このテ
ーブルは原文字コード21と対称形文字コード22と対
称方向23とから構成される。図5に示した例では、例
えば「)」が原文字コード21、「(」が対称形文字コ
ード22の文字コードとなり、対称方向23には左右対
称という意味のデータが含められる。通常、変換容易な
対称形データは、図5に示したように上下対称あるいは
左右対称となる。従って、対称方向23に該当するデー
タは、例えば左右対称ならば“1”、上下対称ならば
“0”という1ビットのデータで差し支えない。
FIG. 6 shows an example of a table referred to when carrying out the method of the present invention. (A) is a symmetric character code conversion table. Further, (b) is an explanatory diagram of a cache table. As shown in (a) of the figure, this table is composed of an original character code 21, a symmetrical character code 22 and a symmetrical direction 23. In the example shown in Fig. 5, for example, ")" is the character code of the original character code 21 and "(" is the character code of the symmetrical character code 22, and the symmetry direction 23 includes data that means left-right symmetry. The easy symmetric data is vertically symmetric or horizontally symmetric as shown in Fig. 5. Therefore, the data corresponding to the symmetry direction 23 is, for example, "1" for left-right symmetry and "0" for up-down symmetry. 1-bit data is acceptable.

【0014】(b)に示したキャッシュテーブルには、
キャッシュメモリに格納されたビットマップデータの文
字コード24が格納される。即ち、これらのテーブルを
参照すれば、これから変換処理が要求されているアウト
ラインフォントについて、既にそのビットマップデータ
と対称形のビットマップデータがキャッシュメモリに格
納されているかどうかを直ちに判断することができる。
In the cache table shown in (b),
The character code 24 of the bitmap data stored in the cache memory is stored. That is, by referring to these tables, it is possible to immediately determine whether or not the outline font for which the conversion process is requested is already stored in the cache memory with the symmetrical bitmap data. .

【0015】上記のようなテーブルデータを用意した上
で本発明の方法は実施される。図7に本発明の方法開始
の際の変換処理要否判断フローチャートを示す。なお、
本発明の方法を実施するための装置は、既に図3で示し
たような従来装置と同様の構成で差し支えない。そし
て、その動作用プログラムは図7及び図8に示すような
内容のものとなる。図7において、まず読み出された印
字データが文字データ即ち文字コードに該当するものか
あるいはその他の制御コードに該当するものかを判断す
る(ステップS1)。ここで、文字コードでなく制御コ
ード等である場合にはステップS2に移り、所定のコマ
ンド処理が実行される。この処理は、例えば改ページや
改行の処理に該当する。一方、処理対象が文字コードで
ある場合には、これから説明するステップS3のラスタ
ライジング処理が開始される。
The method of the present invention is carried out after preparing the table data as described above. FIG. 7 shows a flowchart for determining whether or not the conversion process is necessary when starting the method of the present invention. In addition,
The device for carrying out the method of the present invention may have the same structure as the conventional device as already shown in FIG. Then, the operation program has contents as shown in FIGS. 7 and 8. In FIG. 7, first, it is determined whether the read print data corresponds to character data, that is, a character code or other control code (step S1). Here, if it is not the character code but the control code or the like, the process proceeds to step S2, and a predetermined command process is executed. This process corresponds to, for example, a page break or line feed process. On the other hand, when the processing target is a character code, the rasterizing process of step S3 to be described below is started.

【0016】図8に本発明のアウトラインフォント変換
処理方法フローチャートを示す。本発明では、この図に
示す手順に従って、ラスタライジング処理が実行され
る。まず、ステップS1、S2、S3、S4は、先に図
4で説明したステップS1、S3、S4、S5と同一の
内容の処理であり、図8のステップS5、S6は、既に
図4で説明したステップS2、S6と同様の処理であ
る。即ち、ステップS1においてキャッシュメモリに何
らかのビットマップデータが格納されているかどうかを
判断し、そのようなビットマップデータの格納がない場
合にはステップS2に移り、アウトラインフォントデー
タの読み出しが行なわれる。そしてステップS3におい
て、そのラスタライジング処理が実行される。さらにス
テップS4において、キャッシュメモリに対しそのビッ
トマップデータが書き込まれる。その後ステップS12
において、そのビットマップデータを使用した印字が行
なわれる。
FIG. 8 shows a flowchart of the outline font conversion processing method of the present invention. In the present invention, the rasterizing process is executed according to the procedure shown in this figure. First, steps S1, S2, S3, and S4 are the same contents as steps S1, S3, S4, and S5 described above with reference to FIG. 4, and steps S5 and S6 in FIG. 8 have already been described with reference to FIG. The processing is the same as that of steps S2 and S6. That is, in step S1, it is determined whether or not any bitmap data is stored in the cache memory. If no such bitmap data is stored, the process proceeds to step S2 and outline font data is read. Then, in step S3, the rasterizing process is executed. Further, in step S4, the bitmap data is written in the cache memory. Then step S12
At, printing is performed using the bitmap data.

【0017】一方、ステップS1においてキャッシュメ
モリに何らかのビットマップデータが格納されていると
判断された場合、ステップS5に移り、そのキャッシュ
メモリに該当する文字のビットマップデータが格納され
ているかどうかを判断する。これは、図6(b)に示し
たようなキャッシュテーブルを参照して判断される。こ
こで、いわゆるキャッシュヒットがあった場合には、ス
テップS6に移り、キャッシュメモリから該当するビッ
トマップデータを読み出し、ステップS12の文字出力
が行なわれる。一方、ステップS5においてキャッシュ
ヒットがなかった場合にはステップS7に移る。ここの
ステップS7以降が本発明の方法の特徴ある部分であ
る。
On the other hand, if it is determined in step S1 that some bit map data is stored in the cache memory, the process proceeds to step S5 and it is determined whether or not bit map data of the corresponding character is stored in the cache memory. To do. This is determined by referring to the cache table as shown in FIG. Here, if there is a so-called cache hit, the process proceeds to step S6, the corresponding bitmap data is read from the cache memory, and the character output in step S12 is performed. On the other hand, if there is no cache hit in step S5, the process proceeds to step S7. The steps from step S7 onward are the characteristic parts of the method of the present invention.

【0018】即ちステップS7において、今度は変換対
象となる文字コードについて図6(a)に示す対称形文
字コード変換テーブルを参照する。そして、ここで対称
の文字があるか否かを判断する。対称の文字がない場合
にはステップS2に移り、従来同様のラスタライジング
処理が進められる。一方、対称形文字コード変換テーブ
ルを参照することによって、対称形の文字が見つかった
場合にはステップS8に移り、今度はキャッシュメモリ
にその対称形の文字が格納されているかどうかを判断す
る。
That is, in step S7, the symmetric character code conversion table shown in FIG. 6A is referred to for the character code to be converted. Then, it is determined here whether there is a symmetrical character. When there is no symmetrical character, the process proceeds to step S2, and the rasterizing process similar to the conventional one is performed. On the other hand, if a symmetric character is found by referring to the symmetric character code conversion table, the process proceeds to step S8, and this time, it is determined whether or not the symmetric character is stored in the cache memory.

【0019】この場合変換対象となる文字の文字コード
を原文字コードとして、対称形文字コード変換テーブル
を参照することによって新たな対称形文字コード22を
呼び出す。その対称形文字コードを使用してキャッシュ
テーブルを参照することになる。このように再びキャッ
シュテーブルを参照した場合にヒットがなければ、ステ
ップS2に移るが、ヒットした場合にはステップS9に
移り、そのキャッシュメモリに格納されたビットマップ
データが左右対象のものか上下対象のものかを判断す
る。この判断は図6に示す対称形文字コード変換テーブ
ルによって行なわれる。即ち、対称形文字コード変換テ
ーブルの対称方向23のデータを参照すれば左右対称か
上下対称かの判断が行なわれる。ここで、上下対称の場
合にはステップS10に移り、ビットマップデータを上
下反転処理する。また、左右対称の場合はステップS1
1に移り、左右反転処理を行なう。これによって、該当
するアウトラインフォントに対応するビットマップデー
タが得られる。その後はステップS4に移り、キャッシ
ュメモリにビットマップデータの書き込みを行い、ステ
ップS12において文字の出力を行なう。このような処
理を行なうことによって、同一の文字コードとしてキャ
ッシュヒットした場合だけでなく対称形の文字について
もキャッシュヒットすることになり、ラスタライジング
処理が省略される。
In this case, a new symmetric character code 22 is called by referring to the symmetric character code conversion table with the character code of the character to be converted as the original character code. The symmetric character code will be used to refer to the cache table. If there is no hit when referring to the cache table again as described above, the process proceeds to step S2. If a hit occurs, the process proceeds to step S9, where the bitmap data stored in the cache memory is left-right or up-down target. Determine if it's the one. This determination is made by the symmetric character code conversion table shown in FIG. That is, by referring to the data in the symmetry direction 23 of the symmetric character code conversion table, it is determined whether the symmetry is vertical or symmetric. Here, in the case of vertical symmetry, the process proceeds to step S10, and the bitmap data is vertically inverted. If left-right symmetrical, step S1
Moving to 1, the horizontal inversion process is performed. As a result, bitmap data corresponding to the relevant outline font is obtained. After that, the process proceeds to step S4, the bitmap data is written in the cache memory, and the character is output in step S12. By performing such processing, not only when the cache hit occurs as the same character code, but also when the symmetrical character is cache hit, the rasterizing process is omitted.

【0020】図9及び図10に上記反転処理即ち対称変
換処理のための方法の説明図を示す。まず、キャッシュ
メモリに格納されているものは図9の左側に示すビット
マップデータ30−1とする。そして要求されるのは図
9の右側に示すビットマップデータ30−2とする。こ
こで、1つのビットマップデータは10×10マトリク
スから構成されているものとする。この場合、処理は上
から1行分ごとに実行される。なお、この種のデータ処
理は16ビット単位で行なわれるため、図に示すように
ビットマップデータの10ビット分のデータ31−1の
右側に6ビットの不要ビットが存在する。これを4ビッ
トずつに区分して16進法で表示すると、図10の処理
に示すように“0C00”となる。これを16ビット
のレジスタGR1に格納する。これは図10の処理の
Step1に該当する。
9 and 10 are explanatory views of a method for the inversion process, that is, the symmetric conversion process. First, what is stored in the cache memory is bitmap data 30-1 shown on the left side of FIG. Then, what is required is the bitmap data 30-2 shown on the right side of FIG. Here, it is assumed that one bit map data is composed of a 10 × 10 matrix. In this case, the process is executed line by line from the top. Since this kind of data processing is performed in units of 16 bits, 6 bits of unnecessary bits are present on the right side of the 10-bit data 31-1 of the bitmap data, as shown in the figure. When this is divided into 4 bits and displayed in hexadecimal notation, it becomes "0C00" as shown in the processing of FIG. This is stored in the 16-bit register GR1. This corresponds to Step 1 of the processing of FIG.

【0021】ここで処理において、レジスタGR1に
格納されたデータについて、不要ビット分だけ右にシフ
トさせる。これによって、レジスタGR1の内容は“0
030”に変わる次の処理においては、レジスタGR
1の内容がStep1からStep6までそれぞれ1ビ
ットずつシフトされる。処理のStep1において
は、0ビットシフト即ちシフトされないままのデータが
使用される。また処理のStep2においては、1ビ
ットシフトされたデータが使用される。従って処理の
Step6においては5ビットシフトされたデータが使
用される。
Here, in the processing, the data stored in the register GR1 is shifted to the right by an unnecessary bit. As a result, the content of the register GR1 becomes "0".
In the next process of changing to 030 ″, the register GR
The contents of 1 are shifted by 1 bit from Step 1 to Step 6. In Step 1 of the process, 0-bit shift, that is, data that has not been shifted is used. Further, in Step 2 of the processing, the data shifted by 1 bit is used. Therefore, in Step 6 of the process, data shifted by 5 bits is used.

【0022】処理のStep1においては、処理の
Step1で得られたレジスタGR1のデータをレジス
タGR2にコピーする。さらに処理においては、レジ
スタGR2に格納されたデータとデータ“0001”と
のANDをとる。これによって、LSB即ち最も下位の
ビットの値を得る。次に処理において、処理で得た
レジスタGR2の内容を左に15ビットシフトする。そ
してその後レジスタGR2の内容とレジスタGR3の内
容のORをとる。これが処理である。以下処理から
処理までの内容を、処理においてレジスタGR1の
内容を1ビットずつシフトしながら、Step1からS
tep6まで繰り返す。なお、この図に示した例では、
処理において得られたレジスタGR2の内容がSte
p1からStep4まで全て0であるため、処理、
を行なっても意味がないことから、操作を省略してい
る。
In Step 1 of the process, the data of the register GR1 obtained in Step 1 of the process is copied to the register GR2. Further, in the processing, the data stored in the register GR2 and the data “0001” are ANDed. As a result, the LSB, that is, the value of the least significant bit is obtained. Next, in the process, the contents of the register GR2 obtained in the process are shifted to the left by 15 bits. Then, after that, the contents of the register GR2 and the contents of the register GR3 are ORed. This is processing. The contents of the following processes are changed from Step 1 to S while shifting the contents of the register GR1 by 1 bit in the process.
Repeat until step 6. In addition, in the example shown in this figure,
The content of the register GR2 obtained in the processing is Ste
Since all of p1 to Step4 are 0, processing,
Since it does not make sense to perform, the operation is omitted.

【0023】従ってStep5とStep6の結果のみ
が有効となるが、処理のStep5で得られたレジス
タGR3の内容と処理で得られたレジスタGR2の内
容のORをとることによりStep6の処理におい
て、ちょうど処理で示したデータと対称のデータ“0
C00”が得られる。これを図示したものが図9のデー
タ31−2である。このようにビットマップデータの1
行分が反転処理され、不要ビットが右側につけられた上
で新たなビットマップデータが生成される。この処理が
上から下まで10行分実行される。上記のような反転処
理は、極めて簡単な高速処理が可能である。従ってアウ
トラインフォントからビットマップデータを得る場合に
比べて、印字速度全体が向上する。
Therefore, although only the results of Step 5 and Step 6 are valid, the contents of the register GR3 obtained in Step 5 of the process and the contents of the register GR2 obtained in the process are ORed to perform the process just in Step 6. Data that is symmetrical to the data shown in
C00 ″ is obtained. This is the data 31-2 in FIG. 9. In this way, 1 of the bitmap data is obtained.
Inversion processing is performed on the rows, unnecessary bits are added to the right side, and new bitmap data is generated. This process is executed for 10 lines from top to bottom. The inversion process as described above enables extremely simple high-speed processing. Therefore, the entire printing speed is improved as compared with the case where the bitmap data is obtained from the outline font.

【0024】本発明は以上の実施例に限定されない。対
称形の文字コードやその対称方向等を判断するテーブル
の構成、あるいはキャッシュテーブルの構成等は、同様
の効果を得る各種の構成に変更して差し支えない。ま
た、対称形の文字としては、左右対称、上下対称の他
に、例えば点対称のものや日本語の“「”、“」”のよ
うに斜め45度の線に対して対称な図形等も同様の適用
が可能である。また、反転処理は図9に説明した方法の
他に、従来よく知られているこの種のデジタルデータの
変換処理を転用して差し支えない。
The present invention is not limited to the above embodiments. The configuration of the table that determines the symmetrical character code and the direction of symmetry, or the configuration of the cache table may be changed to various configurations that achieve the same effect. Further, as the symmetrical characters, in addition to left-right symmetry and up-down symmetry, for example, point-symmetrical characters and figures such as Japanese """and""" that are symmetrical with respect to a line at an angle of 45 degrees are also available. In addition, the inversion process may use the well-known digital data conversion process of this type in addition to the method described in FIG.

【0025】[0025]

【発明の効果】以上説明した本発明のアウトラインフォ
ント変換処理方法は、以前にアウトラインフォントから
ビットマップデータへの変換処理が実行され、一旦キャ
ッシュメモリ格納されたビットマップデータについて、
同一のアウトラインフォントの変換処理のみならず、対
称形のアウトラインフォントの変換処理についても、そ
の変換処理を省略し、簡単な演算処理によってビットマ
ップデータを得ることができる。従って、いわゆるキャ
ッシュヒットの確率が増大し、印字処理や表示処理のた
めの演算時間が早くなりトータル的な処理時間を短縮
し、スループットを向上させることができる。
According to the outline font conversion processing method of the present invention described above, the conversion processing from the outline font to the bitmap data is executed before, and the bitmap data once stored in the cache memory is
Not only the same outline font conversion process but also the symmetrical outline font conversion process can be omitted, and the bitmap data can be obtained by a simple calculation process. Therefore, the probability of a so-called cache hit increases, the calculation time for print processing and display processing is shortened, the total processing time can be shortened, and the throughput can be improved.

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

【図1】本発明のアウトラインフォント変換処理方法実
施例を示す説明図である。
FIG. 1 is an explanatory diagram showing an embodiment of an outline font conversion processing method of the present invention.

【図2】一般のアウトラインフォント処理説明図であ
る。
FIG. 2 is an explanatory diagram of general outline font processing.

【図3】一般の印字装置ブロック図である。FIG. 3 is a block diagram of a general printing apparatus.

【図4】従来のアウトラインフォント変換処理フローチ
ャートである。
FIG. 4 is a conventional outline font conversion processing flowchart.

【図5】本発明の方法に適する対称形の文字を示し、
(a)は左右対称文字、(b)は上下対称文字の例であ
る。
FIG. 5 shows symmetrical characters suitable for the method of the invention,
(A) is an example of left-right symmetrical characters, and (b) is an example of vertically symmetrical characters.

【図6】本発明の方法実施の際の判断に使用されるテー
ブルを示し、(a)は対称形文字コード変換テーブル、
(b)はキャッシュテーブルを表わす。
FIG. 6 shows a table used for judgment in carrying out the method of the present invention, (a) is a symmetric character code conversion table,
(B) shows a cache table.

【図7】本発明の方法実施の際の変換処理要否判断フロ
ーチャートである。
FIG. 7 is a flowchart for determining whether or not a conversion process is necessary when performing the method of the present invention.

【図8】本発明のアウトラインフォント変換処理方法実
施例フローチャートである。
FIG. 8 is a flowchart of an outline font conversion processing method embodiment of the present invention.

【図9】本発明の方法による対称変換処理説明図(その
1)である。
FIG. 9 is an explanatory diagram (part 1) of the symmetric conversion process by the method of the present invention.

【図10】本発明の方法による対称変換処理説明図(そ
の2)である。
FIG. 10 is an explanatory view (No. 2) of the symmetric conversion processing by the method of the present invention.

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

15−1 前回使用のアウトラインフォント 15−2 今回使用のアウトラインフォント 16−1 ビットマップデータ 16−2 新たなビットマップデータ 9 キャッシュメモリ 15-1 Outline font used last time 15-2 Outline font used this time 16-1 Bit map data 16-2 New bit map data 9 Cache memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 アウトラインフォントを変換処理して得
たビットマップデータを使用する場合において、 直前に使用された所定量の文字のビットマップデータを
キャシッシュメモリに一時格納して、 前記キャッシュメモリに格納されたビットマップデータ
に該当する文字について、新たなアウトラインフォント
の変換処理要求があったときは、 その変換処理を省略して、キャッシュメモリから該当す
るビットマップデータを読み出して使用し、 前記キャッシュメモリに格納されたビットマップデータ
以外の文字のアウトラインフォントについて、新たなア
ウトラインフォントの変換処理要求があったときは、 その文字と対称形の文字のビットマップデータが前記キ
ャッシュメモリに格納されているかどうかを判断して、 対称形の文字のビットマップデータが格納されていると
きは、そのビットマップデータを前記キャッシュメモリ
から読み出して、 読み出されたビットマップデータを対称変換して、新た
なビットマップデータを得て使用することを特徴とする
アウトラインフォント変換処理方法。
1. When using bitmap data obtained by converting an outline font, bitmap data of a predetermined amount of character used immediately before is temporarily stored in a cache memory, and the bitmap data is stored in the cache memory. When a new outline font conversion processing request is made for the character corresponding to the stored bitmap data, the conversion processing is omitted and the corresponding bitmap data is read from the cache memory and used. If there is a new outline font conversion request for an outline font of characters other than the bitmap data stored in memory, is the bitmap data of the character symmetrical to that character stored in the cache memory? Judgment is made, and the symmetric character bit When the bitmap data is stored, the bitmap data is read from the cache memory, the read bitmap data is symmetrically converted, and new bitmap data is obtained and used. Outline font conversion processing method.
JP4204514A 1992-07-08 1992-07-08 Outline font conversion processing method Pending JPH0627923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4204514A JPH0627923A (en) 1992-07-08 1992-07-08 Outline font conversion processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4204514A JPH0627923A (en) 1992-07-08 1992-07-08 Outline font conversion processing method

Publications (1)

Publication Number Publication Date
JPH0627923A true JPH0627923A (en) 1994-02-04

Family

ID=16491796

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4204514A Pending JPH0627923A (en) 1992-07-08 1992-07-08 Outline font conversion processing method

Country Status (1)

Country Link
JP (1) JPH0627923A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100432625B1 (en) * 2002-08-06 2004-05-22 삼성전자주식회사 Methode for displaying font in wireless telephone

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100432625B1 (en) * 2002-08-06 2004-05-22 삼성전자주식회사 Methode for displaying font in wireless telephone

Similar Documents

Publication Publication Date Title
US5189730A (en) Apparatus for generating character pattern signals and method for generating same
JPH0545039B2 (en)
US5519412A (en) Pattern processing method
JPH052459A (en) Drawing device
JPH0627923A (en) Outline font conversion processing method
JP3054157B2 (en) Character processing device and character processing method
JP3089014B2 (en) Output control method and device
JP2976671B2 (en) Data expansion method
JPH0630927B2 (en) Pattern output method
JPS61104860A (en) Reduction printer
JP2710140B2 (en) Output control device
JP2737880B2 (en) Character processing apparatus and method
JP3055306B2 (en) Data output device
JPH06274142A (en) Cache system for outline font
JPH06175637A (en) Method for generating character
JPH064396A (en) Image plotter
JPH0493994A (en) Character processor
JPS62118430A (en) Plotter controller
JPH0725078A (en) Text processing device
JPH06149208A (en) Character generating device
JPS61292674A (en) Character pattern generator
JPH03281363A (en) Document output device
JPH03154978A (en) Method and device for output of pattern
JPH04294418A (en) Font pattern transfer lsi
JPS62208177A (en) Image processor