JP3437293B2 - Character output method and character processing device - Google Patents
Character output method and character processing deviceInfo
- Publication number
- JP3437293B2 JP3437293B2 JP28833694A JP28833694A JP3437293B2 JP 3437293 B2 JP3437293 B2 JP 3437293B2 JP 28833694 A JP28833694 A JP 28833694A JP 28833694 A JP28833694 A JP 28833694A JP 3437293 B2 JP3437293 B2 JP 3437293B2
- Authority
- JP
- Japan
- Prior art keywords
- font
- character
- dot
- size
- allowable range
- 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.)
- Expired - Fee Related
Links
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、ホストコンピュータか
らの文字発生要求に従い文字パターンを出力する文字処
理装置に係り、特に、アウトラインフォントとともに高
速出力のためのドットフォントを持つ文字出力方法及び
文字処理装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character processing device for outputting a character pattern in accordance with a character generation request from a host computer, and more particularly to a character output method and a character processing having an outline font and a dot font for high speed output. It relates to the device.
【0002】[0002]
【従来の技術】近年、文字コードデータから対応する文
字パターン作成するためのフォントとして、アウトライ
ンフォントが主流となっている。アウトラインフォント
の特徴は、文字パターンの加工の容易性と鮮明さにある
が、文字パターンを発生するまでに要する時間が、ドッ
トパターンを用いたフォントを採用している場合よりも
長くかかる。そのため、よく使用されるであろう文字サ
イズのドットフォントを、アウトラインフォントと共に
持つことによって、高速化を図っていた。さらに、1回
使われた文字パターンは、ドットパターンに展開した状
態でキャッシュメモリに登録しておき、ふたたび同一の
コードが入力された時には、キャッシュメモリからドッ
トパターンに展開された文字パターンを読みだし、それ
を用いることにより、文字パターンを展開するための時
間を節約していた。2. Description of the Related Art In recent years, an outline font has become the mainstream as a font for creating a corresponding character pattern from character code data. The features of outline fonts are the ease and clarity of character pattern processing, but the time required to generate a character pattern is longer than when a font using a dot pattern is adopted. For this reason, a dot font of a character size that would be often used was provided with an outline font to speed up the process. Furthermore, the character pattern used once is registered in the cache memory in the state of being expanded into a dot pattern, and when the same code is input again, the character pattern expanded into a dot pattern is read from the cache memory. , It saved the time to develop the character pattern.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上記従
来例では、指定サイズとぴったり一致するサイズのドッ
トフォントがなければ使用されないので、指定するサイ
ズ単位と比較判定サイズが異なった場合に単位変換のた
めの小数点以下の処理で計算誤差があることや、アプリ
ケーションソフトでの画面表示からの座標サイズ変換途
中で計算誤差があるために、ドットフォントが使用され
ないことが多かった。すなわち、ドットフォントが有効
に活用されていなかった。However, in the above-mentioned conventional example, since there is no dot font of a size that exactly matches the specified size, it is not used, and therefore, when the specified size unit and the comparison judgment size are different, unit conversion is performed. In many cases, dot fonts were not used because there was a calculation error in the processing after the decimal point of and there was a calculation error in the process of converting the coordinate size from the screen display in the application software. That is, the dot font was not effectively used.
【0004】本発明は、前記従来の欠点を除去し、ドッ
トフォントの有効活用が可能となり、高速でかつ高品質
の文字出力が達成される文字処理装置を提供する。さら
に、キャッシュ領域の有効活用が可能となる文字出力方
法及び文字処理装置を提供する。The present invention provides a character processing device which eliminates the above-mentioned conventional drawbacks, enables effective use of dot fonts, and achieves high-speed and high-quality character output. Furthermore, a character output method and a character processing device that enable effective use of the cache area are provided.
【0005】[0005]
【課題を解決するための手段】上述の課題を解決するた
めに、本発明の文字出力方法は、アウトラインフォント
とドットフォントとを利用する文字出力方法において、
指定された文字サイズと前記ドットフォントの文字サイ
ズとを比較する比較工程と、比較した結果が許容範囲内
であり、1つのフォントに定まる際、許容範囲のドット
フォントのパターンを出力し、比較した結果が許容範囲
内であり、1つのフォントに定まらない際、指定された
文字ピッチ及び文字サイズのドットフォントがなく、指
定の文字ピッチのドットフォントがある場合に、指定文
字サイズに近いドットフォントのパターンを出力する出
力工程とを備えることを特徴とする。In order to solve the above-mentioned problems, the character output method of the present invention is an outline font.
In the character output method that uses
A comparison process that compares the specified character size with the character size of the dot font, and the comparison result is within the allowable range.
And when set to one font, the allowable range of dots
The font pattern is output and the comparison result is within the allowable range.
It is specified in the
If there is no character pitch or character size dot font,
If there is a dot font with a fixed character pitch, the specified statement
Out to output the dot font of the pattern close to the character size
And a force step .
【0006】ここで、前記許容範囲を指定する工程を更
に備える。また、フォントキャッシュメモリを更に利用
する文字出力方法であって、前記出力工程では、アウト
ラインフォントが選択された際に、前記フォントキャッ
シュメモリ内に指定されたサイズに一致しないが許容範
囲内のドットパターンがある場合に、フォントキャッシ
ュメモリ内のドットパターンを用いて出力する。また、
前記許容範囲を大きくとることによるドラフトモードを
備える。Here, the method further comprises the step of designating the allowable range. Also uses more font cache memory
To a character output method, in the output step, out
When a line font is selected, if there is a dot pattern that does not match the specified size in the font cache memory but is within the allowable range, it is output using the dot pattern in the font cache memory. Also,
A draft mode is provided by increasing the allowable range.
【0007】又、本発明の文字処理装置は、アウトライ
ンフォントとドットフォントとで文字パターンを有する
文字処理装置において、指定された文字サイズと前記ド
ットフォントの文字サイズとを比較する比較手段と、比
較した結果が許容範囲内であり、1つのフォントに定ま
る際、許容範囲のドットフォントのパターンを出力し、
比較した結果が許容範囲内であり、1つのフォントに定
まらない際、指定された文字ピッチ及び文字サイズのド
ットフォントがなく、指定の文字ピッチのドットフォン
トがある場合に、指定文字サイズに近いドットフォント
のパターンを出力する出力手段とを備えることを特徴と
する。Further, the character processing device of the present invention is a character processing device having character patterns of an outline font and a dot font, and a comparison means for comparing a specified character size with the character size of the dot font. The result is within the allowable range and the
Output a dot font pattern within the allowable range,
The result of comparison is within the allowable range, and it is set to one font.
If the time is not enough, do not use the specified character pitch and character size.
Dot Phone with a specified character pitch
Output means for outputting a pattern of a dot font close to the designated character size when there is a font.
【0008】ここで、前記許容範囲を指定する指定手段
を更に備える。また、フォントキャッシュメモリと、ア
ウトラインフォントが選択された際に、前記フォントキ
ャッシュメモリ内に指定されたサイズに一致しないが許
容範囲内のドットパターンがある場合に、フォントキャ
ッシュメモリ内のドットパターンを用いて出力する手段
とを更に備える。また、前記許容範囲を大きくとること
によりドラフトモードにする。Here, there is further provided a designation means for designating the allowable range. In addition, the font cache memory, A
When an outline font is selected, if there is a dot pattern that does not match the specified size in the font cache memory but is within the allowable range, a means for outputting using the dot pattern in the font cache memory is further provided. Prepare Further, the draft mode is set by increasing the allowable range.
【0009】[0009]
【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。
(実施例1)
<装置の構成例>図1に印刷装置の概略構成図を示す。Embodiments of the present invention will now be described in detail with reference to the drawings. (Embodiment 1) <Example of device configuration> FIG. 1 is a schematic diagram of a printing device.
【0010】図中、100は本実施例1における印刷装
置であり、印刷結果200を形成するものである。30
0は印刷データを出力してくるホストコンピュータであ
る。印刷装置100内には、印刷装置全体を制御するC
PU101があり、RAM並びにROMを含んでいる。
ホストコンピュータ300からのデータは、受信バッフ
ァ108へ一旦格納される。102はアウトラインフォ
ントデータを記憶しているフォントメモリ、103は内
蔵されているフォントの属性並びにパターンへのポイン
タをテーブルとして持っているフォントテーブルであ
る。104は受信データを格納するページバッファメモ
リ、105は1ページ分のイメージデータを展開するビ
ットマップメモリ、107はビットマップメモリ105
に展開されたイメージデータに基づいて実際に印刷処理
を行うプリンタエンジン部である。In the figure, reference numeral 100 denotes a printing apparatus according to the first embodiment, which forms a printing result 200. Thirty
Reference numeral 0 is a host computer that outputs print data. In the printing apparatus 100, C that controls the entire printing apparatus is provided.
There is a PU 101, which includes RAM and ROM.
The data from the host computer 300 is temporarily stored in the reception buffer 108. Reference numeral 102 is a font memory that stores outline font data, and 103 is a font table that has a built-in font attribute and a pointer to a pattern as a table. Reference numeral 104 is a page buffer memory for storing received data, 105 is a bit map memory for expanding image data for one page, and 107 is a bit map memory 105.
This is a printer engine unit that actually performs a printing process based on the image data expanded in.
【0011】<フォントテーブルの構成例>図2はフォ
ントテーブル103の詳細図であり、印刷装置100が
持っている全てのフォントの名称とサイズ・ピッチ等の
属性からなるフォントの情報と、パターンデータへのポ
インタと、各フォントが指定されたか否かを表わすフラ
グとによって構成されている。フォントの選択は、図2
のフォントテーブルの情報と指定された属性等とを比較
し、出力するフォントを選択することで行われる。<Configuration Example of Font Table> FIG. 2 is a detailed view of the font table 103. Font information including attributes of names and sizes and pitches of all fonts possessed by the printing apparatus 100 and pattern data. And a flag indicating whether or not each font is designated. Font selection is shown in Figure 2.
This is done by comparing the information in the font table of (1) with the specified attributes and selecting the font to be output.
【0012】<フォント名称選択の手順例>以下、名称
選択の手順を説明する。文字セット名称(例:Mincho.J
78)が指定された場合には、テーブルの後方から、テー
ブル内名称と、指定された文字セット名称の拡張子を除
いた部分(Mincho)とを比較し、同じであれば、名称の拡
張子で表されるグラフィックセット番号(J78→C
0)をサポートしているかどうかを、図2のGSの項か
ら判定する。サポートしていれば決定し、サポートして
いなければテーブルの次の行と比較する。ドットフォン
トの場合は名称が決まれば印字可能であるが、スケーラ
ブルフォントの場合には、さらにピッチ及びサイズの指
定が必要である。名称により選択した文字セットの各属
性の値を、選択のための属性テーブル(不図示)にセッ
トし、ピッチ及びサイズが指定された後、この属性テー
ブルを参照して、属性選択を行う。<Example of font name selection procedure> The name selection procedure will be described below. Character set name (eg Mincho.J
78) is specified, the name in the table and the part of the specified character set name excluding the extension (Mincho) are compared from the back of the table, and if they are the same, the name extension Graphic set number (J78 → C
It is determined from the GS term in FIG. 2 whether or not 0) is supported. If yes, determine; if not, compare with next row in table. In the case of a dot font, printing is possible if the name is decided, but in the case of a scalable font, it is necessary to further specify the pitch and size. The value of each attribute of the character set selected by the name is set in an attribute table (not shown) for selection, and after the pitch and size are specified, the attribute table is referred to perform attribute selection.
【0013】<従来のフォント属性選択の手順例>図3
は、従来例におけるCPU101のフォント属性選択処
理手順を説明するためのフローチャートである。以下、
このフローチャートを用いて従来の属性選択の手順を以
下に説明する。属性選択では、コマンド及びパネル設定
でフォントの属性指示が到来した場合に、指定された属
性だけではなく、その時点で選択のための属性テーブル
に設定されている他の属性も含めて、フォントの検索処
理を行う。<Example of Conventional Font Attribute Selection Procedure> FIG.
6 is a flowchart for explaining a font attribute selection processing procedure of the CPU 101 in the conventional example. Less than,
The conventional procedure for selecting an attribute will be described below with reference to this flowchart. In attribute selection, when a font attribute instruction comes in by command and panel setting, not only the specified attribute but also the other attributes set in the attribute table for selection at that time are included in the font selection. Perform search processing.
【0014】まず、ステップS1でフォントテーブル内
の全てのフォントのフラグをセット(初期化)する。次
に、ステップS2で指定されたグラフィックセット以外
のフォントのフラグをすべてクリアした後、ステップS
3で、フラグの立っているフォントが1つになっている
か否かを調べる。1つになっていた場合には、選択処理
を終了し、そのフォントを用いて印字を行う。また、フ
ラグの立っているフォントがなくなっていた場合には、
ステップS4にて、グラフィックセットの選択規定に乗
っ取り、現在設定されているグラフィックセットのフォ
ントのフラグがセットされる。First, in step S1, flags of all fonts in the font table are set (initialized). Next, after clearing all the flags of fonts other than the graphic set designated in step S2, step S2
In step 3, it is checked whether the number of flagged fonts is one. If the number is one, the selection process is terminated and printing is performed using that font. Also, if the flagged fonts are gone,
In step S4, the font flag of the currently set graphic set is set, taking over the selection rule of the graphic set.
【0015】また、フラグのセットされているフォント
が複数個残っていた場合には、ステップS5に進み、指
定された文字ピッチ以外のフォントのフラグをクリア
し、前記グラフィックセットの場合と同様に、ステップ
S6で残ったフォントの数をチェックし、1つならば決
定して終了し、1つもなければステップS7でその属性
の選択基準に従い処理される。複数個残った場合には次
の属性の処理に進む。If there are a plurality of fonts for which the flag is set, the process proceeds to step S5, the flags of fonts other than the designated character pitch are cleared, and as in the case of the graphic set, In step S6, the number of remaining fonts is checked, and if there is one, it is determined and ended. When a plurality of attributes remain, the process proceeds to the next attribute.
【0016】以下、文字サイズ,スタイル,ストローク
ウエイト,書体,副書体と、同様に処理を行う。そし
て、最後まで1つに絞れなかった場合には、ステップS
23でフォントテーブル内のフラグがセットされている
一番最後のフォントを選択する。ここで、従来の処理で
は、ピッチ並びにサイズも比較の対象としており、比較
対象のテーブルの文字セットがスケーラブルフォントの
場合には、ピッチ並びにサイズは無条件に合うものとし
て、限定を行なわず次の属性の比較を行なう。Thereafter, the same processing is performed for the character size, style, stroke weight, typeface, and subtypeface. If the number cannot be reduced to one until the end, step S
At 23, the last font in which the flag in the font table is set is selected. Here, in the conventional processing, the pitch and the size are also compared, and when the character set of the table to be compared is a scalable font, the pitch and the size are unconditionally matched, and the following is set without limitation. Perform attribute comparison.
【0017】上記属性選択の手順にしたがって印字に使
用する文字セットの選択を行なう際のテーブル上のピッ
チ及びサイズの単位は、ピッチ=[cpi×100]、
サイズ=[1/72インチ×100]=[ポイント×1
00]である。ピッチは、指定単位と比較単位とが同じ
であるために変換する必要はない。サイズは、指定サイ
ズをこのサイズ単位に変換して比較を行なう。この場
合、サイズが10ポイントのドットフォントがある場合
に、実際の文字パターンのサイズは42ドットで、ユー
ザ指定のサイズ単位がドット(300dpi)であった
場合、下記のような計算により、ドット単位で、10ポ
イント×100にぴったり合うものを指定するのは不可
能である。The unit of the pitch and size on the table when the character set used for printing is selected according to the above-mentioned attribute selection procedure is pitch = [cpi × 100],
Size = [1/72 inch x 100] = [point x 1
00]. The pitch does not need to be converted because the designated unit and the comparison unit are the same. Regarding the size, the designated size is converted into this size unit and comparison is performed. In this case, if there is a dot font with a size of 10 points, the actual size of the character pattern is 42 dots, and if the size unit specified by the user is dots (300 dpi), the dot unit is calculated as follows. Therefore, it is impossible to specify exactly 10 points x 100.
【0018】
42ドット=300dpi×Xポイント×(1/72)
Xポイント≒42ドット×72/300dpi
≒10.08ポイント≠10.00ポイント
このように、300dpiの環境で42ドットのサイズ
の文字セットをドット単位で指定すると、計算上、ドッ
トフォントは選ばれず、スケーラブルフォントが選択さ
れてしまう。42 dots = 300 dpi × X points × (1/72) X points ≈42 dots × 72/300 dpi ≈10.08 points ≠ 10.00 points Thus, a character set having a size of 42 dots in an environment of 300 dpi If is specified in dot units, the dot font is not selected for calculation, and the scalable font is selected.
【0019】同様な変換時の計算誤差として、コマンド
を発行するホストコンピュータのアプリケーションで、
画面表示の座標から、文字サイズを計算しコマンドを発
行する際に、小数点以下の値を持った細かい計算値を指
定したことや、切り上げ切捨て等の処理のために、ドッ
トフォントが選ばれず、スケーラブルフォントが選ばれ
る場合があり、高速化を阻害していた。また、小数点以
下の処理の違いによって、ドット単位にすると1ドット
の違いが出てくる場合には、どちらのサイズを選択して
も、要求から外れているとは言えず、どちらかのサイズ
でドットフォントのある方を選択した方が高速に印字で
きることは明確である。As a similar calculation error at the time of conversion, in the application of the host computer which issues a command,
When you issue a command by calculating the character size from the coordinates of the screen display, you have specified a fine calculation value with a value below the decimal point, and because of processing such as rounding up and down, the dot font is not selected and is scalable. Sometimes fonts were chosen, which hindered speeding up. Also, if there is a difference of 1 dot in dot units due to the difference in the processing after the decimal point, it cannot be said that the size is selected and it is not out of the requirement. It is clear that the one with a dot font can print faster.
【0020】<本実施例のフォント属性選択の手順例>
本実施例1の文字処理装置においては、ピッチ及びサイ
ズの比較の単位を[ドット×10]単位とし、パネルか
ら選択の許容範囲を1/10ドット単位で指定可能とす
ることにより、ドットフォントの有効活用を可能とし、
高速出力を可能とする。以下に、比較単位を[ドット×
10]単位とし、パネルで許容範囲を9[1/10ドッ
ト]とした場合の比較手順を、図4に示したフローチャ
ートを用いて説明する。<Procedure example of font attribute selection according to the present embodiment>
In the character processing device according to the first embodiment, the unit of pitch and size comparison is [dot × 10] unit, and the allowable range of selection from the panel can be specified in 1/10 dot unit. Enable effective use,
It enables high-speed output. Below, the comparison unit is [dot x
10] units and the comparison procedure when the allowable range is 9 [1/10 dots] on the panel will be described with reference to the flowchart shown in FIG.
【0021】図4は、本実施例1のCPU101のフォ
ント属性選択処理手順を説明するためのフローチャート
である。まず、ステップS101で図2に示すフォント
テーブル内の全てのフォントのフラグをセットする。そ
して、ステップS102で指定されたグラフィックセッ
ト以外のフォントのフラグをすべてクリアした後、ステ
ップS103でフラグの立っているフォントが1つにな
っているかを調べる。フラグの立っているフォントが1
つになっていた場合には、選択処理を終了し、そのフォ
ントを用いて印字を行う。また、フラグの立っているフ
ォントがなくなっていた場合には、ステップS104で
グラフィックセットの選択規定に従って、現在設定され
ているグラフィックセットのフォントのフラグがセット
される。FIG. 4 is a flow chart for explaining the font attribute selection processing procedure of the CPU 101 of the first embodiment. First, in step S101, the flags of all fonts in the font table shown in FIG. 2 are set. Then, after clearing all the flags of the fonts other than the graphic set designated in step S102, it is checked in step S103 whether there is only one flagged font. 1 font with flag
If it is found to be the same, the selection process is terminated and printing is performed using that font. If there is no font for which the flag is set, the font flag of the currently set graphic set is set in step S104 according to the graphic set selection rule.
【0022】また、フラグのセットされているフォント
が複数個残っていた場合には、ステップS105に進
み、指定された文字ピッチを[ドット×10]単位に変
換し、予めパネルにある許容範囲指定手段により指定さ
れた許容範囲を考慮し、例えば、指定ピッチが7.2c
piで9[1/10ドット]が指定されていた場合に
は、[ドット×10]単位に変換し、416.66…≠
417[ドット×10]とし、417−4=413[ド
ット×10]から、417+4=421[ドット×1
0]の範囲以外のフォントのフラグをクリアし、前記グ
ラフィックセットの場合と同様に、ステップS106で
残ったフォントの数をチェックし、1つならば決定して
終了し、1つもなければステップS107でその属性の
選択基準に従い処理され、更に複数個セットされている
フラグが残った場合には、次の属性の処理に進む。If a plurality of fonts for which flags are set remain, the process proceeds to step S105, the designated character pitch is converted into a unit of [dot × 10], and the allowable range designated on the panel is designated in advance. Considering the allowable range specified by the means, for example, the specified pitch is 7.2c
When 9 [1/10 dot] is designated by pi, conversion is performed in units of [dot × 10], and 416.66 ... ≠
417 [dots × 10] and 417-4 = 413 [dots × 10] to 417 + 4 = 421 [dots × 1]
0] range, the flags of fonts other than the range are cleared, the number of remaining fonts is checked in step S106 as in the case of the graphic set, and if there is one, it is determined and ended, and if there is not one, step S107. Then, the processing is performed according to the selection criteria of the attribute, and if there are more flags set, the process proceeds to the processing of the next attribute.
【0023】ステップS108では、文字サイズも同様
に[ドット×10]単位に変換し、パネルで指定された
許容範囲も含めて比較し、以下、スタイル,ストローク
ウエイト,書体,副書体と、ステップS124まで、図
3のステップS21までと同様な処理を行う。そして、
ステップS121まで終了してもセットされているフラ
グが1つに絞れなかった場合には、ステップS123で
後に説明するピッチ・サイズ処理を行ない、それでも1
つのフォントに絞れなかった場合には、フォントテーブ
ル内のフラグがセットされている一番最後のフォントを
選択する。In step S108, the character size is similarly converted into a unit of [dot × 10], and the comparison is made including the allowable range specified on the panel. Then, the style, stroke weight, typeface, and subtypeface are compared with step S124. Up to step S21 of FIG. 3, the same processing is performed. And
If the number of flags that have been set is not narrowed down to one even after the end of step S121, the pitch / size processing described later is performed in step S123, and still 1 is set.
If it is not possible to narrow down to one font, select the last font with the flag set in the font table.
【0024】つぎに、前記ステップS123のピッチ・
サイズ処理の詳細を、図5の属性選択処理内のステップ
S123のピッチ・サイズ処理の詳細を表すフローチャ
ートを用いて説明を行なう。図5のステップS201で
は、ドットフォントの文字セット内に限定し、指定され
たピッチとサイズにぴったり合う文字セットがあるかど
うかを調べ、あった場合には、ステップS203でその
文字セット以外の文字セットのフラグを消す。しかし、
指定文字ピッチ・サイズにぴったり合う文字セットがな
い場合には、ステップS204で指定ピッチにぴったり
あっているドットフォントの文字セットがあるかどうか
を調べ、ある場合には、ステップS206でそれ以外の
ピッチの文字セットのフラグを消し、フラグの立ってい
る文字セットの中より、ステップS207で文字サイズ
が指定サイズに最も近い文字セット以外の文字セットの
フラグを消す。Next, the pitch of step S123
The details of the size processing will be described with reference to the flowchart showing the details of the pitch size processing of step S123 in the attribute selection processing of FIG. In step S201 of FIG. 5, the character set is limited to the dot font character set, and it is checked whether or not there is a character set that exactly matches the specified pitch and size. If there is, a character other than that character set is determined in step S203. Clear the set flags. But,
If there is no character set that exactly matches the specified character pitch / size, it is checked in step S204 whether there is a dot font character set that exactly matches the specified pitch, and if there is, a pitch other than that is determined in step S206. The flag of the character set is deleted, and the flag of the character set other than the character set whose character size is the closest to the designated size is deleted from the character sets in which the flag is set.
【0025】以上説明した手順に従い印字に使用する文
字セットを選択することにより、より高速な印字が可能
となる。なお、説明中で用いた比較単位や許容範囲の指
定については、他の単位,サイズであっても可能である
ことは勿論である。又、ピッチとサイズに分けて説明を
行なったが、どちらか一方に適用する場合でもそれなり
の効果が得られる。By selecting the character set used for printing in accordance with the procedure described above, higher speed printing becomes possible. It is needless to say that the comparison unit and the allowable range used in the description can be specified in other units and sizes. Further, although the description has been given separately for the pitch and the size, even if it is applied to either one, a certain effect can be obtained.
【0026】(実施例2)実施例1においては、文字セ
ット単位で比較して選択する例を説明したが、本実施例
では、フォントキャッシュに展開された文字の使用手順
について、以下に説明を行なう。従来、フォントキャッ
シュ内の文字セットの使用では、ピッチとサイズがドッ
トで指定されたものとぴったり合わなくては使用され
ず、計算誤差により1ドット違っていた場合にはもちろ
ん使用されずに、新たに1ドット異なるサイズのパター
ンを展開しキャッシュメモリに格納していた。以下キャ
ッシュの構成を含め、添加図面にしたがって実施例2に
ついて、詳細に説明する。(Second Embodiment) In the first embodiment, an example of comparing and selecting in character set units has been described. In the present embodiment, the procedure for using the characters expanded in the font cache will be described below. To do. Traditionally, when using the character set in the font cache, the pitch and size must be exactly the same as those specified by dots. A pattern of a size different by 1 dot was developed and stored in the cache memory. The second embodiment including the cache structure will be described in detail below with reference to the drawings.
【0027】<装置の構成例>図6は、実施例2におけ
る印刷装置の構成概略を示す図である。図6の構成図
は、実施例1における図1の装置構成に加え、フォント
キャッシュメモリ106が追加されている。図6で、1
00が本実施例における印刷装置であり、印刷結果20
0を形成するものである。300は印刷データを出力し
てくるホストコンピュータである。印刷装置100内に
は、印刷装置全体を制御するCPU101があり、RA
M並びにROMを含んでいる。<Configuration Example of Apparatus> FIG. 6 is a diagram showing a schematic configuration of a printing apparatus according to the second embodiment. In the configuration diagram of FIG. 6, a font cache memory 106 is added to the device configuration of FIG. 1 in the first embodiment. In FIG. 6, 1
Reference numeral 00 denotes the printing apparatus according to the present exemplary embodiment, and print result 20
It forms 0. A host computer 300 outputs print data. In the printing apparatus 100, there is a CPU 101 that controls the entire printing apparatus, and RA
Includes M and ROM.
【0028】ホストコンピュータ300からのデータ
は、受信バッファへ一旦格納される。102はアウトラ
インフォントデータを記憶しているフォントメモリ、1
03は内蔵されているフォントの属性並びにパターンへ
のポインタをテーブルとして持っているフォントテーブ
ルである。104は受信データを格納するページバッフ
ァメモリ、105は1ページ分のイメージデータを展開
するビットマップメモリ、106は1度展開したスケー
ラブルフォントのビットマップパターンを格納し、同じ
文字パターンを展開処理することなく文字パターンを出
力できるように管理・構成されたフォントキャッシュメ
モリである。107はビットマップメモリ105に展開
されたイメージデータに基づいて実際に印刷処理を行う
プリンタエンジン部である。The data from the host computer 300 is temporarily stored in the reception buffer. 102 is a font memory for storing outline font data, 1
Reference numeral 03 is a font table which has a built-in font attribute and a pointer to a pattern as a table. 104 is a page buffer memory for storing received data, 105 is a bitmap memory for expanding image data for one page, 106 is a bitmap pattern of a scalable font expanded once, and the same character pattern is expanded. It is a font cache memory that is managed and configured so that it can output character patterns without using it. Reference numeral 107 denotes a printer engine unit that actually performs print processing based on the image data expanded in the bitmap memory 105.
【0029】<フォントキャッシュメモリの構成例>フ
ォントキャッシュメモリ106について、図7を用いて
説明を行なう。図7は、フォントキャッシュメモリ10
6の詳細であり、フォントキャッシュメモリ106内の
先頭にある管理テーブル400内には、128の文字セ
ット分のポインタ401と、それぞれの文字セットのピ
ッチの格納領域402と、サイズの格納領域403と、
さらには、パターンへのポインタボックスへのポインタ
の格納領域404があり、パターンデータがない場合に
はポインタ401に−1が格納されている。パターンボ
ックスへのポインタ404の示す先には、それぞれの文
字コードの上位1バイト(区)に対応する文字パターン
ボックスへのポインタ404があり、そのポインタの先
には文字コードの下位1バイト(点)に対応する文字パ
ターンへのポインタがある。これらポインタの先に何も
ない時には−1が格納されている。<Configuration Example of Font Cache Memory> The font cache memory 106 will be described with reference to FIG. FIG. 7 shows the font cache memory 10.
6, the pointer 401 for 128 character sets, a storage area 402 for the pitch of each character set, and a storage area 403 for the size are provided in the management table 400 at the top of the font cache memory 106. ,
Further, there is a pointer storage area 404 for the pointer to the pattern, and -1 is stored in the pointer 401 when there is no pattern data. The pointer 404 to the pattern box has a pointer 404 to the character pattern box corresponding to the upper 1 byte (section) of each character code, and the lower 1 byte (dot ) Is a pointer to a character pattern. When there is nothing ahead of these pointers, -1 is stored.
【0030】<フォントキャッシュパターンの選択手順
例>フォントキャッシュ内の文字パターンの選択手順
は、スケーラブルフォントが選択され印字される際に、
既に展開されているかどうかを、印字のための属性テー
ブル(不図示)内の文字セットと文字ピッチと文字サイ
ズと、前記管理テーブル内の情報を比較し、印字しよう
としている文字セットが既に展開され管理テーブルに載
っている場合には、管理テーブルのドットパターンへの
3段階のポインタを追っていき、そのパターンをとりだ
し印字する。<Example of selection procedure of font cache pattern> The selection procedure of the character pattern in the font cache is performed when a scalable font is selected and printed.
Whether the character set to be printed has already been expanded is compared by comparing the character set in the attribute table (not shown) for printing, the character pitch, and the character size with the information in the management table. If the dot is on the management table, the dot pattern of the management table is followed by a three-step pointer, and the pattern is taken out and printed.
【0031】この文字セットの検索の際に、ピッチとサ
イズの比較並びに判定を、予めパネルで指定された許容
範囲を考慮し、例えば、1ドットが指定されていた場合
には印字のための属性テーブル上のドットサイズ−1か
ら+1の範囲で検索し、ぴったりではなく許容範囲内の
サイズの文字セットがあった場合には、印字のための属
性テーブルをフォントキャッシュメモリの管理テーブル
内のサイズに書き換え、既にフォントキャッシュメモリ
内にドットパターンのあるコードについては、そのパタ
ーンを用いて印字し、パターンが無いものについては、
スケーラブルの情報から新たにドットパターンを展開
し、フォントキャッシュに登録する。When searching for this character set, the pitch and size are compared and judged in consideration of the allowable range specified in advance on the panel. For example, when 1 dot is specified, an attribute for printing. When the dot size on the table is searched in the range of -1 to +1 and there is a character set that is not exactly right and is within the allowable range, the attribute table for printing is set to the size in the font cache memory management table. Rewrite, for the code that already has the dot pattern in the font cache memory, print using that pattern, and for the code that does not have the pattern,
A new dot pattern is developed from the scalable information and registered in the font cache.
【0032】以上説明したように、既にフォントキャッ
シュメモリ内に登録されているパターンを有効活用する
ことにより、メモリの有効活用が達成され、かつ、印字
の高速化も達成可能である。尚、パネルで予め指定する
許容範囲を大きくとることにより、文字パターンをドッ
トフォントを用いて高速に印字することが可能となる。
この方法によれば、ドラフト文字のための新たな手段を
設けることなく、高速なドラフトモードが達成可能とな
る。As described above, by effectively using the patterns already registered in the font cache memory, the memory can be effectively used and the printing speed can be increased. By increasing the allowable range designated in advance on the panel, the character pattern can be printed at high speed using a dot font.
According to this method, a high-speed draft mode can be achieved without providing new means for draft characters.
【0033】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることは言うまでもない。The present invention may be applied to either a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.
【0034】[0034]
【発明の効果】以上説明したように、本発明によれば、
指定された文字ピッチのドットフォントである場合は、
指定された文字サイズに対し、ドットフォントのサイズ
が許容範囲内ならばドットフォントを出力する機能を備
えることにより、ドットフォントの有効活用が可能とな
り、高速でかつ高品質の文字出力が達成される。さら
に、キャッシュ領域の有効利用も可能となる。As described above, according to the present invention,
If it is a dot font with the specified character pitch,
By providing a function to output the dot font if the size of the dot font is within the allowable range for the specified character size, it is possible to effectively use the dot font and achieve high-speed and high-quality character output. . Further, it is possible to effectively use the cache area.
【図1】実施例1を説明するための印刷装置の構成概略
図である。FIG. 1 is a schematic configuration diagram of a printing apparatus for explaining a first embodiment.
【図2】実施例1を説明するためのフォントテーブルの
詳細を示す図である。FIG. 2 is a diagram showing details of a font table for explaining the first embodiment.
【図3】従来のフォントの属性選択処理を表すフローチ
ャートである。FIG. 3 is a flowchart showing a conventional font attribute selection process.
【図4】実施例1におけるフォントの属性選択処理を表
すフローチャートである。FIG. 4 is a flowchart illustrating font attribute selection processing according to the first exemplary embodiment.
【図5】実施例1におけるフォントの属性選択処理内ピ
ッチ・サイズ処理詳細を表すフローチャートである。FIG. 5 is a flowchart showing details of pitch / size processing in font attribute selection processing according to the first exemplary embodiment.
【図6】実施例2における印刷装置の構成概略図であ
る。FIG. 6 is a schematic configuration diagram of a printing apparatus according to a second embodiment.
【図7】実施例2におけるフォントキャッシュメモリの
詳細図である。FIG. 7 is a detailed diagram of a font cache memory according to the second embodiment.
100 印字装置 101 CPU 102 フォントメモリ 103 フォントテーブル 105 ビットマップメモリ 106 フォントキャッシュメモリ 107 プリンタエンジン部 108 受信バッファ 200 印刷結果 300 ホストコンピュータ 400 管理テーブル 401 文字セットへのポインタ 402 ピッチの格納領域 403 サイズの格納領域 404 パターンボックスへのポインタ 100 printer 101 CPU 102 font memory 103 font table 105 bitmap memory 106 font cache memory 107 printer engine section 108 Receive buffer 200 print results 300 host computer 400 management table 401 Pointer to character set 402 pitch storage area 403 size storage area 404 Pointer to pattern box
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−266661(JP,A) 特開 昭64−10295(JP,A) 特開 平2−22076(JP,A) 特開 平2−22078(JP,A) 特開 平2−55163(JP,A) 特開 平6−91956(JP,A) 特開 平6−266339(JP,A) 特開 平6−325035(JP,A) 特許3177080(JP,B2) (58)調査した分野(Int.Cl.7,DB名) G09G 5/22 - 5/32 G06F 17/21 ─────────────────────────────────────────────────── ─── Continuation of front page (56) Reference JP-A-3-266661 (JP, A) JP-A-64-10295 (JP, A) JP-A-2-22076 (JP, A) JP-A-2- 22078 (JP, A) JP 2-55163 (JP, A) JP 6-91956 (JP, A) JP 6-266339 (JP, A) JP 6-325035 (JP, A) Patent 3177080 (JP, B2) (58) Fields investigated (Int.Cl. 7 , DB name) G09G 5/22-5/32 G06F 17/21
Claims (8)
とを利用する文字出力方法において、 指定された文字サイズと前記ドットフォントの文字サイ
ズとを比較する比較工程と、 比較した結果が許容範囲内であり、1つのフォントに定
まる際、許容範囲のドットフォントのパターンを出力
し、比較した結果が許容範囲内であり、1つのフォント
に定まらない際、指定された文字ピッチ及び文字サイズ
のドットフォントがなく、指定の文字ピッチのドットフ
ォントがある場合に、指定文字サイズに近いドットフォ
ントのパターンを出力する出力工程とを備えることを特
徴とする文字出力方法。1. Outline font and dot font
In the character output method using and, the comparison step of comparing the specified character size with the character size of the dot font, and the result of comparison is within the allowable range
Outputs a dot font pattern within the allowable range when maru
However, the result of comparison is within the allowable range, and one font
If not specified, the specified character pitch and character size
There is no dot font for the
An output step of outputting a dot font pattern close to a specified character size when there is a font.
ることを特徴とする請求項1記載の文字出力方法。2. The character output method according to claim 1, further comprising a step of designating the allowable range.
る文字出力方法であって、 前記出力工程では、アウトラインフォントが選択された
際に、前記フォントキャッシュメモリ内に指定されたサ
イズに一致しないが許容範囲内のドットパターンがある
場合に、フォントキャッシュメモリ内のドットパターン
を用いて出力することを特徴とする請求項1記載の文字
出力方法。3. The font cache memory is further used.
In the output step, when an outline font is selected, if there is a dot pattern that does not match the size specified in the font cache memory but is within an allowable range, the font cache memory 2. The character output method according to claim 1, wherein the dot pattern is used to output the character.
ラフトモードを備えることを特徴とする請求項1または
3記載の文字出力方法。4. A draft mode is provided by increasing the allowable range.
The character output method described in 3 .
とで文字パターンを有する文字処理装置において、 指定された文字サイズと前記ドットフォントの文字サイ
ズとを比較する比較手段と、 比較した結果が許容範囲内であり、1つのフォントに定
まる際、許容範囲のドットフォントのパターンを出力
し、比較した結果が許容範囲内であり、1つのフォント
に定まらない際、指定された文字ピッチ及び文字サイズ
のドットフォントがなく、指定の文字ピッチのドットフ
ォントがある場合に、指定文字サイズに近 いドットフォ
ントのパターンを出力する出力手段とを備えることを特
徴とする文字処理装置。5. A character processing device having a character pattern of an outline font and a dot font, and comparing means for comparing a designated character size with the character size of the dot font, and the comparison result is within an allowable range . Set to one font
Outputs a dot font pattern within the allowable range when maru
However, the result of comparison is within the allowable range, and one font
If not specified, the specified character pitch and character size
There is no dot font for the
If there is Onto character processing apparatus, characterized in that it comprises an output means for outputting a pattern of near have dot font to the designated character size.
備えることを特徴とする請求項5記載の文字処理装置。6. The character processing device according to claim 5 , further comprising a specifying unit that specifies the allowable range.
キャッシュメモリ内に指定されたサイズに一致しないが
許容範囲内のドットパターンがある場合に、フォントキ
ャッシュメモリ内のドットパターンを用いて出力する手
段とを更に備えることを特徴とする請求項5記載の文字
処理装置。7. When the font cache memory and the outline font are selected and there is a dot pattern which does not match the size specified in the font cache memory but is within the allowable range, the dots in the font cache memory The character processing device according to claim 5, further comprising: a means for outputting using a pattern.
ラフトモードにすることを特徴とする請求項5または7
記載の文字処理装置。8. The method of claim 5 or 7, characterized in that the draft mode by taking larger the allowable range
Character processing device described.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP28833694A JP3437293B2 (en) | 1994-11-22 | 1994-11-22 | Character output method and character processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP28833694A JP3437293B2 (en) | 1994-11-22 | 1994-11-22 | Character output method and character processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08146938A JPH08146938A (en) | 1996-06-07 |
| JP3437293B2 true JP3437293B2 (en) | 2003-08-18 |
Family
ID=17728880
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP28833694A Expired - Fee Related JP3437293B2 (en) | 1994-11-22 | 1994-11-22 | Character output method and character processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3437293B2 (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3177080B2 (en) | 1993-12-15 | 2001-06-18 | キヤノン株式会社 | Character processing device and character processing method |
-
1994
- 1994-11-22 JP JP28833694A patent/JP3437293B2/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3177080B2 (en) | 1993-12-15 | 2001-06-18 | キヤノン株式会社 | Character processing device and character processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08146938A (en) | 1996-06-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2002507289A (en) | Glyph drawing method using layout service library | |
| JP3083314B2 (en) | Document processing method and apparatus | |
| JP3437293B2 (en) | Character output method and character processing device | |
| JP2816181B2 (en) | Document processing device | |
| JP3450869B2 (en) | Bit image data generation device and bit image data generation method | |
| JP3146771B2 (en) | Font rasterizing apparatus and method | |
| JPH0934434A (en) | Character generator | |
| JP3814330B2 (en) | Character processing apparatus, character processing method, and memory | |
| JP2773145B2 (en) | Document shaping method and document processing device | |
| JP3084817B2 (en) | Character output device | |
| JPH06274145A (en) | Character processor | |
| JP2803746B2 (en) | Character processing method and apparatus | |
| JP2967861B2 (en) | Output device | |
| JPH09166974A (en) | Document processing apparatus and cache function method | |
| JP3087511B2 (en) | Data converter | |
| JP2989613B2 (en) | Character processing apparatus and method | |
| JP2764944B2 (en) | Character output device | |
| JP3055918B2 (en) | Font data conversion processing method | |
| JP2737845B2 (en) | Character processing method and apparatus | |
| JP3082173B2 (en) | Contour data processing device | |
| JP2974638B2 (en) | Document processing apparatus and method | |
| JP3320566B2 (en) | Character symbol conversion device and printer | |
| JP3055306B2 (en) | Data output device | |
| JPH06149208A (en) | Character generating device | |
| JPH05173532A (en) | Contour data processor |
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: 20030516 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080606 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090606 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090606 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100606 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |