Font configuration method, device, equipment and system of image forming device and medium
By setting a multilingual font pool in the image forming apparatus, the system automatically matches fonts of the language type specified by the user, solving the problems of missing image content and low development efficiency, and achieving complete image output and simplified operation.
Patent Information
- Application Number
- CN202511394331.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-26
- Publication Date
- 2026-01-09
AI Technical Summary
Existing image forming apparatuses can only set the font for the default language type, resulting in the loss of image content in other language types when forming images on the recording film. Furthermore, changing the font on the panel display interface is a complex and inefficient process.
The image forming apparatus includes a font pool containing fonts for multiple languages. Based on the user-selected language, the fonts for image forming and panel display are automatically matched and set to ensure content integrity and development efficiency.
It enables the complete output of image content in other languages on recording sheets and simplifies the process of changing fonts on the panel display interface, thereby improving the work efficiency of developers.
Smart Images

Figure CN121309731A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image forming technology, and more specifically to font configuration methods, apparatus, devices, systems and media of image forming devices. Background Technology
[0002] An image forming apparatus is a device that forms an image on a recording sheet using imaging principles, such as a printer, copier, fax machine, multifunction image making and copying apparatus, electrostatic printing apparatus, and any other similar apparatus.
[0003] In practical applications, image forming apparatuses are typically equipped with image forming fonts and panel display fonts, used to form images on the recording film and the panel display interface of the image forming apparatus, respectively. Currently, image forming apparatuses can only set the image forming font and panel display font to the default font corresponding to the default language type.
[0004] When an image needs to be formed on recording film using fonts corresponding to other language types, in related technologies, a terminal device (e.g., a desktop computer or tablet computer) sends an image forming job to an image forming apparatus. In addition to the content corresponding to the default language type, the terminal device needs to convert the content of the other language type into character rendering data that the image forming apparatus can recognize using the fonts corresponding to those other language types, and then send the character rendering data to the image forming apparatus. The image forming apparatus then parses the character rendering data and outputs the content corresponding to the other language type onto the recording film. However, if the terminal device lacks fonts corresponding to the other language type, it may be unable to convert the content into character rendering data. Therefore, the image forming apparatus may be unable to output the content corresponding to the other language type onto the recording film, resulting in missing image content.
[0005] Furthermore, when using fonts corresponding to other language types to create images on the panel display interface, related technologies require developers to pre-obtain the characters needed for the content in those other language types, along with their corresponding character rendering data, and save this information in the source code of the panel display interface for that language type. Then, the corresponding character rendering data is accessed through the character index. This process may take developers considerable time to obtain the corresponding characters and their rendering data, and they must ensure that the character index in the source code corresponds to the character index used when accessing the character. For developers, this process can be complex and error-prone, potentially leading to low development efficiency.
[0006] It should be noted that the information disclosed in the background section of this application is intended only to enhance the understanding of the general background of this application, and should not be construed as an admission or in any way implying that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0007] This application provides a font configuration method, apparatus, device, system, and medium for an image forming apparatus, in order to solve the problems in the related art where the image forming apparatus can only set the default font corresponding to the default language type, which may lead to content loss when forming images on the recording sheet during image forming operations, and the low development efficiency when ensuring that images are formed on the panel display interface using fonts corresponding to other language types.
[0008] In a first aspect, embodiments of this application provide a font configuration method for an image forming apparatus, applied to an image forming apparatus, including:
[0009] In response to a user-triggered language selection action, the specified language type is sent to the terminal device;
[0010] Receive the font used sent by the terminal device, wherein the font used is the font used in the content corresponding to the specified language type in the image forming operation;
[0011] Based on the font used, a first target font that matches the font used is determined in the font pool, the font pool including multiple sub-font pools, each of the sub-font pools including multiple fonts corresponding to the same language type;
[0012] The image forming font is set to the first target font, which is the font used by the image forming apparatus when forming an image on a recording sheet.
[0013] In one possible implementation, determining a first target font that matches the used font in the font pool, based on the used font, includes:
[0014] When the font being used exists in the font pool, the font being used is identified as the first target font;
[0015] When the font to be used is not found in the font pool, a first target font that matches the font to be used is determined based on the first font fit of each of the multiple candidate fonts. The multiple candidate fonts include all fonts in the font pool that correspond to the specified language type. The first font fit is used to characterize the font similarity between the candidate font and the font to be used.
[0016] In one possible implementation, before determining the first target font that matches the font being used based on the first font fit of each of the plurality of candidate fonts, the method further includes:
[0017] Based on the character morphological features corresponding to each of the multiple candidate fonts and the character morphological features corresponding to the font being used, a first font fit degree is determined for each of the candidate fonts;
[0018] The character morphological features are used to characterize the spatial distribution relationship of the pixels corresponding to the character.
[0019] In one possible implementation, determining the first target font that matches the font being used based on the first font fit of each of the multiple candidate fonts includes:
[0020] Multiple preferred fonts are determined based on the second font fit of each of the multiple candidate fonts, wherein the second font fit is used to characterize the visualization effect of characters when forming an image on a recording sheet;
[0021] Based on the first font fit of each of the multiple preferred fonts, a first target font that matches the font being used is determined.
[0022] In one possible implementation, before determining a plurality of preferred fonts based on a second font fit of each of the plurality of candidate fonts, the method further includes:
[0023] For each of the multiple candidate fonts, a second font fit degree is determined based on the various font attributes of each candidate font and a first weight corresponding to each font attribute.
[0024] Secondly, embodiments of this application provide a font configuration method for an image forming apparatus, applied to an image forming apparatus, including:
[0025] Retrieve the specified language type set by the user;
[0026] According to the specified language type, a second target font corresponding to the specified language type is determined in the font pool. The font pool includes multiple sub-font pools, and each sub-font pool includes multiple fonts corresponding to the same language type.
[0027] Set the panel display font to the second target font, which is the font used when the panel display interface of the image forming apparatus displays an image.
[0028] In one possible implementation, determining the second target font corresponding to the specified language type in the font pool according to the specified language type includes:
[0029] Based on the third font fit of each of the multiple candidate fonts, a second target font that matches the panel display interface of the image forming apparatus is determined from the font pool;
[0030] The plurality of candidate fonts include all fonts in the font pool that correspond to the specified language type, and the third font adaptation degree is used to characterize the visualization effect when the characters form an image on the panel display interface.
[0031] In one possible implementation, before determining a second target font in the font pool that matches the panel display interface of the image forming apparatus based on a third font fit of each of the plurality of candidate fonts, the method further includes:
[0032] For each of the multiple candidate fonts, a third font fit degree is determined based on the various font attributes of each candidate font and the second weight corresponding to each font attribute.
[0033] Thirdly, embodiments of this application provide a font configuration method for an image forming apparatus, applied to a terminal device, including:
[0034] Receives a specified language type sent by the image forming apparatus;
[0035] The font to be used is determined based on the specified language type, wherein the font to be used is the font used in the image forming operation for the content corresponding to the specified language type;
[0036] The font to be used is sent to the image forming apparatus.
[0037] Fourthly, embodiments of this application provide an image forming apparatus, including:
[0038] A controller configured to perform the method described in any one of the first or second aspects.
[0039] Fifthly, embodiments of this application provide a terminal device, including:
[0040] processor;
[0041] Memory;
[0042] And a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, causes the terminal device to perform the method described in the fourth aspect.
[0043] Sixthly, embodiments of this application provide a font configuration system for an image forming apparatus, including:
[0044] The image forming apparatus described in the fourth aspect;
[0045] The terminal equipment described in the fifth aspect;
[0046] The image forming apparatus is communicatively connected to the terminal device.
[0047] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any one of the first to third aspects.
[0048] In this embodiment, since the font pool in the image forming apparatus includes fonts corresponding to multiple language types, the image forming apparatus can set the image forming font and the panel display font to the font corresponding to the specified language type set by the user. When the terminal device lacks fonts corresponding to other language types, the image forming apparatus can use fonts in the font pool that correspond to other language types to output the content corresponding to other language types in the image forming operation to the recording sheet, thus ensuring the integrity of the image formed by the image forming apparatus on the recording sheet to a certain extent. In addition, developers do not need to obtain the characters required for the content corresponding to other language types and the character rendering data corresponding to the characters in advance. They only need to count the strings corresponding to the content on the panel display interface corresponding to other language types. The image forming apparatus can output the strings corresponding to other language types to the corresponding panel display interface by using fonts in the font pool that correspond to other language types, thus improving the development efficiency of developers to a certain extent. Attached Figure Description
[0049] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application.
[0051] Figure 2 A font configuration method for an image forming apparatus provided in this application embodiment.
[0052] Figure 3 This is a schematic diagram of the panel display interface of the image forming apparatus provided in an embodiment of this application.
[0053] Figure 4 This is a schematic diagram of a character provided in an embodiment of this application.
[0054] Figure 5 This is a schematic diagram illustrating the font attributes of a font provided in an embodiment of this application.
[0055] Figure 6 Another font configuration method for an image forming apparatus provided in this application embodiment.
[0056] Figure 7 Another font configuration method for an image forming apparatus provided in this application embodiment.
[0057] Figure 8 This is a schematic diagram of the structure of the image forming apparatus provided in an embodiment of this application.
[0058] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application.
[0059] Figure 10 This is a schematic diagram of the structure of a font configuration system for an image forming apparatus provided in an embodiment of this application. Detailed Implementation
[0060] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0061] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0062] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0063] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0064] See Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. Figure 1The diagram shows terminal device 101 and image forming apparatus 102. It is understood that image forming apparatus 102 is a device that forms an image on a recording sheet using imaging principles, such as a printer, copier, fax machine, multifunction image production and copying apparatus, electrostatic printing apparatus, and any other similar apparatus.
[0065] The terminal device 101 and the image forming apparatus 102 are communicatively connected. Therefore, the user can issue an image forming job to the image forming apparatus 102 through the terminal device 101, and output the image forming job to the recording film. Specifically, when the user triggers an image forming command on the terminal device 101, the terminal device 101 converts the content corresponding to each language type in the image forming job into character rendering data using the font corresponding to each language type, and sends the character rendering data to the image forming apparatus. The image forming apparatus parses the character rendering data and outputs the content corresponding to each language type in the image forming job to the recording film.
[0066] In practical applications, an image forming apparatus 102 is typically configured with an image forming font for forming images on the recording sheet. Currently, the image forming apparatus 102 can only set the image forming font to the default font corresponding to the default language type. Therefore, regarding content corresponding to the default language type in the image forming operation, the image forming apparatus 102 can output the content corresponding to the language type on the recording sheet using the default font. Regarding content corresponding to other language types in the image forming operation, the terminal device and the image forming apparatus can output the content corresponding to other language types in the image forming operation to the recording sheet according to the above processing procedure.
[0067] Furthermore, to enhance the user experience, the panel display interface of the image forming apparatus 102 can display information such as the status of the image forming apparatus 102 and prompts the user for operation. Therefore, a panel display font is typically configured for the image forming apparatus 102 to form the image corresponding to the information on the panel display interface of the image forming apparatus 102. Currently, the image forming apparatus 102 can only set the panel display font to the default font corresponding to the default language type. Therefore, the image forming apparatus 102 can use the default font to display the image corresponding to the information on the panel display interface.
[0068] In one possible implementation, the communication network connecting the image forming apparatus 102 and the terminal device 101 can be a local area network (LAN) or a wide area network (WAN) relayed through a relay device. When the communication network is a LAN, for example, it can be a short-range communication network such as a Wi-Fi hotspot network, a Wi-Fi P2P network, a Bluetooth network, a Zigbee network, or a near-field communication (NFC) network. When the communication network is a WAN, for example, it can be a 3rd-generation wireless telephone technology (3G) network, a 4th-generation mobile communication technology (4G) network, a 5th-generation mobile communication technology (5G) network, a future public land mobile network (PLMN), or the Internet.
[0069] It should be pointed out that, Figure 1 The terminal device 101 and image forming apparatus 102 shown are merely exemplary descriptions and should not be construed as limiting the scope of protection of this application. For example, the terminal device 101 includes, but is not limited to, desktop computers, laptop computers, networked computers, handheld computers, tablet computers, personal digital assistants (PDAs), and internet-enabled mobile phones; the image forming apparatus 102 includes, but is not limited to, printers, copiers, fax machines, scanners, and multifunction printers that integrate printing, copying, faxing, and scanning functions.
[0070] As mentioned above, current image forming apparatuses can only set the image forming font to the default font corresponding to the default language type. When it is necessary to use a font corresponding to another language type to form an image on the recording sheet, in related technologies, regarding the content corresponding to other language types in the image forming operation, the terminal device and the image forming apparatus can output the content corresponding to other language types in the image forming operation to the recording sheet according to the above processing procedure. However, when the terminal device lacks the font corresponding to other language types, the terminal device may not be able to convert the content corresponding to other language types into character rendering data. Therefore, it may result in the image forming apparatus being unable to output the content corresponding to other language types to the recording sheet, causing the image content to be missing.
[0071] Furthermore, current image forming apparatuses can only set the panel display to the default font corresponding to the default language type. When it is necessary to use a font corresponding to another language type to form an image on the panel display interface, in related technologies, regarding the content of the panel display interface corresponding to that other language type, developers need to pre-obtain the characters required for the content of that other language type and the character rendering data corresponding to those characters, and save them in the source code of the panel display interface corresponding to that language type. Then, the corresponding character rendering data is accessed through the character index of the character. In this process, developers may need a certain amount of time to obtain the corresponding characters and their corresponding character rendering data, and they need to ensure that the index of the character in the source code corresponds to the character index used when accessing the character. For developers, the operation process can be relatively complex and error-prone, which may lead to low development efficiency.
[0072] To address the aforementioned issues, in this embodiment, since the font pool in the image forming apparatus includes fonts corresponding to multiple language types, the image forming apparatus can set the image forming font and panel display font to the specified language type according to the user-defined language type. When the terminal device lacks fonts corresponding to other language types, the image forming apparatus can use fonts from the font pool that correspond to other language types to output the content corresponding to other language types in the image forming operation onto the recording sheet, thus ensuring the integrity of the image formed by the image forming apparatus on the recording sheet to a certain extent. Furthermore, developers do not need to pre-obtain the characters required for the content corresponding to other language types and the corresponding character rendering data; they only need to count the strings corresponding to the content on the panel display interface corresponding to other language types. The image forming apparatus can then output the strings corresponding to other language types to the corresponding panel display interface using fonts from the font pool, thereby improving the development efficiency of developers to a certain extent.
[0073] Specifically, the following detailed description is provided in conjunction with the accompanying drawings and specific embodiments.
[0074] See Figure 2 This application provides a font configuration method for an image forming apparatus. This method is applied to an image forming apparatus and a terminal device, such as... Figure 2 As shown, it specifically includes steps S201-S207.
[0075] Step S201: In response to the user-triggered specified language type selection operation, the image forming apparatus sends the specified language type to the terminal device.
[0076] As mentioned above, image forming apparatuses typically set the font of their panel display interface to the default font corresponding to the default language type. Therefore, the image forming apparatus uses the default font to display status information, user prompts, and other information on the panel display interface.
[0077] See Figure 3 This is a schematic diagram of the panel display interface of the image forming apparatus provided in an embodiment of this application. Figure 3 The text shows a language selection interface 300 displaying the default font corresponding to the default language type. The language type list 301 in the language selection interface 300 shows multiple language types, such as the first language type, the second language type, etc.
[0078] In this embodiment, users can typically trigger operations such as viewing, selecting, and setting on the panel display interface of the image forming apparatus. Therefore, users can trigger a specified language type selection operation on the image forming apparatus to determine the specified language type, providing a basis for setting the image forming font corresponding to the user's desired language type.
[0079] For example, such as Figure 3 The language type selection interface 300 shown allows users to select a specific language type from the language type list 301. When a user selects the second language type from the language type list 301, it can be assumed that the user intends to set the image forming font of the image forming apparatus to the font corresponding to the second language type; that is, the specified language type is the second language type. It should be noted that the language type list 301 also includes other language types, such as the seventh language type, the eighth language type, etc. Users can also view other language types in the language type list 301 by sliding the button 302.
[0080] It is understood that the image forming font is the font used by the image forming apparatus when forming an image on the recording sheet. In this embodiment of the application, in order to set the image forming font to match the font used in the content corresponding to the specified language type in the image forming operation, when the user triggers the specified language type selection operation and determines the specified language type, the image forming apparatus needs to send the specified language type to the terminal device.
[0081] For example, such as Figure 3 As shown, when the user selects the specified language type "Second Language Type" and clicks the "OK" button 303, the image forming apparatus will send the specified language type to the terminal device.
[0082] Step S202: The terminal device receives the specified language type sent by the image forming apparatus.
[0083] As described above, a communication connection exists between the terminal device and the image forming apparatus. In this embodiment, the terminal device can receive a specified language type sent by the image forming apparatus to determine the font used for the content corresponding to the specified language type in the image forming operation.
[0084] Step S203: The terminal device determines the font to use based on the specified language type.
[0085] It is understandable that a font is used for content corresponding to a specified language type in an image forming operation. When the terminal device receives the specified language type from the image forming apparatus, it can identify the content corresponding to that language type in the image forming operation. Furthermore, the terminal device can identify the font used for the content corresponding to the specified language type.
[0086] In this embodiment, the terminal device can identify the font used in the content corresponding to the specified language type through a font recognition model or font recognition software. For the sake of brevity, this embodiment will not be described in detail.
[0087] It should be noted that when multiple fonts are used for content corresponding to a specified language type in an image forming operation, the terminal device can display a font selection interface to the user. In this case, the user can set the font on the font selection interface. Furthermore, the image forming apparatus can select the font that best matches the user's needs, thus improving the user experience to some extent.
[0088] Step S204: The terminal device sends the font to be used to the image forming apparatus.
[0089] In this embodiment of the application, after the terminal device determines the font to be used according to the specified language type, the terminal device needs to send the font to be used to the image forming apparatus so that the image forming apparatus can determine the font that matches the font to be used.
[0090] It should be noted that the terminal device can also send other content to the image forming apparatus, such as character morphological features and font attributes corresponding to the font used. The specific details of "determining the font, character morphological features, and font attributes that match the font used" will be described in detail below and will not be repeated here.
[0091] Step S205: The image forming apparatus receives the font to be used sent by the terminal device.
[0092] In this embodiment, when a terminal device sends a font to be used to an image forming apparatus, the image forming apparatus can receive the font sent by the terminal device. Furthermore, the image forming apparatus can determine a font that matches the font being used.
[0093] Step S206: Based on the font used, determine the first target font that matches the font used in the font pool.
[0094] In practical applications, image forming apparatuses typically need to store fonts and font files corresponding to different language types in order to configure the fonts for those languages. Therefore, in this embodiment, a font pool is provided in the image forming apparatus to store and manage fonts and their corresponding font files.
[0095] As is understandable, a font pool includes multiple sub-font pools, and each sub-font pool contains multiple fonts corresponding to the same language type.
[0096] For example, the correspondence between language types and fonts in the font pool is shown in Table 1. The first sub-font pool of the font pool includes the first font and the second font corresponding to the first language type; the second sub-font pool of the font pool includes the third font and the fourth font corresponding to the second language type; and the third sub-font pool of the font pool includes the fifth font corresponding to the first language type.
[0097] Table 1:
[0098]
[0099] It should be noted that the above table is merely an exemplary illustration of the correspondence between language types and fonts in the font pool, and should not be construed as a limitation on the scope of protection of this application. For example, the font pool may also include other language types and fonts corresponding to other language types; each language type's sub-font pool may also include other fonts corresponding to the language type, etc., and this application embodiment does not impose specific limitations in this regard.
[0100] In this embodiment, the image forming apparatus manufacturer can obtain fonts corresponding to different language types and store the fonts corresponding to different language types and the correspondence between language types and fonts in the font pool of the image forming apparatus. When a user sets a specified language type and receives the font to be used sent by the endpoint device, the image forming apparatus can access the font and font file corresponding to the specified language type through the correspondence between language types and fonts in the font pool to obtain information such as font attributes and character morphological features of the font corresponding to the specified language type. Furthermore, based on the font to be used, the image forming apparatus determines a first target font that matches the font to be used in the font pool.
[0101] The specific details regarding "font attributes and character morphological features" will be described in detail below and will not be repeated here. To facilitate differentiation from other target fonts mentioned later, in this embodiment, the target font used to set the font of the image is referred to as the "first target font".
[0102] In practical applications, the font pool of an image forming apparatus may or may not contain the font to be used. Therefore, it is possible to first determine whether the font to be used exists in the font pool by comparing the flag of each font in the font pool with the flag of the font to be used, so as to select different first target fonts for the image forming apparatus.
[0103] Specifically, when the flag of a font in the font pool is the same as the flag of the font being used, it can be assumed that the font being used exists in the font pool; when the flag of each font in the font pool is different from the flag of the font being used, it can be assumed that the font being used does not exist in the font pool.
[0104] The mark is a unique identifier for the font, used to distinguish different fonts. It should be noted that the mark can be a name, ID, etc., and this application embodiment does not impose specific limitations on it.
[0105] In order to provide users with a better visual experience when outputting content of a specified language type to recording film during image formation, in this embodiment of the application, when a font is available in the font pool, the font is determined as the first target font; when no font is available in the font pool, a first target font that matches the font is determined based on the first font fit of each of the multiple candidate fonts.
[0106] Understandably, when a font is available in the font pool, the image forming apparatus selects the font to be used as the image forming font, which enables the image output to the recording sheet containing the content corresponding to the specified language type in the image forming operation to have no difference or very little difference from the original image.
[0107] In this embodiment of the application, when there is no font in the font pool, in order to ensure that the content corresponding to the specified language type in the image forming operation can form an image corresponding to the specified language type on the recording sheet, a font that matches the font being used can be selected from multiple candidate fonts as the first target font.
[0108] It is understood that multiple candidate fonts include all fonts in the font pool that correspond to the specified language type. For example, taking the correspondence between language types and fonts in the font pool shown in Table 1 as an example, when the user sets the specified language type to "first language type", the multiple candidate fonts include the first font and the second font. When the user sets the specified language type to "second language type", the multiple candidate fonts include the third font and the fourth font; and so on. This embodiment of the application will not elaborate further.
[0109] In this embodiment of the application, after multiple candidate fonts are determined, for each candidate font, the font most similar to the font being used can be selected as the first target font based on the first font fit of each candidate font.
[0110] Understandably, the first font fit score is used to characterize the font similarity between the candidate font and the used font. In other words, the first font fit score characterizes the degree of similarity between the images formed on the recording sheet by the content of the image forming operation using the candidate font and the used font, respectively. The higher the first font fit score, the more similar the images formed on the recording sheet by the content of the image forming operation using the candidate font and the used font, respectively.
[0111] Therefore, the candidate font most similar to the one used is usually chosen as the first target font. This can reduce the difference between the image formed on the recording sheet and the original image when the content of the specified language type is used in the image forming process, thereby improving the user's visual experience when viewing the image on the recording sheet to a certain extent.
[0112] In order to determine the candidate font most similar to the font being used, in one possible implementation, before determining the first target font that matches the font being used based on the first font fit of each candidate font among multiple candidate fonts, the method further includes: determining the first font fit of each candidate font based on the character morphological features corresponding to each candidate font among multiple candidate fonts and the character morphological features corresponding to the font being used.
[0113] In this embodiment, character morphological features are used to characterize the spatial distribution relationship of pixels corresponding to a character. Character morphological features include character outlines and character shape contexts. It can be understood that the character outline characterizes the distribution relationship between the outline pixels of a character displayed by a font; the character shape context characterizes the distribution relationship between local pixels within the closed area formed by the character outline. The character outlines and character shape contexts displayed by different fonts are typically different.
[0114] See Figure 4 This is a schematic diagram of a character provided in an embodiment of this application. Figure 4(1) shows the character “A” displayed in the first font and the corresponding pixel a1-pixel s1; Figure 4 (2) shows the character “A” displayed using the second font and the corresponding pixels a2-o2. The solid line between pixels a1 and b1 is called solid line a1b1; the solid line between pixels a2 and b2 is called solid line a2b2; and so on. Figure 4 In (1), solid lines a1b1, b1c1, ..., q1s1 form the outline of the character "A" displayed in the first font; the closed area covered by multiple dashed lines formed by solid lines a1b1, b1c1, ..., q1s1 is the local area of the character "A" displayed in the first font; Figure 4 In (2), solid lines a2b2, b2c2, ..., m2o2 form the outline of the character “A” displayed in the second font; the closed area covered by multiple dashed lines formed by solid lines a2b2, b2c2, ..., m2o2 is the local area of the character “A” displayed in the second font.
[0115] It can be understood that the character outline of the character "A" can be considered as the distribution relationship between the pixels of the multiple solid lines that make up the character outline of "A"; the character shape context of the character "A" can be considered as the distribution relationship between the local pixels within a local area.
[0116] In this embodiment, for each candidate font, the character outline and character shape context corresponding to the candidate font can be extracted from the font pool. For the font being used, the character outline and character shape context corresponding to the font being used can be obtained from the terminal device. Further, based on the character outline and character shape context corresponding to each candidate font and the character outline and character shape context corresponding to the font being used, a first font fit degree for each candidate font is determined.
[0117] Specifically, the first font fit of each candidate font can be determined according to the formula: First font fit of candidate font = Character outline similarity × Character outline similarity weight + Character shape context similarity × Character shape context similarity weight.
[0118] It is understandable that character outline similarity is used to characterize the degree of similarity between the character outlines corresponding to the candidate font and the character outlines corresponding to the used font; character shape context similarity is used to characterize the degree of similarity between the character shape context corresponding to the candidate font and the character shape context corresponding to the used font.
[0119] It should be noted that the character outline similarity and character shape context similarity between the candidate font and the font used can be determined by corresponding algorithms. For the sake of brevity, this application will not elaborate on these aspects in the embodiments.
[0120] In this embodiment, the character outlines and character shape contexts of the font display characters can more accurately reflect the visualization effect of the font when forming an image. Therefore, the similarity between candidate fonts and the font being used can be more accurately reflected through character outlines and character shape contexts.
[0121] In addition, assigning appropriate weights to character outline similarity and character shape context similarity makes the determination of the first font fit of candidate fonts more flexible, thereby enabling a more flexible determination of the first target font.
[0122] It should be noted that the character outline similarity weight and the character shape context similarity weight are preset values. Those skilled in the art can set different character outline similarity weights and character shape context similarity weights according to actual needs. This application does not impose specific limitations on this.
[0123] In practical applications, image-forming fonts suitable for forming images on recording sheets typically require proper typography, with lower requirements for font contrast (i.e., the degree of difference in stroke thickness within the font). Therefore, fonts suitable for forming images on recording sheets can be screened first, and then a first target font can be determined from among these fonts.
[0124] Specifically, when there is no font to be used in the font pool, multiple preferred fonts are determined based on the second font fit of each candidate font among multiple candidate fonts; and a first target font that matches the font to be used is determined based on the first font fit of each preferred font among multiple preferred fonts.
[0125] Understandably, the second font fit is used to characterize the visual effect of characters forming an image on the recording sheet. The higher the second font fit, the better the visual effect of characters forming an image on the recording sheet, and the better the user's visual experience.
[0126] This application provides two schemes for "determining multiple preferred fonts based on the second font fit of each candidate font among multiple candidate fonts". In the first scheme, a second font fit threshold can be preset, and candidate fonts with a second font fit greater than the second font fit threshold are selected as preferred fonts. In the second scheme, multiple candidate fonts can be sorted in descending order according to their second font fit, and then the Top N candidate fonts are selected as preferred fonts.
[0127] In this embodiment of the application, before determining a plurality of preferred fonts based on the second font fit of each candidate font among a plurality of candidate fonts, the method further includes: for each candidate font among a plurality of candidate fonts, determining the second font fit of each candidate font based on the multiple font attributes of each candidate font and the first weight corresponding to each font attribute.
[0128] Specifically, the second font fit of each candidate font can be determined according to the formula: Second font fit of candidate font = (height of lowercase letters + height of uppercase letters) × weight of first character height + font contrast × weight of first font contrast + font style × font style coefficient × weight of first font style + (horizontal width of characters + left margin of characters) × weight of first character spacing.
[0129] The various font attributes include lowercase letter height, uppercase letter height, font contrast, font style, character horizontal width, and character left margin. The primary weights for each font attribute are, respectively, primary height weight, primary font contrast weight, primary font style weight, and primary character spacing weight.
[0130] See Figure 5 This is a schematic diagram illustrating the font attributes of a font provided in an embodiment of this application. Figure 5 (1) shows the uppercase letter "X" and lowercase letter "x" displayed in a certain font. The height of the uppercase letter is the distance between the baseline and the top of the uppercase letter "X"; the height of the lowercase letter is the distance between the baseline and the top of the lowercase letter "x".
[0131] exist Figure 5 (2) shows the characters “B” and “C” displayed using a certain font during the horizontal layout of characters. The next character after “B” is “C”. Point O1 is the origin corresponding to character “B”; point O2 is the origin corresponding to character “C”. The horizontal width of character “B” is the horizontal distance from the origin of character “B” to the origin of the next character (i.e., character “C”). The left margin of character “B” is the horizontal distance from the leftmost edge of the outline of character “B” to point O1.
[0132] In this embodiment, font contrast refers to the degree of difference between the thickest and thinnest parts of a font's strokes. Higher font contrast indicates more pronounced differences in stroke thickness; lower font contrast indicates more uniform stroke thickness. Font styles include, but are not limited to, italics, bold, and other style types. The font style coefficient is a coefficient set to filter font styles and can be considered as the proportion of a font style among all style types.
[0133] It should be noted that the various font attributes may also include other font attributes, such as top margin and right margin, etc., and this application embodiment does not impose specific limitations on this. In addition, the first weight is a preset value, and those skilled in the art can set different first weights according to actual needs, and this application embodiment does not impose specific limitations on this.
[0134] In this embodiment of the application, the visualization effect of the candidate font when forming an image on the recording sheet can be comprehensively evaluated by the multiple font attributes of each candidate font. This allows for the selection of a preferred font that is more suitable for forming an image on the recording sheet from multiple candidate fonts, and further allows for the selection of a first target font that provides a better visual experience for the user from the preferred fonts.
[0135] Step S207: Set the image font to the first target font.
[0136] As described above, the image forming font is the font used by the image forming apparatus when forming an image on a recording sheet. In this embodiment, after the image forming apparatus determines the first target font, it sets the image forming font as the first target font.
[0137] In this embodiment, after the image forming apparatus sets the image forming font to the first target font, the user can send an image forming job to the image forming apparatus via a terminal device. Regarding the content in the image forming job corresponding to a specified language type, the terminal device does not process the content corresponding to the specified language type, but only sends the string of the content corresponding to the specified language type to the image forming apparatus; regarding other content in the image forming job besides the content corresponding to the specified language type, the terminal device uses its own font to convert the other content into character rendering data that the image forming apparatus can recognize, and then sends the character rendering data to the image forming apparatus.
[0138] Understandably, when the image forming apparatus receives a string of content corresponding to a specified language type, it forms an image on the recording sheet according to the glyphs corresponding to the first target font.
[0139] In addition, the character rendering data includes glyph data for forming images of other content besides the content corresponding to the specified language type on the recording sheet during the image forming operation. When the image forming apparatus receives the character rendering data, it obtains the corresponding glyphs by parsing the character rendering data, and then forms an image of the other content strings on the recording sheet according to the corresponding glyphs in the character rendering data.
[0140] In this embodiment, since the font pool in the image forming apparatus includes fonts corresponding to multiple language types, the image forming apparatus can set the image forming font to the font corresponding to the specified language type set by the user. When the terminal device lacks fonts corresponding to other language types, the image forming apparatus can use fonts in the font pool that correspond to other language types to output the content corresponding to other language types in the image forming operation to the recording sheet, thus ensuring the integrity of the image formed by the image forming apparatus on the recording sheet to a certain extent. In addition, the image forming apparatus does not need to receive character rendering data of the content corresponding to the specified language type in the image forming operation, which is equivalent to reducing the amount of data that the image forming apparatus parses for character rendering data, thereby improving the speed of image formation on the recording sheet to a certain extent.
[0141] Furthermore, when users do not need to send image formation jobs through terminal devices, they can write image data for image formation jobs corresponding to the language type in the font pool. For example, they can customize image formation jobs according to the PostScript language format. This allows users to create images on recording sheets using any font from the font pool.
[0142] As mentioned above, in order to display images corresponding to different language types on the panel display interface, the operation process may be relatively complex and prone to errors, which may result in low development efficiency.
[0143] See Figure 6 This is another font configuration method for an image forming apparatus provided in this application embodiment. This method can be applied to... Figure 1 In the image forming apparatus shown, such as Figure 6 As shown, it specifically includes steps S601-S603.
[0144] Step S601: Obtain the specified language type set by the user.
[0145] As mentioned above, users can typically perform operations such as viewing, selecting, and setting on the panel display interface of the image forming apparatus. Therefore, users can trigger a language selection operation on the panel display interface of the image forming apparatus.
[0146] In this embodiment, when a user triggers a language selection operation on the panel display interface, the image forming apparatus can determine the specified language type set by the user. Furthermore, the image forming apparatus can determine the font used when displaying the image on the panel display interface, i.e., the panel display font.
[0147] Step S602: Determine the second target font corresponding to the specified language type from the font pool according to the specified language type.
[0148] In this embodiment of the application, in order to distinguish it from the "first target font" mentioned above, the target font used to set the font displayed on the panel is referred to as the "second target font".
[0149] In practical applications, panel display fonts suitable for forming images on panel display interfaces typically require high font contrast to achieve optimal visual effects. Therefore, in this embodiment, a suitable font for forming images on a panel display interface can be selected from multiple candidate fonts corresponding to a specified language type.
[0150] Specifically, based on the third font fit of each candidate font among a plurality of candidate fonts, a second target font that matches the panel display interface of the image forming apparatus is determined in the font pool.
[0151] The candidate fonts include all fonts in the font pool that correspond to the specified language type. The third font fit is used to characterize the visual effect of the characters when forming an image on the panel display interface. It can be understood that the higher the third font fit, the better the visual effect of the characters when forming an image on the panel display interface, and the better the user's visual experience.
[0152] Therefore, in this embodiment, the candidate font with the third font fit corresponding to the maximum value can be used as the second target font, thereby making the visualization effect of the characters forming an image on the panel display interface better.
[0153] In this embodiment of the application, before determining the second target font that matches the panel display interface of the image forming apparatus in the font pool based on the third font fit of each candidate font among the plurality of candidate fonts, the method further includes: for each candidate font among the plurality of candidate fonts, determining the third font fit of each candidate font based on the multiple font attributes of each candidate font and the second weight corresponding to each font attribute.
[0154] Specifically, the third font fit of each candidate font can be determined according to the formula: Third font fit of candidate font = (height of lowercase letters + height of uppercase letters) × weight of second character height + font contrast × weight of second font contrast + font style × font style coefficient × weight of second font style + (horizontal width of characters + left margin of characters) × weight of second character spacing.
[0155] Among them, the second weights corresponding to each font attribute are the second character height weight, the second font contrast weight, the second font style weight, and the second character spacing weight.
[0156] It should be noted that the second weight is a preset value, and those skilled in the art can set different second weights according to actual needs. This application does not impose specific restrictions on this.
[0157] In this embodiment of the application, other specific details can be found in the description of step S206 above. For the sake of brevity, the embodiments of this application will not be repeated here.
[0158] Step S603: Set the panel display font to the second target font.
[0159] As described above, the font used in the panel display is the font used by the image forming apparatus when displaying images on the panel display interface. In this embodiment, after the image forming apparatus determines the second target font, it sets the image forming font to the second target font. Further, the image forming apparatus forms an image on the panel display interface based on the glyphs corresponding to the second target font.
[0160] In this embodiment, since the font pool in the image forming apparatus includes fonts corresponding to multiple language types, the image forming apparatus can set the panel display font to the font corresponding to the specified language type set by the user. Developers do not need to pre-obtain the characters required for content in other language types and the corresponding character rendering data; they only need to count the strings corresponding to the content on the panel display interface in other language types. The image forming apparatus can then output the strings corresponding to other language types to the corresponding panel display interface using the fonts in the font pool, thereby improving the development efficiency of developers to a certain extent.
[0161] It should be noted that, in order to increase the diversity of fonts in image forming apparatuses and meet the needs of different users, users can usually add fonts corresponding to their desired language types to the image forming apparatus themselves using third-party tools. For example, the fonts requested by the user can be installed into the image forming apparatus through external devices or tools provided by the image forming apparatus manufacturer.
[0162] Furthermore, the image forming apparatus can store and manage fonts corresponding to user-added desired language types through a font pool, so that when the user selects a desired language type, the image forming font and the panel display font are set to the font corresponding to the desired language type. This enables personalized settings for the images formed on the recording film and the panel display interface, resulting in a better user experience.
[0163] As mentioned above, image forming apparatuses typically set the image forming font of the image forming apparatus and the font of the panel display interface to the default font corresponding to the default language type. In this embodiment, after setting a font pool in the image forming apparatus, the image forming apparatus can initialize the default font corresponding to the default language type through the font processing engine, enabling the image forming apparatus to form images on the recording sheet and the panel display interface using the default font.
[0164] The initialization of the default font corresponding to the default language type refers to creating an object corresponding to the default language type through the program interface of a third-party open-source tool, and checking and accessing the default font through the function of the object corresponding to the default language type, so that the image forming device sets the image forming font and the font of the panel display interface as the default font.
[0165] For example, when the third-party open-source tool is FreeType, the initialization of the default font corresponding to the default language type involves creating an FT_Library object corresponding to the default language type through FreeType's FT_New_Library interface, and then checking whether the default font exists in the font pool according to its storage path in the font pool through the FT_New_Face interface. Once it is determined that the default font exists in the font pool, it is loaded through the FT_New_Face interface according to its storage path in the font pool.
[0166] Understandably, the FT_Library object corresponding to the default language type is used to manage the memory, font file, etc., of the font corresponding to the default language type. This FT_Library object can be considered a switch for managing the font corresponding to the default language type; only after creating this FT_Library object can the font corresponding to the default language type be accessed. The FT_New_Face interface is a function used to load the font file of the default font and create the FT_Face object corresponding to the default font, so as to access all data (e.g., glyphs, sizes, etc.) corresponding to the default font.
[0167] It should be noted that before accessing the default font through the function of the object corresponding to the default language type, it is necessary to check whether the default font exists in the font pool. This is to ensure that the default font can be accessed and used normally, thereby reducing the risk of the image forming device failing to set the default font.
[0168] In this embodiment, when the image forming apparatus sets the image forming font and the font of the panel display interface to the default font, the content corresponding to the default language type in the image forming operation can be formed into an image on the recording sheet using the default font. Furthermore, the panel display interface displays an image formed using the default font.
[0169] Additionally, it should be noted that before steps S206 and S602, the method further includes: the image forming apparatus is able to perform font initialization of the font corresponding to the specified language type through the font processing engine, thereby enabling the image forming apparatus to access all data (e.g., font attributes, character morphological features, etc.) of each font corresponding to the specified language type. Further, by accessing all data of each font corresponding to the specified language type, a first target font or a second target font corresponding to the specified language type is determined.
[0170] The initialization of the font corresponding to the specified language type refers to creating an object corresponding to the specified language type through the program interface of a third-party open-source tool, and checking and accessing the font corresponding to the specified language type through the functions of the object corresponding to the specified language type.
[0171] For example, when the third-party open-source tool is FreeType, font initialization for a font corresponding to a specified language type involves creating an FT_Library object for the specified language type using FreeType's FT_New_Library interface, and then checking the font pool for the existence of the font according to its storage path in the font pool. Once the font is confirmed to exist in the font pool, it is loaded using the FT_New_Face interface according to its storage path in the font pool.
[0172] As you can understand, the FT_Library object corresponding to a specified language type is used to manage the memory, font files, etc., of the font corresponding to that language type. You can think of the FT_Library object as a switch for managing the font corresponding to that language type; only after creating this FT_Library object can you access the font corresponding to that language type. The FT_New_Face interface is a function used to load the font file for each font corresponding to a specified language type and create the corresponding FT_Face object for that font, so as to access all the data (e.g., glyphs, dimensions, etc.) of that font.
[0173] It should be noted that before accessing the font corresponding to the specified language type through the function of the object corresponding to the specified language type, it is also necessary to check whether the font exists in the font pool. This is to ensure that the font can be accessed and used normally, thereby reducing the risk of the image forming device failing to set the font.
[0174] In this embodiment, the font processing engine allows developers to modify font styles and designs, diversifying font design. This enables the provision of personalized fonts for different users, enhancing the user experience.
[0175] See Figure 7 This is another font configuration method for an image forming apparatus provided in this application embodiment. This method can be applied to... Figure 1 In the image forming apparatus shown, such as Figure 7 As shown, it specifically includes steps S701-S707.
[0176] Step S701: In response to the user-triggered specified language type selection operation, the image forming apparatus sends the specified language type to the terminal device.
[0177] Step S702: The terminal device receives the specified language type sent by the image forming apparatus.
[0178] Step S703: The terminal device determines the font to use based on the specified language type.
[0179] Step S704: The terminal device sends the font to be used to the image forming apparatus.
[0180] Step S705: Obtain the specified language type set by the user.
[0181] Step S705: Determine the second target font corresponding to the specified language type from the font pool.
[0182] Step S707: Set the panel display font to the second target font.
[0183] For specific details regarding the implementation of this application, please refer to the above. Figure 2 and Figure 6 The descriptions in the illustrated embodiments are omitted for brevity. It should be noted that, in the implementation of this application, the execution order and execution time of steps S701-S704 and steps S705-S706 are not specifically limited.
[0184] Corresponding to the above embodiments, this application also provides an image forming apparatus.
[0185] See Figure 8 This is a schematic diagram of the structure of the image forming apparatus provided in an embodiment of this application. Figure 8 As shown, the image forming apparatus 800 includes a controller 801, which is configured to perform the above-described method embodiments.
[0186] For details regarding the specific content involved in the embodiments of this application, please refer to the description of the above method embodiments. For the sake of brevity, these details will not be repeated here.
[0187] Corresponding to the above embodiments, this application also provides a terminal device.
[0188] See Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Figure 9 As shown, the terminal device 900 may include a processor 901, a memory 902, and a communication unit 903. These components communicate via one or more buses. Those skilled in the art will understand that the terminal device structure shown in the figures does not constitute a limitation on the embodiments of this application. It may be a bus topology or a star topology, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0189] The communication unit 903 is used to establish a communication channel, thereby enabling the terminal device to communicate with other devices.
[0190] The processor 901 serves as the control center of the terminal device, connecting various parts of the terminal device via various interfaces and lines. It executes software programs and / or modules stored in the memory 902, and calls data stored in the memory to perform various functions of the terminal device and / or process data. The processor can be composed of integrated circuits (ICs), such as a single packaged IC or multiple packaged ICs with the same or different functions connected together. For example, the processor 901 may consist only of a central processing unit (CPU). In this embodiment, the CPU may have a single processing core or include multiple processing cores.
[0191] Memory 902 is used to store the execution instructions of processor 901. Memory 902 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0192] When the execution instructions in memory 902 are executed by processor 901, the terminal device 900 is able to perform some or all of the steps in the above method embodiments.
[0193] For details regarding the specific content involved in the implementation of this application, please refer to the description in the method embodiments. For the sake of brevity, these details will not be repeated here.
[0194] Corresponding to the above embodiments, this application also provides a font configuration system for an image forming apparatus.
[0195] See Figure 10 This is a schematic diagram of the structure of the font configuration system of the image forming apparatus provided in an embodiment of this application. Figure 10 As shown, the font configuration system 1000 of the image forming apparatus includes an image forming apparatus 800 and a terminal device 900, wherein the image forming apparatus 800 and the terminal device 900 are communicatively connected.
[0196] For details regarding the specific content involved in the implementation of this application, please refer to the description in the method embodiments. For the sake of brevity, these details will not be repeated here.
[0197] Corresponding to the above embodiments, this application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, wherein when the program runs, it can control the device where the computer-readable storage medium is located to execute some or all of the steps in the above method embodiments. Specifically, the computer-readable storage medium may be a magnetic disk, an optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0198] Corresponding to the above embodiments, this application also provides a computer program product containing executable instructions that, when executed on a computer, cause the computer to perform some or all of the steps in the above method embodiments.
[0199] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0200] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0201] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0202] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0203] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A font configuration method for an image forming apparatus, characterized in that, Applied to an image forming apparatus, including: In response to a user-triggered language selection action, the specified language type is sent to the terminal device; Receive the font used sent by the terminal device, wherein the font used is the font used in the content corresponding to the specified language type in the image forming operation; Based on the font used, a first target font that matches the font used is determined from the font pool; The image forming font is set to the first target font, which is the font used by the image forming apparatus when forming an image on a recording sheet.
2. The method according to claim 1, characterized in that, The step of determining a first target font that matches the used font in the font pool includes: The font pool includes multiple sub-font pools, and each sub-font pool includes multiple fonts corresponding to the same language type; When the font being used exists in the font pool, the font being used is identified as the first target font; When the font to be used is not found in the font pool, a first target font that matches the font to be used is determined based on the first font fit of each of the multiple candidate fonts. The multiple candidate fonts include all fonts in the font pool that correspond to the specified language type. The first font fit is used to characterize the font similarity between the candidate font and the font to be used.
3. The method according to claim 2, characterized in that, Before determining the first target font that matches the font being used based on the first font fit of each of the multiple candidate fonts, the method further includes: Based on the character morphological features corresponding to each of the multiple candidate fonts and the character morphological features corresponding to the font being used, a first font fit degree is determined for each of the candidate fonts; The character morphological features are used to characterize the spatial distribution relationship of the pixels corresponding to the character.
4. The method according to claim 2, characterized in that, The step of determining a first target font that matches the font being used based on the first font fit of each of the multiple candidate fonts includes: Multiple preferred fonts are determined based on the second font fit of each of the multiple candidate fonts, wherein the second font fit is used to characterize the visualization effect of characters when forming an image on a recording sheet; Based on the first font fit of each of the multiple preferred fonts, a first target font that matches the font being used is determined.
5. The method according to claim 4, characterized in that, Before determining a plurality of preferred fonts based on the second font fit of each of the plurality of candidate fonts, the method further includes: For each of the multiple candidate fonts, a second font fit degree is determined based on the various font attributes of each candidate font and a first weight corresponding to each font attribute.
6. A font configuration method for an image forming apparatus, characterized in that, Applied to an image forming apparatus, including: Retrieve the specified language type set by the user; According to the specified language type, a second target font corresponding to the specified language type is determined in the font pool. The font pool includes multiple sub-font pools, and each sub-font pool includes multiple fonts corresponding to the same language type. Set the panel display font to the second target font, which is the font used when the panel display interface of the image forming apparatus displays an image.
7. The method according to claim 6, characterized in that, The step of determining a second target font corresponding to the specified language type from the font pool includes: Based on the third font fit of each of the multiple candidate fonts, a second target font that matches the panel display interface of the image forming apparatus is determined from the font pool; The plurality of candidate fonts include all fonts in the font pool that correspond to the specified language type, and the third font adaptation degree is used to characterize the visualization effect when the characters form an image on the panel display interface.
8. The method according to claim 7, characterized in that, Before determining a second target font that matches the panel display interface of the image forming apparatus in the font pool based on a third font fit of each of the multiple candidate fonts, the method further includes: For each of the multiple candidate fonts, a third font fit degree is determined based on the various font attributes of each candidate font and the second weight corresponding to each font attribute.
9. A font configuration method for an image forming apparatus, characterized in that, Applied to terminal devices, including: Receives a specified language type sent by the image forming apparatus; The font to be used is determined based on the specified language type, wherein the font to be used is the font used in the image forming operation for the content corresponding to the specified language type; The font to be used is sent to the image forming apparatus.
10. An image forming apparatus, characterized in that, include: A controller configured to perform the method according to any one of claims 1 to 8.
11. A terminal device, characterized in that, include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, causes the terminal device to perform the method of claim 9.
12. A font configuration system for an image forming apparatus, characterized in that, include: The image forming apparatus according to claim 10; The terminal device as described in claim 11; The image forming apparatus is communicatively connected to the terminal device.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 9.