JP6597510B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP6597510B2
JP6597510B2 JP2016151961A JP2016151961A JP6597510B2 JP 6597510 B2 JP6597510 B2 JP 6597510B2 JP 2016151961 A JP2016151961 A JP 2016151961A JP 2016151961 A JP2016151961 A JP 2016151961A JP 6597510 B2 JP6597510 B2 JP 6597510B2
Authority
JP
Japan
Prior art keywords
data
character string
font
image
substitute
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
JP2016151961A
Other languages
Japanese (ja)
Other versions
JP2018022972A (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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2016151961A priority Critical patent/JP6597510B2/en
Publication of JP2018022972A publication Critical patent/JP2018022972A/en
Application granted granted Critical
Publication of JP6597510B2 publication Critical patent/JP6597510B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、画像処理装置および画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method.

一般に、プリンターおよび複合機などの画像処理装置は、端末装置から印刷ジョブデータを受信し、前記印刷ジョブデータに基づく画像をシートに形成する。前記印刷ジョブデータが、文字列の描画に用いられるべき指定フォントの情報を含む場合がある。この場合、前記画像処理装置は、予めフォントデータを記憶する不揮発性の記憶部から、前記指定フォントの情報に対応する指定フォントデータを取得する。   In general, an image processing apparatus such as a printer or a multifunction peripheral receives print job data from a terminal device, and forms an image based on the print job data on a sheet. In some cases, the print job data includes information on a designated font to be used for drawing a character string. In this case, the image processing apparatus acquires designated font data corresponding to the information of the designated font from a nonvolatile storage unit that stores font data in advance.

また、前記指定フォントデータが前記記憶部に存在しない場合がある。この場合、前記画像処理装置が、前記記憶部などから代用フォントデータを取得し、前記代用フォントデータを用いて文字列の画像データを生成することが知られている(例えば、特許文献1参照)。   The designated font data may not exist in the storage unit. In this case, it is known that the image processing apparatus acquires substitute font data from the storage unit or the like, and generates character string image data using the substitute font data (see, for example, Patent Document 1). .

さらに、前記画像処理装置が、前記代用フォントデータとともにフォント幅の情報を取得し、前記フォント幅の情報に従って前記代用フォントデータに基づく文字列画像を生成することも知られている(例えば、特許文献1参照)。これにより、前記代用フォントデータが用いられる場合に、前記文字列画像が、前記指定フォントデータが用いられる場合の文字列の描画領域からはみ出すことが回避される。   Further, it is also known that the image processing apparatus acquires font width information together with the substitute font data, and generates a character string image based on the substitute font data according to the font width information (for example, Patent Documents). 1). Thereby, when the substitute font data is used, the character string image is prevented from protruding from the drawing area of the character string when the designated font data is used.

特開2012−168953号公報JP 2012-168953 A

ところで、前記画像処理装置が、前記印刷ジョブデータにおいて指定される可能性がある多種のフォントデータのサイズを表すサイズ情報を取得可能であれば、そのサイズ情報は、前記代用フォントデータに基づく前記文字列画像のサイズを調整するために有効である。   By the way, if the image processing apparatus can acquire size information indicating the sizes of various types of font data that may be specified in the print job data, the size information is the character based on the substitute font data. This is effective for adjusting the size of the column image.

しかしながら、前記画像処理装置のコストの制約または前記画像処理装置が接続される通信ネットワークの制約などの理由により、多種のフォントデータに対応する前記サイズ情報を前記画像処理装置が常に取得可能なデータとして予め用意することが難しい場合がある。   However, the size information corresponding to various font data can be obtained as data that the image processing apparatus can always acquire due to the cost limitation of the image processing apparatus or the communication network to which the image processing apparatus is connected. It may be difficult to prepare in advance.

例えば、前記画像処理装置の内蔵ストレージのコストの制約により、前記内蔵ストレージが、多種のフォントデータについての前記サイズ情報を記憶可能な容量を有さない場合がある。また、前記画像処理装置が接続可能なインターネットの通信品質が良くない場合、前記画像処理装置が前記インターネット上のサーバーから前記サイズ情報を取得することは好ましくない。   For example, the built-in storage may not have a capacity capable of storing the size information for various types of font data due to restrictions on the cost of the built-in storage of the image processing apparatus. Further, when the communication quality of the Internet to which the image processing apparatus can be connected is not good, it is not preferable that the image processing apparatus acquires the size information from a server on the Internet.

本発明の目的は、多種のフォントデータのサイズの情報を用いることなく、代用フォントデータを用いる文字列画像が、指定フォントデータが用いられる場合の文字列の描画領域からはみ出すことを防止できる画像処理装置および画像処理方法を提供することにある。   An object of the present invention is to perform image processing capable of preventing a character string image using substitute font data from protruding from a character string drawing area when designated font data is used, without using information on the sizes of various font data. An apparatus and an image processing method are provided.

本発明の一の局面に係る画像処理装置は、描画ジョブデータ取得部と、フォントデータ取得部と、文字列ラスタライズ部と、縮小率算出部と、描画用データ生成部とを備える。前記描画ジョブデータ取得部は、描画文字列を含む描画オブジェクトのページ毎の描画内容情報および描画位置情報を含む描画ジョブデータを取得する。前記フォントデータ取得部は、前記描画ジョブデータの前記描画内容情報が前記描画文字列についての文字コード、指定フォントおよび指定フォントサイズを表す文字列指定情報を含む場合において、前記指定フォントの情報が予めフォントデータを記憶する不揮発性のフォント記憶部に存在するデータに対応する既存フォントの情報であれば、前記文字列指定情報の前記文字コードおよび前記指定フォントに対応する指定フォントデータを前記フォント記憶部から取得し、前記指定フォントの情報が前記既存フォントの情報でなければ、前記フォント記憶部から前記指定フォントデータに代わる代用フォントデータを取得する。前記文字列ラスタライズ部は、前記指定フォントデータが前記フォント記憶部から取得された場合に、前記指定フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである指定文字列ラスタデータを生成し、前記代用フォントデータが前記フォント記憶部から取得された場合に、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである代用文字列ラスタデータを生成する。前記縮小率算出部は、前記指定文字列ラスタデータが表す画像である指定文字列画像と、前記代用文字列ラスタデータが表す画像である代用文字列画像と、その他の前記描画オブジェクトに関する前記描画内容情報により特定されるその他オブジェクト画像とが前記描画位置情報に従って配列された画像において、前記代用文字列画像が、ページの有効領域から前記指定文字列画像および前記その他オブジェクト画像が占める優先領域を除いた残りの許容領域からはみ出す場合に、前記代用文字列画像を前記許容領域内に収める縮小率を算出する。前記描画用データ生成部は、前記指定文字列画像と、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像が前記縮小率に従ってサイズ調整された後の画像であるリサイズ文字列画像と、前記その他オブジェクト画像とが前記描画位置情報に従って配列された画像を表す描画用ラスタデータを生成する。   An image processing apparatus according to an aspect of the present invention includes a drawing job data acquisition unit, a font data acquisition unit, a character string rasterization unit, a reduction rate calculation unit, and a drawing data generation unit. The drawing job data acquisition unit acquires drawing job data including drawing content information and drawing position information for each page of a drawing object including a drawing character string. The font data acquisition unit, when the drawing content information of the drawing job data includes character string designation information representing a character code, a designated font, and a designated font size for the drawing character string, If it is information of an existing font corresponding to data existing in a non-volatile font storage unit that stores font data, the font storage unit stores the character code of the character string specification information and the specified font data corresponding to the specified font. If the designated font information is not the existing font information, substitute font data replacing the designated font data is obtained from the font storage unit. When the designated font data is acquired from the font storage unit, the character string rasterizing unit obtains designated character string raster data that is raster data of a character string image specified by the designated font data and the designated font size. When the substitute font data is acquired from the font storage unit, substitute character string raster data which is raster data of a character string image specified by the substitute font data and the designated font size is generated. The reduction ratio calculation unit includes a designated character string image that is an image represented by the designated character string raster data, a substitute character string image that is an image represented by the substitute character string raster data, and the drawing contents related to the other drawing objects. In an image in which other object images specified by information are arranged according to the drawing position information, the substitute character string image is obtained by removing a priority area occupied by the designated character string image and the other object image from an effective area of a page. A reduction ratio for fitting the substitute character string image into the allowable area when the remaining allowable area is exceeded is calculated. The drawing data generation unit includes the designated character string image, a resized character string image that is an image after the character string image specified by the substitute font data and the designated font size is adjusted according to the reduction ratio, and Then, rendering raster data representing an image in which the other object images are arranged according to the rendering position information is generated.

本発明の他の局面に係る画像処理方法は、以下に示される複数の工程を含む。前記複数の工程の1つは、描画文字列を含む描画オブジェクトのページ毎の描画内容情報および描画位置情報を含む描画ジョブデータを取得する工程である。前記複数の工程の他の1つは、前記描画ジョブデータの前記描画内容情報が前記描画文字列についての文字コード、指定フォントおよび指定フォントサイズを表す文字列指定情報を含む場合において、前記指定フォントの情報が予めフォントデータを記憶する不揮発性のフォント記憶部に存在するデータに対応する既存フォントの情報であれば、前記文字列指定情報の前記文字コードおよび前記指定フォントに対応する指定フォントデータを前記フォント記憶部から取得し、前記指定フォントの情報が前記既存フォントの情報でなければ、前記フォント記憶部から前記指定フォントデータに代わる代用フォントデータを取得する工程である。前記複数の工程の他の1つは、前記指定フォントデータが前記フォント記憶部から取得された場合に、前記指定フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである指定文字列ラスタデータを生成し、前記代用フォントデータが前記フォント記憶部から取得された場合に、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである代用文字列ラスタデータを生成する工程である。前記複数の工程の他の1つは、前記指定文字列ラスタデータが表す画像である指定文字列画像と、前記代用文字列ラスタデータが表す画像である代用文字列画像と、その他の前記描画オブジェクトに関する前記描画内容情報により特定されるその他オブジェクト画像とが前記描画位置情報に従って配列された画像において、前記代用文字列画像が、ページの有効領域から前記指定文字列画像および前記その他オブジェクト画像が占める優先領域を除いた残りの許容領域からはみ出す場合に、前記代用文字列画像を前記許容領域内に収める縮小率を算出する工程である。前記複数の工程の他の1つは、前記指定文字列画像と、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像が前記縮小率に従ってサイズ調整された後の画像であるリサイズ文字列画像と、前記その他オブジェクト画像とが前記描画位置情報に従って配列された画像を表す描画用ラスタデータを生成する工程である。   An image processing method according to another aspect of the present invention includes a plurality of steps shown below. One of the plurality of steps is a step of obtaining drawing job data including drawing content information and drawing position information for each page of a drawing object including a drawing character string. Another one of the plurality of steps includes the case where the drawing content information of the drawing job data includes character string designation information indicating a character code, a designated font, and a designated font size for the drawing character string. Is the information of the existing font corresponding to the data existing in the non-volatile font storage unit that stores the font data in advance, the character code of the character string designation information and the designated font data corresponding to the designated font If it is obtained from the font storage unit and the information on the designated font is not information on the existing font, it is a step of obtaining substitute font data in place of the designated font data from the font storage unit. Another one of the plurality of steps includes a designated character that is raster data of a character string image specified by the designated font data and the designated font size when the designated font data is acquired from the font storage unit. When column raster data is generated and the substitute font data is acquired from the font storage unit, substitute character string raster data that is raster data of a character string image specified by the substitute font data and the designated font size is obtained. It is a process of generating. Another one of the plurality of steps includes a designated character string image that is an image represented by the designated character string raster data, a substitute character string image that is an image represented by the substitute character string raster data, and the other drawing objects. In the image in which the other object image specified by the drawing content information is arranged according to the drawing position information, the substitute character string image is preferentially occupied by the designated character string image and the other object image from the effective area of the page. This is a step of calculating a reduction ratio that fits the substitute character string image in the allowable area when it protrudes from the remaining allowable area excluding the area. Another one of the plurality of steps is a resized character that is an image after the character string image specified by the designated character string image, the substitute font data, and the designated font size is adjusted according to the reduction ratio. In this step, drawing raster data representing an image in which a row image and the other object image are arranged according to the drawing position information is generated.

本発明によれば、多種のフォントデータのサイズの情報を用いることなく、代用フォントデータを用いる文字列画像が、指定フォントデータが用いられる場合の文字列の描画領域からはみ出すことを防止できる画像処理装置および画像処理方法を提供することが可能になる。   According to the present invention, image processing that can prevent a character string image using substitute font data from protruding from a character string drawing area when designated font data is used without using information on the sizes of various font data. An apparatus and an image processing method can be provided.

図1は、第1実施形態に係る画像処理装置のブロック図である。FIG. 1 is a block diagram of an image processing apparatus according to the first embodiment. 図2は、描画ジョブデータの一部のデータ構成を示す図である。FIG. 2 is a diagram showing a data structure of a part of the drawing job data. 図3は、第1実施形態に係る画像処理装置における描画用データ生成処理の手順の一例を示すフローチャートである。FIG. 3 is a flowchart illustrating an example of a drawing data generation process procedure in the image processing apparatus according to the first embodiment. 図4は、許容領域からはみ出した代用フォントの文字列画像を含む画像の一例の一部を表す図である。FIG. 4 is a diagram illustrating a part of an example of an image including a character string image of a substitute font that protrudes from the allowable area. 図5は、許容領域内に収まるサイズに調整された代用フォントの文字列画像を含む画像の一例の一部を表す図である。FIG. 5 is a diagram illustrating a part of an example of an image including a character string image of a substitute font adjusted to a size that fits in the allowable area. 図6は、第2実施形態に係る画像処理装置のブロック図である。FIG. 6 is a block diagram of an image processing apparatus according to the second embodiment. 図7は、第2実施形態に係る画像処理装置における描画用データ生成処理の手順の一例を示すフローチャートである。FIG. 7 is a flowchart illustrating an example of a drawing data generation process in the image processing apparatus according to the second embodiment. 図8は、第2実施形態に係る画像処理装置におけるサイズ調整処理の手順の一例を示すフローチャートである。FIG. 8 is a flowchart illustrating an example of the procedure of the size adjustment process in the image processing apparatus according to the second embodiment.

以下、添付図面を参照しながら、本発明の実施形態について説明する。なお、以下の実施形態は、本発明を具体化した一例であって、本発明の技術的範囲を限定する性格を有さない。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In addition, the following embodiment is an example which actualized this invention, Comprising: It does not have the character which limits the technical scope of this invention.

[第1実施形態:画像処理装置10の構成]
第1実施形態に係る画像処理装置10は、端末装置8から印刷ジョブデータJ1またはFAXジョブデータJ2などの描画ジョブデータJ0を受信し、受信した描画ジョブデータJ0から描画用ラスタデータD0を生成する描画用データ生成処理を実行可能な装置である。
First Embodiment: Configuration of Image Processing Device 10
The image processing apparatus 10 according to the first embodiment receives drawing job data J0 such as print job data J1 or FAX job data J2 from the terminal device 8, and generates drawing raster data D0 from the received drawing job data J0. It is an apparatus capable of executing drawing data generation processing.

例えば、画像処理装置10は、プリンター、複写機、ファクシミリ装置または複合機などである。端末装置8は、パーソナルコンピューターまたは携帯型情報端末などの情報処理装置である。   For example, the image processing apparatus 10 is a printer, a copier, a facsimile machine, a multifunction machine, or the like. The terminal device 8 is an information processing device such as a personal computer or a portable information terminal.

図1に示されるように、画像処理装置10および端末装置8は、ネットワーク80を通じて相互に通信可能である。例えば、ネットワーク80は、ローカルエリアネットワークである。なお、図1において、端末装置8およびネットワーク80は仮想線(二点鎖線)で示されている。   As shown in FIG. 1, the image processing device 10 and the terminal device 8 can communicate with each other through a network 80. For example, the network 80 is a local area network. In FIG. 1, the terminal device 8 and the network 80 are indicated by virtual lines (two-dot chain lines).

画像処理装置10は、制御部1、画像形成部2,内蔵ストレージ3、操作表示部4および通信部5などを備える。操作表示部4は、操作部および表示部を含むユーザーインターフェイスである。   The image processing apparatus 10 includes a control unit 1, an image forming unit 2, a built-in storage 3, an operation display unit 4, a communication unit 5, and the like. The operation display unit 4 is a user interface including an operation unit and a display unit.

通信部5は、ネットワーク80を通じて端末装置8との間でデータの受け渡しを行う通信インターフェイスである。制御部1は、端末装置8との間のデータの送信および受信の全てを通信部5を通じて行う。   The communication unit 5 is a communication interface that exchanges data with the terminal device 8 through the network 80. The control unit 1 performs all transmission and reception of data with the terminal device 8 through the communication unit 5.

画像形成部2は、電子写真方式またはインクジェット方式などの予め定められた方式でシート9に画像を形成する装置である。   The image forming unit 2 is an apparatus that forms an image on the sheet 9 by a predetermined method such as an electrophotographic method or an ink jet method.

内蔵ストレージ3は、コンピューター読み取り可能な不揮発性のデータ記憶装置である。内蔵ストレージ3は、プログラムおよび各種のデータを記憶可能である。例えば、ハードディスクドライブおよびSSD(Solid State Drive)の一方または両方の組合せが、内蔵ストレージ3として採用される。   The built-in storage 3 is a computer-readable non-volatile data storage device. The built-in storage 3 can store programs and various data. For example, one or a combination of a hard disk drive and an SSD (Solid State Drive) is employed as the internal storage 3.

内蔵ストレージ3は、少なくとも1種類のフォントデータD1を予め記憶している。本実施形態において、フォントデータD1は、ベクタデータである。   The built-in storage 3 stores at least one type of font data D1 in advance. In the present embodiment, the font data D1 is vector data.

例えば、フォントデータD1が、1種類以上の明朝体フォントのデータと、1種類以上のゴシック体フォントのデータとを含むことが考えられる。なお、内蔵ストレージ3は、予めフォントデータD1を記憶する不揮発性のフォント記憶部の一例である。   For example, it is conceivable that the font data D1 includes one or more types of Mincho font data and one or more types of Gothic font data. The built-in storage 3 is an example of a non-volatile font storage unit that stores font data D1 in advance.

制御部1は、各種の演算、データ処理および画像処理装置10が備える各種の電子機器の制御を実行する。制御部1は、バスを通じて内蔵ストレージ3および通信部5との間でデータおよび制御信号の受け渡しが可能である。   The control unit 1 executes various calculations, data processing, and various electronic devices included in the image processing apparatus 10. The control unit 1 can exchange data and control signals between the internal storage 3 and the communication unit 5 through the bus.

制御部1は、画像形成部2の制御を伴う各種のジョブを実行するジョブ制御部11と、前記ジョブの実行の過程において画像データの加工および生成などの処理を実行する画像処理部12とを含む。さらに、制御部1は、操作表示部4を制御するUI(User Interface)制御部13も含む。   The control unit 1 includes a job control unit 11 that executes various jobs accompanying the control of the image forming unit 2, and an image processing unit 12 that executes processing such as processing and generation of image data in the course of executing the job. Including. In addition, the control unit 1 includes a UI (User Interface) control unit 13 that controls the operation display unit 4.

例えば、制御部1は、予め内蔵ストレージ3などに記憶されたプログラムを実行するプロセッサーによって実現される。   For example, the control unit 1 is realized by a processor that executes a program stored in advance in the internal storage 3 or the like.

ジョブ制御部11は、印刷制御部11AおよびFAX制御部11Bなどを含む。印刷制御部11Aは、端末装置8から通信部5を通じて印刷ジョブデータJ1を受信し、受信した印刷ジョブデータJ1に対応する画像をシート9に形成する処理を画像形成部2に実行させる印刷ジョブを実行する。   The job control unit 11 includes a print control unit 11A and a FAX control unit 11B. The print control unit 11A receives print job data J1 from the terminal device 8 through the communication unit 5, and executes a print job that causes the image forming unit 2 to execute processing for forming an image corresponding to the received print job data J1 on the sheet 9. Execute.

前記印刷ジョブにおいて、画像処理部12は、印刷ジョブデータJ1から描画用ラスタデータD0を生成する処理を実行する。印刷制御部11Aは、画像処理部12によって生成された印刷用ラスタデータの内容に応じて画像形成部2を制御する。   In the print job, the image processing unit 12 executes processing for generating drawing raster data D0 from the print job data J1. The print control unit 11 </ b> A controls the image forming unit 2 in accordance with the contents of the print raster data generated by the image processing unit 12.

FAX制御部11Bは、ネットワークFAXジョブを実行する。前記ネットワークFAXジョブは、送信元の端末装置8からFAXジョブデータJ2を受信し、そのFAXジョブデータJ2に対応する受信FAXデータを内蔵ストレージ3に保存する処理を含む。さらに、前記ネットワークFAXジョブは、FAXジョブデータJ2に含まれる宛先情報が表す送信先の端末装置8にFAX受信通知を送信し、前記送信先の端末装置8からの要求に応じて、通信部5を通じて前記受信FAXデータを送信する処理を含む。   The FAX control unit 11B executes a network FAX job. The network FAX job includes a process of receiving FAX job data J2 from the terminal device 8 that is the transmission source, and storing the received FAX data corresponding to the FAX job data J2 in the internal storage 3. Further, the network FAX job transmits a FAX reception notification to the destination terminal device 8 indicated by the destination information included in the FAX job data J2, and in response to a request from the destination terminal device 8, the communication unit 5 Through which the received FAX data is transmitted.

前記FAXジョブにおいて、画像処理部12は、FAXジョブデータJ2から描画用ラスタデータD0を生成する処理を実行する。FAXジョブデータJ2から生成された描画用ラスタデータD0は、前記受信FAXデータに含められる。端末装置8は、前記受信FAXデータに含まれる描画用ラスタデータD0に基づく画像を端末装置8の画面に表示させることができる。   In the FAX job, the image processing unit 12 executes processing for generating drawing raster data D0 from the FAX job data J2. The drawing raster data D0 generated from the FAX job data J2 is included in the received FAX data. The terminal device 8 can display an image based on the drawing raster data D0 included in the received FAX data on the screen of the terminal device 8.

印刷ジョブデータJ1およびFAXジョブデータJ2などの描画ジョブデータJ0が、文字列の描画に用いられるべき指定フォントの情報を含む場合がある。例えば、図2に示されるように、描画ジョブデータJ0が、ページ毎の指定文字列描画情報J01およびオブジェクト描画情報J02とを含む場合がある。   In some cases, drawing job data J0 such as print job data J1 and FAX job data J2 includes information on a designated font to be used for drawing a character string. For example, as shown in FIG. 2, the drawing job data J0 may include designated character string drawing information J01 and object drawing information J02 for each page.

指定文字列描画情報J01は、ページ毎の描画対象の文字列についての文字コードデータJ01a、指定フォント名J01bおよびサイズ指定コードJ01cを含む文字列指定情報J01xと、描画座標データJ01yとを含む。以下の説明において、前記描画対象の文字列のことを描画文字列と称する。   The designated character string drawing information J01 includes character code data J01a for a character string to be drawn for each page, character string designation information J01x including a designated font name J01b and a size designation code J01c, and drawing coordinate data J01y. In the following description, the character string to be drawn is referred to as a drawing character string.

指定フォント名J01bは、文字コードデータJ01aにより特定される前記描画文字列のフォントの種類を指定する情報の一例である。以下の説明において、指定フォント名J01bに対応するフォントデータのことを指定フォントデータD11と称する。   The designated font name J01b is an example of information for designating the font type of the drawn character string specified by the character code data J01a. In the following description, the font data corresponding to the designated font name J01b is referred to as designated font data D11.

サイズ指定コードJ01cは、前記描画文字列のフォントのサイズ、即ち、指定フォントデータD11に対応する描画サイズを指定する情報の一例である。描画座標データJ01yは、ページ毎の前記描画文字列の描画位置を表す情報の一例である。   The size designation code J01c is an example of information for designating the font size of the drawing character string, that is, the drawing size corresponding to the designated font data D11. The drawing coordinate data J01y is an example of information representing the drawing position of the drawing character string for each page.

描画ジョブデータJ0は、指定フォントデータD11を含まない。そのため、画像処理装置10の画像処理部12は、原則として指定フォントデータD11を内蔵ストレージ3から取得する。さらに、画像処理部12は、指定フォントデータD11を用いて前記描画文字列の画像データを生成する。   The drawing job data J0 does not include the designated font data D11. Therefore, the image processing unit 12 of the image processing apparatus 10 acquires the designated font data D11 from the built-in storage 3 in principle. Further, the image processing unit 12 generates image data of the drawing character string using the designated font data D11.

しかしながら、指定フォントデータD11が内蔵ストレージ3に記憶されたフォントデータD1に含まれていない場合がある。この場合、画像処理部12は、内蔵ストレージ3に予め記憶されたフォントデータD1を代用フォントデータD12として内蔵ストレージ3から取得し、その代用フォントデータD12を用いて前記描画文字列の画像データを生成する。   However, the designated font data D11 may not be included in the font data D1 stored in the internal storage 3. In this case, the image processing unit 12 acquires font data D1 stored in advance in the internal storage 3 from the internal storage 3 as substitute font data D12, and generates image data of the drawing character string using the substitute font data D12. To do.

一方、オブジェクト描画情報J02は、ページ毎の描画内容データJ02xおよび描画座標データJ02yなどを含む。描画内容データJ02xは、例えば前記描画文字列に対応するフォントデータ、図形を表すベクタデータまたはビットマップ画像データなど、描画対象となるオブジェクトの描画内容を表すデータである。   On the other hand, the object drawing information J02 includes drawing content data J02x and drawing coordinate data J02y for each page. The drawing content data J02x is data representing the drawing content of an object to be drawn, such as font data corresponding to the drawing character string, vector data representing a graphic, or bitmap image data.

以下の説明において、前記描画文字列、図形およびビットマップ画像などの1まとまりの描画対象のことを描画オブジェクトと称する。描画座標データJ02yは、ページ毎の前記描画オブジェクトの描画位置を表す情報の一例である。   In the following description, a group of drawing objects such as the drawing character string, figure, and bitmap image is referred to as a drawing object. The drawing coordinate data J02y is an example of information representing the drawing position of the drawing object for each page.

オブジェクト描画情報J02は、前記描画オブジェクトの描画に必要な情報を全て含む完結した情報である。例えば、前記描画文字列に関するオブジェクト描画情報J02は、前記描画文字列に対応するフォントデータと、フォントのサイズ情報とを含む。したがって、画像処理装置10は、オブジェクト描画情報J02により特定される前記描画文字列の画像データを生成する場合、内蔵ストレージ3に記憶されたフォントデータD1を参照する必要がない。   The object drawing information J02 is complete information including all information necessary for drawing the drawing object. For example, the object drawing information J02 related to the drawing character string includes font data corresponding to the drawing character string and font size information. Therefore, the image processing apparatus 10 does not need to refer to the font data D1 stored in the internal storage 3 when generating the image data of the drawing character string specified by the object drawing information J02.

即ち、描画ジョブデータJ0において、ページ毎の前記描画文字列に関する情報は、フォントデータを含まない指定文字列描画情報J01およびフォントデータを含むオブジェクト描画情報J02の一方または両方によって提供される。   That is, in the drawing job data J0, the information regarding the drawing character string for each page is provided by one or both of the designated character string drawing information J01 not including font data and the object drawing information J02 including font data.

なお、文字コードデータJ01a、指定フォント名J01bおよびサイズ指定コードJ01cを含む文字列指定情報J01xは、前記描画文字列のページ毎の描画内容を表す描画内容情報の一例である。また、オブジェクト描画情報J02の描画内容データJ02xは、文字列指定情報J01xにより特定される前記描画文字列以外の前記描画オブジェクトに関するページ毎の前記描画内容情報の一例である。   The character string designation information J01x including the character code data J01a, the designated font name J01b, and the size designation code J01c is an example of drawing content information representing the drawing contents for each page of the drawing character string. The drawing content data J02x of the object drawing information J02 is an example of the drawing content information for each page related to the drawing object other than the drawing character string specified by the character string designation information J01x.

印刷ジョブデータJ1およびFAXジョブデータJ2は、図2に示されるように前記描画文字列を含む前記描画オブジェクトのページ毎の描画内容情報(J01x,J02x)および描画位置情報(J01y,J02y)を含む。   The print job data J1 and FAX job data J2 include drawing content information (J01x, J02x) and drawing position information (J01y, J02y) for each page of the drawing object including the drawing character string as shown in FIG. .

ところで、画像処理装置10が、描画ジョブデータJ0において指定される可能性がある多種のフォントデータのサイズを表すサイズ情報を取得可能であれば、そのサイズ情報は、代用フォントデータD12に基づく文字列画像のサイズを調整するために有効である。   By the way, if the image processing apparatus 10 can acquire size information indicating the sizes of various types of font data that may be specified in the drawing job data J0, the size information is a character string based on the substitute font data D12. This is effective for adjusting the image size.

しかしながら、画像処理装置10のコストの制約または画像処理装置10が接続される通信ネットワークの制約などの理由により、多種のフォントデータに対応する前記サイズ情報を画像処理装置10が常に取得可能なデータとして予め用意することが難しい場合がある。   However, due to cost limitations of the image processing apparatus 10 or restrictions on the communication network to which the image processing apparatus 10 is connected, the size information corresponding to various types of font data is data that the image processing apparatus 10 can always acquire. It may be difficult to prepare in advance.

例えば、画像処理装置10の内蔵ストレージ3のコストの制約により、内蔵ストレージ3が、多種のフォントデータについての前記サイズ情報を記憶可能な容量を有さない場合がある。また、画像処理装置10が接続可能なインターネットの通信品質が良くない場合、画像処理装置10が前記インターネット上のサーバーから前記サイズ情報を取得することは好ましくない。   For example, due to cost restrictions of the internal storage 3 of the image processing apparatus 10, the internal storage 3 may not have a capacity capable of storing the size information for various types of font data. Further, when the Internet communication quality to which the image processing apparatus 10 can be connected is not good, it is not preferable that the image processing apparatus 10 obtains the size information from a server on the Internet.

上記のような課題の解決のため、画像処理装置10の画像処理部12は、後述する描画用データ生成処理を実行する。これにより、画像処理装置10は、多種のフォントデータのサイズの情報を用いることなく、代用フォントデータD12を用いる文字列画像が、指定フォントデータD11が用いられる場合の文字列の描画領域からはみ出すことを防止する。   In order to solve the above problems, the image processing unit 12 of the image processing apparatus 10 executes a drawing data generation process described later. As a result, the image processing apparatus 10 allows the character string image using the substitute font data D12 to protrude from the drawing area of the character string when the designated font data D11 is used without using information on the sizes of various font data. To prevent.

[描画用データ生成処理]
以下、図3に示されるフローチャートを参照しつつ、印刷ジョブデータJ1に基づく前記描画用データ生成処理の手順の一例について説明する。
[Drawing data generation processing]
Hereinafter, an example of the procedure of the drawing data generation process based on the print job data J1 will be described with reference to the flowchart shown in FIG.

画像処理部12は、前記描画用データ生成処理を実行するために、ジョブデータ解析部12Aと、フォントデータ取得部12Bと、文字列ラスタライズ部12Cと、はみ出し判定部12Dと、縮小率算出部12Eと、サイズ調整部12Fと、その他ラスタライズ部12Gと、合成部12Hとを含む。   In order to execute the drawing data generation process, the image processing unit 12 performs a job data analysis unit 12A, a font data acquisition unit 12B, a character string rasterization unit 12C, an overflow determination unit 12D, and a reduction rate calculation unit 12E. A size adjusting unit 12F, a rasterizing unit 12G, and a combining unit 12H.

図3に示される前記描画用データ生成処理は、通信部5が端末装置8から印刷ジョブデータJ1を受信したときに開始される。以下の説明において、S101,S102,…は、前記描画用データ生成処理において制御部1が実行する工程の識別符号を表す。   The drawing data generation process shown in FIG. 3 is started when the communication unit 5 receives the print job data J1 from the terminal device 8. In the following description, S101, S102,... Represent identification codes of steps executed by the control unit 1 in the drawing data generation process.

<工程S101>
前記描画用データ生成処理において、まず、印刷制御部11Aが、端末装置8から通信部5を介して印刷ジョブデータJ1を受信する。なお、印刷制御部11Aは、描画ジョブデータJ0を取得する描画ジョブデータ取得部の一例である。
<Step S101>
In the drawing data generation process, first, the print control unit 11 </ b> A receives print job data J <b> 1 from the terminal device 8 via the communication unit 5. The print control unit 11A is an example of a drawing job data acquisition unit that acquires the drawing job data J0.

<工程S102>
次に、ジョブデータ解析部12Aが、工程S101で得られた印刷ジョブデータJ1が前記描画内容情報として文字列指定情報J01xを含むか否かに応じて、次の工程の移行先を選択する。
<Step S102>
Next, the job data analysis unit 12A selects a transfer destination of the next step depending on whether or not the print job data J1 obtained in step S101 includes character string designation information J01x as the drawing content information.

即ち、ジョブデータ解析部12Aは、印刷ジョブデータJ1が文字列指定情報J01xを含む場合に処理を次の工程S103へ移行させ、そうでない場合に処理を工程S109へ移行させる。   That is, the job data analysis unit 12A shifts the process to the next step S103 when the print job data J1 includes the character string designation information J01x, and shifts the process to step S109 otherwise.

<工程S103>
工程S103において、フォントデータ取得部12Bが、文字列指定情報J01xにおける文字コードデータJ01aおよび指定フォント名J01bに対応する指定フォントデータD11または代用フォントデータD12を内蔵ストレージ3から取得する。
<Step S103>
In step S103, the font data acquisition unit 12B acquires the specified font data D11 or substitute font data D12 corresponding to the character code data J01a and the specified font name J01b in the character string specifying information J01x from the internal storage 3.

フォントデータ取得部12Bは、指定フォント名J01bが予め内蔵ストレージ3に存在するフォントデータD1に対応する既存フォントを表す名称であれば、文字列指定情報J01xの文字コードデータJ01aおよび指定フォント名J01bに対応する指定フォントデータD11を内蔵ストレージ3から取得する。   If the designated font name J01b is a name representing an existing font corresponding to the font data D1 existing in the internal storage 3 in advance, the font data acquisition unit 12B adds the character code data J01a and the designated font name J01b of the character string designation information J01x. Corresponding designated font data D11 is acquired from the internal storage 3.

また、フォントデータ取得部12Bは、指定フォント名J01bが前記既存フォントを表す名称でなければ、内蔵ストレージ3から指定フォントデータD11に代わる代用フォントデータD12を取得する。   Further, the font data acquisition unit 12B acquires substitute font data D12 instead of the specified font data D11 from the internal storage 3 if the specified font name J01b is not a name representing the existing font.

複数種類のフォントデータD1が予め内蔵ストレージ3に記憶されている場合、フォントデータ取得部12Bは、予め定められた選択ルールに従って、複数種類のフォントデータD1の中から代用フォントデータD12を選択する。   When a plurality of types of font data D1 are stored in advance in the internal storage 3, the font data acquisition unit 12B selects substitute font data D12 from the plurality of types of font data D1 according to a predetermined selection rule.

例えば、フォントデータ取得部12Bが、指定フォント名J01bと既存フォント名とを比較し、予め定められた"ゴシック"、"明朝"、"行書"および"楷書"などの共通するキーワードを最も多く含む前記既存フォント名に対応するフォントデータD1を代用フォントデータD12として選択することが考えられる。   For example, the font data acquisition unit 12B compares the designated font name J01b with the existing font name, and determines the most common keywords such as “Gothic”, “Mincho”, “Line”, and “Bibliography”. It can be considered that the font data D1 corresponding to the existing font name is selected as the substitute font data D12.

なお、前記既存フォント名は、内蔵ストレージ3に記憶されている複数種類のフォントデータD1の名称である。   The existing font name is the name of a plurality of types of font data D1 stored in the internal storage 3.

<工程S104>
次に、文字列ラスタライズ部12Cが、工程S103で得られた指定フォントデータD11および代用フォントデータD12の一方または両方について、文字列ラスタライズ処理を実行する。
<Step S104>
Next, the character string rasterizing unit 12C executes a character string rasterizing process on one or both of the designated font data D11 and the substitute font data D12 obtained in step S103.

指定フォントデータD11が内蔵ストレージ3から取得された場合、前記文字列ラスタライズ処理は、指定フォントデータD11およびその指定フォントデータD11についてのサイズ指定コードJ01cにより特定される文字列画像のラスタデータである指定文字列ラスタデータを生成する処理を含む。   When the designated font data D11 is acquired from the built-in storage 3, the character string rasterization processing is designated as raster data of the character string image specified by the designated font data D11 and the size designation code J01c for the designated font data D11. Includes processing to generate character string raster data.

一方、代用フォントデータD12が内蔵ストレージ3から取得された場合、前記文字列ラスタライズ処理は、代用フォントデータD12およびその代用フォントデータD12についてのサイズ指定コードJ01cにより特定される文字列画像のラスタデータである代用文字列ラスタデータを生成する処理を含む。   On the other hand, when the substitute font data D12 is acquired from the built-in storage 3, the character string rasterization processing is performed using raster data of the character string image specified by the substitute font data D12 and the size designation code J01c for the substitute font data D12. It includes a process for generating a substitute character string raster data.

図4は、前記指定文字列ラスタデータが表す画像である指定文字列画像g1と、前記代用文字列ラスタデータが表す画像である代用文字列画像g2と、その他の前記描画オブジェクトに関する描画内容データJ02xにより特定されるその他オブジェクト画像g3とが、描画座標データJ01y,J02yに従って配列された一次画像g01の一例を示す。なお、その他オブジェクト画像g3が、フォントデータおよびフォントサイズの情報を含む描画内容データJ02xにより特定される文字列画像を含む場合もある。   FIG. 4 shows a designated character string image g1 that is an image represented by the designated character string raster data, a substitute character string image g2 that is an image represented by the substitute character string raster data, and drawing content data J02x relating to the other drawing objects. An example of the primary image g01 in which the other object image g3 specified by is arranged according to the drawing coordinate data J01y and J02y is shown. The other object image g3 may include a character string image specified by the drawing content data J02x including font data and font size information.

<工程S105>
次に、はみ出し判定部12Dが、代用文字列画像g2についてのはみ出し判定処理を実行する。前記はみ出し判定処理において、はみ出し判定部12Dは、代用文字列画像g2の描画に許容されるページ毎の許容領域903を特定し、さらに、代用文字列画像g2が許容領域903からはみ出しているか否かを判定する(図4参照)。
<Step S105>
Next, the protrusion determination unit 12D executes the protrusion determination process for the substitute character string image g2. In the protrusion determination process, the protrusion determination unit 12D specifies a permissible area 903 for each page that is allowed to draw the substitute character string image g2, and further determines whether or not the substitute character string image g2 protrudes from the allowable area 903. Is determined (see FIG. 4).

許容領域903は、ページの有効領域901から指定文字列画像g1およびその他オブジェクト画像g3が占める優先領域902を除いた残りの領域である。例えば、はみ出し判定部12Dは、操作表示部4に対する設定操作に従って予め設定されたページの余白の寸法情報に応じて有効領域901を特定する。また、有効領域901の情報が、印刷ジョブデータJ1に含まれていることも考えられる。   The allowable area 903 is a remaining area obtained by removing the priority area 902 occupied by the designated character string image g1 and the other object image g3 from the effective area 901 of the page. For example, the protrusion determination unit 12D specifies the effective region 901 according to the page margin size information set in advance according to the setting operation on the operation display unit 4. It is also conceivable that the information of the valid area 901 is included in the print job data J1.

はみ出し判定部12Dは、前記指定文字列ラスタデータから指定文字列画像g1の外接矩形の幅および高さを特定する。さらに、はみ出し判定部12Dは、指定文字列画像g1の外接矩形の幅および高さと、前記指定文字列ラスタデータに対応する描画座標データJ01yとによって指定文字列画像g1が占める領域を特定する。   The protrusion determination unit 12D specifies the width and height of the circumscribed rectangle of the designated character string image g1 from the designated character string raster data. Further, the protrusion determination unit 12D specifies an area occupied by the designated character string image g1 based on the width and height of the circumscribed rectangle of the designated character string image g1 and the drawing coordinate data J01y corresponding to the designated character string raster data.

また、はみ出し判定部12Dは、描画内容データJ02xからその他オブジェクト画像g3の外接矩形の幅および高さを特定する。さらに、はみ出し判定部12Dは、その他オブジェクト画像g3の外接矩形の幅および高さと、描画座標データJ02yとによってその他オブジェクト画像g3が占める領域を特定する。   Further, the protrusion determination unit 12D specifies the width and height of the circumscribed rectangle of the other object image g3 from the drawing content data J02x. Furthermore, the protrusion determination unit 12D specifies an area occupied by the other object image g3 based on the width and height of the circumscribed rectangle of the other object image g3 and the drawing coordinate data J02y.

本実施形態において、はみ出し判定部12Dは、文字列の配列方向に沿う1行分の代用文字列画像g2である単位代用文字列画像g20ごとに、許容領域903からはみ出しているか否かを判定する。その際、はみ出し判定部12Dは、単位代用文字列画像g20の外接矩形が占める領域である単位代用文字列領域904の一部が、許容領域903からはみ出しているか否かを判定する。   In the present embodiment, the protrusion determination unit 12D determines whether or not each unit substitute character string image g20 that is a substitute character string image g2 for one line along the character string arrangement direction protrudes from the allowable area 903. . At this time, the protrusion determination unit 12D determines whether a part of the unit substitute character string area 904 that is an area occupied by the circumscribed rectangle of the unit substitute character string image g20 protrudes from the allowable area 903.

図4に示される例は、5行分の単位代用文字列画像g20のうち、1行目、3行目および4行目の単位代用文字列画像g20が、許容領域903からはみ出している例を示す。単位代用文字列画像g20が許容領域903からはみ出した状況としては、図4に示されるように単位代用文字列画像g20がその他オブジェクト画像g3が占める領域に重なった状況と、単位代用文字列画像g20の一部が有効領域901からはみ出した状況とが考えられる。   The example shown in FIG. 4 is an example in which the unit substitute character string images g20 in the first, third, and fourth lines out of the unit substitute character string image g20 for five lines protrude from the allowable area 903. Show. As the situation where the unit substitute character string image g20 protrudes from the allowable area 903, as shown in FIG. 4, the unit substitute character string image g20 overlaps the area occupied by the other object image g3, and the unit substitute character string image g20. It is conceivable that a part of the area protrudes from the effective area 901.

はみ出し判定部12Dは、代用文字列画像g2が許容領域903からはみ出していると判定した場合、処理を次の工程S106へ移行させ、そうでない場合、処理を工程S109へ移行させる。   The protrusion determining unit 12D shifts the process to the next step S106 when determining that the substitute character string image g2 protrudes from the allowable area 903, and shifts the process to step S109 otherwise.

<工程S106>
工程S106において、縮小率算出部12Eが、文字列の配列方向に沿う行ごとに、単位代用文字列画像g20を許容領域903内に収める縮小率である行単位縮小率を算出する。例えば、縮小率算出部12Eは、単位代用文字列画像g20各々が位置する行ごとに、許容領域903の幅から予め定められたオブジェクト間隔を差し引くことにより許容幅を算出し、さらに、前記許容幅を単位代用文字列領域904の幅で除算することにより、前記行単位終了率を算出する。
<Step S106>
In step S106, the reduction ratio calculation unit 12E calculates a line unit reduction ratio, which is a reduction ratio for accommodating the unit substitute character string image g20 in the allowable area 903 for each line along the arrangement direction of the character strings. For example, the reduction ratio calculation unit 12E calculates an allowable width by subtracting a predetermined object interval from the width of the allowable area 903 for each row where the unit substitute character string image g20 is located, and further, the allowable width Is divided by the width of the unit substitute character string area 904 to calculate the line unit end rate.

<工程S107>
次に、縮小率算出部12Eは、同種の代用フォントデータD12毎の前記行単位縮小率の最小値を、代用フォントデータD12の種類毎のサイズ縮小率として選択する。前記サイズ縮小率は、代用文字列画像g2を許容領域903内に収める縮小率である。
<Step S107>
Next, the reduction rate calculation unit 12E selects the minimum value of the line unit reduction rate for each type of substitute font data D12 of the same type as the size reduction rate for each type of substitute font data D12. The size reduction ratio is a reduction ratio that fits the substitute character string image g2 in the allowable area 903.

図4に示される5行分の単位代用文字列画像g20のうち、1行目および2行目の単位代用文字列画像g20が、第1の種類の代用フォントデータD12に基づく画像であり、3行目から5行目までの単位代用文字列画像g20が、第2の種類の代用フォントデータD12に基づく画像である。   Of the unit substitute character string images g20 for five lines shown in FIG. 4, the unit substitute character string images g20 in the first and second lines are images based on the first type substitute font data D12. The unit substitute character string images g20 from the fifth line to the fifth line are images based on the second type substitute font data D12.

図4に示される例では、1行目の単位代用文字列画像g20について算出された前記行単位縮小率が、1行目および2行目の単位代用文字列画像g20についての前記サイズ縮小率として選択され、3行目の単位代用文字列画像g20について算出された前記行単位縮小率が、3行目から5行目までの単位代用文字列画像g20についての前記サイズ縮小率として選択される。   In the example shown in FIG. 4, the line unit reduction ratio calculated for the unit substitute character string image g20 in the first line is the size reduction ratio for the unit substitute character string images g20 in the first and second lines. The line unit reduction ratio calculated for the unit substitute character string image g20 on the third line is selected as the size reduction ratio for the unit substitute character string images g20 from the third line to the fifth line.

以上に示されるように、縮小率算出部12Eは、一次画像g01において、代用文字列画像g2が、ページの許容領域903からはみ出す場合に、代用文字列画像g2を許容領域903内に収める縮小率である前記サイズ縮小率を算出する(S106,S107)。   As described above, the reduction ratio calculation unit 12E reduces the reduction ratio that fits the substitute character string image g2 in the allowable area 903 when the substitute character string image g2 extends beyond the allowable area 903 of the page in the primary image g01. The size reduction rate is calculated (S106, S107).

<工程S108>
次に、サイズ調整部12Fが、リサイズ文字列画像g4のラスタデータを生成する(図5参照)。リサイズ文字列画像g4は、代用フォントデータD12およびその代用フォントデータD12に対応するサイズ指定コードJ01cにより特定される代用文字列画像g2が前記サイズ縮小率に従ってサイズ調整された後の画像である。サイズ調整部12Fは、工程S108に続いて、処理を次の工程S109へ移行させる。
<Step S108>
Next, the size adjustment unit 12F generates raster data of the resized character string image g4 (see FIG. 5). The resized character string image g4 is an image obtained by adjusting the size of the substitute character string image g2 specified by the substitute font data D12 and the size designation code J01c corresponding to the substitute font data D12 according to the size reduction rate. The size adjusting unit 12F moves the process to the next step S109 following step S108.

本実施形態において、サイズ調整部12Fは、文字列の配列方向に沿う行ごとに、1行分の前記代用文字列ラスタデータを前記サイズ縮小率に従ってサイズ調整することにより、リサイズ文字列画像g4を表すリサイズ文字列ラスタデータを生成する。   In the present embodiment, the size adjustment unit 12F adjusts the size of the substitute character string raster data for one line in accordance with the size reduction ratio for each line along the arrangement direction of the character strings, thereby changing the resized character string image g4. Resize character string raster data to be generated is generated.

本実施形態におけるサイズ調整部12Fは、前記代用文字列ラスタデータを前記サイズ縮小率に従ってサイズ調整するラスタデータ調整部の一例である。   The size adjustment unit 12F in this embodiment is an example of a raster data adjustment unit that adjusts the size of the substitute character string raster data according to the size reduction rate.

図5に示される例は、図4に示される代用文字列画像g2が、前記第1の種類および前記第2の種類の代用フォントデータD12について算出された2種類の前記サイズ縮小率によってサイズ調整されたリサイズ文字列画像g4を示す。以下の説明において、単位代用文字列画像g20がサイズ調整された画像のことを単位リサイズ文字列画像g40と称する。   In the example shown in FIG. 5, the substitute character string image g2 shown in FIG. 4 is adjusted in size by the two types of size reduction ratios calculated for the first type and the second type substitute font data D12. The resized character string image g4 is shown. In the following description, an image obtained by adjusting the size of the unit substitute character string image g20 is referred to as a unit resized character string image g40.

図5に示されるリサイズ文字列画像g4は、5行分の単位リサイズ文字列画像g40を含む。1行目および2行目の単位リサイズ文字列画像g40は、前記第1の種類の代用フォントデータD12について算出された前記サイズ縮小率を用いてサイズ調整された画像である。また、3行目から5行目までの単位リサイズ文字列画像g40は、前記第2の種類の代用フォントデータD12について算出された前記サイズ縮小率を用いてサイズ調整された画像である。   The resized character string image g4 shown in FIG. 5 includes unit resized character string images g40 for five lines. The unit resized character string image g40 in the first and second lines is an image whose size has been adjusted using the size reduction ratio calculated for the first type substitute font data D12. The unit resized character string image g40 from the third line to the fifth line is an image whose size is adjusted using the size reduction ratio calculated for the second type substitute font data D12.

<工程S109>
工程S109において、その他ラスタライズ部12Gが、印刷ジョブデータJ1に含まれる描画内容データJ02xに従ってその他オブジェクト画像g3のラスタデータであるその他オブジェクトラスタデータを生成する。
<Step S109>
In step S109, the other rasterizing unit 12G generates other object raster data that is raster data of the other object image g3 in accordance with the drawing content data J02x included in the print job data J1.

例えば、その他ラスタライズ部12Gは、描画内容データJ02xに含まれるベクタデータおよびサイズデータに基づいて、前記ベクタデータが前記サイズデータに従ってサイズ調整されたラスタデータを前記その他オブジェクトラスタデータとして生成する。また、その他ラスタライズ部12Gが、描画内容データJ02xに含まれるビットマップデータを印刷用のラスタデータへ変換することによって前記その他オブジェクトラスタデータを生成する場合もある。   For example, the other rasterizing unit 12G generates, as the other object raster data, raster data obtained by adjusting the size of the vector data according to the size data based on the vector data and the size data included in the drawing content data J02x. The other rasterizing unit 12G may generate the other object raster data by converting the bitmap data included in the drawing content data J02x into printing raster data.

<工程S110>
次に、合成部12Hが、指定文字列画像g1とリサイズ文字列画像g4とその他オブジェクト画像g3とが描画座標データJ01y,J02yに従って配列された画像である二次画像g02を表す描画用ラスタデータD0を生成する。
<Step S110>
Next, the combining unit 12H renders drawing raster data D0 representing the secondary image g02, which is an image in which the designated character string image g1, the resized character string image g4, and the other object image g3 are arranged according to the drawing coordinate data J01y and J02y. Is generated.

具体的には、合成部12Hは、前記指定文字列ラスタデータと前記リサイズ文字列ラスタデータと前記その他オブジェクトラスタデータとを合成することにより描画用ラスタデータD0を生成する。   Specifically, the synthesizing unit 12H generates the drawing raster data D0 by synthesizing the designated character string raster data, the resized character string raster data, and the other object raster data.

合成部12Hは、一次画像g01における単位代用文字列領域904の基点904aを、二次画像g02における1行毎の単位リサイズ文字列画像g40の配列の基準位置とする(図4参照)。基点904aは、例えば単位代用文字列領域904の左下の角または左上の角の位置である。   The synthesizing unit 12H sets the base point 904a of the unit substitute character string region 904 in the primary image g01 as the reference position of the array of the unit resized character string image g40 for each line in the secondary image g02 (see FIG. 4). The base point 904a is, for example, the position of the lower left corner or the upper left corner of the unit substitute character string area 904.

合成部12Hは、印刷ジョブデータJ1に基づいて生成した描画用ラスタデータD0を印刷制御部11Aへ出力する。これにより、印刷制御部11Aが画像形成部2を制御することにより、画像形成部2が、描画用ラスタデータD0が表す二次画像g02をシート9に形成する処理を実行する。   The combining unit 12H outputs the drawing raster data D0 generated based on the print job data J1 to the print control unit 11A. As a result, the print control unit 11A controls the image forming unit 2, so that the image forming unit 2 executes a process of forming the secondary image g02 represented by the drawing raster data D0 on the sheet 9.

合成部12Hは、工程S110の処理の終了後、前記描画用データ生成処理を終了させる。   The synthesizer 12H ends the drawing data generation process after the process of step S110 ends.

以上に示されるように、サイズ調整部12F、その他ラスタライズ部12Gおよび合成部12Hは、指定文字列画像g1とリサイズ文字列画像g4とその他オブジェクト画像g3とが描画座標データJ01y,J02yに従って配列された二次画像g02を表す描画用ラスタデータD0を生成する(S108〜S110)。   As described above, the size adjusting unit 12F, the other rasterizing unit 12G, and the synthesizing unit 12H have the designated character string image g1, the resized character string image g4, and the other object image g3 arranged in accordance with the drawing coordinate data J01y and J02y. Rendering raster data D0 representing the secondary image g02 is generated (S108 to S110).

サイズ調整部12F、その他ラスタライズ部12Gおよび合成部12Hは、描画用データ生成部の一例である。なお、FAX制御部11Bが、端末装置8から通信部5を通じてFAXジョブデータJ2を受信した場合も、FAXジョブデータJ2を処理対象とする前記描画用データ生成処理が、図3に示される手順と同様の手順で実行される。   The size adjusting unit 12F, the other rasterizing unit 12G, and the synthesizing unit 12H are examples of a drawing data generating unit. Note that, even when the FAX control unit 11B receives the FAX job data J2 from the terminal device 8 through the communication unit 5, the drawing data generation process for processing the FAX job data J2 is the procedure shown in FIG. The same procedure is executed.

以上に示されるように、画像処理装置10は、前記描画用データ生成処理を実行することにより、多種のフォントデータのサイズの情報を用いることなく、代用文字列画像g2が許容領域903からはみ出すことを防止する。   As described above, the image processing apparatus 10 executes the drawing data generation process so that the substitute character string image g2 protrudes from the allowable area 903 without using information on the sizes of various font data. To prevent.

また、画像処理装置10において、縮小率算出部12Eは、文字列の配列方向に沿う行ごとに、1行分の代用文字列画像g2である単位代用文字列画像g20を前記許容領域内に収める前記行単位縮小率を算出し(S106)、同種の代用フォントデータD12ごとに前記行単位縮小率の最小値を前記サイズ縮小率とする(S107)。   In the image processing apparatus 10, the reduction rate calculation unit 12E stores the unit substitute character string image g20, which is the substitute character string image g2 for one line, in the allowable area for each line along the arrangement direction of the character strings. The line unit reduction ratio is calculated (S106), and the minimum value of the line unit reduction ratio is set as the size reduction ratio for each substitute font data D12 of the same type (S107).

従って、フォントの種類毎のリサイズ文字列画像g4に統一感があり、かつ、複数行に亘る前記文字列画像が本来の配置に近い状態で配置された二次画像g02を表す描画用ラスタデータD0が生成される。   Accordingly, the resized character string image g4 for each font type has a sense of unity, and the drawing raster data D0 representing the secondary image g02 in which the character string image over a plurality of lines is arranged in a state close to the original arrangement. Is generated.

また、画像処理装置10において、サイズ調整部12Fが、前記代用文字列ラスタデータのサイズを前記サイズ縮小率に従って調整する。この場合、文字列ラスタライズ部12Cが代用フォントデータD12についての前記文字列ラスタライズ処理を複数回繰り返す必要がない。そのため、画像処理部12の演算負荷が軽減され、描画用ラスタデータD0が速やかに生成される。   In the image processing apparatus 10, the size adjusting unit 12F adjusts the size of the substitute character string raster data according to the size reduction rate. In this case, the character string rasterizing unit 12C does not need to repeat the character string rasterizing process for the substitute font data D12 a plurality of times. Therefore, the calculation load of the image processing unit 12 is reduced, and the drawing raster data D0 is generated promptly.

[第2実施形態]
次に、図6〜8を参照しつつ、第2実施形態に係る画像処理装置10Aについて説明する。画像処理装置10Aは、画像処理装置10と比較して、ジョブ制御部11がサイズ調整実績記録部11Cおよび実績管理部11Dを備えること、および前記描画用データ生成処理が追加工程と改変された工程とを含むこととが異なる。
[Second Embodiment]
Next, an image processing apparatus 10A according to the second embodiment will be described with reference to FIGS. Compared with the image processing apparatus 10, the image processing apparatus 10 </ b> A includes a job control unit 11 including a size adjustment result recording unit 11 </ b> C and a result management unit 11 </ b> D, and a process in which the drawing data generation process is modified as an additional process. It is different from including.

後述するように、画像処理装置10Aにおいて、前記描画用データ生成処理の前記追加工程の処理は、内蔵ストレージ3にサイズ調整情報D2を記録する処理を含む。以下、画像処理装置10Aの前記描画用データ生成処理における画像処理装置10の前記描画用データ生成処理と異なる点について説明する。   As will be described later, in the image processing apparatus 10A, the process of the additional step of the drawing data generation process includes a process of recording the size adjustment information D2 in the internal storage 3. Hereinafter, differences from the drawing data generation process of the image processing apparatus 10 in the drawing data generation process of the image processing apparatus 10A will be described.

図7に示される前記描画用データ生成処理の手順において、工程S201,S202,S203,S204,S205,S206,S207,S209,S210の処理は、それぞれ図3に示される工程S101,S102,S103,S104,S105,S106,S107,S109,S110の処理と同じである。   In the drawing data generation process shown in FIG. 7, the processes of steps S201, S202, S203, S204, S205, S206, S207, S209, and S210 are performed in steps S101, S102, S103, and FIG. This is the same as the processing of S104, S105, S106, S107, S109, and S110.

また、図7に示される前記描画用データ生成処理の手順において、工程S207の後段の工程S208の処理は、サイズ調整部12Fが前記リサイズ文字列ラスタデータを生成する処理であるが、図3の工程S108の処理と若干異なる。工程S208の処理の詳細については後述する。   In the drawing data generation process shown in FIG. 7, the process in step S208 subsequent to step S207 is a process in which the size adjustment unit 12F generates the resized character string raster data. This is slightly different from the process in step S108. Details of the process of step S208 will be described later.

さらに、図7に示される前記描画用データ生成処理の手順において、工程S203a,S203bが、図3の工程S104に相当する工程S204の前段に追加されており、さらに、工程S208aが、図3の工程S108に相当する工程S208の後段に追加されている。   Further, in the drawing data generation processing procedure shown in FIG. 7, steps S203a and S203b are added to the previous stage of step S204 corresponding to step S104 of FIG. 3, and step S208a is further changed to that of FIG. It is added to the subsequent stage of step S208 corresponding to step S108.

[サイズ調整処理]
図8のフローチャートによって示されるサイズ調整処理の手順は、本実施形態における工程S208の処理の手順の一例である。以下の説明において、S301およびS302は、本実施形態における前記サイズ調整処理においてサイズ調整部12Fが実行する工程の識別符号を表す。
[Size adjustment processing]
The procedure of the size adjustment process shown by the flowchart of FIG. 8 is an example of the process procedure of step S208 in the present embodiment. In the following description, S301 and S302 represent identification codes of steps executed by the size adjustment unit 12F in the size adjustment process in the present embodiment.

<工程S301>
前記サイズ調整処理において、サイズ調整部12Fは、代用フォントデータD12に対応するサイズ指定コードJ01cが表すフォントサイズを前記サイズ縮小率に従って調整することにより、調整後フォントサイズを算出する。
<Step S301>
In the size adjustment process, the size adjustment unit 12F calculates the adjusted font size by adjusting the font size represented by the size designation code J01c corresponding to the substitute font data D12 according to the size reduction rate.

<工程S302>
次に、文字列ラスタライズ部12Cが、代用フォントデータD12および前記調整後フォントサイズにより特定される文字列画像のラスタデータである前記リサイズ文字列ラスタデータを生成する。文字列ラスタライズ部12Cは、工程S302の処理の終了後、前記サイズ調整処理を終了させる。
<Step S302>
Next, the character string rasterizing unit 12C generates the resized character string raster data which is raster data of the character string image specified by the substitute font data D12 and the adjusted font size. The character string rasterizing unit 12C ends the size adjustment process after the process of step S302 ends.

前述したように、図3の工程S108では、サイズ調整部12Fが、工程S104で生成された前記代用文字列ラスタデータに対して前記サイズ縮小率に従ったサイズ調整を行うことにより、前記リサイズ文字列ラスタデータを生成する。   As described above, in step S108 of FIG. 3, the size adjustment unit 12F performs size adjustment according to the size reduction rate on the substitute character string raster data generated in step S104, whereby the resized character character is processed. Generate column raster data.

一方、工程S302においては、文字列ラスタライズ部12Cが、前記調整後フォントサイズに基づいて工程S204と同様の前記文字列ラスタライズ処理を再実行することにより、前記リサイズ文字列ラスタデータを生成する。   On the other hand, in step S302, the character string rasterization unit 12C re-executes the character string rasterization process similar to step S204 based on the adjusted font size, thereby generating the resized character string raster data.

そして、工程S210において、合成部12Hは、工程S205で得られる前記指定文字列ラスタデータと工程S302で得られる前記リサイズ文字列ラスタデータと工程S209で得られる前記その他オブジェクトラスタデータとを合成することにより前記描画用ラスタデータを生成する。   In step S210, the combining unit 12H combines the designated character string raster data obtained in step S205 with the resized character string raster data obtained in step S302 and the other object raster data obtained in step S209. To generate the drawing raster data.

本実施形態においても、その他ラスタライズ部12Gが、描画内容データJ02xに従って前記その他オブジェクトラスタデータを生成する(S209)。さらに、合成部12Hが、前記指定文字列ラスタデータと前記リサイズ文字列ラスタデータと前記その他オブジェクトラスタデータとを合成することにより描画用ラスタデータD0を生成する(S210)。   Also in this embodiment, the other rasterizing unit 12G generates the other object raster data according to the drawing content data J02x (S209). Further, the combining unit 12H generates drawing raster data D0 by combining the designated character string raster data, the resized character string raster data, and the other object raster data (S210).

本実施形態において、その他ラスタライズ部12Gおよび合成部12Hが、描画用ラスタデータD0を生成する前記サイズ調整データ生成部の一例である。   In the present embodiment, the other rasterizing unit 12G and the synthesizing unit 12H are examples of the size adjustment data generating unit that generates the drawing raster data D0.

本実施形態においては、前記リサイズ文字列ラスタデータが、ベクタデータである代用フォントデータD12と前記調整後フォントサイズとに基づいて生成される。そのため、代用文字列画像g2のサイズ調整が行われる際に、代用文字列画像g2における細い線が消失する、あるいは代用文字列画像g2の形が崩れるなどの現象が回避される。その結果、見た目の美しいリサイズ文字列画像g4が得られる。   In the present embodiment, the resized character string raster data is generated based on the substitute font data D12 that is vector data and the adjusted font size. Therefore, when the size of the substitute character string image g2 is adjusted, a phenomenon such as the thin line disappearing in the substitute character string image g2 or the shape of the substitute character string image g2 being broken is avoided. As a result, a visually resized character string image g4 is obtained.

<工程S208a>
工程S208aの処理は、前記リサイズ文字列ラスタデータを生成する処理(S208)の後に実行される。工程S208aにおいて、サイズ調整実績記録部11Cが、工程S207,S208の処理によって算出された前記サイズ縮小率を含むサイズ調整情報D2を内蔵ストレージ3に記録する。
<Step S208a>
The process of step S208a is executed after the process of generating the resized character string raster data (S208). In step S208a, the size adjustment record recording unit 11C records the size adjustment information D2 including the size reduction ratio calculated by the processes in steps S207 and S208 in the internal storage 3.

以下の説明において、サイズ調整情報D2に含められる前記サイズ縮小率のことを縮小率実績値D2aと称する。サイズ調整実績記録部11Cは、縮小率実績値D2aと、縮小率実績値D2aに対応する指定フォント名J01bである実績指定フォント名D2bと、縮小率実績値D2aに対応するフォント名である実績代用フォント名D2cとを含むサイズ調整情報D2を内蔵ストレージ3に記録する(図6参照)。   In the following description, the size reduction rate included in the size adjustment information D2 is referred to as a reduction rate actual value D2a. The size adjustment result recording unit 11C includes a reduction rate result value D2a, a result designation font name D2b that is a designated font name J01b corresponding to the reduction rate result value D2a, and a result substitution that is a font name corresponding to the reduction rate result value D2a. The size adjustment information D2 including the font name D2c is recorded in the internal storage 3 (see FIG. 6).

なお、実績指定フォント名D2bは、縮小率実績値D2aに対応する指定フォントの識別の一例であり、実績代用フォント名D2cは縮小率実績値D2aに対応する代用フォントデータD12の識別情報の一例である。   The actual designation font name D2b is an example of identification of the designated font corresponding to the reduction ratio actual value D2a, and the actual substitution font name D2c is an example of identification information of the substitute font data D12 corresponding to the reduction ratio actual value D2a. is there.

<工程S203a>
工程S203aの処理は、工程S203において、代用フォントデータD12が内蔵ストレージ3から取得された場合に実行される。
<Step S203a>
The process of step S203a is executed when the substitute font data D12 is acquired from the internal storage 3 in step S203.

工程S203aにおいて、実績管理部11Dが、印刷ジョブデータJ1の指定フォント名J01bが表す前記指定フォントおよび内蔵ストレージ3から得られた代用フォントデータD12に対応する縮小率実績値D2aがサイズ調整情報D2に含まれているか否かを判定する。   In step S203a, the result management unit 11D uses the designated font represented by the designated font name J01b of the print job data J1 and the reduction rate actual value D2a corresponding to the substitute font data D12 obtained from the internal storage 3 as the size adjustment information D2. It is determined whether or not it is included.

本実施形態において、実績管理部11Dは、指定フォント名J01bと代用フォントデータD12のフォント名との組合せに一致する実績指定フォント名D2bおよび実績代用フォント名D2cの組合せが、サイズ調整情報D2に含まれるか否かを判定する。   In the present embodiment, the result management unit 11D includes, in the size adjustment information D2, a combination of the result designated font name D2b and the result substitute font name D2c that match the combination of the designated font name J01b and the font name of the substitute font data D12. It is determined whether or not.

実績管理部11Dは、指定フォント名J01bおよび代用フォントデータD12に対応する縮小率実績値D2aがサイズ調整情報D2に含まれていると判定した場合、処理を工程S203bへ移行させ、そうでない場合、処理を工程S204へ移行させる。工程S204の処理は、前記文字列ラスタライズ処理である(工程S104参照)。   If the result management unit 11D determines that the size adjustment information D2 includes the reduction rate result value D2a corresponding to the designated font name J01b and the substitute font data D12, the process proceeds to step S203b. The process proceeds to step S204. The process of step S204 is the character string rasterization process (see step S104).

<工程S203b>
工程S203bにおいて、サイズ調整部12Fが、代用フォントデータD12に対応するサイズ指定コードJ01cが表すフォントサイズを縮小率実績値D2aに従って調整することにより、事前調整後フォントサイズを算出する。その後、サイズ調整部12Fは、処理を工程S204へ移行させる。
<Step S203b>
In step S203b, the size adjustment unit 12F calculates the pre-adjusted font size by adjusting the font size represented by the size designation code J01c corresponding to the substitute font data D12 according to the reduction rate actual value D2a. Thereafter, the size adjustment unit 12F shifts the process to step S204.

前記事前調整後フォントサイズの算出に用いられる縮小率実績値D2aは、指定フォント名J01bが表す前記指定フォントおよび内蔵ストレージ3から得られた代用フォントデータD12に対応する縮小率実績値D2aである。   The reduction rate actual value D2a used for calculating the pre-adjusted font size is the reduction rate actual value D2a corresponding to the designated font represented by the designated font name J01b and the substitute font data D12 obtained from the internal storage 3. .

<工程S204>
工程S203bで前記事前調整後フォントサイズが算出された場合、工程S204において、文字列ラスタライズ部12Cは、代用フォントデータD12が前記事前調整後フォントサイズに従ってサイズ調整されたラスタデータを前記代用文字列ラスタデータとして生成する。
<Step S204>
When the pre-adjusted font size is calculated in step S203b, in step S204, the character string rasterizing unit 12C determines that the substitute font data D12 has raster data whose size has been adjusted according to the pre-adjusted font size as the substitute character. Generate as column raster data.

即ち、対応する縮小率実績値D2aが既に記録されている代用フォントデータD12についての前記文字列ラスタライズ処理(S204)は、サイズ指定コードJ01cが表すフォントサイズの代わりに、前記事前調整後フォントサイズを用いて実行される。   That is, the character string rasterization process (S204) for the substitute font data D12 in which the corresponding reduction rate actual value D2a has already been recorded is performed by using the pre-adjusted font size instead of the font size represented by the size designation code J01c It is executed using

本実施形態によれば、工程S204において、代用フォントデータD12についての前記文字列ラスタライズ処理が1回行われるだけで、代用文字列画像g2が許容領域903内に収まる可能性が高くなる。その結果、画像処理部12の演算負荷が軽減され、描画用ラスタデータD0が速やかに生成される可能性が高くなる。   According to the present embodiment, in step S <b> 204, the substitute character string image g <b> 2 is likely to be within the allowable area 903 only by performing the character string rasterization process for the substitute font data D <b> 12 once. As a result, the calculation load on the image processing unit 12 is reduced, and there is a high possibility that the drawing raster data D0 is generated promptly.

[応用例]
図7に示される工程S203a,S203b,S204,S208aの処理が、第1実施形態における前記描画用データ生成処理(図3)に適用されることも考えられる。
[Application example]
It is also conceivable that the processes in steps S203a, S203b, S204, and S208a shown in FIG. 7 are applied to the drawing data generation process (FIG. 3) in the first embodiment.

また、画像処理装置10,10Aにおいて、フォントデータD1を予め記憶する不揮発性の記憶部が、通信部5を通じて通信可能な他装置の記憶部であることも考えられる。この場合、画像処理装置10,10Aは、前記他装置の記憶部から通信部5を通じて指定フォントデータD11および代用フォントデータD12を取得する。   In the image processing apparatuses 10 and 10 </ b> A, the nonvolatile storage unit that stores font data D <b> 1 in advance may be a storage unit of another device that can communicate through the communication unit 5. In this case, the image processing apparatuses 10 and 10A acquire the designated font data D11 and the substitute font data D12 from the storage unit of the other apparatus through the communication unit 5.

なお、本発明に係る画像処理装置は、各請求項に記載された発明の範囲において、以上に示された実施形態及び応用例を自由に組み合わせること、或いは実施形態及び応用例を適宜、変形する又は一部を省略することによって構成されることも可能である。   The image processing apparatus according to the present invention can be freely combined with the above-described embodiments and application examples within the scope of the invention described in each claim, or can be modified as appropriate. Alternatively, it may be configured by omitting a part.

1 :制御部
2 :画像形成部
3 :内蔵ストレージ
4 :操作表示部
5 :通信部
8 :端末装置
9 :シート
10 :画像処理装置
10A :画像処理装置
11 :ジョブ制御部
11A :印刷制御部
11B :FAX制御部
11C :サイズ調整実績記録部
11D :実績管理部
12 :画像処理部
12A :ジョブデータ解析部
12B :フォントデータ取得部
12C :文字列ラスタライズ部
12D :はみ出し判定部
12E :縮小率算出部
12F :サイズ調整部(ラスタデータ調整部、描画用データ生成部)
12G :その他ラスタライズ部(描画用データ生成部)
12H :合成部(描画用データ生成部)
13 :UI制御部
80 :ネットワーク
901 :有効領域
902 :優先領域
903 :許容領域
904 :単位代用文字列領域
904a :基点
D0 :描画用ラスタデータ
D1 :フォントデータ
D11 :指定フォントデータ
D12 :代用フォントデータ
D2 :サイズ調整情報
D2a :縮小率実績値
D2b :実績指定フォント名
D2c :実績代用フォント名
J0 :描画ジョブデータ
J01 :指定文字列描画情報
J01a :文字コードデータ
J01b :指定フォント名
J01c :サイズ指定コード
J01x :文字列指定情報
J01y :描画座標データ
J02 :オブジェクト描画情報
J02x :描画内容データ
J02y :描画座標データ
J1 :印刷ジョブデータ
J2 :FAXジョブデータ
g01 :一次画像
g02 :二次画像
g1 :指定文字列画像
g2 :代用文字列画像
g20 :単位代用文字列画像
g3 :その他オブジェクト画像
g4 :リサイズ文字列画像
g40 :単位リサイズ文字列画像
1: control unit 2: image forming unit 3: built-in storage 4: operation display unit 5: communication unit 8: terminal device 9: sheet 10: image processing device 10A: image processing device 11: job control unit 11A: print control unit 11B : FAX control unit 11C: Size adjustment result recording unit 11D: Result management unit 12: Image processing unit 12A: Job data analysis unit 12B: Font data acquisition unit 12C: Character string rasterization unit 12D: Projection determination unit 12E: Reduction rate calculation unit 12F: Size adjustment unit (raster data adjustment unit, drawing data generation unit)
12G: Other rasterization unit (drawing data generation unit)
12H: Synthesizer (drawing data generator)
13: UI control unit 80: Network 901: Effective area 902: Priority area 903: Allowable area 904: Unit substitute character string area 904a: Base point D0: Raster data for drawing D1: Font data D11: Designated font data D12: Substitute font data D2: Size adjustment information D2a: Reduction rate actual value D2b: Actual designation font name D2c: Actual substitution font name J0: Drawing job data J01: Designated character string drawing information J01a: Character code data J01b: Designated font name J01c: Size designation code J01x: Character string designation information J01y: Drawing coordinate data J02: Object drawing information J02x: Drawing content data J02y: Drawing coordinate data J1: Print job data J2: FAX job data g01: Primary image g02: Secondary image g1: Designation String image g2: substitute character string image g20: Unit substitute character string image g3: other object image g4: resize string image g40: Unit resized character string image

Claims (4)

描画文字列を含む描画オブジェクトのページ毎の描画内容情報および描画位置情報を含む描画ジョブデータを取得する描画ジョブデータ取得部と、
前記描画ジョブデータの前記描画内容情報が前記描画文字列についての文字コード、指定フォントおよび指定フォントサイズを表す文字列指定情報を含む場合において、前記指定フォントの情報が予めフォントデータを記憶する不揮発性のフォント記憶部に存在するデータに対応する既存フォントの情報であれば、前記文字列指定情報の前記文字コードおよび前記指定フォントに対応する指定フォントデータを前記フォント記憶部から取得し、前記指定フォントの情報が前記既存フォントの情報でなければ、前記フォント記憶部から前記指定フォントデータに代わる代用フォントデータを取得するフォントデータ取得部と、
前記指定フォントデータが前記フォント記憶部から取得された場合に、前記指定フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである指定文字列ラスタデータを生成し、前記代用フォントデータが前記フォント記憶部から取得された場合に、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである代用文字列ラスタデータを生成する文字列ラスタライズ部と、
前記指定文字列ラスタデータが表す画像である指定文字列画像と、前記代用文字列ラスタデータが表す画像である代用文字列画像と、その他の前記描画オブジェクトに関する前記描画内容情報により特定されるその他オブジェクト画像とが前記描画位置情報に従って配列された画像において、前記代用文字列画像が、ページの有効領域から前記指定文字列画像および前記その他オブジェクト画像が占める優先領域を除いた残りの許容領域からはみ出す場合に、前記代用文字列画像を前記許容領域内に収める縮小率を算出する縮小率算出部と、
前記指定文字列画像と、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像が前記縮小率に従ってサイズ調整された後の画像であるリサイズ文字列画像と、前記その他オブジェクト画像とが前記描画位置情報に従って配列された画像を表す描画用ラスタデータを生成する描画用データ生成部と、を備え
前記縮小率算出部は、文字列の配列方向に沿う行ごとに、1行分の前記代用文字列画像を前記許容領域内に収める行単位縮小率を算出し、同種の前記代用フォントデータごとに前記行単位縮小率の最小値をサイズ調整に用いられる前記縮小率とし、異なる行における同種の前記代用フォントデータに対して、対応する前記行単位縮小率の最小値を前記縮小率として適用する、画像処理装置。
A drawing job data acquisition unit for acquiring drawing job data including drawing content information and drawing position information for each page of a drawing object including a drawing character string;
When the drawing content information of the drawing job data includes character string specifying information indicating a character code, a specified font, and a specified font size for the drawing character string, the specified font information stores font data in advance. If it is information of an existing font corresponding to data existing in the font storage unit, the character code of the character string designation information and designated font data corresponding to the designated font are acquired from the font storage unit, and the designated font If the information is not information of the existing font, a font data acquisition unit that acquires substitute font data in place of the designated font data from the font storage unit;
When the designated font data is acquired from the font storage unit, the designated font data and raster data of a character string image specified by the designated font size are generated, and the substitute font data is generated. A character string rasterizing unit that generates substitute character string raster data that is raster data of a character string image specified by the substitute font data and the designated font size;
A designated character string image that is an image represented by the designated character string raster data, a substitute character string image that is an image represented by the substitute character string raster data, and other objects specified by the drawing content information regarding the other drawing objects When the image is arranged in accordance with the drawing position information, the substitute character string image protrudes from the remaining allowable area excluding the priority area occupied by the designated character string image and the other object image from the effective area of the page. In addition, a reduction ratio calculation unit that calculates a reduction ratio that fits the substitute character string image in the allowable area;
The designated character string image, a resized character string image that is an image after the character string image specified by the substitute font data and the designated font size is adjusted according to the reduction ratio, and the other object image are A drawing data generation unit for generating drawing raster data representing images arranged according to the drawing position information ,
The reduction ratio calculation unit calculates a line-by-line reduction ratio for storing the substitute character string image for one line in the allowable area for each line along the arrangement direction of the character strings, and for each substitute font data of the same type The minimum value of the line unit reduction ratio is used as the reduction ratio used for size adjustment, and the corresponding minimum value of the line unit reduction ratio is applied as the reduction ratio to the substitute font data of the same type in different lines. Image processing device.
前記描画用データ生成部は、
前記代用文字列ラスタデータを前記縮小率に従ってサイズ調整するラスタデータ調整部と、
前記描画内容情報に従って前記その他オブジェクト画像のラスタデータであるその他オブジェクトラスタデータを生成するその他ラスタライズ部と、
前記指定文字列ラスタデータとサイズ調整後の前記代用文字列ラスタデータと前記その他オブジェクトラスタデータとを合成することにより前記描画用ラスタデータを生成する合成部と、を備える、請求項に記載の画像処理装置。
The drawing data generation unit
A raster data adjustment unit for adjusting the size of the substitute character string raster data according to the reduction ratio;
Other rasterizing unit for generating other object raster data that is raster data of the other object image according to the drawing content information;
And a synthesizing unit configured to generate the drawing raster data by combining said substitute character string raster data and the other objects raster data of the string raster data and size after the adjustment, according to claim 1 Image processing device.
前記描画用ラスタデータに基づいてシートに画像を形成する画像形成部をさらに備える、請求項1または請求項2に記載の画像処理装置。 The image processing apparatus according to claim 1, further comprising an image forming unit that forms an image on a sheet based on the drawing raster data. 描画文字列を含む描画オブジェクトのページ毎の描画内容情報および描画位置情報を含む描画ジョブデータを取得する工程と、
前記描画ジョブデータの前記描画内容情報が前記描画文字列についての文字コード、指定フォントおよび指定フォントサイズを表す文字列指定情報を含む場合において、前記指定フォントの情報が予めフォントデータを記憶する不揮発性のフォント記憶部に存在するデータに対応する既存フォントの情報であれば、前記文字列指定情報の前記文字コードおよび前記指定フォントに対応する指定フォントデータを前記フォント記憶部から取得し、前記指定フォントの情報が前記既存フォントの情報でなければ、前記フォント記憶部から前記指定フォントデータに代わる代用フォントデータを取得する工程と、
前記指定フォントデータが前記フォント記憶部から取得された場合に、前記指定フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである指定文字列ラスタデータを生成し、前記代用フォントデータが前記フォント記憶部から取得された場合に、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像のラスタデータである代用文字列ラスタデータを生成する工程と、
前記指定文字列ラスタデータが表す画像である指定文字列画像と、前記代用文字列ラスタデータが表す画像である代用文字列画像と、その他の前記描画オブジェクトに関する前記描画内容情報により特定されるその他オブジェクト画像とが前記描画位置情報に従って配列された画像において、前記代用文字列画像が、ページの有効領域から前記指定文字列画像および前記その他オブジェクト画像が占める優先領域を除いた残りの許容領域からはみ出す場合に、前記代用文字列画像を前記許容領域内に収める縮小率を算出する工程と、
前記指定文字列画像と、前記代用フォントデータおよび前記指定フォントサイズにより特定される文字列画像が前記縮小率に従ってサイズ調整された後の画像であるリサイズ文字列画像と、前記その他オブジェクト画像とが前記描画位置情報に従って配列された画像を表す描画用ラスタデータを生成する工程と、を含み、
前記縮小率を算出する工程は、文字列の配列方向に沿う行ごとに、1行分の前記代用文字列画像を前記許容領域内に収める行単位縮小率を算出し、同種の前記代用フォントデータごとに前記行単位縮小率の最小値をサイズ調整に用いられる前記縮小率とし、異なる行における同種の前記代用フォントデータに対して、対応する前記行単位縮小率の最小値を前記縮小率として適用する工程である、画像処理方法。
Obtaining drawing job data including drawing content information and drawing position information for each page of a drawing object including a drawing character string;
When the drawing content information of the drawing job data includes character string specifying information indicating a character code, a specified font, and a specified font size for the drawing character string, the specified font information stores font data in advance. If it is information of an existing font corresponding to data existing in the font storage unit, the character code of the character string designation information and designated font data corresponding to the designated font are acquired from the font storage unit, and the designated font If the information is not information of the existing font, obtaining the substitute font data to replace the designated font data from the font storage unit;
When the designated font data is acquired from the font storage unit, the designated font data and raster data of a character string image specified by the designated font size are generated, and the substitute font data is generated. Generating the substitute character string raster data that is the raster data of the character string image specified by the substitute font data and the designated font size,
A designated character string image that is an image represented by the designated character string raster data, a substitute character string image that is an image represented by the substitute character string raster data, and other objects specified by the drawing content information regarding the other drawing objects When the image is arranged in accordance with the drawing position information, the substitute character string image protrudes from the remaining allowable area excluding the priority area occupied by the designated character string image and the other object image from the effective area of the page. And calculating a reduction ratio that fits the substitute character string image in the allowable area;
The designated character string image, a resized character string image that is an image after the character string image specified by the substitute font data and the designated font size is adjusted according to the reduction ratio, and the other object image are generating a drawing raster data representing an array image in accordance with the drawing position information, only including,
The step of calculating the reduction ratio calculates a line unit reduction ratio for storing the substitute character string image for one line in the allowable area for each line along the arrangement direction of the character strings, and the substitute font data of the same kind The minimum value of the line unit reduction ratio is used as the reduction ratio used for size adjustment every time, and the corresponding minimum value of the line unit reduction ratio is applied as the reduction ratio to the substitute font data of the same type in different lines. An image processing method which is a step of
JP2016151961A 2016-08-02 2016-08-02 Image processing apparatus and image processing method Expired - Fee Related JP6597510B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016151961A JP6597510B2 (en) 2016-08-02 2016-08-02 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016151961A JP6597510B2 (en) 2016-08-02 2016-08-02 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2018022972A JP2018022972A (en) 2018-02-08
JP6597510B2 true JP6597510B2 (en) 2019-10-30

Family

ID=61165818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016151961A Expired - Fee Related JP6597510B2 (en) 2016-08-02 2016-08-02 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP6597510B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021063949A (en) 2019-10-16 2021-04-22 京セラドキュメントソリューションズ株式会社 Information processing apparatus and image forming apparatus

Also Published As

Publication number Publication date
JP2018022972A (en) 2018-02-08

Similar Documents

Publication Publication Date Title
JP2008293105A (en) Printer driver program and image forming apparatus
JP6447564B2 (en) Image forming apparatus, program, and information processing system
JP5590960B2 (en) Image forming apparatus, image forming method, and program
JP2006268320A (en) Print control device, method and program
JP6597510B2 (en) Image processing apparatus and image processing method
JP2018020471A (en) Image processing apparatus and image processing method
JP5929689B2 (en) Preview image generation apparatus, preview image generation method, and computer program
JP6601426B2 (en) Image processing apparatus and image processing method
JP5667135B2 (en) Image forming apparatus
JP6175880B2 (en) Document output device, document output device control method, and document output device control program
WO2021137899A1 (en) Image forming apparatus selectively applying eco mode
JP2009143124A (en) Image processing apparatus
JP6015478B2 (en) Control device, control method, and printer driver program
US9348547B2 (en) Document distribution server and document distribution method
JP7367459B2 (en) Image forming device
JP5966805B2 (en) Control device for printing
US20170099399A1 (en) Image forming apparatus
JP5125888B2 (en) Printing apparatus and program
JP2006218819A (en) Image formation apparatus, image processing apparatus, program, and image processing method
JP7152879B2 (en) Information processing device and its control method and program
JP2010171597A (en) Image processing apparatus
JP2016021641A (en) Information processor and program
JP5310538B2 (en) Print control program and information processing apparatus
JP6518155B2 (en) Information processing apparatus, information processing method
JP7002826B2 (en) Data processing equipment, information processing equipment, image forming equipment, data processing method, and printer driver

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180627

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190507

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190624

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190903

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190916

R150 Certificate of patent or registration of utility model

Ref document number: 6597510

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees