Editable code spraying system and code spraying method
By integrating custom dot matrix font library and pictures on the inkjet printer, the problem of being unable to directly edit fonts and picture formats in the existing technology is solved, the printing efficiency is improved, and real-time editing and printing on the device is realized.
Patent Information
- Application Number
- CN202410981210.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing inkjet printers cannot directly edit fonts and picture formats on the device, resulting in inefficient printing and need to be repeatedly modified and optimized between PC and inkjet printer.
Provide an editable inkjet system. By integrating a custom dot matrix font library and dot matrix pictures, it realizes editing and modifying fonts and pictures on the inkjet machine, and uses the editor to obtain the information to be printed and performs according to the custom format. The encoding is saved, and the controller receives instructions to control the inkjet printer to print.
Real-time editing and modification of fonts and pictures on the inkjet printer is realized, and printing efficiency is improved. Users can directly perform WYSIWYG operations on the device.
Smart Images

Figure CN118927797A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inkjet coding, and in particular to an editable inkjet coding system and an inkjet coding method. Background Art
[0002] Inkjet printers are usually used to print product information on product packaging, including various text and graphic content such as product production date, product introduction, etc. On traditional inkjet printers, the printing content is usually input using the keyboard, and the text and graphic content are printed based on the font and image format set in the inkjet control system.
[0003] In the prior art, the font and image formats are usually edited on a PC, and then imported into the inkjet printer's inkjet control system via a USB flash drive. The inkjet printer completes the printing according to the saved font and image formats. However, when the font or image format needs to be modified, the technicians are often required to re-edit and modify it on the PC according to the printing effect and then import it into the inkjet printer control system. The technicians also need to repeatedly modify, optimize and import it between the external PC and the inkjet printer according to the printing effect. It is impossible to modify and edit the font and image format directly on the inkjet printer, resulting in low printing efficiency. Summary of the invention
[0004] Based on this, it is necessary to address the above technical problems. The present invention provides an editable inkjet coding system and inkjet coding method. By integrating the generated dot matrix fonts and dot matrix images in a custom format into the inkjet printer, editing and modification can be achieved on the inkjet printer according to the dot matrix fonts in the custom format, thereby achieving what you see is what you get.
[0005] In one embodiment, the present invention provides an editable inkjet printer system, including an editor, a controller and an inkjet printer; the editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor obtains information to be printed, and encodes and saves the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; then outputs the corresponding information to be printed according to the dot matrix data information; the controller receives the output instruction of the information to be printed from the editor, and controls the inkjet printer to print the information to be printed according to the output instruction of the information to be printed from the editor.
[0006] Furthermore, the customized dot matrix format includes file header information of the dot matrix font library, page offset address information, and page data information corresponding to each page.
[0007] Furthermore, the page offset address information is the page offset address information in the dot matrix font library file where the character is located; the page data information of each page includes the entire page character information and the dot matrix data information corresponding to each character in the page.
[0008] Furthermore, the editor comprises:
[0009] An acquisition unit, used for acquiring input information to be printed;
[0010] A judging unit, used for judging whether there is dot matrix data information corresponding to the information to be printed in the dot matrix font library;
[0011] The output unit is used for outputting the corresponding information to be printed according to the dot matrix data information when it is determined that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library.
[0012] Furthermore, the judging unit is further configured to judge whether an edit or delete instruction for the dot matrix font corresponding to the current information to be printed is obtained when judging that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library;
[0013] The editor further comprises a deleting unit, which is used to delete the dot matrix data information of the information to be printed stored in the dot matrix font library when a deletion instruction for the information to be printed is obtained;
[0014] The editor further comprises an updating unit, which is used to obtain the updated dot matrix font of the information to be printed according to the editing instruction when the editing instruction of the information to be printed is obtained, and update and save the dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the custom dot matrix format;
[0015] The output unit is further used to output corresponding information to be printed according to the dot matrix data information corresponding to the updated dot matrix font.
[0016] Furthermore, the updating unit is also used to calculate the corresponding page offset address information and page data information according to the character encoding corresponding to the information to be printed, and update and save the dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the calculated corresponding page offset address information and page data information.
[0017] In another embodiment, the present invention further provides a coding method implemented based on the above-mentioned coding system, comprising:
[0018] S1: Get the information to be printed;
[0019] S2A: Determine whether there is dot matrix data information corresponding to the information to be printed in the current dot matrix font library. If not, return to execute S1; if yes, enter S3;
[0020] S3: Output the corresponding information to be printed according to the dot matrix data information, and return to execute S1;
[0021] S4: Control the inkjet printer to print the information to be printed.
[0022] Furthermore, when it is determined in S2A that the current dot matrix font library contains dot matrix data information corresponding to the information to be printed, the method further includes:
[0023] S2B: Determine whether the edit or delete instruction of the dot matrix font corresponding to the information to be printed is obtained; if not, return to execute S1; if yes, enter S2C or S2D;
[0024] S2C: according to the deletion instruction, delete the dot matrix data information corresponding to the dot matrix font in the current dot matrix font library, and return to execute S1;
[0025] S2D: According to the editing instruction and the editing operation of the information to be printed, the updated dot matrix font of the information to be printed is obtained, and the dot matrix data information corresponding to the updated dot matrix font is saved and then the process proceeds to S3.
[0026] The editable inkjet printer system provided by the present invention includes an editor, a controller and an inkjet printer. The editor and the controller are arranged on the inkjet printer. The editor is integrated with a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor is used to obtain information to be printed, and encode and save the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; and output the corresponding information to be printed according to the dot matrix data information; the controller is used to receive the output instruction of the editor, and control the inkjet printer to print the information to be printed according to the output instruction of the editor. The above-generated dot matrix fonts and dot matrix images in the custom format are integrated into the inkjet printer system through the editor, and the editing and modification of the fonts on the inkjet printer system is realized according to the generated dot matrix fonts in the custom format, so as to achieve WYSIWYG. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1-3 A schematic diagram of generating a dot matrix font library using DocodFont font generation software in one embodiment;
[0028] Figure 4-5 A schematic diagram of generating a dot matrix image using DocodFont font generation software in one embodiment;
[0029] Figure 6 A dot matrix format diagram customized in a dot matrix font library in one embodiment;
[0030] Figure 7 It is a flowchart of a coding method corresponding to an editable coding system in an embodiment;
[0031] Figure 8 A schematic diagram of a display interface of an inkjet printer in one embodiment;
[0032] Fig. 9 It is a schematic diagram of the editing interface of the inkjet printer in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0034] Specifically, in this embodiment, a custom dot matrix font library and a dot matrix image are first generated by the font generation software, and the dot matrix font and the dot matrix image generated by the font generation software are encoded and saved in a custom dot matrix format. It can be understood that the custom dot matrix format is a storage format based on the dot matrix font and the dot matrix image generated by the font generation software. Among them, the font generation software is a self-developed DocodFont font generation software. The DocodFont font generation software can be used in the terminal device to generate a plurality of different dot matrix font libraries, dot matrix images, and to edit the generated dot matrix fonts and dot matrix images.
[0035] Specifically, the method of generating a dot matrix font library using DocodFont font generation software in a terminal device is as follows:
[0036] S-10: Get vector font file;
[0037] Specifically, Figure 1 As shown, when generating a custom dot matrix font library through the font generation software, select the corresponding font file in the "Generate Font Library" interface. In this embodiment, the font file is a ttf vector font file. It can be understood that ttf (TrueTypeFont) vector font is a commonly used font representation method. In this embodiment, the corresponding dot matrix format is customized and generated through a general ttf vector font file.
[0038] S-12, according to the vector font file, obtaining dot matrix data information of each character in the vector font file;
[0039] Specifically, in this embodiment, after the ttf vector font file is obtained, the FreeType font engine is used to obtain the dot matrix data of each character in the ttf vector font file. Specifically, FreeType is an open source, high-quality and portable font engine that provides a unified interface to access multiple font format files. Therefore, in this embodiment, after the ttf vector font file is obtained, the FreeType font engine is used to access the ttf vector font file, thereby obtaining the dot matrix data information of each character in the ttf vector font file.
[0040] S-13, determining the Unicode encoding range, and generating a corresponding dot matrix font library according to the determined Unicode encoding range and the dot matrix data information of each character in the vector font file.
[0041] Specifically, after obtaining the vector font file, the corresponding Unicode code range can be selected according to the characters required for the printed product. By selecting different Unicode code ranges, a variety of font library files with different ranges can be generated according to actual needs. Figure 2 As shown, a variety of different Unicode encoding ranges are shown. According to the font actually required, the corresponding character code range can be selected to generate a plurality of corresponding different dot matrix font libraries. Figure 2 These are just examples and do not cover the entire Unicode code range.
[0042] Understandably, the entire Unicode range includes 0x0000 - 0x10FFFF, which can accommodate millions of characters. Each character has a unique encoding, that is, each character corresponds to a binary value, which can be called a code point. For example, the code point of the Chinese character "中" is 0x4E2D, and the code point of the capital letter A is 0x41. The specific Unicode encoding corresponding to a character can be obtained by querying the existing Unicode character encoding table. The Unicode encoding range can be used to determine whether a certain character or string contains Chinese, English, or special symbols. In the embedded inkjet printer control system, its memory resources are precious. When generating a dot matrix font library based on the DocodFont font generation software in the terminal device, the required Unicode encoding range can be selected as needed to generate its corresponding different dot matrix font libraries. Each dot matrix font library corresponds to a different Unicode encoding range, and its font size is small. Therefore, when integrating the generated dot matrix font library and its corresponding custom dot matrix format into the above-mentioned embedded inkjet printer control system, when generating discontinuous Unicode characters according to the custom dot matrix format, there is no need to reserve space for invalid characters, which may cause the font file to become larger, thus saving the memory resources of the embedded inkjet printer control system and overcoming the problem of large memory occupation of the dot matrix font.
[0043] Furthermore, after converting the ttf vector font into the corresponding dot matrix font using the FreeType font engine, based on the selected Unicode encoding range, a dot matrix font library corresponding to this Unicode encoding range is generated. Understandably, this dot matrix font library can include one or more dot matrix characters, and the specific dot matrix characters included are determined by the selected Unicode encoding range. Among them, when generating the dot matrix font library, regardless of how many different Unicode encoding ranges are selected, each time a Unicode encoding range is selected, a dot matrix font library file corresponding to the generated dot matrix font library is output. Based on multiple selections of different Unicode encoding ranges, multiple different dot matrix font libraries can be generated. Specifically, please refer to Figure 3 , which shows a schematic diagram of the generated dot matrix font library, and the dot matrix font library includes dot matrix fonts corresponding to the selected Unicode encoding range.
[0044] Furthermore, in the terminal device, the generated DocodFont font generation software can generate multiple different dot matrix font libraries and realize the editing of the generated dot matrix fonts. At the same time, it can also generate dot matrix pictures and realize the editing of dot matrix pictures.
[0045] Among them, the method of generating dot matrix pictures using the DocodFont font generation software on the terminal device is as follows:
[0046] S-20: Determine the pixel value of the image;
[0047] Specifically, when generating a dot matrix image, first determine the corresponding image pixel value and customize the image height and width. Figure 4 , determine that the pixel values of the image's height and width are both 32 pixels.
[0048] S-22: Based on the pixel values of the image, draw and generate a corresponding dot matrix image.
[0049] Specifically, after determining the pixel value corresponding to the image, the interface is displayed as a picture thumbnail according to the pixel value corresponding to the image, and a picture editing interface is formed on the picture thumbnail, and then drawing is performed on the picture editing interface to obtain a dot matrix image generated by the drawing. Figure 5 , showing a schematic diagram of the corresponding generated dot matrix image. Optionally, when drawing and generating a dot matrix image, when the left button of the mouse is clicked on a valid point on the image editing interface, the valid point is set to black, and when the right button of the mouse is clicked on a valid point on the image editing interface, the valid point is set to white. Alternatively, when the left button of the mouse is clicked on a valid point on the image editing interface, the valid point is set to black, and when the left button of the mouse is clicked on the same valid point again, the valid point is set to white. After drawing is completed, save the corresponding dot matrix image.
[0050] It can be understood that in an embodiment, when the generated DocodFont font generation software is used to generate a dot matrix font library and a dot matrix image, the dot matrix characters and dot matrix images in the generated dot matrix font library are encoded and saved based on a custom dot matrix format. Specifically, the custom dot matrix format divides the Unicode code of the selected range into 256 pages, with 256 characters per page for storage. The dot matrix format includes the file header information, page offset address information and page data information of the dot matrix font library. Among them, the file header information of the dot matrix font library includes the size information of the characters in the dot matrix font library and the starting and ending codes of the characters in the font library. The memory space occupied by the file header information can be determined according to the size of the generated dot matrix font library file, which can be specifically 100 bytes. Specifically, continue to refer to Figure 1 When generating a dot matrix font library, you can set the file version, compression value, checksum, pixel size, font mode, font weight, etc. Therefore, the file header information of the corresponding dot matrix font library generated according to the defined parameter information includes the above definition information, see Figure 4 When generating a dot matrix image, the file header information is determined according to the width and height of the image; the page offset address information includes the page offset address information in the dot matrix font library file where the character is located; the page data information of each page includes the entire page character information and the dot matrix data information corresponding to each character in the page.
[0051] Specifically, the page offset address information of each page from 0 to 255 is given in the page offset address information, and the character data information included in the corresponding page can be found through the corresponding page offset address information. When the page offset address information of the corresponding page is zero, it means that the page has no character data, and when the page offset address information of the corresponding page is non-zero, it means that the page has character data. Among them, pageoffGlyphData[n] can be used to represent the page offset address information of the nth page, and n is 0-255. For example, when pageoffGlyphData[4]=0X0000, it means that the 4th page has no character data. When pageoffGlyphData[4]=0X4008, the corresponding page data information can be found according to the page offset address information 0X4008. The page data information of each page includes all the character information of the page and the specific dot matrix data information corresponding to each character information. GlyphData[n] can be used to represent the nth character information in the current page, and LatticeData[n] can be used to represent the dot matrix data information corresponding to the nth character information in the current page. n is 0-255. When the nth character information GlyphData[n] in the page is empty, it means that there is no character at that position; when the nth character information GlyphData[n] in the page is not empty, it means that the character is valid, and then the corresponding dot matrix data information can be found through LatticeData[n]. See Figure 6 , a specific dot matrix format diagram is given. According to the page offset address information pageoffGlyphData[n], the corresponding page data information is found. When GlyphData[n] is not empty, the Unicode code of the nth character corresponding to it is obtained according to GlyphData[n]. Then, according to the corresponding Unicode code, the specific dot matrix data information LatticeData[n] corresponding to it in the page is obtained, so that the dot matrix character is output based on its specific dot matrix data information.
[0052] In this embodiment, when DocodFont font generation software is used in a terminal device to generate multiple different dot matrix font libraries and dot matrix images, the above-mentioned custom dot matrix format is used to save the dot matrix fonts and dot matrix images. Through the above-mentioned custom dot matrix format, the dot matrix fonts and dot matrix images in each dot matrix font library can be used flexibly. When it is necessary to insert a character in the dot matrix font library, the corresponding page offset address information can be determined according to the Unicode encoding, and its corresponding position information in the page data information can be determined based on the Unicode encoding. It can be understood that if the position information corresponding to the page data information is determined to be n, the Unicode encoding of the inserted character is saved to GlyphData[n], and the corresponding dot matrix data information is saved to LatticeDate[n]; when it is necessary to delete the corresponding character in the dot matrix font library, the corresponding page offset address information can be determined according to the Unicode encoding, and the corresponding dot matrix data information will be deleted after determining its corresponding position information in the page data information. It can be understood that if it is determined that the position information corresponding to the page data information is n, GlyphData[n] and LatticeDate[n] are set to empty and saved; when it is necessary to edit characters in the dot matrix font library, the corresponding dot matrix data information is obtained according to the Unicode encoding corresponding to the edited characters, and the dot matrix data information corresponding to the original characters is replaced and saved; further, when it is necessary to delete a whole page of characters in the dot matrix font library, the page offset address information corresponding to the page data information can be set to empty and saved; when it is necessary to insert a whole page of characters in the dot matrix font library, the whole page of characters can be inserted into the position where the page offset address information is empty, and the corresponding page offset address information is saved. Based on the above-mentioned customized dot matrix format, it is possible to flexibly implement update operations such as editing, inserting or deleting characters in the dot matrix font library, and it is also possible to implement insertion or deletion of whole page characters. At the same time, it selects the required Unicode range in the generated dot matrix font library to generate the corresponding dot matrix font library, and there is no need to occupy invalid characters to cause the font file to become larger. When the corresponding dot matrix font library is subsequently integrated into the inkjet control system, the memory resources of the inkjet control system are further saved.
[0053] Furthermore, in order to solve the problem that it is impossible to directly edit and modify the font format on the inkjet printer and improve the printing efficiency of the inkjet printer, in this embodiment, an editable inkjet printer system is provided, and the above-mentioned generated custom format dot matrix font is integrated into the inkjet printer system through the editor. According to the generated custom format dot matrix font, the font can be edited and modified on the inkjet printer system, realizing what you see is what you get.
[0054] Specifically, an editable inkjet printer system includes an editor, a controller and an inkjet printer, wherein the editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor is used to obtain information to be printed, and encode and save the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; and outputs the corresponding information to be printed according to the dot matrix data information; the controller is used to receive output instructions of the editor, and control the inkjet printer to print the information to be printed according to the output instructions of the editor.
[0055] Further, in this embodiment, the editor includes an acquisition unit, a judgment unit and an output unit, and the coding method implemented based on the editor is as follows: Figure 7 As shown, the implementation methods include:
[0056] An acquisition unit, used for acquiring input information to be printed;
[0057] Specifically, the information to be printed may be Chinese characters, characters or symbol information. Figure 8 , it can input the corresponding information to be printed on the display interface of the editor, for example, the information to be printed can be character A. Optionally, it can obtain the information to be printed through keyboard input or through a touch screen.
[0058] A judging unit, used for judging whether there is dot matrix data information corresponding to the information to be printed in the dot matrix font library;
[0059] Specifically, after obtaining the input information to be printed, for example, character A, the judgment unit first searches in the current dot matrix font library according to the dot matrix format customized by the dot matrix font library, and determines whether there is dot matrix data information corresponding to character A in the dot matrix font library. If so, it means that the character A has been saved in the dot matrix font library according to the dot matrix format customized by the dot matrix font library; if not, it means that the character A is not in the current dot matrix font library, and the step of "obtaining information to be printed" is returned to perform the next round of "obtaining information to be printed" operation.
[0060] an output unit, configured to output the corresponding information to be printed according to the dot matrix data information when determining that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library;
[0061] Specifically, when it is determined that the current dot matrix font library contains dot matrix data information corresponding to the information to be printed, the output unit outputs the information to be printed according to the corresponding dot matrix data information. For example, if the current dot matrix font library contains dot matrix data information corresponding to the input character A, the output unit directly outputs the character A according to the corresponding dot matrix data information.
[0062] Furthermore, the judgment unit is also used to further judge whether the editing or deleting instruction of the dot matrix font corresponding to the current information to be printed is obtained when judging that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library. If the editing or deleting instruction of the dot matrix font corresponding to the current information to be printed is not obtained, then return to the step of "obtaining the information to be printed" and perform the next round of "obtaining the information to be printed" operation. If the editing or deleting instruction of the dot matrix font corresponding to the current information to be printed is obtained, the corresponding operation is performed according to the corresponding editing or deleting instruction. Please continue to refer to Figure 8 , when the input character A is selected on the display interface of the editor, click the "Delete" button to obtain the delete instruction for character A; when the input character A is long pressed, the edit instruction for character A is obtained. When the delete instruction for character A is obtained, the dot matrix data information of the current character A saved in the current dot matrix font library is deleted, and the step of "obtaining information to be printed" is returned to perform the next round of "obtaining information to be printed" operation; when the edit instruction for character A is obtained, open Fig. 9 The controller obtains the updated dot matrix font of character A according to the editing instruction. Specifically, Fig. 9 As shown, the editing instruction can be a click operation on the dot matrix font corresponding to the character A. When the right button of the mouse clicks on a valid black point on the editing interface, the valid black point is set to an invalid white point; when the left button of the mouse clicks on an invalid white point on the editing interface, the invalid white point is set to a valid black point. It is also possible to set a valid point to black when the left button of the mouse clicks on a valid point on the editing interface, and set the valid point to white when the left button of the mouse clicks on the same valid point again, to complete the editing of the dot matrix font corresponding to the current character A, and obtain the updated dot matrix font of the character A. Furthermore, when the updated dot matrix font of the character A is obtained, the dot matrix data information corresponding to the updated dot matrix font is saved to the position of the current character A in the dot matrix font library, and the output unit outputs the corresponding character A according to the dot matrix data information corresponding to the updated dot matrix font.
[0063] Furthermore, after the output unit outputs the corresponding character A according to the dot matrix data information corresponding to the updated dot matrix font, the controller is used to receive the output instruction of the editor, and control the inkjet printer to print the information to be printed according to the output instruction of the editor. At the same time, the step of "obtaining the information to be printed" is returned to perform the next round of "obtaining the information to be printed".
[0064] Returning to this embodiment, when generating a dot matrix font library and dot matrix images based on the DocodFont font generation software, the space size occupied by a character in the font library is determined according to the selected pixel size. Taking 16*16 as an example, it can be understood that one byte occupies 8 bit positions, so the memory space occupied by a character in the 16*16 font library is 32 bytes. One page of data includes 256 characters, and the memory space it occupies is 8192 bytes. The record format of the page data information of a character is shown in Table 1 below:
[0065]
[0066] Table 1
[0067] When determining the storage position of a character in the custom dot matrix font library, first calculate the page offset address information of the character in the dot matrix font library. The calculation formula of its page offset address information is as follows:
[0068] Page offset address information = (character Unicode code - start code of the dot matrix font library) * number of bytes occupied by the character;
[0069] Further, assume that the information to be printed "中" is input on the display interface. First, calculate the page offset address information corresponding to the character "中" based on the above calculation formula. Find the page of data where "中" is located according to the corresponding page offset address information, and further calculate the storage position of the corresponding dot matrix data information according to its corresponding Unicode code. When finding the corresponding dot matrix data information, the dot matrix data information corresponding to the character "中" is stored at this storage position, and the character "中" is output based on its corresponding dot matrix data information. If a delete or edit instruction for the character "中" is obtained, further delete the dot matrix data information at the corresponding storage position or update the dot matrix data information at the corresponding storage position according to the above method. Further, the method for determining the storage position where the character is located is as follows:
[0070] Character start storage position = character Unicode code / 256;
[0071] Specifically, assume that the Unicode code corresponding to the character "中" is 0X4e2D, and its corresponding decimal is 20013. Since one page stores 256 characters, the starting storage position of the dot matrix data information corresponding to "中" is the 45th position in the 78th row of the current page. Thus, the corresponding dot matrix data information can be saved at this position, and when deleting or editing the character "中", the dot matrix data information at the corresponding storage position can be deleted or the dot matrix data information can be updated.
[0072] The editable inkjet coding system provided in this embodiment integrates the above-generated custom format dot matrix fonts and dot matrix images into the inkjet coding system through an editor, and realizes the editing and modification of fonts and images on the inkjet coding system according to the generated custom format dot matrix fonts and dot matrix images, realizing what you see is what you get.
[0073] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0074] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. An editable inkjet system, characterized in that: Including editor, controller and inkjet printer; The editor integrates a custom dot matrix font library and a dot matrix format corresponding to the dot matrix font library; the editor obtains information to be printed, and encodes and saves the information to be printed based on the custom dot matrix format to obtain dot matrix data information corresponding to the information to be printed; and then outputs the corresponding information to be printed according to the dot matrix data information; The controller receives the output instruction of the information to be printed from the editor, and controls the inkjet printer to print the information to be printed according to the output instruction of the information to be printed from the editor.
2. The coding system according to claim 1, characterized in that: The customized dot matrix format includes file header information of the dot matrix font library, page offset address information, and page data information corresponding to each page.
3. The coding system according to claim 2 is characterized in that: The page offset address information is the page offset address information in the dot matrix font library file where the character is located; the page data information of each page includes the entire page character information and the dot matrix data information corresponding to each character in the page.
4. The coding system according to claim 2, characterized in that: The editor includes: An acquisition unit, used for acquiring input information to be printed; A judging unit, used for judging whether there is dot matrix data information corresponding to the information to be printed in the dot matrix font library; The output unit is used for outputting the corresponding information to be printed according to the dot matrix data information when it is determined that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library.
5. The coding system according to claim 4, characterized in that: The judging unit is further configured to judge whether an editing or deleting instruction for the dot matrix font corresponding to the current information to be printed is obtained when judging that the dot matrix data information corresponding to the information to be printed exists in the dot matrix font library; The editor further comprises a deleting unit, which is used to delete the dot matrix data information of the information to be printed stored in the dot matrix font library when a deletion instruction for the information to be printed is obtained; The editor further comprises an updating unit, which is used to obtain the updated dot matrix font of the information to be printed according to the editing instruction when the editing instruction of the information to be printed is obtained, and update and save the dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the custom dot matrix format; The output unit is further used to output corresponding information to be printed according to the dot matrix data information corresponding to the updated dot matrix font.
6. The coding system according to claim 5, characterized in that: The updating unit is further used to calculate corresponding page offset address information and page data information according to the character encoding corresponding to the information to be printed, and update and save the dot matrix data information corresponding to the updated dot matrix font of the information to be printed according to the calculated corresponding page offset address information and page data information.
7. A coding method based on the coding system according to any one of claims 1 to 6, characterized in that: include: S1: Get the information to be printed; S2A: Determine whether there is dot matrix data information corresponding to the information to be printed in the current dot matrix font library. If not, return to execute S1; If yes, go to S3; S3: Output the corresponding information to be printed according to the dot matrix data information, and return to execute S1; S4: Control the inkjet printer to print the information to be printed.
8. The coding method according to claim 7, characterized in that: When it is determined in S2A that the current dot matrix font library contains dot matrix data information corresponding to the information to be printed, the method further includes: S2B: Determine whether the edit or delete instruction of the dot matrix font corresponding to the information to be printed is obtained; if not, return to execute S1; if yes, enter S2C or S2D; S2C: according to the deletion instruction, delete the dot matrix data information corresponding to the dot matrix font in the current dot matrix font library, and return to execute S1; S2D: According to the editing instruction and the editing operation of the information to be printed, the updated dot matrix font of the information to be printed is obtained, and the dot matrix data information corresponding to the updated dot matrix font is saved and then the process proceeds to S3.
Citation Information
Patent Citations
Implementation method of dot matrix word library of embedded system
CN101008939A
Stepless zooming printing control method and device of printer
CN102407683A
Printing method and device and storage medium
CN112486428A
Printing processing method, device and equipment
CN118051192A
Output controlling method
JP1995001775A
