JPH024548A - Enlarging method for character - Google Patents
Enlarging method for characterInfo
- Publication number
- JPH024548A JPH024548A JP63154647A JP15464788A JPH024548A JP H024548 A JPH024548 A JP H024548A JP 63154647 A JP63154647 A JP 63154647A JP 15464788 A JP15464788 A JP 15464788A JP H024548 A JPH024548 A JP H024548A
- Authority
- JP
- Japan
- Prior art keywords
- character
- enlarged
- font
- dot
- basic character
- 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
- Dot-Matrix Printers And Others (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、ドツト式文字デイスプレィ装置やドツト式
プリンタ等において、基本文字フォントから高品質の拡
大文字のフォントを得ることが可能な文字拡大方法に関
する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a character enlarging method capable of obtaining high-quality enlarged character fonts from basic character fonts in dot-type character display devices, dot-type printers, etc. Regarding.
従来の文字拡大方式として、例えば特開昭50−109
25号公報に示すものが知られている。As a conventional character enlargement method, for example, Japanese Patent Application Laid-Open No. 50-109
The one shown in Publication No. 25 is known.
これは、基本文字フォントを形成する各黒(または白)
点に対してNXN (Nは自然数)ケの黒(白)の正方
形状配列ドツト群を生成し、着目する点Alが第6図に
示すように、
1)互いに隣り合う行中の2点A*、At+tが黒点で
斜関係にある。This forms the base character font for each black (or white)
A group of NXN (N is a natural number) black (white) square array dots is generated for the points, and the points A to focus on are as shown in Figure 6: 1) Two points A in adjacent rows *, At+t are black dots and have an oblique relationship.
2)i行にあって、列がAl+1と同一列に配置する点
が黒でなく、かつi+1行で列がA+ と同一列に位置
する点も黒でない(第6図(b)参照)。2) The point located in row i and in the same column as Al+1 is not black, and the point located in row i+1 and in the same column as A+ is also not black (see FIG. 6(b)).
なる補間条件が成立するとき、幅Nドツト分の辺3角形
状に配列したドツト群で補間して拡大文しかしながら、
上述の如き従来方式においては、基本文字フォントを構
成する各ドツト毎に上述の如き補間条件をあてはめてチ
エツクしなければならないため、通常の文字だと16X
16回もの条件チエツクを行うことになり、補間処理に
時間が掛かると云う問題がある。また、これは1文字に
ついての話しであるので、文字数が多くなればその分だ
け補間時間も長くなるわけである。When the interpolation conditions are satisfied, the enlarged sentence is interpolated using a group of dots arranged in a triangular shape with sides of width N dots. However,
In the conventional method described above, the interpolation conditions described above must be applied and checked for each dot that makes up the basic character font, so for normal characters, 16X
There is a problem in that the conditions are checked 16 times and the interpolation process takes a long time. Furthermore, since this is a discussion about one character, the more characters there are, the longer the interpolation time will be.
したがって、この発明は高速な補間処理が可能な文字拡
大方法を提供することを目的とする。Therefore, an object of the present invention is to provide a character enlargement method that allows high-speed interpolation processing.
字形のくずれ部が(補関しなければならない点カリ基本
文字フォントの斜線上で生ずることに着目して、次のよ
うな手順により所望の拡大文字を得る。Paying attention to the fact that the distorted part of the character shape occurs on the diagonal line of the dotted basic character font (which must be interpolated), the desired enlarged character is obtained by the following procedure.
■、基本文字とそれを1ドツト右にシフトしたものとの
論理積をとる。② Perform a logical product between the basic character and its value shifted one dot to the right.
■、基本文字とそれを1ドツト左にシフトしたものとの
論理積をとる。② Perform a logical product between the basic character and its value shifted one dot to the left.
■、■と■の論理積をとる。■, Take the logical product of ■ and ■.
■、基本文字とそれを1ドツト上にシフトしたものとの
論理積をとる。(2) Performs a logical AND between the basic character and its shifted position up one dot.
■、基本文字とそれを1ドツト下にシフトしたものとの
論理積をとる。② Perform a logical product between the basic character and its value shifted down by one dot.
■、■と■の論理積をとる。■, Take the logical product of ■ and ■.
■、■と■の論理和をとる。■, Take the logical sum of ■ and ■.
■、■と基本文字フォントとの□排他的論理和をとる。□ Exclusive OR of ■, ■ and the basic character font.
■、■をn(自然数)倍に拡大する。Expand ■ and ■ by n (natural number) times.
[相]、■をn−1ドツトだけ右、左、上、下に各々シ
フトしたものと論理積をとる。[Phase] and ■ are logically ANDed with those shifted by n-1 dots to the right, left, up, and down.
■、基本文字フォントをn倍に拡大する。■ Enlarge the basic character font by n times.
■、■と■の論理和をとる。■, Take the logical sum of ■ and ■.
基本文字フォントとこれをシフトしたものとのAND、
OR論理の組み合わせで字くずれ部が生ずる部分を抽出
し、この部分のみについて拡大したのちシフトおよびA
NDを実行することでくずれ部の補正ドツトを作成し、
これをさらに基本文字フォントを拡大したものと組み合
わせることにより、目的とする字くずれ部を補正し“た
拡大文字を高速に得る。AND of the basic character font and the shifted version of this,
Extract the part where a misshapen part occurs due to the combination of OR logic, enlarge only this part, and then shift and A.
By executing ND, a correction dot for the broken part is created,
By further combining this with an enlarged version of the basic character font, the desired enlarged characters with corrected misshapen parts can be obtained at high speed.
第1図はこの発明の実施例を示すフローチャート、第2
図はこの発明を実施するためのハードウェア構成図、第
3図は基本文字フォントと拡大文字フォントを説明する
ための説明図、第4八図ないし第4F図は拡大処理過程
を具体的に説明するための説明図である。FIG. 1 is a flowchart showing an embodiment of the invention, and FIG.
The figure is a hardware configuration diagram for implementing this invention, Figure 3 is an explanatory diagram for explaining the basic character font and enlarged character font, and Figures 48 to 4F specifically explain the enlargement processing process. FIG.
まず、第2図から説明する。同図において、CPU3は
このシステム全体を制御する、マイクロコンピュータの
如き処理装置である。ROM/RAM2はマイクロコン
ピュータ3が動作するためのプログラムや制御のための
データ、および拡大文字のためのドツトデータを格納す
る。キヤ・ラクタジェネレータ1は、基本文字のドツト
パターン(フォントパターン)を格納している。この中
には1/4角文字、半角文字、全角文字などのフォント
パターンが文字コード単位で格納されている。First, explanation will be given starting from FIG. In the figure, a CPU 3 is a processing device such as a microcomputer that controls the entire system. The ROM/RAM 2 stores programs for the operation of the microcomputer 3, data for control, and dot data for enlarged characters. The character generator 1 stores dot patterns (font patterns) of basic characters. Font patterns such as quarter-width characters, half-width characters, and full-width characters are stored in this file in character code units.
表示コントローラ4は、CPU3で拡大した文字データ
を表示するための表示制御用として設けられている。V
RAM5は表示装置6に表示するための表示データを、
ドツトパターンで格納しておくためのメモリである0表
示装置6は拡大文字等の表示を行うもので、LCD (
液晶)、CRT。The display controller 4 is provided for display control to display character data enlarged by the CPU 3. V
The RAM 5 stores display data to be displayed on the display device 6.
The 0 display device 6, which is a memory for storing dot patterns, displays enlarged characters, etc.
liquid crystal), CRT.
プラズマ等色々な表示素子が使用可能である。なお、表
示装置のかわりにプリンタを設けて印字するようにして
も良い。Various display elements such as plasma can be used. Note that a printer may be provided in place of the display device for printing.
以下、第1図ないし第4F図を参照して、この発明によ
る文字拡大方法を説明する。The character enlarging method according to the present invention will be explained below with reference to FIGS. 1 to 4F.
まず、C,PU3がキャラクタジェネレータ1から基本
文字フォントを読み込み(第1図■参照)、ROM/R
AM2にストアする。なお、以下の説明において、基本
文字フォントは第3図(a)の如く6×6ドツトとし、
拡大文字は第3図(b)に示す2倍の12X12ドツト
とする。CPU3は基本文字フォントを右に1ドツトシ
フトしたもの(第4A図(イ)参照)と、基本文字フォ
ントとの論理積R()をとる(第1図■および第4A図
(ハ)参照)、同じく、基本文字フォントを左に1ドツ
トシフトしたもの(第4A図(ロ)参照)と、基本文字
フォントとの論理積L(]をとる(第11図および第4
A図(ニ)参照)。次に、上記の論理積の結果どおしの
さらに論理積〜〔〕をとる(第11図および第4A図(
ホ)参照)。First, C and PU3 read the basic character font from the character generator 1 (see Figure 1 ■), and ROM/R
Store on AM2. In the following explanation, the basic character font is 6 x 6 dots as shown in Figure 3(a).
The enlarged characters are 12×12 dots, which is twice the size shown in FIG. 3(b). The CPU 3 calculates the logical product R() of the basic character font shifted one dot to the right (see Figure 4A (a)) and the basic character font (see Figure 1 ■ and Figure 4A (c)). Similarly, take the logical product L(] of the basic character font shifted one dot to the left (see Figure 4A (b)) and the basic character font (see Figures 11 and 4).
(See Figure A (d)). Next, take the logical product ~ [ ] of the results of the above logical product (Figure 11 and Figure 4A (
(e) see).
また、基本文字フォントを上に1ドツトシフトしたもの
(第4B図(イ)参照)と、基本文字フォントとの論理
積U()をとる(第1図■および第4B図(ハ)参照)
。さらに、基本文字フォントを下に1ドツトシフトした
もの(第4B図(ロ)参照)と、基本文字フォントとの
論理積D()をとる(第1図■および第4B図(ニ)参
照)。Also, take the logical product U() of the basic character font shifted up by one dot (see Figure 4B (a)) and the basic character font (see Figure 1 ■ and Figure 4B (c)).
. Furthermore, the logical product D( ) of the basic character font shifted one dot downward (see FIG. 4B (b)) and the basic character font is calculated (see FIG. 1 (2) and FIG. 4B (d)).
次に、上記の論理積どおしく第4B図(ハ)のU〔〕と
同図(ニ)のDC)参照)の論理積V〔〕をとる(第1
1図および第4B図(ホ)参照)。Next, take the logical product V [] of the above logical product (see U [ ] in Figure 4B (c) and DC) in Figure 4B (d)) (see the first
(See Figure 1 and Figure 4B (E)).
左、右に1ドツトシフトして得た論理積の結果(第4A
図(ホ)のH()参照)と、上、下に1ドツトシフトし
て得た論理積の結果(第48図(ホ)のVC)参照)と
の論理和をとったもの(第1図■および第4C図(イ)
のa(3参照)を、さらに基本文字フォントと排他的論
理和をとることにより、第4C図(ロ)のa′〔〕の如
く、拡大した時に字くずれが発生する斜線部のフォント
を得ることができる(第1図0参照)0字くずれは必ず
斜線部のドツト間に発生するので、以上のようなアルゴ
リズムにより右斜め、左斜めのどちらでも抽出すること
ができる。第4C図(ロ)では斜線部のフォント以外に
直線部の端のドツトも残っているが、まわりに連続した
ドツトがないため(もしまわりにドツトがあれば、それ
は斜線になるため上記アルゴリズムの結果に反映される
。)、以下に示す補間アルゴリズムにより消去される。The logical product result obtained by shifting one dot to the left and right (4th A)
(See H() in Figure (E))) and the result of logical product obtained by shifting up and down by one dot (See VC in Figure 48 (E))) (Figure 1) ■ and Figure 4C (a)
By further exclusive-ORing a (see 3) with the basic character font, we obtain a font with diagonal lines that are distorted when enlarged, as shown in a' [ ] in Figure 4C (b). (See FIG. 1, 0.) Since zero-character errors always occur between the dots in the diagonally shaded area, the algorithm described above can extract them either diagonally to the right or diagonally to the left. In Figure 4C (b), in addition to the font in the diagonal line, there are also dots at the ends of the straight line, but since there are no continuous dots around them (if there were dots around them, they would be diagonal lines, so the above algorithm (reflected in the results), and are eliminated by the interpolation algorithm shown below.
すなわち、以上の如くして得たフォントを、第4D図の
如く2倍に拡大したものA()と(第1図■でn=2の
例)、これを各々上、下、右。That is, the font obtained in the above manner is enlarged twice as shown in FIG. 4D, A() (example of n=2 in FIG. 1), and these are shown at the top, bottom, and right, respectively.
左に1ドツトずつシフトしたものとの間で論理積をとる
と、第4E図のように補間すべきドツトA′〔〕を得る
ことができる(第1図0参照)。これと、基本文字フォ
ントを2倍したちのB()との論理和をとれば、第4F
図に示すようにくずれ部を補間した拡大文字B′〔〕を
得ることができる(第1図@、■参照)。CPU3はこ
れを表示コントローラ4に出力することにより(第1図
0参照)、表示装置6上に第4F図に示す表示を行うこ
とがで声る。なお、以上の如き操作は1文字ずつに限ら
ず、複数文字について同時に行うことができるのは云う
迄もない。By performing a logical product with the result shifted one dot at a time to the left, the dot A' [ ] to be interpolated can be obtained as shown in FIG. 4E (see FIG. 10). If we take the logical sum of this and B() which is twice the basic character font, we get the 4th F.
As shown in the figure, an enlarged character B' [ ] can be obtained by interpolating the distorted portion (see Fig. 1 @, ■). By outputting this to the display controller 4 (see FIG. 10), the CPU 3 can perform the display shown in FIG. 4F on the display device 6. It goes without saying that the above operations are not limited to one character at a time, but can be performed on multiple characters at the same time.
以上説明したように、基本文字フォントを利用してシフ
ト9論理和、論理積を組み合わせた簡易な方法であるか
ら、1ドツトずつ補間すべきが否かを判定する従来方式
よりも、字くずれ部を補間した拡大文字を高速に得るこ
とができる。As explained above, since this is a simple method that uses a basic character font and combines shift 9 logical sum and logical product, it is more effective than the conventional method of determining whether or not to interpolate one dot at a time. It is possible to quickly obtain enlarged characters by interpolating the .
なお、以上では2倍に拡大する例について説明したが、
N倍に拡張しても同様の結果を得ることができる。この
場合には、斜線部を拡大したものをシフトする時に、以
上の説明のように1ドツトではなく、N−1ドツトシフ
トすることになる。In addition, above we have explained an example of doubling the size, but
A similar result can be obtained even if it is expanded N times. In this case, when the enlarged shaded area is shifted, it is shifted by N-1 dots instead of by 1 dot as explained above.
例えば、3倍の場合を例にとると、基本文字の斜線部を
抽出するアルゴリズムは2倍の場合と同様なので、結果
として第4C図(ロ)に示すドツトパターンを得ること
ができる。このドツトパターンをN倍(3倍)したもの
が第5A図である。For example, in the case of 3 times the number, the algorithm for extracting the diagonal part of the basic character is the same as in the case of 2 times the number, so the dot pattern shown in FIG. 4C (b) can be obtained as a result. FIG. 5A shows this dot pattern multiplied by N (3 times).
この図において、2倍拡大の場合は1ドツトシフトして
いたが、ニーではN−1ドツトなので、3−1=2ドツ
トだけ上下左右に各々シフトして論理積をとると第5B
図のようになり、図示の如き補間のためのドツトパター
ンを得ることができる。In this figure, in the case of 2x enlargement, there was a shift of 1 dot, but at the knee, it is N-1 dots, so if we shift 3-1 = 2 dots up, down, left and right, and take the logical product, we will see the 5th B.
The result is as shown in the figure, and a dot pattern for interpolation as shown in the figure can be obtained.
これと基本文字を3倍したものとの論理和をとれば、第
5C図に示す3倍の補間が行われた拡大文字を得ること
ができる。If this is logically ORed with the basic character multiplied by three, the enlarged character shown in FIG. 5C, which has been interpolated three times, can be obtained.
このように、斜線部のドツトパターンを拡大して補間す
る時のドツトシフト数を(拡大倍率−1)にすることに
よって、任意の拡大を同一のアルゴリズムで取り扱うこ
とができる。In this way, by setting the number of dot shifts to (enlargement magnification -1) when enlarging and interpolating the dot pattern in the shaded area, any enlargement can be handled by the same algorithm.
この発明によれば、文字のドツトパターンとは関係なく
シフトと論理積、論理和等の論理操作により補間された
拡大文字を得ることができるので、複数文字を拡大する
場合にまとめて行うことができ、従来のような1文字単
位の拡大方式に比べて処理時間を大幅に短縮することが
できる。また、文字のフォント数が同一であれば、文字
の複雑さにか\わらず、一定の処理時間で拡大文字を得
ることが可能となる。According to this invention, it is possible to obtain an enlarged character interpolated by logical operations such as shift, logical product, and logical sum, regardless of the dot pattern of the character, so it is possible to enlarge multiple characters at once. The processing time can be significantly reduced compared to the conventional enlargement method for each character. Furthermore, if the number of fonts for characters is the same, it becomes possible to obtain enlarged characters in a constant processing time, regardless of the complexity of the characters.
第1図はこの発明の実施例を示すフローチャート、第2
図はこの発明を実施するためのハードウェア構成図、第
3図は基本文字フォントと拡大文字フォントを説明する
ための説明図、第4A図ないし第4F図は拡大処理過程
を具体的に説明するための説明図、第5A図ないし第5
C図は3倍の拡大処理を説明するための説明図、第6図
は従来方式を説明するたの説明図である。
符号説明
1・・・キャラクタジェネレータ、2・・−ROM/R
AM、3・・・処理装置(CPU)、4・・・表示コン
トローラ、5−V RA M、6 =表示装置L12′
vA
剪 1 図
冨4A!Il
第4B図
v5人図
115BI11
(α)
八り中1
第4D図
ス4F図
第5C図FIG. 1 is a flowchart showing an embodiment of the invention, and FIG.
The figure is a hardware configuration diagram for carrying out this invention, Figure 3 is an explanatory diagram for explaining the basic character font and enlarged character font, and Figures 4A to 4F specifically explain the enlargement processing process. Explanatory diagrams for, Figures 5A to 5
FIG. C is an explanatory diagram for explaining the 3x enlargement process, and FIG. 6 is an explanatory diagram for explaining the conventional method. Code explanation 1...Character generator, 2...-ROM/R
AM, 3... Processing unit (CPU), 4... Display controller, 5-V RAM, 6 = Display device L12'
vA Ken 1 Zutomi 4A! Il Figure 4B v 5 person figure 115 BI11 (α) Eight years middle 1 Figure 4D Figure 4F Figure 5C
Claims (1)
を得るための文字拡大方法において、基本文字フォント
とその各ドットを上、下、左、右にそれぞれ1ドットシ
フトしたものとの間で論理積演算をして得られる出力の
うち、上と下の各出力間で論理積をとったものと、左と
右の各出力間で論理積をとったものとの間で論理和をと
り、その結果と基本文字フォントとの間で排他的論理和
演算をして斜線上に位置するドット情報を抽出し、該抽
出情報にもとづき字くずれ部を補間して拡大することを
特徴とする文字拡大方法。 2)複数文字について同時に拡大することを特徴とする
請求項1)に記載の文字拡大方法。[Claims] 1) In a character enlargement method for obtaining an enlarged character font several times larger than the basic character font, the basic character font and each dot thereof are shifted by one dot each upward, downward, left, and right. Among the outputs obtained by performing a logical AND operation between , performs an exclusive OR operation between the result and the basic character font, extracts dot information located on the diagonal line, and interpolates and enlarges the misshapen part based on the extracted information. How to enlarge text. 2) The character enlarging method according to claim 1, wherein a plurality of characters are enlarged at the same time.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63154647A JPH024548A (en) | 1988-06-24 | 1988-06-24 | Enlarging method for character |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63154647A JPH024548A (en) | 1988-06-24 | 1988-06-24 | Enlarging method for character |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH024548A true JPH024548A (en) | 1990-01-09 |
Family
ID=15588800
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63154647A Pending JPH024548A (en) | 1988-06-24 | 1988-06-24 | Enlarging method for character |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH024548A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0421467A (en) * | 1990-05-16 | 1992-01-24 | Fujitsu Ltd | Printer |
| KR100922783B1 (en) * | 2008-07-23 | 2009-10-21 | 크로다 우방 주식회사 | Heated Transfer Device Automatic Control System |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62208088A (en) * | 1986-03-10 | 1987-09-12 | キヤノン株式会社 | Image processor |
| JPS62263065A (en) * | 1986-05-12 | 1987-11-16 | Nec Corp | Controller for enlarging dot pattern data |
| JPS6422565A (en) * | 1987-07-16 | 1989-01-25 | Nec Corp | Character enlargement control part |
-
1988
- 1988-06-24 JP JP63154647A patent/JPH024548A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62208088A (en) * | 1986-03-10 | 1987-09-12 | キヤノン株式会社 | Image processor |
| JPS62263065A (en) * | 1986-05-12 | 1987-11-16 | Nec Corp | Controller for enlarging dot pattern data |
| JPS6422565A (en) * | 1987-07-16 | 1989-01-25 | Nec Corp | Character enlargement control part |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0421467A (en) * | 1990-05-16 | 1992-01-24 | Fujitsu Ltd | Printer |
| KR100922783B1 (en) * | 2008-07-23 | 2009-10-21 | 크로다 우방 주식회사 | Heated Transfer Device Automatic Control System |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS63271290A (en) | Character pattern generation system | |
| JPS629961A (en) | Enlarging display method of dot-matrix character | |
| JP2876942B2 (en) | Data converter | |
| JPH02232690A (en) | Data converting device | |
| JPH0369995A (en) | Method of displaying character on raster display | |
| JPH06168334A (en) | Plotting device | |
| JPH08123392A (en) | Data converter | |
| JP3089918B2 (en) | Data converter | |
| JP3039214B2 (en) | Data converter | |
| JP3055327B2 (en) | Data converter | |
| JPH0321990A (en) | Pattern genertaing system | |
| JP3056112B2 (en) | LCD display control method | |
| JP3417753B2 (en) | Method and apparatus for generating gradation character | |
| JP2666552B2 (en) | Line width control method for outline characters | |
| JP3211404B2 (en) | String output device | |
| JP3551459B2 (en) | Image deformation method and apparatus | |
| JP3055306B2 (en) | Data output device | |
| JP2841829B2 (en) | Data converter | |
| JP2675458B2 (en) | Symbol display device | |
| JP3057963B2 (en) | Data converter | |
| JP3089913B2 (en) | High quality character output device | |
| JPS60113283A (en) | Character pattern generator | |
| JP2881924B2 (en) | Data storage device | |
| JPH01250178A (en) | Device and method for raster operation | |
| JPS60229766A (en) | Output control system of interpolation dot pattern |