CN111651229A - Font changing method, device and equipment - Google Patents

Font changing method, device and equipment Download PDF

Info

Publication number
CN111651229A
CN111651229A CN202010493101.2A CN202010493101A CN111651229A CN 111651229 A CN111651229 A CN 111651229A CN 202010493101 A CN202010493101 A CN 202010493101A CN 111651229 A CN111651229 A CN 111651229A
Authority
CN
China
Prior art keywords
font
characters
user
handwritten
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010493101.2A
Other languages
Chinese (zh)
Inventor
王傲淇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010493101.2A priority Critical patent/CN111651229A/en
Publication of CN111651229A publication Critical patent/CN111651229A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Abstract

The application discloses a font changing method, device and equipment, and relates to the technical field of display control of terminals. The specific implementation scheme is as follows: receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwritten font of the user; and according to the font replacement instruction, acquiring a font packet corresponding to the handwritten font of the user, and replacing the font of the displayed characters in the terminal equipment according to the font packet. Through the process, the character style of the displayed characters in the terminal equipment is changed into the handwritten character style of the user, so that the displayed characters in the terminal equipment are matched with the style or the characteristics of the handwritten characters of the user, and the personalized requirements of the user are met.

Description

Font changing method, device and equipment
Technical Field
The embodiment of the application relates to a display control technology in a terminal, in particular to a font changing method, device and equipment.
Background
When the user uses the terminal device, the fonts displayed in the terminal device can be replaced.
In the prior art, when a user changes fonts, only a preset font built in a terminal device can be selected for changing. For example, the user may change the font to a black and white font, a regular font, a young circle, or the like.
However, the above prior art can only replace the font with a fixed preset font, and cannot meet the personalized requirements of the user.
Disclosure of Invention
The application provides a font changing method, device and equipment, which can change the font of the displayed characters in the terminal equipment into the handwritten font of the user, and meet the personalized requirements of the user.
In a first aspect, the present application provides a font changing method, including:
receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwriting font of the user;
acquiring a font packet corresponding to the handwritten font according to the font replacing instruction;
and replacing the fonts of the characters displayed in the terminal equipment according to the font packet.
In a second aspect, the present application provides a font exchange apparatus, comprising:
the receiving module is used for receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwritten font of the user;
the acquisition module is used for acquiring a font packet corresponding to the handwritten font according to the font replacement instruction;
and the replacing module is used for replacing the fonts of the characters displayed in the terminal equipment according to the font packet.
In a third aspect, the present application provides an electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of the first aspects.
The application provides a font changing method, a font changing device and font changing equipment, wherein the method comprises the following steps: receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwritten font of the user; and according to the font replacement instruction, acquiring a font packet corresponding to the handwritten font of the user, and replacing the font of the displayed characters in the terminal equipment according to the font packet. Through the process, the character style of the displayed characters in the terminal equipment is changed into the handwritten character style of the user, so that the displayed characters in the terminal equipment are matched with the style or the characteristics of the handwritten characters of the user, and the personalized requirements of the user are met.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a diagram illustrating one possible system architecture suitable for use with embodiments of the present application;
fig. 2 is a schematic flowchart of a font changing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a font replacement process provided in one embodiment of the present application;
FIG. 4 is a schematic diagram of a font replacement effect provided by an embodiment of the present application;
FIG. 5 is a schematic flowchart of a font exchange method according to another embodiment of the present application;
FIG. 6 is a schematic diagram of a font exchange process provided in another embodiment of the present application;
fig. 7 is a schematic structural diagram of a font exchange device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A possible system architecture of the embodiment of the present application is described below with reference to fig. 1. Fig. 1 is a schematic diagram of a possible system architecture to which the present invention is applicable. As shown in fig. 1, the system architecture may include a terminal device and a server. The terminal device can be in communication connection with the server through the network. The network may include various connection types, such as: a wired communication link, a wireless communication link, or a fiber optic cable, among others.
The terminal device may be various electronic devices with a display screen, including but not limited to: the intelligent wearable device comprises a computer, a smart phone, a notebook computer, a tablet computer, an intelligent wearable device, an intelligent television, a visual sound box and the like. The terminal equipment can display information such as characters, images, videos and the like through the display screen. In some embodiments, the display screen of the terminal device may also be a touch screen through which the user may input information to the terminal device. For example, the user may input a control instruction to the terminal device through the touch screen, or the user may input information such as text to the user through the touch screen. The terminal device may also send information to the server and/or receive information from the server.
The server may be a server for providing various services. The server can analyze and process the information received from the terminal equipment to obtain a processing result. Optionally, the server may further send the processing result to the terminal device. The server may be hardware or software. In some embodiments, the server may be a cloud server.
The user can change the fonts displayed in the terminal device in the process of using the terminal device. In a related art, a system setting interface of a terminal device may include a font replacement menu, and a user may replace a font of a display text in a terminal device system through the font replacement menu. In another related technology, a font replacement menu is set in an input method application program of a terminal device, and a user can replace a font of a displayed character in the input method application program through the font replacement menu. No matter which kind of the related technology is described above, when the user performs font replacement, only the preset font built in the terminal device can be selected for replacement. For example, the user may change the font to a black and white font, a regular font, a young circle, or the like.
However, the above prior art can only replace the font with a fixed preset font, and cannot meet the personalized requirements of the user. In addition, in the prior art, only the displayed characters in the terminal device system can be replaced, or only the displayed characters in the input method application program can be replaced, so that the fonts of the displayed characters in the terminal device are not uniform. Further, when a user needs to unify fonts of characters displayed in the terminal device, the user needs to set in different font changing menus, which results in complicated user operation.
The font changing method provided by the embodiment of the application aims to solve at least one of the above technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a font changing method according to an embodiment of the present application. The method of the present embodiment may be performed by a terminal device. As shown in fig. 2, the method of this embodiment may include:
s201: receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwriting font of the user.
Specifically, a user inputs a font replacement instruction to the terminal device, and the terminal device receives the font replacement instruction input by the user. In this embodiment, the font replacement instruction is used to instruct to replace the font of the displayed text in the terminal device with the handwritten font of the user.
In this embodiment, the handwriting font of the user is different from the font (e.g., regular font, song font, circle, etc.) preset in the terminal device. The handwriting font of the user refers to a font matched with the style and the characteristics of the handwriting character of the user. It can be appreciated that the handwritten fonts are typically different for different users.
S202: and acquiring a font packet corresponding to the handwritten font according to the font replacing instruction.
In this embodiment, the handwritten font of the user corresponds to a font packet. The font packet comprises a plurality of characters, and the characters are matched with the style and the characteristics of the handwritten characters of the user, or the similarity between the characters and the handwritten characters of the user is larger than a preset threshold value.
It should be understood that the font packet is not a font packet preset at the time of factory shipment of the terminal device. The font packet is generated from the handwritten text of the user.
In some examples, the font packet may be generated by the terminal device from the user's handwritten text. After the terminal device generates the font packet, the font packet may be stored in a local storage space of the terminal device, or stored in a cloud server corresponding to the terminal device.
In other examples, the font packet may be generated by other devices (e.g., other terminal devices, or cloud servers) according to the handwritten text of the user. After the other devices generate the font packet, the font packet is sent to the terminal device, so that the terminal device stores the font packet into a local storage space or stores the font packet into a corresponding cloud server.
In this embodiment, after receiving the font replacement instruction, the terminal device may obtain the font packet from the local storage space of the terminal device or from the cloud server. Specifically, the terminal device detects whether the font packet exists in the local storage space and the cloud server respectively. If so, the font packet can be directly acquired. If the font packet does not exist, the terminal equipment can generate the font packet according to the handwritten characters of the user.
It should be noted that the present embodiment is not limited to the process of generating the font packet according to the handwritten text of the user. One possible implementation can be seen in the detailed description of the subsequent examples.
S203: and replacing the fonts of the characters displayed in the terminal equipment according to the font packet.
Specifically, the font of the text displayed in the terminal device is replaced by the font corresponding to the font packet. That is, the font of the displayed text in the terminal device is replaced with the handwritten font of the user.
It can be understood that the handwritten fonts of different users generally have different characteristics, and in this embodiment, the characters displayed in the terminal device are changed into the handwritten fonts of the user, so that the characteristics of the characters displayed in the terminal device are matched with the characteristics of the handwritten characters of the user, that is, the characters displayed in the terminal device look like the handwritten characters of the user, and thus, the personalized requirements of the user are met.
Further, when the characters displayed in the terminal device are replaced, all the characters displayed in the terminal device may be replaced, or some characters displayed in the terminal device may be replaced. For example, the user may instruct which fonts of the displayed text in the terminal device are replaced by the font replacement instruction.
In a possible embodiment, the font replacement instruction is specifically configured to instruct to replace the font of the first displayed text in the terminal device with the handwritten font of the user. Correspondingly, S203 may specifically include: and the terminal equipment replaces the font of the first display character in the terminal equipment according to the font packet. The first display text is display text in an input method application program of the terminal device, and includes but is not limited to: characters in the input method panel skin, candidate characters, input code characters, characters in a setting menu, characters in other relevant interfaces of the input method, and the like.
In another possible implementation, the font replacement instruction is specifically used to instruct to replace the font of the second displayed text in the terminal device with the handwritten font of the user. Correspondingly, S203 may specifically include: and the terminal equipment replaces the font of the second display character in the terminal equipment according to the font packet. The second display text is system display text of the terminal device, and includes but is not limited to: the characters corresponding to the desktop icons, the characters in the system setting menu, the characters in the web page, the characters in the chat window and the like.
In another possible implementation, the font replacement instruction is specifically configured to instruct to replace both the first display text and the second display text in the terminal device with the handwritten font of the user. Correspondingly, S203 may specifically include: and the terminal equipment replaces the font of the first display character in the terminal equipment and replaces the font of the second display character in the terminal equipment according to the font packet. In the embodiment, after the font of the user is changed, the system display characters in the terminal equipment and the display characters in the input method application program are uniformly changed into the handwriting font of the user, so that the font uniformity of the terminal equipment is ensured.
In each embodiment, the user can select which characters displayed in the terminal equipment are changed according to the own requirements, so that the user can set more flexibly, the operation is convenient and fast, and the individual requirements of the user are further met.
The font changing method provided by the embodiment comprises the following steps: receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwritten font of the user; and according to the font replacement instruction, acquiring a font packet corresponding to the handwritten font of the user, and replacing the font of the displayed characters in the terminal equipment according to the font packet. Through the process, the character style of the displayed characters in the terminal equipment is changed into the handwritten character style of the user, so that the displayed characters in the terminal equipment are matched with the style or the characteristics of the handwritten characters of the user, and the personalized requirements of the user are met.
Fig. 3 is a schematic diagram of a font exchange process according to an embodiment of the present application. In this embodiment, taking the terminal device as a mobile phone as an example, a process of changing a font of the mobile phone is described with reference to fig. 3.
Fig. 3 (a) is a schematic diagram illustrating a setting interface of a terminal device. It should be noted that the setting interface may be a system setting interface of the terminal device, a setting interface of the input method application program, or a setting interface of another application program, which is not limited in this embodiment. As shown in fig. 3 (a), the setting interface includes a setting item of "personalized font". When the user clicks the setting item, the setting interface of "personalized font" is entered, as shown in (b) of fig. 3.
Referring to (b) in fig. 3, a setting item of "handwritten font" is included in the setting interface of "personalized font". When a user clicks a use button corresponding to the handwritten font, the terminal device receives a font replacement instruction, and therefore the terminal device obtains a font packet corresponding to the handwritten font in a local storage space or a cloud server.
In the case where the terminal device acquires the font packet, the terminal device may display a setting interface as shown in (c) in fig. 3 for the user to select whether to apply the handwritten font to the input method or to the system. For example, in (c) in fig. 3, assuming that the user selects to apply to the input method and the system at the same time, the terminal device replaces the displayed text in the input method with a handwritten font, and replaces the displayed text in the system with a handwritten font.
Fig. 4 is a schematic diagram of a font replacement effect according to an embodiment of the present application. Assuming that the display font in the terminal device before font replacement is sons, taking the chat interface as an example, the display effect before font replacement is as shown in fig. 4 (a). After the font exchange process shown in fig. 3, the display effect of the same chat interface is shown in fig. 4 (b), and it can be seen that both the system display text and the input method display text in the interface are displayed as the handwritten font of the user.
Through the font replacing process, the font of the displayed characters in the terminal equipment is replaced by the handwriting font of the user, so that the style or the characteristics of the displayed characters in the terminal equipment are matched with the style or the characteristics of the handwriting characters of the user, and the personalized requirements of the user are met. And when the fonts are changed, the user can select which display characters in the terminal equipment to change the fonts according to the own requirements, so that the user can set more flexibly, is convenient and fast to operate, and further meets the individual requirements of the user.
On the basis of any of the above embodiments, when the terminal device receives the font replacement instruction, there may be the following cases: the terminal device does not acquire the font packet corresponding to the user handwritten font in the local storage space or the cloud server, that is, the font packet corresponding to the user handwritten font is not generated yet. In this case, the terminal device may obtain the handwritten text of the user, and generate a font packet corresponding to the handwritten font according to the handwritten text of the user. This is described below in connection with a specific embodiment.
Fig. 5 is a flowchart illustrating a font exchange method according to another embodiment of the present application. As shown in fig. 5, the method of the present embodiment includes:
s501: and receiving a font replacing instruction input by a user, wherein the font replacing instruction is used for indicating that the font of the characters displayed in the terminal equipment is replaced by the handwriting font of the user.
It should be understood that the specific implementation of S501 is similar to S201 in fig. 2, and is not described herein again.
S502: and displaying a first interface according to the font changing instruction, wherein the first interface is used for inputting handwritten characters by a user.
S503: and acquiring the handwritten characters input by the user through the first interface, and generating a font packet according to the acquired handwritten characters.
The first interface may also be referred to as a handwriting input interface. In the interface, a user can input characters to the terminal equipment by adopting a handwriting input mode, and the terminal equipment collects the handwriting characters input by the user. For example, the terminal device may capture an image of handwritten text.
Further, the terminal equipment extracts the characteristics of the handwritten characters according to the collected images of the handwritten characters. Further, a font packet is generated based on the characteristics of the handwritten character. The text in the font packet has the characteristics of the user handwritten text, i.e. looks like the user handwritten text.
In one possible implementation manner, when the number of the handwritten characters input by the user through the first interface reaches a first preset number, acquiring the characteristics of the handwritten characters of the first preset number; generating a font packet according to the characteristics, wherein the number of the characters in the font packet is a second preset number, and the second preset number is larger than the first preset number.
The value of the first preset number is not limited in this embodiment. Illustratively, the first preset number may be 100, 200, etc. Taking the first preset number as 100 as an example, that is, the user may input 100 handwritten characters through the first interface, and then the terminal device generates the font packet according to the features of the 100 handwritten characters. The font packet is a relatively complete font packet, the font packet comprises a second preset number of commonly used characters, and the second preset number is greater than the first preset number. The value of the second preset number is not limited in this embodiment. For example, a font packet may include thousands of words. Each text in the font packet has characteristics of the user's handwritten text.
Through the process, the special font packet of the user can be generated only by inputting a small number of handwritten characters by the user, and the characters in the font packet have the characteristics of the handwritten characters of the user and look like the handwritten characters of the user.
In some embodiments, when a user enters handwritten text through the first interface, it may be autonomously determined by the user which text to enter.
In other embodiments, the terminal device may prompt the user for which text to input. Illustratively, the first interface includes: the first interface is specifically used for enabling a user to input the preset characters in the handwriting input area in a handwriting mode.
Specifically, the terminal device determines a first preset number of preset characters in advance, and the preset characters cover various different structures, strokes and the like. When the user inputs the characters through the first interface, the user can be prompted to input the preset characters, so that the comprehensive characteristics can be extracted according to the handwritten characters of the user, and the characters in the font packet and the handwritten characters of the user have high similarity.
Optionally, the preset characters may be chinese characters, and may also be english characters, or may also be characters of other languages. Therefore, under the prompt of the preset characters, the user can input the handwritten characters of different languages, so that the font packet generated based on the handwritten characters of the user comprises the characters of different languages. Furthermore, after the display characters in the terminal equipment are replaced by the font packet, the characters of different languages displayed in the terminal equipment can be replaced by handwriting fonts, the uniformity of the display fonts of the terminal equipment is improved, and the use experience of a user is improved.
In some application scenarios, the above process of generating the font packet may also be performed by the server when the processing capability of the terminal device is limited. Specifically, when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, the terminal device sends the handwritten characters of the first preset number to the server. The server extracts the characteristics of the handwritten characters of the first preset number and generates a font packet according to the extracted characteristics. And after generating the font packet, the server sends the font packet to the terminal equipment, or when the terminal equipment needs to acquire the font packet, the server sends the font packet to the terminal equipment. The font packet comprises a second preset number of characters, and the second preset number is larger than the first preset number.
In the process, the terminal equipment collects the handwritten characters of the user, the server generates the font packet according to the collected handwritten characters, the processing load of the terminal equipment can be reduced, the requirement on the processing capacity of the terminal equipment is lowered, and the method and the system for processing the handwritten characters can be suitable for various terminal equipment.
S504: and replacing the fonts of the characters displayed in the terminal equipment according to the font packet.
The specific implementation of S504 in this embodiment is similar to S203 in fig. 2, and is not described herein again.
Fig. 6 is a schematic diagram of a font exchange process according to another embodiment of the present application. In this embodiment, taking the terminal device as a mobile phone as an example, a process and an effect of changing a font of the mobile phone are described with reference to fig. 6.
Fig. 6 (a) is a schematic diagram illustrating a setting interface of the terminal device. It should be noted that the setting interface may be a system setting interface of the terminal device, a setting interface of the input method application program, or a setting interface of another application program, which is not limited in this embodiment. As shown in fig. 6 (a), the setting interface includes a setting item of "personalized font". When the user clicks the setting item, the setting interface of "personalized font" is entered, as shown in (b) of fig. 6.
Referring to (b) in fig. 6, a setting item of "handwritten font" is included in the setting interface of "personalized font". When a user clicks a use button corresponding to the handwritten font, the terminal device receives a font replacement instruction, and therefore the terminal device obtains a font packet corresponding to the handwritten font in a local storage space or a cloud server.
In a case where the terminal device does not acquire the font packet, the terminal device may display a handwriting input interface (i.e., a first interface) as illustrated in (c) of fig. 6. For example, in a handwriting input interface, the terminal device prompts the user to input the text "other", and the user can input the text "other" in a handwriting input area in the interface. The user may click on the "rewrite" button if he enters an error or otherwise needs to rewrite the input. After the user has finished entering, the "OK" button may be clicked. When the terminal equipment detects that the user clicks the 'confirm' button, the terminal equipment acquires and stores images of the handwritten characters of the user temporarily. And then, the terminal equipment displays the next preset character in the handwriting input interface and empties the handwriting input area, so that the user can input the next preset character in the handwriting input area. And repeating the steps until the number of the handwritten characters input by the user reaches a first preset number.
Assuming that the first preset number is 100, as shown in (d) of fig. 6, when the user inputs the 100 th character "width" and clicks the confirmation, the terminal device generates a font packet according to the collected images of the 100 handwritten characters. Specifically, the terminal device extracts features from 100 images of the handwritten characters, and generates a font packet according to the features; or the terminal equipment sends the 100 images of the handwritten characters to the server, and the server extracts the features of the 100 images of the handwritten characters and generates a font packet according to the features. In the process of generating the font packet, the terminal device may display an interface as shown in (e) in fig. 6.
After the font packet is generated, the terminal device may display an interface shown in (f) in fig. 6 to prompt the user that the generation of the handwritten font packet is completed. In the interface, a user can click an "apply immediately" button, so that the terminal device can replace the displayed text in the terminal device according to the font packet. Optionally, after the user clicks the "apply immediately" button, the terminal device may further prompt the user to select whether to apply the handwritten font to the input method or the system, which is specifically similar to that shown in fig. 3 (c), and details are not described here.
In some scenarios, if the user does not want to apply the handwritten font packet immediately, the "apply later" button may also be clicked in the interface shown in (f) in fig. 6. Thus, when the user needs to change the font subsequently, the font can be changed according to the font changing process shown in fig. 3.
It should be understood that after the font replacement process shown in fig. 6, the corresponding display effect of the terminal device is similar to that shown in fig. 4, and is not described in detail here.
Through the process of font replacement, the terminal equipment only needs to collect a small number of handwritten characters to generate the exclusive font packet of the user, and then the font of the display characters in the terminal equipment can be replaced by the handwritten font of the user according to the font packet, so that the display characters in the terminal equipment are matched with the style or the characteristics of the handwritten characters of the user, and therefore the personalized requirements of the user are met.
Fig. 7 is a schematic structural diagram of a font exchange device according to an embodiment of the present application. The apparatus of the present embodiment may be in the form of software and/or hardware. The apparatus of the embodiment may be provided in a terminal device. As shown in fig. 7, the font exchange device 10 provided in the present embodiment may include: a receiving module 11, an obtaining module 12 and a replacing module 13.
The receiving module 11 is configured to receive a font changing instruction input by a user, where the font changing instruction is used to instruct to change a font of characters displayed in a terminal device into a handwritten font of the user;
an obtaining module 12, configured to obtain, according to the font replacement instruction, a font packet corresponding to the handwritten font;
and the replacing module 13 is configured to replace the font of the text displayed in the terminal device according to the font packet.
In a possible implementation manner, the obtaining module 12 is specifically configured to:
and acquiring the handwritten characters of the user according to the character style replacing instruction, and generating the character style packet according to the handwritten characters of the user.
In a possible implementation manner, the obtaining module 12 is specifically configured to:
displaying a first interface, wherein the first interface is used for the user to input handwritten characters;
and acquiring the handwritten characters input by the user through the first interface, and generating the font packet according to the acquired handwritten characters.
In a possible implementation manner, the first interface includes: the first interface is specifically used for enabling the user to input the preset characters in the handwriting input area in a handwriting mode.
In a possible implementation manner, the obtaining module 12 is specifically configured to:
when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, acquiring the characteristics of the handwritten characters of the first preset number;
and generating the font packet according to the characteristics, wherein the number of the characters in the font packet is a second preset number, and the second preset number is greater than the first preset number.
In a possible implementation manner, the obtaining module 12 is specifically configured to:
when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, sending the first preset number of the handwritten characters to a server;
and receiving the font packet from the server, wherein the font packet is generated by the server according to the characteristics of the handwritten characters with the first preset number, the number of the characters in the font packet is a second preset number, and the second preset number is larger than the first preset number.
In a possible implementation manner, the font replacement instruction is specifically used to instruct to replace a first display text in the terminal device and/or a second display text with a handwritten font of the user; the replacement module 13 is specifically configured to:
changing the font of the first display character in the terminal equipment according to the font packet;
and/or the presence of a gas in the gas,
changing the font of the second display character in the terminal equipment according to the font packet;
the first display characters are display characters in an input method application program, and the second display characters are system display characters of the terminal equipment.
The font replacing apparatus provided in this embodiment may be configured to execute the technical solution in any of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 8 is a block diagram of an electronic device according to the font changing method of the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 8, the electronic apparatus includes: one or more processors 801, memory 802, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 8 illustrates an example of a processor 801.
The memory 802 is a non-transitory computer readable storage medium as provided herein. The storage stores instructions executable by at least one processor to cause the at least one processor to execute the font changing method provided by the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the font replacement method provided by the present application.
The memory 802, as a non-transitory computer-readable storage medium, may be used for storing non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the receiving module 11, the obtaining module 12, and the replacing module 13 shown in fig. 7) corresponding to the font replacing method in the embodiment of the present application. The processor 801 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 802, that is, implements the font replacement method in the above-described method embodiments.
The memory 802 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 802 may include high speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 802 optionally includes memory located remotely from the processor 801, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the font changing method may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803, and the output device 804 may be connected by a bus or other means, and are exemplified by a bus in fig. 8.
The input device 803 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic device, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or other input device. The output devices 804 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A font exchange method comprising:
receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwriting font of the user;
acquiring a font packet corresponding to the handwritten font according to the font replacing instruction;
and replacing the fonts of the characters displayed in the terminal equipment according to the font packet.
2. The method of claim 1, wherein obtaining a font packet corresponding to the handwritten font according to the font replacement instruction comprises:
and acquiring the handwritten characters of the user according to the character style replacing instruction, and generating the character style packet according to the handwritten characters of the user.
3. The method of claim 2, wherein obtaining the handwritten text of the user and generating the font packet from the handwritten text of the user comprises:
displaying a first interface, wherein the first interface is used for the user to input handwritten characters;
and acquiring the handwritten characters input by the user through the first interface, and generating the font packet according to the acquired handwritten characters.
4. The method of claim 3, wherein the first interface comprises: the first interface is specifically used for enabling the user to input the preset characters in the handwriting input area in a handwriting mode.
5. The method of claim 3 or 4, wherein generating the font packet from the collected handwritten text comprises:
when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, acquiring the characteristics of the handwritten characters of the first preset number;
and generating the font packet according to the characteristics, wherein the number of the characters in the font packet is a second preset number, and the second preset number is greater than the first preset number.
6. The method of claim 3 or 4, wherein generating the font packet from the collected handwritten text comprises:
when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, sending the first preset number of the handwritten characters to a server;
and receiving the font packet from the server, wherein the font packet is generated by the server according to the characteristics of the handwritten characters with the first preset number, the number of the characters in the font packet is a second preset number, and the second preset number is larger than the first preset number.
7. The method according to any one of claims 1 to 6, wherein the font replacement instruction is specifically used for instructing to replace a first display text in a terminal device and/or a second display text with a handwritten font of the user; according to the font packet, the font of the characters displayed in the terminal equipment is replaced, and the method comprises the following steps:
changing the font of the first display character in the terminal equipment according to the font packet;
and/or the presence of a gas in the gas,
changing the font of the second display character in the terminal equipment according to the font packet;
the first display characters are display characters in an input method application program, and the second display characters are system display characters of the terminal equipment.
8. A font exchange device comprising:
the receiving module is used for receiving a font changing instruction input by a user, wherein the font changing instruction is used for indicating that the font of characters displayed in terminal equipment is changed into the handwritten font of the user;
the acquisition module is used for acquiring a font packet corresponding to the handwritten font according to the font replacement instruction;
and the replacing module is used for replacing the fonts of the characters displayed in the terminal equipment according to the font packet.
9. The apparatus of claim 8, wherein the acquisition module is specifically configured to:
and acquiring the handwritten characters of the user according to the character style replacing instruction, and generating the character style packet according to the handwritten characters of the user.
10. The apparatus of claim 9, wherein the acquisition module is specifically configured to:
displaying a first interface, wherein the first interface is used for the user to input handwritten characters;
and acquiring the handwritten characters input by the user through the first interface, and generating the font packet according to the acquired handwritten characters.
11. The apparatus of claim 10, wherein the first interface comprises: the first interface is specifically used for enabling the user to input the preset characters in the handwriting input area in a handwriting mode.
12. The apparatus according to claim 10 or 11, wherein the obtaining module is specifically configured to:
when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, acquiring the characteristics of the handwritten characters of the first preset number;
and generating the font packet according to the characteristics, wherein the number of the characters in the font packet is a second preset number, and the second preset number is greater than the first preset number.
13. The apparatus according to claim 10 or 11, wherein the obtaining module is specifically configured to:
when detecting that the number of the handwritten characters input by the user through the first interface reaches a first preset number, sending the first preset number of the handwritten characters to a server;
and receiving the font packet from the server, wherein the font packet is generated by the server according to the characteristics of the handwritten characters with the first preset number, the number of the characters in the font packet is a second preset number, and the second preset number is larger than the first preset number.
14. The apparatus according to any one of claims 8 to 13, wherein the font replacement instruction is specifically configured to instruct to replace a first displayed text in a terminal device and/or a second displayed text with a handwritten font of the user; the replacement module is specifically configured to:
changing the font of the first display character in the terminal equipment according to the font packet;
and/or the presence of a gas in the gas,
changing the font of the second display character in the terminal equipment according to the font packet;
the first display characters are display characters in an input method application program, and the second display characters are system display characters of the terminal equipment.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1 to 7.
CN202010493101.2A 2020-06-03 2020-06-03 Font changing method, device and equipment Pending CN111651229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010493101.2A CN111651229A (en) 2020-06-03 2020-06-03 Font changing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010493101.2A CN111651229A (en) 2020-06-03 2020-06-03 Font changing method, device and equipment

Publications (1)

Publication Number Publication Date
CN111651229A true CN111651229A (en) 2020-09-11

Family

ID=72347045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010493101.2A Pending CN111651229A (en) 2020-06-03 2020-06-03 Font changing method, device and equipment

Country Status (1)

Country Link
CN (1) CN111651229A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505569A (en) * 2021-06-07 2021-10-15 深圳市华阳国际工程设计股份有限公司 DWG drawing font adapting method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207755A (en) * 2012-01-13 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Terminal and character font changing method
CN107656727A (en) * 2017-10-20 2018-02-02 维沃移动通信有限公司 A kind of font object library generating method and mobile terminal
CN109299663A (en) * 2018-08-27 2019-02-01 刘梅英 Hand-written script recognition methods, system and terminal device
CN110489724A (en) * 2019-03-13 2019-11-22 北京壹人壹本信息科技有限公司 Synthetic method, mobile terminal and the storage medium of hand-written script

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207755A (en) * 2012-01-13 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Terminal and character font changing method
CN107656727A (en) * 2017-10-20 2018-02-02 维沃移动通信有限公司 A kind of font object library generating method and mobile terminal
CN109299663A (en) * 2018-08-27 2019-02-01 刘梅英 Hand-written script recognition methods, system and terminal device
CN110489724A (en) * 2019-03-13 2019-11-22 北京壹人壹本信息科技有限公司 Synthetic method, mobile terminal and the storage medium of hand-written script

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505569A (en) * 2021-06-07 2021-10-15 深圳市华阳国际工程设计股份有限公司 DWG drawing font adapting method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111984476B (en) Test method and device
US20210149558A1 (en) Method and apparatus for controlling terminal device, and non-transitory computer-readle storage medium
CN111897619A (en) Browser page display method and device, electronic equipment and storage medium
CN112433788A (en) Applet running method and device, electronic equipment and storage medium
CN112099645A (en) Input image generation method and device, electronic equipment and storage medium
CN111610972B (en) Page generation method, device, equipment and storage medium
CN111199802A (en) Electronic medical record data mining method, device, equipment and medium
CN111881339A (en) Resource information pushing and informing method and device, electronic equipment and storage medium
CN111246305A (en) Video preview method, device, equipment and storage medium
CN110933227A (en) Assistance method, device, equipment and medium for intelligent terminal
CN111638787B (en) Method and device for displaying information
CN111651229A (en) Font changing method, device and equipment
WO2023169193A1 (en) Method and device for generating smart contract
CN112346612A (en) Page display method and device
CN111177558B (en) Channel service construction method and device
CN111352685B (en) Display method, device, equipment and storage medium of input method keyboard
CN112035210A (en) Method, apparatus, device and medium for outputting color information
CN111966432A (en) Verification code processing method and device, electronic equipment and storage medium
CN112379954A (en) Data processing method, device and equipment of application program and storage medium
CN110618944A (en) Device simulation method, device, electronic device and storage medium
CN113010811A (en) Webpage acquisition method and device, electronic equipment and computer readable storage medium
CN111209023A (en) Skill service updating method and device, electronic equipment and readable storage medium
CN111708475A (en) Virtual keyboard generation method and device
CN111723318A (en) Page data processing method, device, equipment and storage medium
CN112836153A (en) Page processing method and device for hosted application, electronic device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200911