JPH06143692A - Document printing apparatus - Google Patents

Document printing apparatus

Info

Publication number
JPH06143692A
JPH06143692A JP4314384A JP31438492A JPH06143692A JP H06143692 A JPH06143692 A JP H06143692A JP 4314384 A JP4314384 A JP 4314384A JP 31438492 A JP31438492 A JP 31438492A JP H06143692 A JPH06143692 A JP H06143692A
Authority
JP
Japan
Prior art keywords
size
typeface
font
printing
designated
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
JP4314384A
Other languages
Japanese (ja)
Other versions
JP3341048B2 (en
Inventor
Masaharu Kadokura
雅春 門倉
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 JP31438492A priority Critical patent/JP3341048B2/en
Publication of JPH06143692A publication Critical patent/JPH06143692A/en
Application granted granted Critical
Publication of JP3341048B2 publication Critical patent/JP3341048B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To change the preliminarily designated character size in accordance with the font so as to eliminate a dispersion of the size of a font design part depending on the font. CONSTITUTION:When a printing point number is designated and a printing font is instructed from an input device 3, the printing point number and the printing font are set in the corresponding printing point number storing area PPT and printing font storing area PFM within a work memory 8. At the printing time of a document, a CPU 1 changes the designated point number in the printing point number storing area PPT based on the ratio of the size of a font design part corresponding to the designated font set in the printing font storing area PFM and the size of a font design part corresponding to a reference font set beforehand.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ワードプロセッサ等
における文書印刷装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document printing device in a word processor or the like.

【0002】[0002]

【従来の技術】従来、ワードプロセッサにおいて、文書
印刷時に例えば文字サイズ3.4mm(10.5ポイン
ト)、3.8mm(12ポイント)、4.2mm(13
ポイント)等の中から任意の印字ポイント数を指定する
と共に、例えば明朝体、毛筆体、ペン字体等の中から任
意の印刷書体を指定すると、指定された書体の文書デー
タが指定サイズで印刷される。つまり、指定された書体
に拘らず、文書データは指定文字サイズのまま忠実に印
刷されることになる。
2. Description of the Related Art Conventionally, in a word processor, for example, when printing a document, the character size is 3.4 mm (10.5 points), 3.8 mm (12 points), 4.2 mm (13 points).
If you specify any number of printing points from (Points) etc. and also specify any printing typeface from Mincho typeface, writing brush type, pen typeface, etc., the document data of the specified typeface will be printed in the specified size. To be done. That is, regardless of the designated typeface, the document data is faithfully printed with the designated character size.

【0003】[0003]

【発明が解決しようとする課題】このように指定された
ポイント数でそのまま文書印刷を行うと、書体によるフ
ォントデザイン部分のバラツキにより同一の印字ポイン
ト数で印刷しても印刷結果は文字サイズが大きく相違す
る様な印象を与える。即ち、図6は明朝体、毛筆体に対
応して同一文字サイズのフォントデータを具体的に示し
たもので、(A)は漢字「新」、「年」を明朝体で表現
したフォントデータ、(B)は漢字「新」、「年」を毛
筆体で表現したフォントデータである。ここで、各フォ
ントデータは48×48ドット構成の同一文字サイズで
あるが、そのフォントデザイン部分(破線を付して示
す)のサイズは明朝体、毛筆体によって大きく相違し、
明朝体に比べて毛筆体は小さ目にデザインされている。
特に「年」の毛筆体は極端に小さくなっている。このよ
うに同一文字サイズであっても書体によってそのフォン
トデザイン部分の大きさが相違する為、同一文書を同一
文字サイズで明朝体で印刷した場合と毛筆体で印刷した
場合とでは、印字ポイント数が違った様に見え、印刷結
果として見栄えの悪いものとなっていた。即ち、図7は
この場合の印刷例で、(A)は明朝体で印刷した場合、
(B)は毛筆体で印刷した場合で、両者の印刷結果は同
一の印字ポイント数を指定したにも拘らず、文字サイズ
が違った様に見える。その結果、例えば、明朝体と毛筆
体とを混在して印刷すると、印刷結果は見栄えの悪いも
のとなってしまう。この発明の課題は、書体によってフ
ォントデザイン部分のサイズにバラツキが有ってもその
バラツキを無くす為に、予め指定された文字サイズを書
体に応じて変更できるようにすることである。
If the document is printed as it is with the specified number of points, the print result will be large in character size even if printing is performed with the same number of printing points due to variations in the font design portion depending on the typeface. Give the impression that they are different. That is, FIG. 6 concretely shows font data of the same character size corresponding to Mincho typeface and writing brush type, and (A) is a font expressing the Chinese characters “new” and “year” in Mincho typeface. Data, (B) is font data in which the Chinese characters "new" and "year" are expressed with a writing brush. Here, each font data has the same character size of 48 × 48 dots, but the size of the font design portion (shown with a broken line) is greatly different depending on the Mincho font and the writing brush,
The writing brush is designed to be smaller than the Mincho type.
In particular, the writing brush of the "year" is extremely small. In this way, the size of the font design differs depending on the typeface even with the same character size. The numbers seemed to be different, and the printed result was unattractive. That is, FIG. 7 shows an example of printing in this case, and (A) shows the case of printing in Mincho type.
(B) is a case of printing with a writing brush, and the print results of both appear to be different in character size, even though the same number of print points is designated. As a result, for example, when the Mincho typeface and the brush typeface are mixed and printed, the print result becomes unattractive. An object of the present invention is to make it possible to change a character size designated in advance in accordance with a typeface in order to eliminate the variation even if the size of the font design portion varies depending on the typeface.

【0004】[0004]

【課題を解決するための手段】第1の発明の手段は次の
通りである。ポイント数指定手段は印字ポイント数を指
定するもので、例えば、10.5ポイント、12ポイン
ト、13ポイント等の中から任意のポイント数を指定す
る。書体指定手段は印刷書体を指定するもので、例え
ば、明朝体、毛筆体等の中から任意の書体を指定する。
ポイント数変更手段はこの書体指定手段によって指定さ
れた書体に対応するフォントデザイン部分のサイズと予
め決められている基準書体に対応するフォントデザイン
部分のサイズとの比率に基づいて、前記ポイント数指定
手段によって指定された印字ポイント数を変更する。こ
こで、比率は例えば同一文字サイズにおける比率で、予
め固定的に記憶させておいたものでも比率演算によって
求めたものでもよい。第2の発明の手段は次の通りであ
る。漢字抽出手段は印刷対象の文書データの中から漢字
の抽出を行う。第1のサイズ検出手段はこの漢字抽出手
段によって抽出された各漢字を予め決められている基準
書体に対応するフォントデータに展開すると共に、この
フォントデータのデザイン部分のサイズを検出する。第
2のサイズ検出手段は前記漢字抽出手段によって抽出さ
れた各漢字を予め指定されている指定書体に対応するフ
ォントデータに展開すると共に、このフォントデータの
デザイン部分のサイズを検出する。第1の平均値算出手
段は前記第1のサイズ検出手段によって各漢字毎に検出
されたサイズに基づいてその平均値を算出する。第2の
平均値算出手段は前記第2のサイズ検出手段によって各
漢字毎に検出されたサイズに基づいてその平均値を算出
する。比率演算手段は前記第1の平均値算出手段によっ
て算出された平均値と前記第2の平均値算出手段によっ
て算出された平均値の比率を求める。印字ポイント数変
更手段は予め設定された印字ポイント数を前記比率演算
手段によって求められた比率に基づいて変更する。
Means for Solving the Problems The means of the first invention is as follows. The point number designating means designates the number of printing points, for example, an arbitrary number of points from 10.5 points, 12 points, 13 points and the like. The typeface designating unit designates a print typeface, and, for example, designates an arbitrary typeface from Mincho typeface, brush typeface, and the like.
The point number changing means is based on a ratio between the size of the font design portion corresponding to the typeface designated by the typeface designating means and the size of the font design portion corresponding to the predetermined reference typeface, and the point number designating means is provided. Change the number of print points specified by. Here, the ratio is, for example, a ratio in the same character size, which may be fixedly stored in advance or obtained by a ratio calculation. The means of the second invention is as follows. The kanji extraction means extracts kanji from the document data to be printed. The first size detecting means develops each kanji extracted by the kanji extracting means into font data corresponding to a predetermined standard typeface, and detects the size of the design portion of the font data. The second size detecting means develops each kanji extracted by the kanji extracting means into font data corresponding to a designated typeface designated in advance, and detects the size of the design portion of the font data. The first average value calculating means calculates the average value based on the size detected for each Chinese character by the first size detecting means. The second average value calculating means calculates the average value based on the size detected for each Chinese character by the second size detecting means. The ratio calculation means obtains a ratio of the average value calculated by the first average value calculation means and the average value calculated by the second average value calculation means. The printing point number changing means changes the preset printing point number based on the ratio obtained by the ratio calculating means.

【0005】[0005]

【作用】第1の発明の手段の作用は次の通りである。い
ま、予め決められている基準書体を明朝体、書体指定手
段によって指定された印刷書体を毛筆体とすると、ポイ
ント数変更手段は同一文字サイズにおいて毛筆体に対応
するフォントデザイン部分のサイズと明朝体に対応する
フォントデザイン部分のサイズとの比率に基づいて指定
印字ポイント数の変更を行う。第2の発明の手段の作用
は次の通りである。いま、予め決められている基準書体
を明朝体、任意に指定された印刷書体を毛筆体とする
と、第1のサイズ検出手段は漢字抽出手段によって抽出
された各漢字を明朝体に対応するフォントデータに展開
すると共に、このフォントデータのデザイン部分のサイ
ズを検出する。同様に、第2のサイズ検出手段は漢字抽
出手段によって抽出された各漢字を毛筆体に対応するフ
ォントデータに展開すると共に、このフォントデータの
デザイン部分のサイズを検出する。すると、第1の平均
値算出手段は各漢字毎に検出された明朝体のサイズに基
づいてその平均値を算出し、また同様に第2の平均値算
出手段は各漢字毎に検出された毛筆体のサイズに基づい
てその平均値を算出する。このようにして明朝体、毛筆
体に対応して各漢字のフォントデザイン部分の平均値を
求めたら、比率演算手段は各平均値の比率を求める。そ
して、印字ポイント数変更手段は予め設定された印字ポ
イント数を前記比率演算手段によって求められた比率に
基づいて変更する。したがって、書体によってフォント
デザイン部分のサイズにバラツキが有ってもそのバラツ
キを無くす為に、予め指定された文字サイズを書体に応
じて変更することができる。
The operation of the means of the first invention is as follows. Now, assuming that the predetermined standard typeface is Mincho typeface and the printing typeface designated by the typeface designating means is the writing style, the point number changing means is the same as the size of the font design part corresponding to the writing style in the same character size. The number of designated printing points is changed based on the ratio with the size of the font design part corresponding to the morning type. The operation of the means of the second invention is as follows. Now, assuming that the predetermined standard typeface is Mincho typeface and the arbitrarily designated printing typeface is the writing typeface, the first size detecting means corresponds each kanji extracted by the kanji extracting means to the minchotypeface. The size of the design portion of the font data is detected while expanding the font data. Similarly, the second size detecting means develops each kanji extracted by the kanji extracting means into font data corresponding to the writing brush and detects the size of the design portion of this font data. Then, the first average value calculating means calculates the average value based on the size of the Mincho typeface detected for each Chinese character, and similarly, the second average value calculating means detects the average value for each Chinese character. The average value is calculated based on the size of the brush. In this way, when the average value of the font design portion of each Chinese character is obtained corresponding to the Mincho typeface and the writing brush type, the ratio calculation means obtains the ratio of each average value. Then, the print point number changing means changes the preset print point number based on the ratio obtained by the ratio calculating means. Therefore, even if there is a variation in the size of the font design portion depending on the typeface, in order to eliminate the variation, the predesignated character size can be changed according to the typeface.

【0006】[0006]

【第1実施例】以下、図1〜図4を参照して第1実施例
を説明する。図1はワードプロセッサのブロック構成図
である。CPU1はROM2等に格納されている各種の
プログラムにしたがってこのワードプロセッサの全体動
作を制御するもので、CPU1にはその周辺デバイスと
して入力装置3、表示装置4、印刷装置5、外部記憶装
置6が接続されている。ROM2には各種プログラムが
格納されている他に、フォントデータを記憶するキャラ
クタジェネレータが設けられている。
[First Embodiment] A first embodiment will be described below with reference to FIGS. FIG. 1 is a block diagram of a word processor. The CPU 1 controls the entire operation of the word processor according to various programs stored in the ROM 2 or the like, and the input device 3, the display device 4, the printing device 5, and the external storage device 6 are connected to the CPU 1 as its peripheral devices. Has been done. In addition to storing various programs, the ROM 2 is provided with a character generator that stores font data.

【0007】入力装置3は文書データを入力したり、各
種機能命令を入力する他、文書データの印刷時に印字ポ
イント数を入力したり、印刷書体を入力するもので、入
力装置3から入力された文書データは表示装置4のテキ
スト画面から表示出力されたり、かな漢字変換等が施さ
れて文書メモリ7内に格納される。ここで、入力装置3
から文書保存指令を入力すると、文書メモリ7内の文書
データは外部記憶装置6に転送されて登録保存される。
The input device 3 is used to input document data, various function commands, the number of print points when printing document data, and a print typeface. The document data is displayed and output from the text screen of the display device 4, or is subjected to kana-kanji conversion or the like and stored in the document memory 7. Here, the input device 3
When a document save command is input from, the document data in the document memory 7 is transferred to the external storage device 6 and registered and saved.

【0008】印刷装置5はサーマルプリンタによって構
成されたもので、CPU1は予め指定された印字ポイン
ト数を指定された印刷書体に応じて変更し、この変更ポ
イント数に応じた文字サイズで文書印刷を行う。この
際、CPU1はワークメモリ8を用いて印字ポイント数
の変更等を行う。なお、ワークメモリ8は後述するが、
Xサイズ格納域CHX、Yサイズ格納域CHY、文字数
格納域NUM、読出開始位置格納域TOP、文書容量格
納域CAP、読出文字格納域CHR、累積Xサイズ格納
域ACX、累積Yサイズ格納域ACY、基準書体平均サ
イズ格納域AVS、指定書体平均サイズ格納域AVA、
印字ポイント数格納域PPT、印刷書式格納域PFMを
有する構成となっている。
The printing device 5 is composed of a thermal printer, and the CPU 1 changes the number of printing points designated in advance according to the designated printing typeface, and prints a document with a character size corresponding to the number of changed points. To do. At this time, the CPU 1 uses the work memory 8 to change the number of printing points. The work memory 8 will be described later,
X size storage area CHX, Y size storage area CHY, character number storage area NUM, read start position storage area TOP, document capacity storage area CAP, read character storage area CHR, cumulative X size storage area ACX, cumulative Y size storage area ACY, Standard typeface average size storage area AVS, designated typeface average size storage area AVA,
The print point number storage area PPT and the print format storage area PFM are provided.

【0009】次に、本実施例の動作を説明する。図2は
文書印刷時の動作概要を示したフローチャートである。
先ず、入力装置3から印字ポイント数、印刷書体等を入
力すると、入力された印字ポイント数、印刷書体はワー
クメモリ8内の対応する印字ポイント数格納域PPT、
印刷書式格納域PFMに設定される(ステップA1)。
すると、CPU1は図3のフローチャートにしたがって
平均文字サイズ算出処理を実行すると共に(ステップA
2)、図4のフローチャートにしたがって文書印刷処理
を実行する(ステップA3)。
Next, the operation of this embodiment will be described. FIG. 2 is a flowchart showing an outline of the operation when printing a document.
First, when the number of print points, the print typeface, etc. are input from the input device 3, the input print point number, the print typeface is the corresponding print point number storage area PPT in the work memory 8,
It is set in the print format storage area PFM (step A1).
Then, the CPU 1 executes the average character size calculation process according to the flowchart of FIG.
2), the document print processing is executed according to the flowchart of FIG. 4 (step A3).

【0010】図3は平均文字サイズ算出処理を示したフ
ローチャートで、先ず、CPU1はワークメモリ8内の
印刷書式格納域PFMを参照し、予め任意に指定された
印刷書体は基準書体(本実施例においては明朝体)か否
かを調べる(ステップB1)。ここで、基準書体が指定
されている場合には、この図3のフローチャートから抜
けるが、毛筆体等の様に基準書体以外の書体が指定され
ている場合にはステップB2に進み、基準書体を平均文
字サイズ算出処理の処理対象として選択しておく。次
に、イニシャライズ処理としてワークメモリ8内のXサ
イズ格納域CHX、Yサイズ格納域CHY、文字数格納
域NUMをクリアすると共に(ステップB3)、印刷対
象の文書データをその先頭から1文字ずつ読み出す為に
読出開始位置格納域TOPに開始位置をセットする(ス
テップB4)。そして、文書容量格納域CAPに印刷対
象の文書容量(総文字数)をセットする(ステップB
5)。
FIG. 3 is a flow chart showing the average character size calculation process. First, the CPU 1 refers to the print format storage area PFM in the work memory 8, and the print font arbitrarily designated in advance is the reference font (this embodiment). In (Mincho type), it is checked (step B1). Here, if the reference typeface is designated, the process exits from the flowchart of FIG. 3. However, if a typeface other than the reference typeface such as a brush typeface is designated, the process proceeds to step B2 to set the reference typeface. It is selected as a processing target of the average character size calculation processing. Next, as an initialization process, the X size storage area CHX, the Y size storage area CHY, and the character number storage area NUM in the work memory 8 are cleared (step B3), and the document data to be printed is read character by character from the beginning. The start position is set in the read start position storage area TOP (step B4). Then, the document capacity (total number of characters) to be printed is set in the document capacity storage area CAP (step B).
5).

【0011】このようなイニシャライズ処理が終ると、
次のステップB6に進み、読出開始位置格納域TOPの
値にしたがって印刷対象の文書から1文字分のデータ
(文字コード)読み出して読出文字格納域CHRにセッ
トし、この文字が漢字か否かをチェックする(ステップ
B7)・ここで、読み出し文字が漢字でなければ、次の
文字コードを読み出す為に読出開始位置格納域TOPの
値を更新すると共に(ステップB12)、文書容量格納
域CAPの値から「1」を減算して文書容量の更新を行
う(ステップB13)。この結果、文書容量が「0」
か、つまり、印刷対象の文書データを全て読み出したか
否かをチェックし(ステップB14)、読み出しを終了
していなければ、ステップB6に戻る。以下、同様に印
刷対象の文書から漢字が読み出されるまで上述の動作が
繰り返される。
When such initialization processing is completed,
In step B6, data (character code) for one character is read from the document to be printed according to the value of the read start position storage area TOP and set in the read character storage area CHR. Check (step B7). If the read character is not a kanji character, the value of the read start position storage area TOP is updated to read the next character code (step B12), and the value of the document capacity storage area CAP is checked. "1" is subtracted from this to update the document capacity (step B13). As a result, the document capacity is "0".
That is, it is checked whether all the document data to be printed have been read (step B14). If the reading has not been completed, the process returns to step B6. Hereinafter, similarly, the above-described operation is repeated until the Chinese character is read from the document to be printed.

【0012】いま、印刷対象の文書から漢字が抽出され
ると、漢字の文字数を更新する為に文字数格納域NUM
の値に「1」を加算する(ステップB8)。そして、こ
の漢字コードをフォントデータに展開するが、この場
合、基準書体(明朝体)のフォントデータに展開される
(ステップB9)。次に、このフォントデータからフォ
ントデザイン部分の文字サイズを検出してXサイズ格納
域CHX、Yサイズ格納域CHYにセットする(ステッ
プB10)。この場合、図6の(B)に示す様にフォン
トデザイン部分において平面座標系のX軸方向の文字幅
(Xサイズ)とY軸方向の文字幅(Yサイズ)が求めら
れる。次に、累計文字サイズの計算が行われ、累積Xサ
イズ格納域ACX、累積Yサイズ格納域ACYの値に対
応するXサイズ格納域CHX、Yサイズ格納域CHYの
値を累計する(ステップB11)。以下、漢字が抽出さ
れる毎にステップB8〜B11が実行される結果、文字
数格納域NUMには漢字の抽出文字数、累積Xサイズ格
納域ACXには各漢字のフォントデザイ部分におけるX
サイズの累積値、累積Yサイズ格納域ACYには各漢字
のフォントデザイ部分におけるYサイズの累積値がセッ
トされることになる。
When a kanji character is extracted from the document to be printed, the character number storage area NUM is used to update the kanji character number.
"1" is added to the value of (step B8). Then, this Kanji code is expanded into font data, but in this case, it is expanded into font data of the standard typeface (Mincho type) (step B9). Next, the character size of the font design portion is detected from this font data and set in the X size storage area CHX and the Y size storage area CHY (step B10). In this case, as shown in FIG. 6B, the character width in the X-axis direction (X size) and the character width in the Y-axis direction (Y size) of the plane coordinate system are obtained in the font design portion. Next, the cumulative character size is calculated, and the values of the X size storage area CHX and the Y size storage area CHY corresponding to the values of the cumulative X size storage area ACX and the cumulative Y size storage area ACY are accumulated (step B11). . As a result, steps B8 to B11 are executed each time a Chinese character is extracted. As a result, the number of extracted Chinese characters is stored in the character number storage area NUM, and the X in the font design portion of each Chinese character is stored in the cumulative X size storage area ACX.
The cumulative value of the size and the cumulative Y size storage area ACY are set to the cumulative value of the Y size in the font design portion of each Chinese character.

【0013】いま、ステップB14で文書読み出し終了
が検出されると、ステップB15に進み、平均文字サイ
ズの計算を行う。即ち、累積Xサイズ格納域ACXの値
を文字数格納域NUMの値で割ることによってXサイズ
の平均値を求め、また累積Yサイズ格納域ACYの値を
文字数格納域NUMの値で割ることによってYサイズの
平均値を求める。このようにして求められたXサイズの
平均値とYサイズの平均値とによって形成される方形領
域が横長あるいは縦長の領域となることもあるので、次
のステップB16ではX方向の平均値とY方向の平均値
とを加算してそれを「2」で割ることによって正方形の
平均文字サイズを求めて基準書体平均サイズ格納域AV
Sにセットする。
When the completion of reading the document is detected in step B14, the process proceeds to step B15 to calculate the average character size. That is, the value of the cumulative X size storage area ACX is divided by the value of the character number storage area NUM to obtain the average value of the X size, and the value of the cumulative Y size storage area ACY is divided by the value of the character number storage area NUM. Find the average size. Since the rectangular area formed by the average value of X size and the average value of Y size thus obtained may be a horizontally long or vertically long area, in the next step B16, the average value in the X direction and Y The average character size of the square is calculated by adding the average value of the direction and dividing it by "2", and the standard typeface average size storage area AV
Set to S.

【0014】このようにして基準書体でフォントデータ
を展開した場合に、そのフォントデザイン部分における
各漢字の平均サイズを求めたら、次のステップB17に
進み、指定書体についても同様の平均サイズを求めたか
否かをチェックし、その算出を終了していなければ、今
度は平均サイズ算出処理の処理対象として指定書体(例
えば毛筆体)を選択する(ステップB18)。そして、
ステップB3に戻り、以下、同様の処理を繰り返すこと
により指定書体でフォントデータを展開した場合に、そ
のフォントデザイン部分における各漢字の平均サイズが
求められ、指定書体平均サイズ格納域AVAにセットさ
れる。
In the case where the font data is developed in the standard typeface in this way, if the average size of each kanji in the font design portion is obtained, the process proceeds to the next step B17, and the similar average size is also obtained for the designated typeface. It is checked whether or not the calculation has not been completed, and this time, a designated typeface (for example, a writing style) is selected as a processing target of the average size calculation process (step B18). And
Returning to step B3, when the font data is expanded in the designated typeface by repeating the same process, the average size of each Chinese character in the font design portion is obtained and set in the designated typeface average size storage area AVA. .

【0015】図4は文書印刷処理を示したフローチャー
トで、先ず、読出開始位置格納域TOPに文書データの
読み出し開始位置をセットする(ステップC1)。次
に、文書容量格納域CAPに文書容量をセットする(ス
テップC2)。そして、指定書体は基準書体か否かをチ
ェックし(ステップC3)、基準書体である明朝体が指
定されている場合にはステップC6に進むが、他の書体
が指定されている場合には印字ポイント数を変更する処
理(ステップC4、C5)が実行される。
FIG. 4 is a flowchart showing the document printing process. First, the reading start position of the document data is set in the reading start position storage area TOP (step C1). Next, the document capacity is set in the document capacity storage area CAP (step C2). Then, it is checked whether the designated typeface is the standard typeface (step C3). If the standard typeface Mincho typeface is designated, the process proceeds to step C6, but if another typeface is designated. Processing for changing the number of print points (steps C4 and C5) is executed.

【0016】即ち、基準書体平均サイズ格納域AVSの
値と指定書体平均サイズ格納域AVAの値とをそれぞれ
読み出してその比率を求める(ステップC4)。そし
て、この比率と印字ポイント数格納域PPTに設定され
ている印字ポイント数とを乗算し、その結果を新たな印
字ポイント数とすることによりポイント数の更新を行う
(ステップC5)。以下、通常と同様に、読出開始位置
格納域TOPの値で示される文字コードを読み出し(ス
テップC6)、これを指定書体のフォントデータに展開
する(ステップC7)。この場合、変更された印字ポイ
ント数に応じた文字サイズでフォントデータに展開さ
れ、印刷出力される(ステップC8)。次に読出開始位
置格納域TOPの値を更新すると共に(ステップC
9)、文書容量格納域CAPの値を更新する(ステップ
C10)。そして、ステップC11で文書全体の印刷が
終了したことが検出されるまでステップC6に戻り、1
文字ずつの印刷動作が行われる。
That is, the value of the standard typeface average size storage area AVS and the value of the designated typeface average size storage area AVA are read out to obtain their ratios (step C4). Then, this ratio is multiplied by the number of print points set in the print point number storage area PPT, and the result is used as a new number of print points to update the number of points (step C5). Thereafter, as usual, the character code indicated by the value of the read start position storage area TOP is read (step C6), and this is expanded into the font data of the designated typeface (step C7). In this case, the font data is developed into a font size corresponding to the changed number of print points and printed out (step C8). Next, the value of the read start position storage area TOP is updated (step C
9) The value of the document capacity storage area CAP is updated (step C10). Then, the process returns to step C6 until it is detected in step C11 that printing of the entire document is completed.
The printing operation is performed character by character.

【0017】このように本実施例においては、明朝体以
外の書体が指定されると、予め指定された印字ポイント
数が指定書体に応じて変更される。その際、文書を構成
する各漢字を明朝体で展開したフォントデザイン部分の
平均サイズと、指定書体で展開したフォントデザイン部
分の平均サイズとの比率に基づいて印字ポイント数を変
更するようにしたから、書体によってフォントデザイン
部分のサイズにバラツキが有っても印字結果はそのバラ
ツキを無くしたものとなる。この為、複数書体が混在し
ている文書を同一ポイント数で印刷しても従来の様に文
字サイズが相違する様な印象はなくなり、極めて自然な
印刷結果を得ることが可能となる。
As described above, in this embodiment, when a typeface other than Mincho typeface is designated, the number of printing points designated in advance is changed according to the designated typeface. At that time, the number of printing points was changed based on the ratio of the average size of the font design part developed with the Mincho typeface of each kanji composing the document to the average size of the font design part developed with the specified typeface. Therefore, even if there is a variation in the size of the font design portion depending on the typeface, the printing result will be that in which the variation is eliminated. Therefore, even if a document in which a plurality of typefaces are mixed is printed with the same number of points, the impression that the character size is different as in the conventional case is eliminated, and an extremely natural printing result can be obtained.

【0018】[0018]

【第2実施例】以下、図5を参照して第2実施例を説明
する。なお、上記第1実施例は基準書体の平均サイズと
指定書体の平均サイズとの比率に基づいて印字ポイント
数を変更するようにしたが、本実施例は処理の簡単化を
図る為に各書体に対応して基準書体に対するフォントデ
ザイン部分の比率を予め固定的に記憶するテーブルメモ
リ(図示せず)を設け、このテーブルメモリの内容にし
たがって印字ポイント数を変更するようにしたものであ
る。また、本実施例は更に同一書体において例えば図6
の(B)に示す如く、各文字間でフォントデザイン部分
のサイズにバラツキが有ってもそのバラツキが無いよう
な印字結果を得ることができるようにしたものである。
即ち、先ず、本実施例の平均サイズ算出処理も上述した
第1実施例と同様に、図3に示すフローチャートにした
がって実行されるが、本実施例においては、指定書体に
ついてのみ平均サイズを求める。
[Second Embodiment] A second embodiment will be described below with reference to FIG. In the first embodiment, the number of printing points is changed based on the ratio between the average size of the standard typeface and the average size of the designated typeface. However, in this example, each typeface is designed to simplify the process. Corresponding to the above, a table memory (not shown) for fixedly storing the ratio of the font design portion to the reference typeface is provided in advance, and the number of printing points is changed according to the contents of the table memory. In addition, this embodiment further uses the same typeface, for example, as shown in FIG.
As shown in (B), even if there is a variation in the size of the font design portion between characters, it is possible to obtain a print result that does not have that variation.
That is, first, similarly to the first embodiment described above, the average size calculation processing of the present embodiment is also executed according to the flowchart shown in FIG. 3, but in the present embodiment, the average size is obtained only for the designated typeface.

【0019】図5は本実施例に係る文書印刷処理を示し
たフローチャートで、読出開始位置格納域TOPに開始
位置をセットし(ステップD1)、文書容量格納域CA
Pに文書容量をセットする(ステップD2)。そして、
読出開始位置格納域TOPの値で示される文字コードを
読み出して読出文字格納域CHRにセットすると共に
(ステップD3)、この文字コードを指定書体のフォン
トデータに展開する(ステップD4)。このフォントデ
ータのデザイン部分のXサイズとYサイズを検出して対
応するXサイズ格納域CHX、Yサイズ格納域CHYに
セットする(ステップD5)。そして、このXサイズと
Yサイズの大きい方を文字サイズとして決定する為の処
理を行う(ステップD6〜D8)。
FIG. 5 is a flowchart showing the document printing process according to the present embodiment. The start position is set in the read start position storage area TOP (step D1), and the document capacity storage area CA is set.
The document capacity is set in P (step D2). And
The character code indicated by the value of the read start position storage area TOP is read out and set in the read character storage area CHR (step D3), and this character code is expanded into the font data of the designated typeface (step D4). The X size and Y size of the design portion of this font data are detected and set in the corresponding X size storage area CHX, Y size storage area CHY (step D5). Then, a process for determining the larger one of the X size and the Y size as the character size is performed (steps D6 to D8).

【0020】次に、指定ポイント数×(平均文字サイズ
×文字サイズ)の演算を行い、その演算結果を新たな印
字ポイント数とすることによりポイント数の変更を行う
(ステップD9)。したがって、いま読み出した文字の
フォントデザイン部分のサイズ(文字サイズ)が平均文
字サイズよりも大きければ変更後のポイント数は指定ポ
イント数よりも小さくなり、逆に平均文字サイズよりも
小さければ変更後のポイント数は指定ポイント数よりも
大きくなる。
Next, the number of designated points × (average character size × character size) is calculated, and the number of points is changed by setting the calculation result as a new print point number (step D9). Therefore, if the size (character size) of the font design part of the character just read is larger than the average character size, the number of points after the change will be smaller than the specified number of points, and conversely if it is smaller than the average character size, the The number of points will be greater than the specified number of points.

【0021】更に、本実施例においては書体に応じて印
字ポイント数の変更を行う(ステップD10)。この場
合、基準書体(例えば、明朝体)に対して毛筆体は
「1.06」というような固定値をステップD9で変更
されたポイント数に乗算することにより書体に応じたポ
イント数の変更を行う。そして、次の文字を読み出す為
に読出開始位置格納域TOPの値を更新すると共に(ス
テップD12)、文書容量の更新を行い(ステップD1
3)、文書容量が「0」になり、ステップD14で印刷
終了が検出されるまでステップD3に戻り、上述の動作
を1文字ずつ繰り返す。
Further, in this embodiment, the number of printing points is changed according to the typeface (step D10). In this case, the number of points corresponding to the typeface is changed by multiplying the number of points changed in step D9 by a fixed value such as “1.06” for the writing brush with respect to the reference typeface (for example, Mincho typeface). I do. Then, in order to read the next character, the value of the read start position storage area TOP is updated (step D12), and the document capacity is updated (step D1).
3) The process returns to step D3 until the document capacity becomes "0" and the end of printing is detected in step D14, and the above operation is repeated character by character.

【0022】この結果、本実施例においては各書体間で
も同一書体の各文字間でもフォントデザイン部分のバラ
ツキを無くした良好な印刷結果を得ることができる。更
に、指定書体のみの平均値だけを算出するようにしたか
ら、上記第1実施例よりも処理速度を高めることが可能
である。なお、上記実施例は毛筆体を指定書体とした場
合を示したが、ペン字体、ポップ書体等であってもよ
い。また、上記実施例は基準書体として明朝体を例に挙
げたが、ゴシック体等であってもよい。
As a result, in the present embodiment, it is possible to obtain a good printing result without variation in the font design portion between each typeface and between each character of the same typeface. Further, since only the average value of the designated typeface is calculated, the processing speed can be increased as compared with the first embodiment. Although the above-mentioned embodiment shows the case where the writing brush is the designated typeface, it may be a pen typeface, a pop typeface, or the like. Further, in the above-mentioned embodiment, the Mincho typeface is taken as an example of the reference typeface, but it may be a Gothic typeface or the like.

【0023】[0023]

【発明の効果】この発明によれば、書体によってフォン
トデザイン部分のサイズにバラツキが有ってもそのバラ
ツキを無くす為に、予め指定された文字サイズを書体に
応じて変更することができるので、例えば、従来のよう
に同一文書を同一文字サイズで明朝体で印刷した場合と
毛筆体で印刷した場合とで印字ポイント数が違った様な
印象を与えることはなく、したがって複数書体が混在し
た文書を印刷しても良好な印刷結果を得ることが可能と
なる。
According to the present invention, even if there is a variation in the size of the font design portion depending on the typeface, in order to eliminate the variation, the predesignated character size can be changed according to the typeface. For example, there is no impression that the number of printing points is different when printing the same document in Mincho style with the same character size as in the past and when printing with a writing brush, so multiple typefaces are mixed. Even if the document is printed, a good print result can be obtained.

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

【図1】第1実施例に係るワードプロセッサのブロック
構成図。
FIG. 1 is a block configuration diagram of a word processor according to a first embodiment.

【図2】文書印刷時の動作概要を示したフローチャー
ト。
FIG. 2 is a flowchart showing an outline of operations when printing a document.

【図3】図2のステップA2(平均文字サイズ算出処
理)の内容を詳細に示したフローチャート。
FIG. 3 is a flowchart showing details of step A2 (average character size calculation processing) in FIG.

【図4】図2のステップA3(文書印刷処理)の内容を
詳細に示したフローチャート。
FIG. 4 is a flowchart showing details of step A3 (document printing process) in FIG.

【図5】第2実施例に係る文書印刷処理を示したフロー
チャート。
FIG. 5 is a flowchart showing a document printing process according to the second embodiment.

【図6】明朝体、毛筆体に対応する同一文字サイズのフ
ォントデータを具体的に示したもので、(A)は漢字
「新」、「年」を明朝体で表現したフォントデータ、
(B)は漢字「新」、「年」を毛筆体で表現したフォン
トデータを示した図。
FIG. 6 specifically shows font data of the same character size corresponding to Mincho typeface and writing brush type, (A) font data expressing kanji “new” and “year” in Mincho typeface,
(B) is a diagram showing font data in which the Chinese characters "new" and "year" are expressed with a writing brush.

【図7】明朝体、毛筆体に対応する印刷例で、(A)は
明朝体の印刷例、(B)は毛筆体の印刷例を示した図。
FIG. 7 is a diagram showing a printing example corresponding to Mincho typeface and a brush type, wherein (A) shows a printing example of the Mincho typeface and (B) shows a printing example of a writing type body.

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

1 CPU 2 ROM 3 入力装置 5 印刷装置 7 文書メモリ 8 ワークメモリ AVS 基準書体平均サイズ格納域 AVA 指定書体平均サイズ格納域 PPT 印字ポイント数格納域 PFM 印刷書式格納域 1 CPU 2 ROM 3 Input device 5 Printing device 7 Document memory 8 Work memory AVS Standard typeface average size storage area AVA Designated typeface average size storage area PPT Printing point number storage area PFM print format storage area

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】印字ポイント数を指定するポイント数指定
手段と、 印刷書体を指定する書体指定手段と、 この書体指定手段によって指定された書体に対応するフ
ォントデザイン部分のサイズと予め決められている基準
書体に対応するフォントデザイン部分のサイズとの比率
に基づいて、前記ポイント数指定手段によって指定され
た印字ポイント数を変更するポイント数変更手段と、 を具備したことを特徴とする文書印刷装置。
1. A point number designating unit for designating the number of printing points, a typeface designating unit for designating a print typeface, and a size of a font design portion corresponding to the typeface designated by the typeface designating unit. A document printing apparatus comprising: a point number changing means for changing the number of printing points designated by the point number designating means based on a ratio with the size of a font design portion corresponding to a reference typeface.
【請求項2】印刷対象の文書データから漢字を抽出する
漢字抽出手段と、 この漢字抽出手段によって抽出された各漢字を予め決め
られている基準書体に対応するフォントデータに展開す
ると共に、このフォントデータのデザイン部分のサイズ
を検出する第1のサイズ検出手段と、 前記漢字抽出手段によって抽出された各漢字を予め指定
されている指定書体に対応するフォントデータに展開す
ると共に、このフォントデータのデザイン部分のサイズ
を検出する第2のサイズ検出手段と、 前記第1のサイズ検出手段によって各漢字毎に検出され
たサイズに基づいてその平均値を算出する第1の平均値
算出手段と、 前記第2のサイズ検出手段によって各漢字毎に検出され
たサイズに基づいてその平均値を算出する第2の平均値
算出手段と、 前記第1の平均値算出手段によって算出された平均値と
前記第2の平均値算出手段によって算出された平均値の
比率を求める比率演算手段と、 予め設定された印字ポイント数を前記比率演算手段によ
って求められた比率に基づいて変更する印字ポイント数
変更手段と、 を具備したことを特徴とする文書印刷装置。
2. A kanji extracting means for extracting kanji from document data to be printed, and each kanji extracted by the kanji extracting means is expanded into font data corresponding to a predetermined standard typeface, and this font is also used. First size detecting means for detecting the size of the design portion of the data, and expanding each kanji extracted by the kanji extracting means into font data corresponding to a designated typeface designated in advance, and designing the font data. Second size detecting means for detecting the size of the portion; first average value calculating means for calculating an average value based on the size detected for each Chinese character by the first size detecting means; Second average value calculating means for calculating an average value based on the size detected for each Chinese character by the second size detecting means; A ratio calculating means for obtaining a ratio between the average value calculated by the average value calculating means of No. 1 and the average value calculated by the second average value calculating means; and a preset number of printing points is obtained by the ratio calculating means. A document printing apparatus comprising: a print point number changing unit that changes the print point number based on the determined ratio.
JP31438492A 1992-10-30 1992-10-30 Document printing device Expired - Fee Related JP3341048B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31438492A JP3341048B2 (en) 1992-10-30 1992-10-30 Document printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31438492A JP3341048B2 (en) 1992-10-30 1992-10-30 Document printing device

Publications (2)

Publication Number Publication Date
JPH06143692A true JPH06143692A (en) 1994-05-24
JP3341048B2 JP3341048B2 (en) 2002-11-05

Family

ID=18052697

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31438492A Expired - Fee Related JP3341048B2 (en) 1992-10-30 1992-10-30 Document printing device

Country Status (1)

Country Link
JP (1) JP3341048B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102019768A (en) * 2009-09-15 2011-04-20 精工爱普生株式会社 Recording device, control method for a recording device, and a program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102019768A (en) * 2009-09-15 2011-04-20 精工爱普生株式会社 Recording device, control method for a recording device, and a program

Also Published As

Publication number Publication date
JP3341048B2 (en) 2002-11-05

Similar Documents

Publication Publication Date Title
EP0051857A1 (en) Method for editing document
JPH07149005A (en) Document forming apparatus
JP3341048B2 (en) Document printing device
US5867174A (en) Character/symbol generating device for generating character/symbol with a desired line thickness
JP6614857B2 (en) Image processing apparatus, image processing method, and program
JP2899012B2 (en) Character processing apparatus and method
JPH0522933B2 (en)
JP2569489B2 (en) Brush character output device
JPH0687249A (en) Apparatus for printing address
JPH01215557A (en) Word processor
JP2580965B2 (en) Printer device
JP2995313B2 (en) Document data output device
JP3412203B2 (en) String output device
JP2647510B2 (en) Character processing apparatus and method
JPH0667651B2 (en) Output device
JP3084817B2 (en) Character output device
JP2670447B2 (en) Output device and method
JP3054157B2 (en) Character processing device and character processing method
JP2764944B2 (en) Character output device
JP3320566B2 (en) Character symbol conversion device and printer
JP3412202B2 (en) String output device
JPH0225355A (en) Data output device
JPH05298317A (en) Doucment forming device
JPH0747330B2 (en) Character output device
JPH07105197A (en) Document processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees