printer
The printer efficiently identifies font files using allocation information, addressing processing delays in conventional printers by associating font files with specific information in print data, thereby improving printing speed.
Patent Information
- Application Number
- JP2023069343
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
AI Technical Summary
Conventional printers that use page description language for printing face complications in identifying font files, leading to processing delays due to complex procedures for specifying fonts.
A printer equipped with a memory to store multiple font files and allocation information, which associates specific information in print data with font files, enabling efficient identification of corresponding font files through acquisition and specification processes.
The printer can quickly identify font files corresponding to specified fonts, reducing processing delays and enhancing printing efficiency.
Smart Images

Figure 2024155012000001_ABST
Abstract
Description
[Technical field]
[0001] The technical field disclosed in this specification relates to a printer capable of printing based on print data described in a page description language. [Background technology]
[0002] Conventionally, among printers capable of printing based on print data written in a page technology language, there are those that store font information for built-in fonts in advance and use that font information for printing, as disclosed in Patent Document 1, for example. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2014-56583 A Summary of the Invention [Problem to be solved by the invention]
[0004] In order for a printer to draw text in a font specified in print data, it is necessary to identify a font file corresponding to the specified font. It is not desirable for the procedure for identifying this font file to be complicated, as this will lead to processing delays. The technology disclosed in Patent Document 1 does not describe the process for identifying a font file corresponding to a specified font, and there is room for improvement. [Means for solving the problem]
[0005] A printer made to solve this problem is a printer equipped with a memory, a printing engine, and a controller, wherein the memory is capable of storing a plurality of font files and allocation information, wherein the allocation information is information that associates specific information for identifying a font with one of the font files, and the specific information is information that may be included in print data, and the controller is configured to be capable of executing a first acquisition process to acquire print data, a second acquisition process to acquire the specific information from the print data acquired in the first acquisition process, a specific process to identify, from the plurality of font files, one of the font files that is associated with the specific information acquired in the second acquisition process using the allocation information, and a drawing process to draw text using the font file identified in the specific process.
[0006] The printer disclosed in this specification can store allocation information that associates font specification information with a font file. The printer acquires the specification information from the acquired print data, and identifies the font file associated with the acquired specification information using the stored allocation information. This allows the printer to easily identify the font file corresponding to the font specified in the print data, and suppresses processing delays.
[0007] A printing system including the printer, a control method for implementing the functions of the printer, a computer program, and a computer-readable storage medium storing the program are also novel and useful. Effect of the Invention
[0008] According to the technology disclosed in this specification, a technology is realized that can easily identify a font file that corresponds to a font specified in print data. [Brief description of the drawings]
[0009] [Figure 1]FIG. 1 is a block diagram showing a schematic configuration of a printer. [Diagram 2] 13 is a flowchart showing the procedure of a DL font saving process. [Diagram 3] FIG. 2 is an explanatory diagram showing an example of the configuration of a glyph data file. [Figure 4] FIG. 2 is an explanatory diagram showing an example of the configuration of allocation information; [Diagram 5] FIG. 13 is an explanatory diagram showing an example of a font management screen. [Figure 6] 10 is a flowchart showing a procedure of a printing process. [Figure 7] 11 is a flowchart showing the procedure of a font specification process when print data is in PDF format. [Figure 8] 11 is a flowchart showing the procedure of a font specification process when print data is in PCL5 format. [Figure 9] 13 is a flowchart showing a procedure for allocation information storage processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A printer according to an embodiment will be described in detail below with reference to the accompanying drawings. The present embodiment discloses a printer capable of printing based on print data described in a page description language.
[0011] As shown in Fig. 1, the printer 1 includes a control unit 10 including a CPU 11 and a memory 12. The printer 1 also includes a user interface (hereinafter referred to as "user IF") 13, a communication interface (hereinafter referred to as "communication IF") 14, and a print engine 15. The CPU 11 is an example of a controller. The user IF 13, the communication IF 14, and the print engine 15 are all electrically connected to the control unit 10. Note that the control unit 10 in Fig. 1 is a general term for hardware and software used to control the printer 1, and does not necessarily represent a single piece of hardware actually present in the printer 1.
[0012] The CPU 11 executes various processes according to a program read from the memory 12 or based on a user's operation. Various programs and various data are stored in the memory 12. The memory 12 is also used as a working area when various processes are executed. The memory 12 may include a buffer provided in the CPU 11.
[0013] An example of memory 12 is not limited to a ROM, RAM, HDD, etc. built into printer 1, but may be a storage medium that is readable and writable by CPU 11. A storage medium that is readable by CPU 11 is a non-transitory medium. In addition to the above examples, non-transitory media also include recording media such as CD-ROM and DVD-ROM. Non-transitory media are also tangible media. On the other hand, an electrical signal that carries a program downloaded from server 100 on the Internet is a type of medium that is readable by CPU 11, but is not included in an example of memory 12.
[0014] The user IF 13 includes hardware for displaying a screen for notifying the user of information and hardware for accepting operations by the user. The user IF 13 may include a touch panel, or may be a combination of a display unit and an operation button.
[0015] The communication IF 14 includes hardware for communicating with an external device. The communication standards of the communication IF 14 are Ethernet (registered trademark), Wi-Fi (registered trademark), USB, etc. The printer 1 may be provided with a plurality of communication IFs 14 compatible with a plurality of communication standards.
[0016] Print engine 15 includes a device capable of printing based on image data by, for example, an electrophotographic method or an inkjet method. Print engine 15 may be equipped with coloring materials of multiple colors and capable of color printing, or may be equipped with coloring materials of only one color and perform monochrome printing.
[0017] The printer 1 can communicate with external devices such as a server 100 and a personal computer (hereinafter, referred to as "PC") 200, as shown in Fig. 1, via the communication IF 14. The server 100 and the PC 200 may store font information. The font information stored in the server 100 and the PC 200 may be information in the format of, for example, a TrueType font, an OpenType font, or a PostScript font.
[0018] 1, for example, a print control program 21, DL font A information 22, and DL font B information 23 are stored in the memory 12 of the printer 1. The DL font A information 22 and the DL font B information 23 are information on downloaded fonts (hereinafter referred to as "DL fonts"). DL fonts are fonts that are not pre-installed in the printer 1. Information on DL fonts is not stored in the memory 12 when the printer 1 is shipped from the factory. Note that the printer 1 may also have information on internal fonts that are pre-stored in the memory 12 when shipped from the factory, separate from the DL fonts.
[0019] Based on a user's instruction, printer 1 can obtain DL font information from an external device such as server 100 or PC 200, and store the information in memory 12. If DL font information is stored in memory 12, printer 1 can use the DL font for printing. In addition, a user can, for example, connect a USB memory device on which DL font information is stored to printer 1, and have printer 1 use the DL font.
[0020] DL font A information 22 is information relating to font A, which is one of the DL fonts. DL font A information 22 includes a glyph data file 221 of font A and allocation information 222. DL font B information 23 is information relating to font B, which is a DL font different from font A. DL font B information 23 includes a glyph data file 231 of font B and allocation information 232. Glyph data files 221 and 231 are examples of font files. Details of each information will be described later.
[0021] Next, the operation of the printer 1 of the embodiment will be described. The following process basically indicates the processing of the CPU 11 according to the commands written in the program. The processing by the CPU 11 also includes hardware control via the API of the operating system (hereinafter referred to as "OS"). In this specification, the description of the OS may be omitted and the operation of each program may be described. Also, "acquisition" is used as a concept that includes acquisition by request and acquisition without request. Data that has the same substantial meaning but different formats will be treated as the same data.
[0022] First, the procedure for the DL font saving process will be described with reference to the flowchart in Fig. 2. The DL font saving process is executed by the CPU 11 of the printer 1 in response to receiving a PJL command instructing the saving of DL font information. The PJL command is a command for causing the printer 1 to execute various processes not including printing. The printer 1 can receive DL font information by a predetermined PJL command transmitted from the PC 200, for example.
[0023] 1, the PC 200 includes a font management program 201 corresponding to the printer 1. The PC 200 can transmit a PJL command to the printer 1 to instruct the printer 1 to save DL font information based on a user's operation using the font management program 201. The PJL command transmitted from the PC 200 includes binary data including information indicating the save destination path and DL font information. The procedure for transmitting the PJL command in the PC 200 will be described in detail later.
[0024] When the received PJL command is a PJL command for instructing the saving of DL font information, the CPU 11 of the printer 1 first acquires information indicating the path of the save destination (S101).Then, the CPU 11 acquires the binary data transmitted following the information indicating the path of the save destination (S102).
[0025] The binary data acquired in S102 includes a font ID and a glyph data file in TrueType font format. The font ID is an identification number set for each DL font. The font ID is information used to identify the font to be used when printing characters based on print data in PCL5 format provided by Hewlett-Packard (registered trademark). The printing procedure will be described later.
[0026] The glyph data file is a file that includes glyph data for each character in the DL font. The glyph data is information that indicates the outline of each character. For example, as shown in Fig. 3, a glyph data file 30 in a TrueType font format includes a name table 31, a character table 32, and a glyph table 34. The glyph data file 30 may further include information that indicates the printing position and information that indicates the character width for each character.
[0027] The name table 31 is information indicating the font name, which is the name associated with this DL font. The font name is information used to identify the font when printing characters based on print data in PDF format. Note that multiple names may be set for one type of font, for example, depending on whether uppercase or lowercase letters are used, or whether symbols such as spaces or hyphens are used. In such a case, the name table 31 includes all of the multiple types of names that can identify this font.
[0028] The character table 32 is a table that associates, for each character, a character code that indicates the character with a storage location of the glyph data of the character. Note that the character table 32 is not limited to information represented by one table, and may be, for example, a combination of multiple tables, as long as it is information that can associate a character code with glyph data.
[0029] The glyph table 34 is a table that stores multiple glyph data such as glyph data 341, 342 for multiple characters. When a drawing object indicating printing of a character is included in the print data, the printer 1 obtains the shape of the character using the glyph data of the corresponding character.
[0030] Returning to the explanation of the DL font saving process in FIG. 2, the CPU 11 acquires a font ID from the binary data (S111). S111 is an example of a first determination process. Note that the printer 1 will not accept a font ID that is the same as a font ID used in DL font information already stored in the memory 12. If the font ID acquired from the received PJL command has the same numerical value as a font ID already stored in the memory 12, the printer 1 may, for example, report an error and end the DL font saving process.
[0031] Furthermore, the CPU 11 identifies the name table 31 from the glyph data file 30 included in the binary data (S112). Then, the CPU 11 acquires all names included in the name table 31 (S113). S113 is an example of a first read process. Furthermore, the CPU 11 acquires the number of acquired names (S114).
[0032] CPU 11 creates a directory for storing DL font information based on the information indicating the path of the storage destination obtained in S101 (S121). CPU 11 then stores the acquired glyph data file 30 in the created directory (S122). S122 is an example of storage processing. CPU 11 may process glyph data file 30 to make it easier to use for printing before storing it.
[0033] The CPU 11 creates (S125) allocation information corresponding to the saved glyph data file 30. The allocation information is information for identifying the glyph data file 30 to be used when the use of a DL font is specified in the print data.
[0034] For example, as shown in Fig. 4, allocation information 40 corresponding to glyph data file 30 includes a font ID 41, a number of name candidates 42, and a number of name candidate data 43, 44 corresponding to the number of name candidates 42. The allocation information 40 shown in Fig. 4 is an example in which two types of names are included in name table 31. In other words, the number of name candidates 42 in allocation information 40 is "2". Furthermore, allocation information 40 includes first name candidate data 43 and second name candidate data 44.
[0035] The font ID 41 included in the allocation information 40 is a numerical value obtained in S111 of the DL font saving process. The number of name candidates 42 is the number of names obtained in S114. If the name table 31 of the glyph data file 30 contains multiple font names, the allocation information 40 contains multiple name candidate data. Furthermore, the number of name candidates 42 is a number equal to or greater than 2.
[0036] The first name candidate data 43 included in the allocation information 40 includes the number of characters in the name of the font and a character string. The character string of the first name candidate data 43 is information indicating the name of the font obtained in S113. The character string of the first name candidate data 43 is an example of a first font name. Furthermore, the second name candidate data 44 included in the allocation information 40 includes the number of characters in the name of the font and a character string. The character string of the second name candidate data 44 is information indicating the name of the font obtained in S113. The character string of the second name candidate data 44 is an example of a second font name.
[0037] Returning to the explanation of the DL font saving process in Fig. 2, the CPU 11 saves the created allocation information 40 in the memory 12 (S126), and ends the DL font saving process. S125 and S126 are an example of a first creation process.
[0038] In S126, the CPU 11 saves the allocation information 40 as a file separate from the glyph data file 30, for example, in the directory created in S121. That is, the printer 1 creates one piece of allocation information 40 for each glyph data file 30. The printer 1 then saves the created piece of allocation information 40 in the same directory as the glyph data file 30. That is, the printer 1 associates the allocation information 40 with the corresponding glyph data file 30 and saves it in the memory 12. In this way, there is little possibility of affecting the allocation information of other fonts already stored in the memory 12.
[0039] Next, a procedure for PC 200 to send a PJL command instructing printer 1 to save DL font information will be described. A font management program 201 included in PC 200 can display a font management screen 50 on the display of PC 200 based on a user instruction, for example, as shown in Fig. 5. The font management program 201 is executed by a user having administrator authority for printer 1, for example.
[0040] This font management screen 50 is, for example, a screen that accepts an instruction to manage information on DL fonts of a printer connected to the PC 200. The font management program 201 can accept an instruction on the font management screen 50 to transfer the glyph data file 30 of the DL font stored in the memory of the PC 200 to the printer 1.
[0041] On the font management screen 50, the PC 200 can accept input of a file name 51, a font name 52, and a font ID 53 for a DL font to be transferred. The file name 51 is information indicating a glyph data file 30 stored in the PC 200.
[0042] Font name 52 is a name for managing each DL font in PC 200. Font name 52 may be the same as the name of the font included in name table 31 (see FIG. 3) of glyph data file 30, or may be different. Font management program 201 of PC 200 creates information indicating the save destination path, for example, based on the name specified by font name 52. Font ID 53 is a font ID for identifying this font.
[0043] Furthermore, the font management screen 50 includes a printer designation field 54 that accepts the designation of a printer to be managed. The PC 200 communicates with the printer designated in the printer designation field 54 in accordance with the font management program 201, and acquires information on DL fonts already saved in that printer. For example, if the printer designated in the printer designation field 54 is printer 1, the font management program 201 displays font A and font B as saved font information 55, as shown in FIG. 5. The font management program 201 does not accept, as the font ID 53, a numerical value that is the same as the font ID of a font included in the saved font information 55.
[0044] When PC 200 accepts an operation on transfer button 56 on font management screen 50, it creates and sends a PJL command based on font management program 201. Specifically, PC 200 creates a PJL command including information indicating a destination path created based on font name 52, the font ID accepted in font ID 53, and the data of the file specified in file name 51. PC 200 then sends the created PJL command to a printer specified in printer specification field 54, for example printer 1. Note that font management program 201 may accept destination path information on font management screen 50 instead of creating the information based on font name 52.
[0045] By receiving the PJL command transmitted from the PC 200, the printer 1 executes the DL font saving process described above. As a result, the printer 1 receives the data of the file specified in the file name 51 and stores it in the memory 12 as the glyph data file 30. Furthermore, the printer 1 creates allocation information 40 corresponding to this glyph data file 30 and stores it in the memory 12.
[0046] The font management program 201 may be capable of receiving an instruction to delete font information included in the saved font information 55 on the font management screen 50 from the printer 1. When a deletion instruction is received, the font management program 201 creates a PJL command instructing the deletion and sends it to the printer 1.
[0047] Next, the procedure of the print process executed by the printer 1 will be described with reference to the flowchart in Fig. 6. This print process is executed by the CPU 11 of the printer 1 based on the print control program 21 when an instruction to execute a print job is accepted. Note that the printer 1 may receive and acquire the print job from an external device via the communication IF 14, or may read and acquire the print job from a USB memory attached to the communication IF 14.
[0048] The CPU 11 acquires PJL data from a print job to be processed (S201). The print job includes PJL data and PDL data. The PJL data is data indicating various parameters related to printing. The PDL data is data indicating an image to be printed. The PDL data is data described in a page description language in a format such as PCL or PDF.
[0049] CPU 11 can identify the format of the PDL data based on the PJL data. CPU 11 then determines the type of information for identifying the glyph data file 30 to be used for printing based on the format of the PDL data. Specifically, if the PDL data is in PDF format, CPU 11 identifies glyph data file 30 based on the name of the font. Also, if the PDL data is in PCL5 format, CPU 11 identifies glyph data file 30 using the font ID.
[0050] CPU 11 acquires PDL data, which is print data (S202). S202 is an example of a first acquisition process. CPU 11 then determines whether or not information for identifying the font of the characters to be printed has been acquired based on the acquired print data (S203). For example, when a font dictionary has been acquired from print data in PDF format, or when a font ID setting command or a font ID selection command has been acquired from print data in PCL5 format, CPU 11 determines that information for identifying the font has been acquired.
[0051] When it is determined that the information for identifying the font has been acquired (S203: YES), the CPU 11 executes a font identification process (S204). The procedure of the font identification process will be described with reference to the flowcharts of Fig. 7 and Fig. 8. The flowchart of Fig. 7 shows the procedure of the font identification process when the print data is in PDF format. The flowchart of Fig. 8 shows the procedure of the font identification process when the print data is in PCL5 format.
[0052] If the print data is in PDF format, the CPU 11 determines that the information for identifying a font has been acquired by acquiring the font dictionary (YES in S203), and proceeds to S204 to execute the font identification process shown in FIG.
[0053] 7, the CPU 11 starts analyzing the font dictionary (S311). Then, the CPU 11 determines whether or not font information of the font used for printing is embedded in the font dictionary (S312).
[0054] If it is determined that font information is embedded in the font dictionary (S312: YES), CPU 11 specifies the font of the embedded font information as the font to be used for printing (S318). CPU 11 then reads out the font information from the font dictionary. In this case, in the subsequent steps, CPU 11 obtains glyph data using the font information read out from the font dictionary.
[0055] On the other hand, if it is determined that the font information is not embedded (S312: NO), the CPU 11 acquires information on the font name that specifies the font from the font dictionary (S313). The font name is an example of specific information. S313 is an example of a second acquisition process.
[0056] Then, the CPU 11 searches for the font name acquired in S313 from all the name candidates included in all the allocation information 222, 232, etc. stored in the memory 12 (S314). Specifically, the CPU 11 reads out the name candidates included in all the allocation information 222, 232, etc. in order, and checks whether the read out name candidates match the font name to be searched acquired in S313.
[0057] Then, the CPU 11 determines whether or not there is a character string that matches the font name to be searched for among the character strings of the name candidates in the allocation information 222, 232, etc. stored in the memory 12 (S315). If it is determined that there is a character string that matches the font name (S315: YES), the CPU 11 identifies the glyph data file 30 that corresponds to the allocation information 40 with the matching font name, and identifies the glyph data file 30 as the information to be used for printing (S318).
[0058] Specifically, CPU 11 identifies, as information to be used for printing, glyph data file 30 stored in the same directory as allocation information 40 with a matching font name. S318 in this case is an example of a specification process. In the subsequent procedures, CPU 11 obtains glyph data from glyph data file 30 identified in S318.
[0059] In addition, when the allocation information 40 includes character strings of multiple types of name candidates, if any one of them matches the font name to be searched, the CPU 11 determines that the font name in the allocation information 40 matches. For example, as shown in FIG. 4, when two name candidate data 43 and 44 are stored in the allocation information 40, the CPU 11 determines that the font name in the allocation information 40 matches whether the font name to be searched matches the character string in the name candidate data 43 or the character string in the name candidate data 44. When one glyph data file 30 includes multiple names, the allocation information 40 includes multiple names. Therefore, the CPU 11 can identify the same glyph data file 30 regardless of which font name is specified.
[0060] That is, printer 1 acquires the font name included in the print data, and searches for that font name in allocation information 40 to identify glyph data file 30. This allows printer 1 to quickly identify glyph data file 30, compared to, for example, reading out each glyph data file 30, extracting the font name from each glyph data file 30, and searching for them in order.
[0061] If it is determined that there is no character string matching the search target font name among the character strings of the name candidates in the allocation information 222, 232, etc. (S315: NO), the CPU 11 determines whether or not there is an alternative font (S316). In this case, the alternative font is a font that can be used for print data in PDF format. The printer 1 may have information on a font that can be used for print data in PDF format as one of the built-in fonts, for example.
[0062] If it is determined that an alternative font is available (S316: YES), the CPU 11 specifies the alternative font as the font to be used for printing (S318). In this case, in the subsequent steps, the CPU 11 obtains glyph data from the font information of the alternative font.
[0063] On the other hand, if font information is not embedded, there is no matching font name in the allocation information, and it is determined that there is no alternative font (S316: NO), the CPU 11 determines to notify an error since there is no appropriate font information (S319). In this case, the CPU 11 determines that an error has occurred since it cannot obtain font information and cannot properly print characters.
[0064] After S318 or S319, the CPU 11 ends the font specification process and returns to the printing process (FIG. 6).
[0065] On the other hand, if the print data is in PCL5 format, the CPU 11 determines that it has acquired information for identifying a font by acquiring a font ID setting command or a font ID selection command (YES in S203 of FIG. 6), proceeds to S204, and executes the font identification process shown in FIG. 8.
[0066] In the font specification process shown in Fig. 8, the CPU 11 determines whether or not a font ID setting command was acquired in S203 of the print process (S321). The font ID setting command is information for setting a font ID for an embedded font when font information is embedded in the print data. In other words, when the font ID setting command is acquired, it is highly likely that font information for the font to be used is embedded in the print data.
[0067] If it is determined that a font ID setting command has been acquired (S321: YES), the CPU 11 acquires font information embedded in the print data, and sets the font ID set by the font ID setting command to the font information (S322).
[0068] After S322, or when it is determined that the font ID setting command has not been acquired (S321: NO), the CPU 11 determines whether or not a font ID selection command has been acquired (S323). The font ID selection command includes a font ID and is a command that instructs that the font indicated by the font ID be used for printing. The font ID included in the font ID selection command is an example of specific information. S323 is an example of a second acquisition process.
[0069] When it is determined that the font ID selection command has been acquired (S323: YES), the CPU 11 searches for the font ID specified by the font ID selection command from among the font IDs included in all the allocation information 222, 232, etc. stored in the memory 12 and the font ID set in S322 (S324). Specifically, the CPU 11 reads out the font IDs included in all the allocation information 222, 232, etc. in order, and checks whether the read font ID matches the font ID to be searched acquired in S323.
[0070] Then, the CPU 11 determines whether the font ID to be searched for is included in the font IDs included in the allocation information 222, 232, etc. stored in the memory 12 or the font ID set in S322 (S325). If it is determined that the font ID is included (S325: YES), the CPU 11 identifies a font to be used for printing based on the font ID (S328).
[0071] Specifically, when the font ID to be searched matches the font ID included in the allocation information 40, the CPU 11 identifies the glyph data file 30 stored in the same directory as the allocation information 40 as the information to be used for printing. S328 in this case is an example of the identification process. Also, when the font ID to be searched matches the font ID set in S322, the CPU 11 identifies the font information acquired in S322 as the information to be used for printing. In the subsequent procedures, the CPU 11 acquires glyph data from the font information identified in S328.
[0072] Printer 1 acquires the font ID from the font ID selection command in the print data, and identifies glyph data file 30 by searching for the font ID in allocation information 40. This allows printer 1 to easily identify glyph data file 30 corresponding to the font ID specified in the print data, even if the print data does not have an embedded font and a font ID is set.
[0073] On the other hand, if it is determined that the font ID selection command has not been acquired (S323: NO), the CPU 11 determines whether or not there is an alternative font (S326). In this case, the alternative font is a font that can be used for print data in PCL5 format. The printer 1 may have information on a font that can be used for print data in PCL5 format as one of the built-in fonts, for example.
[0074] If it is determined that an alternative font is available (S326: YES), the CPU 11 specifies the alternative font as the font to be used for printing (S328). In this case, in the subsequent steps, the CPU 11 obtains glyph data from the font information of the alternative font.
[0075] If there is no font ID that matches the font ID to be searched for (S325: NO), or if there is no alternative font (S326: NO), the CPU 11 determines to notify an error since there is no appropriate font information (S329). In this case, the CPU 11 determines that an error has occurred since it cannot obtain font information and cannot properly print characters.
[0076] After S328 or S329, the CPU 11 ends the font specification process, and returns to the printing process (FIG. 6).
[0077] Returning to the description of the printing process procedure in Fig. 6, after the font identification process in S204, CPU 11 judges whether or not the font has been identified (S205). In the font identification process in S204, if the print data is in PDF format, CPU 11 searches for the font using the font name, and if the print data is in PCL5 format, CPU 11 searches for the font using the font ID. Since both the font name and font ID information are stored in allocation information 40, and this allocation information 40 is associated with one glyph data file 30, glyph data file 30 can be easily identified regardless of the format of the print data.
[0078] If it is determined that the font has been specified, that is, if it is determined that the glyph data to be used, such as the glyph data file 30 or glyph data of an embedded font, has been specified (S205: YES), the CPU 11 proceeds to S202 and further obtains print data.
[0079] On the other hand, if the font cannot be identified and it is determined that an error should be notified (S205: NO), the CPU 11 notifies the error (S206) and ends the print process. If it is determined that an error should be notified in S319 or S329 of the font identification process, the CPU 11 determines NO in S205.
[0080] If it is determined that the information for identifying the font type has not been acquired (S203: NO), the CPU 11 determines whether or not a drawing object has been acquired based on the print data acquired in S202 (S211). If it is determined that a drawing object has been acquired (S211: YES), the CPU 11 determines whether or not the acquired drawing object is a text object indicating the drawing of characters (S212).
[0081] If it is determined that a text object has been acquired (S212: YES), the CPU 11 determines whether or not the font to be used for drawing characters has been specified (S213). The CPU 11 determines whether or not the font specification process has been executed in S204 and font information has been specified.
[0082] If it is determined that the font has been specified (S213: YES), CPU 11 uses the information of the specified font to generate intermediate data of the character (S214). Specifically, if the glyph data file 30 has been specified, CPU 11 acquires glyph data corresponding to the character code specified in the print data from the glyph data file 30, and generates intermediate data of the character using the acquired glyph data. S214 is an example of a drawing process.
[0083] If it is determined that the object is not a text object (S212: NO), the CPU 11 generates intermediate data other than characters based on the drawing object (S215). After S214 or S215, the CPU 11 proceeds to S202 to obtain further print data.
[0084] If it is determined that the font has not been specified despite the text object being acquired (S213: NO), the CPU 11 ends the print process, or may notify an error.
[0085] If it is determined that neither the information for identifying the font nor the drawing object has been acquired (S211: NO), the CPU 11 determines whether or not a page end command indicating the end of the page has been acquired based on the print data acquired in S202 (S221). If it is determined that a page end command has not been acquired (S221: NO), the process proceeds to S202, where the CPU 11 acquires further print data.
[0086] If it is determined that a page end command has been received (S221: YES), CPU 11 generates one page of raster data based on the generated intermediate data (S222). CPU 11 then passes the generated raster data to print engine 15 (S223). Print engine 15 prints one page based on the raster data.
[0087] Then, the CPU 11 judges whether or not a job end command has been acquired (S231). If it is judged that the print data of the next page has been acquired instead of the job end command (S231: NO), the process proceeds to S202, where the CPU 11 further executes processing based on the acquired print data. If it is judged that the job end command has been acquired (S231: YES), the CPU 11 ends the print process.
[0088] Next, the procedure of the allocation information saving process will be described with reference to the flowchart in Fig. 9. The allocation information saving process is executed by the CPU 11 of the printer 1 when an instruction to create allocation information 40 corresponding to the glyph data file 30 stored in the memory 12 is accepted via the user IF 13 or the communication IF 14. Note that in Fig. 9 and the following description, the same steps as those in the DL font saving process shown in Fig. 2 are denoted by the same reference numerals, and the description will be simplified.
[0089] Printer 1 can also acquire only glyph data file 30 from an external device instead of the PJL command transmitted from PC 200. Printer 1 can acquire glyph data file 30, for example, by reading it from a USB memory attached to communication IF 14, or by downloading it from server 100 via communication IF 14. If glyph data file 30 acquired from an external device is stored in memory 12, printer 1 can accept an instruction to create allocation information 40 corresponding to that glyph data file 30. Note that the instruction to create allocation information 40 may be transmitted as a PJL command by an application program such as font management program 201.
[0090] In the allocation information saving process, the CPU 11 accepts a selection of a glyph data file 30 for which allocation information 40 is to be created from among the glyph data files 30 stored in the memory 12 (S401). S401 is an example of the selection process. Note that the CPU 11 may notify an error if allocation information 40 corresponding to the glyph data file 30 selected in S401 has already been created.
[0091] Then, the CPU 11 identifies the name table 31 of the selected glyph data file 30 (S112), and acquires all names contained in the name table 31 (S113). S113 in this case is an example of a second read process. Furthermore, the CPU 11 acquires the number of acquired names (S114).
[0092] The CPU 11 acquires all font IDs included in the allocation information 40 corresponding to other glyph data files 30 stored in the memory 12 (S402). Furthermore, the CPU 11 accepts, for example, via the user IF 13, a designation of a font ID to be included in the allocation information 40 to be created (S403). S403 is an example of a second determination process. In S403, the CPU 11 does not accept the same font ID as the font ID acquired in S402. Furthermore, the CPU 11 may transmit information on the font ID determined in S403 to the PC 200 connected to the printer 1, and share it with application programs such as the font management program 201.
[0093] In S403, the CPU 11 may automatically set a font ID other than the font ID acquired in S402 instead of accepting a font ID designated by the user. In this case, the CPU 11 may notify the determined font ID via the user IF 13.
[0094] Then, the CPU 11 creates allocation information 40 corresponding to the glyph data file 30 to be created (S125). Furthermore, the CPU 11 stores the created allocation information 40 in the memory 12 (S126), and ends the allocation information storage process. S125 and S126 in this case are an example of a second creation process.
[0095] Since printer 1 can accept an instruction to create allocation information 40, it can, for example, download glyph data file 30 after shipping and store it in memory 12, and then create allocation information 40 corresponding to that glyph data file 30. On the other hand, if allocation information 40 is created and saved when glyph data file 30 is acquired by the DL font saving process shown in Fig. 2, it will be easy to immediately use the acquired glyph data file 30 for printing.
[0096] Note that the PC 200 may create in advance allocation information 40 corresponding to the glyph data file 30, and transmit the glyph data file 30 and the allocation information 40 corresponding to the glyph data file 30 to the printer 1. When the printer 1 receives the glyph data file 30 and the allocation information 40, it may store them in the same directory.
[0097] As described above in detail, printer 1 of the embodiment stores allocation information 40 including font names and font IDs in association with glyph data files 30, and searches for a font name or font ID obtained from print data from allocation information 40. Therefore, printer 1 can easily identify glyph data file 30 corresponding to the font name or font ID obtained from print data using allocation information 40, and can draw text using identified glyph data file 30. As a result, processing delays when printing is performed by printer 1 can be suppressed.
[0098] The embodiment is merely an example and does not limit the present invention in any way. Therefore, the technology disclosed in this specification can be improved and modified in various ways without departing from the spirit of the technology. For example, the printer 1 is not limited to a printer with a single function, but can be a multifunction machine, a copier, a fax machine, or any other device with a printing function.
[0099] 3 and the configuration of the allocation information 40 shown in FIG. 4 are both examples and are not limited thereto. For example, the glyph data file 30 may further include other information. For example, the allocation information 40 may be included in the glyph data file 30. However, by storing the allocation information 40 as a file separate from the glyph data file 30, it is not necessary to open the glyph data file 30, which is a large file, every time a search is performed, and therefore the search process becomes simple and quick.
[0100] Also, in the embodiment, a directory is created for each DL font, and the glyph data file 30 and allocation information 40 for that font are stored in that directory, but this is not limited to the above. For example, the allocation information 40 for all DL fonts may be stored in one directory, separate from the glyph data files 30. Alternatively, the allocation information 40 for all DL fonts may be saved together in one file. However, in either case, each piece of allocation information 40 is associated with information for identifying the glyph data file 30 that corresponds to that allocation information 40.
[0101] Printer 1 may also include programs and data for implementing an embedded web server function (hereinafter referred to as "EWS"). For example, printer 1 may be able to receive instructions to save DL font information and instructions to create allocation information via the EWS instead of PJL commands.
[0102] In addition, in the embodiment, one font ID is set for one glyph data file 30, but multiple different font IDs may be set for one glyph data file 30. In that case, multiple font IDs are also stored in the allocation information 40 corresponding to one glyph data file 30.
[0103] In the embodiment, the allocation information 40 is searched for information that matches the font name and font ID included in the print data, but a perfect match is not essential, and a one-to-one correspondence is sufficient. For example, the character string of the name candidate may be stored as information in which the font name is separated by a symbol such as parentheses. Also, information indicating the separation of the character string of the name candidate may be provided, in which case information on the number of characters of the name candidate may not be included in the allocation information 40.
[0104] In addition, in any of the flowcharts disclosed in the embodiments, the order of execution of multiple processes in any of the steps can be arbitrarily changed or the processes can be executed in parallel as long as no contradiction occurs in the process content.
[0105] The processes disclosed in the embodiments may be executed by a single CPU, multiple CPUs, hardware such as ASIC, or a combination of these. The processes disclosed in the embodiments may be realized in various forms, such as a recording medium having a program for executing the processes recorded thereon, or a method. [Explanation of symbols]
[0106] 1. Printer 11 CPU 12. Memory 15 Printing Engine
Claims
1. Memory, A print engine; A controller; A printer comprising: The memory includes: Multiple font files and allocation information, the allocation information being information that associates specific information for identifying a font with one of the font files, the specific information being information that may be included in the print data; The controller: A first acquisition process for acquiring print data; a second acquisition process for acquiring the specific information from the print data acquired in the first acquisition process; a process of identifying one of the font files associated with the identification information acquired in the second acquisition process by using the allocation information; a drawing process for drawing text using the font file identified in the identification process; It is possible to The printer that is configured to:
2. 2. The printer according to claim 1, In the specific processing, searching the allocation information for the specific information acquired in the second acquisition process, and when the specific information is found, identifying one of the plurality of font files that is associated with the searched specific information; The printer that is configured to:
3. 2. The printer according to claim 1, the specific information is a font name associated with the font, The allocation information is information that associates the font name with one of the font files, In the second acquisition process, The font name included in the print data acquired in the first acquisition process is acquired as the specific information; In the specific processing, identifying one of the font files associated with the font name acquired in the second acquisition process based on the allocation information; The printer that is configured to:
4. 4. The printer according to claim 3, One of the font files is a first font name as the font name; a second font name as the font name, the second font name being different from the first font name; the allocation information is information that associates the first font name, the second font name, and one of the font files; In the specific processing, When the font name acquired in the second acquisition process is the first font name or the second font name, one of the font files is identified based on the allocation information and associated with the first font name or the second font name. The printer that is configured to:
5. 2. The printer according to claim 1, The specific information is a font ID associated with a font, The allocation information is information that associates the font ID with one of the font files, In the second acquisition process, The font ID included in the print data acquired in the first acquisition process is acquired as the specific information; In the specific processing, identifying one of the font files associated with the font ID acquired in the second acquisition process based on the allocation information; The printer that is configured to:
6. 2. The printer according to claim 1, The specific information is It may be a font name associated with a font, or The font ID may be associated with the font. The allocation information is information that associates the font name and the font ID with one of the font files, In the second acquisition process, A font name or a font ID included in the print data acquired in the first acquisition process is acquired as the specific information; In the specific processing, identifying one of the font files associated with the font name or the font ID acquired in the second acquisition process based on the allocation information; The printer that is configured to:
7. 2. The printer according to claim 1, The memory includes: A corresponding piece of allocation information can be stored for each of the font files; In the specific processing, identifying one of the plurality of font files associated with the identification information acquired in the second acquisition process based on the allocation information for each of the font files; The printer that is configured to:
8. 2. The printer according to claim 1, The controller: a storage process for storing one of the font files in the memory; a first read process for reading a font name from one of the font files stored in the storage process; a first determination process for determining a font ID corresponding to one of the font files stored in the storage process; a first creation process for creating the allocation information that associates the font name read in the first read process, the font ID determined in the first determination process, and one of the font files stored in the storage process, and storing the created allocation information in the memory; It is possible to The printer that is configured to:
9. 9. The printer according to claim 8, In the storage process, receiving one of the font files and storing it in the memory; The controller: executing the first reading process, the first determination process, and the first creation process in response to reception of one of the font files by the storage process; The printer that is configured to:
10. 2. The printer according to claim 1, The controller: a selection process for accepting selection of one of the font files stored in the memory; a second reading process for reading a font name from one of the font files selected in the selection process; a second determination process for determining a font ID corresponding to one of the font files selected in the selection process; a second creation process for creating the allocation information that associates the font name read in the second read process, the font ID determined in the second determination process, and one of the font files selected in the selection process, and storing the created allocation information in the memory; It is possible to The printer that is configured to:
Citation Information
Patent Citations
Recording apparatus, control method of recording apparatus and program
JP2014056583A
