WO2020124450A1 - Font setting method and device - Google Patents

Font setting method and device Download PDF

Info

Publication number
WO2020124450A1
WO2020124450A1 PCT/CN2018/122138 CN2018122138W WO2020124450A1 WO 2020124450 A1 WO2020124450 A1 WO 2020124450A1 CN 2018122138 W CN2018122138 W CN 2018122138W WO 2020124450 A1 WO2020124450 A1 WO 2020124450A1
Authority
WO
WIPO (PCT)
Prior art keywords
font
user
resource library
handwriting
handwritten
Prior art date
Application number
PCT/CN2018/122138
Other languages
French (fr)
Chinese (zh)
Inventor
陈岩
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880098568.8A priority Critical patent/CN112840312B/en
Priority to PCT/CN2018/122138 priority patent/WO2020124450A1/en
Publication of WO2020124450A1 publication Critical patent/WO2020124450A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • This application relates to the technical field of mobile terminals, in particular to a font setting method and device.
  • the embodiments of the present application provide a font setting method and device, which can improve the comprehensiveness and accuracy of the target model in processing recommended tasks.
  • an embodiment of the present application provides a font setting method, which is applied to an electronic device, and the method includes:
  • the font setting interface includes artificial intelligence AI font options
  • the font resource library is a pre-configured font resource library with a fixed style
  • an embodiment of the present application provides a font setting device, which is applied to an electronic device.
  • the font setting device includes a processing unit and a communication unit, wherein,
  • the electronic device displays a font setting interface, and the font setting interface includes an artificial intelligence AI font option; the processing unit is configured to determine at least one that meets the usage requirements of the first user when detecting an operation for the AI font option
  • a font resource library the font resource library being a pre-configured font resource library with a fixed style; determining the first user's first handwriting font data according to the at least one resource library and the first user's handwriting font records; according to the first A handwritten font data obtains a first AI font model associated with the handwriting habits of the first user; generates an AI font resource library through the first AI font model; calls the fonts in the first AI font resource library for text display.
  • an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured by The processor executes, and the program includes instructions for performing steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute as implemented in the present application
  • the computer includes a mobile terminal.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the computer to execute Apply for some or all of the steps described in any method of the first aspect of the embodiments.
  • the computer program product may be a software installation package, and the computer includes a mobile terminal.
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • 1a is a schematic diagram of a system font setting interface provided by an embodiment of the present application.
  • FIG. 1b is an example diagram of font display in a font body store provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a font setting method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a font setting method disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a font setting method disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a font setting method disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 7 is a block diagram of functional units of an electronic device disclosed in an embodiment of the present application.
  • the mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (User Equipment, UE), Mobile Station (MS), terminal equipment, etc.
  • UE User Equipment
  • MS Mobile Station
  • terminal equipment etc.
  • the operating system involved in the embodiments of the present application is a software system that performs unified management of hardware resources and provides service interfaces to users.
  • the fonts currently supported by the mobile terminal mainly include two types, one is the built-in system font, and the other is the font that the user downloads from the application store, theme store and other applications.
  • System fonts are generally pre-configured by developers before the device leaves the factory, and are updated through mechanisms such as system update.
  • Figure 1b the format of font resources downloaded by users has been solidified. Users can only directly enable them through subscriptions, purchases, etc. The style of the font resource is changed to better suit the user's actual handwriting habits.
  • an embodiment of the present application proposes a font setting method.
  • FIG. 2 is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device. As shown in the figure, the font setting method includes:
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence (AI) font options;
  • AI artificial intelligence
  • the electronic device enters the font setting interface according to the user's instruction, the interface includes the fixed style font options and artificial intelligence AI font options provided by the traditional main store
  • the electronic device determines at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
  • At least one font resource library that meets the user's needs is determined according to the user's needs.
  • the user can be a head user or other users except the head user.
  • the resource library of the required font resource library can select multiple existing fonts according to the needs Resource library.
  • the existing font resource library may be fonts of various styles existing in the theme store, or may be a font resource library generated in advance according to the handwriting of other users.
  • the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
  • the electronic device obtains a first AI font model associated with the handwriting habits of the first user according to the first handwritten font data;
  • the electronic device trains the user's writing according to the writing characteristics of the first handwriting font data
  • the aforementioned AI font model According to the writing characteristics of the first handwriting font data combined with the first user's handwriting font record and the font resource library that meets the first user's usage requirements, the electronic device trains the user's writing according to the writing characteristics of the first handwriting font data The aforementioned AI font model.
  • the electronic device generates an AI font resource library through the first AI font model
  • the electronic device generates a font library with the user's personal writing habits after extensive training according to the obtained AI font model with the user's writing habits.
  • the electronic device calls the font in the first AI font resource library to display text.
  • the electronic device After the electronic device generates a font library with user writing habits, when the AI font needs to be used, the electronic device calls the font in the first AI font resource library for text display.
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • the determining at least one font resource library that meets the usage requirements of the first user includes: detecting whether the font resource library customized by the first user is included in the font resource library set; when the font resource library is detected When the font resource library customized by the first user is included in the set, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
  • the electronic device quickly determines the font resource library that meets the usage requirements of the first user by detecting the font resource library collection, which improves the efficiency and convenience of font setting and improves the user's experience.
  • a font resource library selection interface is displayed, and the font resource library selection interface includes multiple font setting options;
  • a selection operation for at least one font setting option in the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
  • the user When the electronic device cannot determine the font resource library that meets the usage requirements of the first user by detecting the collection of font resource libraries, the user independently selects the font resource library that meets the usage requirements of the first user through multiple font setting options.
  • the electronic device can satisfy the user's personalized selection and meet the first user's use requirements through the user's selection operation of at least one font setting option among the plurality of font setting options, and improve the user's experience.
  • the determining the first user's first handwriting font data according to the at least one font resource library and the first user's handwriting font record includes: determining that the first user's handwriting font record includes A first font set; performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, any two fonts in the second font set and the first font set Differently, any two fonts in the second font set are different; the first handwritten font data of the first user is determined according to the fonts in the first font set and the second font set.
  • the second font set is obtained by determining the text with a specific writing style in at least one font resource library according to the set of handwritten font records of the first user. Select the second font set according to the writing habits of the first user, and then train the two sets to obtain the AI font model.
  • the electronic device determines the text with a specific writing style in at least one font resource library according to the set of handwritten font records of the first user to obtain a second font set, and combines the user’s font and the selected favorite existing The fonts are merged to generate personalized fonts to improve the user's experience.
  • the determining the first handwritten font data of the first user according to the fonts in the first font set and the second font set includes: filtering out high Frequently used fonts; display the high frequency used fonts, update the high frequency used fonts according to the user's manual update operation; determine that the updated high frequency used fonts and the first font set are the first of the first user Handwriting font data.
  • the font usage time, frequency and frequency of use calculate the font usage time, frequency and frequency of use.
  • the high frequency means that the font usage time is greater than the preset duration; the font usage frequency is greater than the preset frequency; the font usage frequency is greater than the preset frequency.
  • the electronic device updates the high-frequency use font according to the user update operation; it is determined that the updated high-frequency use font and the first font set are the first user's first handwritten font data, and then determined Personalized fonts that users like most recently. In order to update the font model to meet the user's font setting requirements.
  • the first user's handwriting font record acquisition method includes any one of the following: outputting a handwriting font guidance interface; acquiring first handwriting font data entered by the first user on the handwriting font guidance interface; And/or, query the input method usage record of the electronic device; extract the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or, capture the first user's handwriting font image; The handwriting font image generates first handwriting font data; and/or, receives first handwriting font data of a first user from a terminal or a server.
  • the electronic device first outputs a handwriting font guide interface, and the user enters the handwriting font according to the requirements on the handwriting font guide interface, the requirements are a handwriting font for randomly inputting a piece of text or a handwriting font for inputting the text according to the prescribed text.
  • the electronic device collects the image through the camera, and the first handwritten font data.
  • the electronic device can also obtain handwritten fonts of celebrities, calligraphy masters, etc. from the terminal or the server.
  • the method by which the electronic device collects the user's first handwritten font data has diversity and convenience, so that the user can not only set his own personal font according to his writing habits, but also set the font of his favorite celebrity Or the font of the calligraphy master is set as your own personalized font, which improves the selectivity of the font and the user's sense of experience.
  • the obtaining the first AI font model associated with the first user's handwriting habits according to the first handwriting font data includes: generating handwriting font sample data according to the first handwriting font data; using the The handwritten font sample data trains the pre-configured AI font model to obtain the first AI font model after training.
  • the AI font model may be a neural network model, specifically including a convolutional neural network, or a generative confrontation network. Generate handwritten font sample data according to the first handwritten font data; and then use the handwritten font sample data to train a pre-configured AI font model to obtain the trained first AI font model. This first AI font model is closest to the user's first handwritten font data and meets the user's personalized setting requirements.
  • the electronic device trains the collected handwritten fonts as sample data to obtain a font model for handwritten fonts, avoiding the requirement of the first handwritten font data volume, and at the same time improves the universality of the font generation method and improves the user Experience.
  • the obtaining the first AI font model associated with the handwriting habits of the first user according to the first handwriting font data includes: sending the first handwriting font data to a server; receiving the data from the server A first AI font model, the first AI font model is obtained by the server under the following operations: generating handwriting font sample data according to the first handwriting font data, and using the handwriting font sample data to train a pre-configured AI Font model to get the first AI font model after training.
  • the electronic device sends the collected handwritten font to the server
  • the server uses the received handwritten font as sample data to obtain a font model about the handwritten font
  • the server sends the trained font model to the electronic device.
  • the requirement for the amount of data of the first handwritten font is avoided, and at the same time, the universality of the font generation method is improved.
  • the method further includes: determining a high-frequency font used in the AI font resource library; calling and displaying the AI The high-frequency font used in the font resource library; when a selection operation for the high-frequency font is detected, a handwriting perception area is output; the second handwriting font data entered by the user is obtained through the handwriting perception area; The second handwritten font data trains the first AI font model to update the first AI font model.
  • the high frequency is to calculate the duration of use of the font based on the user's historical use records. After using the frequency and the number of uses, it is obtained that the duration of the font is greater than the preset duration; the frequency of the font is greater than the preset frequency; the number of font usage is greater than the preset Set times.
  • the electronic device combines the high-frequency use font in the first AI font resource library and the second handwritten font data entered by the user to obtain a newly trained second AI font resource library, and then updates the font model to satisfy User requirements for font settings.
  • the font in the first AI font resource library includes at least one of the following: Chinese characters, numbers, and letters.
  • the fonts in the first AI font resource library include but are not limited to Chinese characters, numbers, and letters, and also include characters, symbols, and the like.
  • the first handwritten font data is a neural network model
  • the neural network model includes any one of the following: a generative adversarial network, a convolutional neural network, and a nonlinear kernel residual network.
  • FIG. 3 is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device. As shown in the figure, this font setting method include:
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options;
  • the electronic device when detecting the selection operation for the AI font option, the electronic device detects whether a font resource library customized by the first user is included in the font resource library set;
  • the electronic device determines that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
  • the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
  • the electronic device obtains a first AI font model associated with the handwriting habits of the first user according to the first handwritten font data;
  • the electronic device generates an AI font resource library through the first AI font model
  • S307 The electronic device calls the font in the first AI font resource library to display text.
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • the electronic device quickly determines the font resource library that meets the usage requirements of the first user by detecting the font resource library collection, which improves the efficiency and convenience of font setting and improves the user's experience.
  • FIG. 4 is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device; as shown in the figure, this font setting method include:
  • the electronic device displays a font setting interface, and the font setting interface includes an artificial intelligence AI font option;
  • the electronic device when detecting the selection operation for the AI font option, determines at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
  • the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
  • the electronic device receives a first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwritten font sample data according to the first handwritten font data, Training the pre-configured AI font model using the handwritten font sample data to obtain the trained first AI font model;
  • the electronic device generates an AI font resource library through the first AI font model
  • S407 The electronic device calls the font in the first AI font resource library to display text.
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • the electronic device sends the collected handwriting font to the server.
  • the server uses the received handwriting font as sample data to obtain a font model about the handwriting font. Then the server sends the trained font model to the electronic device, saving the electronic device’s Running memory avoids the requirement of the first handwritten font data volume, and at the same time improves the universality of font generation methods.
  • FIG. 5 is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device; as shown in the figure, this font setting method include:
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options;
  • the electronic device when detecting the selection operation for the AI font option, determines at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
  • the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
  • the electronic device obtains a first AI font model associated with the handwriting habits of the first user according to the first handwriting font data;
  • the electronic device generates an AI font resource library through the first AI font model
  • the electronic device determines the high-frequency font used in the AI font resource library
  • the electronic device calls and displays the high-frequency font used in the AI font resource library
  • the electronic device outputs a handwriting perception area when it detects a selection operation for the high-frequency use font
  • the electronic device obtains the second handwritten font data entered by the user through the handwriting perception area;
  • the electronic device trains the first AI font model through the second handwritten font data to update the first AI font model
  • the electronic device calls the font in the first AI font resource library to display text.
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • the electronic device combines the high-frequency use font in the first AI font resource library and the second handwritten font data entered by the user to obtain a newly trained second AI font resource library, and then updates the font model to satisfy the user’s Set up requirements.
  • FIG. 6 is a schematic structural diagram of an electronic device 600 provided by an embodiment of the present application.
  • the mobile terminal 600 includes An application processor 610, a memory 620, a communication interface 630, and one or more programs 621, wherein the one or more programs 621 are stored in the above-mentioned memory 620, and are configured to be executed by the above-mentioned application processor 610, the One or more programs 621 include instructions for performing the following steps;
  • the font setting interface includes artificial intelligence AI font options
  • the font resource library is a pre-configured font resource library with a fixed style
  • the mobile terminal displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • the instructions in the program are specifically used to perform the following operations: detect whether the font customized by the first user is included in the font resource library collection Resource library; when it is detected that the font resource library set includes the font resource library customized by the first user, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
  • the program further includes instructions for performing the following operation: when it is detected that the font resource library set does not include the font resource library customized by the first user, the font resource library selection interface is displayed.
  • the font resource library selection interface includes a plurality of font setting options; when a selection operation for at least one font setting option among the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
  • the instructions in the program are specifically used to perform the following operations : Determining a first font set included in the first user's handwritten font record; performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, the second font set Unlike any two fonts in the first font set, any two fonts in the second font set are different; the first user is determined according to the fonts in the first font set and the second font set First handwritten font data.
  • the instructions in the program are specifically used to execute the following Operation: selecting high-frequency use fonts from the second font set; displaying the high-frequency use fonts, updating the high-frequency use fonts according to a user's manual update operation; determining the updated high-frequency use fonts and
  • the first font set is the first handwritten font data of the first user.
  • the instructions in the program are specifically used to perform the following operations: output a handwritten font guide interface; obtain the first user's handwritten font The first handwriting font data entered in the guidance interface; and/or, querying the input method usage record of the electronic device; extracting the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or, shooting Obtain the first user's handwriting font image; generate first handwriting font data according to the handwriting font image; and/or, receive the first user's first handwriting font data from the terminal or the server.
  • the instructions in the program are specifically used to perform the following operations: according to the first A handwritten font data generates handwritten font sample data; the pre-configured AI font model is trained using the handwritten font sample data to obtain the trained first AI font model.
  • the instructions in the program are specifically used to perform the following operations: according to the first A handwritten font data generates handwritten font sample data; the pre-configured AI font model is trained using the handwritten font sample data to obtain the trained first AI font model.
  • the instructions in the program are specifically used to perform the following operations: send the The first handwritten font data; receiving the first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwritten font sample data according to the first handwritten font data , Training the pre-configured AI font model using the handwritten font sample data to obtain the trained first AI font model.
  • the program further includes instructions for performing the following operations: after generating the AI font resource library from the first AI font model, determining the high-frequency font used in the AI font resource library ; Calling and displaying the high-frequency fonts in the AI font resource library; when a selection operation for the high-frequency fonts is detected, a handwriting perception area is output; the user-entered first Two handwritten font data; training the first AI font model through the second handwritten font data to update the first AI font model.
  • the electronic device includes a hardware structure and/or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the functional unit of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
  • each “unit” used herein should be understood as the broadest possible meaning, and the object used to implement the function described by each "unit” may be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware A program's processor (shared, dedicated, or chipset) and memory, combined logic circuits, and/or other suitable components that provide the above-mentioned functions.
  • FIG. 7 shows a block diagram of a possible functional unit of the font setting device 700 involved in the embodiment of the present application.
  • the font setting device 700 is applied to a mobile terminal and includes a processing unit 601, where,
  • the electronic device displays a font setting interface, and the font setting interface includes an artificial intelligence AI font option;
  • the processing unit 701 is configured to determine that at least one meets the first user's usage requirements when detecting an operation for the AI font option Font resource library, the font resource library is a pre-configured font resource library with a fixed style; and the first user's first handwritten font data is determined according to the at least one resource library and the first user's handwritten font records; and according to The first handwritten font data obtains a first AI font model associated with the first user's handwriting habits; and generates an AI font resource library from the first AI font model; and calls a font in the first AI font resource library to perform Text display.
  • Font resource library is a pre-configured font resource library with a fixed style
  • the first user's first handwritten font data is determined according to the at least one resource library and the first user's handwritten font records; and according to The first handwritten font data obtains a first AI font model associated with the first user's handwriting habits; and
  • the font setting device 700 may further include a storage unit 703 for storing program codes and data of electronic devices.
  • the processing unit 701 may be a processor
  • the communication unit 702 may be a touch screen or a transceiver
  • the storage unit 703 may be a memory.
  • the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text.
  • the font resource library is a pre-configured font resource library with a fixed style
  • the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits;
  • the electronic device selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user
  • the customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method.
  • the use of font settings to generate AI font resource library personalized custom fonts increase the display characteristics of the terminal, improve the user's experience.
  • the processing unit 701 is specifically configured to detect whether the font resource library customized by the first user is included in the font resource library set When it is detected that the font resource library set includes the font resource library customized by the first user, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
  • the processing unit 701 is further specifically configured to: when it is detected that the font resource library set does not include the font resource library customized by the first user, display a font resource library selection interface, the font resource The library selection interface includes a plurality of font setting options; when a selection operation for at least one font setting option among the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
  • the processing unit 701 is specifically configured to: determine the A first font set included in the first user's handwritten font record; performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, the second font set and the first font set Any two fonts in a font set are different, and any two fonts in the second font set are different; the first handwriting of the first user is determined according to the fonts in the first font set and the second font set Font data.
  • the processing unit 701 is specifically configured to: Filtering out high-frequency use fonts from the second font set; displaying the high-frequency use fonts, updating the high-frequency use fonts according to a user's manual update operation; determining the updated high-frequency use fonts and the first The font set is the first handwritten font data of the first user.
  • the processing unit 701 is specifically configured to: output a handwriting font guidance interface; and acquire the first user's entry on the handwriting font guidance interface The first handwriting font data; and/or, query the input method usage record of the electronic device; extract the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or, obtain the first user by shooting Handwriting font image; generating first handwriting font data according to the handwriting font image; and/or, receiving first handwriting font data of a first user from a terminal or a server.
  • the processing unit 701 is specifically configured to: according to the first handwritten font data Generate handwritten font sample data; use the handwritten font sample data to train a pre-configured AI font model to obtain a trained first AI font model.
  • the processing unit 701 is specifically configured to: send the first handwriting to the server Font data; receiving a first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwriting font sample data according to the first handwriting font data, using the The handwritten font sample data trains the pre-configured AI font model to obtain the first AI font model after training.
  • the processing unit 701 after the processing unit 701 generates the AI font resource library through the first AI font model, it is also used to: determine the high-frequency font used in the AI font resource library; call and display the The high-frequency font used in the AI font resource library; when a selection operation for the high-frequency font is detected, a handwriting perception area is output; the second handwriting font data entered by the user is obtained through the handwriting perception area; The first AI font model is trained through the second handwritten font data to update the first AI font model.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, which causes the computer to perform part or all of any method described in the method embodiments Step, the computer includes a mobile terminal.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing the computer program, the computer program is operable to cause the computer to perform as described in the method embodiment Part or all of the steps of any method.
  • the computer program product may be a software installation package, and the computer includes a mobile terminal.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the integrated unit may be implemented in the form of hardware or a software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application may essentially be a part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a memory.
  • Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
  • the aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: flash memory Disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.

Abstract

A font setting method and device. The method comprises: displaying a font setting interface (S201), the font setting interface comprising an artificial intelligence (AI) font option; upon detecting a selection operation for the AI font option, determining at least one font resource database that meets the needs of a first user, the font resource database being a pre-configured font resource database having a fixed style (S202); determining first handwriting font data of a first user according to the at least one font resource database and handwriting font records of the first user (S203); obtaining, according to the first handwriting font data, a first AI font model associated with first user handwriting habits (S204); generating an AI font resource database by means of the first AI font model (S205); and invoking fonts in a first AI font resource database to display texts (S206). The present method facilitates combining the font resource database with the features of the handwriting font records of users, personalizing fonts, increasing the display characteristics of a terminal, and improving experience of a user.

Description

字体设置方法及装置Font setting method and device 技术领域Technical field
本申请涉及移动终端技术领域,具体涉及字体设置方法及装置。This application relates to the technical field of mobile terminals, in particular to a font setting method and device.
背景技术Background technique
随着电子科技的不断发展,人们消费水平的不断提高,人们的消费观念和生活方式发生了深刻变化,个性化需求成为主流。随着电子设备具备越来越多的功能,如何满足用户个性化设计的要求是人们研究的热点问题。其中,手机的重要作用之一就是信息的显示,信息显示就离不开字体。现在手机用户已经不满足一种单一的手机内置字体,网上的应用程序商店APP Store里也有一大批个性化字体,例如:明星字体,幼圆,狂草体等等,但是用户的选择性低,容易给用户造成乏味,用户的体验性低,个性化就成为用户对手机的新的要求。With the continuous development of electronic technology and the continuous improvement of people's consumption levels, people's consumption concepts and lifestyles have undergone profound changes, and personalized needs have become mainstream. As electronic devices have more and more functions, how to meet the user's personalized design requirements is a hot issue of research. Among them, one of the important functions of mobile phones is the display of information, and information display is inseparable from the font. Now mobile phone users are no longer satisfied with a single mobile phone built-in font. There are also a large number of personalized fonts in the online application store APP Store, such as: star fonts, young round, crazy grass, etc., but the user's selectivity is low, easy Boring to the user, the user's experience is low, and personalization has become a new requirement for users on mobile phones.
发明内容Summary of the invention
本申请实施例提供了字体设置方法及装置,可以提高目标模型处理推荐任务的全面性和准确度。The embodiments of the present application provide a font setting method and device, which can improve the comprehensiveness and accuracy of the target model in processing recommended tasks.
第一方面,本申请实施例提供一种字体设置方法,应用于电子设备,所述方法包括:In a first aspect, an embodiment of the present application provides a font setting method, which is applied to an electronic device, and the method includes:
显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;Display a font setting interface, the font setting interface includes artificial intelligence AI font options;
在检测到针对所述AI字体选项的选取操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;When detecting the selection operation for the AI font option, determine at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;Determine the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;Obtaining a first AI font model associated with the handwriting habits of the first user according to the first handwriting font data;
通过所述第一AI字体模型生成AI字体资源库;Generating an AI font resource library through the first AI font model;
调用所述第一AI字体资源库中的字体进行文字显示。Call the font in the first AI font resource library to display text.
第二方面,本申请实施例提供一种字体设置装置,应用于电子设备,所述字体设置装置包括处理单元和通信单元,其中,In a second aspect, an embodiment of the present application provides a font setting device, which is applied to an electronic device. The font setting device includes a processing unit and a communication unit, wherein,
所述电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述处理单元用于在检测到针对所述AI字体选项的操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;根据所述至少一个资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;通过所述第一AI字体模型生成AI字体资源库;调用所述第一AI字体资源库中的字体进行文字显示。The electronic device displays a font setting interface, and the font setting interface includes an artificial intelligence AI font option; the processing unit is configured to determine at least one that meets the usage requirements of the first user when detecting an operation for the AI font option A font resource library, the font resource library being a pre-configured font resource library with a fixed style; determining the first user's first handwriting font data according to the at least one resource library and the first user's handwriting font records; according to the first A handwritten font data obtains a first AI font model associated with the handwriting habits of the first user; generates an AI font resource library through the first AI font model; calls the fonts in the first AI font resource library for text display.
第三方面,本申请实施例提供一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured by The processor executes, and the program includes instructions for performing steps in any method of the first aspect of the embodiments of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤,所述计算机包括移动终端。According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute as implemented in the present application In some or all of the steps described in any method of the first aspect, the computer includes a mobile terminal.
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机 执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。According to a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause the computer to execute Apply for some or all of the steps described in any method of the first aspect of the embodiments. The computer program product may be a software installation package, and the computer includes a mobile terminal.
可以看出,本申请实施例中,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。It can be seen that in the embodiment of the present application, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience.
附图说明BRIEF DESCRIPTION
下面将对本申请实施例所涉及到的附图作简单地介绍。The drawings related to the embodiments of the present application will be briefly described below.
图1a是本申请实施例提供的一种系统字体设置界面示意图;1a is a schematic diagram of a system font setting interface provided by an embodiment of the present application;
图1b是本申请实施例提供的字体主体商店中字体展示示例图;FIG. 1b is an example diagram of font display in a font body store provided by an embodiment of the present application;
图2是本申请实施例提供的一种字体设置方法的流程示意图;2 is a schematic flowchart of a font setting method provided by an embodiment of the present application;
图3是本申请实施例公开的一种字体设置方法的流程示意图;3 is a schematic flowchart of a font setting method disclosed in an embodiment of the present application;
图4是本申请实施例公开的一种字体设置方法的流程示意图;4 is a schematic flowchart of a font setting method disclosed in an embodiment of the present application;
图5是本申请实施例公开的一种字体设置方法的流程示意图5 is a schematic flowchart of a font setting method disclosed in an embodiment of the present application
图6是本申请实施例公开的一种电子设备的结构示意图;6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
图7是本申请实施例公开的一种电子设备的功能单元组成框图。7 is a block diagram of functional units of an electronic device disclosed in an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of the present application and the accompanying drawings are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to “embodiments” means that specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art understand explicitly and implicitly that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device) 等等。为方便描述,上面提到的设备统称为移动终端。本申请实施例所涉及到的操作系统是对硬件资源进行统一管理,并向用户提供业务接口的软件系统。The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (User Equipment, UE), Mobile Station (MS), terminal equipment, etc. For convenience of description, the above-mentioned devices are collectively referred to as mobile terminals. The operating system involved in the embodiments of the present application is a software system that performs unified management of hardware resources and provides service interfaces to users.
一般设计中,如图1a所示,目前移动终端支持设置的字体主要包括两类,一类是自带的系统字体,另一类是用户从应用商店、主题商店等应用中下载的字体,其中系统字体一般由开发人员在设备出厂前预先配置,通过系统更新等机制进行更新,如图1b所示,用户下载的字体资源的格式已经固化,用户仅能够通过订阅、购买等方式直接启用,无法实现对该字体资源的风格进行更改以更加适配用户的实际手写习惯。In the general design, as shown in Figure 1a, the fonts currently supported by the mobile terminal mainly include two types, one is the built-in system font, and the other is the font that the user downloads from the application store, theme store and other applications. System fonts are generally pre-configured by developers before the device leaves the factory, and are updated through mechanisms such as system update. As shown in Figure 1b, the format of font resources downloaded by users has been solidified. Users can only directly enable them through subscriptions, purchases, etc. The style of the font resource is changed to better suit the user's actual handwriting habits.
针对上述情况,本申请实施例提出一种字体设置方法,下面结合附图对本申请实施例进行介绍。In view of the above situation, an embodiment of the present application proposes a font setting method. The following describes the embodiment of the present application with reference to the drawings.
请参阅图2,图2是本申请实施例提供了一种字体设置方法的流程示意图,应用于电子设备,如图所示,本字体设置方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device. As shown in the figure, the font setting method includes:
S201,电子设备显示字体设置界面,所述字体设置界面包括人工智能(Artificial Intelligence,AI)字体选项;S201, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence (AI) font options;
其中,电子设备根据用户指令,进入字体设置界面,该界面包括传统的主体商店提供的风格固定的字体选项和人工智能AI字体选项Among them, the electronic device enters the font setting interface according to the user's instruction, the interface includes the fixed style font options and artificial intelligence AI font options provided by the traditional main store
S202,所述电子设备在检测到针对所述AI字体选项的选取操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;S202, when detecting the selection operation for the AI font option, the electronic device determines at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
其中,根据用户需求确定至少一个符合用户使用需求的字体资源库,用户可以是户主用户或者除户主用户之外的其他用户,需求的字体资源库的资源库可以根据需求选择多个现有的字体资源库。该现有的字体资源库可以是在主题商店中存在的各种风格的字体,也可以是根据其他用户的手写体事先生成的字体资源库。Among them, at least one font resource library that meets the user's needs is determined according to the user's needs. The user can be a head user or other users except the head user. The resource library of the required font resource library can select multiple existing fonts according to the needs Resource library. The existing font resource library may be fonts of various styles existing in the theme store, or may be a font resource library generated in advance according to the handwriting of other users.
S203,所述电子设备根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;S203. The electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
S204,所述电子设备根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;S204, the electronic device obtains a first AI font model associated with the handwriting habits of the first user according to the first handwritten font data;
其中,根据第一用户的手写字体记录和符合第一用户使用需求的字体资源库结合的第一手写字体数据的书写特征,电子设备根据第一手写字体数据的书写特征训练得出带有用户书写习惯的上述AI字体模型。According to the writing characteristics of the first handwriting font data combined with the first user's handwriting font record and the font resource library that meets the first user's usage requirements, the electronic device trains the user's writing according to the writing characteristics of the first handwriting font data The aforementioned AI font model.
S205,所述电子设备通过所述第一AI字体模型生成AI字体资源库;S205, the electronic device generates an AI font resource library through the first AI font model;
其中,电子设备根据得到的带有用户书写习惯的上述AI字体模型经过大量训练生成带有用户个人书写习惯的字体库。Among them, the electronic device generates a font library with the user's personal writing habits after extensive training according to the obtained AI font model with the user's writing habits.
S206,所述电子设备调用所述第一AI字体资源库中的字体进行文字显示。S206. The electronic device calls the font in the first AI font resource library to display text.
其中,当电子设备生成带有用户书写习惯的字体库后,当需要使用AI字体时,电子设备调用上述第一AI字体资源库中的字体进行文字显示。After the electronic device generates a font library with user writing habits, when the AI font needs to be used, the electronic device calls the font in the first AI font resource library for text display.
可以看出,本申请实施例中,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第 一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。It can be seen that in the embodiment of the present application, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience.
在一个可能的示例中,所述确定至少一个符合第一用户使用需求的字体资源库,包括:检测字体资源库集合中是否包括第一用户定制的字体资源库;在检测到所述字体资源库集合中包括第一用户定制的字体资源库时,确定所述第一用户定制的字体资源库为符合第一用户使用需求的字体资源库。In a possible example, the determining at least one font resource library that meets the usage requirements of the first user includes: detecting whether the font resource library customized by the first user is included in the font resource library set; when the font resource library is detected When the font resource library customized by the first user is included in the set, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
其中,通过检测字体资源库集合中是否包括第一用户定制的字体资源库,可以快速确定所述第一用户定制的字体资源库中符合第一用户使用需求的字体资源库。Wherein, by detecting whether the font resource library customized by the first user is included in the font resource library collection, it can be quickly determined that the font resource library customized by the first user meets the usage requirements of the first user.
可见,本示例中,电子设备通过检测字体资源库集合快速确定符合第一用户使用需求的字体资源库,提高了字体设置的效率和便捷,提高用户的体验感。It can be seen that, in this example, the electronic device quickly determines the font resource library that meets the usage requirements of the first user by detecting the font resource library collection, which improves the efficiency and convenience of font setting and improves the user's experience.
在一个可能的示例中,在检测到所述字体资源库集合中不包括第一用户定制的字体资源库时,显示字体资源库选择界面,所述字体资源库选择界面包括多个字体设置选项;检测到针对所述多个字体设置选项中至少一个字体设置选项的选取操作时,确定所述至少一个字体设置选项的字体资源库。In a possible example, when it is detected that the font resource library set does not include the font resource library customized by the first user, a font resource library selection interface is displayed, and the font resource library selection interface includes multiple font setting options; When a selection operation for at least one font setting option in the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
其中,电子设备通过检测字体资源库集合不能确定符合第一用户使用需求的字体资源库时,通过多个字体设置选项,用户自主选择符合第一用户使用需求的字体资源库。When the electronic device cannot determine the font resource library that meets the usage requirements of the first user by detecting the collection of font resource libraries, the user independently selects the font resource library that meets the usage requirements of the first user through multiple font setting options.
可见,本示例中,电子设备通过用户对所述多个字体设置选项中至少一个字体设置选项的选取操作,能够满足用户的个性化的选择和符合第一用户使用需求,提高用户的体验感。It can be seen that in this example, the electronic device can satisfy the user's personalized selection and meet the first user's use requirements through the user's selection operation of at least one font setting option among the plurality of font setting options, and improve the user's experience.
在一个可能的示例中,所述根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据,包括:确定所述第一用户的手写字体记录所包含的第一字体集合;根据所述第一字体集合从所述至少一个字体资源库进行字体筛选,得到第二字体集合,所述第二字体集合和所述第一字体集合中的任意两个字体不同,所述第二字体集合中的任意两个字体不同;根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据。In a possible example, the determining the first user's first handwriting font data according to the at least one font resource library and the first user's handwriting font record includes: determining that the first user's handwriting font record includes A first font set; performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, any two fonts in the second font set and the first font set Differently, any two fonts in the second font set are different; the first handwritten font data of the first user is determined according to the fonts in the first font set and the second font set.
其中,根据所述第一用户的手写字体记录的集合确定至少一个字体资源库中具有特定撰写风格的文字得到第二字体集合。根据第一用户的书写习惯选择第二字体集合,再对两个集合进行训练得到AI字体模型。The second font set is obtained by determining the text with a specific writing style in at least one font resource library according to the set of handwritten font records of the first user. Select the second font set according to the writing habits of the first user, and then train the two sets to obtain the AI font model.
可见,本示例中,电子设备根据所述第一用户的手写字体记录的集合确定至少一个字体资源库中具有特定撰写风格的文字得到第二字体集合,将用户的字体和选择的喜欢的现有字体进行融合,生成个性化字体,提高用户的体验感。It can be seen that in this example, the electronic device determines the text with a specific writing style in at least one font resource library according to the set of handwritten font records of the first user to obtain a second font set, and combines the user’s font and the selected favorite existing The fonts are merged to generate personalized fonts to improve the user's experience.
在一个可能的示例中,所述根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据,包括:从所述第二字体集合中筛选出高频使用字体;显示所述高频使用字体,根据用户的手动更新操作更新所述高频使用字体;确定更新后的所述高频使用字体和所述第一字体集合为第一用户的第一手写字体数据。In a possible example, the determining the first handwritten font data of the first user according to the fonts in the first font set and the second font set includes: filtering out high Frequently used fonts; display the high frequency used fonts, update the high frequency used fonts according to the user's manual update operation; determine that the updated high frequency used fonts and the first font set are the first of the first user Handwriting font data.
其中,根据用户的历史使用记录,计算字体的使用时长,使用频率和使用次数。所述高频,即字体使用时长大于预设时长;字体使用频率大于预设频率;字体使用次数大于预设次数。Among them, according to the user's historical use records, calculate the font usage time, frequency and frequency of use. The high frequency means that the font usage time is greater than the preset duration; the font usage frequency is greater than the preset frequency; the font usage frequency is greater than the preset frequency.
可见,本示例中,电子设备根据用户更新操作更新所述高频使用字体;确定更新后的所述高频使用字体和所述第一字体集合为第一用户的第一手写字体数据,进而确定最近时间用户喜欢的个性字体。以达到更新字体模型,满足用户对字体的设置要求。It can be seen that in this example, the electronic device updates the high-frequency use font according to the user update operation; it is determined that the updated high-frequency use font and the first font set are the first user's first handwritten font data, and then determined Personalized fonts that users like most recently. In order to update the font model to meet the user's font setting requirements.
在一个可能的示例中,所述第一用户的手写字体记录的获取方式包括以下任意一种: 输出手写字体引导界面;获取第一用户在所述手写字体引导界面录入的第一手写字体数据;和/或,查询所述电子设备的输入法使用记录;从所述输入法使用记录中提取手写键盘模式下的第一手写字体数据;和/或,拍摄得到第一用户的手写字体图像;根据所述手写字体图像生成第一手写字体数据;和/或,接收来自终端或者服务器的第一用户的第一手写字体数据。In a possible example, the first user's handwriting font record acquisition method includes any one of the following: outputting a handwriting font guidance interface; acquiring first handwriting font data entered by the first user on the handwriting font guidance interface; And/or, query the input method usage record of the electronic device; extract the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or, capture the first user's handwriting font image; The handwriting font image generates first handwriting font data; and/or, receives first handwriting font data of a first user from a terminal or a server.
其中,电子设备先输出手写字体引导界面,用户在手写字体引导界面根据要求录入手写字体,所述要求为随意输入一段文字的手写字体或根据规定的文字输入这段文字的手写字体。也可以查询用户的输入法记录,检测到用户之前有手写输入时提取手写键盘模式下录入的字体记录。也可以当用户用笔在纸或其他承载物上书写,电子设备通过摄像头采集图像,第一手写字体数据。电子设备还可以从终端或服务器获取明星名人或书法大师等的手写字体。Among them, the electronic device first outputs a handwriting font guide interface, and the user enters the handwriting font according to the requirements on the handwriting font guide interface, the requirements are a handwriting font for randomly inputting a piece of text or a handwriting font for inputting the text according to the prescribed text. You can also query the user's input method records and extract the font records entered in the handwriting keyboard mode when the user has detected handwriting input before. When the user writes on a paper or other carrier with a pen, the electronic device collects the image through the camera, and the first handwritten font data. The electronic device can also obtain handwritten fonts of celebrities, calligraphy masters, etc. from the terminal or the server.
可见,本示例中,电子设备采集用户的第一手写字体数据的方法具有多样性和便捷性,使用户不仅能够根据自己的书写习惯来设置自己的个性字体,还可以将自己喜欢的名人的字体或书法大师的字体等设置为自己的个性字体,提高了字体的可选择性和用户的体验感。It can be seen that in this example, the method by which the electronic device collects the user's first handwritten font data has diversity and convenience, so that the user can not only set his own personal font according to his writing habits, but also set the font of his favorite celebrity Or the font of the calligraphy master is set as your own personalized font, which improves the selectivity of the font and the user's sense of experience.
在一个可能的示例中,所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,包括:根据所述第一手写字体数据生成手写字体样本数据;利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, the obtaining the first AI font model associated with the first user's handwriting habits according to the first handwriting font data includes: generating handwriting font sample data according to the first handwriting font data; using the The handwritten font sample data trains the pre-configured AI font model to obtain the first AI font model after training.
其中,AI字体模型可以是神经网络模型,具体包括卷积神经网络,或者,生成式对抗网络。根据第一手写字体数据生成手写字体样本数据;进而利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。此第一AI字体模型最接近用户的第一手写字体数据,满足用户的个性化设置要求。Among them, the AI font model may be a neural network model, specifically including a convolutional neural network, or a generative confrontation network. Generate handwritten font sample data according to the first handwritten font data; and then use the handwritten font sample data to train a pre-configured AI font model to obtain the trained first AI font model. This first AI font model is closest to the user's first handwritten font data and meets the user's personalized setting requirements.
可见,本示例中,电子设备将收集的手写字体作为样本数据训练得到关于手写字体的字体模型,避免了对第一手写字体数据量的要求,同时提高了字体生成方法的普适性,提高用户体验。It can be seen that in this example, the electronic device trains the collected handwritten fonts as sample data to obtain a font model for handwritten fonts, avoiding the requirement of the first handwritten font data volume, and at the same time improves the universality of the font generation method and improves the user Experience.
在一个可能的示例中,所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,包括:向服务器发送所述第一手写字体数据;接收来自所述服务器的第一AI字体模型,所述第一AI字体模型是所述服务器之下以下操作得到的:根据所述第一手写字体数据生成手写字体样本数据,利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, the obtaining the first AI font model associated with the handwriting habits of the first user according to the first handwriting font data includes: sending the first handwriting font data to a server; receiving the data from the server A first AI font model, the first AI font model is obtained by the server under the following operations: generating handwriting font sample data according to the first handwriting font data, and using the handwriting font sample data to train a pre-configured AI Font model to get the first AI font model after training.
其中,电子设备将收集的手写字体发送到服务器,服务器将接收的手写字体作为样本数据训练得到关于手写字体的字体模型,然后服务器再将训练好的字体模型发送到电子设备。避免了对第一手写字体数据量的要求,同时提高了字体生成方法的普适性。Among them, the electronic device sends the collected handwritten font to the server, the server uses the received handwritten font as sample data to obtain a font model about the handwritten font, and then the server sends the trained font model to the electronic device. The requirement for the amount of data of the first handwritten font is avoided, and at the same time, the universality of the font generation method is improved.
可见,本示例中,不需要在电子设备进行字体的模型训练,在服务器进行模型训练再将模型发送到电子设备,节省了电子设备的运行内存,避免了对第一手写字体数据量的要求,同时提高了字体生成的普适性。It can be seen that in this example, it is not necessary to train the font model on the electronic device, and the model training is performed on the server and then the model is sent to the electronic device, which saves the running memory of the electronic device and avoids the requirement of the amount of data for the first handwritten font. At the same time improve the universality of font generation.
在一个可能的示例中,所述通过所述第一AI字体模型生成AI字体资源库之后,所述方法还包括:确定所述AI字体资源库中的高频使用字体;调用并显示所述AI字体资源库中的所述高频使用字体;在检测到针对所述高频使用字体的选取操作时,输出手写感知区域;通过所述手写感知区域获取用户录入的第二手写字体数据;通过所述第二手写字体数据训练所述第一AI字体模型以更新所述第一AI字体模型。In a possible example, after the AI font resource library is generated through the first AI font model, the method further includes: determining a high-frequency font used in the AI font resource library; calling and displaying the AI The high-frequency font used in the font resource library; when a selection operation for the high-frequency font is detected, a handwriting perception area is output; the second handwriting font data entered by the user is obtained through the handwriting perception area; The second handwritten font data trains the first AI font model to update the first AI font model.
其中,所述高频,为根据用户的历史使用记录,计算字体的使用时长,使用频率和使用次数后,得到字体使用时长大于预设时长;字体使用频率大于预设频率;字体使用次数大于预设次数。Wherein, the high frequency is to calculate the duration of use of the font based on the user's historical use records. After using the frequency and the number of uses, it is obtained that the duration of the font is greater than the preset duration; the frequency of the font is greater than the preset frequency; the number of font usage is greater than the preset Set times.
可见,本示例中,电子设备结合所述第一AI字体资源库中的高频使用字体和用户录入的第二手写字体数据得到新训练的第二AI字体资源库,进而更新字体模型,满足用户对字体的设置要求。It can be seen that in this example, the electronic device combines the high-frequency use font in the first AI font resource library and the second handwritten font data entered by the user to obtain a newly trained second AI font resource library, and then updates the font model to satisfy User requirements for font settings.
在一个可能的示例中,所述第一AI字体资源库中的字体包括以下至少一种:汉字、数字、字母。In a possible example, the font in the first AI font resource library includes at least one of the following: Chinese characters, numbers, and letters.
其中,所述第一AI字体资源库中的字体包括但不限于汉字、数字、字母,还包括字符,符号等。The fonts in the first AI font resource library include but are not limited to Chinese characters, numbers, and letters, and also include characters, symbols, and the like.
在一个可能的示例中,所述第一手写字体数据为神经网络模型,所述神经网络模型包括以下任意一种:生成式对抗网络、卷积神经网络、非线性核残差网络。In a possible example, the first handwritten font data is a neural network model, and the neural network model includes any one of the following: a generative adversarial network, a convolutional neural network, and a nonlinear kernel residual network.
与所述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种字体设置方法的流程示意图,应用于电子设备,如图所示,本字体设置方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device. As shown in the figure, this font setting method include:
S301,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;S301, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options;
S302,所述电子设备在检测到针对所述AI字体选项的选取操作时,检测字体资源库集合中是否包括第一用户定制的字体资源库;S302, when detecting the selection operation for the AI font option, the electronic device detects whether a font resource library customized by the first user is included in the font resource library set;
S303,所述电子设备在检测到所述字体资源库集合中包括第一用户定制的字体资源库时,确定所述第一用户定制的字体资源库为符合第一用户使用需求的字体资源库。S303. When detecting that the font resource library set includes the font resource library customized by the first user, the electronic device determines that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
S304,所述电子设备根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;S304, the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
S305,所述电子设备根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;S305, the electronic device obtains a first AI font model associated with the handwriting habits of the first user according to the first handwritten font data;
S306,所述电子设备通过所述第一AI字体模型生成AI字体资源库;S306, the electronic device generates an AI font resource library through the first AI font model;
S307,所述电子设备调用所述第一AI字体资源库中的字体进行文字显示。S307: The electronic device calls the font in the first AI font resource library to display text.
可以看出,本申请实施例中,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。此外,通过检测字体资源库集合中是否包括第一用户定制的字体资源库,可以快速确定所述第一用户定制的字体资源库中符合第一用户使用需求的字 体资源库。电子设备通过检测字体资源库集合快速确定符合第一用户使用需求的字体资源库,提高了字体设置的效率和便捷,提高用户的体验感。It can be seen that in the embodiment of the present application, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience. In addition, by detecting whether the font resource library customized by the first user is included in the font resource library collection, it is possible to quickly determine the font resource library in the font resource library customized by the first user that meets the usage requirements of the first user. The electronic device quickly determines the font resource library that meets the usage requirements of the first user by detecting the font resource library collection, which improves the efficiency and convenience of font setting and improves the user's experience.
与所述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种字体设置方法的流程示意图,应用于电子设备;如图所示,本字体设置方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 4, which is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device; as shown in the figure, this font setting method include:
S401,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;S401, the electronic device displays a font setting interface, and the font setting interface includes an artificial intelligence AI font option;
S402,所述电子设备在检测到针对所述AI字体选项的选取操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;S402, when detecting the selection operation for the AI font option, the electronic device determines at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
S403,所述电子设备根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;S403, the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
S404,所述电子设备向服务器发送所述第一手写字体数据;S404, the electronic device sends the first handwritten font data to the server;
S405,所述电子设备接收来自所述服务器的第一AI字体模型,所述第一AI字体模型是所述服务器之下以下操作得到的:根据所述第一手写字体数据生成手写字体样本数据,利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型;S405, the electronic device receives a first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwritten font sample data according to the first handwritten font data, Training the pre-configured AI font model using the handwritten font sample data to obtain the trained first AI font model;
S406,所述电子设备通过所述第一AI字体模型生成AI字体资源库;S406, the electronic device generates an AI font resource library through the first AI font model;
S407,所述电子设备调用所述第一AI字体资源库中的字体进行文字显示。S407: The electronic device calls the font in the first AI font resource library to display text.
可以看出,本申请实施例中,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。此外,电子设备将收集的手写字体发送到服务器,服务器将接收的手写字体作为样本数据训练得到关于手写字体的字体模型,然后服务器再将训练好的字体模型发送到电子设备,节省了电子设备的运行内存,避免了对第一手写字体数据量的要求,同时提高了字体生成方法的普适性。It can be seen that in the embodiment of the present application, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience. In addition, the electronic device sends the collected handwriting font to the server. The server uses the received handwriting font as sample data to obtain a font model about the handwriting font. Then the server sends the trained font model to the electronic device, saving the electronic device’s Running memory avoids the requirement of the first handwritten font data volume, and at the same time improves the universality of font generation methods.
与所述图2所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种字体设置方法的流程示意图,应用于电子设备;如图所示,本字体设置方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 5, which is a schematic flowchart of a font setting method provided by an embodiment of the present application, which is applied to an electronic device; as shown in the figure, this font setting method include:
S501,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;S501, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options;
S502,所述电子设备在检测到针对所述AI字体选项的选取操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;S502, when detecting the selection operation for the AI font option, the electronic device determines at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
S503,所述电子设备根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;S503, the electronic device determines the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
S504,所述电子设备根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;S504. The electronic device obtains a first AI font model associated with the handwriting habits of the first user according to the first handwriting font data;
S505,所述电子设备通过所述第一AI字体模型生成AI字体资源库;S505, the electronic device generates an AI font resource library through the first AI font model;
S506,所述电子设备确定所述AI字体资源库中的高频使用字体;S506, the electronic device determines the high-frequency font used in the AI font resource library;
S507,所述电子设备调用并显示所述AI字体资源库中的所述高频使用字体;S507, the electronic device calls and displays the high-frequency font used in the AI font resource library;
S508,所述电子设备在检测到针对所述高频使用字体的选取操作时,输出手写感知区 域;S508, the electronic device outputs a handwriting perception area when it detects a selection operation for the high-frequency use font;
S509,所述电子设备通过所述手写感知区域获取用户录入的第二手写字体数据;S509, the electronic device obtains the second handwritten font data entered by the user through the handwriting perception area;
S510,所述电子设备通过所述第二手写字体数据训练所述第一AI字体模型以更新所述第一AI字体模型;S510, the electronic device trains the first AI font model through the second handwritten font data to update the first AI font model;
S511,所述电子设备调用所述第一AI字体资源库中的字体进行文字显示。S511. The electronic device calls the font in the first AI font resource library to display text.
可以看出,本申请实施例中,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。It can be seen that in the embodiment of the present application, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience.
此外,电子设备结合所述第一AI字体资源库中的高频使用字体和用户录入的第二手写字体数据得到新训练的第二AI字体资源库,进而更新字体模型,满足用户对字体的设置要求。In addition, the electronic device combines the high-frequency use font in the first AI font resource library and the second handwritten font data entered by the user to obtain a newly trained second AI font resource library, and then updates the font model to satisfy the user’s Set up requirements.
与所述图2至图5所示的实施例一致的,请参阅图6,图6是本申请实施例提供的一种电子设备600的结构示意图,如图所示,所述移动终端600包括应用处理器610、存储器620、通信接口630以及一个或多个程序621,其中,所述一个或多个程序621被存储在上述存储器620中,并且被配置由上述应用处理器610执行,所述一个或多个程序621包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIGS. 2 to 5, please refer to FIG. 6, which is a schematic structural diagram of an electronic device 600 provided by an embodiment of the present application. As shown in the figure, the mobile terminal 600 includes An application processor 610, a memory 620, a communication interface 630, and one or more programs 621, wherein the one or more programs 621 are stored in the above-mentioned memory 620, and are configured to be executed by the above-mentioned application processor 610, the One or more programs 621 include instructions for performing the following steps;
显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;Display a font setting interface, the font setting interface includes artificial intelligence AI font options;
在检测到针对所述AI字体选项的选取操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;When detecting the selection operation for the AI font option, determine at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;Determine the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;Obtaining a first AI font model associated with the handwriting habits of the first user according to the first handwriting font data;
通过所述第一AI字体模型生成AI字体资源库;Generating an AI font resource library through the first AI font model;
调用所述第一AI字体资源库中的字体进行文字显示。Call the font in the first AI font resource library to display text.
可以看出,本申请实施例中,移动终端显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生 成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。在一个可能的示例中,在确定至少一个符合第一用户使用需求的字体资源库方面,所述程序中的指令具体用于执行以下操作:检测字体资源库集合中是否包括第一用户定制的字体资源库;在检测到所述字体资源库集合中包括第一用户定制的字体资源库时,确定所述第一用户定制的字体资源库为符合第一用户使用需求的字体资源库。It can be seen that in the embodiment of the present application, the mobile terminal displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience. In a possible example, in determining at least one font resource library that meets the usage requirements of the first user, the instructions in the program are specifically used to perform the following operations: detect whether the font customized by the first user is included in the font resource library collection Resource library; when it is detected that the font resource library set includes the font resource library customized by the first user, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
在一个可能的示例中,所述程序还包括用于执行以下操作的指令:在检测到所述字体资源库集合中不包括第一用户定制的字体资源库时,显示字体资源库选择界面,所述字体资源库选择界面包括多个字体设置选项;检测到针对所述多个字体设置选项中至少一个字体设置选项的选取操作时,确定所述至少一个字体设置选项的字体资源库。In a possible example, the program further includes instructions for performing the following operation: when it is detected that the font resource library set does not include the font resource library customized by the first user, the font resource library selection interface is displayed. The font resource library selection interface includes a plurality of font setting options; when a selection operation for at least one font setting option among the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
在一个可能的示例中,在所述根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据方面,所述程序中的指令具体用于执行以下操作:确定所述第一用户的手写字体记录所包含的第一字体集合;根据所述第一字体集合从所述至少一个字体资源库进行字体筛选,得到第二字体集合,所述第二字体集合和所述第一字体集合中的任意两个字体不同,所述第二字体集合中的任意两个字体不同;根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据。In a possible example, in determining the first user's first handwritten font data based on the at least one font resource library and the first user's handwritten font record, the instructions in the program are specifically used to perform the following operations : Determining a first font set included in the first user's handwritten font record; performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, the second font set Unlike any two fonts in the first font set, any two fonts in the second font set are different; the first user is determined according to the fonts in the first font set and the second font set First handwritten font data.
在一个可能的示例中,在所述根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据方面,所述程序中的指令具体用于执行以下操作:从所述第二字体集合中筛选出高频使用字体;显示所述高频使用字体,根据用户的手动更新操作更新所述高频使用字体;确定更新后的所述高频使用字体和所述第一字体集合为第一用户的第一手写字体数据。In a possible example, in terms of determining the first user's first handwritten font data based on the fonts in the first font set and the second font set, the instructions in the program are specifically used to execute the following Operation: selecting high-frequency use fonts from the second font set; displaying the high-frequency use fonts, updating the high-frequency use fonts according to a user's manual update operation; determining the updated high-frequency use fonts and The first font set is the first handwritten font data of the first user.
在一个可能的示例中,在所述第一用户的手写字体记录的获取方式方面,所述程序中的指令具体用于执行以下操作:输出手写字体引导界面;获取第一用户在所述手写字体引导界面录入的第一手写字体数据;和/或,查询所述电子设备的输入法使用记录;从所述输入法使用记录中提取手写键盘模式下的第一手写字体数据;和/或,拍摄得到第一用户的手写字体图像;根据所述手写字体图像生成第一手写字体数据;和/或,接收来自终端或者服务器的第一用户的第一手写字体数据。In a possible example, in terms of the manner in which the first user's handwritten font records are obtained, the instructions in the program are specifically used to perform the following operations: output a handwritten font guide interface; obtain the first user's handwritten font The first handwriting font data entered in the guidance interface; and/or, querying the input method usage record of the electronic device; extracting the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or, shooting Obtain the first user's handwriting font image; generate first handwriting font data according to the handwriting font image; and/or, receive the first user's first handwriting font data from the terminal or the server.
在一个可能的示例中,在所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型方面,所述程序中的指令具体用于执行以下操作:根据所述第一手写字体数据生成手写字体样本数据;利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, in terms of obtaining the first AI font model associated with the handwriting habits of the first user based on the first handwritten font data, the instructions in the program are specifically used to perform the following operations: according to the first A handwritten font data generates handwritten font sample data; the pre-configured AI font model is trained using the handwritten font sample data to obtain the trained first AI font model.
在一个可能的示例中,在所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型方面,所述程序中的指令具体用于执行以下操作:根据所述第一手写字体数据生成手写字体样本数据;利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, in terms of obtaining the first AI font model associated with the handwriting habits of the first user based on the first handwritten font data, the instructions in the program are specifically used to perform the following operations: according to the first A handwritten font data generates handwritten font sample data; the pre-configured AI font model is trained using the handwritten font sample data to obtain the trained first AI font model.
在一个可能的示例中,在所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型方面,所述程序中的指令具体用于执行以下操作:向服务器发送所述第一手写字体数据;接收来自所述服务器的第一AI字体模型,所述第一AI字体模型是所述服务器之下以下操作得到的:根据所述第一手写字体数据生成手写字体样本数据,利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, in terms of obtaining the first AI font model associated with the handwriting habits of the first user based on the first handwritten font data, the instructions in the program are specifically used to perform the following operations: send the The first handwritten font data; receiving the first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwritten font sample data according to the first handwritten font data , Training the pre-configured AI font model using the handwritten font sample data to obtain the trained first AI font model.
在一个可能的示例中,所述程序还包括用于执行以下操作的指令:所述通过所述第一AI字体模型生成AI字体资源库之后,确定所述AI字体资源库中的高频使用字体;调用并显示所述AI字体资源库中的所述高频使用字体;在检测到针对所述高频使用字体的选取操 作时,输出手写感知区域;通过所述手写感知区域获取用户录入的第二手写字体数据;通过所述第二手写字体数据训练所述第一AI字体模型以更新所述第一AI字体模型。In a possible example, the program further includes instructions for performing the following operations: after generating the AI font resource library from the first AI font model, determining the high-frequency font used in the AI font resource library ; Calling and displaying the high-frequency fonts in the AI font resource library; when a selection operation for the high-frequency fonts is detected, a handwriting perception area is output; the user-entered first Two handwritten font data; training the first AI font model through the second handwritten font data to update the first AI font model.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions of the embodiments of the present application from the perspective of the execution process on the method side. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes a hardware structure and/or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional unit of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
需要注意的是,本申请装置实施例所描述的字体设置装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the font setting device described in the device embodiment of the present application is presented in the form of a functional unit. The term "unit" used herein should be understood as the broadest possible meaning, and the object used to implement the function described by each "unit" may be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware A program's processor (shared, dedicated, or chipset) and memory, combined logic circuits, and/or other suitable components that provide the above-mentioned functions.
图7示出了本申请实施例中所涉及的字体设置装置700的一种可能的功能单元组成框图。字体设置装置700应用于移动终端,包括处理单元601,其中,FIG. 7 shows a block diagram of a possible functional unit of the font setting device 700 involved in the embodiment of the present application. The font setting device 700 is applied to a mobile terminal and includes a processing unit 601, where,
所述电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述处理单元701用于在检测到针对所述AI字体选项的操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;以及根据所述至少一个资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;以及根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;以及通过所述第一AI字体模型生成AI字体资源库;以及调用所述第一AI字体资源库中的字体进行文字显示。The electronic device displays a font setting interface, and the font setting interface includes an artificial intelligence AI font option; the processing unit 701 is configured to determine that at least one meets the first user's usage requirements when detecting an operation for the AI font option Font resource library, the font resource library is a pre-configured font resource library with a fixed style; and the first user's first handwritten font data is determined according to the at least one resource library and the first user's handwritten font records; and according to The first handwritten font data obtains a first AI font model associated with the first user's handwriting habits; and generates an AI font resource library from the first AI font model; and calls a font in the first AI font resource library to perform Text display.
其中,所述字体设置装置700还可以包括存储单元703,用于存储电子设备的程序代码和数据。所述处理单元701可以是处理器,所述通信单元702可以是触控显示屏或者收发器,存储单元703可以是存储器。Wherein, the font setting device 700 may further include a storage unit 703 for storing program codes and data of electronic devices. The processing unit 701 may be a processor, the communication unit 702 may be a touch screen or a transceiver, and the storage unit 703 may be a memory.
可以看出,本申请实施例中,电子设备显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;所述电子设备在检测到针对所述AI字体选项的选取操作时,首先确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;其次,根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;再次,根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;然后,通过所述第一AI字体模型生成AI字体资源库;最后,调用所述第一AI字体资源库中的字体进行文字显示。可见,本申请实施例的电子设备根据用户需求选取特定风格的现有字体再结合和用户的手写字体记录确定用户的第一手写体数据,再根据用户的第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,能高效的从第一手写字体数据生成字体模型;这样避免了对第一手写字体数据量的要求,提高了字体生成方法的普适性。且利用字体设置生成AI字体资源库个性化定制字体,增加了终端的显示特色,提高了用户的体验感。在一个可能的示例中,在所述确定至少一个符合第一用户使 用需求的字体资源库方面,所述处理单元701具体用于:检测字体资源库集合中是否包括第一用户定制的字体资源库;在检测到所述字体资源库集合中包括第一用户定制的字体资源库时,确定所述第一用户定制的字体资源库为符合第一用户使用需求的字体资源库。It can be seen that in the embodiment of the present application, the electronic device displays a font setting interface, and the font setting interface includes artificial intelligence AI font options; when the electronic device detects the selection operation for the AI font options, it first determines at least A font resource library that meets the needs of the first user, the font resource library is a pre-configured font resource library with a fixed style; second, the first user is determined according to the at least one font resource library and the first user's handwritten font records The first handwritten font data; again, based on the first handwritten font data to obtain a first AI font model associated with the first user's handwriting habits; then, generate an AI font resource library from the first AI font model; finally, call The fonts in the first AI font resource library display text. It can be seen that the electronic device according to the embodiment of the present application selects the existing font of a specific style according to the user's needs, combines it with the user's handwriting font record to determine the first handwriting data of the user, and then obtains the associated first user handwriting according to the first handwriting font data of the user The customary first AI font model can efficiently generate the font model from the first handwritten font data; this avoids the requirement of the first handwritten font data volume and improves the universality of the font generation method. And the use of font settings to generate AI font resource library personalized custom fonts, increase the display characteristics of the terminal, improve the user's experience. In a possible example, in terms of determining at least one font resource library that meets the usage requirements of the first user, the processing unit 701 is specifically configured to detect whether the font resource library customized by the first user is included in the font resource library set When it is detected that the font resource library set includes the font resource library customized by the first user, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
在一个可能的示例中,所述处理单元701还具体用于:在检测到所述字体资源库集合中不包括第一用户定制的字体资源库时,显示字体资源库选择界面,所述字体资源库选择界面包括多个字体设置选项;检测到针对所述多个字体设置选项中至少一个字体设置选项的选取操作时,确定所述至少一个字体设置选项的字体资源库。In a possible example, the processing unit 701 is further specifically configured to: when it is detected that the font resource library set does not include the font resource library customized by the first user, display a font resource library selection interface, the font resource The library selection interface includes a plurality of font setting options; when a selection operation for at least one font setting option among the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
在一个可能的示例中,在所述根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据方面,所述处理单元701具体用于:确定所述第一用户的手写字体记录所包含的第一字体集合;根据所述第一字体集合从所述至少一个字体资源库进行字体筛选,得到第二字体集合,所述第二字体集合和所述第一字体集合中的任意两个字体不同,所述第二字体集合中的任意两个字体不同;根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据。In a possible example, in terms of determining the first user's first handwritten font data based on the at least one font resource library and the first user's handwritten font record, the processing unit 701 is specifically configured to: determine the A first font set included in the first user's handwritten font record; performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, the second font set and the first font set Any two fonts in a font set are different, and any two fonts in the second font set are different; the first handwriting of the first user is determined according to the fonts in the first font set and the second font set Font data.
在一个可能的示例中,在所述根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据方面,所述处理单元701具体用于:从所述第二字体集合中筛选出高频使用字体;显示所述高频使用字体,根据用户的手动更新操作更新所述高频使用字体;确定更新后的所述高频使用字体和所述第一字体集合为第一用户的第一手写字体数据。In a possible example, in terms of determining the first user's first handwritten font data according to the fonts in the first font set and the second font set, the processing unit 701 is specifically configured to: Filtering out high-frequency use fonts from the second font set; displaying the high-frequency use fonts, updating the high-frequency use fonts according to a user's manual update operation; determining the updated high-frequency use fonts and the first The font set is the first handwritten font data of the first user.
在一个可能的示例中,在所述第一用户的手写字体记录的获取方式方面,所述处理单元701具体用于:输出手写字体引导界面;获取第一用户在所述手写字体引导界面录入的第一手写字体数据;和/或,查询所述电子设备的输入法使用记录;从所述输入法使用记录中提取手写键盘模式下的第一手写字体数据;和/或,拍摄得到第一用户的手写字体图像;根据所述手写字体图像生成第一手写字体数据;和/或,接收来自终端或者服务器的第一用户的第一手写字体数据。In a possible example, in terms of the acquisition method of the first user's handwriting font record, the processing unit 701 is specifically configured to: output a handwriting font guidance interface; and acquire the first user's entry on the handwriting font guidance interface The first handwriting font data; and/or, query the input method usage record of the electronic device; extract the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or, obtain the first user by shooting Handwriting font image; generating first handwriting font data according to the handwriting font image; and/or, receiving first handwriting font data of a first user from a terminal or a server.
在一个可能的示例中,在所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型方面,所述处理单元701具体用于:根据所述第一手写字体数据生成手写字体样本数据;利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, in terms of obtaining the first AI font model associated with the handwriting habits of the first user according to the first handwritten font data, the processing unit 701 is specifically configured to: according to the first handwritten font data Generate handwritten font sample data; use the handwritten font sample data to train a pre-configured AI font model to obtain a trained first AI font model.
在一个可能的示例中,在所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型方面,所述处理单元701具体用于:向服务器发送所述第一手写字体数据;接收来自所述服务器的第一AI字体模型,所述第一AI字体模型是所述服务器之下以下操作得到的:根据所述第一手写字体数据生成手写字体样本数据,利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。In a possible example, in terms of obtaining the first AI font model associated with the handwriting habits of the first user according to the first handwriting font data, the processing unit 701 is specifically configured to: send the first handwriting to the server Font data; receiving a first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwriting font sample data according to the first handwriting font data, using the The handwritten font sample data trains the pre-configured AI font model to obtain the first AI font model after training.
在一个可能的示例中,所述处理单元701通过所述第一AI字体模型生成AI字体资源库之后,还用于:确定所述AI字体资源库中的高频使用字体;调用并显示所述AI字体资源库中的所述高频使用字体;在检测到针对所述高频使用字体的选取操作时,输出手写感知区域;通过所述手写感知区域获取用户录入的第二手写字体数据;通过所述第二手写字体数据训练所述第一AI字体模型以更新所述第一AI字体模型。In a possible example, after the processing unit 701 generates the AI font resource library through the first AI font model, it is also used to: determine the high-frequency font used in the AI font resource library; call and display the The high-frequency font used in the AI font resource library; when a selection operation for the high-frequency font is detected, a handwriting perception area is output; the second handwriting font data entered by the user is obtained through the handwriting perception area; The first AI font model is trained through the second handwritten font data to update the first AI font model.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如所述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括移动终端。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, which causes the computer to perform part or all of any method described in the method embodiments Step, the computer includes a mobile terminal.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如所述方法实 施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing the computer program, the computer program is operable to cause the computer to perform as described in the method embodiment Part or all of the steps of any method. The computer program product may be a software installation package, and the computer includes a mobile terminal.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the sequence of actions described. Because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在所述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed in an embodiment, you can refer to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application may essentially be a part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. The aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解所述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing relevant hardware through a program. The program may be stored in a computer-readable memory, and the memory may include: flash memory Disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application are described in detail above, and specific examples are used in this article to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and the core idea of the present application; Those of ordinary skill in the art, according to the ideas of the present application, will have changes in the specific implementation and application scope. In summary, the content of this specification should not be understood as a limitation to the present application.

Claims (11)

  1. 一种字体设置方法,其特征在于,应用于电子设备,所述方法包括:A font setting method is characterized in that it is applied to electronic equipment, and the method includes:
    显示字体设置界面,所述字体设置界面包括人工智能AI字体选项;Display a font setting interface, the font setting interface includes artificial intelligence AI font options;
    在检测到针对所述AI字体选项的选取操作时,确定至少一个符合第一用户使用需求的字体资源库,所述字体资源库为预配置的风格固定的字体资源库;When detecting the selection operation for the AI font option, determine at least one font resource library that meets the usage requirements of the first user, and the font resource library is a pre-configured font resource library with a fixed style;
    根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据;Determine the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record;
    根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型;Obtaining a first AI font model associated with the handwriting habits of the first user according to the first handwriting font data;
    通过所述第一AI字体模型生成AI字体资源库;Generating an AI font resource library through the first AI font model;
    调用所述第一AI字体资源库中的字体进行文字显示。Call the font in the first AI font resource library to display text.
  2. 根据权利要求1所述的方法,其特征在于,所述确定至少一个符合第一用户使用需求的字体资源库,包括:The method according to claim 1, wherein the determining at least one font resource library that meets the usage requirements of the first user includes:
    检测字体资源库集合中是否包括第一用户定制的字体资源库;Detecting whether the font resource library customized by the first user is included in the font resource library set;
    在检测到所述字体资源库集合中包括第一用户定制的字体资源库时,确定所述第一用户定制的字体资源库为符合第一用户使用需求的字体资源库。When detecting that the font resource library set includes the font resource library customized by the first user, it is determined that the font resource library customized by the first user is a font resource library that meets the usage requirements of the first user.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    在检测到所述字体资源库集合中不包括第一用户定制的字体资源库时,显示字体资源库选择界面,所述字体资源库选择界面包括多个字体设置选项;When it is detected that the font resource library set does not include the font resource library customized by the first user, a font resource library selection interface is displayed, and the font resource library selection interface includes multiple font setting options;
    检测到针对所述多个字体设置选项中至少一个字体设置选项的选取操作时,确定所述至少一个字体设置选项的字体资源库。When a selection operation for at least one font setting option among the plurality of font setting options is detected, a font resource library of the at least one font setting option is determined.
  4. 根据权利要求2或3所述的方法,其特征在于,所述根据所述至少一个字体资源库和第一用户的手写字体记录确定第一用户的第一手写字体数据,包括:The method according to claim 2 or 3, wherein the determining the first user's first handwritten font data according to the at least one font resource library and the first user's handwritten font record includes:
    确定所述第一用户的手写字体记录所包含的第一字体集合;Determining a first font set included in the first user's handwritten font record;
    根据所述第一字体集合从所述至少一个字体资源库进行字体筛选,得到第二字体集合,所述第二字体集合和所述第一字体集合中的任意两个字体不同,所述第二字体集合中的任意两个字体不同;Performing font filtering from the at least one font resource library according to the first font set to obtain a second font set, which is different from any two fonts in the first font set, the second Any two fonts in the font collection are different;
    根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据。The first handwritten font data of the first user is determined according to the fonts in the first font set and the second font set.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第一字体集合和所述第二字体集合中的字体确定第一用户的第一手写字体数据,包括:The method according to claim 4, wherein the determining the first handwritten font data of the first user according to the fonts in the first font set and the second font set includes:
    从所述第二字体集合中筛选出高频使用字体;Selecting high-frequency fonts from the second font set;
    显示所述高频使用字体,根据用户的手动更新操作更新所述高频使用字体;Displaying the high-frequency use font, and updating the high-frequency use font according to a user's manual update operation;
    确定更新后的所述高频使用字体和所述第一字体集合为第一用户的第一手写字体数据。It is determined that the updated high frequency use font and the first font set are the first handwritten font data of the first user.
  6. 根据权利要求4或5所述的方法,其特征在于,所述第一用户的手写字体记录的获取方式包括以下任意一种:The method according to claim 4 or 5, wherein the acquisition method of the first user's handwritten font record includes any one of the following:
    输出手写字体引导界面;获取第一用户在所述手写字体引导界面录入的第一手写字体数据;和/或,Output a handwritten font guide interface; obtain first handwritten font data entered by the first user on the handwritten font guide interface; and/or,
    查询所述电子设备的输入法使用记录;从所述输入法使用记录中提取手写键盘模式下的第一手写字体数据;和/或,Query the input method usage record of the electronic device; extract the first handwriting font data in the handwriting keyboard mode from the input method usage record; and/or,
    拍摄得到第一用户的手写字体图像;根据所述手写字体图像生成第一手写字体数据;和/或,Capture the first user's handwritten font image by shooting; generate first handwritten font data according to the handwritten font image; and/or
    接收来自终端或者服务器的第一用户的第一手写字体数据。Receive the first handwritten font data of the first user from the terminal or server.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,包括:The method according to any one of claims 1-6, wherein the obtaining the first AI font model associated with the handwriting habits of the first user according to the first handwriting font data includes:
    根据所述第一手写字体数据生成手写字体样本数据;Generating handwriting font sample data according to the first handwriting font data;
    利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。The pre-configured AI font model is trained using the handwritten font sample data to obtain the trained first AI font model.
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据所述第一手写字体数据得到关联第一用户手写习惯的第一AI字体模型,包括:The method according to any one of claims 1-6, wherein the obtaining the first AI font model associated with the handwriting habits of the first user according to the first handwriting font data includes:
    向服务器发送所述第一手写字体数据;Sending the first handwritten font data to the server;
    接收来自所述服务器的第一AI字体模型,所述第一AI字体模型是所述服务器之下以下操作得到的:根据所述第一手写字体数据生成手写字体样本数据,利用所述手写字体样本数据训练预配置的AI字体模型,得到训练后的第一AI字体模型。Receiving a first AI font model from the server, the first AI font model is obtained by the server under the following operation: generating handwriting font sample data according to the first handwriting font data, using the handwriting font sample The data is used to train the pre-configured AI font model to obtain the trained first AI font model.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述通过所述第一AI字体模型生成AI字体资源库之后,所述方法还包括:The method according to any one of claims 1-8, wherein after the AI font resource library is generated from the first AI font model, the method further includes:
    确定所述AI字体资源库中的高频使用字体;Determine the high-frequency font used in the AI font resource library;
    调用并显示所述AI字体资源库中的所述高频使用字体;Call and display the high-frequency fonts in the AI font resource library;
    在检测到针对所述高频使用字体的选取操作时,输出手写感知区域;Output a handwriting perception area when detecting a selection operation for the high-frequency use font;
    通过所述手写感知区域获取用户录入的第二手写字体数据;Acquiring second handwritten font data entered by the user through the handwriting perception area;
    通过所述第二手写字体数据训练所述第一AI字体模型以更新所述第一AI字体模型。The first AI font model is trained through the second handwritten font data to update the first AI font model.
  10. 一种电子设备,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行权利要求1-9任一项方法中的步骤的指令。An electronic device, characterized by comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor The program includes instructions for performing the steps in the method of any one of claims 1-9.
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法,所述计算机包括移动终端。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the computer program according to any one of claims 1-9 In the method, the computer includes a mobile terminal.
PCT/CN2018/122138 2018-12-19 2018-12-19 Font setting method and device WO2020124450A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098568.8A CN112840312B (en) 2018-12-19 2018-12-19 Font setting method and device
PCT/CN2018/122138 WO2020124450A1 (en) 2018-12-19 2018-12-19 Font setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/122138 WO2020124450A1 (en) 2018-12-19 2018-12-19 Font setting method and device

Publications (1)

Publication Number Publication Date
WO2020124450A1 true WO2020124450A1 (en) 2020-06-25

Family

ID=71102551

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/122138 WO2020124450A1 (en) 2018-12-19 2018-12-19 Font setting method and device

Country Status (2)

Country Link
CN (1) CN112840312B (en)
WO (1) WO2020124450A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117111826A (en) * 2023-10-23 2023-11-24 深圳市华南英才科技有限公司 Capacitive pen screen interaction control method and system based on handwriting characteristics

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667102A (en) * 2009-09-21 2010-03-10 宇龙计算机通信科技(深圳)有限公司 Realizing method for personalized fonts and electronic terminal
US20140006533A1 (en) * 2011-08-10 2014-01-02 Tencent Technology (Shenzhen) Company Limited Instant Messaging Terminal and Method for Displaying Session Message in Real Time
CN103631550A (en) * 2012-08-24 2014-03-12 中兴通讯股份有限公司 Method and device for displaying individualized typefaces
CN104216869A (en) * 2013-05-31 2014-12-17 北京米时科技股份有限公司 System and method for acquiring and displaying fonts which are not supported in intelligent device yet

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05265429A (en) * 1992-03-19 1993-10-15 Fujitsu Ltd Character font generating process system
JP2004117714A (en) * 2002-09-25 2004-04-15 Riso Kagaku Corp Font generator and font generation program
CN101377854B (en) * 2008-10-07 2012-01-04 浙江大学 Method for simulating Chinese characters hand-written handwriting by a computer
WO2012037721A1 (en) * 2010-09-21 2012-03-29 Hewlett-Packard Development Company,L.P. Handwritten character font library
CN103885699A (en) * 2012-12-20 2014-06-25 中山大学深圳研究院 Automatic handwriting copying method based on mobile terminals
TW201426512A (en) * 2012-12-28 2014-07-01 Ching-Hu Yeh Personal handwritten character production system and operation procedure
US10503810B2 (en) * 2015-06-18 2019-12-10 International Business Machines Corporation Font personalization
US9633255B2 (en) * 2015-06-26 2017-04-25 Intel Corporation Substitution of handwritten text with a custom handwritten font
CN107644006B (en) * 2017-09-29 2020-04-03 北京大学 Automatic generation method of handwritten Chinese character library based on deep neural network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667102A (en) * 2009-09-21 2010-03-10 宇龙计算机通信科技(深圳)有限公司 Realizing method for personalized fonts and electronic terminal
US20140006533A1 (en) * 2011-08-10 2014-01-02 Tencent Technology (Shenzhen) Company Limited Instant Messaging Terminal and Method for Displaying Session Message in Real Time
CN103631550A (en) * 2012-08-24 2014-03-12 中兴通讯股份有限公司 Method and device for displaying individualized typefaces
CN104216869A (en) * 2013-05-31 2014-12-17 北京米时科技股份有限公司 System and method for acquiring and displaying fonts which are not supported in intelligent device yet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117111826A (en) * 2023-10-23 2023-11-24 深圳市华南英才科技有限公司 Capacitive pen screen interaction control method and system based on handwriting characteristics
CN117111826B (en) * 2023-10-23 2024-01-02 深圳市华南英才科技有限公司 Capacitive pen screen interaction control method and system based on handwriting characteristics

Also Published As

Publication number Publication date
CN112840312B (en) 2023-05-26
CN112840312A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US10841265B2 (en) Apparatus and method for providing information
US10223574B2 (en) Method for fingerprint template update and terminal device
US20190156833A1 (en) Method, interaction device, server, and system for speech recognition
CN107491560B (en) Page picture display method and device, storage medium, server and mobile terminal
US10884611B2 (en) Method and apparatus for controlling touch screen of terminal, and terminal
US20150348493A1 (en) Method of controlling display and electronic device for providing the same
CN111408136A (en) Game interaction control method, device and storage medium
US20160292946A1 (en) Method and apparatus for collecting statistics on network information
JP2016517099A (en) Input method, apparatus, program, and recording medium
CN111563151B (en) Information acquisition method, session configuration method, device and storage medium
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
US20170090725A1 (en) Selecting at least one graphical user interface item
CN103886025A (en) Method and device for displaying pictures in webpage
WO2015131816A1 (en) Page turning method and mobile device
CN107291772A (en) One kind search access method, device and electronic equipment
WO2020124450A1 (en) Font setting method and device
CN105095161B (en) Method and device for displaying rich text information
CN106716370A (en) Discovery and control of remote media sessions
CN107632985B (en) Webpage preloading method and device
WO2020124449A1 (en) Font setting method and device
CN109213398A (en) A kind of application quick start method, terminal and computer readable storage medium
WO2019024495A1 (en) Application theme pushing terminal and method, and computer-readable storage medium
CN110362805B (en) Content typesetting recommendation method and device and terminal equipment
CN111399722A (en) Mail signature generation method, device, terminal and storage medium
CN111640204B (en) Method and device for constructing three-dimensional object model, electronic equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18943946

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18943946

Country of ref document: EP

Kind code of ref document: A1