JPH0813556B2 - Character font rotation controller for printer - Google Patents

Character font rotation controller for printer

Info

Publication number
JPH0813556B2
JPH0813556B2 JP1309981A JP30998189A JPH0813556B2 JP H0813556 B2 JPH0813556 B2 JP H0813556B2 JP 1309981 A JP1309981 A JP 1309981A JP 30998189 A JP30998189 A JP 30998189A JP H0813556 B2 JPH0813556 B2 JP H0813556B2
Authority
JP
Japan
Prior art keywords
character
font
data
rotation
portrait
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1309981A
Other languages
Japanese (ja)
Other versions
JPH03169570A (en
Inventor
健一 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tec Corp
Original Assignee
Tec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tec Corp filed Critical Tec Corp
Priority to JP1309981A priority Critical patent/JPH0813556B2/en
Publication of JPH03169570A publication Critical patent/JPH03169570A/en
Publication of JPH0813556B2 publication Critical patent/JPH0813556B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、通常のポートレート印字(用紙の長手方向
に対して直角方向に文字列が並ぶ印字方法)で使用され
る文字フォントを90度回転させて印字するランドスケー
プ印字(用紙の長手方向に文字列が並ぶ印字方法)機能
を備えた印字装置の文字フォント回転制御装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention uses a 90-degree character font used in ordinary portrait printing (a printing method in which character strings are arranged in a direction perpendicular to the longitudinal direction of the paper). The present invention relates to a character font rotation control device of a printing device having a landscape printing (printing method in which character strings are arranged in the longitudinal direction of paper) function of rotating and printing.

[従来の技術] 例えばレーザプリンタ等の印字装置は、第8図に示す
ように、各種動作を制御するMPU(マイクロプロセッ
サ)1、制御プログラムの記憶部A1やポートレート印字
用の文字フォントデータを記憶するポートレート用フォ
ント記憶部A2や上記ポートレート印字用の文字フォント
データを90度回転させたランドスケープ印字用の文字フ
ォントデータを記憶するランドスケープ用フォント記憶
部A3等からなるROM等で形成された不揮発性メモリ2、
前記各文字フォントデータの書込読出が可能なラスター
領域B1を有する各種データの書込読出が可能なRAM等で
形成されたデータ記憶用メモリ3、このデータ記憶用メ
モリ3のラスター領域B1から文字フォントデータを読出
してレーザプリンタエンジン部5へ出力するためのデー
タ出力回路4、このデータ出力回路4を介して与えられ
た文字フォントデータに基づいて印字用紙に文字を印字
出力するレーザプリンタエンジン部5等で構成されてい
る。
[Prior Art] For example, a printing device such as a laser printer, as shown in FIG. 8, stores an MPU (microprocessor) 1 for controlling various operations, a storage unit A1 of a control program, and character font data for portrait printing. It is made up of a ROM, etc. that includes a portrait font storage unit A2 to store and a landscape font storage unit A3 that stores the character font data for landscape printing that is rotated by 90 degrees from the character font data for portrait printing. Non-volatile memory 2,
A data storage memory 3 formed of a RAM or the like capable of writing / reading various data having a raster area B1 capable of writing / reading each character font data, and a character from the raster area B1 of the data storage memory 3 A data output circuit 4 for reading out font data and outputting it to the laser printer engine unit 5, and a laser printer engine unit 5 for printing out characters on a printing paper based on the character font data given through the data output circuit 4. Etc.

また、前記ROMで形成された不揮発性メモリ2内に
は、第9図に示すように、各フォント記憶部A2,A3の先
頭位置にそれぞれヘッダー領域A4,A5が形成されてい
る。各ヘッダー領域A4,A5は各文字のヘッダー情報を記
憶する。各ヘッダー情報には、例えば各フォント記憶部
A2,A3内の該当文字のフォントデータが格納されている
先頭アドレスが含まれる。
Further, in the non-volatile memory 2 formed by the ROM, as shown in FIG. 9, header areas A4 and A5 are formed at the head positions of the font storage sections A2 and A3, respectively. Each header area A4, A5 stores the header information of each character. Each header information includes, for example, each font storage unit.
It contains the start address where the font data of the corresponding character in A2 and A3 is stored.

このような構成の印字装置においては、MPU1は不揮発
性メモリ2における記憶部A1内の制御プログラムに従っ
て動作し、所望文字についてポートレート印字を行うと
きにはその所望文字の文字コードから不揮発性メモリ2
におけるポートレート用文字フォント記憶部A2の該当文
字コードのヘッダー情報を記憶するヘッダーアドレスを
算出する。
In the printing apparatus having such a configuration, the MPU 1 operates according to the control program in the storage unit A1 in the non-volatile memory 2, and when performing portrait printing on a desired character, the non-volatile memory 2 changes from the character code of the desired character.
The header address for storing the header information of the corresponding character code in the portrait character font storage unit A2 in is calculated.

ヘッダーアドレス= ヘッダー領域A4の先頭アドレス +文字コード×ヘッダー情報のデータ数 そして、該当文字コードのヘッダー情報から該当文字
コードのフォントデータが格納されている先頭アドレス
を読出して、該当アドレスに記憶された文字フォントデ
ータを読出してデータ記憶用メモリ3のラスター領域B1
に書込む。
Header address = start address of header area A4 + character code x number of data of header information Then, the start address where the font data of the corresponding character code is stored is read from the header information of the corresponding character code and stored at the corresponding address. Raster area B1 of memory 3 for reading character font data and storing data
Write to.

一方、所望文字についてランドスケープ印字を行うと
きにはその所望文字コードから、同様の手法にて、不揮
発性メモリ2におけるランドスケープ用文字フォント記
憶部A3の該当するアドレスを読出し、該当アドレスの文
字フォントデータを読出してデータ記憶用メモリ3のラ
スター領域B1に書込む。
On the other hand, when performing landscape printing for a desired character, the corresponding address of the landscape character font storage unit A3 in the non-volatile memory 2 is read from the desired character code by the same method, and the character font data of the corresponding address is read. Write to the raster area B1 of the data storage memory 3.

しかして、ラスター領域B1に書込まれた文字フォント
データが読出され、データ出力回路4の作用によりレー
ザプリンタエンジン部5に出力されて用紙に印字出力さ
れる。
Then, the character font data written in the raster area B1 is read out, output to the laser printer engine section 5 by the action of the data output circuit 4, and printed out on the paper.

[発明が解決しようとする課題] しかしながら、この印字装置においては不揮発性メモ
リ2内にポートレート用フォント記憶部A2の他に、別途
ランドスケープ用フォント記憶部A3を設ける必要があ
り、不揮発性メモリ2の必要とする記憶容量が増大して
製造費が上昇する問題があった。
[Problems to be Solved by the Invention] However, in this printing apparatus, it is necessary to separately provide a landscape font storage unit A3 in the nonvolatile memory 2 in addition to the portrait font storage unit A2. However, there is a problem that the storage capacity required by the device increases and the manufacturing cost increases.

このような不都合を解消するために、ランドスケープ
印字時、MPU1にて所望文字のポートレート用文字フォン
トを読出し、MPU1自身で90度回転させてランドスケープ
用文字フォントを作成してラスター領域B1に書込むこと
も考えられる。しかし、この場合、MPU1は他の処理も行
っており負担が増大するため処理速度が極端に低下す
る。
In order to eliminate such inconvenience, during landscape printing, MPU1 reads the portrait character font of the desired character, and MPU1 itself rotates 90 degrees to create the landscape character font and write it in raster area B1. It is also possible. However, in this case, the MPU 1 also performs other processing, and the load increases, so that the processing speed extremely decreases.

本発明は、ポートレート用文字フォントを90度回転さ
せてランドスケープ用文字フォントを生成するための専
用の回路を設けることにより、ランドスケープ用文字フ
ォント記憶部の大部分のフォントデータを不要にでき、
記憶容量の低減および製造費の節減を図れ、さらに、90
度回転させて印字すると不自然形状になる文字に対して
のみランドスケープ用の文字フォントデータを残すこと
により、一定水準以上の印字品質を確保できる印字装置
の文字フォント回転制御装置を提供することを目的とす
る。
The present invention, by providing a dedicated circuit for generating a landscape character font by rotating the portrait character font by 90 degrees, most of the font data in the landscape character font storage unit can be made unnecessary,
90% reduction in storage capacity and manufacturing costs
An object of the present invention is to provide a character font rotation control device for a printing device that can ensure a printing quality above a certain level by leaving the character font data for landscape only for characters that become unnatural when printed after being rotated once. And

[課題を解決するための手段] 上記課題を解消するために本発明の印字装置の文字フ
ォント回転制御装置においては、各文字コード毎にポー
トレート文字形状のフォントデータを記憶するポートレ
ート用フォント記憶部と、各コード毎に該当文字コード
に対応するポートレート文字形状を90度回転して印字す
ると不自然形状になるか否かを示す回転可否情報を記憶
する回転可否情報メモリと、この回転可否情報メモリに
回転不可能と記憶された文字コード毎にランドスケープ
文字形状のフォントデータを記憶するランドスケープ用
フォント記憶部と、印字出力すべきフォントデータを一
時記憶するデータ記憶用メモリと、フォントデータを90
度回転させるフォント回転回路と、外部から入力された
文字コードが回転可否情報メモリにて回転可能と指定さ
れたとき、ポートレート用フォント記憶部から該当文字
コードのフォントデータを読出してフォント回転回路を
用いて90度回転させたのちデータ記憶用メモリへ格納す
るポートレート文字回転格納手段と、外部から入力され
た文字コードが回転可否情報メモリにて回転不可能と指
定されたとき、ランドスケープ用フォント記憶部から該
当文字コードのフォントデータを読出してデータ記憶用
メモリへ格納するランドスケープ文字格納手段とを備え
たものである。
[Means for Solving the Problems] In order to solve the above problems, in a character font rotation control device of a printing apparatus according to the present invention, a portrait font storage for storing font data of a portrait character shape for each character code. Section, a rotation permission / prohibition information memory that stores rotation permission / prohibition information indicating whether or not the portrait character shape corresponding to the corresponding character code is rotated by 90 degrees and printed to have an unnatural shape. Landscape font storage unit that stores landscape character shape font data for each character code stored in the information memory as non-rotatable, data storage memory that temporarily stores font data to be printed out, and font data
When the font rotation circuit that rotates once and the character code input from the outside are specified as rotatable in the rotation possibility information memory, the font data of the corresponding character code is read from the portrait font storage unit and the font rotation circuit is executed. Rotate 90 degrees by using the portrait character rotation storage means to store it in the data storage memory, and landscape font storage when the externally input character code is specified as non-rotatable in the rotation possibility information memory And a landscape character storage means for reading the font data of the corresponding character code from the unit and storing it in the data storage memory.

[作用] 先ず、通常のポートレート文字形状を90度回転させて
印字すると不自然形状になる文字形状が存在することに
ついて説明する。
[Operation] First, it will be described that there is a character shape that becomes an unnatural shape when a normal portrait character shape is rotated by 90 degrees and printed.

一般に、レーザプリンタ又は感熱印字ヘッドで印字さ
れる文字はドットの集合で示される。このドットは一般
に円形を有している。しかし、レーザ光又は感熱印字ヘ
ッドはかなり高速で走査されながらドットを感光ドラム
又は印字用紙に転写していく。したがって、ドットが完
全な円形でなく、走査方向に伸びた楕円形になる。すな
わち、同一太さの線を印字した場合、走査方向の線の太
さは、走査方向と直交する方向の太さに比較して細くな
る。このような不都合を解消するために、通常のポート
レート文字形状においては、各ドットが楕円形状に印字
されることを想定して、走査方向の線の太さを走査方向
と直交する方向の太さより太くして、印字出力された場
合に正常な文字形状が得られるようにしている。
Generally, characters printed by a laser printer or a thermal print head are represented by a set of dots. This dot generally has a circular shape. However, the laser beam or thermal printing head transfers dots to the photosensitive drum or printing paper while scanning at a considerably high speed. Therefore, the dot is not a perfect circle but an ellipse extending in the scanning direction. That is, when lines with the same thickness are printed, the thickness of the line in the scanning direction becomes smaller than the thickness in the direction orthogonal to the scanning direction. In order to eliminate such an inconvenience, in a normal portrait character shape, assuming that each dot is printed in an elliptical shape, the thickness of the line in the scanning direction is changed to the thickness in the direction orthogonal to the scanning direction. The thickness is made thicker so that a normal character shape can be obtained when printed out.

したがって、このようなポートレート文字形状の文字
フォントデータをそのまま90度回転させて、印字出力す
ると、走査方向の線がより細くなり、走査方向と直交す
る方向の線がより太くなる。大部分の文字は、縦横の線
が一定以上の太さを有しているので、そのまま印字した
場合と90度回転させて印字した場合とでは、見た目には
ほとんど差がないが、英字等のなかの特殊な文字におい
ては、注意するとその差が目立ち、奇抜な印象を読者に
与える。
Therefore, when the character font data of such portrait character shape is rotated 90 degrees as it is and printed out, the line in the scanning direction becomes thinner and the line in the direction orthogonal to the scanning direction becomes thicker. Most characters have vertical and horizontal lines with a certain thickness, so there is almost no difference in appearance between when printed as it is and when printed by rotating it 90 degrees. With special characters, the difference is noticeable when you pay attention, and it gives a strange impression to the reader.

よって、本発明においては、このようにポートレート
文字形状を90度回転して印字すると不自然形状になる文
字の文字コードに対してのみ通常のポートレート文字形
状のフォントデータを記憶するポートレート用フォント
記憶部の他に、ランドスケープ文字形状のフォントデー
タを記憶するランドスケープ用フォント記憶部が設けら
れている。
Therefore, in the present invention, the portrait character shape font data is stored only for the character code of the character that becomes unnatural when the portrait character shape is rotated by 90 degrees and printed as described above. In addition to the font storage unit, a landscape font storage unit that stores font data of landscape character shapes is provided.

そして、例えば外部から印字すべき文字の文字コード
が入力されると、回転可否情報メモリから該当文字コー
ドが回転可能か否かが読出され、回転可能な場合は、ポ
ートレート用フォント記憶部からフォントデータが読出
され、フォント回転回路で90度回転されたのちデータ記
憶用メモリへ格納される。一方回転不可能な場合は、ラ
ンドスケープ用フォント記憶部からのフォントデータが
読出されてそのままデータ記憶用メモリへ格納される。
Then, for example, when the character code of the character to be printed is input from the outside, it is read from the rotatability information memory whether the corresponding character code is rotatable, and if it is rotatable, the font is stored from the portrait font storage unit. The data is read out, rotated by 90 degrees in the font rotation circuit, and then stored in the data storage memory. On the other hand, if the font cannot be rotated, the font data is read from the landscape font storage unit and stored in the data storage memory as it is.

[実施例] 以下、本発明の一実施例を図面を用いて説明する。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例の文字フォント回転制御装置を示すブ
ロック図である。なお、この実施例では印字装置として
レーザプリンタを用いている。レーザプリンタの各種動
作を制御するMPU11、制御プログラムの記憶部C1や全部
の文字に対するポートレート印字用の各文字フォントデ
ータを記憶するポートレート用フォント記憶部C2や回転
可否情報メモリC6や一部の文字コードのランドスケープ
印字用の各文字フォントデータを記憶するランドスケー
プ用フォント記憶部C3等を記憶するROM等からなる不揮
発性メモリ12、前記各文字フォントデータの書込読出が
可能なラスター領域B1やデータ領域B2等が形成されたRA
M等で構成されたデータ記憶用メモリ13、このデータ記
憶用メモリ13のラスター領域B1から文字フォントデータ
を読出してレーザプリンタエンジン部15へ出力するため
のデータ出力回路14、このデータ出力回路4を介して与
えられた文字フォントデータに基づいて用紙に印字を行
うレーザプリンタエンジン部15、およびフォント回転回
路16で構成されている。
FIG. 1 is a block diagram showing a character font rotation control device of the embodiment. In this embodiment, a laser printer is used as the printing device. The MPU11 that controls various operations of the laser printer, the storage unit C1 of the control program, the font storage unit for portrait C2 that stores each character font data for portrait printing for all characters, the rotation permission / inhibition information memory C6, and some Non-volatile memory 12 consisting of ROM etc. for storing landscape font storage C3 etc. for storing each character font data for landscape printing of character codes, raster area B1 and data for writing / reading of each character font data RA with area B2 etc. formed
A data storage memory 13 composed of M etc., a data output circuit 14 for reading out character font data from the raster area B1 of the data storage memory 13 and outputting it to the laser printer engine unit 15, and a data output circuit 4 It is composed of a laser printer engine section 15 for printing on a sheet based on the character font data given via a font rotation circuit 16.

前記ROMで形成された不揮発性メモリ12内には、第2
図に示すように、ポートレート用フォント記憶部C2の先
頭位置にヘッダー領域C4が形成されている。ヘッダー領
域C4には、ポートレート用フォント記憶部C2に記憶され
た各文字毎のヘッダー情報が記憶されている。そして、
各文字のヘッダー情報には、図示するように、ポートレ
ート用フォント記憶部C2内の該当文字に対応するポート
レート用文字のフォントデータの先頭アドレスC5、該当
文字のポートレート文字形状を90度回転して印字すると
不自然になるか否かを示す回転可否情報を記憶する回転
可否情報メモリC6が記憶されている。この回転可否情報
は回転可能の場合[00]と記憶され、回転不可能の場
合[FF]と記憶されている。さらに、前記回転可否情
報が回転不可能の場合における、ランドスケープ用フォ
ント記憶部C3内の該当文字に対応するランドスケープ用
文字のフォントデータの先頭アドレスC7が記憶されてい
る。なお、前記回転可否情報が回転可能の場合は当然ラ
ンドスケープ用文字のフォントデータの先頭アドレスC7
は記憶されていない。
In the non-volatile memory 12 formed by the ROM, the second
As shown in the figure, a header area C4 is formed at the head position of the portrait font storage unit C2. The header area C4 stores the header information for each character stored in the portrait font storage unit C2. And
In the header information of each character, as shown in the figure, the start address C5 of the font data of the portrait character corresponding to the corresponding character in the portrait font storage unit C2, the portrait character shape of the corresponding character is rotated 90 degrees. A rotatability information memory C6 that stores rotatability information indicating whether or not printing is unnatural is stored. This rotation permission / prohibition information is stored as [00] H when rotation is possible, and is stored as [FF] H when rotation is impossible. Further, the head address C7 of the font data of the landscape character corresponding to the corresponding character in the landscape font storage unit C3 when the rotation permission / inhibition information is not rotatable is stored. If the rotation permission / prohibition information is rotatable, the start address C7 of the font data for landscape characters is naturally
Is not remembered.

よって、ランドスケープ用フォント記憶部C3内には、
各文字の回転可否情報メモリC6に回転不可能と設定され
た各文字に対応するランドスケープ文字形状のフォント
データのみが記憶されている。
Therefore, in the landscape font storage unit C3,
Only the font data of the landscape character shape corresponding to each character set as non-rotatable is stored in the rotatability information memory C6 of each character.

また、フォント回転回路16は、第3図に示すように、
8ビット(=1ワード)のデータが書込み可能な8個の
文字回転用レジスタ21〜28と、各レジスタ21〜28に対応
して設けられ該当レジスタ21〜28から選択的に1ビット
データを読出すセレクタ31〜38と、各セレクタ31〜38に
対応して設けられ該当レジスタ31〜38の出力を一時記憶
しビットデータbit0〜bit7として出力するバッファ41〜
48とで構成されている。
Also, the font rotation circuit 16 is, as shown in FIG.
Eight character rotation registers 21 to 28 in which 8-bit (= 1 word) data can be written, and 1-bit data is selectively read from the corresponding registers 21 to 28 provided corresponding to each register 21 to 28. The selectors 31 to 38 for outputting, and the buffers 41 to 38, which are provided corresponding to the respective selectors 31 to 38, temporarily store the outputs of the corresponding registers 31 to 38 and output as bit data bit0 to bit7.
It consists of 48 and.

このような構成において、前記MPU11は、印字すべき
文字コードCDが入力してこの文字コードをランドスケー
プ印字する必要が生じると、第4図の流れ図に従って該
当文字のフォントデータをデータ記憶用メモリ13のラス
ター領域B1へ書込む処理を実行するようにプログラム構
成されている。
In such a configuration, when the character code CD to be printed is input and the character code needs to be landscape-printed, the MPU 11 stores the font data of the corresponding character in the data storage memory 13 according to the flowchart of FIG. The program is configured to execute the process of writing to the raster area B1.

すなわち、P1にて、この文字コードCDと,不揮発性メ
モリ12内における第2図に示すヘッダー領域C4の先頭ア
ドレレスAHD0と、1文字文のヘッダー情報のデータ数DH
とで、該当文字コードCDのヘッダー情報の先頭アドレス
ADHを算出する。
That is, at P1, this character code CD, the start address AHD 0 of the header area C4 shown in FIG. 2 in the non-volatile memory 12, and the data number D H of the header information of one character sentence
And the start address of the header information of the corresponding character code CD
Calculate AD H.

ADH=AHD0+(CD×DH) そして、P2にて該当文字コードCDのヘッダー情報に含
まれる回転可否情報メモリC6の回転可否情報が[FF]
であれば、この文字コードCDの文字は90度回転不可能で
あるが、P3へ進み、該当ヘッダー情報のランドスケープ
用フォントデータの先頭アドレスC7を読出す。そして、
ランドスケープ用フォント記憶部C3内の該当先頭アドレ
スC7以降に記憶されているランドスケープ文字形状を示
すフォントデータを読出してデータ記憶用メモリ13のラ
スター領域B1へ書込む。
AD H = AHD 0 + (CD × D H ) Then, at P2, the rotation availability information of the rotation availability information memory C6 included in the header information of the corresponding character code CD is [FF] H.
If so, the character of the character code CD cannot be rotated by 90 degrees, but the process proceeds to P3, and the head address C7 of the landscape font data of the corresponding header information is read. And
The font data indicating the landscape character shape stored after the corresponding start address C7 in the landscape font storage unit C3 is read and written in the raster area B1 of the data storage memory 13.

また、P2にて該当文字コードCDのヘッダー情報に含ま
れる回転可否情報メモリC6の回転可否情報が[00]
あれば、この文字コードCDの文字は90度回転可能である
ので、P5へ進み、該当ヘッダー情報のポートレート用フ
ォントデータの先頭アドレスC5を読出す。そして、P6へ
進み、ポートレート用フォント記憶部C2内の該当先頭ア
ドレスC5以降に記憶されているポートレート文字形状を
示すフォントデータに対するフオント回転回路16を用い
た文字フォント回転処理を実行する。そして、90度回転
されたフォントデータをP4にてラスター領域B1へ格納す
る。
If the rotation propriety information of the rotation propriety information memory C6 included in the header information of the corresponding character code CD at [P2] is [00] H , the character of this character code CD can be rotated 90 degrees. Then, the head address C5 of the portrait font data of the relevant header information is read. Then, the process proceeds to P6, and the character font rotation process using the font rotation circuit 16 is executed for the font data indicating the portrait character shape stored at the corresponding start address C5 and thereafter in the portrait font storage unit C2. Then, the font data rotated by 90 degrees is stored in the raster area B1 at P4.

次に、P6における文字フォント回転処理を第3図,第
5図および第6図を用いて説明する。
Next, the character font rotation process in P6 will be described with reference to FIGS. 3, 5, and 6.

先ず、MPU11は、1文字を構成するフォントデータの
サイズいわゆる転送データサイズ(ワードまたはビット
単位)、この転送データサイズのフォントデータを読出
す際のスキャン幅、データ記憶用メモリ13のデータ領域
B2における転送データサイズのフォントデータの転送先
アドレスをフォント回転回路16へ設定する。
First, the MPU 11 determines the size of font data that constitutes one character, so-called transfer data size (word or bit unit), the scan width when reading font data of this transfer data size, and the data area of the data storage memory 13.
The transfer destination address of the font data of the transfer data size in B2 is set in the font rotation circuit 16.

なお、本実施例では第7図に示すごとく転送データサ
イズ32ワード(256ビット)からなる1個の文字フォン
ト(例えば[a])を8×8ビットの4ブロックに分割
して、それぞれを90度回転させて転送する場合について
説明する。
In this embodiment, as shown in FIG. 7, one character font (for example, [a]) having a transfer data size of 32 words (256 bits) is divided into 4 blocks of 8 × 8 bits, and each is divided into 90 blocks. A case of rotating and transferring the data will be described.

この場合、予めMPU11により転送データサイズとして3
2ワードが設定され、スキャン幅として2ワードが設定
されている。また、データ領域B2に対する転送先アドレ
スとして例えば[7030]が設定されている。ここで文
字[a]をランドスケープ印字する必要が生じた場合、
MPU11から文字[a]の文字コードの先に読出した先頭
アドレスC5が転送元アドレスAD0(=[A000])とし
てこのフォント回転回路16へ入力される。
In this case, the transfer data size is set to 3 by the MPU 11 beforehand.
Two words are set and two words are set as the scan width. Further, for example, [7030] H is set as the transfer destination address for the data area B2. If it becomes necessary to print the character [a] in landscape,
The head address C5 read ahead of the character code of the character [a] from the MPU 11 is input to the font rotation circuit 16 as a transfer source address AD 0 (= [A000] H ).

しかしして、第5図の流れ図が開始され、入力された
転送元アドレス[A000]を第1のメモリ(一時記憶用
レジスタ)TMP1に書込むとともに、予め設定されている
転送先アドレス[7030]を第2のメモリTMP2に書込
む。また、第3のメモリTMP3および第4のメモリTMP4を
それぞれ「0」にクリアする。
Then, the flow chart of FIG. 5 is started, and the input transfer source address [A000] H is written into the first memory (temporary storage register) TMP1 and the preset transfer destination address [7030 ] Write H to the second memory TMP2. Further, the third memory TMP3 and the fourth memory TMP4 are each cleared to "0".

この状態で、第6図に示す1ブロック(8×8ビッ
ト)の回転処理を実行する。先ずメモリTMP1の内容をア
ドレスXとし、メモリTMP2の内容をアドレスYとする。
またカウンタNを「0」に初期化する。次いでポートレ
ート用フォント記憶部C2のアドレスXから1ワードデー
タを読出し、Nビット出力に対応する第3図に示すフォ
ント回転回路16における各文字回転用レジスタ21〜28へ
書き込む。しかる後、アドレスXを予め設定されている
スキャン幅分進めるとともにカウンタNを「+1」更新
する。次いで、上記と同様にしてポートレート用フォン
ト記憶部C2のアドレスXから1ワードデータを読出し、
Nビット出力に対応するフォント回転回路16の各文字回
転用レジスタ21〜28へ書込む。
In this state, the rotation process of one block (8 × 8 bits) shown in FIG. 6 is executed. First, the content of the memory TMP1 is set to address X, and the content of the memory TMP2 is set to address Y.
Also, the counter N is initialized to "0". Then, one-word data is read from the address X in the portrait font storage unit C2 and written into the character rotation registers 21 to 28 in the font rotation circuit 16 shown in FIG. 3 corresponding to N-bit output. Thereafter, the address X is advanced by a preset scan width and the counter N is updated by "+1". Then, in the same manner as above, one word data is read from the address X of the portrait font storage unit C2,
Write to each character rotation register 21-28 of the font rotation circuit 16 corresponding to N-bit output.

こうして、カウンタNが「7」に達するまで上記と同
様の処理を繰返し、カウンタNが「7」となり7ビット
出力bit7に対応する文字回転用レジスタ28にアドレスX
の1ワードデータを書込み、かつアドレスXを該当スキ
ャン幅分進めたならば、上記カウンタNを「0」に再度
初期化する。次いで、各文字回転用レジスタ21〜28のN
ビット目を各セレクタ31〜38により選択出力して各バッ
ファ41〜48を介してデータ記憶用メモリ13におけるデー
タ領域B2のアドレスYに書込む。しかる後、アドレスY
を前記スキャン幅分戻すとともにカウンタNを「+1」
更新する。次いで、上記と同様にして各文字回転用レジ
スタ21〜28のNビット目を各セレクタ31〜38により選択
出力して各バッファ41〜48を介してデータ記憶用メモリ
13におけるデータ領域B2のアドレスYに書込む。
In this way, the same processing as above is repeated until the counter N reaches "7", the counter N becomes "7", and the address X is stored in the character rotation register 28 corresponding to the 7-bit output bit7.
1 word data is written and the address X is advanced by the corresponding scan width, the counter N is initialized to "0" again. Next, N of each character rotation register 21-28
The bit number is selected and output by each of the selectors 31 to 38 and written to the address Y of the data area B2 in the data storage memory 13 via each of the buffers 41 to 48. After that, address Y
Is returned by the scan width and the counter N is incremented by "+1".
Update. Then, in the same manner as above, the Nth bit of each character rotation register 21-28 is selected and output by each selector 31-38, and the data storage memory is output via each buffer 41-48.
Write to address Y of data area B2 in 13.

こうして、カウンタNが「7」に達するまで上記と同
様の処理を繰り返し、カウンタNが「7」となり各文字
回転用レジスタ21〜28の7ビット目を各セレクタ31〜38
により選択出力して各バッファ41〜48を介してデータ記
憶用メモリ13におけるデータ領域B2のアドレスYに書き
込み、かつアドレスYを前記スキャン幅分戻したなら
ば、1ブロックの回転処理を終了する。
In this way, the same processing as above is repeated until the counter N reaches "7", the counter N becomes "7", and the 7th bit of each character rotation register 21-28 is set to each selector 31-38.
When the address Y is selectively output and written to the address Y of the data area B2 in the memory 13 for data storage via each of the buffers 41 to 48, and the address Y is returned by the scan width, the rotation processing of one block is completed.

以上でポートレート用フォント記憶部C2におけるアド
レス[A000]H,[A002]H,[A004]……[A014]
8×8ビットデータがデータ領域B2におけるアドレス
[7030]H,[7028]H,[7026]……[7016]の8×
8ビットエリアに転送されたことになる。
As described above, the 8 × 8-bit data of the addresses [A000] H , [A002] H , [A004] H ...... [A014] H in the portrait font storage unit C2 corresponds to the addresses [7030] H , [7028] in the data area B2. ] H , [7026] H …… [7016] H 8 ×
It has been transferred to the 8-bit area.

次に、第5図に戻り、前記第2のメモリTMP2の内容に
「1」を加算する。また、第1のメモリTMP1の内容に
(8×スキャン幅)を加算する。さらに、第3のメモリ
TMP3の内容に(8×スキャン幅)を加算する。次いで、
第3のメモリTMP3の内容と予め設定されている転送デー
タサイズとを比較し、両者が不一致ならば前述した1ブ
ロックの回転処理を再度実行する。これにより、ポート
レート用フォント記憶部C2におけるアドレス[A016]H,
[A018]H,[A020]……[A030]の8×8ビットデ
ータがデータ領域B2におけるアドレス[7031]H,[702
9]H,[7027]……[7017]の8×8ビットエリア
に転送される。
Next, returning to FIG. 5, "1" is added to the contents of the second memory TMP2. Also, (8 × scan width) is added to the contents of the first memory TMP1. In addition, the third memory
Add (8 x scan width) to the contents of TMP3. Then
The contents of the third memory TMP3 are compared with the preset transfer data size, and if they do not match, the rotation process for one block is executed again. As a result, the address [A016] H , in the portrait font storage unit C2
[A018] H, [A020] H ...... [A030] Address 8 × 8-bit data H is in the data area B2 [7031] H, [702
9] H , [7027] H ... [7017] H is transferred to the 8 × 8 bit area.

こうして、第3のメモリTMP3の内容が転送データサイ
ズに一致するまで1ブロックの回転処理を繰返し、一致
したならば第1のメモリTMP1の内容から(8×スキャン
幅)を減算し、その値に「1」を加算する。また、第2
のメモリTMP2の内容から「1」を減算し、さらにその値
から(8×スキャン幅)を減算する。さらに、第4のメ
モリTMP4の内容に「1」を加算する。次いで、第4のメ
モリTMP4の内容と予め設定されているスキャン幅とを比
較し、両者が不一致ならば第3のメモリTMP3を「0」に
クリアした後、前述した第6図の1ブロックの回転処理
を再度実行する。これにより、ポートレート用フォント
記憶部C2におけるアドレス[A001]H,[A003]H,[A00
5]……[A0015]の8×8ビットデータがデータ領
域B2におけるアドレス[7014]H,[7012]H,[7010]
……[7000]の8×8ビットエリアに転送される。続
いて、ポートレート用フォント記憶部C2におけるアドレ
ス[A017]H,[A019]H,[A021]……[A013]の8
×8ビットデータがデータ領域におけるアドレス[701
5]H,[7013]H,[7011]……[7001]の8×8ビ
ットエリアに転送される。
In this way, one block of rotation processing is repeated until the contents of the third memory TMP3 match the transfer data size. If they match, (8 × scan width) is subtracted from the contents of the first memory TMP1 and the value is set. Add "1". Also, the second
"1" is subtracted from the contents of the memory TMP2 of, and (8 x scan width) is further subtracted from the value. Further, "1" is added to the contents of the fourth memory TMP4. Next, the contents of the fourth memory TMP4 are compared with the preset scan width, and if the two do not match, the third memory TMP3 is cleared to "0", and then the one block in FIG. Execute the rotation process again. As a result, the addresses [A001] H , [A003] H , [A00 in the portrait font storage unit C2 are displayed.
5] H ...... [A0015] Address 8 × 8-bit data H is in the data area B2 [7014] H, [7012 ] H, [7010] H
...... Transferred to the 8 × 8 bit area of [7000] H. Subsequently, the address of the portrait font storage unit C2 [A017] H, [A019 ] H, the [A021] H ...... [A013] H 8
× 8-bit data is the address in the data area [701
5] H , [7013] H , [7011] H ... [7001] H is transferred to the 8x8 bit area.

こうして、第3のメモリTMP3の内容が転送データサイ
ズに再度一致し、なおかつ第4のメモリTMP3の内容がス
キャン幅に一致したならば、この文字「a」に対するフ
オント回転回路16を用いた文字フォント回転処理を終了
する。
Thus, if the contents of the third memory TMP3 again match the transfer data size and the contents of the fourth memory TMP3 match the scan width, the character font using the font rotation circuit 16 for this character "a" The rotation process ends.

そして、第4図へ戻り、転送先のデータ領域B2に書込
まれた文字フォントデータをランドスケープ用文字フォ
ントデータとしてデータ記憶用メモリ13のラスター領域
B1に書込む。しかして、このラスター領域B1から読出さ
れた文字フォントデータはデータ出力回路14の作用によ
りレーザプリンタエンジン部15に与えられ、用紙に文字
[a]がランドスケープ印字される。
Then, returning to FIG. 4, the raster area of the memory 13 for data storage uses the character font data written in the transfer destination data area B2 as the character font data for landscape.
Write to B1. Then, the character font data read from the raster area B1 is given to the laser printer engine section 15 by the operation of the data output circuit 14, and the character [a] is printed in landscape on the paper.

なお、文字[a]をポートレート印字する必要が生じ
た場合には、MPU11は前述した文字[a]の転送元アド
レスAD0で示されるポートレート用フォント記憶部A2か
ら文字[a]のポートレート用文字フォントデータを読
出して直接データ記憶用メモリ13のラスター領域B1に書
込む。こうすることによりレーザプリンタエンジン部15
によって用紙に文字[a]がポートレート印字される。
When it becomes necessary to print the character [a] in portrait, the MPU 11 displays the character [a] port from the portrait font storage unit A2 indicated by the transfer source address AD 0 of the character [a] described above. The rate character font data is read and directly written in the raster area B1 of the data storage memory 13. By doing this, the laser printer engine unit 15
Thus, the character [a] is printed on the paper in portrait form.

このように本実施例によれば、専用のフォント回転回
路16を用いて所望文字のポートレート用文字フォントを
90度回転させて所望文字のランドスケープ用文字フォン
トを生成しているので、MPU11自身でランドスケープ用
文字フォントを生成する場合に比べて処理時間を高速化
できる。
As described above, according to this embodiment, the character font for portrait of the desired character is created by using the dedicated font rotation circuit 16.
Since the landscape character font of the desired character is generated by rotating 90 degrees, the processing time can be shortened compared to the case where the MPU11 itself generates the landscape character font.

また、ポートレート文字形状を90度回転して印字する
と不自然形状になる少数の文字コードに対しては、ラン
ドスケープ文字形状を記憶するランドスケープ用フォン
ト記憶部C3を設け、90度回転せずに、ランドスケープ文
字形状のフォントデータをそのまま印字出力している。
したがって、全部の文字に対して正常なポートレート用
文字と、90度回転したランドスケープ用文字とを印字出
力できる。よって、各文字の印字品質を常に一定水準以
上に維持できる。
Also, for a small number of character codes that become unnatural when printing portrait character shapes by rotating 90 degrees, a landscape font storage unit C3 that stores landscape character shapes is provided, without rotating 90 degrees, The font data in landscape character form is printed out as it is.
Therefore, normal portrait characters and landscape characters rotated by 90 degrees can be printed out for all characters. Therefore, the print quality of each character can always be maintained at a certain level or higher.

また、ランドスケープ用フォント記憶部C3に記憶され
ているランドスケープ文字形状の文字数はごく少ないの
で、第8図に示した、すべての文字に対してランドスケ
ープ文字形状を記憶する場合に比較して、ランドスケー
プ用文字フォント記憶部C3の必要とする記憶容量を大幅
に節減できる。よって、製造費を大幅に低減できる。
Also, the number of landscape character shapes stored in the landscape font storage unit C3 is very small, so compared to the case of storing the landscape character shapes for all the characters shown in FIG. The storage capacity required by the character font storage unit C3 can be significantly reduced. Therefore, manufacturing costs can be significantly reduced.

[発明の効果] 以上説明したように、本発明の印字装置の文字フォン
ト回転制御装置によれば、ポートレート用文字フォント
を90度回転させてランドスケープ用文字フォントを生成
するための専用の回路を設けている。よって、ランドス
ケープ用文字フォント記憶部の大部分のフォントデータ
を不要にでき、記憶容量の低減および製造費の節減を図
れ、かつ文字フォント回転に伴うMPUの処理負担を低減
できる。さらに、90度回転させて印字すると不自然形状
になる文字に対してのみランドスケープ用の文字フォン
トデータを残している。したがって、常に一定水準以上
の印字品質を確保した状態で、上述した種々の効果を奏
することが可能となる。
As described above, according to the character font rotation control device of the printing apparatus of the present invention, a dedicated circuit for rotating the portrait character font by 90 degrees to generate the landscape character font is provided. It is provided. Therefore, most of the font data in the landscape character font storage unit can be eliminated, the storage capacity can be reduced, the manufacturing cost can be reduced, and the processing load of the MPU associated with the rotation of the character font can be reduced. Furthermore, the landscape font data is left only for the characters that have an unnatural shape when printed by rotating 90 degrees. Therefore, it is possible to achieve the above-mentioned various effects while always ensuring the print quality of a certain level or higher.

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

第1図乃至第7図は本発明の一実施例に係わる印字装置
の文字フォント回転制御装置を示すものであり、第1図
はブロック図、第2図は不揮発性メモリのメモリ構成を
示す図、第3図はフォント回転回路図、第4図乃至第6
図は動作を示す流れ図、第7図は文字[a]の文字フォ
ントが90度回転した例を示す図であり、第8図は従来の
印字装置の文字フォント回転制御装置を示すブロック
図、第9図は同従来装置の不揮発性メモリのメモリ構成
を示す図である。 11……MPU、12……不揮発性メモリ、13……データ記憶
用メモリ、14……データ出力回路、15……レーザプリン
タエンジン部、16……フォント回転回路、C2……ポート
レート用フォント記憶部、C3……ランドスケープ用フォ
ント記憶部、C4……ヘッダー領域、C6……回転可否情報
メモリ、B1……ラスター領域、B2……データ領域。
1 to 7 show a character font rotation control device of a printing apparatus according to an embodiment of the present invention. FIG. 1 is a block diagram and FIG. 2 is a diagram showing a memory configuration of a non-volatile memory. , FIG. 3 is a font rotation circuit diagram, and FIGS.
FIG. 7 is a flow chart showing the operation, FIG. 7 is a diagram showing an example in which a character font of the character [a] is rotated by 90 degrees, and FIG. 8 is a block diagram showing a character font rotation control device of a conventional printer. FIG. 9 is a diagram showing a memory configuration of a nonvolatile memory of the conventional device. 11 …… MPU, 12 …… Nonvolatile memory, 13 …… Data storage memory, 14 …… Data output circuit, 15 …… Laser printer engine, 16 …… Font rotation circuit, C2 …… Portrait font storage Section, C3 ...... Landscape font storage section, C4 ...... Header area, C6 ...... Rotatability information memory, B1 ...... Raster area, B2 ...... Data area.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】各文字コード毎にポートレート文字形状の
フォントデータを記憶するポートレート用フォント記憶
部と、前記各コード毎に該当文字コードに対応するポー
トレート文字形状を90度回転して印字すると不自然形状
になるか否かを示す回転可否情報を記憶する回転可否情
報メモリと、この回転可否情報メモリに回転不可能と記
憶された文字コード毎にランドスケープ文字形状のフォ
トデータを記憶するランドスケープ用フォント記憶部
と、印字出力すべきフォントデータを一時記憶するデー
タ記憶用メモリと、フォントデータを90度回転させるフ
ォント回転回路と、外部から入力された文字コードが前
記回転可否情報メモリにて回転可能と指定されたとき、
前記ポートレート用フォント記憶部から該当文字コード
のフォントデータを読出して前記フォント回転回路を用
いて90度回転させたのち前記データ記憶用メモリへ格納
するポートレート文字回転格納手段と、前記外部から入
力された文字コードが前記回転可否情報メモリにて回転
不可能と指定されたとき、前記ランドスケープ用フォン
ト記憶部から該当文字コードのフォントデータを読出し
て前記データ記憶用メモリへ格納するランドスケープ文
字格納手段とを備えた印字装置の文字フォント回転制御
装置。
1. A portrait font storage unit for storing font data of a portrait character shape for each character code, and a portrait character shape corresponding to the corresponding character code for each code is rotated by 90 degrees and printed. Then, a rotation propriety information memory that stores the rotation propriety information indicating whether or not the shape becomes unnatural, and a landscape that stores the photo data of the landscape character shape for each character code stored as non-rotatable in this rotation propriety information memory Font storage unit, data storage memory for temporarily storing font data to be printed out, font rotation circuit for rotating the font data by 90 degrees, and the character code input from the outside is rotated in the rotation possibility information memory. When specified as possible,
Input from the outside, portrait character rotation storing means for reading the font data of the corresponding character code from the portrait font storage unit, rotating it by 90 degrees using the font rotation circuit, and storing it in the data storage memory. Landscape character storage means for reading the font data of the corresponding character code from the landscape font storage unit and storing it in the data storage memory when the specified character code is designated as non-rotatable by the rotation permission / inhibition information memory. A character font rotation control device for a printing device equipped with.
JP1309981A 1989-11-29 1989-11-29 Character font rotation controller for printer Expired - Fee Related JPH0813556B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1309981A JPH0813556B2 (en) 1989-11-29 1989-11-29 Character font rotation controller for printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1309981A JPH0813556B2 (en) 1989-11-29 1989-11-29 Character font rotation controller for printer

Publications (2)

Publication Number Publication Date
JPH03169570A JPH03169570A (en) 1991-07-23
JPH0813556B2 true JPH0813556B2 (en) 1996-02-14

Family

ID=17999699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1309981A Expired - Fee Related JPH0813556B2 (en) 1989-11-29 1989-11-29 Character font rotation controller for printer

Country Status (1)

Country Link
JP (1) JPH0813556B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55124856A (en) * 1979-03-19 1980-09-26 Toshiba Corp Special character pattern conversion system

Also Published As

Publication number Publication date
JPH03169570A (en) 1991-07-23

Similar Documents

Publication Publication Date Title
GB2156558A (en) Data processing apparatus
EP0091124B1 (en) Video signal generating circuit
JPH0813556B2 (en) Character font rotation controller for printer
CA1286419C (en) Horizontal line processor of data to be printed out sequentially
JPH03130175A (en) Device to enlarge dot matrix data
JPS5941052A (en) Character pattern generator
JPH06103456B2 (en) Raster calculation circuit
JPS5941051A (en) Character pattern generator
US5471562A (en) Printer having a bit shift function
JP3006764B2 (en) Double-sided printing control device
JPH03114850A (en) Printer control apparatus
JPH0478549A (en) Printer
JPS59181387A (en) Graphic generator
JPS5931752B2 (en) printing device
JP3782882B2 (en) Line buffer controller
JPH0450896A (en) Plotting circuit
JPH0426137B2 (en)
JPH05158455A (en) Character display device
JPH06238961A (en) Page printer
JPH07117886B2 (en) Data control device
JPS58107582A (en) Bold character pattern generation system
JPS61120755A (en) Printer
JPS6190195A (en) Pattern generator
JPS6374092A (en) Printer
JPH02254529A (en) Oblique font generating method

Legal Events

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