JPH08118731A - Printer and printing method - Google Patents

Printer and printing method

Info

Publication number
JPH08118731A
JPH08118731A JP6264717A JP26471794A JPH08118731A JP H08118731 A JPH08118731 A JP H08118731A JP 6264717 A JP6264717 A JP 6264717A JP 26471794 A JP26471794 A JP 26471794A JP H08118731 A JPH08118731 A JP H08118731A
Authority
JP
Japan
Prior art keywords
character
font
width
coordinates
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.)
Granted
Application number
JP6264717A
Other languages
Japanese (ja)
Other versions
JP3029379B2 (en
Inventor
Takahiro Shirakawa
貴裕 白川
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 Data Corp
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=17407210&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JPH08118731(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Oki Data Corp filed Critical Oki Data Corp
Priority to JP6264717A priority Critical patent/JP3029379B2/en
Publication of JPH08118731A publication Critical patent/JPH08118731A/en
Application granted granted Critical
Publication of JP3029379B2 publication Critical patent/JP3029379B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE: To prevent the deviation, the protrusion, the superposition or the extension of characters of an entire print on one sheet when a font is replaced. CONSTITUTION: A printer driver 5 has a character width calculator 8 for calculating the width of the character row of a font before replacing and the width of the character row of a font after replacing, a moving amount calculator 9 for calculating the moving amount of each character of the font after replacing from the character width, and a moving unit 10 for moving the characters of the font after replacing to match the moving amount.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、印刷データを印刷機構
に出力して印刷を行う印刷装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing apparatus which outputs print data to a printing mechanism to print.

【0002】[0002]

【従来の技術】従来、印刷データを印刷機構に出力して
印刷を行う印刷装置には、プリンタドライバで印刷デー
タをフォントに置き換え、印刷イメージデータに、座標
展開して出力するものがある。また、印刷命令を出力装
置自体に備えたフォントとは別にフォントを指定し、印
刷イメージに座標展開して印刷するものがある。以下に
そのような従来の印刷装置について図面を参照しながら
説明する。図10は従来の印刷装置による印刷例を示す
説明図である。
2. Description of the Related Art Conventionally, there is a printing apparatus that outputs print data to a printing mechanism to perform printing, replaces the print data with a font by a printer driver, develops coordinates into print image data, and outputs the image data. Also, there is a method in which a print command is designated separately from the font provided in the output device itself, and the coordinates are expanded into a print image and printed. Hereinafter, such a conventional printing apparatus will be described with reference to the drawings. FIG. 10 is an explanatory diagram showing a printing example by a conventional printing apparatus.

【0003】キーボードなどから入力され、印刷データ
メモリに記憶された印刷データは、ホスト内のアプリケ
ーションからプリンタドライバに転送され、ここで印刷
イメージを示すドットに展開される。またここで、印刷
装置自体に備えた入力時のドットフォントがアウトライ
ンフォントに置き換えられる。例えば、入力時のドット
フォントのまま印刷を行うと、図10(a)に示すよう
に文字の斜め線や丸みを帯びた部分が階段状に表現さ
れ、見た目にも良くない印刷になってしまう。従って、
入力時のフォントであるドットフォントを、輪郭線で表
現されるアウトラインフォントに置き換えて、図10
(b)に示すようななめらかな線による高品質の印刷を
行っている。
The print data input from the keyboard or the like and stored in the print data memory is transferred from the application in the host to the printer driver, where it is developed into dots indicating a print image. Further, here, the dot font at the time of input provided in the printing apparatus itself is replaced with the outline font. For example, if printing is performed with the dot font at the time of input, as shown in FIG. 10A, the diagonal lines and rounded portions of the characters are expressed in a staircase pattern, which results in unsightly printing. . Therefore,
The dot font, which is the font at the time of input, is replaced with the outline font expressed by the outline,
High-quality printing is performed with smooth lines as shown in (b).

【0004】[0004]

【発明が解決しようとする課題】従来の印刷装置にあっ
ては、入力時のドットフォントをアウトラインフォント
に置き換えて印刷を行うと、各フォントにおける文字幅
や文字間のスペース幅が異なっているので、一枚の用紙
に対する印刷全体のずれやはみ出し、文字の重なりや拡
がりが生じて、結果的には印刷品質が悪いという問題点
があった。
In the conventional printing apparatus, when the dot font at the time of input is replaced with the outline font and printing is performed, the character width in each font and the space width between characters are different. However, there is a problem in that the printing quality is poor as a result of misalignment or protrusion of the entire printing on one sheet of paper, overlapping or spreading of characters.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に、本発明の印刷装置にあっては、置き換え前のフォン
トの文字列の幅と置き換え後のフォントの文字列の幅と
を計算する文字幅計算部と、文字幅から置き換え後のフ
ォントの各文字の移動量を計算する移動量計算部と、移
動量に合わせて置き換え後のフォントの各文字を移動さ
せる移動部とをプリンタドライバ内に設けた。
In order to solve the above problems, in the printing apparatus of the present invention, the width of the character string of the font before replacement and the width of the character string of the font after replacement are calculated. Within the printer driver, the character width calculation unit, the movement amount calculation unit that calculates the movement amount of each character of the replaced font from the character width, and the movement unit that moves each character of the replaced font according to the movement amount Set up in.

【0006】[0006]

【作用】上記のように構成された印刷装置のプリンタド
ライバに印刷データが送信されると、文字幅計算部が置
き換え前のフォントの文字列の幅と置き換え後のフォン
トの文字列の幅とを計算し、移動量計算部が文字幅から
置き換え後のフォントの各文字の移動量を計算し、一文
字印刷する度に、移動部が移動量に合わせて置き換え後
のフォントの各文字を移動させる。
When the print data is transmitted to the printer driver of the printing apparatus configured as described above, the character width calculation unit determines the width of the character string of the font before replacement and the width of the character string of the font after replacement. The moving amount calculation unit calculates the moving amount of each character of the font after replacement from the character width, and every time one character is printed, the moving unit moves each character of the font after replacement according to the moving amount.

【0007】[0007]

【実施例】本発明の第一実施例について図面を参照しな
がら説明する。なお、各図面に共通な要素には同一の符
号を付す。図1は本発明の第一実施例を示すブロック
図、図2は印刷データと印刷イメージとを示す説明図で
ある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described with reference to the drawings. The elements common to the drawings are designated by the same reference numerals. FIG. 1 is a block diagram showing a first embodiment of the present invention, and FIG. 2 is an explanatory diagram showing print data and print images.

【0008】図1において、印刷装置1は、印刷を制御
するホスト2と、実際に印刷を行う印刷機構としてのプ
リンタ3とで構成される。ホスト2は、印刷データを編
集するアプリケーションプログラム4、キーボードなど
から入力された印刷データを記憶する文字データメモリ
4a、プリンタ3の印刷駆動を制御するプリンタドライ
バ5を有している。
In FIG. 1, a printing apparatus 1 is composed of a host 2 for controlling printing and a printer 3 as a printing mechanism for actually printing. The host 2 has an application program 4 for editing print data, a character data memory 4a for storing print data input from a keyboard and the like, and a printer driver 5 for controlling print driving of the printer 3.

【0009】プリンタドライバ5は、描画命令部6、文
字データ描画部7、文字幅計算部8、移動量計算部9、
移動部10、フォントメモリ31とで構成される。アプ
リケーションプログラム4は描画命令部6に接続され、
描画命令部6には、文字データ描画部7と文字幅計算部
8とが接続される。文字データ描画部7は、カウンタ1
2を有している。この文字データ描画部7は、図2に示
すように、アプリケーションプログラム4から受け取っ
た印刷データ(イ)を印刷イメージデータ(ロ)に座標
により展開し、展開データ用メモリ13に記憶する。
The printer driver 5 includes a drawing command unit 6, a character data drawing unit 7, a character width calculation unit 8, a movement amount calculation unit 9,
It is composed of a moving unit 10 and a font memory 31. The application program 4 is connected to the drawing command section 6,
A character data drawing unit 7 and a character width calculating unit 8 are connected to the drawing command unit 6. The character data drawing unit 7 includes a counter 1
Have two. As shown in FIG. 2, the character data drawing unit 7 develops the print data (a) received from the application program 4 into print image data (b) by coordinates and stores it in the developed data memory 13.

【0010】文字幅計算部8には、移動量計算部9と移
動部10とが順に接続される。フォントメモリ31は、
文字データ描画部7と文字幅計算部8とに接続される。
プリンタ3には、文字データ描画部7と移動部10とが
展開データ用メモリ13を介して接続される。展開デー
タ用メモリ13は、座標展開された1ページ分のイメー
ジデータを一括してプリンタ3に出力する。
A movement amount calculation unit 9 and a movement unit 10 are sequentially connected to the character width calculation unit 8. The font memory 31 is
It is connected to the character data drawing unit 7 and the character width calculation unit 8.
The character data drawing unit 7 and the moving unit 10 are connected to the printer 3 via the expanded data memory 13. The expanded data memory 13 collectively outputs the image data for one page, which has been subjected to coordinate expansion, to the printer 3.

【0011】上述したような各要素について、“pri
nter”という単語を印刷する場合を例に挙げて説明
する。図3は補正前の印刷イメージを示す説明図、図4
は補正後の印刷イメージを示す説明図である。描画命令
部6は、アプリケーションプログラム4から“prin
ter”という単語の印刷命令を受けて、描画命令信号
を文字データ描画部7と文字幅計算部8とに送信する。
文字データ描画部7は、描画命令部6から受け取った印
刷データを印刷イメージデータに展開する。また、文字
データ描画部7は、フォントメモリ31に格納されたデ
ータをもとに、印刷データの入力時のフォントであるド
ットフォントをアウトラインフォントに置き換える。
For each element as described above, "pri"
A case of printing the word "nter" will be described as an example. FIG. 3 is an explanatory diagram showing a print image before correction, and FIG.
FIG. 6 is an explanatory diagram showing a print image after correction. The drawing command unit 6 receives the “print” command from the application program 4.
Upon receiving the print command of the word "ter", the drawing command signal is transmitted to the character data drawing unit 7 and the character width calculation unit 8.
The character data drawing unit 7 expands the print data received from the drawing instruction unit 6 into print image data. Further, the character data drawing unit 7 replaces the dot font, which is the font when the print data is input, with the outline font based on the data stored in the font memory 31.

【0012】図3において、(a)が置き換え前のドッ
トフォントの印刷イメージ、(b)が置き換え後のアウ
トラインフォントの印刷イメージである。文字幅計算部
8は、フォントメモリ31から、置き換え前、置き換え
後のフォントa、フォントbの単語幅データを受取って
計算する。単語幅は、それぞれの単語の先頭から後尾ま
での座標数で表される。この場合、フォントaの単語幅
は250、フォントbの単語幅は286である。
In FIG. 3, (a) shows a dot font print image before replacement, and (b) shows an outline font print image after replacement. The character width calculation unit 8 receives and calculates word width data of font a and font b before and after replacement from the font memory 31. The word width is represented by the number of coordinates from the beginning to the end of each word. In this case, the word width of font a is 250 and the word width of font b is 286.

【0013】移動量計算部9は、文字幅計算部8から上
述したフォントa、フォントbの単語幅データを受取
り、フォントbの各文字の先頭座標の移動量を計算す
る。フォントbの各文字の先頭座標を、それぞれに対応
するフォントaの各文字の先頭座標に合わせるには、
{フォントbの単語幅−フォントaの単語幅}÷(文字
数−1)ずつ各文字間のスペースをつめて移動する。こ
の場合は、 (286−250)÷(7−1)=6・・・(1) となり、6座標分ずつ各文字間のスペースをつめて各文
字を移動し、図4に示すように印刷イメージを補正す
る。
The movement amount calculation unit 9 receives the word width data of the font a and the font b described above from the character width calculation unit 8 and calculates the movement amount of the leading coordinates of each character of the font b. To match the start coordinates of each character in font b with the start coordinates of each character in font a, respectively,
The space between each character is moved by {word width of font b-word width of font a} ÷ (number of characters-1). In this case, (286-250) ÷ (7-1) = 6 ... (1), each character is moved by filling the space between each character by 6 coordinates and printed as shown in FIG. Correct the image.

【0014】移動部10は、文字データ描画部7が一文
字ずつ印刷イメージデータを展開データ用メモリ13に
書き込む度に、移動量計算部9で計算された各文字の移
動量データを展開データ用メモリ13に書き込む。展開
データ用メモリ13は、1ページ分のイメージデータを
記憶した時点でプリンタ3に出力し、プリンタ3は、こ
のイメージデータに応じて印刷を行う。
The moving unit 10 stores the moving amount data of each character calculated by the moving amount calculating unit 9 every time the character data drawing unit 7 writes the print image data in the expanded data memory 13 character by character. Write to 13. The expanded data memory 13 outputs the image data for one page to the printer 3 when the image data is stored, and the printer 3 prints according to the image data.

【0015】上述したような印刷装置1における印刷動
作について図5を参照しながら説明する。図5は第一実
施例の印刷動作を示すフローチャートである。図5にお
いて、ステップ1で描画命令部6が印刷命令を出すと、
ステップ2で文字データ描画部7がフォントaの単語幅
を計算し、ステップ3でフォントbの単語幅を計算す
る。次に、移動量計算部9がステップ4で各文字の移動
量を計算する。ステップ5で文字データ描画部7のカウ
ンタ12内で印字文字n番目を1にする。
The printing operation of the printing apparatus 1 as described above will be described with reference to FIG. FIG. 5 is a flow chart showing the printing operation of the first embodiment. In FIG. 5, when the drawing command unit 6 issues a print command in step 1,
In step 2, the character data drawing unit 7 calculates the word width of font a, and in step 3, the word width of font b is calculated. Next, the movement amount calculation unit 9 calculates the movement amount of each character in step 4. In step 5, the nth print character is set to 1 in the counter 12 of the character data drawing unit 7.

【0016】ステップ6で、文字データ描画部7が文字
数sのn番目の文字の印刷イメージデータを展開データ
用メモリ13に書き込む。ステップ7で、移動部10が
移動量データを展開データ用メモリ13に書き込む。ス
テップ8でカウンタ12内でn←n+1にする。ステッ
プ9でn≦文字数sか否かを判定する。n≦sの場合は
ステップ6から印刷イメージデータと移動量データの書
き込みを繰り返す。n>sの場合はその単語の印刷イメ
ージの書き込みを終了する。
In step 6, the character data drawing unit 7 writes the print image data of the nth character having the character number s in the expanded data memory 13. In step 7, the moving unit 10 writes the moving amount data in the expanded data memory 13. In step 8, n ← n + 1 is set in the counter 12. In step 9, it is determined whether n ≦ the number of characters s. If n ≦ s, writing of print image data and movement amount data is repeated from step 6. When n> s, the writing of the print image of the word is completed.

【0017】なお、本実施例においては、フォントを置
き換えることにより単語幅が拡がる場合を例に挙げて説
明したが、単語幅が縮まる場合も、同じ様に各フォント
の単語幅を計算し、置き換え前のフォントの単語幅と置
き換え後のフォントの単語幅との差をスペースの数で割
った座標分、置き換え後のフォントの各文字間のスペー
スを広げて、各文字の先頭座標を合わせる。
In this embodiment, the case where the word width is expanded by replacing the font has been described as an example, but when the word width is reduced, the word width of each font is calculated and replaced. The space between each character of the font after replacement is widened by the coordinates obtained by dividing the difference between the word width of the font before replacement and the word width of the font after replacement by the number of spaces, and the leading coordinates of each character are adjusted.

【0018】このように、各フォントの単語幅を計算
し、置き換え後のフォントにおける各文字の先頭座標
を、置き換え前フォントにおける各文字の先頭座標に合
わせて各文字を移動して印刷することにより、フォント
を置き換えても、一枚の用紙に対する印刷全体のずれや
はみ出し、文字の重なりや拡がりを防止することが可能
となる。
In this way, the word width of each font is calculated, the head coordinates of each character in the font after replacement are adjusted to the head coordinates of each character in the font before replacement, and each character is moved and printed. Even if the fonts are replaced, it is possible to prevent the misalignment or protrusion of the entire print on one sheet of paper, and the overlapping and spreading of characters.

【0019】次に、本発明の第二実施例について図面を
参照しながら説明する。図6は本発明の第二実施例を示
すブロック図である。図6において、印刷装置11は、
印刷を制御するホスト12と、実際に印刷を行う印刷機
構としてのプリンタ33とで構成される。ホスト12
は、印刷データを編集するアプリケーションプログラム
14と、キーボードなどから入力された印刷データを記
憶する印刷データメモリ14aと、プリンタ33の印刷
駆動を制御するプリンタドライバ15とを有している。
Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 6 is a block diagram showing a second embodiment of the present invention. In FIG. 6, the printing device 11
It is composed of a host 12 that controls printing and a printer 33 as a printing mechanism that actually performs printing. Host 12
Has an application program 14 for editing print data, a print data memory 14a for storing print data input from a keyboard and the like, and a printer driver 15 for controlling print driving of the printer 33.

【0020】プリンタドライバ15は、描画命令部1
6、文字データ描画部17、文字幅計算部18、移動量
計算部19、保持部20、移動部21、フォントメモリ
32とで構成される。アプリケーションプログラム14
は描画命令部16に接続され、描画命令部16には、文
字データ描画部17と文字幅計算部18とが接続され
る。文字データ描画部17は、カウンタ22を有してい
る。この文字データ描画部17は、第一実施例と同様
に、アプリケーションプログラム4から受け取った印刷
データを印刷イメージデータに座標により展開し、展開
データ用メモリ23に記憶する。
The printer driver 15 includes a drawing command section 1
6, a character data drawing unit 17, a character width calculation unit 18, a movement amount calculation unit 19, a holding unit 20, a movement unit 21, and a font memory 32. Application program 14
Is connected to the drawing command unit 16, and the drawing command unit 16 is connected to the character data drawing unit 17 and the character width calculating unit 18. The character data drawing unit 17 has a counter 22. Similar to the first embodiment, the character data drawing unit 17 develops the print data received from the application program 4 into print image data by coordinates and stores it in the developed data memory 23.

【0021】文字幅計算部18には、移動量計算部19
と保持部20とが接続され、これら移動量計算部19と
保持部20とには、移動部21が接続される。文字幅計
算部18には、移動量計算部19と移動部21とが順に
接続される。フォントメモリ32は、文字データ描画部
17と文字幅計算部18とに接続される。プリンタ33
には、文字データ描画部17と移動部21とが展開デー
タ用メモリ23を介して接続される。展開データ用メモ
リ23は、座標展開された1ページ分のイメージデータ
を一括してプリンタ33に出力する。
The character width calculator 18 includes a movement amount calculator 19
And the holding unit 20 are connected, and the moving unit 21 is connected to the movement amount calculation unit 19 and the holding unit 20. The movement amount calculation unit 19 and the movement unit 21 are sequentially connected to the character width calculation unit 18. The font memory 32 is connected to the character data drawing unit 17 and the character width calculation unit 18. Printer 33
The character data drawing unit 17 and the moving unit 21 are connected to each other via the expanded data memory 23. The expanded data memory 23 collectively outputs the image data for one page, which has been subjected to coordinate expansion, to the printer 33.

【0022】上述したような各要素について、“pri
nter”という単語を印刷する場合を例に挙げて説明
する。図7は補正前の印刷イメージを示す説明図、図8
は補正後の印刷イメージを示す説明図である。描画命令
部16は、オペレータのキーボード操作による“pri
nter”という単語の印刷命令を受けて、描画命令信
号を文字データ描画部17と文字幅計算部18とに送信
する。文字データ描画部17は、アプリケーションプロ
グラム14から受け取った印刷データを印刷イメージデ
ータに展開する。また、文字データ描画部17は、フォ
ントメモリ22に格納されたデータをもとに、印刷デー
タの入力時のフォントであるドットフォントをアウトラ
インフォントに置き換える。
For each element as described above, "pri
A case of printing the word "nter" will be described as an example. FIG. 7 is an explanatory diagram showing a print image before correction, and FIG.
FIG. 6 is an explanatory diagram showing a print image after correction. The drawing command unit 16 uses the “pri
In response to the print command of the word "nter", the drawing command signal is transmitted to the character data drawing unit 17 and the character width calculation unit 18. The character data drawing unit 17 prints the print data received from the application program 14 into print image data. In addition, the character data drawing unit 17 replaces the dot font, which is the font when the print data is input, with the outline font based on the data stored in the font memory 22.

【0023】図7において、(a)が置き換え前のドッ
トフォントの印刷イメージ、(b)が置き換え後のアウ
トラインフォントの印刷イメージである。文字幅計算部
18は、これらのデータから、置き換え前のフォントa
における単語の先頭から各文字の後尾までの幅と、置き
換え後のフォントbの各文字幅とを計算する。
In FIG. 7, (a) is a dot font print image before replacement, and (b) is an outline font print image after replacement. The character width calculation unit 18 determines, based on these data, the font a before replacement.
The width from the beginning of the word to the tail of each character and the character width of the font b after replacement are calculated.

【0024】フォントaの単語の先頭からn番目の文字
の後尾までの幅をWa(n)、フォントbのn番目の文
字幅をWb(n)、フォントaの単語の先頭座標位置で
あるカレントポイントを(cp)とする。移動量計算部
19は、文字幅計算部18から上述したフォントa、フ
ォントbの単語幅データを受取る。また、第二実施例に
おける移動量計算部19は、置き換え後のフォントの各
文字を、それぞれに対応する置き換え前のフォントの各
文字の中心座標に合うように移動させる、移動量を計算
する。つまり、置き換え後の各文字を、カレントポイン
ト(cp)から数えて{Wa(n)+Wa(n−1)−
Wb(n)}÷2により求められた距離数h(n)分、
(cp)から移動する。
The width from the beginning of the word of font a to the tail of the nth character is Wa (n), the width of the nth character of font b is Wb (n), and the current position is the beginning coordinate position of the word of font a. The point is (cp). The movement amount calculation unit 19 receives the word width data of the font a and the font b described above from the character width calculation unit 18. Further, the movement amount calculation unit 19 in the second embodiment calculates the movement amount by which each character of the font after replacement is moved so as to be aligned with the center coordinate of each character of the font before replacement corresponding thereto. That is, each character after replacement is counted from the current point (cp) and is {Wa (n) + Wa (n-1)-.
Wb (n)} / 2 distance number h (n),
Move from (cp).

【0025】例えば、1番目の文字“P”については、
Wa(1)=49、Wa(1−1)=0、Wb(1)=
56なので、 h(1)=49+0−56÷2=−3.5・・・(2) 式(2)より、置き換え後のフォントbの“P”の文字
を(cp)より3.5座標左に移動する。これにより、
図8に示すようにフォントbにおける文字の中心座標が
フォントaにおける文字の中心座標にそろう。また、2
番目の文字“r”については、Wa(2)=79、Wa
(2−1)=49、Wb(2)=34なので、 h(2)=79+49−34÷2=47・・・(3) 式(3)より、フォントbの“r”の文字を、(cp)
から47座標右にずらすと、“P”と同様にフォントb
における文字の中心座標がフォントaにおける文字の中
心座標にそろう。同じ様に、以下n番目の文字について
も移動量を計算し、印刷イメージを補正する。
For example, for the first character "P",
Wa (1) = 49, Wa (1-1) = 0, Wb (1) =
Since it is 56, h (1) = 49 + 0−56 ÷ 2 = −3.5 ... (2) From the formula (2), the character “P” of the font b after replacement is 3.5 coordinates from (cp). Move to the left. This allows
As shown in FIG. 8, the center coordinates of the character in the font b are aligned with the center coordinates of the character in the font a. Also, 2
For the th character "r", Wa (2) = 79, Wa
Since (2-1) = 49 and Wb (2) = 34, h (2) = 79 + 49-34 / 2 = 47 (3) From the formula (3), the character "r" of the font b is changed to (Cp)
When shifted to the right by 47 coordinates, the font b is the same as "P".
The central coordinates of the character in the font a are aligned with the central coordinates of the character in the font a. Similarly, the movement amount is calculated also for the nth character, and the print image is corrected.

【0026】保持部20は、フォントaの単語の先頭座
標位置であるカレントポイント(cp)を記憶する。移
動部21は、文字データ描画部17が一文字ずつ印刷イ
メージデータをプリンタ3に出力する度に、移動量計算
部19で計算された移動量h(n)と保持部20に記憶
されたカレントポイント(cp)とにより計算された各
文字の移動量データを、プリンタ33に出力する。プリ
ンタ33は、印刷イメージデータと移動量データに応じ
て印刷を行う。
The holding unit 20 stores the current point (cp) which is the leading coordinate position of the word of the font a. Every time the character data drawing unit 17 outputs the print image data to the printer 3 by the character data drawing unit 17, the moving unit 21 calculates the moving amount h (n) calculated by the moving amount calculating unit 19 and the current point stored in the holding unit 20. The movement amount data of each character calculated by (cp) is output to the printer 33. The printer 33 prints according to the print image data and the movement amount data.

【0027】上述したような印刷装置11における印刷
動作について図9を参照しながら説明する。図9は第二
実施例の印刷動作を示すフローチャートである。図9に
おいて、ステップ11で描画命令部16が印刷命令を出
すと、ステップ12で文字データ描画部7がフォントa
のWa(n)を計算し、ステップ13でフォントbのW
b(n)を計算する。次に、ステップ14でカレントポ
イント(cp)を保持部20に記憶し、ステップ15で
文字データ描画部17のカウンタ22内でn←1にす
る。
The printing operation of the printing apparatus 11 as described above will be described with reference to FIG. FIG. 9 is a flowchart showing the printing operation of the second embodiment. In FIG. 9, when the drawing command unit 16 issues a print command in step 11, the character data drawing unit 7 causes the font a in step 12.
Wa (n) of the font b is calculated in step 13
Calculate b (n). Next, in step 14, the current point (cp) is stored in the holding unit 20, and in step 15, n ← 1 is set in the counter 22 of the character data drawing unit 17.

【0028】ステップ16で、移動量計算部19が移動
量の計算h(n)={Wa(n)+Wa(n−1)−W
b(n)}÷2、およびh(n)+(cp)を行う。こ
の数値をもとに、移動部21がステップ17で移動量デ
ータを展開データ用メモリ23に書き込む。ステップ1
8で、文字データ描画部17が文字数sのn番目の文字
の印刷イメージデータを展開データ用メモリ23に書き
込む。ステップ19でカウンタ12内でn←n+1にす
る。ステップ20でn≦文字数sか否かを判定する。n
≦sの場合はステップ16で移動量の計算と、移動量デ
ータと印刷イメージデータの書き込みを繰り返す。n>
sの場合はその単語の印刷イメージの書き込みを終了す
る。
In step 16, the movement amount calculation unit 19 calculates the movement amount h (n) = {Wa (n) + Wa (n-1) -W.
b (n)} / 2 and h (n) + (cp). Based on this numerical value, the moving unit 21 writes the moving amount data in the expanded data memory 23 in step 17. Step 1
In step 8, the character data drawing unit 17 writes the print image data of the nth character having the number of characters s in the expanded data memory 23. In step 19, the counter 12 is set to n ← n + 1. In step 20, it is determined whether n ≦ the number of characters s. n
If ≤s, the calculation of the movement amount and the writing of the movement amount data and the print image data are repeated in step 16. n>
In the case of s, the writing of the print image of the word is completed.

【0029】なお、第二実施例においても、第一実施例
と同様に、フォントを置き換えることにより単語幅が拡
がる場合を例に挙げて説明したが、単語幅が縮まる場合
も、同じ様に置き換え前のフォントにおける単語の先頭
から各文字の後尾までの幅である座標数と、置き換え後
のフォントの各文字幅である座標数とを計算各フォント
の単語幅を計算し、上述したような計算式により移動量
を計算して置き換え後のフォントにおける各文字を移動
し、対応する各文字の中心座標を合わせる。
In the second embodiment as well, similar to the first embodiment, the case where the word width is expanded by replacing the font has been described as an example. However, when the word width is reduced, the replacement is similarly performed. Calculate the number of coordinates, which is the width from the beginning of the word in the previous font to the end of each character, and the number of coordinates, which is the width of each character in the replaced font, calculate the word width of each font, and calculate as described above. The amount of movement is calculated by the formula, each character in the replaced font is moved, and the center coordinates of the corresponding characters are adjusted.

【0030】このように、置き換え前のフォントにおけ
る単語の先頭から各文字の後尾までの幅である座標数
と、置き換え後のフォントの各文字幅である座標数とを
計算各フォントの単語幅を計算し、上述したような計算
式により移動量を計算して置き換え後のフォントにおけ
る各文字を移動して印刷することにより、フォントを置
き換えた場合、各文字の中心座標を合わせるので、一枚
の用紙に対する印刷全体のずれやはみ出し、文字の重な
りや拡がりを、第一実施例に比べてより防止することが
可能となる。
In this way, the coordinate number which is the width from the beginning of the word in the font before replacement to the tail of each character and the coordinate number which is the character width in the font after replacement are calculated, and the word width of each font is calculated. When the font is replaced by calculating and calculating the amount of movement using the above formula and moving and printing each character in the font after replacement, the center coordinates of each character are adjusted, so It is possible to prevent misalignment or protrusion of the entire print on the paper and overlapping or spreading of characters compared to the first embodiment.

【0031】[0031]

【発明の効果】本発明は、以上説明したように構成され
ているので、以下に記載されるような効果を奏する。
Since the present invention is configured as described above, it has the following effects.

【0032】すなわち、置き換え前のフォントの文字列
の幅と置き換え後のフォントの文字列の幅とを座標数と
して計算する文字幅計算部と、座標数から置き換え後の
フォントの各文字の移動量を計算する移動量計算部と、
移動量に合わせて置き換え後のフォントの各文字を移動
させる移動部とをプリンタドライバ内に設けたことによ
り、フォントを置き換えても、一枚の用紙に対する印刷
全体のずれやはみ出し、文字の重なりや拡がりを防止す
ることができ、印刷品質を向上することが可能となる。
That is, the character width calculator that calculates the width of the character string of the font before replacement and the width of the character string of the font after replacement as the number of coordinates, and the amount of movement of each character of the font after replacement from the number of coordinates. A movement amount calculation unit that calculates
The printer driver has a moving unit that moves each character of the font after replacement according to the amount of movement, so that even if the font is replaced, the entire print is misaligned or sticking out on one sheet of paper, or the characters overlap. Spreading can be prevented, and print quality can be improved.

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

【図1】本発明の第一実施例を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】印刷データと印刷イメージとを示す説明図であ
る。
FIG. 2 is an explanatory diagram showing print data and a print image.

【図3】補正前の印刷イメージを示す説明図である。FIG. 3 is an explanatory diagram showing a print image before correction.

【図4】補正後の印刷イメージを示す説明図である。FIG. 4 is an explanatory diagram showing a print image after correction.

【図5】第一実施例の印刷動作を示すフローチャートで
ある。
FIG. 5 is a flowchart showing a printing operation of the first embodiment.

【図6】本発明お第二実施例を示すブロック図である。FIG. 6 is a block diagram showing a second embodiment of the present invention.

【図7】補正前の印刷イメージを示す説明図である。FIG. 7 is an explanatory diagram showing a print image before correction.

【図8】補正後の印刷イメージを示す説明図である。FIG. 8 is an explanatory diagram showing a print image after correction.

【図9】第二実施例の印刷動作を示すフローチャートで
ある。
FIG. 9 is a flowchart showing a printing operation of the second embodiment.

【図10】従来の印刷装置による印刷例を示す説明図で
ある。
FIG. 10 is an explanatory diagram illustrating an example of printing by a conventional printing device.

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

1、11 印刷装置 5、15 プリンタドライバ 8、18 文字幅計算部 9、19 移動量計算部 10、20 移動部 1, 11 printing device 5, 15 printer driver 8, 18 character width calculation unit 9, 19 movement amount calculation unit 10, 20 movement unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プリンタドライバで印刷データをフォン
トに置き換え、印刷イメージデータに、座標展開して印
刷する印刷装置において、 置き換え前のフォントの文字列の幅と置き換え後のフォ
ントの文字列の幅とを計算する文字幅計算部と、 上記文字幅から置き換え後のフォントの各文字の移動量
を計算する移動量計算部と、 上記移動量に合わせて置き換え後のフォントの各文字を
移動させる移動部とを上記プリンタドライバ内に設けた
ことを特徴とする印刷装置。
1. In a printing device that replaces print data with a font by a printer driver and develops coordinates into print image data and prints, the width of the character string of the font before replacement and the width of the character string of the font after replacement. A character width calculation unit that calculates, a movement amount calculation unit that calculates the movement amount of each character of the font after replacement from the character width, and a movement unit that moves each character of the replaced font according to the movement amount. And a printer provided in the printer driver.
【請求項2】 上記置き換え後のフォントの各文字の先
頭座標を、それぞれに対応する上記置き換え前のフォン
トの各文字の先頭座標に合わせて移動させる請求項1記
載の印刷装置。
2. The printing apparatus according to claim 1, wherein the head coordinates of each character of the font after replacement are moved in accordance with the head coordinates of each character of the font before replacement corresponding to the respective characters.
【請求項3】 上記置き換え後のフォントの各文字の中
心座標を、それぞれに対応する上記置き換え前のフォン
トの各文字の中心座標に合わせて移動させる請求項1記
載の印刷装置。
3. The printing apparatus according to claim 1, wherein the center coordinates of each character of the font after replacement are moved in accordance with the center coordinates of each character of the font before replacement corresponding to the respective characters.
【請求項4】 プリンタドライバで印刷データをフォン
トに置き換え、印刷イメージデータに、座標展開して出
力する印刷方法において、 置き換え後のフォントの各文字の所定の座標を、それぞ
れに対応する置き換え前のフォントの各文字の所定の座
標に合わせて、印刷データを出力することを特徴とする
印刷方法。
4. A printing method in which print data is replaced by a font by a printer driver, coordinates are expanded into print image data and output, and predetermined coordinates of each character of the replaced font are replaced with corresponding pre-replacement characters. A printing method characterized by outputting print data according to predetermined coordinates of each character of a font.
【請求項5】 上記所定の座標は、先頭座標である請求
項4記載の印刷方法。
5. The printing method according to claim 4, wherein the predetermined coordinates are start coordinates.
【請求項6】 上記所定の座標は、中心座標である請求
項4記載の印刷方法。
6. The printing method according to claim 4, wherein the predetermined coordinates are center coordinates.
JP6264717A 1994-10-28 1994-10-28 Printing apparatus and printing method Expired - Lifetime JP3029379B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6264717A JP3029379B2 (en) 1994-10-28 1994-10-28 Printing apparatus and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6264717A JP3029379B2 (en) 1994-10-28 1994-10-28 Printing apparatus and printing method

Publications (2)

Publication Number Publication Date
JPH08118731A true JPH08118731A (en) 1996-05-14
JP3029379B2 JP3029379B2 (en) 2000-04-04

Family

ID=17407210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6264717A Expired - Lifetime JP3029379B2 (en) 1994-10-28 1994-10-28 Printing apparatus and printing method

Country Status (1)

Country Link
JP (1) JP3029379B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113661A (en) * 2008-11-10 2010-05-20 Seiko Epson Corp Device, system, and method for generating electronic file, and computer program
CN102019768A (en) * 2009-09-15 2011-04-20 精工爱普生株式会社 Recording device, control method for a recording device, and a program
JP2014130470A (en) * 2012-12-28 2014-07-10 Canon Marketing Japan Inc Information processor, information processing method and computer program
US11979525B2 (en) 2020-09-08 2024-05-07 Fujifilm Business Innovation Corp. Information processing apparatus and system and non-transitory computer readable medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010113661A (en) * 2008-11-10 2010-05-20 Seiko Epson Corp Device, system, and method for generating electronic file, and computer program
CN102019768A (en) * 2009-09-15 2011-04-20 精工爱普生株式会社 Recording device, control method for a recording device, and a program
JP2014130470A (en) * 2012-12-28 2014-07-10 Canon Marketing Japan Inc Information processor, information processing method and computer program
US11979525B2 (en) 2020-09-08 2024-05-07 Fujifilm Business Innovation Corp. Information processing apparatus and system and non-transitory computer readable medium

Also Published As

Publication number Publication date
JP3029379B2 (en) 2000-04-04

Similar Documents

Publication Publication Date Title
US4818125A (en) Electronic typewriter with word correction function including pitch changing means
JP2023157920A5 (en)
JPS6144074B2 (en)
JP4071310B2 (en) Printing control method and printing apparatus in printing apparatus
JP3029379B2 (en) Printing apparatus and printing method
JP3150305B2 (en) Image processing method
JPH0242073B2 (en)
JP3029067B2 (en) Label printer
JPH0263762A (en) Output apparatus
JPH01229673A (en) English and european writing printing control system
JP2876628B2 (en) Printing device
JPH04323055A (en) Output method and apparatus
JP2624744B2 (en) How to set character width of printing machine
JP3457555B2 (en) Printer device and printer system
JPH049637Y2 (en)
JP3419450B2 (en) Pixel data processing apparatus and method
JPH0234046Y2 (en)
JP2738189B2 (en) Coordinate conversion method and coordinate conversion device
JPH04326460A (en) Character processor
JPS637963A (en) Printing apparatus
JPH0689019A (en) Slip plotting system and proofreading paper
JPH0511736A (en) Character pattern output device
JPH0852910A (en) Data machinery
JPS59117679A (en) Control system of character interval in dot printer
JPH01148562A (en) Documentation editing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000118

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120204

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130204

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140204

Year of fee payment: 14

EXPY Cancellation because of completion of term