JPH049152B2 - - Google Patents

Info

Publication number
JPH049152B2
JPH049152B2 JP59179646A JP17964684A JPH049152B2 JP H049152 B2 JPH049152 B2 JP H049152B2 JP 59179646 A JP59179646 A JP 59179646A JP 17964684 A JP17964684 A JP 17964684A JP H049152 B2 JPH049152 B2 JP H049152B2
Authority
JP
Japan
Prior art keywords
pattern
dot
character
register
width
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 - Lifetime
Application number
JP59179646A
Other languages
Japanese (ja)
Other versions
JPS6157347A (en
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 filed Critical
Priority to JP59179646A priority Critical patent/JPS6157347A/en
Priority to KR1019850004177A priority patent/KR910005780B1/en
Priority to US06/761,705 priority patent/US4655622A/en
Publication of JPS6157347A publication Critical patent/JPS6157347A/en
Publication of JPH049152B2 publication Critical patent/JPH049152B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/10Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers by matrix printers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • G06K15/16Means for paper feeding or form feeding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K2215/00Arrangements for producing a permanent visual presentation of the output data
    • G06K2215/0002Handling the output data
    • G06K2215/0062Handling the output data combining generic and host data, e.g. filling a raster
    • G06K2215/0065Page or partial page composition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K2215/00Arrangements for producing a permanent visual presentation of the output data
    • G06K2215/0002Handling the output data
    • G06K2215/0062Handling the output data combining generic and host data, e.g. filling a raster
    • G06K2215/0071Post-treatment of the composed image, e.g. compression, rotation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K2215/00Arrangements for producing a permanent visual presentation of the output data
    • G06K2215/0002Handling the output data
    • G06K2215/0062Handling the output data combining generic and host data, e.g. filling a raster
    • G06K2215/0071Post-treatment of the composed image, e.g. compression, rotation
    • G06K2215/0074Depleting the image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は拡大ないしは変形処理されたドツトマ
トリクス構造の漢字を含む文字フオント情報を全
角文字と混在して印字出力するシリアルプリンタ
に用いられるプリンタ制御装置に関する。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a printer control device used in a serial printer that prints out character font information including enlarged or transformed Chinese characters in a dot matrix structure mixed with full-width characters. Regarding.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

シリアルプリンタに於いて、全角文字と拡大文
字とを混在させて印字制御する場合、従来では改
行ピツチに何らかの制限があつた。例えば、縦幅
24ドツトの印字ヘツドをもつプリンタにて、縦幅
48ドツトの拡大文字を印字しようとする場合、途
中で必ず用紙送りを必要とする。即ち、拡大文字
の上半分の24ドツトを印字したならば、24ドツト
分の用紙送りを実行し、次に上記拡大文字の下半
分の24ドツトを印字して上記拡大文字の印字が終
了する。
In serial printers, when printing a mixture of full-width characters and enlarged characters, there has conventionally been some restriction on the line feed pitch. For example, height
For printers with a 24-dot print head,
When trying to print 48-dot enlarged characters, it is always necessary to feed the paper in the middle. That is, once the 24 dots in the upper half of the enlarged character have been printed, the paper is fed by 24 dots, and then the 24 dots in the lower half of the enlarged character are printed, and the printing of the enlarged character is completed.

このような従来の印字制御手段は、換言する
と、拡大文字の実行に対しては、自動的に用紙送
りの実行処理がなされていた。
In other words, such conventional print control means automatically performs paper feeding processing when executing enlarged characters.

従つて、従来では、全角文字と拡大文字との混
在文字に於いて、上揃え、下揃えは、データの送
り方を工夫すれば可能であつたが、中揃えでの印
字は不可能であつた。この際、プリンタに、用途
の逆送り機能をもたせることにより、全角文字と
拡大文字との混在印字に於ける中揃えの印字が可
能となるが、この場合は用紙送り精度の確保が困
難であるとともに、装置構成が非常に繁雑とな
り、コストの大幅な上昇を招いて実用に供に得な
い。
Therefore, in the past, it was possible to top-align and bottom-align a mixture of full-width characters and enlarged characters by changing the way the data was sent, but it was impossible to print with center alignment. Ta. At this time, by equipping the printer with a reverse feed function, it is possible to print center-aligned characters when printing a mixture of full-width characters and enlarged characters, but in this case, it is difficult to ensure paper feed accuracy, and However, the device configuration becomes extremely complicated and the cost increases significantly, making it impractical.

〔発明の目的〕[Purpose of the invention]

本発明は上記実情に鑑みなされたもので、全角
文字と拡大ないしは変形文字との混在印字制御に
於いて、比較的簡単な構成により、中揃えの印字
を含めて、より自由な改行ピツチの高品質のドツ
ト印字を可能にしたプリンタ制御装置を提供する
ことを目的とする。
The present invention has been developed in view of the above-mentioned circumstances, and has a relatively simple configuration that enables more freedom in line feed pitch heights, including center-aligned printing, in controlling mixed printing of full-width characters and enlarged or modified characters. The object of the present invention is to provide a printer control device that enables high-quality dot printing.

〔発明の概要〕[Summary of the invention]

本発明は、所定ドツトマトリクス構成の文字パ
ターンを拡大ないしは変形処理するパターン処理
手段と、このパターン処理手段によつて得られる
パターンの縦方向ドツト数がイメージラインバツ
フアの縦方向幅より大きくなつた際に、所定ドツ
ト幅単位のゾーンに分けてイメージ展開してゆく
手段とを有してなるプリンタ制御装置に於いて、
印字処理される文字コードそれぞれに、次に展開
すべきゾーン番号と、展開開始位置と印字ヘツド
位置との相対距離と、文字の属性情報とを附随し
て記憶する記憶手段を持たせるととともに、前記
1文字単位毎に記憶した相対距離のうち、最小値
の相対距離を選択し、該当する前記1文字単位の
情報からイメージ展開する手段、及びこのイメー
ジ展開処理された1文字単位の情報に対し、用紙
送り動作実行の度毎に前記相対距離から用紙送り
量を減ずる手段を設けて、これら手段をもとに、
順次、パターン展開、並びに印字処理を実行する
構成とし、前記パターン処理手段により拡大また
は変形された文字と標準文字とを任意の行ピツチ
をもつて混在印字可能としたもので、これによ
り、比較的簡単な構成により、中揃えの印字を含
めて、より自由な改行ピツチでのドツト印字を可
能としたものである。
The present invention provides a pattern processing means for enlarging or transforming a character pattern having a predetermined dot matrix structure, and a pattern processing means for processing a character pattern in which the number of vertical dots of a pattern obtained by the pattern processing means is larger than the vertical width of an image line buffer. In particular, in a printer control device having means for developing an image divided into zones of a predetermined dot width,
Each character code to be printed is provided with a storage means for storing the zone number to be developed next, the relative distance between the development start position and the print head position, and character attribute information. Means for selecting the minimum value relative distance among the relative distances stored for each character unit and developing an image from the corresponding character unit information, and for the character unit information subjected to the image development process. , providing means for subtracting the paper feed amount from the relative distance each time a paper feed operation is performed, and based on these means,
It is configured to sequentially perform pattern development and printing processing, and allows characters enlarged or transformed by the pattern processing means and standard characters to be mixedly printed with any line pitch. With a simple configuration, it is possible to print dots at a more flexible line feed pitch, including center-aligned printing.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を参照して本発明の一実施例を説明
する。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示す回路ブロツク
図である。
FIG. 1 is a circuit block diagram showing one embodiment of the present invention.

図中、10はシステム全体の制御を司るCPU、
11はメインメモリ(MM)、12はCPUバスで
ある。13はイメージラインバツフア(以下単に
ラインバツフアと称す)、14はシリアルドツト
プリンタである。
In the figure, 10 is a CPU that controls the entire system.
11 is a main memory (MM), and 12 is a CPU bus. 13 is an image line buffer (hereinafter simply referred to as line buffer), and 14 is a serial dot printer.

21はパターン変換時に於ける変換後の幅走査
方向の幅(主走査の間隔×回数)に相当するサイ
ズ(Vsize)を表わすレジスタ、22は同走査方
向の幅に相当するサイズ(Hsize)を表わすレジ
スタである。23は上記レジスタ21の内容に従
う長さをもつて下線、傍線のドツトパターンを発
生し、ラインバツフア13に書込む下線/傍線制
御部である。24は文字の斜形化、転回時等に於
ける指定角度に応じた角度情報(三角情報デー
タ)に貯える三角関数テーブルである。25はパ
ターン変換処理後の文字パターンがラインバツフ
ア13の縦方向幅、即ち基準文字高を越えた際
に、その文字パターンを上記基準文字高を単位に
ゾーン分けするためのゾーン指定用のレジスタで
ある。26及び27は文字の拡大・縮小倍率に従
うドツト刻み幅dx,dyを貯えるレジスタ、28
はパターン変換された文字に対し、0〜7ドツト
の範囲で選択的にオフセツトを与えるためのオフ
セツトレジスタ、29はオフセツトレジスタ28
のオフセツト値に従うドツト数をもつてオフセツ
トデータ(非表示を表わす“0”)を生成するオ
フセツトデータ生成部である。
21 is a register representing a size (Vsize) corresponding to the width in the scanning direction (main scanning interval x number of times) after conversion during pattern conversion, and 22 is a register representing a size (Hsize) corresponding to the width in the same scanning direction. It is a register. Reference numeral 23 denotes an underline/sideline control section which generates an underline/sideline dot pattern having a length according to the contents of the register 21 and writes it into the line buffer 13. Reference numeral 24 denotes a trigonometric function table that stores angle information (trigonometric information data) corresponding to specified angles for slanting, rotating, etc. characters. 25 is a zone designation register for dividing the character pattern into zones based on the standard character height when the character pattern after pattern conversion exceeds the vertical width of the line buffer 13, that is, the standard character height. . 26 and 27 are registers that store dot increments dx and dy according to the character enlargement/reduction magnification; 28
29 is an offset register 28 for selectively giving an offset in the range of 0 to 7 dots to a pattern-converted character.
This is an offset data generation section that generates offset data ("0" indicating non-display) with the number of dots according to the offset value of.

31乃至49はそれぞれドツト補間アドレスを
生成するための構成要素を成すもので、31はx
成分を含む副走査方向のドツト刻み幅DX1を貯
えるレジスタ、32はx成分を含む主走査方向の
ドツト刻み幅DX2を貯えるレジスタ、33はx
成分を含む主走査方向の初期値(イニシヤルアド
レス;X1init)を貯えるレジスタ、34はy成分
を含む副走査方向のドツト刻み幅DY1を貯える
レジスタ、35はy成分を含む主走査方向のドツ
ト刻み幅DY2を貯えるレジスタ、36はy成分
を含む副走査方向の初期値(イニシヤルアドレ
ス;Y1init)を貯えるレジスタである。上記各レ
ジスタ31〜36に貯えられるドツト補間アドレ
スはそれぞれ整数部のデータと小数部のデータか
らなる。
31 to 49 each constitute a component for generating a dot interpolation address, and 31 is x
A register that stores the dot step width DX1 in the sub-scanning direction including the x component, 32 a register that stores the dot step width DX2 in the main scan direction including the x component, and 33 a register that stores the dot step width DX2 in the main scanning direction including the x component.
A register that stores the initial value (initial address; A register 36 stores the width DY2, and a register 36 stores an initial value (initial address; Y1init) in the sub-scanning direction including the y component. The dot interpolation addresses stored in the registers 31 to 36 each consist of integer part data and decimal part data.

37は上記レジスタ31の内容とx成分を含む
副走査方向のドツト位置を示すレジスタ42の内
容とを加算する加算回路ADD−A、38は上記
レジスタ32の内容とx成分を含む主走査方向の
ドツト位置を示すレジスタ44の内容とを加算す
る加算回路ADD−B、39は上記レジスタ34
の内容とy成分を含む副走査方向のドツト位置を
示すレジスタ46の内容とを加算する加算回路
ADD−C、40は上記レジスタ35の内容とy
成分を含む主走査方向のドツト位置を示すレジス
タ48の内容とを加算する加算回路ADD−Dで
ある。
37 is an adder circuit ADD-A that adds the contents of the register 31 and the register 42 indicating the dot position in the sub-scanning direction including the x component; 38 is an adder circuit ADD-A that adds the contents of the register 32 and the dot position in the main scanning direction including the x component An adder circuit ADD-B, 39, adds the contents of the register 44 indicating the dot position.
and the contents of the register 46 indicating the dot position in the sub-scanning direction including the y component.
ADD-C, 40 is the content of register 35 above and y
This is an adder circuit ADD-D that adds the contents of the register 48 indicating the dot position in the main scanning direction including the component.

41は1文字分のドツト補間処理の開始時に上
記レジスタ33の内容を選択し、以後、一回の主
走査が行われる度に加算回路37の出力を選択す
るデータセレクタ、42はデータセレクタ41で
選択されたx成分を含む整数部と小数部で表わさ
れるドツト補間時の新たなドツトアドレスを貯え
るレジスタ、43は主走査の開始時に上記レジス
タ42の内容を選択し、以後、1ドツト分の補間
処理毎に加算回路38の出力を選択するデータセ
レクタ、44はデータセレクタ43で選択された
x成分を含むドツト補間時の新たなドツトアドレ
スを貯えるレジスタである。45は1文字分のド
ツト補間処理の開始時に上記レジスタ36の内容
の選択し、以後、一回の主走査が行われる度に加
算回路39と出力を選択するデータセレクタ、4
6はデータセレクタ45で選択されたy成分を含
む整数部と小数部で表わされるドツト補間時の新
たなドツトアドレスを貯えるレジスタ、47は主
走査の開始時に上記レジスタ46の内容を選択
し、以後、1ドツト分の補間処理毎の加算回路4
0の出力を選択するデータセレクタ、48はデー
タセレクタ47で選択されたy成分を含むドツト
補間時の新たなドツトアドレスを貯えるレジスタ
である。49は上記各データセレクタ41,4
3,45,47を制御する選択制御回路SCであ
る。
41 is a data selector that selects the contents of the register 33 at the start of dot interpolation processing for one character, and thereafter selects the output of the adder circuit 37 every time one main scan is performed; 42 is a data selector 41; A register 43 stores a new dot address at the time of dot interpolation, which is represented by an integer part and a decimal part including the selected x component, and selects the contents of the register 42 at the start of main scanning, and thereafter performs interpolation for one dot. A data selector 44 selects the output of the adder circuit 38 for each process, and is a register that stores a new dot address during dot interpolation that includes the x component selected by the data selector 43. A data selector 45 selects the contents of the register 36 at the start of the dot interpolation process for one character, and thereafter selects the addition circuit 39 and the output each time one main scan is performed.
6 is a register that stores a new dot address during dot interpolation, which is expressed by an integer part and a decimal part, including the y component selected by the data selector 45; 47 is a register that selects the contents of the register 46 at the start of main scanning, and then stores it. , addition circuit 4 for each interpolation process for one dot
A data selector 48 which selects an output of 0 is a register that stores a new dot address during dot interpolation that includes the y component selected by the data selector 47. 49 is each data selector 41, 4 mentioned above.
This is a selection control circuit SC that controls 3, 45, and 47.

50は後述する補間値との比較を行なうための
比較値、すなわち、閾値thを貯えるレジスタであ
る。
Reference numeral 50 denotes a register that stores a comparison value for comparison with an interpolated value to be described later, that is, a threshold value th.

51は漢字を含む所定ドツトマトリクス単位
(例えば24×24ドツト)の文字パターンデータが
格納された漢字パターンメモリKPMである。5
2は漢字パターンメモリ51より読出された1文
字分のドツトパターンを貯える、高速RAMによ
り構成された1文字バツフアであり、ここでは1
文字分のドツトパターンをその周囲をオフドツト
(“0”)のビツトパターンで埋めた状態で記憶す
る。53は1文字バツフア52に貯えられた文字
パターンデータのうち、レジスタ44,48の各
整数部の値に従い、新たなドツトを囲む1格子4
点のドツト情報を選択的に出力するビツト選択回
路である。54はビツト選択回路53より出力さ
れる4ビツトの情報を貯えるレジスタである。
Reference numeral 51 denotes a kanji pattern memory KPM in which character pattern data in a predetermined dot matrix unit (for example, 24×24 dots) including kanji characters is stored. 5
Reference numeral 2 denotes a one-character buffer composed of high-speed RAM that stores the dot pattern for one character read from the kanji pattern memory 51;
A dot pattern for a character is stored with its surroundings filled with off-dot ("0") bit patterns. 53 is a grid 4 surrounding a new dot according to the values of each integer part of registers 44 and 48 among the character pattern data stored in the character buffer 52.
This is a bit selection circuit that selectively outputs dot information of points. A register 54 stores 4-bit information output from the bit selection circuit 53.

55乃至57はビツト選択回路53より出力さ
れるドツト情報のパターンを認識し、4点のドツ
トで囲まれる新ドツトの補間値を選択的に切替え
制御するドツトパターン認識部DSPの構成要素
をなすもので、55はレジスタ54のビツト内容
から4点のドツトパターン状態を認識し、後述す
る特定のドツトパターン状態である際に、更にそ
の周囲の特定の2格子分のドツト情報の順次選択
すべくビツト選択回路53を制御する判別制御回
路、56はこの判別制御回路55の制御で読出さ
れた4ビツトの情報を貯えるレジスタ、57は判
別制御回路55の制御で読出された2格子分のド
ツト情報とレジスタ54のドツト情報とのドツト
パターン状態に応じた1ビツトの補間値切替選択
信号を出力するドツト判別回路である。
55 to 57 are components of a dot pattern recognition unit DSP that recognizes the pattern of dot information output from the bit selection circuit 53 and selectively switches and controls the interpolated value of a new dot surrounded by four dots. 55 recognizes the dot pattern state of the four points from the bit contents of the register 54, and when the dot pattern state is in a specific dot pattern state (to be described later), it further selects the bit information in order to sequentially select the dot information of two specific grids around the dot pattern state. A discrimination control circuit that controls the selection circuit 53; 56 is a register that stores 4-bit information read out under the control of the discrimination control circuit 55; and 57 is a register that stores dot information for two grids read out under the control of the discrimination control circuit 55. This is a dot discrimination circuit that outputs a 1-bit interpolation value switching selection signal according to the dot pattern state with the dot information in the register 54.

58はレジスタ44に貯えられた小数部の値
(5ビツトのx成分を含む主走査方向オフセツト
値)とレジスタ54に貯えられた4点のビツト情
報とドツト判別回路57より出力される1ビツト
補間値切替選択信号とを入力情報として、前記4
点のドツト情報で囲まれた領域内に於ける新たな
ドツトの補間値Qxyを出力する補間テーブル
ROMであり、ここで256Kビツト(32K×8ビツ
ト)のマスクROMを用い、前記した15ビツトの
読出しアドレスに従い、8ビツト(0〜255レベ
ル)の補間値を出力する。59は補間テーブル
ROM58より出力される補間値とレジスタ50
に貯えられた閾値との比較をとるコンパレータで
あり、補間値が比較値、即ち閾値を越えた際にオ
ンドツト(輝点)を示す“1”レベルの信号を出
力する。60はコンパレータ59より出力された
ドツト情報を順次貯え、文字パターンが展開され
るメモリの書込みドツト単位(ここでは8ビツト
単位とする)毎にCPUバス12上に出力するシ
フトレジスタである。
58 is a 1-bit interpolation output from the decimal part value stored in the register 44 (the main scanning direction offset value including the 5-bit x component), the 4-point bit information stored in the register 54, and the dot discrimination circuit 57. 4 above, using the value switching selection signal as input information.
Interpolation table that outputs the interpolated value Q xy of a new dot within the area surrounded by the dot information of the point
This ROM uses a 256K bit (32K x 8 bits) mask ROM and outputs an 8 bit (level 0 to 255) interpolated value in accordance with the 15 bit read address described above. 59 is an interpolation table
Interpolated value output from ROM58 and register 50
This is a comparator that compares the interpolated value with a threshold value stored in , and outputs a "1" level signal indicating an on-dot (bright spot) when the interpolated value exceeds the comparison value, that is, the threshold value. Reference numeral 60 denotes a shift register that sequentially stores the dot information output from the comparator 59 and outputs it onto the CPU bus 12 in units of memory write dots (in this case, units of 8 bits) in which a character pattern is developed.

70は印字すべき文字コード、及び文字の属性
情報を記憶する文字情報記憶バツフアであり、n
文字分の情報ブロツク701…をもつ。この文字
情報記憶バツフア70に於ける情報ブロツク70
1…の詳細は第11図をもとに後述する。90は
印刷方向(両方向/単方向)を指定するための印
刷方向制御フラグDIRFであり、印字ヘツドの1
往復動で計2行分の印字を行なう、所謂両方向印
字モードを指定する場合にのみ、セツト(DIRF
=“1”)される。91,92は、拡大倍率が予め
設定した基準拡大倍率を超え、印字ドツト数が極
端に増加して印字処理時の消費電力が規定値を超
えてしまう不都合を回避すべく、ドツト展開した
パターンの印字デユーテイの調整処理を行なうた
めのX方向、Y方向の調整倍率に対応するドツト
の刻み幅dxL,dyLを貯える一対をレジスタであ
る。
70 is a character information storage buffer for storing character codes to be printed and character attribute information;
It has an information block 701 for characters. Information block 70 in this character information storage buffer 70
1... will be described in detail later based on FIG. 11. 90 is a printing direction control flag DIRF for specifying the printing direction (bidirectional/unidirectional);
The SET (DIRF
= “1”). 91 and 92 are designed to prevent the inconvenience that the enlargement magnification exceeds a preset standard enlargement magnification, the number of printed dots increases extremely, and the power consumption during the printing process exceeds the specified value. A pair of registers stores dot step widths dx L and dy L corresponding to adjustment magnifications in the X and Y directions for adjusting the print duty.

第2図乃至第10図はそれどれ本発明で対象と
するところの、全角文字(標準文字)と混在して
印字出力される、拡大ないし変形文字を得るため
のドツト補間処理動作を説明するための図であ
る。
Figures 2 to 10 are for explaining the dot interpolation processing operation for obtaining enlarged or modified characters that are printed out mixed with full-width characters (standard characters), which are the object of the present invention. This is a diagram.

第2図a乃至fはぞれぞれ補間処理さにより生
成される新たなドツトを囲む1格子4点のドツト
情報(ドツトパターン)と補間テーブルROM5
8に設定された補間値のレベル区分とテーブルタ
イプとの関係を示す図であり、ここでは、補間値
を0〜255段階の輝度(明暗レベル)で表わし、
その区分された一部の領域を等高線で示してい
る。
Figures 2a to 2f show dot information (dot patterns) of four points in one grid surrounding new dots generated by interpolation processing and interpolation table ROM5.
8 is a diagram showing the relationship between level divisions of interpolated values set to 8 and table types, and here, interpolated values are expressed in brightness levels (brightness levels) of 0 to 255,
Some of the divided areas are shown with contour lines.

第3図は前記1格子4点のドツトパターンのう
ち、1ドツトのみがオン(“1”)又はオフ
(“0”)である際のテーブルタイプの選択切替例
を説明するためのもので、ドツトパターン認識部
DSPは、例えば周囲4点のドツトD0,D1,D2
D3のうち、1点のみがオフ、即ち“0”(図では
白抜きで示すD0)である際、更にその周囲の格
子の特定ドツトDa,Dbのオン・オフ状態を認識
し、Da,Db=“1”であれば、第2図dに示す
ようなコーナタイプのテーブルT1を選択し、
又、Da,Dbの少なくとも何れか一方が“0”で
あれば、第2図fに示すような斜形タイプのテー
ブルT0を選択する。このように、4点のドツト
領域内に位置する新たなドツトの補間値は、その
4点のドツトが上記したような特定のパターンを
なすとき、更にその周囲のドツト状態によつて定
められる。
FIG. 3 is for explaining an example of table type selection switching when only one dot among the four dot patterns in one grid is on (“1”) or off (“0”). Dot pattern recognition section
For example, the DSP uses four surrounding dots D 0 , D 1 , D 2 ,
When only one point among D 3 is off, that is, “0” (D 0 shown in white in the figure), the on/off state of specific dots Da and Db in the surrounding grid is recognized, and Da , Db="1", select a corner type table T1 as shown in FIG. 2d,
If at least one of Da and Db is "0", a diagonal type table T0 as shown in FIG. 2f is selected. In this way, the interpolated value of a new dot located within the four-point dot area is further determined by the state of the surrounding dots when the four dots form a specific pattern as described above.

第4図a乃至dは各種のパターン変換例を示す
もので、図中、Smは主走査方向、Ssは副走査方
向をそれぞれ示し、図aは正体(又は長体、平
体)、図bは斜体、図cは下揃え斜体、図dは回
転体をそれぞれ示している。
Figures 4 a to d show various pattern conversion examples. In the figures, Sm indicates the main scanning direction, Ss indicates the sub-scanning direction, and figure a is the normal body (or long body, flat body), figure b Figure c shows a bottom-aligned italic type, and Figure d shows a rotating body.

第5図a,bは、ドツト補間処理の出力対象即
わちイメーヂ出力対象と、その際のドツト補間時
に於ける主走査方向Sm及び副走査方向Ssとの関
係を説明するための図であり、図aはCRT表示
の際のドツト補間時に於ける主走査、及び副走査
の方向、図bはプリントアウトの際のドツト補間
時に於ける主走査、及び副走査の方向をそれぞれ
示している。このように、CRT表示出力時のド
ツト補間処理と、プリントアウト時のドツト補間
処理とでは主走査方向と副走査方向とが互いに入
替わつた状態となる。
FIGS. 5a and 5b are diagrams for explaining the relationship between the output target of the dot interpolation process, that is, the image output target, and the main scanning direction Sm and the sub-scanning direction Ss during the dot interpolation. , Figure a shows the main scanning and sub-scanning directions during dot interpolation during CRT display, and Figure b shows the main scanning and sub-scanning directions during dot interpolation during printout. In this way, the dot interpolation processing during CRT display output and the dot interpolation processing during printout result in a state in which the main scanning direction and the sub-scanning direction are interchanged with each other.

第6図は各種設定データの対応関係を示す図で
ある。
FIG. 6 is a diagram showing the correspondence of various setting data.

第7図はドツト補間処理によりパターン変換さ
れた文字と、その文字に外接する長方形(正方形
を含む)との関係を示す図である。
FIG. 7 is a diagram showing the relationship between a character pattern-converted by dot interpolation processing and a rectangle (including a square) circumscribing the character.

第8図は各種変形文字に対する文字ピツチCP
及び行ピツチLPの設定例を示す図である。
Figure 8 shows character pitch CP for various modified characters.
FIG. 4 is a diagram illustrating an example of setting the line pitch and line pitch LP.

第9図は各種変形文字に対する下線の展開例を
示す図である。
FIG. 9 is a diagram showing examples of development of underlines for various modified characters.

第10図はゾーン指定動作を説明するための図
である。
FIG. 10 is a diagram for explaining the zone designation operation.

第11図は、上記第1図に示す文字情報記憶バ
ツフア70に於ける情報ブロツク701…の詳細
を示したもので、図中、80は情報ブロツク70
1自体の状態を示す制御フラグCNTFを貯える
フラグ部、80は印字コードCODEを貯える文字
コード部、82は次に展開すべきゾーンの値
ZONEを貯えるゾーン指定部、83は印字ヘツド
の上端と印字した文字ドツトの下端との相対距離
dHを貯える相対距離記憶部、84はラインバツ
フア13の書込み開始アドレスdPを示すポイン
タ部、85,86は文字拡大・縮小倍率に従うド
ツト刻み幅dx,dyを貯える刻み幅記憶部、87
は、例えば回転文字を得る際の回転角度情報等、
文字変形の属性情報ATRを貯える属性情報記憶
部である。
FIG. 11 shows details of the information blocks 701 in the character information storage buffer 70 shown in FIG.
80 is a character code section that stores the print code CODE, and 82 is the value of the next zone to be developed.
Zone designation section that stores ZONE, 83 is the relative distance between the top of the print head and the bottom of the printed character dot.
84 is a pointer section indicating the write start address dP of the line buffer 13; 85 and 86 are step width storage sections that store dot step widths dx and dy according to the character enlargement/reduction magnification; 87
For example, rotation angle information when obtaining rotated characters, etc.
This is an attribute information storage unit that stores attribute information ATR of character transformations.

第12図及び第13図はそれぞれ一実施例に於
ける、全角文字と上記ドツト補間処理によつて得
られた拡大ないしは変形文字との混在印字動作を
説明するためのもので、第12図はシリアルプリ
ンタ14に於ける印字ヘツドと、展開された文字
ドツト下端との相対距離dHを説明するための図
であり、図中lhは印字ヘツド幅、leは用紙送り量
である。ここで、図中のに示す相対距離dHは、
拡大文字の最初のゾーン印字直後の状態であり、
dH=lHである。又、に示す相対距離dHは、
上記の後、一定の用紙送り量leだけ用紙送りを
実行した状態であり、dH=lH−le(但し、le≦lH
のとき)となる。
12 and 13 are for explaining the mixed printing operation of full-width characters and enlarged or modified characters obtained by the above-mentioned dot interpolation processing in one embodiment, respectively. This is a diagram for explaining the relative distance dH between the print head in the serial printer 14 and the bottom edge of a developed character dot, where lh is the width of the print head and le is the paper feed amount. Here, the relative distance dH shown in the figure is
This is the state immediately after printing the first zone of enlarged characters,
dH=lH. Also, the relative distance dH shown in
After the above, the paper is fed by a certain paper feed amount le, and dH=lH−le (however, le≦lH
).

第13図は、全角文字と拡大ないしは変形され
た文字との混在印字例を示したもので、ここで
は、全角文字100…と該文字100…を縦2
倍、横2倍した拡大文字200…とを中揃えの状
態で混在印字した場合の印字例を示している。
FIG. 13 shows an example of mixed printing of full-width characters and enlarged or modified characters. Here, full-width characters 100...
A printing example is shown in which enlarged characters 200, etc., which are doubled in width, doubled in width, and so on are mixed and printed in a center-aligned state.

第14図は上記実施例に於けるLF(用紙送り実
行)処理を示すフローチヤートであり、第15図
は同CR(印字開始)処理を示すフローチヤートで
ある。
FIG. 14 is a flowchart showing the LF (paper feed execution) process in the above embodiment, and FIG. 15 is a flowchart showing the CR (print start) process.

第16図は文字をイメージ展開する処理を詳細
フローチヤートであり、上記第14図に於ける※
1、及び第15図に於ける※2の処理部分に相当
する。
Figure 16 is a detailed flowchart of the process of developing characters into images, and the steps in Figure 14 above*
1, and corresponds to the processing part *2 in Fig. 15.

ここで、一実施例の動作を説明する。 Here, the operation of one embodiment will be explained.

先ず、一実施例に於ける混在文字の印字制御動
作を説明するに際し、第1図乃至第10図を参照
して、混在文字の位置対象となる拡大ないしは変
形文字パターンを得るためのドツト補間処理動作
を説明する。
First, when explaining the printing control operation for mixed characters in one embodiment, referring to FIGS. Explain the operation.

印字すべき文字コード列が各コードに附随する
属性情報とともに外部より入力されることによ
り、これらの各情報がCPU10の制御の下に、
1文字単位で文字情報記憶バツフア70内の情報
ブロツク701…にセツトされる。即ち、情報ブ
ロツク701…の文字コード部81に印字すべき
文字コードCODEがセツトされ、属性情報記憶部
87に属性情報ATRがセツトされるとともに、
制御フラグ部80が立てられ(セツトされ)て、
データセツト情報を表示する。又、上記文字コー
ド列及び該コードに附随する属性情報を除いた、
閾値(th;補間テーブルROM58より生成され
る補間値との比較を行なうための比較値)、更に
は上記各文字コードに対する文字パターンの拡
大・縮小倍率等の各種ドツト補間指定情報をメイ
ンメモリ11の予め定められた作業エリアに貯え
られる。更に、ドツト補間に際し、CPU10は、
外部より入力されたドツト補間指定情報に従い、
文字情報記憶バツフア70内の制御フラグ部80
の立つている各情報ブロツク701…の制御デー
タを作成し、情報ブロツク701…の内容をもと
に展開すべき1文字を単位としたドツト補間のた
めの各種レジスタの初期設定を行なう。即ち、
CPC10は、補間テーブルROM58より生成さ
れ補間値との比較を行なうための比較値即ち閾値
thをレジスタ50にセツトした後、指定された拡
大縮小倍率に従う基準となるドツト刻み幅(dx、
dy;拡大縮小倍率の逆数値)を算出して、これ
を文字情報記憶バツフア70内の対応する情報ブ
ロツク701…の刻み幅記憶部85,86にセツ
トする。更に、CPU10は、文字情報記憶バツ
フア70より、最初に展開処理すべき1文字分の
情報ブロツク701…を取出して、その属性情報
記憶部87の属性情報が回転又は斜体の文字変形
を示している際は、その指定角度に従う三角関数
データ(sin、cos、tan)を三角関数テーブル2
4にセツトする。その後、これらレジスタ26,
27、及び三角関数テーブル24の設定データ
(sin、cos、tan)をもとに、ドツト補間アドレス
を生成するための初期値(イニシヤルアドレス;
X1init、Y1init)、及びドツト刻み幅DX1、DX2、
DY2を算出し、これらのデータをレジスタ31
乃至36にセツトするとともに、拡大、転回等の
パターン変換によつて生ずる文字高、文字幅の変
動に伴うVサイズ、Hサイズの各データ
(Vsize、Hsize)を算出して、これをレジスタ2
1,22にセツトし、更に、ゾーン分けが生ずる
際は、そのゾーン数を算出して、このデータをレ
ジスタ25にセツトする。更に、ドツト補間され
た文字をその出力時に1〜7ドツトの範囲内で移
動させる場合(例えばドツト補間されたルビ文
字、半角文字等を例えばプリントアウト時に1〜
7ドツトの範囲をもつて上下移動させる場合等)、
又はパターン変換された文字の主走査方向ドツト
数が、その出力対象となるイメージメモリの書込
み幅(8ビツト)の倍数とならず、イメージメモ
リ側のバイト境界(書込み幅)と合わせる必要が
生じた場合等に於いては、オフセツト用のレジス
タ28に1〜7ビツトの範囲内でオフセツト値が
セツトされる。
By inputting the character code string to be printed from the outside together with the attribute information attached to each code, each of these pieces of information is processed under the control of the CPU 10.
Each character is set in the information block 701 in the character information storage buffer 70. That is, the character code CODE to be printed is set in the character code section 81 of the information block 701, and the attribute information ATR is set in the attribute information storage section 87.
The control flag section 80 is raised (set),
Display dataset information. In addition, excluding the above character code string and the attribute information attached to the code,
The main memory 11 stores various dot interpolation specification information such as a threshold value (th; a comparison value for comparison with the interpolated value generated from the interpolation table ROM 58), and furthermore, the enlargement/reduction magnification of the character pattern for each of the above character codes. stored in a predetermined work area. Furthermore, during dot interpolation, the CPU 10
According to the dot interpolation specification information input from the outside,
Control flag unit 80 in character information storage buffer 70
Control data is created for each information block 701 where the information block 701 is set, and various registers are initialized for dot interpolation in units of characters to be expanded based on the contents of the information block 701. That is,
CPC10 is a comparison value, that is, a threshold value, generated from the interpolation table ROM58 and used for comparison with the interpolated value.
After setting th in the register 50, set the standard dot step size (dx,
dy (reciprocal value of the enlargement/reduction magnification) is calculated and set in the step width storage units 85, 86 of the corresponding information block 701 in the character information storage buffer 70. Further, the CPU 10 retrieves from the character information storage buffer 70 an information block 701 for one character to be processed first, and reads the information block 701 for which the attribute information in the attribute information storage section 87 indicates character transformation such as rotation or italic. When using trigonometric function table 2, input the trigonometric function data (sin, cos, tan) according to the specified angle.
Set to 4. After that, these registers 26,
27, and the setting data (sin, cos, tan) of the trigonometric function table 24, an initial value (initial address;
X1init, Y1init), and dot increments DX1, DX2,
Calculate DY2 and store these data in register 31.
36 to 36, calculate the V size and H size data (Vsize, Hsize) associated with variations in character height and character width caused by pattern conversion such as enlargement and rotation, and store this in register 2.
1 and 22, and furthermore, when zoning occurs, the number of zones is calculated and this data is set in the register 25. Furthermore, when moving dot-interpolated characters within the range of 1 to 7 dots when outputting them (for example, moving dot-interpolated ruby characters, half-width characters, etc. within the range of 1 to 7 dots when printing out
(e.g. when moving up and down within a range of 7 dots),
Or, the number of dots in the main scanning direction of the pattern-converted character is not a multiple of the write width (8 bits) of the image memory to be output, and it becomes necessary to align it with the byte boundary (write width) on the image memory side. In some cases, an offset value within the range of 1 to 7 bits is set in the offset register 28.

又、上記ドツト補間処理のための各種データの
設定以外に、印削処理のための制御データとし
て、印刷方向制御フラグ90に、両方向/単方向
の印字モードを指定するための情報DIRFが設定
されるとともに、レジスタ91,92に、ドツト
展開したパターンの印字デユーテイの調整処理対
象となる基準倍率に対応するドツト刻み幅dxL
dyLが設定される。ここで、上記印刷方向制御フ
ラグ90には、印字ヘツドに1往復動で行帰り計
2行分の印字を行なう、所謂両方向の印字モード
を指定する場合にのみ、DIRFがセツト(“1”)
される。又、レジスタ91,92には、拡大文字
の印字ドツト数が多くなり過ぎて、印字処理時の
消費電力が規定値を越えることのないよう、印字
ドツト数を調整(間引く)するための、予め設定
された印字デイーテイ調整処理を行なう基準調整
倍率に対応するドツトの刻み幅dxL、dyLがセツ
トされる。
In addition to setting various data for the dot interpolation process, information DIRF for specifying bidirectional/unidirectional printing mode is set in the print direction control flag 90 as control data for the printing process. At the same time, the registers 91 and 92 contain the dot increment width dx L , which corresponds to the standard magnification to which the print duty of the dot-developed pattern is adjusted.
dy L is set. Here, in the printing direction control flag 90, DIRF is set (“1”) only when specifying a so-called bidirectional printing mode in which a total of two lines of printing are performed in one reciprocating motion of the print head.
be done. In addition, the registers 91 and 92 contain preset values for adjusting (thinning out) the number of printed dots so that the number of printed dots for enlarged characters does not become too large and the power consumption during printing processing does not exceed the specified value. Dot step widths dx L and dy L corresponding to the reference adjustment magnification for performing the set print date adjustment processing are set.

上記したように各レジスタの初期設定を終了し
た後、CPU10は以下のようなドツト補間アド
レスの生成処理を開始する。
After completing the initial setting of each register as described above, the CPU 10 starts the following dot interpolation address generation process.

ここでは、先ず、ドツト補間が第4図aに示す
ような正体(又は長体、平体)を出力対象として
行われる場合(例えば単純な拡大・縮小)を例に
とり全体の動作を説明する。このドツト補間時に
於いては、レジスタ31に「0」、レジスタ32
にドツト刻み幅「dx」、レジスタ33に主走査方
向のSmの初期値「sx」、レジスタ34にドツト
刻み幅「dy」、レジスタ35に「0」、レジスタ
36に副走査方向Ssの初期値「sy」がそれぞれ
セツトされる。
Here, first, the overall operation will be explained by taking as an example the case where dot interpolation is performed using a real object (or elongated object, flat object) as an output object (for example, simple enlargement/reduction) as shown in FIG. 4a. During this dot interpolation, register 31 is set to "0" and register 32 is set to "0".
dot step width "dx" in register 33, initial value "sx" of Sm in main scanning direction in register 34, dot step width "dy" in register 34, "0" in register 35, initial value of Ss in sub-scanning direction in register 36. "sy" is set respectively.

ここで上記レジスタ32,34にセツトされる
ドツト刻み幅dx,dyは拡大縮小倍率の逆数値と
して与えらる。又、レジスタ33には、〔Ix=
(dx−1)/2〕でなるIxが初期値sxとして与え
られ、レジスタ36には〔Iy=(dy−1)/2〕
でなるIyが初期値syとして与えられるもので、
dx又はdyが「1」以下のとき(即ち拡大時)は、
Ix又はIyが負となつて1文字バツフア52の原文
字パターン格納領域外のアドレスを示し、dx又
はdyが「1」以上のとき(即ち縮小時)はIx又
はIyが正となつて1文字バツフア52の原文字パ
ターン格納領域内のアドレスを示す。又、レジス
タ50には補間テーブルROM58より出力され
る補間値と比較をとり、新ドツトの何れのレベル
以上のものを意味のあるドツトとするかを決定す
るための任意レベル(0〜255レベル)の比較値
即ち閾値thがセツトされる。
Here, the dot step widths dx and dy set in the registers 32 and 34 are given as reciprocal values of the enlargement/reduction magnification. Also, in the register 33, [Ix=
(dx-1)/2] is given as the initial value sx, and the register 36 has [Iy=(dy-1)/2]
Iy is given as the initial value sy,
When dx or dy is less than "1" (i.e. when enlarging),
Ix or Iy becomes negative and indicates an address outside the original character pattern storage area of the one-character buffer 52, and when dx or dy is "1" or more (i.e., during reduction), Ix or Iy becomes positive and indicates one character. The address in the original character pattern storage area of the buffer 52 is shown. Further, the register 50 has an arbitrary level (0 to 255 levels) for comparing the interpolation value outputted from the interpolation table ROM 58 and determining which level or higher of the new dot is considered a meaningful dot. A comparison value, ie, a threshold value th, is set.

更にCPU10は、上記文字情報記憶バツフア
70より取出した最初の1文字分の情報ブロツク
701の文字コード部81の文字コードCODE1
に従い、漢字パターンメモリ51より、ドツト補
間対象となる1文字分のドツトパターンを読出
し、この文字パターンデータを1文字バツフア5
2に書込む。その際、1文字バツフア52には、
上述したように、ドツト補間対象となる1文字分
のドツトパターンデータが、その周囲を意味の無
い“0”のドツトで囲まれた状態で記憶される。
Furthermore, the CPU 10 reads the character code CODE 1 in the character code section 81 of the information block 701 for the first character extracted from the character information storage buffer 70.
Accordingly, a dot pattern for one character to be interpolated is read from the kanji pattern memory 51, and this character pattern data is converted into a one-character buffer 5.
Write in 2. At that time, the one character buffer 52 is
As described above, the dot pattern data for one character to be subjected to dot interpolation is stored surrounded by meaningless "0" dots.

上記レジスタ31〜36へのデータセツト、及
び1文字バツフア52への補間対象文字パターン
の取出しが終了した後、選択制御回路49の制御
の下に、レジスタ33,36に貯えられたイニシ
ヤルドツトアドレスとなるデータsx,syが選択
回路41,45により選択され、それぞれ対応す
るレジスタ42,46に貯えられる。更に主走査
の開始にあたつて、上記レジスタ42,46に貯
えられたデータsx,syが選択回路43,47に
より選択され、それぞれ対応するレジスタ44,
48に貯えられる。
After setting the data in the registers 31 to 36 and taking out the character pattern to be interpolated into the one-character buffer 52, the initial dot addresses stored in the registers 33 and 36 are set under the control of the selection control circuit 49. Data sx and sy are selected by selection circuits 41 and 45 and stored in corresponding registers 42 and 46, respectively. Furthermore, at the start of main scanning, the data sx and sy stored in the registers 42 and 46 are selected by the selection circuits 43 and 47, and are sent to the corresponding registers 44 and 47, respectively.
It can be stored in 48.

このレジスタ44,48に貯えられたデータ
sx,syは、その整数部の値がビツト選択回路5
3に与えられ、小数部の値が補間テーブルROM
58に与えられる。
Data stored in these registers 44 and 48
The value of the integer part of sx and sy is the bit selection circuit 5.
3, and the value of the decimal part is stored in the interpolation table ROM
58.

ビツト選択回路53は上記入力された整数部の
値にもとづいて1文字バツフア52により、1格
子4点のドツト情報を選択し、補間テーブル
ROM58に供給する。この際、拡大時(dx,
dy,<1)に於いては、ビツト選択回路53に、
1文字バツフア52の原文字パターン格納領域外
のアドレスを示す負の値が与えられることがら、
原文字パターン格納領域外のドツトを含む1格子
4点のドツト情報よりドツト選択を開始する。
又、縮小時(dx,dy>1)に於いては、ビツト
選択回路53に、1文字バツフア52の原文字パ
ターン格納領域内のアドレスを示す正の値が与え
られることから、原文字パターン格納領域内の1
格子4点のドツト情報よりドツト選択を開始す
る。
The bit selection circuit 53 selects the dot information of four points in one grid using the one character buffer 52 based on the value of the integer part inputted above, and selects the dot information of four points in one grid.
Supply to ROM58. At this time, when enlarging (dx,
dy,<1), the bit selection circuit 53
Since a negative value indicating an address outside the original character pattern storage area of the one-character buffer 52 is given,
Dot selection is started from dot information of four points in one grid, including dots outside the original character pattern storage area.
Furthermore, during reduction (dx, dy > 1), a positive value indicating the address within the original character pattern storage area of the one-character buffer 52 is given to the bit selection circuit 53. 1 in the area
Dot selection is started from the dot information of the four grid points.

補間テーブルROM58は、上記レジスタ4
4,48からの各オフセツト値(計10ビツト)
と、ビツト選択回路53からの周囲4点のドツト
情報と、ドツトパターン認識部DSPからの1ビ
ツトの補間値切替選択信号とを入力情報として、
その内容に従う8ビツトの補間値Qxyを出力す
る。この際、ビツト選択回路53より出力された
1格子4点のドツトパターンがドツトパターン認
識部DSPにより認識され、第3図に示す如く、
特定のドツトパターンである際は、更にその周囲
の格子の特定ドツトのオン・オフ状態を認識し
て、そのドツト状態に応じた1ビツトの補間値切
替選択信号を出力する。即ち、例えば第3図に示
す如く、周囲4点のドツトD0,D1,D2,D3のう
ち、1点のみがオフ即ち“0”(図では白抜きで
示すD0)である際は、更にその周囲の格子の特
定ドツトDa,Dbのオン・オフ状態を認識し、
Da,Dd=“1”であれば、第2図dに示すよう
なコーナタイプのテーブルT1を選択し、又、
Da,Dbの少なくとも何れか一方が“0”であれ
ば、第2図fに示すような斜形タイプのテーブル
T0を選択すべく補間値切替選択信号を出力する。
又、周囲4点のドツトD0,D1,D2,D3の
うち、1点のみがオン即ち“1”(図では黒点で
示すD0)である際は、更にその周囲の格子の特
定ドツトDa,Dbのオン・オフ状態を認識し、
Da,Dd=“0”であれば、第2図aに示すよう
なコーナタイプのテーブルT1を選択し、又、
Da,Dbの少なくとも何れか一方が“1”であれ
ば、第2図eに示すような斜形タイプのテーブル
T0を選択すべく補間値切替選択信号を出力す
る。このように、4点のドツト領域内に位置する
新たなドツトの補間値は、その4点のドツトが上
記したような特定のパターンをなすとき、更にそ
の周囲のドツト状態によつて定められる。そして
上記補間テーブルROM58より出力された8ビ
ツト(0〜255レベル)の補間値はコンパレータ
59に入力されて、レジスタ36に貯えられた比
較値即ち閾値と比較され、補間値が閾値を越えて
いれば、意味のあるドツトであることを示す、
“1”レベルの信号を出力し、又、補間値が閾値
を越えていなければ、意味の無いドツトであるこ
とを示す、“0”レベルの信号を出力する。
The interpolation table ROM 58 is stored in the register 4 mentioned above.
Each offset value from 4 and 48 (total 10 bits)
, dot information of the surrounding four points from the bit selection circuit 53, and a 1-bit interpolation value switching selection signal from the dot pattern recognition unit DSP as input information,
Outputs an 8-bit interpolated value Q xy according to the content. At this time, the dot pattern of four points per grid outputted from the bit selection circuit 53 is recognized by the dot pattern recognition section DSP, and as shown in FIG.
When it is a specific dot pattern, the on/off state of specific dots in the surrounding grid is recognized and a 1-bit interpolation value switching selection signal corresponding to the dot state is output. That is, as shown in FIG. 3, for example, among the four surrounding dots D 0 , D 1 , D 2 , and D 3 , only one point is off or "0" (D 0 shown in white in the figure). In addition, the on/off status of specific dots Da and Db in the surrounding grid is recognized,
If Da, Dd="1", corner type table T 1 as shown in Figure 2 d is selected, and
If at least either Da or Db is “0”, a diagonal type table as shown in Figure 2 f is created.
Outputs an interpolation value switching selection signal to select T0.
Also, when only one of the four surrounding dots D0, D1, D2, and D3 is on, that is, "1" (D 0 indicated by a black dot in the figure), the specific dots Da, Recognizes the on/off status of Db,
If Da, Dd="0", corner type table T1 as shown in FIG. 2a is selected, and
If at least one of Da and Db is "1", an interpolation value switching selection signal is output to select a diagonal type table T0 as shown in FIG. 2e. In this way, the interpolated value of a new dot located within the four-point dot area is further determined by the state of the surrounding dots when the four dots form a specific pattern as described above. The 8-bit (level 0 to 255) interpolated value outputted from the interpolation table ROM 58 is input to a comparator 59 and compared with a comparison value, that is, a threshold value, stored in the register 36, and if the interpolated value exceeds the threshold value. For example, it indicates that it is a meaningful dot,
It outputs a "1" level signal, and if the interpolated value does not exceed the threshold value, it outputs a "0" level signal indicating that the dot is meaningless.

一方、補間テーブルROM58より1ドツトの
補間値が出力された後、レジスタ44の内容とレ
ジスタ32の内容とが加算回路38により加算さ
れるとともに、レジスタ48の内容とレジスタ3
5の内容とが加算回路40により加算され、その
各加算結果のデータが選択制御回路49の制御の
もとにそれぞれ対応するデータセレクタ43,4
7により選択されて、レジスタ44,48に貯え
られる。この際、主走査方向のドツト刻み幅を示
すレジスタ32,35のうち、レジスタ32に
は、指定された拡大縮小倍率に従うドツト刻み幅
dxが設定されているが、レジスタ35には、正
体(又は長体、平体)のドツト補間であることか
ら上述した如く「0」が設定されており、従つ
て、レジスタ44の内容(ドツトアドレス)は、
1ドツトの補間処理毎に、指定された拡大縮小倍
率に従うドツト刻み幅dxをもつて逐次更新され
るが、レジスタ48の内容は結果的に更新されず
初期設定時のデータがそのまま保持される。又、
1回の主走査が終了する毎に、レジスタ42の内
容とレジスタ31の内容とが加算回路37により
加算されるとともに、レジスタ46の内容とレジ
スタ34の内容とが加算回路39により加算さ
れ、その各加算結果のデータが選択制御回路49
の制御のもとにそれぞれ対応するデータセレクタ
41,45により選択されて、レジスタ42,4
6に貯えられる。この際、副走査方向のドツト刻
み幅を示すレジスタ31,34のうち、レジスタ
34には、指定された拡大縮小倍率に従うドツト
刻み幅dyが設定されているが、レジスタ31に
は、正体(又は長体、平体)のドツト補間である
ことから上述した如く「0」が設定されており、
従つて、レジスタ46の内容(ドツトアドレス)
は、1回の主走査が行われる毎に、指定された拡
大縮小倍率に従うドツト刻み幅dyをもつて更新
されるが、レジスタ42の内容は結果的に更新さ
れず初期設定時のデータがそのまま保持される。
On the other hand, after the interpolated value of one dot is output from the interpolation table ROM 58, the contents of the register 44 and the contents of the register 32 are added by the adder circuit 38, and the contents of the register 48 and the contents of the register 3 are added.
5 are added by the addition circuit 40, and the data of each addition result is sent to the corresponding data selectors 43 and 4 under the control of the selection control circuit 49.
7 and stored in registers 44 and 48. At this time, among the registers 32 and 35 indicating the dot increments in the main scanning direction, register 32 contains the dot increments according to the specified enlargement/contraction magnification.
dx is set, but the register 35 is set to "0" as described above because it is a true body (or long body, flat body) dot interpolation, and therefore the contents of the register 44 (dot address) is
Each time one dot is interpolated, the dot width dx is updated in accordance with the specified enlargement/reduction ratio, but the contents of the register 48 are not updated as a result, and the data at the time of initial setting is maintained as is. or,
Every time one main scan is completed, the contents of the register 42 and the contents of the register 31 are added by the adder circuit 37, and the contents of the register 46 and the contents of the register 34 are added by the adder circuit 39. The data of each addition result is selected by the selection control circuit 49.
are selected by corresponding data selectors 41 and 45 under the control of registers 42 and 4.
It can be stored in 6. At this time, among the registers 31 and 34 indicating the dot increment width in the sub-scanning direction, the dot increment width dy according to the specified enlargement/reduction ratio is set in the register 34, but the dot increment width dy in the register 31 is Since this is a dot interpolation for long bodies and flat bodies, "0" is set as mentioned above.
Therefore, the contents of register 46 (dot address)
is updated with a dot step width dy according to the specified enlargement/reduction ratio every time one main scan is performed, but the contents of the register 42 are not updated as a result and the initial setting data remains unchanged. Retained.

このようにして、順次、補間テーブルROM5
8より、新たなドツトアドレスに対する補間値が
出力され、この補間値が、コンパレータ59によ
り、レジスタ50の閾値thと比較されて、新たな
ドツト情報が生成される。
In this way, the interpolation table ROM5 is
8 outputs an interpolated value for the new dot address, and the comparator 59 compares this interpolated value with the threshold th of the register 50 to generate new dot information.

そして、上記コンパレータ59より出力された
補間処理後の新ドツト情報は、順次、シフトレジ
スタ60に貯えられ、1バイト単位でCPUバス
12上に送出される。
The new dot information output from the comparator 59 after interpolation processing is sequentially stored in the shift register 60 and sent out onto the CPU bus 12 in units of bytes.

この際、CPU12上に送出されるドツト補間
処理された文字パターンデータが、プリントアウ
ト用としてラインバツフア13に書込まれる場合
であつて、かつオフセツレジスタ28に1〜7ド
ツト範囲内のオフセツト値がセツトされている場
合(例えばドツト補間されたルビ文字をプリント
アウト時にi(i=1、2、…、7)ドツト下方
へ移動させる場合)、又は、パターン変換された
文字の主走査方向ドツト数が、その出力対象とな
るイメージメモリの書込み幅(8ドツト)の倍数
とならず、イメージメモリ側のバイト境界(書込
み幅)と合わせる必要が生じ、オフセツトレジス
タ28に、そのオフセツト値iが設定されている
場合等に於いては、そのオフセツトレジスタ28
のオフセツト値iに従い、オフセツトデータ生成
部29よりオフセツトデータ(i個の“0”)が
生成されて、該データが主走査の開始に先立ち、
シフトレジスタ60にセツトされ、その後に続い
てビツト補間されたデータ即ち、変換処理された
文字パターンビツトが書込まれる。
At this time, if the character pattern data that has undergone dot interpolation processing and is sent to the CPU 12 is written to the line buffer 13 for printing out, and the offset register 28 has an offset value within the range of 1 to 7 dots. If the number of dots in the main scanning direction of the pattern-converted character is set (for example, when moving a dot-interpolated ruby character downward by i (i = 1, 2, ..., 7) dots when printing out), or the number of dots in the main scanning direction of the pattern-converted character. However, it is not a multiple of the write width (8 dots) of the image memory to be output, and it becomes necessary to match it with the byte boundary (write width) on the image memory side, and the offset value i is set in the offset register 28. If the offset register 28 is
The offset data generating section 29 generates offset data (i number of "0s") according to the offset value i of
The data is set in the shift register 60, and subsequently bit-interpolated data, that is, converted character pattern bits are written.

上記した動作は正体(又は長体、平体)を出力
対象とした場合であつたが、例えば回転体を出力
対象とした場合のドツト補間アドレスの生成処理
後に於いては、レジスタ31〜36の全てに、指
定回転角に従う三角関数テーブル24内の所定三
角関数データが一要素として含まれるデータがセ
ツトされる。
The above operation was performed when a real body (or a long body, or a flat body) was the output target, but for example, after the dot interpolation address generation process when a rotating body is the output target, registers 31 to 36 are In all cases, data is set in which predetermined trigonometric function data in the trigonometric function table 24 according to the designated rotation angle is included as one element.

即ち、指定された回転角〔θ0〕、原フオントの
x方向ドツト数を〔a+1〕、原フオントのy方
向ビツト数を〔b+1〕とすると、 レジスタ31には、DX1=−dx・sinθ0 レジスタ32には、DX2=dx・cosθ0 レジスタ34には、DY1=dy・cosθ0 レジスタ35には、DY2=dy・sinθ0 がそれぞれセツトされる。
That is, when the specified rotation angle [θ 0 ], the number of dots in the x direction of the original font is [a+1], and the number of bits in the y direction of the original font is [b+1], the register 31 stores DX1=-dx・sinθ 0 In the register 32, DX2=dx· cosθ0; in the register 34, DY1=dy·cosθ0 ; in the register 35, DY2=dy· sinθ0 .

又、レジスタ33(X1init)、及びレジスタ3
6(Y1init)には、 (1) 0°≦θ0≦90°のとき、 X1init=1/2a−1/2(a+1−dx)cos2θ0 Y1init=−1/2(1−dy)−1/2(a+1−dy) dy/dxsin2θ0 (2) 90°≦θ0≦180°のとき、 X1init=a+1/2(1−dx)−1/2(b+1− dy) dx/dysin2θ0 Y1init=1/2b+1/2(b+1−dy)cos2θ0 (3) 180°≦θ0≦270°のとき、 X1init=1/2a+1/2(a+1−dx)cos2θ0 Y1init=b+1/2(1−dy)+1/2(a+1− dx) dy/dxsin2θ0 (4) 270°≦θ0≦360°のとき、 X1init=1/2(1−dx)+1/2(b+1−dx) dx/dysin2θ0 Y1init=1/2b−1/2(b+1−dy)cos2θ0 をそれぞれセツトする。
Also, register 33 (X1init) and register 3
6 (Y1init): (1) When 0°≦θ 0 ≦90°, X1init=1/2a-1/2(a+1-dx) cos2θ 0 Y1init=-1/2(1-dy)-1 /2(a+1-dy) dy/dxsin2θ 0 (2) When 90°≦θ 0 ≦180°, X1init=a+1/2(1-dx)-1/2(b+1-dy) dx/dysin2θ 0 Y1init= 1/2b+1/2(b+1-dy)cos2θ 0 (3) When 180°≦θ 0 ≦270°, X1init=1/2a+1/2(a+1-dx)cos2θ 0 Y1init=b+1/2(1-dy) +1/2(a+1-dx) dy/dxsin2θ 0 (4) When 270°≦θ 0 ≦360°, X1init=1/2(1-dx)+1/2(b+1-dx) dx/dysin2θ 0 Y1init= Set 1/2b-1/2(b+1-dy) cos2θ0 , respectively.

上述した如くして、転回角度θ0に従う三角関数
データを含むドツト刻み幅、イニシヤルアドレス
等の各設定DX1、DX2、DY1、DY2、X1init、
Y1initを算出し、それぞれ対応するレジスタ31
〜36にセツトした後、上述したような主走査方
向、及び副走査方向に対するドツト補間アドレス
生成処理を順次実行することにより、指定角度θ0
に従つた転回文字パターンドツトが得られる。
As described above, each setting DX1, DX2 , DY1, DY2,
Y1init is calculated and the corresponding register 31
~36, and then sequentially executes the dot interpolation address generation process for the main scanning direction and the sub-scanning direction as described above, to obtain the specified angle θ 0
An inverted character pattern dot according to is obtained.

又、斜形化文字を出力対象とした場合のドツト
補間アドレスの生成処理時に於いては、レジスタ
31〜36のうちの特定のレジスタに、指定傾斜
角に従う三角関数テーブル24内の所定三角関数
データを一要素として含んだデータがセツトされ
る。
Also, when generating a dot interpolation address when an oblique character is to be output, predetermined trigonometric function data in the trigonometric function table 24 according to the specified slope angle is stored in a specific register among the registers 31 to 36. The data containing this as one element is set.

即ち、指定された斜体角を〔θ0〕、原フオント
のx方向ビツト数を〔a+1〕、原フオントのy
方向ビツト数を〔b+1〕とすると、 0°≦θ0≦90°の範囲で、 レジスタ31には、DX1=−dx・tanθ0 レジスタ32には、DX2=dx レジスタ34には、DY1=dy レジスタ35には、DY2=0 がそれぞれセツトされ、 又、レジスタ33には、 X1init=1/2(1−dx)−(b+1−dy)dx/dytan
θ0 レジスタ36には、Y1init=−1/2(1−dy) がそれぞれセツトされる。
That is, the specified italic angle is [θ 0 ], the number of bits in the x direction of the original font is [a+1], and the y of the original font is
If the number of direction bits is [b+1], in the range 0°≦θ 0 ≦90°, register 31 has DX1=-dx・tanθ 0 register 32 has DX2=dx register 34 has DY1=dy DY2=0 is set in the register 35, and X1init=1/2(1-dx)-(b+1-dy)dx/dytan is set in the register 33.
Y1init=-1/2 (1-dy) is set in the θ 0 register 36, respectively.

上述の如くして、傾斜角度θ0に従う三角関数デ
ータを含むドツト刻み幅、イニシヤルアドレス等
の各設定値DX1、DX2、DY1、DY2、X1init、
Y1initを算出し、それぞれ対応するレジスタ31
〜36にセツトした後、上述したような主走査方
向、及び副走査方向に対するドツト補間アドレス
生成処理を順次実行することにより、指定角度θ0
に従つて斜形化された斜体文字パターンが得られ
る。
As described above, each setting value DX1, DX2 , DY1, DY2,
Y1init is calculated and the corresponding register 31
~36, and then sequentially executes the dot interpolation address generation process for the main scanning direction and the sub-scanning direction as described above, to obtain the specified angle θ 0
A slanted italic character pattern is obtained according to .

上述したような、指定角度θ0に従う三角関数デ
ータを含むドツト刻み幅、イニシヤルアドレス等
の各設定値DX1、DX2、DY1、DY2、X1init、
Y1initをもとに、上述したように主走査方向、及
び副走査方向に対するドツト補間アドレス生成処
理を順次実行して、その生成されたドツト補間ア
ドレスをもとに新たなドツト情報を得る。この新
たなドツト情報は、上記同様に、順次シフトレジ
スタ60に貯えられ、バイト(8ビツト)単位で
CPUバス12を経由し、出力対象となる。例え
ば印字制御部17のラインバツフア18に書込ま
れる。
Each set value DX1, DX2, DY1, DY2, X1init, including the trigonometric function data according to the specified angle θ 0 , such as the dot step width and initial address, as described above.
Based on Y1init, the dot interpolation address generation processing for the main scanning direction and the sub-scanning direction is sequentially executed as described above, and new dot information is obtained based on the generated dot interpolation address. This new dot information is sequentially stored in the shift register 60 in the same manner as above, and is stored in byte (8 bit) units.
It is outputted via the CPU bus 12. For example, it is written to the line buffer 18 of the print control section 17.

この際、ラインバツフア13は、通常印字文字
高のドツト構成に対応するビツト幅(例えば縦8
×3=24ビツト)で構成されており、従つて上述
したような回転体文字、斜体文字等の変形文字に
対しては、縮小パターンの場合を除き、24ビツト
のサイズには収まらない。そこで、このような場
合は、上述したレジスタ初期設定の際に、新たな
生成される文字パターンを複数のゾーンに分ける
べく、CPU10が、指定された変換文字体及び
その角度、拡大縮小倍率等をもとに変換された文
字に対してのゾーン数を算出し、このゾーン数を
表わすデータをゾーン指定用レジスタ25にセツ
トして、ゾーン単位のパターン書込み毎に上記レ
ジスタ25の内容をデクリメントし(−1)し、
その内容が「0」となるまでは、各ゾーンのパタ
ーンデータを同一文字パターンとして扱う。即
ち、ゾーン指定用レジスタ25により指定された
ゾーンに対しては、その各パターン間に空白エリ
ア(即ち行間隔)を介在させず、連続するドツト
印字指定を行なう。この際のゾーン分けの一例を
第10図に示している。
At this time, the line buffer 13 has a bit width corresponding to the dot configuration of the normal printed character height (for example, 8 vertically
×3=24 bits), and therefore, the above-mentioned modified characters such as rotated characters and italic characters cannot fit into the 24-bit size, except in the case of reduced patterns. Therefore, in such a case, during the register initialization described above, the CPU 10 stores the specified converted character font, its angle, scaling factor, etc. in order to divide the newly generated character pattern into multiple zones. The number of zones for the originally converted character is calculated, data representing this number of zones is set in the zone specification register 25, and the contents of the register 25 are decremented each time a pattern is written in zone units ( -1) and
Until the content becomes "0", the pattern data of each zone is treated as the same character pattern. That is, for the zone designated by the zone designation register 25, continuous dot printing is designated without intervening blank areas (ie, line spacing) between each pattern. An example of zone division at this time is shown in FIG.

上記ゾーン数の算出手段は、第6図、及び第7
図に示すように、指定された、回転角度/斜体角
度/拡大縮小倍率等から、変換(変形)された文
字に対して外接するx・y方向の長方形(正方形
を含む)の大きさの求め、その方形の互いに接す
る2辺の各ビツト数(x・yドツト数)を求め
て、これを前述したレジスタ初期設定の際に、V
サイズ(Vsize)、Hサイズ(Hsize)のデータと
して、レジスタ21,22にセツトしておくこと
により、容易に認識できる。即ち、或る角度をも
つて変換された文字に対しては、その文字の書込
み(取扱い)が、当該文字に外接する水平・垂直
線上の長方形のエリアをベースとして行われるも
ので、例えばプリントアウトの際のドツト補間処
理時に於いては、レジスタ22に貯えられたHサ
イズ(Hsize)のデータをラインバツフア18の
ビツト幅「24」で除算することにより、容易に上
記ゾーン数を求めることができ、又、表示出力の
際のドツト補間処理時に於いては、レジスタ21
に貯えられたVサイズ(Vsize)のデータを1表
示行のビツト幅「24」で除算することにより、容
易にゾーン数を求めることができる。
The means for calculating the number of zones mentioned above are shown in Figures 6 and 7.
As shown in the figure, the size of the rectangle (including squares) in the x and y directions that circumscribes the converted (transformed) character is determined from the specified rotation angle, italic angle, scaling factor, etc. , find the number of bits (the number of x and y dots) on the two sides of the rectangle that touch each other, and use this as V when initializing the register described above.
By setting the data in the registers 21 and 22 as size (Vsize) and H size (Hsize) data, it can be easily recognized. In other words, for a character that has been converted at a certain angle, that character is written (handled) based on a rectangular area on the horizontal and vertical lines circumscribing the character; for example, in a printout. During the dot interpolation process, the number of zones can be easily obtained by dividing the H size data stored in the register 22 by the bit width of the line buffer 18, "24". Also, during dot interpolation processing during display output, the register 21
The number of zones can be easily determined by dividing the V size data stored in 2 by the bit width of 1 display line "24".

又、上記ゾーン指定用のレジスタ25に任意の
ゾーン指定データを固定的に付与することによ
り、指定された同一ゾーンのイメージデータを連
続的に繰返しイメージ展開することができる。こ
れにより、上記ドツト補間処理によつて変形され
た文字パターンを更に、その一部又は全部を冗長
化した変形文字パターンとして印字出力すること
もできる。
Further, by fixedly assigning arbitrary zone designation data to the zone designation register 25, image data of the same designated zone can be repeatedly developed into an image. Thereby, the character pattern modified by the above-mentioned dot interpolation processing can be further printed out as a modified character pattern in which part or all of it is made redundant.

又、上記したVサイズ(Vsize)、Hサイズ
(Hsize)のデータは、文字ピツチの認定時、下
線/傍線の処理時等に於いても参照される。即
ち、上記したような、走査方向に任意の傾斜角度
をもつドツト補間によつて得られる斜形、転回等
の文字は、その文字全体の高さ(文字高)及び幅
(文字幅)が、傾斜角度、更にそれに加えた拡大
縮小倍率等によつて様々に変化する。従つて上記
したような変形文字を通常の行、桁方向(x、y
方向)をもつてイメージ出力した際、文字ピツ
チ、更には下線/傍線等を、既存の固定的なパラ
メータ指定手段で定めることができない。
Further, the above-mentioned V size (Vsize) and H size (Hsize) data are also referred to when character pitch is determined, underline/sideline processing, etc. In other words, as mentioned above, the height (character height) and width (character width) of the entire character are as follows: It changes variously depending on the inclination angle and the enlargement/reduction magnification added to it. Therefore, the above-mentioned modified characters can be converted into normal row and column directions (x, y
When outputting an image with a specific direction), it is not possible to determine character pitch, underline/sideline, etc. using existing fixed parameter specifying means.

そこで、ここでは、文字ピツチ、下線/傍線等
の各処理に対しても上述したような外接する長方
形を文字のボデイフエースとして取扱う。以下に
これらの処理手段を説明する。
Therefore, here, the circumscribing rectangle as described above is treated as the body face of the character for each process such as character pitch and underline/sideline. These processing means will be explained below.

先ず文字ピツチの処理動作を説明する。上述の
如くして、1文字分のドツト補間処理が行われ、
その新たに生成された1文字分のドツトイメージ
が、出力対象となる例えば印刷制御部17内のラ
インバツフア18に展開される(書込まれる)度
に、CPU10は、レジスタ21の内容(Vsize)
が更新された否かを判断する。そして、上記レジ
スタ21の内容が更新されていなければ、レジス
タ21に貯えられたデータ(Vsize)に、更にそ
の1/2の値を加えたデータを文字ピツチを示す制
御データとして印字制御部17に供給し、ライン
バツフア18上に展開される文字のピツチを制御
する。又、上記レジスタ21の内容が更新される
際は、その更新前のデータを特定レジスタ領域に
保管しておき、その更新時に於いて特定レジスタ
領域に保管した更新前のデータと更新されたデー
タとの和の1/4の値を、更に上記レジスタ21に
貯えられた更新後のデータに加え、これを文字ピ
ツチを示す制御データとして印字制御部17に供
給し、ラインバツフア18上に展開される文字の
ピツチを制御する。
First, the character pitch processing operation will be explained. As described above, dot interpolation processing for one character is performed,
Each time the newly generated dot image for one character is expanded (written) to the output target, for example, the line buffer 18 in the print control unit 17, the CPU 10 updates the contents of the register 21 (Vsize).
Determine whether the has been updated. If the contents of the register 21 have not been updated, the data (Vsize) stored in the register 21 plus 1/2 of that value is sent to the print control unit 17 as control data indicating character pitch. and controls the pitch of characters developed on the line buffer 18. Also, when the contents of the register 21 are updated, the data before the update is stored in a specific register area, and at the time of the update, the data before the update stored in the specific register area and the updated data are The value of 1/4 of the sum of is further added to the updated data stored in the register 21, and this is supplied to the print control unit 17 as control data indicating the character pitch, and the characters developed on the line buffer 18 are control the pitch.

このように、或る角度をもつて変換された文字
に対しては、その文字の書込み(取扱い)が、当
該文字を外接する水平・垂直線上の長方形のエリ
アをベースとして行われることから、その長方形
の横幅(プリントアウトの場合はVsize、表示出
力の場合はHsize)をもとに、隣接する文字との
間のピツチが定められる。行ピツチに対しても上
記同様のピツチ制御が行なわれる。この際の各種
変形文字に対する文字ピツチCP、及び行ピツチ
LPの設定例を第8図に示している。
In this way, for a character converted at a certain angle, the writing (handling) of that character is performed based on the rectangular area on the horizontal and vertical lines circumscribing the character. The pitch between adjacent characters is determined based on the width of the rectangle (Vsize for printout, Hsize for display output). The same pitch control as described above is also performed for the row pitch. Character pitch CP and line pitch for various modified characters at this time
An example of LP settings is shown in FIG.

尚、上記したピツチ制御は、常に隣接する文字
の占めるエリア(外接する長方形)を考慮しなが
らピツチを定めたが、処理に簡素化するため、単
純にその時々のレジスタ21(又はレジスタ2
2)値をもとにピツチを定める制御手段をとつて
もよい。
In the pitch control described above, the pitch is determined by always considering the area occupied by adjacent characters (circumscribed rectangles), but in order to simplify the process, the pitch is simply set by register 21 (or register 2) at the time.
2) Control means may be provided to determine the pitch based on the value.

次に、上記した外接する長方形をもとに、下
線/傍線を印字出力する際の動作を説明する。こ
の際は、レジスタ21に貯えられたデータ
(Vsize)が参照される。下線/傍線制御部23
は、CPUバス12を介して入力される印字制御
情報に含まれる下線/傍線の指示に従い、ライン
バツフア13上に下線又は傍線のドツトを展開す
るが、上述したような転回、斜体等の変形文字に
対しては通常の文字幅によるライン展開では対応
がとれない。そこでレジスタ21の内容
(Vsize)が常時入力し、下線/傍線の指示があ
ると、そのときのレジスタ21の更新データ内容
に従うライン長をもつて下線/傍線のドツトパタ
ーンを生成し、ラインバツフア13上に該当文字
に対応させてパターン展開する。この際の各種変
形文字に対する下線の展開例を第9図に示す。
Next, the operation for printing out underlines/sidelines based on the above-described circumscribed rectangle will be explained. At this time, the data (Vsize) stored in the register 21 is referenced. Underline/sideline control section 23
The underline/sideline dots are developed on the line buffer 13 according to the underline/sideline instructions included in the print control information input via the CPU bus 12, but the above-mentioned deformed characters such as inverted and italic characters are However, line expansion using normal character width cannot handle this. Therefore, when the contents of the register 21 (Vsize) are constantly input and there is an underline/sideline instruction, an underline/sideline dot pattern is generated with a line length according to the updated data contents of the register 21 at that time, and the line buffer 13 is The pattern is developed in correspondence with the corresponding characters. FIG. 9 shows an example of the development of underlines for various modified characters at this time.

次に上述の如くして得られた、拡大ないしは変
形文字と他のドツト構成をなす文字、例えば全角
文字とを混在印字出力する場合の印字制御動作を
第1図と第11図乃至第16図を参照して説明す
る。
Next, FIG. 1 and FIGS. 11 to 16 show the print control operation when printing out a mixture of enlarged or modified characters obtained as described above and other dot-forming characters, such as full-width characters. Explain with reference to.

ここでは、第13図に示す如く、前述のドツト
補間処理により、縦2倍、横2倍に拡大された拡
大文字と全角文字とを中揃えの状態で印字出力す
る場合を例にとつて説明する。
Here, as shown in FIG. 13, we will explain the case where enlarged characters and full-width characters that have been enlarged twice vertically and twice horizontally are printed out in a center-aligned state by the above-mentioned dot interpolation process. do.

第13図に示すような、縦2倍、横2倍の拡大
文字と全角文字とを中揃えの状態で混在印字する
場合、外部からは、次のような印刷指示が与えら
れる。
When printing double-height and double-width enlarged characters and full-width characters in a center-aligned state as shown in FIG. 13, the following printing instructions are given from the outside.

(1) 拡大倍率(ここでは縦2倍、横2倍)をセツ
トする。
(1) Set the magnification (here, 2x vertically and 2x horizontally).

(2) 文字コード“A”“B”“C”と、CR(印字開
始)コードを送出する。
(2) Send character codes “A”, “B”, and “C” and CR (print start) code.

(3) 用紙送り量l1(ここではl1=lh/2)を送出
する。
(3) Send paper by the paper feed amount l1 (here l1=lh/2).

(4) 拡大倍率を基準倍率、即ち全角文字を指定す
る縦1倍、横1倍の倍率に戻す。
(4) Return the enlargement magnification to the standard magnification, that is, the magnification of 1x vertically and 1x horizontally, which specifies full-width characters.

(5) 文字コード“あ”“い”“う”“え”“お”と、
CRコードを送出する。
(5) Character codes “a”, “i”, “u”, “e”, “o”,
Send CR code.

(6) 用紙送り量l2を送出する。(6) Feed the paper by the paper feed amount l2.

(7) 文字コード“か”“き”“く”“け”“こ”と、
CRコードを送出する。
(7) Character code “ka” “ki” “ku” “ke” “ko”
Send CR code.

尚、ここでは、文字情報記憶バツフア70がメ
インメモリ11とは独立して設けられた構成とし
ているが、文字情報記憶バツフア70がメインメ
モリ11内に置かれる場合は、上記各文字コード
がメインメモリ11内の上記バツフア領域内の各
情報ブロツクに書込まれる。
Note that here, the character information storage buffer 70 is provided independently of the main memory 11, but if the character information storage buffer 70 is placed in the main memory 11, each of the above character codes is stored in the main memory. The data is written to each information block in the buffer area in 11.

一方、これに対して、プリンタ制御装置内部で
は、以下のような印字処理制御を行なう。
On the other hand, inside the printer control device, the following printing process control is performed.

(a) 上記(2)のCRコード受信により、前述のドツ
ト補間処理によつて拡大(縦2倍、横2倍)し
た文字A,B,Cのゾーン0(上半分)のイメ
ージを順次ラインバツフア13に展開し、印字
出力する。
(a) Upon reception of the CR code in (2) above, the image of zone 0 (upper half) of characters A, B, and C enlarged (twice vertically and twice horizontally) by the above-mentioned dot interpolation processing is sequentially line buffered. 13 and print it out.

次に、拡大文字A,B,Cのゾーン1の印字に
備えて、文字情報記憶バツフア70内の該当する
情報ブロツク701の内容を更新する。ここで
は、ゾーン指定部82に、ZONE=1、相対距離
記憶部83に、dH=lhがそれぞれ登録される。
この際のCR処理の詳細を第15図のフローチヤ
ートに示している。
Next, in preparation for printing enlarged characters A, B, and C in zone 1, the contents of the corresponding information block 701 in the character information storage buffer 70 are updated. Here, ZONE=1 and dH=lh are registered in the zone designation section 82 and the relative distance storage section 83, respectively.
The details of the CR processing at this time are shown in the flowchart of FIG.

(b) 上記(3)に対して、l1の用紙送りを実行する。(b) For (3) above, execute l1 paper feed.

(c) 上記l1の用紙送り実行後、上記情報ブロツク
701…の相対距離記憶部83の値dHから上
記用紙送り量l1を減じる。この際のLF(用紙送
り実行)処理の詳細を第14図のフローチヤー
トに示している。
(c) After performing the paper feed of l1, the paper feed amount l1 is subtracted from the value dH in the relative distance storage section 83 of the information block 701. The details of the LF (paper feed execution) process at this time are shown in the flowchart of FIG.

(d) 上記(5)のCRコード受信により、全角文字
“あ”“い”“う”“え”“お”を1文字単位で順
次ラインバツフア13にイメージ展開し、その
展開したイメージを印字出力する(第15図の
フローチヤート参照)。
(d) Upon reception of the CR code in (5) above, images of the full-width characters "A", "I", "U", "E", and "O" are developed one by one on the line buffer 13, and the developed images are printed out. (See the flowchart in Figure 15).

(e) 上記(6)の用紙送り量l2に対して、この送り量
l2が上記拡大文字(A、B、C)のゾーン1の
印字範囲を越えるため、 (1) まずdHの値だけ、用紙送りを実行する。
(e) This feed amount is compared to the paper feed amount l2 in (6) above.
Since l2 exceeds the printing range of zone 1 of the enlarged characters (A, B, C), (1) First, feed the paper by the value of dH.

(2) 拡大文字“A”“B”“C”のゾーン1を印
字する。
(2) Print zone 1 of enlarged characters “A”, “B”, and “C”.

(3) これで拡大文字(A、B、C)の印字が完
了したので、文字情報記憶バツフア70内に
登録してある上記拡大文字(A、B、C)の
各ブロツク情報を捨てる。
(3) Since printing of the enlarged characters (A, B, C) is now completed, the block information of the enlarged characters (A, B, C) registered in the character information storage buffer 70 is discarded.

(4) 残りの用紙送り(ここではl2−dH)を実
行する。
(4) Execute the remaining paper feed (here l2−dH).

この際のLF(用紙送り実行)処理の詳細は第
14図のフローチヤートに示される。
Details of the LF (paper feed execution) process at this time are shown in the flowchart of FIG.

(f) 上記(7)のCRコード受信により、全角文字
“か”“き”“く”“け”“こ”を1文字単位で順
次ラインバツフア13にイメージ展開し、印字
出力する(第15図のフローチヤート参照)。
(f) Upon receiving the CR code in (7) above, images of the full-width characters "ka", "ki", "ku", "ke", and "ko" are developed one character at a time on the line buffer 13 and printed out (Fig. 15). (see flowchart).

このようにして、第13図に示すような全角文
字と拡大文字(または変形文字)とが混在する中
揃えの文字印字処理が順次実行される。
In this way, the center-aligned character printing process in which full-width characters and enlarged characters (or modified characters) coexist as shown in FIG. 13 is sequentially executed.

ここで、第14図乃至第16図を参照して、前
述したLF(用紙送り実行)処理、及びCR(印字開
始)処理に於ける印字モード処理動作、及び拡大
パターンのドツト数調整処理動作を説明する。
Here, with reference to FIGS. 14 to 16, we will explain the print mode processing operations and the dot number adjustment processing operations of the enlarged pattern in the aforementioned LF (paper feed execution) processing and CR (print start) processing. do.

第14図に示すLF処理に於いては、文字情報
記憶バツフア70内の情報ブロツク701…の相
対距離記憶部83…に貯えられた相対距離dH…
から、その最小値lnioが検索され、更にその相対
距離dH;lnioが用紙送り量lを越えていないと
き、lnioだけ用紙送りが実行された後、上記相対
距離dHからlnioが引かれる。ここまでの動作は既
に説明した通りである。
In the LF process shown in FIG. 14, the relative distances dH... stored in the relative distance storage sections 83... of the information blocks 701... in the character information storage buffer 70...
, the minimum value l nio is searched, and furthermore, its relative distance dH; if l nio does not exceed the paper feed amount l, the paper is fed by l nio , and then l nio is subtracted from the relative distance dH. The operation up to this point has already been explained.

上記用紙送りが実行され、相対距離dHの更新
処理がなされた後、印刷方向制御フラグ90が調
べられる。ここで、上記印刷方向制御フラグ90
が立つていれば、即ちフラグがセツトされていれ
ば、両方向印字(印字ヘツドの順方向送り・逆方
向送りの双方による両方向印字)モードが指定さ
れているものと判断して、シリアルドツトプリン
タ14のプリンタメカを両方向印字モードに設定
し、印字すべき文字のイメージ展開処理を開始す
る。また、上記印刷方向制御フラグ90がセツト
されていなければ、単方向印字モードが指定され
ているものと判断して、シリアルドツトプリンタ
14のプリンタメカを単方向印字モードに設定
し、印字すべき文字のイメージ展開処理を開始す
る。
After the above paper feeding is executed and the relative distance dH is updated, the printing direction control flag 90 is checked. Here, the printing direction control flag 90
is set, that is, if the flag is set, it is determined that the bidirectional printing mode (bidirectional printing by both forward and reverse feeding of the print head) is specified, and the serial dot printer 14 is activated. Set the printer mechanism to bidirectional printing mode and start image development processing of the characters to be printed. Furthermore, if the printing direction control flag 90 is not set, it is determined that the unidirectional printing mode is specified, and the printer mechanism of the serial dot printer 14 is set to the unidirectional printing mode, and the characters to be printed are set to the unidirectional printing mode. Start the image deployment process.

この際のラインバツフア13へのイメージ展開
処理を詳細な処理フローは第16図に示されてい
る。ここで、文字パターンをラインバツフア13
に展開し後、レジスタ91,92にセツトされた
刻み幅dxL,dyLをもとに、展開された拡大倍率
が、許容印字ドツト数(印字消費電力)により定
まる基準拡大倍率を越えているか否かが判断され
る。即ち、ここでは、ラインバツフア13に展開
された文字パターンのX方向刻み幅dxiとレジス
タ91に貯えられたX方向刻み幅dxL、同じく文
字パターンのY方向刻み幅dyiとレジスタ91に
貯えられたY方向刻み幅dyLとがそれぞれ比較さ
れ、少なくとも、dxiがdxL以下ならば、または
dyiがdyL以下ならば、展開されたパターンの拡大
倍率が基準拡大倍率を越えていると判断して、ラ
インバツフア13の展開文字パターンに千鳥マス
クをかけて、印字ドツトを間引く。これにより、
印字ドツト数が極端に増加して印字消費電力が規
定値を越え、シリアルドツトプリンタ14が電源
落ち状態になるという不都合を回避することがで
きるとともに、拡大パターン部分が極端に高濃度
になつてしまう(連続するドツト印字により紙面
が真黒になつてしまう)という不都合を回避する
ことができる。
A detailed processing flow of the image development process to the line buffer 13 at this time is shown in FIG. Here, change the character pattern to line buffer 13.
After expanding, check whether the expanded magnification factor exceeds the standard magnification factor determined by the allowable number of printing dots (printing power consumption) based on the step widths dx L and dy L set in registers 91 and 92. It is determined whether or not. That is, here, the X-direction step width dx i of the character pattern developed in the line buffer 13 and the X-direction step width dx L stored in the register 91, and the Y-direction step width dy i of the character pattern stored in the register 91. The step size dy L in the Y direction is compared, and at least if dx i is less than dx L , or
If dy i is less than dy L , it is determined that the magnification of the developed pattern exceeds the standard magnification, and a staggered mask is applied to the developed character pattern of the line buffer 13 to thin out printed dots. This results in
It is possible to avoid the inconvenience that the number of printed dots increases extremely and the printing power consumption exceeds the specified value, causing the serial dot printer 14 to turn off the power. It is possible to avoid the inconvenience that the paper surface becomes completely black due to continuous dot printing.

又、第15図に示すCR処理に於いては、印字
処理される文字列が、1回の文字ヘツド移動動作
で印字完了する文字パターン(ゾーン分けされて
いない、単一ゾーンの文字パターン)であるか否
かが判断され、1回の印字ヘツド移動動作で印字
完了する場合は、印字方向制御フラグ90の指示
内容に関係なく、プリンタメカに対し、両方向印
字モードをセツトする。これにより、1回の印字
ヘツド移動動作で印字完了する文字パターンに対
しては、両方向印字処理により、印字時間を短縮
して高速印字処理を実行でき、又、複数ゾーンに
分けられた拡大ないしは変形文字に対しては、ユ
ーザの指定通りの印字指定処理、つまり、印字品
質を重視せず、高速印字をさせたい場合は、印字
方向制御フラグを立てる(セツトする)ことによ
り、両方向印字処理による高速印字が実行され、
また、ゾーン間のパターンずれによる印字品質の
低下をなくし、高印字品質の拡大ないしは変形文
字パターンを得たい際は、印刷方向制御フラグ9
0をリセツトして単方向印字モードを指定するこ
とによつて、ゾーン間にパターンずれの生じない
高印字品質の拡大ないしは変形文字パターンを得
ることができる。
In addition, in the CR processing shown in Fig. 15, the character string to be printed is a character pattern (a single zone character pattern that is not divided into zones) that can be printed with one character head movement operation. If it is determined whether or not there is, and printing is completed with one print head movement operation, the printer mechanism is set to bidirectional printing mode, regardless of the instruction content of the print direction control flag 90. As a result, character patterns that can be printed in one print head movement can be printed in both directions, reducing printing time and performing high-speed printing, and can be expanded or transformed into multiple zones. For characters, if you want to print according to the user's specifications, that is, if you want high-speed printing without placing emphasis on print quality, you can set the print direction control flag to perform high-speed printing in both directions. Printing is executed and
In addition, when you want to eliminate deterioration in print quality due to pattern misalignment between zones and obtain enlarged or modified character patterns with high print quality, use the print direction control flag 9.
By resetting 0 and specifying the unidirectional printing mode, it is possible to obtain enlarged or modified character patterns of high print quality without pattern deviation between zones.

尚、上記第14図、及び第15図に於いて、イ
メージ展開の終了確認は、前述したHsizeの値
と、次に展開すべきゾーン値とにより、判断する
もので、1つのゾーン幅を例えば24ドツトする
と、 24×(ゾーン値)>Hsize となれば、イメージ展開終了と判断する。
In addition, in FIGS. 14 and 15 above, confirmation of the completion of image development is determined based on the above-mentioned Hsize value and the zone value to be developed next. For example, if the width of one zone is When 24 dots are added, if 24 x (zone value) > Hsize, it is determined that the image development is complete.

上記実施例では、ドツト補間処理された文字パ
ターンの拡大倍率が予め設定された基準拡大倍率
を越えて印字ドツト数が極端に増加し、印字処理
時の消費電力が規定値を越えてプリンタの電源落
ちを招くという不都合を回避するため、千鳥パタ
ーンにより、印字ドツトを間引く構成としていた
が、例えば第17図に示される如く、印字を2回
に分けて行なうようにしてもよい。この場合、第
17図の例では、第1回目の印字時に際して、ラ
インバツフア13に展開されたイメージに、“A、
A”(“1010、1010”)をバイト単位で論理積演算
し、そのイメージをラインバツフア13に展開し
て、印字した後、前回と同パターンを再度ライン
バツフア13に展開し、次に、その展開されたイ
メージに、“5、5”(“1010、1010”)をバイト単
位で論理積演算し、そのイメージをラインバツフ
ア13に展開して、印字している。
In the above example, the enlargement factor of the character pattern subjected to dot interpolation processing exceeds the preset standard enlargement factor, the number of printed dots increases extremely, and the power consumption during printing exceeds the specified value, causing the printer's power supply to be turned off. In order to avoid the inconvenience of causing dropouts, the printing dots are thinned out using a staggered pattern, but printing may be performed in two steps as shown in FIG. 17, for example. In this case, in the example shown in FIG. 17, "A,"
A” (“1010, 1010”) is logically ANDed in byte units, the image is expanded to the line buffer 13, and printed, the same pattern as the previous time is expanded to the line buffer 13 again, and then the expanded image is The image is logically ANDed with "5, 5"("1010,1010") in byte units, and the image is developed on the line buffer 13 and printed.

このような印字処理手段によつても、上記一実
施例と同様に、印字処理時の消費電力が規定値を
越えてプリンタの電源落ちを招くという不都合を
回避できる。但し、この印字処理手段に於いて
は、印字結果として、印字ドツトを間引いたパタ
ーンではなく、前述のドツト補間処理により生成
されたドツトパターンが忠実に印字出力される 〔発明の効果〕 以上詳記したように本発明のプリンタ制御装置
によれば、所定ドツトマトリクス構成の文字パタ
ーンを拡大ないしは変形処理するパターン処理手
段と、このパターン処理手段によつて得られるパ
ターンの縦方向ドツト数がイメージラインバツフ
アの縦方向幅より大きくなつた際に、所定ドツト
幅単位のゾーンに分けてイメージ展開してゆく手
段とを有してなるプリンタ制御装置に於いて、印
字処理される文字コードそれぞれに、次に展開す
べきゾーン番号と、展開開始位置と印字ヘツド位
置との相対距離と、文字の属性情報とを附随して
記憶する記憶手段を持たせるとともに、前記1文
字単位毎に記録した相対距離のうち、最小値の相
対距離を選択し、該当する前記1文字単位の情報
からイメージ展開する手段、及びこのイメージ展
開処理された1文字単位の情報に対し、用紙送り
動作実行の度毎に前記相対距離から用紙送り量を
減ずる手段を設けて、これら手段をもとに、順
次、パターン展開、並びに印字処理を実行する構
成として、前記パターン処理手段により拡大また
は変形された文字と標準文字とを任意の行ピツチ
をもつて混在印字可能としたもので、これによ
り、比較的簡単な構成により、中揃えの印字を含
めて、より自由な改行ピツチでのドツト印字が可
能なプリンタ制御装置が実現できる。
With such a print processing means, as in the above-described embodiment, it is possible to avoid the inconvenience that the power consumption during print processing exceeds a specified value and causes the printer to shut down. However, in this printing processing means, the dot pattern generated by the above-mentioned dot interpolation process is faithfully printed out as the printing result, not the pattern obtained by thinning out the printing dots. As described above, according to the printer control device of the present invention, there is provided a pattern processing means for enlarging or transforming a character pattern having a predetermined dot matrix structure, and the number of vertical dots of the pattern obtained by this pattern processing means is determined by the number of vertical dots in the image line. In a printer control device having a means for dividing the image into zones of a predetermined dot width when the width becomes larger than the vertical width of the screen, the following is applied to each character code to be printed. The zone number to be developed, the relative distance between the development start position and the print head position, and character attribute information are provided with a storage means for storing the same, and the relative distance recorded for each character is stored. Among them, a means for selecting the relative distance having the minimum value and developing an image from the corresponding information in units of one character, and calculating the relative distance for each character unit information subjected to image development processing each time a paper feeding operation is performed. A means for reducing the amount of paper feed is provided, and based on these means, pattern development and printing processing are sequentially executed. This allows for mixed printing with different pitches, thereby realizing a printer control device that is capable of printing dots at more flexible line feed pitches, including center-aligned printing, with a relatively simple configuration.

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

第1図は本発明の一実施例に於ける要部の構成
を示すブロツク図、第2図乃至第16図はそれぞ
れ上記実施例に於ける拡大ないしは変形文字パタ
ーンを得るためのドツト補間処理手段を説明する
ためのもので、第2図a乃至fはそれぞれドツト
補間処理により生成される新たなドツトを囲む1
格子4点のドツト情報(ドツトパターン)と補間
テーブルROMに設定された補間値のレベル区分
とテーブルタイプとの関係を示す図、第3図はテ
ーブルタイプの選択切替動作を説明するための
図、第4図a乃至dはそれぞれパターン変換例を
示す図、第5図a,bはCRT表示の際の主・副
走査方向とプリントアウトの際の主・副走査方向
とを対比して示す図、第6図は各種設定データの
関係を示す図、第7図はドツト補間処理によりパ
ターン変換された文字と、その文字に外接する長
方形との関係を示す図、第8図は各種変形文字に
対する文字ピツチ及び行ピツチの設定例を示す
図、第9図は各種変形文字に対する下線の展開例
を示す図、第10図はゾーン指定動作を説明する
ための図、第11図は上記実施例に於ける文字情
報記憶バツフア内の1情報ブロツクの構成を示す
図、第12図乃至第16図はそれぞれ上記実施例
の動作を説明するためのもので、第12図及び第
13図はそれぞれ上記実施例に於ける印字制御動
作説明図、第14図乃至第16図はそれぞれ上記
実施例に於ける動作処理フローを示すフローチヤ
ート、第17図は本発明の他の実施例に於ける動
作処理フローを示すフローチヤートである。 10……CPU、11……メインメモリ
(MM)、12……CPUバス、13……ラインバ
ツフア(イメージラインバツフア)、14……シ
リアルドツトプリンタ、21,22,25,2
6,27,28,31,32,33,34,3
5,36,42,44,46,48,50,5
4,56,91,92……レジスタ、23……下
線/傍線制御部、24……三角関数テーブル、2
9……オフセツトデータ生成部、37,38,3
9,40……加算回路(ADD−A、ADD−B、
ADD−C、ADD−D)、41,43,45,4
7……データセレクタ、49……選択制御回路
(SC)、51……漢字パターンメモリ(KPM)、
52……1文字バツフア、53……ビツト選択回
路、55……判別制御回路、57……ドツト判別
回路、58……補間テーブルROM、59……コ
ンパレータ、60……シフトレジスタ、70……
文字情報記憶バツフア、701……情報ブロツ
ク、80……制御フラグ部、81……文字コード
部、82……ゾーン指定部、83……相対距離記
憶部、84……ポインタ部、85,86……刻み
幅記憶部、87……属性情報記憶部、90……印
刷方向制御フラグ。
FIG. 1 is a block diagram showing the configuration of essential parts in an embodiment of the present invention, and FIGS. 2 to 16 respectively show dot interpolation processing means for obtaining enlarged or modified character patterns in the above embodiment. Figures 2a to 2f are for explaining the dots surrounding the new dots generated by the dot interpolation process.
A diagram showing the relationship between the dot information (dot pattern) of the four grid points, the level division of the interpolation value set in the interpolation table ROM, and the table type, FIG. 3 is a diagram for explaining the table type selection switching operation, Figures 4a to d are diagrams each showing an example of pattern conversion, and Figures 5a and b are diagrams showing a comparison between the main and sub-scanning directions during CRT display and the main and sub-scanning directions during printout. , Figure 6 is a diagram showing the relationship between various setting data, Figure 7 is a diagram showing the relationship between a character whose pattern has been converted by dot interpolation processing and the rectangle circumscribing the character, and Figure 8 is a diagram showing the relationship between various modified characters. FIG. 9 is a diagram showing an example of setting the character pitch and line pitch. FIG. 9 is a diagram showing an example of underline development for various modified characters. FIG. 10 is a diagram for explaining zone designation operation. FIG. Figures 12 to 16, which show the structure of one information block in the character information storage buffer, are for explaining the operation of the above embodiment, and Figures 12 and 13 are for explaining the operation of the above embodiment, respectively. 14 to 16 are flowcharts showing the operation processing flow in the above embodiment, and FIG. 17 is the operation processing flow in another embodiment of the present invention. This is a flowchart showing the following. 10...CPU, 11...Main memory (MM), 12...CPU bus, 13...Line buffer (image line buffer), 14...Serial dot printer, 21, 22, 25, 2
6, 27, 28, 31, 32, 33, 34, 3
5, 36, 42, 44, 46, 48, 50, 5
4, 56, 91, 92...Register, 23...Underline/sideline control section, 24...Trigonometric function table, 2
9...Offset data generation section, 37, 38, 3
9, 40...addition circuit (ADD-A, ADD-B,
ADD-C, ADD-D), 41, 43, 45, 4
7...Data selector, 49...Selection control circuit (SC), 51...Kanji pattern memory (KPM),
52... Single character buffer, 53... Bit selection circuit, 55... Discrimination control circuit, 57... Dot discrimination circuit, 58... Interpolation table ROM, 59... Comparator, 60... Shift register, 70...
Character information storage buffer, 701...Information block, 80...Control flag section, 81...Character code section, 82...Zone specification section, 83...Relative distance storage section, 84...Pointer section, 85, 86... . . . Step width storage unit, 87 . . . Attribute information storage unit, 90 . . . Print direction control flag.

Claims (1)

【特許請求の範囲】 1 所定の幅を持つた印字ヘツドを用いて、前記
印字ヘツドの走査と紙送りとを行つてイメージの
印刷を行う印字装置に対して、パターンの印字制
御を行うプリンタ制御装置において、 前記印字ヘツドの走査方向に並ぶ各パターンに
ついて、紙送り方向の印字位置を記憶する記憶手
段と、 この記憶手段に記憶されたパターン毎の印字位
置を調べ、前記印字装置に対し、現在の前記印字
ヘツドの位置から最も近い印字位置のところまで
の紙送りを指示する紙送り制御手段と、 前記最も近い印字位置のパターンが、前記印字
ヘツドの1走査によつて印字可能な幅のパターン
の場合にはこのパターンを展開するとともに、当
該パターンの幅が前記印字ヘツドの幅より大きく
なつた際には、当該パターンを前記印字ヘツドの
幅のゾーンに分け、印字されるゾーンのパターン
を展開して行くパターン展開手段と、 前記紙送り制御手段による紙送りに応じて、前
記記憶手段に記憶された各パターンの印字位置を
紙送り分だけ更新した値に設定し直すとともに、
ゾーンに分けて印字されるパターンの場合には、
前記パターン展開手段による該当ゾーンのパター
ン展開にともなつて、次のゾーンの印字のための
印字位置として前記印字ヘツドの幅分だけ更新し
た値を設定する印字位置管理手段とを具備し、 前記印字ヘツドの1走査によつて印字可能な幅
のパターンと前記印字ヘツドの幅より大きいパタ
ーンとを混在印字可能としたことを特徴とするプ
リンタ制御装置。
[Scope of Claims] 1. Printer control that controls pattern printing for a printing device that uses a print head with a predetermined width to print an image by scanning the print head and feeding paper. The apparatus includes a memory means for storing the print position in the paper feeding direction for each pattern lined up in the scanning direction of the print head, and a memory means for checking the print position for each pattern stored in this memory means, a paper feed control means for instructing paper feed from the position of the print head to the nearest print position; and a pattern at the nearest print position having a width that can be printed by one scan of the print head. In this case, this pattern is developed, and when the width of the pattern becomes larger than the width of the print head, the pattern is divided into zones with the width of the print head, and the pattern of the zone to be printed is developed. and a pattern developing means that moves the paper, and resets the printing position of each pattern stored in the storage means to a value updated by the amount of paper feed in accordance with the paper feed by the paper feed control means;
For patterns that are printed in zones,
printing position management means for setting a value updated by the width of the print head as a print position for printing in the next zone as the pattern development means develops the pattern in the corresponding zone; A printer control device characterized in that it is possible to print a pattern with a width that can be printed by one scan of a head and a pattern larger than the width of the print head in a mixed manner.
JP59179646A 1984-08-29 1984-08-29 Controller of printer Granted JPS6157347A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP59179646A JPS6157347A (en) 1984-08-29 1984-08-29 Controller of printer
KR1019850004177A KR910005780B1 (en) 1984-08-29 1985-06-13 Method for controlling printer for printing characters
US06/761,705 US4655622A (en) 1984-08-29 1985-08-02 Printer control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59179646A JPS6157347A (en) 1984-08-29 1984-08-29 Controller of printer

Publications (2)

Publication Number Publication Date
JPS6157347A JPS6157347A (en) 1986-03-24
JPH049152B2 true JPH049152B2 (en) 1992-02-19

Family

ID=16069405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59179646A Granted JPS6157347A (en) 1984-08-29 1984-08-29 Controller of printer

Country Status (2)

Country Link
JP (1) JPS6157347A (en)
KR (1) KR910005780B1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU595655B2 (en) * 1986-11-04 1990-04-05 Kabushiki Kaisha Toyota Chuo Kenkyusho Catalyst for the purification of exhaust gas
JP2572761B2 (en) * 1986-12-23 1997-01-16 日東電工株式会社 Semiconductor device
KR880014671A (en) * 1987-05-27 1988-12-24 미다 가쓰시게 Resin Filled Semiconductor Device
JPS6422967A (en) * 1987-07-17 1989-01-25 Shinetsu Chemical Co Curable liquid silicone rubber composition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58151262A (en) * 1982-03-05 1983-09-08 Hitachi Ltd Font memory reading out system
JPS59796A (en) * 1982-06-28 1984-01-05 Yokogawa Hokushin Electric Corp Dot printer
JPS5941275A (en) * 1982-08-31 1984-03-07 Usac Electronics Ind Co Ltd Correction of gap between upper and lower halves of vertical double size character for serial printer apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58151262A (en) * 1982-03-05 1983-09-08 Hitachi Ltd Font memory reading out system
JPS59796A (en) * 1982-06-28 1984-01-05 Yokogawa Hokushin Electric Corp Dot printer
JPS5941275A (en) * 1982-08-31 1984-03-07 Usac Electronics Ind Co Ltd Correction of gap between upper and lower halves of vertical double size character for serial printer apparatus

Also Published As

Publication number Publication date
KR860002060A (en) 1986-03-26
KR910005780B1 (en) 1991-08-03
JPS6157347A (en) 1986-03-24

Similar Documents

Publication Publication Date Title
US4331955A (en) Method and apparatus for smoothing outlines
US4655622A (en) Printer control apparatus
JPS60140472A (en) Interactive controller for font pattern formation/correction/synthesis
JPH0691604B2 (en) Gradation information scaling method
US4887228A (en) Method for filling surface parts of an image with a surface pattern
US6195473B1 (en) Non-integer scaling of raster images with image quality enhancement
US5537131A (en) Character generating method and apparatus
JPH049152B2 (en)
JPH046554B2 (en)
JPH043749B2 (en)
KR900004892B1 (en) Dot inter polation system
KR900004950B1 (en) Character interpolation control method
JPH049153B2 (en)
KR900004949B1 (en) Output controller of interpolation dot pattern
KR900007681B1 (en) Dot interpolation control system
KR900004948B1 (en) Under/side line pattern generating device
JPH06175639A (en) Method and device for character generation
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JPH0583384B2 (en)
JPH04332668A (en) Printer
JPH04350897A (en) Method and device for generating character
JPH05341761A (en) Device for generating character
JPH0950272A (en) Method and device for outline font generation
JPH03263170A (en) Document processing system
JPH09204428A (en) Device and method for processing character