JP6933544B2 - Character data processing device and program - Google Patents

Character data processing device and program Download PDF

Info

Publication number
JP6933544B2
JP6933544B2 JP2017193760A JP2017193760A JP6933544B2 JP 6933544 B2 JP6933544 B2 JP 6933544B2 JP 2017193760 A JP2017193760 A JP 2017193760A JP 2017193760 A JP2017193760 A JP 2017193760A JP 6933544 B2 JP6933544 B2 JP 6933544B2
Authority
JP
Japan
Prior art keywords
dot
dots
character data
character
address
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.)
Active
Application number
JP2017193760A
Other languages
Japanese (ja)
Other versions
JP2019064205A (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.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2017193760A priority Critical patent/JP6933544B2/en
Publication of JP2019064205A publication Critical patent/JP2019064205A/en
Application granted granted Critical
Publication of JP6933544B2 publication Critical patent/JP6933544B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)

Description

本発明は、文字データ処理装置及びプログラムに関する。 The present invention relates to a character data processing device and a program.

従来より、ロゴ印刷を行うプリンタが知られている(例えば、特許文献1参照)。例えば、ロゴ印刷では、文字(テキストデータ)の背景に傾斜した文字のイメージデータ(ロゴ)を合成して印刷が実行される。 Conventionally, a printer that prints a logo has been known (see, for example, Patent Document 1). For example, in logo printing, printing is executed by synthesizing image data (logo) of inclined characters on the background of characters (text data).

特開2006−35729号公報Japanese Unexamined Patent Publication No. 2006-35729

ロゴ印刷では、ロゴのイメージデータを作成し、作成したイメージデータをメモリに展開して印刷が行われる。このため、イメージデータを作成する手間がかかる。さらに、イメージデータはテキストデータよりも大容量になるため、テキストデータと比べて、データの転送時間が長くなる。 In logo printing, image data of a logo is created, the created image data is expanded in a memory, and printing is performed. Therefore, it takes time and effort to create image data. Further, since the image data has a larger capacity than the text data, the data transfer time becomes longer than that of the text data.

本発明の目的は、イメージデータを作成せずに傾斜文字を作成することができる文字データ処理装置及びプログラムを提供することにある。 An object of the present invention is to provide a character data processing device and a program capable of creating inclined characters without creating image data.

上記目的を達成するため、明細書に開示された文字データ処理装置は、文字データの設定された回転角度に基づいて、前記文字データを展開する領域の四隅のドットのいずれか1つに対応する書き込みアドレスを基準書き込みアドレスとし、前記基準書き込みアドレスから所定のドット数だけ離れた位置に書き込みアドレスを更新する第1手段と、前記設定された回転角度に基づいて、前記文字データを構成する各ドットに対応するデータを読み出し、当該各ドットに対応するデータを書き込む度に読み出しアドレスを更新する第2手段と、前記第2手段で読み出された各ドットに対応するデータを前記書き込みアドレスに書き込み、前記各ドットに対応するデータを書き込む度に、前記書き込みアドレスを水平方向に対して前記設定された回転角度だけ傾けた位置に配置されるドットの書き込みアドレスに更新する第3手段と、前記文字データを構成する1行分の全ドットの書き込みが完了した場合に、前記設定された回転角度に基づいて前記基準書き込みアドレスを所定量移行し、前記文字データの読み出しアドレスを次行に移行する第4手段と、前記文字データの展開後の印字ドットによって囲まれた非印字ドットを印字ドットに変換する第5手段と、を備えていることを特徴とする。 In order to achieve the above object, the character data processing device disclosed in the specification corresponds to any one of the dots at the four corners of the area where the character data is developed, based on the set rotation angle of the character data. The writing address is used as the reference writing address, and the first means for updating the writing address to a position separated by a predetermined number of dots from the reference writing address, and each dot constituting the character data based on the set rotation angle. A second means for reading the data corresponding to the above and updating the read address each time the data corresponding to each dot is written, and writing the data corresponding to each dot read by the second means to the write address. Each time data corresponding to each dot is written, a third means for updating the write address to a dot write address arranged at a position tilted by the set rotation angle with respect to the horizontal direction, and the character data. When the writing of all the dots for one line constituting the above is completed, the reference writing address is transferred by a predetermined amount based on the set rotation angle, and the reading address of the character data is transferred to the next line. It is characterized by including means and a fifth means for converting non-printed dots surrounded by printed dots after the character data is expanded into printed dots.

本発明によれば、イメージデータを作成せずに傾斜文字を作成することができる。 According to the present invention, tilted characters can be created without creating image data.

本実施の形態に係る文字データ処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the character data processing apparatus which concerns on this embodiment. 文字の拡大傾斜処理を示すフローチャートである。It is a flowchart which shows the enlargement inclination processing of a character. 拡大傾斜処理が実行された文字の変換状態を示す図である。It is a figure which shows the conversion state of the character which performed the enlargement inclination processing. (A),(B)は、間引き処理が実行された場合の文字の変換状態を示す図である。(A) and (B) are diagrams showing the character conversion state when the thinning process is executed. テキストデータの背景に拡大傾斜文字が合成された状態を示す図である。It is a figure which shows the state which the enlarged inclined character is combined with the background of the text data. 各種の設定情報の設定画面の一例を示す図である。It is a figure which shows an example of the setting screen of various setting information. (A),(B)は、拡大傾斜文字の展開順番、展開方向及び展開位置の例を示す図である。(A) and (B) are diagrams showing an example of the expansion order, expansion direction, and expansion position of the enlarged tilt characters. (A)は文字の一例を示す図である。(B)は、図8(A)の文字を+45度回転させた例を示す図である。(C)は、図8(A)の文字を−45度回転させた例を示す図である。(A) is a figure which shows an example of a character. FIG. 8B is a diagram showing an example in which the character of FIG. 8A is rotated by +45 degrees. FIG. 8C is a diagram showing an example in which the character of FIG. 8A is rotated by −45 degrees. (A)は、図8(A)の文字の1行目及び2行目のドットを示す図である。(B)は、図8(A)の文字の1行目のドットが+45度方向に展開された状態を示す図である。(C)は、図8(A)の文字の2行目のドットが+45度方向に展開された状態を示す図である。(D)は、+45度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。(A) is a figure which shows the dot of the 1st line and the 2nd line of the character of FIG. 8A. FIG. 8B is a diagram showing a state in which the dots on the first line of the characters in FIG. 8A are expanded in the + 45 degree direction. FIG. 8C is a diagram showing a state in which the dots on the second line of the character of FIG. 8A are expanded in the + 45 degree direction. FIG. (D) is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the + 45 degree direction. (A)は、図8(A)の文字の1行目のドットが+30度方向に展開される例を示す図である。(B)は、図8(A)の文字の2行目のドットが+30度方向に展開される例を示す図である。(C)は、+30度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。FIG. 8A is a diagram showing an example in which the dots on the first line of the characters in FIG. 8A are expanded in the +30 degree direction. FIG. 8B is a diagram showing an example in which the dots on the second line of the character of FIG. 8A are expanded in the +30 degree direction. (C) is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the + 30 degree direction. (A)は、図8(A)の文字の1行目のドットが+60度方向に展開される例を示す図である。(B)は、図8(A)の文字の2行目のドットが+60度方向に展開される例を示す図である。(C)は、+60度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。FIG. 8A is a diagram showing an example in which the dots on the first line of the characters in FIG. 8A are expanded in the +60 degree direction. FIG. 8B is a diagram showing an example in which the dots on the second line of the character of FIG. 8A are expanded in the +60 degree direction. (C) is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the + 60 degree direction. (A)は、図8(A)の文字の1行目及び2行目のドットを示す図である。(B)は、図8(A)の文字の1行目のドットが−45度方向に展開される例を示す図である。(C)は、図8(A)の文字の2行目のドットが−45度方向に展開される例を示す図である。(D)は、−45度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。(A) is a figure which shows the dot of the 1st line and the 2nd line of the character of FIG. 8A. FIG. 8B is a diagram showing an example in which the dots on the first line of the characters in FIG. 8A are expanded in the −45 degree direction. FIG. 8C is a diagram showing an example in which the dots on the second line of the character of FIG. 8A are expanded in the −45 degree direction. FIG. (D) is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the −45 degree direction. 文字を+30度、+45度又は+60度回転させる場合の拡大傾斜処理を示すフローチャートである。It is a flowchart which shows the expansion inclination processing at the time of rotating a character by +30 degree, +45 degree or +60 degree. 文字を−45度回転させる場合の拡大傾斜処理を示すフローチャートである。It is a flowchart which shows the expansion inclination processing at the time of rotating a character by −45 degrees.

以下、図面を参照しながら本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施の形態に係る文字データ処理装置の構成を示すブロック図である。本実施の形態では、文字データ処理装置としてのプリンタ1は例えばサーマルプリンタであるが、サーマルプリンタに限定されるものではなく、インクジェットプリンタやドットインパクトプリンタなどでもよい。 FIG. 1 is a block diagram showing a configuration of a character data processing device according to the present embodiment. In the present embodiment, the printer 1 as the character data processing device is, for example, a thermal printer, but the printer is not limited to the thermal printer, and may be an inkjet printer, a dot impact printer, or the like.

プリンタ1は、プリンタ1の動作全体を制御するコントローラ11と、各種データやプログラムを格納するメモリ12と、文字やイメージを用紙に印字する印字部13と、各種の設定情報(文字データの展開開始位置、展開終了位置及び拡大傾斜文字の回転角度など)や印字データを入力する操作部14と、各種設定に必要な情報や印字データを表示する表示部15と、外部端末2と接続するためのインターフェース(IF)16とを備えている。尚、外部端末2は、パソコン又は携帯端末などである。表示部15や操作部14は、外部端末2に設けられていてもよく、またプリンタ1が表示部15や操作部14を備えていなくてもよい。なお、拡大傾斜文字とは、斜め方向に展開され、且つ拡大された文字である。以下、傾斜処理のみが施された文字も含め「拡大傾斜文字」と総称することもある。 The printer 1 includes a controller 11 that controls the entire operation of the printer 1, a memory 12 that stores various data and programs, a printing unit 13 that prints characters and images on paper, and various setting information (start of developing character data). An operation unit 14 for inputting print data (position, expansion end position, rotation angle of enlarged tilt character, etc.), a display unit 15 for displaying information and print data required for various settings, and an external terminal 2 for connecting. It has an interface (IF) 16. The external terminal 2 is a personal computer, a mobile terminal, or the like. The display unit 15 and the operation unit 14 may be provided on the external terminal 2, and the printer 1 may not include the display unit 15 and the operation unit 14. The enlarged tilt character is a character that is expanded and enlarged in an oblique direction. Hereinafter, the characters that have been subjected to the tilt processing only may be collectively referred to as "enlarged tilt characters".

コントローラ11は、バス17を介してメモリ12、印字部13、操作部14、表示部15及びIF16に接続されている。印字部13はサーマルヘッドやプラテンローラなどを備えている。操作部14は、ボタン、入力キー又はタッチパネルなどで備えている。表示部15は、例えば液晶ディスプレイである。IF16は、例えばシリアルインターフェース、USB(Universal Serial Bus)インターフェース又はネットワークインタフェースである。本実施の形態では、操作部14を使って各種の設定情報や印字データを入力できるが、各種の設定情報や印字データは外部端末2から入力されてもよい。 The controller 11 is connected to the memory 12, the printing unit 13, the operating unit 14, the display unit 15, and the IF 16 via the bus 17. The printing unit 13 includes a thermal head, a platen roller, and the like. The operation unit 14 is provided with a button, an input key, a touch panel, or the like. The display unit 15 is, for example, a liquid crystal display. The IF16 is, for example, a serial interface, a USB (Universal Serial Bus) interface, or a network interface. In the present embodiment, various setting information and print data can be input using the operation unit 14, but various setting information and print data may be input from the external terminal 2.

尚、本実施の形態では、文字や文字データは、プリンタ1のフォントメモリ12aに登録されている書体データ(文字、数字、記号及び図形などを含む)である。 In the present embodiment, the characters and character data are typeface data (including characters, numbers, symbols, figures, etc.) registered in the font memory 12a of the printer 1.

図2は、文字の拡大傾斜処理を示すフローチャートである。図3は、拡大傾斜処理が実行された場合の文字の変換状態を示す図である。図4(A),(B)は、間引き処理が実行された場合の文字の変換状態を示す図である。図5は、テキストデータの背景に拡大傾斜文字が合成された状態を示す図である。なお、文字の拡大傾斜処理は外部端末2で実行し、処理後の文字パターンをプリンタ1に送信して印字させる対応でもよい。 FIG. 2 is a flowchart showing the enlargement / tilting process of characters. FIG. 3 is a diagram showing a character conversion state when the enlargement tilt processing is executed. 4 (A) and 4 (B) are diagrams showing the character conversion state when the thinning process is executed. FIG. 5 is a diagram showing a state in which enlarged inclined characters are combined with the background of the text data. The character enlargement / tilting process may be executed by the external terminal 2 and the processed character pattern may be transmitted to the printer 1 for printing.

まず、コントローラ11は、印字データの各文字を拡大傾斜文字に展開するための拡大傾斜文字設定が操作部14又は外部端末2から入力されているか否かを判定する(S51)。拡大傾斜文字設定が入力されていない場合には(S51でNO)、コントローラ11は拡大傾斜処理を行うことなく印字部13に印字データを印字させる(S56)。拡大傾斜文字設定が入力されている場合には(S51でYES)、コントローラ11は処理対象の各文字を拡大傾斜文字に展開する拡大傾斜処理を実行する(S52)。拡大傾斜処理が実行されると、例えば、図3に示すように、文字「A」が斜め方向に傾けられて拡大された文字「A」に変換される。尚、拡大傾斜処理の詳細については後述する。 First, the controller 11 determines whether or not the enlarged tilt character setting for expanding each character of the print data into the enlarged tilt character is input from the operation unit 14 or the external terminal 2 (S51). When the enlarged tilt character setting is not input (NO in S51), the controller 11 causes the printing unit 13 to print the print data without performing the enlarged tilt process (S56). When the enlarged tilt character setting is input (YES in S51), the controller 11 executes the enlarged tilt process for expanding each character to be processed into the enlarged tilt character (S52). When the enlargement tilting process is executed, for example, as shown in FIG. 3, the character "A" is obliquely tilted and converted into the enlarged character "A". The details of the expansion tilt processing will be described later.

次に、コントローラ11は、拡大傾斜文字を通常の印字よりも薄く印字される薄文字に展開するための薄文字設定が操作部14又は外部端末2から入力されているか否かを判定する(S53)。薄文字設定が入力されている場合には(S53でYES)、コントローラ11は拡大傾斜文字を薄文字に展開するために文字パターンを構成するドットの間引き処理を実行する(S54)。 Next, the controller 11 determines whether or not the light character setting for expanding the enlarged tilted character into the light character printed lighter than the normal printing is input from the operation unit 14 or the external terminal 2 (S53). ). When the light character setting is input (YES in S53), the controller 11 executes the thinning process of the dots constituting the character pattern in order to expand the enlarged inclined character into the light character (S54).

間引き処理では、例えば、図4(A)に示すように拡大傾斜文字「A」を構成するドット列が間引かれ、間引き対象の列にある黒ドットが白ドットに変換される。ここでは、1列毎にドット列を間引く間引きパターンが使用され、黒ドットが1列毎に白に変換されている。あるいは、図4(B)に示すように拡大傾斜文字「A」を構成するドット行が間引かれる。ここでは、1行毎にドット行を間引く間引きパターンが使用され、黒ドットが1行毎に白に変換される。尚、市松模様の間引きパターン又は所定の形状の間引きパターンを利用して間引き処理を実行してもよい。間引き処理により拡大傾斜文字を構成する黒ドット数が減少するので、全体として拡大傾斜文字の色が薄くなる。尚、等倍でフォントを間引くと、フォント構成が崩れ、文字判読ができなくなる可能性があるため、斜めフォント展開時はデータを拡大して斜めに展開し、その後間引き処理を実行している(図2のS52,S54参照)。 In the thinning process, for example, as shown in FIG. 4 (A), the dot strings constituting the enlarged tilt character "A" are thinned out, and the black dots in the columns to be thinned out are converted into white dots. Here, a thinning pattern in which dot rows are thinned out for each row is used, and black dots are converted to white for each row. Alternatively, as shown in FIG. 4 (B), the dot lines constituting the enlarged tilt character "A" are thinned out. Here, a thinning pattern in which dot lines are thinned out line by line is used, and black dots are converted to white line by line. The thinning process may be executed by using the checkered pattern or the thinning pattern having a predetermined shape. Since the number of black dots constituting the enlarged tilted character is reduced by the thinning process, the color of the enlarged tilted character becomes lighter as a whole. If the font is thinned out at the same magnification, the font structure may be corrupted and the characters may not be readable. Therefore, when expanding the diagonal font, the data is enlarged and expanded diagonally, and then the thinning process is executed (. See S52 and S54 in FIG. 2).

次に、コントローラ11は、テキストデータの背景に拡大傾斜文字を合成する(S55)。コントローラ11は、テキストデータ及び拡大傾斜文字をドット毎にOR合成し、メモリ12内の印字データ展開用のバッファ領域に拡大傾斜文字とテキストデータとを展開する。S55の合成処理が実行されると、例えば図5に示すように、テキストデータ201(「2017/1/1 セール情報」)の背景に拡大傾斜文字200(「HAHA」)が合成される。その後、コントローラ11は、合成された印字データを印字部13に印字させ(S56)、本処理を終了する。 Next, the controller 11 synthesizes the enlarged tilt character on the background of the text data (S55). The controller 11 OR-synthesizes the text data and the enlarged tilt character for each dot, and expands the enlarged tilt character and the text data in the buffer area for expanding the print data in the memory 12. When the synthesis process of S55 is executed, for example, as shown in FIG. 5, the enlarged tilt character 200 (“HAHA”) is synthesized on the background of the text data 201 (“2017/1/1 sale information”). After that, the controller 11 causes the printing unit 13 to print the combined print data (S56), and ends this process.

図6は、各種の設定情報の設定画面の一例を示す図である。図7(A),(B)は、拡大傾斜文字の展開順番、展開方向及び展開位置の例を示す図である。 FIG. 6 is a diagram showing an example of a setting screen for various setting information. 7 (A) and 7 (B) are diagrams showing an example of the expansion order, expansion direction, and expansion position of the enlarged tilt characters.

図6の設定画面20は、表示部15又は外部端末2に表示される。設定画面20では、例えば拡大サイズ21、傾斜角度22、濃度23、展開方向24、展開角度25、展開開始位置26及び展開終了位置27が設定される。拡大サイズ21は拡大傾斜文字の拡大後のドットサイズを示し、例えば24×24ドットなどの値が入力される。傾斜角度22は水平方向を基準とした拡大傾斜文字の回転角度を示し、例えば、+45度、−45度などの値が入力される。角度の+/−は、水平方向に対して反時計回り/時計回りを示す。傾斜角度22は例えば5度単位で設定可能である。濃度23は間引き処理による拡大傾斜文字の濃度を示し、例えば1〜10のいずれかの値が入力される。濃度23の数値が小さくなると拡大傾斜文字の濃度が低下し、濃度23の数値が大きくなると拡大傾斜文字の濃度が増加する。 The setting screen 20 of FIG. 6 is displayed on the display unit 15 or the external terminal 2. On the setting screen 20, for example, the enlargement size 21, the inclination angle 22, the density 23, the deployment direction 24, the deployment angle 25, the deployment start position 26, and the deployment end position 27 are set. The enlarged size 21 indicates the dot size after the enlarged inclined character is enlarged, and a value such as 24 × 24 dots is input. The tilt angle 22 indicates the rotation angle of the enlarged tilt character with respect to the horizontal direction, and for example, a value such as +45 degrees or −45 degrees is input. The +/- angle indicates counterclockwise / clockwise with respect to the horizontal direction. The inclination angle 22 can be set in units of 5 degrees, for example. The density 23 indicates the density of the enlarged inclined characters by the thinning process, and for example, a value of 1 to 10 is input. When the numerical value of the density 23 becomes small, the density of the enlarged inclined character decreases, and when the numerical value of the density 23 becomes large, the density of the enlarged inclined character increases.

展開方向24は拡大傾斜文字の展開方向を示し、例えば、「左下→右上」、「左上→右下」、「右下→左上」、「右上→左下」などの方向が設定される。図7(A)及び(B)では、文字「1」〜「11」を印字領域に展開する際の形態を示している。展開方向24として「左下→右上」の方向が設定された場合には、図7(A)に示すように各拡大傾斜文字が用紙の左下から右上に印字されるようにバッファに展開される。図7(A)において、「1」〜「11」はそれぞれ拡大傾斜文字の1文字を示している。この場合、拡大傾斜文字は「1」から順番に「左下→右上」の方向に展開される。拡大傾斜文字が「1」から順番に「5」まで展開されると、拡大傾斜文字「6」は印字領域(用紙幅)を超えるため自動改行されて「1」の下に配置される。つまり、拡大傾斜文字が印字領域を超える場合には自動改行が実行され、印字展開位置が更新される。 The expansion direction 24 indicates the expansion direction of the enlarged tilt character, and for example, directions such as "lower left → upper right", "upper left → lower right", "lower right → upper left", and "upper right → lower left" are set. 7 (A) and 7 (B) show a form when the characters "1" to "11" are expanded in the print area. When the direction of "lower left → upper right" is set as the expansion direction 24, each enlarged tilt character is expanded in the buffer so as to be printed from the lower left to the upper right of the paper as shown in FIG. 7 (A). In FIG. 7A, "1" to "11" each indicate one character of the enlarged tilt character. In this case, the enlarged tilt characters are expanded in the direction of "lower left → upper right" in order from "1". When the enlarged tilt character is expanded from "1" to "5" in order, the enlarged tilt character "6" is automatically broken and placed under "1" because it exceeds the print area (paper width). That is, when the enlarged tilt character exceeds the print area, an automatic line feed is executed and the print expansion position is updated.

また、展開方向24として「左上→右下」の方向が設定された場合には、図7(B)に示すように拡大傾斜文字が左上から右下に印字されるようにバッファに展開される。図7(B)では拡大傾斜文字は「1」から順番に「左上→右下」の方向に展開される。拡大傾斜文字が「1」から順番に「5」まで展開されると、拡大傾斜文字「6」は用紙幅を超えるため自動改行されて「1」の下に配置される。 Further, when the direction of "upper left → lower right" is set as the expansion direction 24, the enlarged tilt character is expanded in the buffer so as to be printed from the upper left to the lower right as shown in FIG. 7 (B). .. In FIG. 7B, the enlarged tilt characters are expanded in the direction of “upper left → lower right” in order from “1”. When the enlarged tilt character is expanded from "1" to "5" in order, the enlarged tilt character "6" is automatically broken and placed under "1" because it exceeds the paper width.

展開角度25は、用紙幅方向に対する拡大傾斜文字の展開方向の角度を示す。展開角度25を+45度に設定すると、図7(A)に示すように拡大傾斜文字が右上がりに45度傾斜してバッファに展開される。展開角度25を−30度に設定すると、図7(B)に示すように拡大傾斜文字が右下がりに35度傾斜してバッファに展開される。 The development angle 25 indicates an angle in the development direction of the enlarged tilt character with respect to the paper width direction. When the expansion angle 25 is set to +45 degrees, the enlarged tilt character is tilted 45 degrees upward to the right and expanded in the buffer as shown in FIG. 7 (A). When the expansion angle 25 is set to -30 degrees, the enlarged tilt character is tilted 35 degrees downward to the right and expanded in the buffer as shown in FIG. 7 (B).

展開開始位置26は図7(A),(B)の拡大傾斜文字「1」の展開位置を示し、展開終了位置27は図7(A),(B)の拡大傾斜文字「11」の展開位置を示す。 The expansion start position 26 indicates the expansion position of the expansion inclination character “1” in FIGS. 7 (A) and 7 (B), and the expansion end position 27 indicates the expansion of the expansion inclination character “11” in FIGS. 7 (A) and 7 (B). Indicates the position.

以下、拡大傾斜処理について説明する。 Hereinafter, the expansion tilt processing will be described.

図8(A)は、16(行)×8(列)ドットで構成された文字の一例を示す図である。図8(B)は、図8(A)の文字を+45度回転させた例を示す図である。図8(C)は、図8(A)の文字を−45度回転させた例を示す図である。図8(B)及び図8(C)は、図8(A)の文字を回転させる際に用いられるメモリ12の領域を示している。文字を45度回転させることにより図8(B)及び図8(C)の文字パターンの印字サイズは拡大しており、拡大率は約1.41倍(√2倍)である。m(行)×n(列)ドットで構成された文字を45度回転して展開するのに必要な領域は(m+n−1)×(m+n−1)である。従って、図8(B)及び図8(C)の文字パターンを展開している領域は23×23である。 FIG. 8A is a diagram showing an example of a character composed of 16 (row) × 8 (column) dots. FIG. 8B is a diagram showing an example in which the characters of FIG. 8A are rotated by +45 degrees. FIG. 8C is a diagram showing an example in which the characters of FIG. 8A are rotated by −45 degrees. 8 (B) and 8 (C) show an area of memory 12 used when rotating the characters of FIG. 8 (A). By rotating the characters by 45 degrees, the print size of the character patterns of FIGS. 8 (B) and 8 (C) is enlarged, and the enlargement ratio is about 1.41 times (√2 times). The area required to rotate a character composed of m (row) × n (column) dots by 45 degrees and develop it is (m + n-1) × (m + n-1). Therefore, the area where the character patterns of FIGS. 8 (B) and 8 (C) are developed is 23 × 23.

図9(A)は、図8(A)の文字の1行目及び2行目のドットを示す図である。図9(B)は、図8(A)の文字の1行目のドットが+45度方向に展開された状態を示す図である。図9(C)は、図8(A)の文字の2行目のドットが+45度方向に展開された状態を示す図である。図9(D)は、+45度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。なお、図9(B)乃至図9(D)はそれぞれ図8(B)の一部分を示している。 9 (A) is a diagram showing dots on the first and second lines of the characters of FIG. 8 (A). FIG. 9B is a diagram showing a state in which the dots on the first line of the characters in FIG. 8A are expanded in the + 45 degree direction. FIG. 9C is a diagram showing a state in which the dots on the second line of the characters in FIG. 8A are expanded in the + 45 degree direction. FIG. 9D is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the + 45 degree direction. Note that FIGS. 9 (B) to 9 (D) show a part of FIG. 8 (B), respectively.

図9(A)において、「0x80」〜「0x01」は各ドットのアドレス、即ち文字パターンを格納しているフォントメモリ12aのアドレスを示す。文字を右上がり方向に展開する場合、コントローラ11は文字を構成するデータ(以下、文字データという)を1行目の「0x80」のドットから順番に右方向にフォントメモリ12aから読み出す。1行目の文字データの読み出しが終わると、2行目の「0x80」のドットから順番に右方向に文字データをフォントメモリ12aから読み出す。 In FIG. 9A, "0x80" to "0x01" indicate the address of each dot, that is, the address of the font memory 12a storing the character pattern. When the characters are expanded in the upward-sloping direction, the controller 11 reads the data constituting the characters (hereinafter referred to as character data) from the font memory 12a in the right direction in order from the dot of "0x80" on the first line. When the reading of the character data on the first line is completed, the character data is read from the font memory 12a in order from the dot of "0x80" on the second line in the right direction.

文字パターンを展開するバッファの書き込みアドレスの基準値(以下、基準書き込みアドレスという)は、文字パターンを展開するバッファの四隅のドットのうちいずれか1つのドットに対応するアドレスであり、図9(B)の例では左上のドット(P1)のアドレスである。ここで、文字パターンを展開するバッファは例えばメモリ12内の一部の領域である。読みだした文字パターンの列方向のドット数は8なので、文字パターンを+45度回転させる場合、コントローラ11は図9(B)に示すように、バッファの書き込みアドレスをP1から7ドット下げた8ドット目のP2に、図9(A)の1行目の「0x80」の文字データを書き込む。これにより、図9(B)の図示左下の領域に文字データが書き込まれる。次に、コントローラ11は、次ドットがP2に書き込まれたドットに対して+45度の位置に来るように、バッファの書き込みアドレスを1ドット上且つ1ドット右に移行するように更新する。つまり、次のドットの書き込みアドレスをP2からP3に更新する。そして、図9(A)の1行目の「0x40」の文字データをフォントメモリ12aから読み出し、P3に書き込む。 The reference value of the write address of the buffer that expands the character pattern (hereinafter referred to as the reference write address) is an address corresponding to any one of the dots at the four corners of the buffer that expands the character pattern, and is an address corresponding to FIG. 9 (B). ) Is the address of the upper left dot (P1). Here, the buffer for expanding the character pattern is, for example, a part of the area in the memory 12. Since the number of dots in the column direction of the read character pattern is 8, when the character pattern is rotated by +45 degrees, the controller 11 lowers the write address of the buffer by 7 dots from P1 to 8 dots as shown in FIG. 9 (B). The character data of "0x80" in the first line of FIG. 9A is written in P2 of the eye. As a result, character data is written in the lower left area of FIG. 9B. Next, the controller 11 updates the write address of the buffer to move one dot up and one dot to the right so that the next dot comes to the position of +45 degrees with respect to the dot written in P2. That is, the writing address of the next dot is updated from P2 to P3. Then, the character data of "0x40" on the first line of FIG. 9A is read from the font memory 12a and written to P3.

このように、コントローラ11は基準書き込みアドレスから7ドット下げたバッファのアドレスに文字データを書き込み、文字データを1ドット書き込む度に、書き込みアドレスを1ドット上及び1ドット右に移行し、且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット右に移行する。これにより、図9(B)のA方向に沿って+45度傾斜した1行目の8ドットがバッファに書き込まれる。 In this way, the controller 11 writes the character data to the buffer address that is 7 dots lower than the reference write address, and each time the character data is written by 1 dot, the write address is moved up by 1 dot and to the right by 1 dot, and the font memory. The read address of the character data from 12a is shifted to the right by 1 dot. As a result, 8 dots in the first line inclined by +45 degrees along the A direction in FIG. 9B are written in the buffer.

次に、コントローラ11は、基準書き込みアドレスをP1から1ドット下及び1ドット右に移行し、文字データの読み出しアドレスを2行目に移行する。そして、1行目と同様に、コントローラ11は、文字データを1ドット書き込む度に、書き込みアドレスを1ドット上及び1ドット右に移行し且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット右に移行する。これにより、図9(C)に示すように2行目を構成する8ドットがバッファに書き込まれる。 Next, the controller 11 shifts the reference write address from P1 to one dot down and one dot to the right, and shifts the character data read address to the second line. Then, as in the first line, each time the controller 11 writes the character data by 1 dot, the write address shifts to 1 dot up and 1 dot right, and the read address of the character data from the font memory 12a is 1 dot right. Move to. As a result, as shown in FIG. 9C, 8 dots constituting the second line are written to the buffer.

ここで、文字を回転又は傾斜させたことで、図9(C)の領域R1に示すように、回転後の文字データの1行目と2行目との間に新たなドットが生じる。新たなドットに対応する書き込みデータは図8(A)の文字パターンには存在しないため、拡大傾斜文字内に白ドットが発生し、拡大傾斜文字の見栄えが悪化する。 Here, by rotating or inclining the character, as shown in the area R1 of FIG. 9C, a new dot is generated between the first line and the second line of the rotated character data. Since the writing data corresponding to the new dots does not exist in the character pattern of FIG. 8A, white dots are generated in the enlarged inclined characters, and the appearance of the enlarged inclined characters deteriorates.

このため、コントローラ11は、拡大傾斜処理後の黒ドットによって上下左右が囲まれた白ドットを黒ドットに変換する。例えば、図9(C)のP8の白ドットはP2、P3、P5及びP6の黒ドットによって上下左右が囲まれているので、コントローラ11はP8の白ドットを図9(D)に示すように黒ドットに変換する。一方、図9(C)のP9の白ドットは、P3、P4、P6及びP7のドットによって上下左右が囲まれているが、P4及びP7のドットが白ドットなので、黒ドットに変換されない。 Therefore, the controller 11 converts the white dots surrounded by the black dots after the enlargement tilt processing into black dots. For example, since the white dots of P8 in FIG. 9 (C) are surrounded by the black dots of P2, P3, P5 and P6 on the top, bottom, left and right, the controller 11 shows the white dots of P8 as shown in FIG. 9 (D). Convert to black dots. On the other hand, the white dots of P9 in FIG. 9C are surrounded by the dots of P3, P4, P6 and P7 on the top, bottom, left and right, but since the dots of P4 and P7 are white dots, they are not converted into black dots.

コントローラ11は、3行目の文字データから最終行の文字データのバッファへの書き込みが終わるまで、上記処理を繰り返す。 The controller 11 repeats the above process until the writing of the character data of the third line to the buffer of the character data of the last line is completed.

以上の処理により、図8(B)に示すような、図8(A)の文字「H」を+45度回転させた拡大傾斜文字が作成される。 By the above processing, as shown in FIG. 8 (B), an enlarged tilt character obtained by rotating the character "H" in FIG. 8 (A) by +45 degrees is created.

次に、文字を+30度回転させる例を説明する。 Next, an example of rotating a character by +30 degrees will be described.

図10(A)は、図8(A)の文字の1行目のドットが+30度方向に展開される例を示す図である。図10(B)は、図8(A)の文字の2行目のドットが+30度方向に展開される例を示す図である。図10(C)は、+30度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。 FIG. 10A is a diagram showing an example in which the dots on the first line of the characters in FIG. 8A are expanded in the +30 degree direction. FIG. 10B is a diagram showing an example in which the dots on the second line of the characters in FIG. 8A are expanded in the +30 degree direction. FIG. 10C is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the + 30 degree direction.

コントローラ11が文字データを読み出す位置や順番については、図9(A)で説明した通りである。基準書き込みアドレスは、図10(A)の左上のドットP1のアドレスである。 The position and order in which the controller 11 reads the character data are as described with reference to FIG. 9A. The reference write address is the address of the dot P1 on the upper left of FIG. 10 (A).

まず、コントローラ11は、図10(A)に示すように書き込みアドレスをP1から4ドット下げる。文字を0度以上45度以下で回転させる場合に基準書き込みアドレスから下げるドット数は、以下の式で算出される。
N=W−(45−V)/5−1
ここで、Nは基準書き込みアドレスから下げるドット数を示す。Wは、文字を構成するドットの横サイズを示す。図8(A)の場合、Wは8である。Vは、回転角度を示す。この場合、Vは30である。
First, the controller 11 lowers the write address by 4 dots from P1 as shown in FIG. 10 (A). The number of dots to be reduced from the reference writing address when the character is rotated at 0 degrees or more and 45 degrees or less is calculated by the following formula.
N = W- (45-V) / 5-1
Here, N indicates the number of dots to be lowered from the reference writing address. W indicates the horizontal size of the dots constituting the character. In the case of FIG. 8A, W is 8. V indicates the rotation angle. In this case, V is 30.

図8(A)の文字を+30度回転させる場合は、Nは4になる(N=8−(45−30)/5−1=4)。また、図8(A)の文字を+45度回転させる場合は、Nは7になる(N=8−0−1=7)。尚、Nが0以下になる場合には、設定された回転ができない。 When the character of FIG. 8 (A) is rotated by +30 degrees, N becomes 4 (N = 8- (45-30) / 5-1 = 4). Further, when the character of FIG. 8A is rotated by +45 degrees, N becomes 7 (N = 8-0-1 = 7). If N is 0 or less, the set rotation cannot be performed.

コントローラ11は、書き込みアドレスをP1から4ドット下げた、図10(A)左下の領域であるP11に図9(A)の1行目の「0x80」の文字データを書き込む。次に、コントローラ11は、1ドット右に移行するように、次ドットの書き込みアドレスをP11からP12に更新する。そして、図9(A)の1行目の「0x40」の文字データをフォントメモリ12aから読み出し、P12に書き込む。 The controller 11 writes the character data of "0x80" in the first line of FIG. 9A to P11, which is the lower left area of FIG. 10A, which is the writing address lowered by 4 dots from P1. Next, the controller 11 updates the write address of the next dot from P11 to P12 so as to shift to the right by one dot. Then, the character data of "0x40" on the first line of FIG. 9A is read from the font memory 12a and written to P12.

次に、コントローラ11は、1ドット上及び1ドット右に移行するように、書き込みアドレスをP12からP13に更新する。そして、図9(A)の1行目の「0x20」の文字データをフォントメモリ12aから読み出し、P13に書き込む。次に、コントローラ11はバッファへの書き込み位置が1ドット右に移行するように、書き込みアドレスをP13からP14に更新する。そして、図9(A)の1行目の「0x10」の文字データを読み出し、P14に書き込む。次に、コントローラ11は、書き込みアドレスをP14から1ドット上及び1ドット右に移行したP15に更新する。そして、図9(A)の1行目の「0x08」の文字データをフォントメモリ12aから読み出し、P15に書き込む。 Next, the controller 11 updates the write address from P12 to P13 so as to move one dot up and one dot right. Then, the character data of "0x20" on the first line of FIG. 9A is read from the font memory 12a and written to P13. Next, the controller 11 updates the write address from P13 to P14 so that the write position to the buffer shifts to the right by one dot. Then, the character data of "0x10" in the first line of FIG. 9A is read and written in P14. Next, the controller 11 updates the write address to P15, which is shifted one dot up and one dot right from P14. Then, the character data of "0x08" on the first line of FIG. 9A is read from the font memory 12a and written to P15.

このように、コントローラ11は、基準書き込みアドレスから4ドット下げて文字データの書き込みを開始し、文字データを1ドットバッファに書き込む度に、書き込みアドレスを1ドット右に移行し、且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット右に移行する。さらに文字データを2ドットバッファに書き込む度に、書き込みアドレスを1ドット上に移行する。これにより、図10(A)のB方向に沿って+30度傾斜した文字データの1行目を構成するドットがバッファに書き込まれる。 In this way, the controller 11 starts writing the character data by lowering the reference write address by 4 dots, and each time the character data is written to the 1-dot buffer, the write address is shifted to the right by 1 dot, and the font memory 12a is used. The read address of the character data of is moved to the right by 1 dot. Furthermore, every time the character data is written to the 2-dot buffer, the write address is moved up by 1 dot. As a result, the dots forming the first line of the character data inclined by +30 degrees along the B direction in FIG. 10A are written to the buffer.

次に、コントローラ11は、基準書き込みアドレスをP1から1ドット下及び1ドット右に移行し、文字データの読み出しアドレスを2行目に移行する。そして、1行目と同様に、コントローラ11は、移行した基準書き込みアドレスから4ドット下げて2行目の「0x08」の文字データをバッファに書き込み、文字データを1ドットバッファに書き込む度に、書き込みアドレスを1ドット右に移行し、且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット右に移行する。さらに文字データを2ドット書き込む度に、書き込みアドレスを1ドット上に移行する。これにより、図10(B)に示すように文字データの2行目が書き込まれる。 Next, the controller 11 shifts the reference write address from P1 to one dot down and one dot to the right, and shifts the character data read address to the second line. Then, as in the first line, the controller 11 lowers the transferred reference write address by 4 dots, writes the character data of "0x08" on the second line to the buffer, and writes the character data each time it writes the character data to the 1-dot buffer. The address is moved to the right by 1 dot, and the reading address of the character data from the font memory 12a is moved to the right by 1 dot. Further, every time the character data is written by 2 dots, the writing address is moved up by 1 dot. As a result, the second line of the character data is written as shown in FIG. 10 (B).

ここで、文字を回転又は傾斜させたことで、図10(B)に示すように文字データの1行目と2行目との間に新たなドットが生じる。P51〜P53はこのように生じる新たなドットである。新たなドットに対応する書き込みデータは存在しないため、拡大傾斜文字内に白ドットが発生し、拡大傾斜文字の見栄えが悪化する。 Here, by rotating or tilting the character, a new dot is generated between the first line and the second line of the character data as shown in FIG. 10 (B). P51 to P53 are new dots generated in this way. Since there is no written data corresponding to the new dot, white dots are generated in the enlarged inclined character, and the appearance of the enlarged inclined character is deteriorated.

このため、コントローラ11は、拡大傾斜処理後の黒ドットによって上下左右が囲まれた白ドットを黒ドットに変換する。図10(B)のP53の白ドットはP16、P17、P26及びP27の黒ドットによって上下左右が囲まれているので、コントローラ11はP53の白ドットを図10(C)に示すように黒ドットに変換する。一方、図10(B)のP51の白ドットは、P13及びP23のドットが白ドットなので、黒ドットに変換されない。 Therefore, the controller 11 converts the white dots surrounded by the black dots after the enlargement tilt processing into black dots. Since the white dots of P53 in FIG. 10 (B) are surrounded by the black dots of P16, P17, P26 and P27 on the top, bottom, left and right, the controller 11 displays the white dots of P53 as black dots as shown in FIG. 10 (C). Convert to. On the other hand, the white dots on P51 in FIG. 10B are not converted into black dots because the dots on P13 and P23 are white dots.

コントローラ11は、文字の3行目のデータから最終行のデータの書き込みが終わるまで、上記処理を繰り返す。 The controller 11 repeats the above process from the data on the third line of the character to the completion of writing the data on the last line.

以上の処理により、図8(A)の文字「H」を+30度回転させた拡大傾斜文字が作成される。 By the above processing, an enlarged tilt character obtained by rotating the character "H" in FIG. 8 (A) by +30 degrees is created.

次に、文字を+60度回転させて拡大する例を説明する。 Next, an example of rotating a character by +60 degrees to enlarge it will be described.

図11(A)は、図8(A)の文字の1行目のドットが+60度方向に展開される例を示す図である。図11(B)は、図8(A)の文字の2行目のドットが+60度方向に展開される例を示す図である。図11(C)は、+60度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。 FIG. 11A is a diagram showing an example in which the dots on the first line of the characters in FIG. 8A are expanded in the +60 degree direction. FIG. 11B is a diagram showing an example in which the dots on the second line of the characters in FIG. 8A are expanded in the +60 degree direction. FIG. 11C is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the + 60 degree direction.

コントローラ11が文字データを読み出す位置や順番については、図9(A)で説明した通りである。基準書き込みアドレスは、図11(A)の左上のドットP1のアドレスである。 The position and order in which the controller 11 reads the character data are as described with reference to FIG. 9A. The reference write address is the address of the dot P1 on the upper left of FIG. 11 (A).

まず、コントローラ11は、図11(A)に示すように書き込みアドレスをP1から14ドット下げる。文字を45度より大きく90度以下で回転させる場合、基準書き込みアドレスから下げるドット数は以下の式で算出される。
N=W+(V−45)/5×2
ここで、Nは基準書き込みアドレスから下げるドット数を示す。Wは文字を構成するドットの横サイズを示す。図8(A)の文字の場合、Wは8である。Vは、回転角度を示す。この場合、Vは60である。図8(A)の文字を+60度回転させる場合は、Nは14になる(N=8+(60−45)/5×2=14)。
First, the controller 11 lowers the write address by 14 dots from P1 as shown in FIG. 11 (A). When the character is rotated by more than 45 degrees and 90 degrees or less, the number of dots to be lowered from the reference writing address is calculated by the following formula.
N = W + (V-45) / 5 × 2
Here, N indicates the number of dots to be lowered from the reference writing address. W indicates the horizontal size of the dots that make up the character. In the case of the character of FIG. 8 (A), W is 8. V indicates the rotation angle. In this case, V is 60. When the character of FIG. 8 (A) is rotated by +60 degrees, N becomes 14 (N = 8 + (60-45) / 5 × 2 = 14).

コントローラ11は、書き込みアドレスをP1から14ドット下げ、図11(A)の左下のP31に図9(A)の1行目の「0x80」の文字データを書き込む。次に、コントローラ11は、次ドットをP31から+60度の位置に書き込むために、書き込みアドレスを2ドット上及び1ドット右に移行するように、P31からP32に更新する。そして、図9(A)の1行目の「0x40」の文字データをフォントメモリ12aから読み出し、P32に書き込む。 The controller 11 lowers the write address by 14 dots from P1 and writes the character data of "0x80" in the first line of FIG. 9 (A) to P31 at the lower left of FIG. 11 (A). Next, the controller 11 updates from P31 to P32 so that the write address shifts 2 dots up and 1 dot to the right in order to write the next dot at a position of +60 degrees from P31. Then, the character data of "0x40" on the first line of FIG. 9A is read from the font memory 12a and written to P32.

このように、コントローラ11は、基準書き込みアドレスから14ドット下げて、文字データを1ドット書き込む度に書き込みアドレスを2ドット上及び1ドット右に移行し、且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット右に移行する。これにより、図11(A)のC方向に沿って+60度傾斜した文字データの1行目が書き込まれる。 In this way, the controller 11 lowers the reference write address by 14 dots, shifts the write address to 2 dots up and 1 dot to the right each time the character data is written by 1 dot, and reads the character data from the font memory 12a. Moves to the right by 1 dot. As a result, the first line of the character data inclined by +60 degrees along the C direction of FIG. 11A is written.

次に、コントローラ11は、基準書き込みアドレスをP1から1ドット下及び1ドット右に移行し、フォントメモリ12aからの文字データの読み出しアドレスを2行目に移行する。そして、1行目と同様に、コントローラ11は、移行後の基準書き込みアドレスから14ドット下げたP41に2行目の「0x80」の文字データを書き込み、文字データを1ドット書き込む度に、書き込みアドレスを2ドット上及び1ドット右に移行し且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット右に移行する。これにより、図11(B)に示すように文字データの2行目が書き込まれる。 Next, the controller 11 shifts the reference write address from P1 to one dot down and one dot to the right, and shifts the read address of the character data from the font memory 12a to the second line. Then, as in the first line, the controller 11 writes the character data of "0x80" on the second line to P41, which is 14 dots lower than the reference write address after migration, and each time the character data is written by one dot, the write address is written. Is moved up by 2 dots and to the right by 1 dot, and the reading address of the character data from the font memory 12a is moved to the right by 1 dot. As a result, the second line of the character data is written as shown in FIG. 11 (B).

ここで、文字を回転又は傾斜させたことで、図11(B)に示すように、文字データの1行目と2行目との間に新たなドットP61〜P64が生じる。 Here, by rotating or tilting the character, as shown in FIG. 11B, new dots P61 to P64 are generated between the first line and the second line of the character data.

コントローラ11は、拡大傾斜処理後の黒ドットによって上下左右が囲まれた白ドットを黒ドットに変換する。図11(B)のP61及びP62の2つの白ドットはP31、P32、P41及びP42の黒ドットによって上下左右が囲まれているので、コントローラ11はP61及びP62の2つの白ドットを図11(C)に示すように黒ドットに変換する。一方、図10(B)のP63及びP64の白ドットは、P33及びP43のドットが白ドットなので黒ドットに変換されない。 The controller 11 converts the white dots surrounded by the black dots after the enlargement tilt processing into black dots. Since the two white dots P61 and P62 in FIG. 11B are surrounded by the black dots P31, P32, P41 and P42 on the top, bottom, left and right, the controller 11 sets the two white dots P61 and P62 in FIG. 11 (B). Convert to black dots as shown in C). On the other hand, the white dots of P63 and P64 in FIG. 10B are not converted into black dots because the dots of P33 and P43 are white dots.

コントローラ11は、3行目の文字データから最終行の文字データの書き込みが終わるまで、上記処理を繰り返す。 The controller 11 repeats the above process from the character data on the third line to the completion of writing the character data on the last line.

以上の処理により、図8(A)の文字「H」を+60度回転させた拡大傾斜文字が作成される。 By the above processing, an enlarged tilt character obtained by rotating the character "H" in FIG. 8 (A) by +60 degrees is created.

次に、文字を−45度回転させる例を説明する。 Next, an example of rotating a character by −45 degrees will be described.

図12(A)は、図8(A)の文字の1行目及び2行目のドットを示す図である。図12(B)は、図8(A)の文字の1行目のドットが−45度方向に展開される例を示す図である。図12(C)は、図8(A)の文字の2行目のドットが−45度方向に展開される例を示す図である。図12(D)は、−45度方向に展開された1行目及び2行目のドット間に発生する新たなドットの例を示す図である。 12 (A) is a diagram showing dots on the first and second lines of the characters of FIG. 8 (A). FIG. 12B is a diagram showing an example in which the dots on the first line of the characters in FIG. 8A are expanded in the −45 degree direction. FIG. 12C is a diagram showing an example in which the dots on the second line of the characters in FIG. 8A are expanded in the −45 degree direction. FIG. 12D is a diagram showing an example of new dots generated between the dots of the first row and the second row developed in the −45 degree direction.

図12(A)において、「0x80」〜「0x01」は、フォントメモリ12aに格納されている各ドットのアドレスを示す。文字を左上がり方向に展開する場合、上記の例とは逆に、コントローラ11はフォントメモリ12aから文字データを1行目の右側に位置する「0x01」のドットから順番に左方向に読み出し、バッファに書き込む。1行目の「0x80」の文字データの読み出しが終わると、2行目の「0x01」のドットから順番に左方向に読み出す。 In FIG. 12A, "0x80" to "0x01" indicate the addresses of the dots stored in the font memory 12a. When expanding characters in the upward left direction, contrary to the above example, the controller 11 reads character data from the font memory 12a in order from the dot "0x01" located on the right side of the first line in the left direction, and buffers the characters. Write to. When the reading of the character data of "0x80" on the first line is completed, the character data of "0x01" on the second line is read in order from the dot to the left.

通常時のバッファへのドット書き込みを開始する書き込みアドレスは、図8(C)の左上のドットのアドレスである。文字データを−45回転させる場合、バッファへは文字の右側のデータから書き込みを行うため、最初に、コントローラ11はバッファへの書き込み開始のアドレスを図8(C)の領域の右上に、つまり左上のドットから22ドット右に移行する。m(行)×n(列)ドットで構成された文字を−45度回転して展開するのに必要な領域は(m+n−1)×(m+n−1)であるため、右に移行するドット数は、(m+n−1)−1である。図8(C)の場合、右に移行するドット数は、22(=(16+8−1)−1)となる。従って、図8(C)の右上のドットのアドレスに書き込み開始のアドレスが移行する。尚、書き込みアドレスを右に移行させるドット数は文字サイズに応じて変更される。 The write address at which the dot writing to the buffer in the normal state is started is the address of the upper left dot in FIG. 8C. When rotating the character data by -45, the data on the right side of the character is written to the buffer. Therefore, first, the controller 11 sets the address of the start of writing to the buffer to the upper right of the area of FIG. 8C, that is, the upper left. It shifts from the dot of 22 dots to the right of 22 dots. The area required to rotate a character composed of m (row) x n (column) dots by -45 degrees and expand it is (m + n-1) x (m + n-1), so the dots that move to the right. The number is (m + n-1) -1. In the case of FIG. 8C, the number of dots shifting to the right is 22 (= (16 + 8-1) -1). Therefore, the write start address shifts to the address of the dot on the upper right of FIG. 8C. The number of dots for shifting the writing address to the right is changed according to the character size.

そして、コントローラ11は、図8(C)の右上のドットのアドレス、つまり、図12(B)の右上のドットP70のアドレスを基準書き込みアドレスとする。コントローラ11は続いて、図12(B)に示すように書き込みアドレスをP70から7ドット下げて、P71に図12(A)の1行目の右端にある「0x01」の文字データを書き込む。これにより、図12(B)の右下に文字データが書き込まれる。次に、コントローラ11は、次ドットの書き込みアドレスを1ドット上且つ1ドット左に移行するように、P71からP72に更新する。そして、図12(A)の1行目の「0x01」の左隣の「0x02」の文字データをフォントメモリ12aから読み出し、P72に書き込む。 Then, the controller 11 uses the address of the upper right dot in FIG. 8C, that is, the address of the upper right dot P70 in FIG. 12B as the reference writing address. Subsequently, as shown in FIG. 12B, the controller 11 lowers the writing address by 7 dots from P70, and writes the character data of “0x01” at the right end of the first line of FIG. 12A to P71. As a result, character data is written in the lower right corner of FIG. 12B. Next, the controller 11 updates from P71 to P72 so that the writing address of the next dot shifts one dot up and one dot left. Then, the character data of "0x02" to the left of "0x01" on the first line of FIG. 12A is read from the font memory 12a and written to P72.

このように、コントローラ11は、基準書き込みアドレスから7ドット下げて、文字データを1ドット書き込む度に、書き込みアドレスを1ドット上及び1ドット左に移行し且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット左に移行する。これにより、図12(B)のD方向に沿って文字データの1行目が書き込まれる。 In this way, the controller 11 lowers the reference write address by 7 dots, shifts the write address to 1 dot up and 1 dot to the left each time the character data is written by 1 dot, and reads the character data from the font memory 12a. Moves to the left by 1 dot. As a result, the first line of the character data is written along the D direction of FIG. 12B.

次に、コントローラ11は、基準書き込みアドレスをP70から1ドット下及び1ドット左に移行し、フォントメモリ12aからの文字データの読み出しアドレスを2行目に移行する。そして、1行目と同様に、コントローラ11は、移行後の基準書き込みアドレスから7ドット下げて2行目のドット書き込みを開始し、文字データを1ドット書き込む度に、書き込みアドレスを1ドット上及び1ドット左に移行し且つフォントメモリ12aからの文字データの読み出しアドレスを1ドット左に移行する。これにより、図12(C)に示すように文字データの2行目が書き込まれる。 Next, the controller 11 shifts the reference write address one dot down and one dot left from P70, and shifts the read address of the character data from the font memory 12a to the second line. Then, as in the first line, the controller 11 lowers the reference writing address after migration by 7 dots and starts dot writing on the second line, and each time the character data is written by 1 dot, the writing address is moved up by 1 dot. The address for reading the character data from the font memory 12a is shifted to the left by 1 dot. As a result, the second line of the character data is written as shown in FIG. 12 (C).

ここで、文字を回転又は傾斜させたことで、図12(C)の領域R2に示すように、文字データの1行目と2行目との間に新たなドットが生じる。 Here, by rotating or tilting the character, as shown in the area R2 of FIG. 12C, a new dot is generated between the first line and the second line of the character data.

このため、コントローラ11は、拡大傾斜処理後の黒ドットによって上下左右が囲まれた白ドットを黒ドットに変換する。 Therefore, the controller 11 converts the white dots surrounded by the black dots after the enlargement tilt processing into black dots.

図12(C)のP78の白ドットはP72、P73、P75及びP76の黒ドットによって上下左右が囲まれているので、コントローラ11はP78の白ドットを図12(D)に示すように黒ドットに変換する。一方、図12(C)のP79の白ドットはP74及びP77のドットが白ドットなので、黒ドットに変換されない。 Since the white dots of P78 in FIG. 12 (C) are surrounded by the black dots of P72, P73, P75 and P76 on the top, bottom, left and right, the controller 11 displays the white dots of P78 as black dots as shown in FIG. 12 (D). Convert to. On the other hand, the white dots on P79 in FIG. 12C are not converted into black dots because the dots on P74 and P77 are white dots.

コントローラ11は、3行目のデータから最終行のデータの書き込みが終わるまで、上記処理を繰り返す。 The controller 11 repeats the above process from the data in the third row to the completion of writing the data in the last row.

以上の処理により、図8(C)に示すような、図8(A)の文字「H」を−45度回転させた拡大傾斜文字が作成される。 By the above processing, as shown in FIG. 8 (C), an enlarged tilt character obtained by rotating the character "H" in FIG. 8 (A) by −45 degrees is created.

図13は、文字を+30度、+45度又は+60度回転させる場合の拡大傾斜処理を示すフローチャートである。ここでは、文字が16(行)×8(列)ドットで構成されたことを前提としている。また、以下、拡大傾斜処理が行われた文字データを書き込む先のデータ領域は、拡大傾斜処理の開始前に初期化されているものとする。 FIG. 13 is a flowchart showing an enlargement / tilting process when the characters are rotated by +30 degrees, +45 degrees, or +60 degrees. Here, it is assumed that the character is composed of 16 (row) × 8 (column) dots. Further, hereinafter, it is assumed that the data area to which the character data to which the expansion / tilt processing has been performed is written is initialized before the start of the expansion / tilt processing.

まず、コントローラ11は基準書き込みアドレスからNドット下げた位置にバッファの書き込みアドレスを更新する(S1)。+30度の場合、Nドットは4ドットであり、+45度の場合、Nドットは7ドットであり、+60度の場合、Nドットは14ドットである。次に、コントローラ11は1ドット分の文字データをフォントメモリ12aから読み出し(S2)、読み出されたデータをS1で更新された書き込みアドレスに書き込む(S3)。尚、文字のサイズを拡大することによって文字を構成する線幅が増加する場合もあるので、文字の拡大サイズに応じて、フォントメモリ12aから読み出された1ドットを、S1で更新されたバッファの書き込みアドレスとこれに隣接する少なくとも1ドット分の書き込みアドレスとに同時に展開してもよい。 First, the controller 11 updates the write address of the buffer to a position N dots lower than the reference write address (S1). At +30 degrees, the N dots are 4 dots, at +45 degrees, the N dots are 7 dots, and at +60 degrees, the N dots are 14 dots. Next, the controller 11 reads character data for one dot from the font memory 12a (S2), and writes the read data to the write address updated in S1 (S3). Since the line width constituting the character may increase by enlarging the size of the character, one dot read from the font memory 12a is added to the buffer updated in S1 according to the enlarged size of the character. It may be expanded to the writing address of and the writing address of at least one dot adjacent to the writing address at the same time.

次に、コントローラ11はS3でデータが書き込まれたアドレスの左に隣接するアドレスに書き込まれているドットを囲む上下左右のドットが黒ドット(印字ドット)であるか否かを判定する(S4)。上下左右のドットが黒ドットである場合には(S4でYES)、コントローラ11はS3でデータが書き込まれたアドレスの左に隣接するアドレスに黒ドットデータを書き込み(S5)、回転角度に応じて書き込みアドレスを更新し、文字データの読み出しアドレスを1ドット右に移行する(S6)。+30度の回転の場合、S6の書き込みアドレスは、文字データを1ドット書き込む度に1ドット右に移行し、さらに文字データを2ドット書き込む度に1ドット上に移行する。+45度の回転の場合、S6の書き込みアドレスは、1ドット上及び1ドット右に移行する。+60度の回転の場合、S6の書き込みアドレスは、文字データを1ドット書き込む度に、2ドット上及び1ドット右に移行する。上下左右のドットの少なくともいずれか一つが黒ドットでない場合には(S4でNO)、そのままS6の処理に進む。 Next, the controller 11 determines whether or not the upper, lower, left, and right dots surrounding the dots written at the address adjacent to the left of the address where the data is written in S3 are black dots (print dots) (S4). .. If the top, bottom, left, and right dots are black dots (YES in S4), the controller 11 writes black dot data to the address adjacent to the left of the address in which the data was written in S3 (S5), depending on the rotation angle. The write address is updated, and the read address of the character data is moved to the right by 1 dot (S6). In the case of rotation of +30 degrees, the write address of S6 shifts to the right by 1 dot each time the character data is written by 1 dot, and further shifts to the top by 1 dot every time the character data is written by 2 dots. In the case of rotation of +45 degrees, the write address of S6 shifts one dot up and one dot right. In the case of rotation of +60 degrees, the write address of S6 shifts up by 2 dots and to the right by 1 dot each time the character data is written by 1 dot. If at least one of the upper, lower, left, and right dots is not a black dot (NO in S4), the process proceeds to S6 as it is.

コントローラ11は1行目の文字データのフォントメモリ12aからの読み出しが完了したか否かを判定する(S7)。1行目の文字データの読み出しが完了していない場合には(S7でNO)、S2の処理に戻り、その行の文字データをS6で更新された書き込みアドレスに書き込む。 The controller 11 determines whether or not the reading of the character data of the first line from the font memory 12a is completed (S7). If the reading of the character data of the first line is not completed (NO in S7), the process returns to the process of S2, and the character data of that line is written to the write address updated in S6.

一方、1行目の文字データのフォントメモリ12aからの読み出しが完了してバッファに展開された場合には(S7でYES)、コントローラ11は基準書き込みアドレスを1ドット下及び1ドット右に移行する(S8)。次いで、コントローラ11は全ての行の文字データの読み出しが完了したか否かを判定する(S9)。全ての行の文字データの読み出しが完了していない場合には(S9でNO)、コントローラ11はデータの読み出しアドレスを次行の先頭の読み出しアドレスに移行し(S10)、S1の処理に戻る。全ての行の文字データの読み出しが完了した場合には(S9でYES)、本処理を終了する。 On the other hand, when the reading of the character data of the first line from the font memory 12a is completed and expanded in the buffer (YES in S7), the controller 11 shifts the reference write address one dot down and one dot right to the right. (S8). Next, the controller 11 determines whether or not the reading of the character data of all the lines is completed (S9). If the reading of the character data of all the lines is not completed (NO in S9), the controller 11 shifts the reading address of the data to the reading address at the beginning of the next line (S10), and returns to the processing of S1. When the reading of the character data of all the lines is completed (YES in S9), this process ends.

図14は、文字を−45度回転させる場合の拡大傾斜処理を示すフローチャートである。前提条件は図13と同じである。 FIG. 14 is a flowchart showing an enlargement / tilting process when the characters are rotated by −45 degrees. The preconditions are the same as in FIG.

まず、コントローラ11は、初期状態の書き込みアドレスを22ドット右に移行し、移行後の書き込みアドレスを基準書き込みアドレスとして設定する(S30)。尚、書き込みアドレスを右に移行させるドット数は22ドットに限定されるものではなく、文字の高さや幅及び文字の回転角度に応じて変更される。 First, the controller 11 shifts the write address in the initial state to the right by 22 dots, and sets the write address after the shift as the reference write address (S30). The number of dots for shifting the writing address to the right is not limited to 22 dots, but is changed according to the height and width of the characters and the rotation angle of the characters.

コントローラ11は、基準書き込みアドレスから7ドット下げた位置にバッファの書き込みアドレスを更新する(S31)。次に、コントローラ11は1ドット分の文字データを読み出し(S32)、読み出された文字データを書き込みアドレスに書き込む(S33)。尚、文字のサイズを拡大することによって文字を構成する線幅が増加する場合もあるので、文字の拡大サイズに応じて、フォントメモリ12aから読み出された1ドットを、S31で更新されたバッファの書き込みアドレスとこれに隣接する少なくとも1ドット分の書き込みアドレスとに同時に展開してもよい。 The controller 11 updates the write address of the buffer to a position 7 dots lower than the reference write address (S31). Next, the controller 11 reads the character data for one dot (S32) and writes the read character data to the write address (S33). Since the line width constituting the character may increase by enlarging the size of the character, one dot read from the font memory 12a is added to the buffer updated in S31 according to the enlarged size of the character. It may be expanded to the writing address of and the writing address of at least one dot adjacent to the writing address at the same time.

次に、コントローラ11はS33で文字データが書き込まれたドットの右に隣接するドットを囲む上下左右のドットが黒ドットであるか否かを判定する(S34)。上下左右のドットが黒ドットである場合には(S34でYES)、S33で文字データが書き込まれたドットの右に隣接するドットの書き込みアドレスに黒ドットのデータを書き込み(S35)、コントローラ11は書き込みアドレスを1ドット上及び1ドット左に移行し且つ文字データの読み出しアドレスを1ドット左に移行する(S36)。上下左右のドットが黒ドットでない場合には(S34でNO)、そのままS36の処理に進む。 Next, the controller 11 determines in S33 whether or not the dots on the upper, lower, left, and right sides surrounding the dots adjacent to the right of the dots on which the character data is written are black dots (S34). When the top, bottom, left, and right dots are black dots (YES in S34), the black dot data is written to the writing address of the dot adjacent to the right of the dot in which the character data is written in S33 (S35), and the controller 11 The writing address is moved one dot up and one dot left, and the character data reading address is moved one dot left (S36). If the top, bottom, left, and right dots are not black dots (NO in S34), the process proceeds to S36 as it is.

コントローラ11は1行目の文字データのフォントメモリ12aからの読み出しが完了したか否かを判定する(S37)。1行目の文字データの読み出しが完了していない場合には(S37でNO)、S32の処理に戻り、その行の文字データをS36で更新された書き込みアドレスに書き込む。 The controller 11 determines whether or not the reading of the character data of the first line from the font memory 12a is completed (S37). If the reading of the character data of the first line is not completed (NO in S37), the process returns to the process of S32, and the character data of that line is written to the write address updated in S36.

1行目の文字データのフォントメモリ12aからの読み出しが完了してバッファに展開された場合には(S37でYES)、コントローラ11は基準書き込みアドレスを1ドット下及び1ドット左に移行する(S38)。次いで、コントローラ11は全ての行の文字データの読み出しが完了したか否かを判定する(S39)。全ての行の文字データの読み出しが完了していない場合には(S39でNO)、コントローラ11は文字データの読み出しアドレスを次行の先頭の読み出しアドレスに移行し(S40)、S31の処理に戻る。全ての行の文字データの読み出しが完了した場合には(S39でYES)、本処理を終了する。 When the reading of the character data of the first line from the font memory 12a is completed and expanded in the buffer (YES in S37), the controller 11 shifts the reference write address one dot down and one dot left (S38). ). Next, the controller 11 determines whether or not the reading of the character data of all the lines is completed (S39). If the reading of the character data of all the lines is not completed (NO in S39), the controller 11 shifts the reading address of the character data to the reading address of the beginning of the next line (S40), and returns to the processing of S31. .. When the reading of the character data of all the lines is completed (YES in S39), this process ends.

このように、コントローラ11は、設定された回転角度に基づいて、文字データを構成するドットに対応するデータを1ドット毎に展開して、文字データを傾斜させるので、イメージデータを作成せずに拡大傾斜文字を作成することができる。 In this way, the controller 11 expands the data corresponding to the dots constituting the character data for each dot based on the set rotation angle and inclines the character data, so that the character data is not created. You can create magnified tilted characters.

尚、図6の拡大サイズ21において拡大サイズが指定された場合には、コントローラ11は、フォントメモリ12aから読み出された1ドットを、バッファの書き込みアドレスとこれに隣接する少なくとも1ドット分の書き込みアドレスとに同時に展開し、文字の拡大処理を行う。その後、コントローラ11は図13又は図14の拡大傾斜処理を行う。 When the enlargement size is specified in the enlargement size 21 of FIG. 6, the controller 11 writes 1 dot read from the font memory 12a to the write address of the buffer and at least 1 dot adjacent thereto. Expands to the address at the same time and expands the characters. After that, the controller 11 performs the enlargement tilt processing of FIG. 13 or FIG.

尚、図9〜図12では、書き込み開始のアドレスを基準書き込みアドレスから所定のドット数下がった位置に設定しているが、書き込み開始のアドレスは「基準書き込みアドレス」に対して上、左又は右に設定することも可能である。例えば、図8(C)において、基準書き込みアドレスを右上端のドットに設定し、基準書き込みアドレスから7ドット左の位置にバッファの書き込みアドレスを更新し、書き込みアドレスを右下方向にシフトして文字の左上端のドットから展開しても、図8(C)のような展開が可能である。さらに、図8(C)において、基準書き込みアドレスを左下端のドットに設定し、基準書き込みアドレスから7ドット上の位置にバッファの書き込みアドレスを更新し、書き込みアドレスを右下方向にシフトして文字の左下端のドットから展開しても、図8(C)のような展開が可能である。 In FIGS. 9 to 12, the write start address is set at a position that is a predetermined number of dots lower than the reference write address, but the write start address is above, left, or right with respect to the "reference write address". It is also possible to set to. For example, in FIG. 8C, the reference write address is set to the upper right dot, the buffer write address is updated to a position 7 dots to the left of the reference write address, and the write address is shifted to the lower right to characterize. Even if it is expanded from the dot at the upper left end of, the expansion as shown in FIG. 8C is possible. Further, in FIG. 8C, the reference write address is set to the dot at the lower left, the write address of the buffer is updated to a position 7 dots above the reference write address, and the write address is shifted in the lower right direction to characterize. Even if it is expanded from the dot at the lower left end of, the expansion as shown in FIG. 8C is possible.

尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。 The present invention is not limited to the above-described embodiment, and can be variously modified and implemented within a range that does not deviate from the gist thereof.

1 プリンタ
11 コントローラ
12 メモリ
13 印字部
14 操作部
15 表示部
16 インターフェース(IF)
1 Printer 11 Controller 12 Memory 13 Printing unit 14 Operation unit 15 Display unit 16 Interface (IF)

Claims (5)

文字データの設定された回転角度に基づいて、前記文字データを展開する領域の四隅のドットのいずれか1つに対応する書き込みアドレスを基準書き込みアドレスとし、前記基準書き込みアドレスから所定のドット数だけ離れた位置に書き込みアドレスを更新する第1手段と、
前記設定された回転角度に基づいて、前記文字データを構成する各ドットに対応するデータを読み出し、当該各ドットに対応するデータを書き込む度に読み出しアドレスを更新する第2手段と、
前記第2手段で読み出された各ドットに対応するデータを前記書き込みアドレスに書き込み、前記各ドットに対応するデータを書き込む度に、前記書き込みアドレスを水平方向に対して前記設定された回転角度だけ傾けた位置に配置されるドットの書き込みアドレスに更新する第3手段と、
前記文字データを構成する1行分の全ドットの書き込みが完了した場合に、前記設定された回転角度に基づいて前記基準書き込みアドレスを所定量移行し、前記文字データの読み出しアドレスを次行に移行する第4手段と、
前記文字データの展開後の印字ドットによって囲まれた非印字ドットを印字ドットに変換する第5手段と、
を備えていることを特徴とする文字データ処理装置。
Based on the set rotation angle of the character data, the write address corresponding to any one of the dots at the four corners of the area where the character data is developed is set as the reference write address, and is separated from the reference write address by a predetermined number of dots. The first means to update the write address to the position
A second means of reading data corresponding to each dot constituting the character data based on the set rotation angle and updating the read address each time the data corresponding to each dot is written.
The data corresponding to each dot read by the second means is written to the writing address, and each time the data corresponding to each dot is written, the writing address is written by the set rotation angle with respect to the horizontal direction. A third means to update to the write address of the dot placed at the tilted position,
When the writing of all the dots for one line constituting the character data is completed, the reference writing address is transferred by a predetermined amount based on the set rotation angle, and the reading address of the character data is transferred to the next line. 4th means to do
A fifth means for converting non-printing dots surrounded by print dots after expansion of the character data into print dots, and
A character data processing device characterized by being equipped with.
前記設定された回転角度だけ傾けた文字データを背景としてテキストデータとドット毎に合成する合成手段を備えていることを特徴とする請求項1に記載の文字データ処理装置。 The character data processing apparatus according to claim 1, further comprising a compositing means for synthesizing text data and dot by dot against a background of character data tilted by the set rotation angle. 間引きパターンに従って前記設定された回転角度だけ傾けた文字データの印字ドットを間引く間引き手段を備えていることを特徴とする請求項1又は2に記載の文字データ処理装置。 The character data processing apparatus according to claim 1 or 2, further comprising a thinning means for thinning out print dots of character data tilted by the set rotation angle according to the thinning pattern. 前記設定された回転角度が水平方向を基準とした正の角度である場合には、前記第1手段は前記文字データを展開する領域の左上のドットに対応する書き込みアドレスを基準書き込みアドレスとし、前記第2手段は前記文字データを構成する左端のドットから右方向に順次各ドットに対応するデータを読み出し、前記第4手段は前記基準書き込みアドレスを1ドット下及び1ドット右に移行し、
前記設定された回転角度が水平方向を基準とした負の角度である場合には、前記第1手段は前記文字データを展開する領域の右上のドットに対応する書き込みアドレスを基準書き込みアドレスとし、前記第2手段は前記文字データを構成する右端のドットから左方向に順次各ドットに対応するデータを読み出し、前記第4手段は前記基準書き込みアドレスを1ドット下及び1ドット左に移行することを特徴とする請求項1乃至3のいずれか1項に記載の文字データ処理装置。
When the set rotation angle is a positive angle with respect to the horizontal direction, the first means sets the write address corresponding to the upper left dot of the area where the character data is developed as the reference write address. The second means reads the data corresponding to each dot sequentially from the leftmost dot constituting the character data to the right, and the fourth means shifts the reference writing address to one dot down and one dot to the right.
When the set rotation angle is a negative angle with respect to the horizontal direction, the first means sets the write address corresponding to the upper right dot of the area where the character data is developed as the reference write address. The second means reads data corresponding to each dot sequentially from the rightmost dot constituting the character data in the left direction, and the fourth means shifts the reference writing address one dot down and one dot left. The character data processing apparatus according to any one of claims 1 to 3.
コンピュータを、
文字データの設定された回転角度に基づいて、前記文字データを展開する領域の四隅のドットのいずれか1つに対応する書き込みアドレスを基準書き込みアドレスとし、前記基準書き込みアドレスから所定のドット数だけ離れた位置に書き込みアドレスを更新する第1手段、
前記設定された回転角度に基づいて、前記文字データを構成する各ドットに対応するデータを読み出し、当該各ドットに対応するデータを書き込む度に読み出しアドレスを更新する第2手段、
前記第2手段で読み出された各ドットに対応するデータを前記書き込みアドレスに書き込み、前記各ドットに対応するデータを書き込む度に、前記書き込みアドレスを水平方向に対して前記設定された回転角度だけ傾けた位置に配置されるドットの書き込みアドレスに更新する第3手段、
前記文字データを構成する1行分の全ドットの書き込みが完了した場合に、前記設定された回転角度に基づいて前記基準書き込みアドレスを所定量移行し、前記文字データの読み出しアドレスを次行に移行する第4手段、及び
前記文字データの展開後の印字ドットによって囲まれた非印字ドットを印字ドットに変換する第5手段
として機能させることを特徴とするプログラム。
Computer,
Based on the set rotation angle of the character data, the write address corresponding to any one of the dots at the four corners of the area where the character data is developed is set as the reference write address, and is separated from the reference write address by a predetermined number of dots. First means to update the write address to the location,
A second means of reading data corresponding to each dot constituting the character data based on the set rotation angle and updating the read address each time the data corresponding to each dot is written.
The data corresponding to each dot read by the second means is written to the writing address, and each time the data corresponding to each dot is written, the writing address is written by the set rotation angle with respect to the horizontal direction. Third means to update to the write address of the dot placed at the tilted position,
When the writing of all the dots for one line constituting the character data is completed, the reference writing address is transferred by a predetermined amount based on the set rotation angle, and the reading address of the character data is transferred to the next line. A program characterized by functioning as a fourth means for converting non-printed dots surrounded by printed dots after expansion of the character data into printed dots.
JP2017193760A 2017-10-03 2017-10-03 Character data processing device and program Active JP6933544B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017193760A JP6933544B2 (en) 2017-10-03 2017-10-03 Character data processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017193760A JP6933544B2 (en) 2017-10-03 2017-10-03 Character data processing device and program

Publications (2)

Publication Number Publication Date
JP2019064205A JP2019064205A (en) 2019-04-25
JP6933544B2 true JP6933544B2 (en) 2021-09-08

Family

ID=66337399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017193760A Active JP6933544B2 (en) 2017-10-03 2017-10-03 Character data processing device and program

Country Status (1)

Country Link
JP (1) JP6933544B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5966764A (en) * 1982-10-08 1984-04-16 Hitachi Ltd Picture rotating system
JPH0661960B2 (en) * 1984-04-28 1994-08-17 株式会社東芝 Dot interpolation control device
JPH09258714A (en) * 1996-03-19 1997-10-03 Fujitsu Ltd Font rotating circuit and font rotation control device
JP3775463B2 (en) * 1999-04-02 2006-05-17 セイコーエプソン株式会社 Printing control method, printing control apparatus, and recording medium
JP3314080B2 (en) * 2000-11-06 2002-08-12 キヤノン株式会社 Character processing device and character processing method
US8089494B2 (en) * 2008-10-13 2012-01-03 Hewlett-Packard Development Company, L.P. Image rotation

Also Published As

Publication number Publication date
JP2019064205A (en) 2019-04-25

Similar Documents

Publication Publication Date Title
US5947619A (en) Tape printer capable of printing a background and text on the tape
JP6933544B2 (en) Character data processing device and program
JP4785457B2 (en) Display control apparatus and display control method
JP2012249172A (en) Image processing apparatus, image processing program and memory medium
US20050039120A1 (en) Combining drawing system, combining drawing method, and recording medium
JP4650303B2 (en) Image processing apparatus, image processing method, and image processing program
JPH05181454A (en) Display system and its control circuit, and display device
JPH07285245A (en) Video printer
JP3443243B2 (en) Character output device
JP4903672B2 (en) Image processing apparatus and program
JPH0113117B2 (en)
JP3184639B2 (en) Image processing apparatus and method
JPS62219180A (en) Pattern generating device
JP2901860B2 (en) How to generate character data
JP3632294B2 (en) Bar code output device
JP6387594B2 (en) Printing apparatus, printing apparatus control method, and program
JP3049656B2 (en) Abstract pattern design simulation system for printing building materials
JP3109727B2 (en) Character processing method and character processing device
JPH0728790A (en) Method and device for document processing
JP4623945B2 (en) Printer
JPH0573563A (en) Document processor
JP4760997B2 (en) Image processing apparatus, image processing method, and image processing program
JPS62182832A (en) Document printing device
JP2020174316A (en) Control apparatus and image processing method
JP2653911B2 (en) Document processing device with banner printing function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200803

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210811

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20210817

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210819

R150 Certificate of patent or registration of utility model

Ref document number: 6933544

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150