JPH07156450A - Font size-enlarging device and printer - Google Patents

Font size-enlarging device and printer

Info

Publication number
JPH07156450A
JPH07156450A JP32960293A JP32960293A JPH07156450A JP H07156450 A JPH07156450 A JP H07156450A JP 32960293 A JP32960293 A JP 32960293A JP 32960293 A JP32960293 A JP 32960293A JP H07156450 A JPH07156450 A JP H07156450A
Authority
JP
Japan
Prior art keywords
font
enlarged
basic
character font
enlarging
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
JP32960293A
Other languages
Japanese (ja)
Inventor
Shinya Minauchi
真也 皆内
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP32960293A priority Critical patent/JPH07156450A/en
Publication of JPH07156450A publication Critical patent/JPH07156450A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a printer capable of enlarging a basic character font non-integral times to print it. CONSTITUTION:A character font ROM 14 stores a basic character font in a bit map form. When the basic character font is enlarged to 1.5 times, a control part 11 multiplies dots of an even line and an even row of a bit map of the basic character font one time: longitudinally and transversely, and multiplies dots of an odd line and odd row two times longitudinally and transversely. Therefore, the basic character font is beautifully enlarged to 1.5 times longitudinally and transversely as a whole.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、フォントのサイズを
拡大する装置及び拡大したフォントを印字する装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for enlarging a font size and an apparatus for printing an enlarged font.

【0002】[0002]

【従来の技術】従来のワードプロセッサ、ラベルプリン
タ等の印字装置は、文字フォントを記憶したフォントメ
モリを備え、このフォントメモリをアクセスして被印字
データをドットパターンに変換し、これを印字してい
る。一般的に、これらの印字装置は、文字を拡大して印
刷する機能を有する。
2. Description of the Related Art A conventional printing device such as a word processor or a label printer is equipped with a font memory for storing character fonts. The font memory is accessed to convert print data into a dot pattern and print it. . Generally, these printers have a function of printing characters by enlarging them.

【発明が解決しようとする課題】[Problems to be Solved by the Invention]

【0003】文字フォントはドットパターンから構成さ
れる。一方、メモリ上で文字フォントの各ドットを少数
点単位、即ち、非整数倍に拡大することはできない。こ
のため、従来の印字装置にあっては、拡大倍率が整数倍
に限定され、印字できる文字のサイズが限定されるとい
う問題があった。この発明は上記実状に鑑みてなされた
もので、フォントを整数倍以外の倍率で拡大するフォン
トサイズ拡大装置及び拡大されたフォントを印字するこ
とのできる印字装置を提供することを目的とする。
A character font is composed of dot patterns. On the other hand, it is not possible to enlarge each dot of the character font in the memory to a decimal point unit, that is, a non-integer multiple. Therefore, the conventional printing device has a problem that the enlargement ratio is limited to an integral multiple and the size of printable characters is limited. The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a font size enlarging device for enlarging a font at a magnification other than an integral multiple and a printing device capable of printing the enlarged font.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、この発明のフォントサイズ拡大装置は、基本フォン
トをマトリクス状のビットマップ形式で記憶する基本フ
ォント記憶手段と、前記基本フォント記憶手段に記憶さ
れた基本フォントを、前記ビットマップの縦又は横方向
の少なくとも一方の方向に非整数倍に拡大することを指
定する指定手段と、前記指定手段による拡大指定に応答
し、前記ビットマップの前記少なくとも一方の方向の偶
数番目のビットをN倍に拡大し、奇数番目のビットを前
記N倍と異なるM倍に拡大する拡大手段と、前記拡大手
段により拡大された拡大印字フォントをマトリクス状の
ビットマップ形式で記憶する拡大フォント記憶手段とを
備えることを特徴とする。
To achieve the above object, a font size enlarging device of the present invention stores a basic font in a matrix-like bitmap format and a basic font storage means for storing the basic font in the basic font storage means. Specifying means for specifying that the basic font to be enlarged to a non-integer multiple in at least one of the vertical and horizontal directions of the bitmap, and the at least the bitmap of the bitmap in response to the enlargement designation by the specifying means. Enlargement means for enlarging the even-numbered bits in one direction to N times and the odd-numbered bits to M times different from the N times, and an enlarged print font enlarged by the enlarging means in a matrix bit map. And an enlarged font storage means for storing in a format.

【0005】例えば、前記指定手段がn.5(1.5、
2.5、・・・)倍の拡大を指示した時、前記拡大手段
は、前記ビットマップの偶数列のビットをn倍とn+1
倍の一方の倍率で拡大し、奇数列のビットをn倍とn+
1倍の他方の倍率で拡大することにより基本フォントを
指定された倍率に拡大することができる。
For example, if the designation means is n. 5 (1.5,
(2.5, ...) times, the enlarging means enlarges the bits of the even-numbered column of the bitmap by n times and n + 1.
Magnify by one of the two times and multiply the bits in the odd columns by n times and n +
The basic font can be enlarged to the designated magnification by enlarging the other one magnification.

【0006】[0006]

【作用】上記構成のフォントサイズ拡大装置は、指定手
段により基本フォントの非整数倍の拡大が指定されたと
き、基本フォントの偶数番目のビットと奇数番目のビッ
トとを異なった倍率で拡大する。このため、基本フォン
ト全体では、非整数倍に拡大される。指定手段により指
定された倍率をLとし、L=(M+N)/2の関係を充
足するようにMとNを設定すれば、基本フォントを指定
手段による指定通りのL倍とすることができる。また、
基本フォントの偶数列のビットをn倍とn+1倍の一方
の倍率で拡大し、奇数列のビットをn倍とn+1倍の他
方の倍率で拡大することにより基本フォントをn.5
倍、例えば、1.5倍に拡大できる。
In the font size enlarging device having the above construction, when the non-integer multiple of the basic font is designated by the designating means, the even-numbered bit and the odd-numbered bit of the basic font are enlarged by different magnifications. Therefore, the entire basic font is enlarged to a non-integer multiple. If the magnification designated by the designating means is L and M and N are set so as to satisfy the relationship of L = (M + N) / 2, the basic font can be L times as designated by the designating means. Also,
The basic font is expanded by n.times.n + 1 times the bit of the basic font by enlarging the bits of the even column and n.times.n + 1 times the other ratio of the basic font by expanding the basic font by n.times. 5
The magnification can be increased by a factor of 2, for example, 1.5.

【0007】[0007]

【実施例】以下、本発明の実施例を図面を参照して説明
する。図1は本発明の印字装置を搭載したラベルプリン
タの電子回路の構成を示すブロック図である。このラベ
ルプリンタは、制御部11により回路各部の動作制御が
なされるもので、制御部11には、キー入力部12、入
力データRAM13、文字フォントROM14、拡大文
字フォントROM15、表示駆動部16、印字制御部1
7が接続される。表示駆動部16には表示部18が接続
され、印字制御部17には印字部19が接続される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an electronic circuit of a label printer equipped with the printing apparatus of the present invention. In this label printer, the operation of each part of the circuit is controlled by the control unit 11. The control unit 11 includes a key input unit 12, an input data RAM 13, a character font ROM 14, an enlarged character font ROM 15, a display drive unit 16, and a printing unit. Control unit 1
7 is connected. A display unit 18 is connected to the display drive unit 16, and a printing unit 19 is connected to the print control unit 17.

【0008】キー入力部12は、被印字データを作成す
るための文字・記号キー、「仮名/漢字変換」キー、カ
ーソルキー、実行キー、印字書式(印字文字のサイズ
等)を設定するための書式キー、印字処理を開始させる
ための印刷キー、その他種々の制御キー等を有する。入
力データRAM13は入力されたデータを記憶する。文
字フォントROM14は、キー入力部12から入力可能
なひらがな、カタカナ、漢字、英記号、英数字等の基本
文字フォントを、それぞれ縦横48×48ドットのビッ
トマップ形式で記憶する。
The key input unit 12 is for setting character / symbol keys for creating print data, a "kana / kanji conversion" key, a cursor key, an execution key, and a print format (print character size, etc.). It has a format key, a print key for starting the printing process, and various other control keys. The input data RAM 13 stores the input data. The character font ROM 14 stores basic character fonts such as hiragana, katakana, kanji, English symbols, and alphanumeric characters that can be input from the key input unit 12 in a bitmap format of vertical and horizontal 48 × 48 dots.

【0009】拡大文字フォントRAM15は、文字フォ
ントROM14に記憶されている基本文字フォントデー
タを拡大処理した後のフォントデータをビットマップ形
式で記憶する。
The enlarged character font RAM 15 stores the font data obtained by enlarging the basic character font data stored in the character font ROM 14 in a bitmap format.

【0010】表示部18は、例えば、ドットマトリクス
型の液晶表示装置から構成される。表示駆動部16は、
キー入力部12のキー操作に応じて制御部11から与え
られる被表示データを表示部18に表示させる。印字部
19は、印字媒体となる図示しないラベルテープの幅方
向に対応して配置された96ドットのライン型印字ヘッ
ドを備える一種のラインプリンタである。印字制御部1
7は、制御部11から被印字データの印字パターンが与
えられると、ラベルテープの繰り出し動作に同期させ
て、印字部19に被印字データを印字させる。
The display unit 18 is composed of, for example, a dot matrix type liquid crystal display device. The display drive unit 16 is
Displayed data provided from the control unit 11 in response to a key operation of the key input unit 12 is displayed on the display unit 18. The printing unit 19 is a kind of line printer including a 96-dot line-type print head arranged corresponding to the width direction of a label tape (not shown) serving as a print medium. Print control unit 1
When the print pattern of the print-receiving data is given from the control unit 11, the printing unit 7 prints the print-receiving data in synchronization with the feeding operation of the label tape.

【0011】制御部11は、例えば、CPUやメモリを
内蔵した1チップマイクロプロセッサ等から構成され、
装置全体の動作を制御すると共に、後述する文字拡大の
処理を行う。この拡大処理のため、制御部11は、図示
せぬ、複数のポインタ、拡大処理用のワークエリア等を
備える。
The control unit 11 is composed of, for example, a one-chip microprocessor having a CPU and a memory built therein,
The operation of the entire apparatus is controlled, and the character enlargement processing described later is performed. For this enlargement processing, the control unit 11 includes a plurality of pointers, a work area for enlargement processing, and the like, which are not shown.

【0012】図2(A)は文字フォントROM14に記
憶される基本文字フォントのデータ構成の一例を示す。
基本文字フォントは、縦48ドット(6バイト)×横4
8ドット(6バイト)で構成され、各ドットは”1”又
は”0”の値を有する。標準印字サイズ指定の際には、
このデータがそのまま印字される。
FIG. 2A shows an example of the data structure of the basic character font stored in the character font ROM 14.
The basic character font is vertical 48 dots (6 bytes) x horizontal 4
It is composed of 8 dots (6 bytes), and each dot has a value of "1" or "0". When specifying the standard print size,
This data is printed as it is.

【0013】図2(B)はラベルプリンタにおける2倍
拡大指定の際の拡大状態を示す図であり、基本文字フォ
ントの各ビットは縦横にそれぞれ2倍に拡大される。即
ち、基本文字フォントの各ビットは、同一の値を有する
4ビットに変換される。従って、拡大後のフォントは、
96ビット×96ビットのドットパターンとなる。
FIG. 2B is a diagram showing an enlarged state when the double enlargement is designated in the label printer. Each bit of the basic character font is vertically and horizontally enlarged to double. That is, each bit of the basic character font is converted into 4 bits having the same value. Therefore, the font after expansion is
It becomes a dot pattern of 96 bits × 96 bits.

【0014】図3は上記ラベルプリンタにおける1.5
倍拡大指定の際の拡大状態を示す図である。この場合、
拡大倍率が整数ではないので、基本文字フォントの各ビ
ットをそのまま1.5倍に拡大することができない。そ
こで、本実施例では、縦方向の拡大に関しては、基本文
字フォントの奇数行ドットは2倍とし、偶数行ドットは
1倍とする。そして、横方向の拡大に関しては、基本文
字フォントの奇数列のドットは2倍とし、偶数列のドッ
トは1倍とする。従って、図2(A)の基本文字フォン
トのドットaは2×2ドット、bは2×1ドット、cは
1×2ドット、dは1×1ドットにそれぞれ拡大され、
他のドットe〜nについても同様に拡大される。従っ
て、拡大後のフォントは72ビット×72ビットのドッ
トパターンとなる。拡大前と拡大後のフォントサイズを
図4に示す。
FIG. 3 shows the above-mentioned 1.5 in the label printer.
It is a figure which shows the expansion state at the time of double magnification designation. in this case,
Since the enlargement factor is not an integer, each bit of the basic character font cannot be enlarged to 1.5 times as it is. Therefore, in the present embodiment, regarding the enlargement in the vertical direction, the odd-numbered line dots of the basic character font are doubled, and the even-numbered line dots are multiplied by one. Regarding horizontal expansion, the dots in the odd-numbered columns of the basic character font are doubled, and the dots in the even-numbered columns are multiplied by one. Therefore, the dots a of the basic character font of FIG. 2A are enlarged to 2 × 2 dots, b is 2 × 1 dots, c is 1 × 2 dots, and d is 1 × 1 dot, respectively.
The other dots e to n are similarly enlarged. Therefore, the enlarged font has a dot pattern of 72 bits × 72 bits. The font sizes before and after enlargement are shown in FIG.

【0015】上記のような拡大処理後、必要に応じてソ
フトウエア的にフォントを美しくする処理、例えば、角
を丸める等のスムージング処理を行うことで、基本文字
フォントを一層美しく拡大することができる。
After the enlarging processing as described above, the basic character font can be further magnified beautifully by performing processing for making the font beautiful by software as necessary, for example, smoothing processing such as rounding the corners. .

【0016】次に、上記フォント拡大機能を備えるラベ
ルプリンタの動作を図1と図5を参照して説明する。ま
ず、ユーザはキー入力部12の文字・記号キー、仮名漢
字変換キー、機能キー等を操作して被印字データをこの
ラベルプリンタに入力する。入力された被印字データは
入力データRAM13に順次コード形式で記憶される。
制御部11は、文字フォントROM14に記憶された基
本文字フォントを参照して表示駆動部16に表示データ
を供給する。表示駆動部16は制御部11から供給され
た表示データを表示部18に表示させる。
Next, the operation of the label printer having the font enlarging function will be described with reference to FIGS. First, the user operates the character / symbol key, the kana-kanji conversion key, the function key, etc. of the key input unit 12 to input the print data to the label printer. The input print data is sequentially stored in the input data RAM 13 in the code format.
The control unit 11 refers to the basic character font stored in the character font ROM 14 and supplies the display data to the display drive unit 16. The display drive unit 16 causes the display unit 18 to display the display data supplied from the control unit 11.

【0017】被印字データの入力終了後、印字書式設定
のため、書式キーを操作する。書式キーの操作に応答
し、制御部11は図5のフローチャートに示す処理を開
始する。まず、制御部11は、表示制御部16を介して
表示部18に図6(A)に示す書式設定画面を表示させ
る(ステップS1)。
After inputting the print data, the format key is operated to set the print format. In response to the operation of the format key, the control unit 11 starts the processing shown in the flowchart of FIG. First, the control unit 11 causes the display unit 18 to display the format setting screen shown in FIG. 6A via the display control unit 16 (step S1).

【0018】印字文字のサイズを設定する場合、ユーザ
はカーソルキーを用いてカーソルを移動し、さらに、実
行キーを操作することにより、印字文字サイズの設定を
促す”サイズ”を選択する。この選択はステップS2で
検出され、図6(B)に示す文字サイズ選択画面が表示
部18に表示される(ステップS3)。文字を拡大して
印字する場合、ユーザは印字文字の拡大を指示する”拡
大”を選択する。この操作はステップS4で検出され、
拡大倍率を指定するための拡大倍率選択画面が図6
(C)に示すように表示される(ステップS5)。
When setting the size of the print character, the user moves the cursor by using the cursor key and further operates the execute key to select "size" for prompting the setting of the print character size. This selection is detected in step S2, and the character size selection screen shown in FIG. 6B is displayed on the display unit 18 (step S3). When enlarging and printing a character, the user selects "enlarge" to instruct enlargement of the printed character. This operation is detected in step S4,
The enlargement ratio selection screen for specifying the enlargement ratio is shown in Fig. 6.
It is displayed as shown in (C) (step S5).

【0019】なお、図6(C)の拡大倍率指定画面にお
ける「大全」とは、縦48ドット×横48ドットの全角
基本文字フォントの1.5×1.5倍拡大を示し、「大
1×2」とは、縦48ドット×横48ドットの全角基本
文字フォントの2×2倍拡大を意味する。
In the enlargement ratio designation screen of FIG. 6C, "Daizen" means 1.5 x 1.5 times enlargement of a full-width basic character font of 48 dots in the vertical direction and 48 dots in the horizontal direction. “× 2” means 2 × 2 times expansion of a full-width basic character font of vertical 48 dots × horizontal 48 dots.

【0020】ユーザによる拡大倍率の選択はステップS
6で検出される。さらに、選択された拡大倍率が整数倍
であるか否かが判別される(ステップS7)。拡大倍率
が整数倍の場合、即ち、図6(C)の「大1×2」が選
択された場合、制御部11は、図2(A)と(B)を参
照して説明したように、基本文字フォントの各ドットを
縦及び横方向にそれぞれ2倍して、拡大文字フォントR
AM15上に拡大文字フォントを作成する(ステップS
8)。
The user selects the enlargement ratio in step S.
Detected at 6. Further, it is determined whether or not the selected enlargement ratio is an integral multiple (step S7). When the enlargement ratio is an integral multiple, that is, when “large 1 × 2” in FIG. 6C is selected, the control unit 11 performs the operation as described with reference to FIGS. 2A and 2B. , Enlarged character font R by doubling each dot of the basic character font vertically and horizontally
Create enlarged character font on AM15 (step S
8).

【0021】その後、印字キーが操作されると(ステッ
プS9)、制御部11は拡大文字フォントRAM15に
記憶された被印字データの拡大文字フォントを読みだ
し、印字制御部17に供給する。印字制御部17は、印
字部19を制御して供給された印字データをラベルテー
プに印字する(ステップS10)。
After that, when the print key is operated (step S9), the control section 11 reads out the enlarged character font of the print target data stored in the enlarged character font RAM 15 and supplies it to the print control section 17. The print control unit 17 controls the print unit 19 to print the supplied print data on the label tape (step S10).

【0022】ユーザが選択した拡大倍率が非整数倍の場
合、即ち、図6(C)の「大全」が選択された場合、フ
ローはステップS7からステップS11に進み、図2
(A)と図3を参照して説明したように、基本文字フォ
ントの奇数行及び奇数列のドットを列方向及び行方向に
それぞれ2倍し、偶数行及び偶数列のドットを縦方向及
び横方向にそれぞれ1倍して、拡大文字フォントRAM
15上に拡大文字フォントを作成する(ステップS1
1)。
When the enlargement magnification selected by the user is a non-integer multiple, that is, when "large-scale" in FIG. 6C is selected, the flow proceeds from step S7 to step S11, and FIG.
As described with reference to (A) and FIG. 3, the dots in the odd-numbered rows and the odd-numbered columns of the basic character font are doubled in the column direction and the row direction, respectively, and the dots in the even-numbered rows and the even-numbered columns are changed in the vertical and horizontal directions. Enlarged character font RAM by multiplying by 1 in each direction
Create enlarged character font on 15 (step S1)
1).

【0023】その後、印字キーが操作されると(ステッ
プS9)、制御部11は拡大文字フォントRAM15か
ら被印字データの拡大文字フォントを読みだし、印字制
御部17に供給して、例えば、図7に示すように印字さ
せる(ステップS10)。
After that, when the print key is operated (step S9), the control section 11 reads out the enlarged character font of the print data from the enlarged character font RAM 15 and supplies it to the print control section 17, for example, as shown in FIG. Printing is performed as shown in (step S10).

【0024】なお、図6(A)の書式設定画面におい
て、”方向”が選択された場合には、印字方向、縦書き
/横書きを制御するための処理をステップS12で行
う。図6(A)の書式設定画面において、”テープなが
さ”が選択された場合には、印字ラベルの長さを制御す
るための処理をステップS12で行う。さらに、図6
(B)のサイズ選択画面において、”ひょうじゅん”が
選択された場合には、入力データRAM13に記憶され
た被印字データを文字フォントROM14に記憶された
基本文字フォントのサイズで印字する処理をステップS
12で行う。
When "direction" is selected on the format setting screen of FIG. 6A, a process for controlling the printing direction and vertical / horizontal writing is performed in step S12. When "tape length" is selected on the format setting screen of FIG. 6A, a process for controlling the length of the print label is performed in step S12. Furthermore, FIG.
When "Hyoujun" is selected on the size selection screen of (B), the process of printing the print data stored in the input data RAM 13 in the size of the basic character font stored in the character font ROM 14 is performed. S
Perform at 12.

【0025】次に、ステップS8とS11で実行される
基本文字フォントの拡大処理を図8と図9を参照して具
体的に説明する。図8は基本文字フォントを縦横2倍に
拡大する際の処理の手順、図9は基本文字フォントを縦
横1.5倍に拡大する際の処理の手順を示す。
Next, the basic character font enlargement processing executed in steps S8 and S11 will be specifically described with reference to FIGS. FIG. 8 shows a procedure of processing when the basic character font is enlarged vertically and horizontally twice, and FIG. 9 shows a procedure of processing when the basic character font is enlarged vertically and horizontally 1.5 times.

【0026】まず、図8を参照して基本文字フォントを
縦横2倍に拡大する際の処理の手順を説明する。制御部
11は、拡大対象基本文字フォントの拡大処理対象ドッ
トの横方向の位置を示す横ドット数ポインタPBに1を
セットする。さらに、拡大されたフォントを拡大文字フ
ォントRAM15に書き込む際の始点の座標を書き込み
基準座標(PRX,PRY)として設定する(ステップ
T1)。次に、制御部11は、基本文字フォントの拡大
処理対象ドットの縦方向の位置を示す縦ドット数ポイン
タPCに1をセットする(ステップT2)。
First, with reference to FIG. 8, a procedure of processing for enlarging the basic character font to double the height and width will be described. The control unit 11 sets 1 to the horizontal dot number pointer PB that indicates the horizontal position of the enlargement processing target dot of the enlargement target basic character font. Further, the coordinates of the starting point when the enlarged font is written in the enlarged character font RAM 15 are set as the writing reference coordinates (PRX, PRY) (step T1). Next, the control unit 11 sets 1 to the vertical dot number pointer PC that indicates the vertical position of the enlargement processing target dot of the basic character font (step T2).

【0027】制御部11は、横方向の拡大数を示すポイ
ンタDと縦方向の拡大数を示すポインタEに2をセット
し(ステップT3)、さらに、拡大対象基本文字フォン
トの座標(PB,PC)の位置のデータをそれぞれ有す
る縦横E×Dドットのパターン、即ち、2×2ドットパ
ターンを設定する(ステップT4)。
The control unit 11 sets 2 to the pointer D indicating the horizontal expansion number and the pointer E indicating the vertical expansion number (step T3), and further sets the coordinates (PB, PC) of the basic character font to be expanded. The vertical and horizontal E × D dot patterns each having the position data), that is, a 2 × 2 dot pattern is set (step T4).

【0028】制御部11は、この縦横E×Dドットのパ
ターンに対し、例えば、角を取る等のスムージング処理
を行う(ステップT5)。次に、制御部11は、スムー
ジング処理されたE×Dドットのパターンを拡大文字フ
ォントRAN15に展開する。即ち、このE×Dドット
のパターンを書き込み基準座標(PRX,PRY)を左
上頂点としたE×Dビットの領域に書き込む(ステップ
T6)。これにより、拡大対象基本文字フォントの座標
(PB,PC)の位置のドットが拡大文字フォントRA
M15上で縦横E×Dドットに拡大される。
The control unit 11 performs a smoothing process such as taking a corner on the pattern of vertical and horizontal E × D dots (step T5). Next, the control unit 11 develops the smoothed E × D dot pattern in the enlarged character font RAN15. That is, this E × D dot pattern is written in the E × D bit area with the writing reference coordinates (PRX, PRY) as the upper left vertex (step T6). As a result, the dot at the position of coordinates (PB, PC) of the basic character font to be enlarged becomes the enlarged character font RA
The size is enlarged to horizontal and vertical E × D dots on M15.

【0029】次に、制御部11は、縦ドット数ポインタ
PCに1を加算し(ステップT7)、縦ドット数ポイン
タPCの値が基本文字フォントの縦方向のドット数48
より大きくなったか否か、即ち、49に達したか否かを
チェックする(ステップT8)。ポインタPCの値がド
ット数48に等しいか小さければ、書き込み基準座標P
RYにEを加算し(ステップT9)、その後、ステップ
T3にリターンする。
Next, the control unit 11 adds 1 to the vertical dot number pointer PC (step T7), and the value of the vertical dot number pointer PC is 48 in the vertical direction of the basic character font.
It is checked whether it has become larger, that is, has reached 49 (step T8). If the value of the pointer PC is equal to or smaller than the dot number 48, the writing reference coordinate P
E is added to RY (step T9), and then the process returns to step T3.

【0030】縦ドット数ポインタPCの値がドット数4
8より大きければ、拡大対象基本文字フォントの次の列
のデータを処理するため、横方向ポインタPBに1を加
算する(ステップT10)。次に、横ドット数ポインタ
PBの値が基本文字フォントの横方向のドット数48よ
り大きくなったか否かをチェックする(ステップT1
1)。横ドット数ポインタPBの値が48に等しいか小
さければ、書き込み基準座標PRXにDを加算し、書き
込み基準座標PRYを初期化し(ステップT12)、そ
の後、ステップT2にリターンする。横ドット数ポイン
タPBの値が48より大きければ、1つの基本文字フォ
ントに関しての拡大処理は終了する。次に拡大処理を行
うべき文字があれば、その文字について上述の処理が実
行され、拡大すべき文字がなくなった時点で拡大処理は
終了する。
The value of the vertical dot number pointer PC is the number of dots 4
If it is larger than 8, the horizontal column pointer PB is incremented by 1 to process the data in the next column of the basic character font to be enlarged (step T10). Next, it is checked whether or not the value of the horizontal dot number pointer PB is larger than the horizontal dot number 48 of the basic character font (step T1).
1). If the value of the horizontal dot number pointer PB is equal to or smaller than 48, D is added to the write reference coordinate PRX to initialize the write reference coordinate PRY (step T12), and then the process returns to step T2. If the value of the horizontal dot number pointer PB is larger than 48, the enlarging process for one basic character font ends. If there is a character to be enlarged next, the above process is executed for that character, and the enlargement process ends when there are no more characters to be enlarged.

【0031】次に、図9を参照して基本文字フォントを
縦横1.5倍に拡大する際の処理手順を説明する。ま
ず、制御部11は、拡大対象基本文字フォントの拡大処
理対象ドットの横方向の位置を示す横ドット数ポインタ
PBに1をセットする。さらに、拡大されたフォントを
拡大文字フォントRAM15に書き込む際の始点の座標
を書き込み基準座標(PRX,PRY)として設定する
(ステップU1)。次に、制御部11は、横ドット数ポ
インタPBの値が奇数であるか偶数であるかを判別する
(ステップU2)。奇数であれば横方向の拡大数を示す
ポインタDに2をセットし(ステップU3)、偶数であ
ればポインタDに1をセットする(ステップU4)。
Next, referring to FIG. 9, a processing procedure for enlarging the basic character font by 1.5 times in the vertical and horizontal directions will be described. First, the control unit 11 sets 1 to the horizontal dot number pointer PB indicating the horizontal position of the enlargement processing target dot of the enlargement target basic character font. Further, the coordinates of the starting point when the enlarged font is written in the enlarged character font RAM 15 are set as the writing reference coordinates (PRX, PRY) (step U1). Next, the control unit 11 determines whether the value of the horizontal dot number pointer PB is an odd number or an even number (step U2). If it is an odd number, 2 is set to the pointer D indicating the number of horizontal expansions (step U3), and if it is an even number, 1 is set to the pointer D (step U4).

【0032】制御部11は、基本文字フォントの拡大処
理対象ドットの縦方向の位置を示す縦ドット数ポインタ
PCに1をセットし(ステップU5)、縦ドット数ポイ
ンタPCの値が奇数であるか偶数であるかを判別する
(ステップU6)。奇数であれば、縦方向の拡大数を示
すポインタEに2をセットし(ステップU7)、偶数で
あれば1をセットする(ステップU8)。
The control unit 11 sets 1 to the vertical dot number pointer PC indicating the vertical position of the dot to be enlarged in the basic character font (step U5), and whether the value of the vertical dot number pointer PC is an odd number. It is determined whether it is an even number (step U6). If it is an odd number, 2 is set to the pointer E indicating the number of enlargements in the vertical direction (step U7), and if it is an even number, 1 is set (step U8).

【0033】制御部11は、基本文字フォントの座標
(PB,PC)のドットと同一の値を有する縦横E×D
ドットのパターンを形成し(ステップU9)、これにス
ムージング処理を行う(ステップU10)。さらに、ス
ムージング処理されたE×Dドットを拡大文字フォント
RAM15に展開する。即ち、スムージング処理された
E×Dドットを拡大文字フォントRAM15の座標(P
RX,PRY)を左上頂点とした縦横E×Dドットの領
域に書き込む(ステップU11)。
The control unit 11 controls the horizontal and vertical E × D having the same value as the dot of the coordinates (PB, PC) of the basic character font.
A dot pattern is formed (step U9), and smoothing processing is performed on it (step U10). Further, the smoothed E × D dots are expanded in the enlarged character font RAM 15. That is, the smoothed E × D dots are set to the coordinates (P
(RX, PRY) is written in the area of vertical and horizontal E × D dots with the upper left apex (step U11).

【0034】その後、縦ドット数ポインタPCに1を加
算し(ステップU12)、縦ドット数ポインタPCの値
が基本文字フォントの縦方向のドット数48より大きく
なったか否かがチェックされる(ステップU13)。ポ
インタPCの値がドット数48に等しいか小さければ、
基準座標PRYにポインタPEの値を加算し(ステップ
U14)、その後、フローはステップU6にリターンす
る。
After that, 1 is added to the vertical dot number pointer PC (step U12), and it is checked whether or not the value of the vertical dot number pointer PC is larger than the vertical dot number 48 of the basic character font (step). U13). If the value of the pointer PC is equal to or smaller than the number of dots 48,
The value of the pointer PE is added to the reference coordinate PRY (step U14), and then the flow returns to step U6.

【0035】一方、縦ドット数ポインタPCの値がドッ
ト数48より大きければ、ポインタPBに1を加算する
(ステップU15)。次に、ポインタPBの値が基本文
字フォントの横方向のドット数48より大きくなったか
否かをチェックする(ステップU16)。ポインタPB
の値が48に等しいか小さければ、基準座標PRXにD
を加算し、さらに、基準座標PRYを初期化し、その
後、フローはステップS2にリターンする。ポインタP
Cの値が48より大きければ、1つの基本文字フォント
の拡大処理は終了する。次に拡大処理を行うべき文字が
あれば、その文字について上述の処理が実行され、拡大
すべき文字がなくなった時点で拡大処理は終了する。
On the other hand, if the value of the vertical dot number pointer PC is larger than the dot number 48, 1 is added to the pointer PB (step U15). Next, it is checked whether or not the value of the pointer PB is larger than the horizontal dot number 48 of the basic character font (step U16). Pointer PB
If the value of is less than or equal to 48, then D is
Is added and the reference coordinates PRY are further initialized, and then the flow returns to step S2. Pointer P
If the value of C is larger than 48, the enlargement process of one basic character font ends. If there is a character to be enlarged next, the above process is executed for that character, and the enlargement process ends when there are no more characters to be enlarged.

【0036】上記実施例では、基本文字フォントを非整
数倍に拡大する場合の例として1.5倍に拡大する場合
を説明したが、他の倍率でもよい。例えば、基本文字フ
ォントを縦横2.5倍に拡大する場合は、図9のステッ
プU3においてDに3を設定し、ステップU4において
Dに2を設定し、ステップU7においてEに3を設定
し、ステップU8においてEに2を設定する。即ち、基
本文字フォントを縦横n.5倍(nは自然数)に拡大す
る場合には、例えば図9のステップU3においてDにn
+1を設定し、ステップU4においてDにnを設定し、
ステップU7においてEにn+1を設定し、ステップU
8においてEにnを設定する。また、基本文字フォント
を縦横n(nは2以上の自然数)に拡大する場合には、
例えば図8のステップT3においてDとEにnを設定す
ればよい。
In the above embodiment, the case where the basic character font is enlarged to a non-integer multiple is described as being enlarged to 1.5 times, but other magnifications may be used. For example, when the basic character font is enlarged 2.5 times in the vertical and horizontal directions, D is set to 3 in step U3 of FIG. 9, D is set to 2 in step U4, and E is set to 3 in step U7. In step U8, E is set to 2. That is, the basic character font is vertically and horizontally n. In the case of expanding by 5 times (n is a natural number), for example, in step U3 of FIG.
+1 is set, and in step U4 D is set to n,
In step U7, E is set to n + 1, and step U
In step 8, E is set to n. In addition, when expanding the basic character font to vertical and horizontal n (n is a natural number of 2 or more),
For example, n may be set to D and E in step T3 of FIG.

【0037】本実施例のフォント拡大方法によれば、整
数倍に拡大する時は各ドットを均一に拡大し、非整数倍
に拡大する場合には基本文字フォントの偶数列(行)と
奇数列(行)の別に応じて拡大数を異ならせる。従っ
て、所望の倍率の拡大文字フォントを作成できる。しか
も、基本文字フォントを美しく、例えば、1.5,2,
2.5,3・・・倍に拡大することができる。
According to the font enlarging method of this embodiment, when enlarging to an integer multiple, each dot is uniformly enlarged, and when enlarging to a non-integer multiple, even columns (rows) and odd columns of the basic character font are used. The number of expansions differs depending on the (row). Therefore, an enlarged character font with a desired magnification can be created. Moreover, the basic character font is beautiful, for example, 1.5, 2,
It can be expanded 2.5, 3 ...

【0038】なお、基本文字フォントを例えば縦横1.
5倍する場合に、縦方向(列方向)の拡大に関しては、
奇数行のドットの拡大倍率を1倍とし、偶数行のドット
の拡大倍率を2倍とし、横方向(行方向)の拡大に関し
ては、奇数列のドットの拡大倍率を1倍とし、偶数列の
ドットの拡大倍率を2倍としてもよい。即ち、基本文字
フォントを縦横n.5倍(nは自然数)に拡大する場合
には、例えば図9のステップU3においてDにnを設定
し、ステップU4においてDにn+1を設定し、ステッ
プU7においてEにnを設定し、ステップU8において
Eにn+1を設定するようにしてもよい。また、縦横両
方向に拡大する場合に限らず、縦横の一方向のみに基本
文字フォントを拡大するようにしてもよい。
The basic character font is, for example, 1.
When multiplying 5 times, regarding the expansion in the vertical direction (column direction),
The enlargement ratio of dots in odd-numbered rows is set to 1, the enlargement ratio of dots in even-numbered rows is set to 2 times, and regarding enlargement in the horizontal direction (row direction), the enlargement ratio of dots in odd-numbered rows is set to 1 The magnification of dots may be double. That is, the basic character font is vertically and horizontally n. When expanding to 5 times (n is a natural number), for example, D is set to n in step U3 of FIG. 9, D is set to n + 1 in step U4, E is set to n in step U7, and step U8 is set. In E, n + 1 may be set to E. In addition, the basic character font may be expanded in only one direction, not limited to the case of expanding in both the vertical and horizontal directions.

【0039】図8と図9の例では、制御部11の作業領
域上に縦横E×Dドットのパターンを形成し、これにつ
いてスムージング処理を行い、その後、拡大文字フォン
トRAM15の書き込み基準位置にスムージングされた
データを展開している。しかし、このような手法を取る
必要はない。例えば、拡大文字フォントRAM15に拡
大対象基本文字フォントの拡大処理対象ドットと同一の
データを直接書き込むことにより拡大文字フォントを生
成し、その後、スムージング処理を行うようにしてもよ
い。なお、スムージング処理は必要に応じて行えばよ
い。
In the example of FIGS. 8 and 9, a pattern of vertical and horizontal E × D dots is formed on the work area of the control unit 11, smoothing processing is performed for this, and then smoothing is performed at the writing reference position of the enlarged character font RAM 15. Are expanding the data that was created. However, it is not necessary to take such an approach. For example, the enlarged character font may be generated by directly writing the same data as the enlargement processing target dot of the enlargement target basic character font in the enlarged character font RAM 15, and then the smoothing processing may be performed. The smoothing process may be performed as needed.

【0040】上記実施例では、基本文字フォントのサイ
ズは48×48ドットの全角のみとしたが、48×24
ドットの半角の基本文字フォントを備えるようにしても
よい。この場合、拡大後のドットサイズは倍率2倍の場
合は96×48ドット、倍率1.5倍の場合は72×3
6ドットとなる。また、図8、9の処理で横方向ドット
ポインタPBの値が25に達した時点でその基本文字フ
ォントに関する拡大処理を終了させる。
In the above embodiment, the size of the basic character font is only 48 × 48 dots full width, but it is 48 × 24.
You may make it provide with the half-width basic character font of a dot. In this case, the dot size after enlargement is 96 × 48 dots when the magnification is 2 × and 72 × 3 when the magnification is 1.5 ×
It will be 6 dots. Further, when the value of the horizontal dot pointer PB reaches 25 in the processing of FIGS. 8 and 9, the enlargement processing for the basic character font is terminated.

【0041】上記実施例では、基本文字フォントのサイ
ズを48×48ドットとしたが、これに限定されず、2
4×24ドット、36×36ドット等、任意に選択でき
る。上記実施例においては、本発明をラベルプリンタに
応用した例を説明したが、この発明はこれに限定され
ず、印字を行う種々の装置、例えば、ワードプロセッ
サ、パーソナルコンピュータ等にも応用可能である。
In the above embodiment, the size of the basic character font is 48 × 48 dots, but the size is not limited to this.
4 × 24 dots, 36 × 36 dots, etc. can be arbitrarily selected. In the above embodiments, an example in which the present invention is applied to a label printer has been described, but the present invention is not limited to this, and can be applied to various devices for printing, such as word processors and personal computers.

【0042】[0042]

【発明の効果】以上説明したように、本発明によれば、
拡大倍率が整数倍の場合でも、非整数倍(n.5倍)の
場合でも、適切な拡大フォントを作成できる。従って、
基本文字フォントを非整数倍に拡大した文字を適切に印
字できる。
As described above, according to the present invention,
An appropriate enlarged font can be created regardless of whether the enlargement ratio is an integral multiple or a non-integer multiple (n.5). Therefore,
Characters obtained by expanding the basic character font to a non-integer multiple can be printed properly.

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

【図1】この発明の一実施例にかかるラベルプリンタの
構造を示す図である。
FIG. 1 is a diagram showing a structure of a label printer according to an embodiment of the present invention.

【図2】(A)は基本文字フォントのドットパターンを
示す図である。(B)は図2(A)に示す基本文字フォ
ントを縦横2倍に拡大した時のドットパターンを示す図
である。
FIG. 2A is a diagram showing a dot pattern of a basic character font. FIG. 3B is a diagram showing a dot pattern when the basic character font shown in FIG.

【図3】図2(A)に示す基本文字フォントを縦横1.
5倍に拡大した時のドットパターンを示す図である。
FIG. 3 shows the basic character font shown in FIG.
It is a figure which shows the dot pattern when it expands 5 times.

【図4】基本文字フォントと縦横1.5倍に拡大された
フォントのサイズの差を示す図である。
FIG. 4 is a diagram showing a difference in size between a basic character font and a font enlarged in a length and width of 1.5 times.

【図5】図1に示すラベルプリンタの拡大及び印字の手
順を説明するためのフローチャートである。
5 is a flow chart for explaining a procedure for enlarging and printing the label printer shown in FIG.

【図6】(A)は文字の拡大を設定するための表示メニ
ューの例を示す図である。(B)は文字の拡大を設定す
るための表示メニューの例を示す図である。(C)は文
字の拡大倍率を設定するための表示メニューの例を示す
図である。
FIG. 6A is a diagram showing an example of a display menu for setting enlargement of characters. (B) is a diagram showing an example of a display menu for setting enlargement of characters. (C) is a diagram showing an example of a display menu for setting the enlargement ratio of characters.

【図7】縦横1.5倍に拡大されたフォントの印字例を
示す図である。
FIG. 7 is a diagram showing a print example of a font enlarged in a length and width of 1.5 times.

【図8】基本文字フォントを縦横2倍に拡大する処理手
順を示す図である。
FIG. 8 is a diagram showing a processing procedure for doubling a basic character font vertically and horizontally.

【図9】基本文字フォントを縦横1.5倍に拡大する処
理手順を示す図である。
FIG. 9 is a diagram showing a processing procedure for enlarging a basic character font by 1.5 times in length and width.

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

11・・・制御部、12・・・キー入力部、13・・・入力デー
タRAM、14・・・文字フォントROM、15・・・拡大文
字フォントRAM、16・・・表示駆動部、17・・・印字制
御部、18・・・表示部、19・・・印字部
11 ... Control unit, 12 ... Key input unit, 13 ... Input data RAM, 14 ... Character font ROM, 15 ... Enlarged character font RAM, 16 ... Display drive unit, 17 ... ..Print control unit, 18 ... Display unit, 19 ... Printing unit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】基本フォントをマトリクス状のビットマッ
プ形式で記憶する基本フォント記憶手段と、 前記基本フォント記憶手段に記憶された基本フォント
を、前記ビットマップの縦又は横方向の少なくとも一方
の方向に非整数倍に拡大することを指定する指定手段
と、 前記指定手段による拡大指定に応答し、前記ビットマッ
プの前記少なくとも一方の方向の偶数番目のビットをN
倍に拡大し、奇数番目のビットを前記N倍と異なるM倍
に拡大する拡大手段と、 前記拡大手段により拡大された拡大印字フォントをマト
リクス状のビットマップ形式で記憶する拡大フォント記
憶手段とを備えることを特徴とするフォントサイズ拡大
装置。
1. A basic font storage unit for storing a basic font in a matrix bitmap format, and a basic font stored in the basic font storage unit in at least one of a vertical direction and a horizontal direction of the bitmap. Specifying means for specifying enlargement to a non-integer multiple; and N, for responding to the enlargement specification by the specifying means, for even-numbered bits in the at least one direction of the bitmap.
A magnifying means for magnifying twice and magnifying odd-numbered bits to M times different from the N times; and an enlarged font storage means for storing the enlarged print font enlarged by the enlarging means in a matrix bitmap format. A font size enlarging device characterized by being provided.
【請求項2】前記指定手段により指定された拡大倍率L
と、前記偶数番目のビットの拡大倍率Nと、前記奇数番
目のビットの拡大倍率Mは、L=(M+N)/2の関係
を充足することを特徴とする請求項1記載のフォントサ
イズ拡大装置。
2. A magnifying power L designated by the designating means.
2. The font size enlarging apparatus according to claim 1, wherein the enlarging ratio N of the even-numbered bit and the enlarging ratio M of the odd-numbered bit satisfy the relationship of L = (M + N) / 2. .
【請求項3】前記指定手段がn.5(nは自然数)倍の
拡大を指示した時、前記拡大手段は、前記ビットマップ
の偶数列のビットをn倍とn+1倍の一方の倍率で拡大
し、奇数列のビットをn倍とn+1倍の他方の倍率で拡
大することを特徴とする請求項1又は2記載のフォント
サイズ拡大装置。
3. The designating means comprises n. When a 5 (n is a natural number) times enlargement is instructed, the enlargement means enlarges the bits of the even column of the bitmap by one of n times and n + 1 times, and the bits of the odd column by n times and n + 1. The font size enlarging device according to claim 1, wherein the font size enlarging device enlarges the image at the other magnification.
【請求項4】前記拡大フォント記憶手段に記憶された拡
大フォントを印字する印字手段をさらに備えることを特
徴とする請求項1乃至3のいずれか1つに記載のフォン
トサイズ拡大装置。
4. The font size enlarging device according to claim 1, further comprising a printing unit for printing the enlarged font stored in the enlarged font storage unit.
【請求項5】基本印字フォントをマトリクス状のビット
マップ形式で記憶する基本フォント記憶手段と、 前記基本印字フォントをその行及び列方向においてn.
5(nは自然数)倍に拡大することを指定する指定手段
と、 前記指定手段に応答し、前記ビットマップの行及び列に
おいて偶数番目のビットをn倍とn+1倍の一方の倍率
で拡大し、奇数番目のビットをn倍とn+1倍の他方の
倍率で拡大する拡大手段と、 前記拡大手段により拡大された印字フォントをマトリク
ス状のビットマップ形式で記憶する拡大フォント記憶手
段と、 前記拡大フォント記憶手段に記憶された拡大された印字
フォントを印字する印字手段とを備えることを特徴とす
る印字装置。
5. A basic font storage means for storing a basic print font in a matrix bitmap format, and the basic print font in the row and column directions n.
5 (n is a natural number) times a designating means for designating enlargement, and in response to the designating means, the even-numbered bits in the rows and columns of the bitmap are scaled up by one of n times and n + 1 times. An enlarging means for enlarging odd-numbered bits by the other magnification of n times and n + 1 times, an enlarged font storage means for storing the print font enlarged by the enlarging means in a matrix bitmap format, and the enlarged font And a printing unit for printing the enlarged print font stored in the storage unit.
JP32960293A 1993-12-02 1993-12-02 Font size-enlarging device and printer Pending JPH07156450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32960293A JPH07156450A (en) 1993-12-02 1993-12-02 Font size-enlarging device and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32960293A JPH07156450A (en) 1993-12-02 1993-12-02 Font size-enlarging device and printer

Publications (1)

Publication Number Publication Date
JPH07156450A true JPH07156450A (en) 1995-06-20

Family

ID=18223190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32960293A Pending JPH07156450A (en) 1993-12-02 1993-12-02 Font size-enlarging device and printer

Country Status (1)

Country Link
JP (1) JPH07156450A (en)

Similar Documents

Publication Publication Date Title
JPH046554B2 (en)
JPH07156450A (en) Font size-enlarging device and printer
JP2502971B2 (en) Character output device
JPH04343167A (en) Document processor
JPH06198961A (en) Register dot pattern data processor of document processor
JP2815158B2 (en) Character processor
JPH07156449A (en) Printer and image font-enlarging device
JP2675476B2 (en) Character input device
JP2617190B2 (en) String output device
JP2564779B2 (en) Character output device
JPH07102716B2 (en) Text printing control device
JP3077777B2 (en) Document processing device
JP2564778B2 (en) Character output device
JP2803746B2 (en) Character processing method and apparatus
JP2653911B2 (en) Document processing device with banner printing function
JP3109727B2 (en) Character processing method and character processing device
JPH0728790A (en) Method and device for document processing
JPH05151216A (en) Document processor with frame editing function
JPH04343166A (en) Document processor
JPH0244458A (en) Character processor
JPH10129045A (en) Document forming apparatus
JPH05314124A (en) Print controller for documentation device
JPH10207878A (en) Document editing and printing device
JPS63155356A (en) Document editing device
JPH03235163A (en) Text processor