JPH0324975A - Character processor - Google Patents
Character processorInfo
- Publication number
- JPH0324975A JPH0324975A JP1159604A JP15960489A JPH0324975A JP H0324975 A JPH0324975 A JP H0324975A JP 1159604 A JP1159604 A JP 1159604A JP 15960489 A JP15960489 A JP 15960489A JP H0324975 A JPH0324975 A JP H0324975A
- Authority
- JP
- Japan
- Prior art keywords
- bitmap
- character
- data
- bit
- modification
- 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
Landscapes
- Controls And Circuits For Display Device (AREA)
- Dot-Matrix Printers And Others (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野]
この発明は、文字あるいは記号をディジタル化したビッ
トマップデータを展開して文字データを出力機器に出力
可能な文字処理装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a character processing device that can develop bitmap data obtained by digitizing characters or symbols and output the character data to an output device.
(従来の技術)
従来、この種の文字処理装置においては、文字あるいは
記号のディジタルイメージをビットマップメモリ上に展
開して出力手段となるビットマップディスプレイまたは
プリンタ装置に出力文字データを転送するように構成さ
れている。(Prior Art) Conventionally, in this type of character processing device, a digital image of a character or symbol is developed on a bitmap memory and the output character data is transferred to a bitmap display or a printer device as an output means. It is configured.
ところで、上記の装置において、出力する文字あるいは
記号をビットマップを用いて表現する装置において、サ
イズを変更する場合には、必要なすべてのポイントサイ
ズのビットマップを具備する必要があっため、非常に大
きなメモリ容量を必要として非常に高価な装置となって
しまう問題点があった。By the way, in the above device, when changing the size of a device that uses bitmaps to express characters or symbols to be output, it is necessary to have bitmaps of all necessary point sizes, which is extremely difficult. There was a problem in that it required a large memory capacity, resulting in a very expensive device.
この発明は、上記の問題点を解決するためになされたも
ので、所定サイズのビットマップメモリに展開されたフ
ォントパターンに対して所定方向に展開されたビットデ
ータに対して隣接するビットデータとの論理演算を実行
することにより、文字品位を落すことなく同一ビットマ
ップから高品位の修飾ビットマップデータを生成できる
文字処理装置を得ることを目的とする。The present invention was made to solve the above problems, and the present invention has been made in order to solve the above problem. An object of the present invention is to obtain a character processing device capable of generating high-quality modified bitmap data from the same bitmap without degrading character quality by executing logical operations.
(課題を解決するための手段)
この発明に係る文字処理装置は、展開手段によりビット
マップメモリに対して整列展開されたビットマップデー
タの注目ビットに隣接する隣接ビットとの論理演算を所
定方向に実行しながら修飾ビットデータを順次演算する
演算手段と、この演算手段により演算された修飾ビット
データをビッ1・マップメモリに順次展開制御する展開
制御手段とを設けたものである。(Means for Solving the Problems) A character processing device according to the present invention performs logical operations in a predetermined direction with adjacent bits adjacent to a bit of interest of bitmap data aligned and expanded in a bitmap memory by an expansion means. This system is provided with a calculation means for sequentially calculating modification bit data during execution, and a development control means for controlling sequential development of the modification bit data calculated by the calculation means in the bit 1 map memory.
この発明においては、展開手段によりビットマップメモ
リにビットマップデータが展開されたら、演算手段が注
目ビットに隣接する隣接ビットとの論理演算を所定方向
に実行しながら修飾ビットデータを順次演算し、演算さ
れた修飾ビットデータを展開制御手段がビットマップメ
モリに順次展開制御し、所望とする修飾ビットマップを
ビットマップメモリ上に生成することを可能とする。In this invention, when the bitmap data is expanded in the bitmap memory by the expansion means, the calculation means sequentially calculates the modified bit data while performing logical operations with adjacent bits adjacent to the bit of interest in a predetermined direction. The expansion control means sequentially controls expansion of the modified modification bit data onto the bitmap memory, thereby making it possible to generate a desired modification bitmap on the bitmap memory.
第1図はこの発明の一実施例を示す文字処理装置の構戒
を説明するブロック図であり、1は文字処理装置本体、
2はCPUで、プログラムROM4に記憶された制御プ
ログラーム(後述する第2図,第3図に示すフローチャ
ートの手順を含む)に基づいて各デバイスを総括的C制
御する。3は入力部で、文字修飾に関する指示データを
入力する。FIG. 1 is a block diagram illustrating the structure of a character processing device according to an embodiment of the present invention, and 1 is a character processing device main body;
Reference numeral 2 denotes a CPU, which performs comprehensive C control on each device based on a control program stored in the program ROM 4 (including procedures in flowcharts shown in FIGS. 2 and 3, which will be described later). Reference numeral 3 denotes an input section for inputting instruction data regarding character modification.
5は文字フォントROMで、文字,記号に係るフォント
パターンを記憶している。A character font ROM 5 stores font patterns related to characters and symbols.
6はRAMで、CPU2のワークメモリとして機能し、
修飾処理されたビットマップパターンを展開するパター
ン展開部6aが具備され、このパターン展開部6aに展
開されたビットマップデータが出力部7に出力され、文
字,記号等が表示または印字されることとなる.
なお、展開手段2aによりビットマップメモリとなるR
AM6にビットマップデータが展開されたら、演算千段
2bが注目ビットに隣接する隣接ビットとの論理演算を
所定方向に実行しながら修飾ビットデータを順次演算し
、演算された修飾ビットデータを展開制御手段2cがビ
ットマップメモリ(RAM6)に順次展開制御し、所望
とする修飾ビットマップをパターン展開部Sa上に展開
生成する。6 is RAM, which functions as a work memory for CPU2,
A pattern development section 6a is provided for developing the modified bitmap pattern, and the bitmap data developed in the pattern development section 6a is outputted to an output section 7, and characters, symbols, etc. are displayed or printed. Become. Note that R becomes a bitmap memory by the expansion means 2a.
When the bitmap data is expanded to AM6, the operation stage 2b sequentially calculates the modification bit data while performing logical operations with the adjacent bits adjacent to the bit of interest in a predetermined direction, and controls the expansion of the calculated modification bit data. The means 2c sequentially performs expansion control on the bitmap memory (RAM 6) and generates a desired modification bitmap on the pattern expansion section Sa.
次に、第2図および第3図を参照しながら第1図の動作
について説明する。Next, the operation shown in FIG. 1 will be explained with reference to FIGS. 2 and 3.
第2図はこの発明に係る文字処理手順の一例を示すフロ
ーチャートである。なお、(1)〜(6)は各ステップ
を示す。FIG. 2 is a flowchart showing an example of a character processing procedure according to the present invention. Note that (1) to (6) indicate each step.
先ず、本装置に電源が供給されると、どの文字を修飾す
るか等の指示データが入力されるのを待ち(1)、入力
部3から指示データがスイッチ.入力信号等により入力
されると、入力された指示データが終了7命令かどうか
を判断し(2) YESならば処理を終了し、NOな
らば該当するビットマップパターンを文字フォントRO
M5から検索し、RAMB上に展開する(3)。First, when power is supplied to this device, it waits for instruction data such as which character to modify to be input (1), and the instruction data is input from the input section 3 to the switch. When input by an input signal, etc., it is determined whether the input instruction data is an end 7 command (2) If YES, the process is terminated, and if NO, the corresponding bitmap pattern is transferred to the character font RO.
Search from M5 and expand on RAMB (3).
次いで、後述する縦方向についての修飾処理ルーチンを
実行するとともに(4)、後述する横方向についての修
飾処理ルーチンを実行する(5)次いで、パターン展開
郎6aに展開された修飾ビットマップパターンを出力部
7に出力し(6)処理を終了する。Next, a modification processing routine for the vertical direction, which will be described later, is executed (4), and a modification processing routine for the horizontal direction, which will be described later, is executed (5).Then, the expanded modification bitmap pattern is output to the pattern expansion section 6a. (6) The process ends.
第3図はこの発明に係るビットマップ修飾処理ルーチン
の一例を示すフローチャートである。なお、(1)〜(
8)は各ステップを示す。また、く〉内は横修飾処理内
容を示し、以下縦処理を例にして説明する。以下、第4
図および第5図を参照しながらビットIA理について説
明する。FIG. 3 is a flowchart showing an example of a bitmap modification processing routine according to the present invention. In addition, (1) to (
8) shows each step. Also, the contents in parentheses indicate the content of horizontal modification processing, which will be explained below using vertical processing as an example. Below, the fourth
The bit IA theory will be explained with reference to the figures and FIG.
先ず、第4図(a)に示すような文字コード(3022
)に対応する24X24の文字パターン「唖」をRAM
5に展開したら、ビットマップの上くまたは左〉から行
く列〉単位にアクセスし、最下位行く最下位列〉まで処
理を終了したかどうかを判断し(1) YESならば
処理を終了し、Noならば前の行く前の列〉の右方向く
上方向〉に1ビットシフトしたものと、現在の行く列〉
を右く上方向〉に1ビットシフトしたもののNOTとの
ANDfi理(第5図(a)参照)を実行し(2)、前
の行く前の列〉の左方向く下方〉に1ドットシフトした
ものと、現在の行く列〉を左方向く下方〉に1ドットシ
フトしたもののNOTとのAND処理(第5図(b)参
照)を実行し(3)、上記ステップ(2)とステップ(
3)と前の行く列〉とのORIA理(第5図(c)参照
)を実行する(4)。First, the character code (3022
) corresponding to the 24x24 character pattern "唖" in RAM.
5, access each column going from the top or left of the bitmap and judge whether processing has been completed up to the lowest column going to the bottom (1) If YES, end the process. , if No, the previous column shifted by 1 bit to the right and upward, and the current column
Execute the AND operation (see Figure 5 (a)) with NOT (see Figure 5 (a)), which shifts 1 bit to the right and upward, and shifts 1 dot to the left and downward of the previous column. Execute the AND process (see Figure 5 (b)) with the result obtained by shifting the current column by one dot to the left and downward (3), and then perform the AND process (3), and then perform the AND process (see Fig. 5 (b)).
3) and the previous column (see FIG. 5(c)) is executed (4).
次いで、現在アクセス中の行く列〉の前の行〈列〉の右
方向く上方向〉に1ビットシフトしたものε、現在の行
く列〉を右〈上〉に1ドットシフトしたものと、次の行
く列〉を右く上〉に1ドットシフトしたものとのOR(
第5図(d)参照)をとる(5).
次いで、現在アクセス中の行く列〉の前の行く列〉を左
方向く下方向〉に1ドットシフトしたものと、現在の行
く列〉を左方向く下方向〉(1ドットシフトしたものと
、次の行〈列〉を左方向に1ドットシフトしたものとの
OR(第5図(e)参照)をとる(6)。次いで、ステ
ップ(5)の値とステップ(6)の値とのANDをとっ
たものと次の行のNOTとのAND (第5図(f)参
照)をとる(7)。Then, the previous row (column) that is currently being accessed is shifted by 1 bit to the right and upwards, ε, the current column is shifted by 1 dot to the right (upward), and the next OR (
(See Figure 5(d)) (5). Next, the previous column that is currently being accessed is shifted to the left and downward by 1 dot, and the currently accessed column is shifted to the left and downward by 1 dot. OR with the next row (column) shifted one dot to the left (see Figure 5 (e)) (6). Next, combine the value of step (5) with the value of step (6). The AND result is ANDed with NOT in the next row (see FIG. 5(f)) (7).
次いで、ステップ(4)の値とステップ(7)の値との
ORをとったものと現在の行く列〉とのANDをとり(
第5図(g)参照)、パターン展開部6aに書き込み、
書き込む行く列〉とアクセスする行く列〉に移動し(8
)、ステップ(1)に戻る。Next, the value obtained by ORing the value of step (4) and step (7) is ANDed with the current column> (
(see FIG. 5(g)), written in the pattern development section 6a,
Move to the write column and the access column (8
), return to step (1).
これにより、第4図(b)に示す高品位修飾(この実施
例では細め修飾)文字パターンを生成することができる
。As a result, a high-quality decorated character pattern (in this embodiment, narrowed modification) can be generated as shown in FIG. 4(b).
なお、上記実施例では所定の論理演算を注目画素の上下
,左右.斜めの1ドットに対して行う場合について説明
したが、ドット数は1ドットに限らず複数ドットであっ
てもいいし、シフト方向については片方だけでも良い。Note that in the above embodiment, predetermined logical operations are performed on the top, bottom, left and right sides of the pixel of interest. Although the case where the shift is performed for one diagonal dot has been described, the number of dots is not limited to one dot, but may be a plurality of dots, and the shifting direction may be shifted to only one direction.
また、上記実施例では所定の論理演算をソフトウエア処
理により実行する場合について説明したが、ハードウエ
アにより構成された論理回路により実行するように構成
して、処理速度の向上を図っても良い。Further, in the above embodiment, a case has been described in which the predetermined logical operation is executed by software processing, but it may be configured to be executed by a logic circuit configured by hardware to improve the processing speed.
さらに、この文字処理装置は、単体で機能しても良く、
他の装置の一部、例えば印刷装置やディスプレイ装置の
一部に組み込まれてもこの発明の趣旨から逸脱するもの
ではない。Furthermore, this character processing device may function alone,
Even if it is incorporated into a part of another device, for example, a printing device or a display device, it does not depart from the spirit of the invention.
また、上記実施例では展開元となるビットマップパター
ンを文字フォントROM5より得る場合について説明し
たが、ホストよりダウンロードされたり、アウトライン
フォント等から発生されてRAM6に展開されたもので
あっても良い。Further, in the above embodiment, the case where the bitmap pattern to be the expansion source is obtained from the character font ROM 5 has been described, but it may be downloaded from the host or generated from an outline font or the like and expanded into the RAM 6.
以上説明したように、この発明は展開手段によりビット
マップメモリに対して整列展間されたビットマップデー
タの注目ビットに隣接する隣接ビットとの論理演算を所
定方向に実行しながら修飾ビットデータを順次演算する
演算手段と、この演算手段により演算された修飾ビット
データをビットマップメモリに順次展開制御する展開制
御手段とを設けたので、同一ビットマップデータから種
々に修飾された高品位修飾ビットマップデータを生成で
きる。従って、従来のように種々のビトンマップパター
ンを常駐させるといった構成から解放され、文字.記号
のためのビットマップマターン記憶容量を大幅に縮小で
き、安価なビットマップパターン処理を実現できる等の
効果を奏する。As explained above, the present invention sequentially converts modified bit data while performing logical operations in a predetermined direction with adjacent bits of bitmap data aligned and expanded in a bitmap memory by an expansion means. Since we have provided a calculation means for performing calculations and a development control means for sequentially controlling the expansion of the modified bit data calculated by this calculation means into the bitmap memory, high-quality modified bitmap data that has been modified in various ways from the same bitmap data is provided. can be generated. Therefore, it is freed from the conventional structure of having various biton map patterns resident, and character. The storage capacity of bitmap patterns for symbols can be significantly reduced, and inexpensive bitmap pattern processing can be realized.
第1図はこの発明の一実施例を示す文字処理装置の構成
を説明するブロック図、第2図はこの発明(係る文字処
理手順の二例を示すフローチャート、第3図はこの発明
に係るビットマップ修飾処理ルーチンの一例を示すフロ
ーチャート、第4図,第5図はこの発明に係るビットマ
ップ修飾処理状態を説明する模式図である。
図中、1は文字処理装置本体、2はCPU、2aは展開
手段、2bは演算手段、2Cは展開制御手段、3は入力
部、4はプログラムROM、5は文字フォントROM,
6はRAM,6aはパターン展開部、7は出力部である
。
第
1
図
第
3
図
(a)
第
2
図
第
4
図
(b)FIG. 1 is a block diagram illustrating the configuration of a character processing device according to an embodiment of the invention, FIG. 2 is a flowchart showing two examples of character processing procedures according to the invention, and FIG. A flowchart showing an example of the map modification processing routine, and FIGS. 4 and 5 are schematic diagrams explaining the state of the bitmap modification processing according to the present invention. In the figure, 1 is the character processing device main body, 2 is the CPU, and 2a 2b is a calculation means, 2C is a development control means, 3 is an input section, 4 is a program ROM, 5 is a character font ROM,
6 is a RAM, 6a is a pattern development section, and 7 is an output section. Figure 1 Figure 3 (a) Figure 2 Figure 4 (b)
Claims (1)
マップメモリに展開する展開手段を有する文字処理装置
において、前記展開手段により前記ビットマップメモリ
に対して整列展開されたビットマップデータの注目ビッ
トに隣接する隣接ビットとの論理演算を所定方向に実行
しながら修飾ビットデータを順次演算する演算手段と、
この演算手段により演算された修飾ビットデータを前記
ビットマップメモリに順次展開制御する展開制御手段と
を具備したことを特徴とする文字処理装置。In a character processing device having a developing means for expanding bitmap data corresponding to a character or symbol into a bitmap memory, an adjacent bit adjacent to a target bit of the bitmap data aligned and developed in the bitmap memory by the developing means a calculation means for sequentially calculating the modified bit data while performing logical operations with the bits in a predetermined direction;
A character processing device comprising: expansion control means for sequentially controlling expansion of the modified bit data calculated by the calculation means into the bitmap memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1159604A JPH0324975A (en) | 1989-06-23 | 1989-06-23 | Character processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1159604A JPH0324975A (en) | 1989-06-23 | 1989-06-23 | Character processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0324975A true JPH0324975A (en) | 1991-02-01 |
Family
ID=15697339
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1159604A Pending JPH0324975A (en) | 1989-06-23 | 1989-06-23 | Character processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0324975A (en) |
-
1989
- 1989-06-23 JP JP1159604A patent/JPH0324975A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2755308B2 (en) | Output method and device | |
| US5537131A (en) | Character generating method and apparatus | |
| US6057825A (en) | Image processing apparatus with paint-in of outline interiors | |
| JP3037854B2 (en) | Character generation method and device | |
| JPH0640259B2 (en) | Data processing device | |
| JPH03213367A (en) | Multicolor printer | |
| JP2980732B2 (en) | How to generate outline fonts | |
| JP2899012B2 (en) | Character processing apparatus and method | |
| JPH0259873A (en) | Image processing device and image processing method for the image processing device | |
| JP2727667B2 (en) | Drawing equipment | |
| JP3040624B2 (en) | Pattern generator | |
| JP3089014B2 (en) | Output control method and device | |
| JP2728669B2 (en) | External character editing device | |
| JP2972466B2 (en) | Dot pattern compression method and apparatus and output method and apparatus | |
| JP2698348B2 (en) | Character processor | |
| JP2000148734A (en) | Character modification method | |
| JPH04205346A (en) | Printer device | |
| JP3055327B2 (en) | Data converter | |
| JPH0259871A (en) | Image processing device and image processing method | |
| JPS62219180A (en) | Pattern generating device | |
| JPH09309233A (en) | Image forming device and image formation | |
| JPH01129370A (en) | Contour data extraction processing device | |
| JPH0324974A (en) | Character processor | |
| JPH05313635A (en) | Image supply device | |
| JPH05173539A (en) | Print control device |