CN111259621A - Cloud font display method and device and electronic equipment - Google Patents
Cloud font display method and device and electronic equipment Download PDFInfo
- Publication number
- CN111259621A CN111259621A CN201811358187.7A CN201811358187A CN111259621A CN 111259621 A CN111259621 A CN 111259621A CN 201811358187 A CN201811358187 A CN 201811358187A CN 111259621 A CN111259621 A CN 111259621A
- Authority
- CN
- China
- Prior art keywords
- font
- cloud
- fonts
- preset number
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000004891 communication Methods 0.000 claims description 44
- 238000001514 detection method Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Document Processing Apparatus (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides a method and a device for displaying cloud fonts and electronic equipment, wherein the method comprises the following steps: and sending a request for acquiring the font information of the cloud end, and receiving and displaying the font information of the preset number randomly acquired by the cloud end server. When the user selects the font, the font can be selected from the currently displayed preset number of font information, and the range of the font selected by the user is narrowed. By applying the embodiment of the invention, the interest of the user in selecting the fonts is improved, so that the user experience is improved.
Description
Technical Field
The invention relates to the technical field of cloud font display, in particular to a cloud font display method and device and electronic equipment.
Background
With the continuous change of artistic aesthetics and the continuous development of characters, the types of fonts are more and more, and the setting of the fonts is more and more commonly used in various documents. For example, font setting functions are used in PDF or WORD tools.
At present, fonts of a document editor are all pre-stored in a local disk of a terminal, and the fonts in the font setting are all sequentially arranged according to a preset sequence, as shown in fig. 1, when a user needs to select a font, the user can only sequentially browse and search the fonts in all the fonts displayed according to the preset font arrangement sequence in a font setting pull-down menu, and the method corresponds to the situation that the number of the fonts of the local disk is small, and the user can quickly search the needed fonts.
With the increase of the number of fonts, for some terminal devices with small disk capacity, for example: the mobile phone or the PAD and other terminal equipment can not store all fonts in a local disk of the terminal so as to prevent the waste of storage resources. In order to solve the problem, cloud fonts appear, and all the fonts are stored in the cloud. What kind of font the terminal needs just can download from the cloud server.
However, there are hundreds of cloud fonts stored in the cloud server, and if all fonts displayed according to the preset font arrangement sequence are browsed and searched, the similar fonts are usually arranged together in the sequence, so that the user lacks a sense of freshness, the interest of the user in selecting the fonts is reduced, and the user experience is reduced.
Disclosure of Invention
The embodiment of the invention aims to provide a cloud font display method, a cloud font display device and electronic equipment, so as to improve the interest of a user in selecting a font and improve the user experience.
In order to achieve the above object, an embodiment of the present invention discloses a method for displaying cloud fonts, which is applied to a client communicatively connected to a cloud server, and the method includes:
sending a request for acquiring cloud font information;
receiving font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
and displaying the received preset number of font information for the user to select.
Optionally, before the step of sending the request for obtaining the cloud font information, the method further includes:
detecting whether a font selection button in a menu bar of a document editing tool is selected; and if so, executing the step of sending the request for obtaining the cloud font information.
Optionally, the step of displaying the received preset number of font information for the user to select includes:
the received font information of the preset number of types is displayed in a font selection drop-down menu in a menu bar of the document editing tool.
Optionally, after the step of displaying the received information of the predetermined number of fonts in the font selection pull-down menu in the document editing tool menu bar, the method further includes:
detecting whether a cloud font display switching button in a font selection pull-down menu is selected;
if yes, sending a request for acquiring font information of a preset number of fonts in the cloud font library to the cloud server;
receiving font information of a preset number of fonts sent by the cloud server;
and displaying the font information of the preset number of fonts to a font selection pull-down menu in a menu bar of the document editing tool.
Optionally, after the step of displaying the received information of the predetermined number of fonts in the font selection pull-down menu in the document editing tool menu bar, the method further includes:
detecting whether more cloud font buttons are selected or not in a font selection pull-down menu;
if yes, sending a request for acquiring font information of all fonts in the cloud font library to the cloud server;
receiving font information of all fonts sent by the cloud server;
generating a bullet frame for displaying font information;
and adding the font information paging of all the fonts into the bullet frame for displaying.
Optionally, after the step of displaying the received information of the predetermined number of fonts in the font selection pull-down menu in the document editing tool menu bar, the method further includes:
detecting whether the cloud font name displayed in the font selection pull-down menu is selected;
if so, sending a request for acquiring font data corresponding to the cloud font name to the cloud server;
receiving font data corresponding to the cloud font name issued by the cloud server;
and storing the acquired font data corresponding to the cloud font name.
In order to achieve the above object, an embodiment of the present invention further discloses a method for displaying a cloud font, which is applied to a cloud server in communication connection with a client, where the method includes:
receiving a request for acquiring cloud font information; the request is as follows: a request for acquiring cloud font information is sent by a client;
randomly acquiring font information of a preset number of fonts in a cloud font library;
and sending the acquired font information of the preset number of fonts to the client.
Optionally, numbering each font in the cloud font library; each font corresponds to a number;
the step of randomly acquiring font information of a preset number of fonts in the cloud font library comprises the following steps:
randomly acquiring a preset number of numbers, and determining fonts corresponding to the preset number of numbers as randomly acquired preset number of fonts;
and obtaining the font information of the preset number of fonts to obtain the preset number of font information.
Optionally, the method further includes:
receiving a request for acquiring font information of a preset number of fonts in the cloud font library; the request is as follows: after detecting that the cloud font display switching button in the font selection pull-down menu is selected, the client sends a request for acquiring font information of a preset number of fonts in the cloud font library;
acquiring font information of a preset number of fonts in a cloud font library;
and sending the acquired font information of the preset number of fonts to the client.
Optionally, the method further includes:
receiving a request for acquiring font information of all fonts in the cloud font library; the request is as follows: after detecting that more cloud font buttons in the font selection pull-down menu are selected, the client sends a request for acquiring font information of all fonts in the cloud font library;
acquiring font information of all fonts in a cloud font library;
and sending the acquired font information of all the fonts to the client.
Optionally, the method further includes:
receiving a request for acquiring font data corresponding to the cloud font name; the request is as follows: after detecting that the cloud font name displayed in the font selection pull-down menu is selected, the client sends a request for acquiring font data corresponding to the cloud font name;
acquiring font data corresponding to the cloud font name in a cloud font library;
and issuing the acquired font data to a client.
In order to achieve the above object, an embodiment of the present invention further discloses a display device for cloud fonts, which is applied to a client communicatively connected to a cloud server, and the device includes:
the first sending module is used for sending a request for obtaining the cloud font information;
the first receiving module is used for receiving font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
and the first display module is used for displaying the received preset number of font information for the user to select.
Optionally, the apparatus further includes:
the system comprises a first detection module, a second detection module and a display module, wherein the first detection module is used for detecting whether a font selection button in a menu bar of a document editing tool is selected or not before a request for acquiring cloud font information is sent; if yes, triggering the first sending module to send a request for obtaining the cloud font information.
Optionally, the first display module is specifically configured to display the received preset number of font information in a font selection pull-down menu in a menu bar of the document editing tool.
Optionally, the apparatus further includes:
the second detection module is used for detecting whether a cloud font display switching button in a font selection pull-down menu is selected or not after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar;
the second sending module is used for sending a request for acquiring font information of a preset number of fonts in the cloud font library to the cloud server when detecting that a cloud font display switching button in a font selection pull-down menu is selected;
the second receiving module is used for receiving font information of a preset number of fonts sent by the cloud server;
and the second display module is used for displaying the font information of the preset number of fonts to a font selection pull-down menu in a menu bar of the document editing tool.
Optionally, the apparatus further includes:
the third detection module is used for detecting whether more cloud font buttons are selected or not in the font selection pull-down menu after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar;
the third sending module is used for sending a request for acquiring font information of all fonts in the cloud font library to the cloud server after detecting that more cloud font buttons are selected in the font selection pull-down menu;
the third receiving module is used for receiving font information of all fonts sent by the cloud server;
the generating module is used for generating a bullet frame for displaying font information;
and the third display module is used for adding the font information pages of all the fonts into the bullet frame for display.
Optionally, the apparatus further includes:
the fourth detection module is used for detecting whether the cloud font name displayed in the font selection pull-down menu is selected or not after the received preset number of font information is displayed in the font selection pull-down menu in the document editing tool menu bar;
the fourth sending module is used for sending a request for obtaining font data corresponding to the cloud font name to the cloud server when detecting that the cloud font name displayed in the font selection pull-down menu is selected;
the fourth receiving module is used for receiving font data corresponding to the cloud font name issued by the cloud server;
and the storage module is used for storing the acquired font data corresponding to the cloud font name.
In order to achieve the above object, an embodiment of the present invention further discloses a display device for cloud fonts, which is applied to a cloud server in communication connection with a client, where the display device includes:
the request receiving module is used for receiving a request for acquiring the cloud font information; the request is as follows: a request for acquiring cloud font information is sent by a client;
the acquisition module is used for randomly acquiring font information of a preset number of fonts in the cloud font library;
and the issuing module is used for issuing the acquired font information of the preset number of fonts to the client.
In order to achieve the above object, an embodiment of the present invention further discloses a client, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the communication interface is used for connecting a cloud server;
the processor is configured to implement, when executing the program stored in the memory, a step of applying any one of the above cloud font display methods to a client.
In order to achieve the above object, an embodiment of the present invention further discloses a cloud server, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the communication interface is used for connecting a client;
the processor is configured to implement, when executing the program stored in the memory, a step of applying any one of the above cloud font display methods to a cloud server.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above-described cloud font display methods.
In another aspect of the present invention, an embodiment of the present invention further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned cloud font display methods.
The cloud font display method, the cloud font display device and the electronic equipment, provided by the embodiment of the invention, send the request for obtaining the cloud font information, receive the preset number of font information randomly obtained by the cloud server and display the font information. When the user selects the font, the font can be selected from the currently displayed preset number of font information, and the range of the font selected by the user is narrowed. Therefore, the interest of the user in selecting the fonts can be improved, and the user experience is improved.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating font display in a conventional font selection;
fig. 2 is a flowchart illustrating that the cloud font display method provided by the embodiment of the present invention is applied to a client;
fig. 3 is another flowchart illustrating that the cloud font display method provided in the embodiment of the present invention is applied to a client;
fig. 4 is another flowchart illustrating that the cloud font display method provided in the embodiment of the present invention is applied to a client;
fig. 5 is a flowchart of acquiring font data of a displayed cloud font according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a display of cloud fonts in font selection according to the present invention;
fig. 7 is a flowchart illustrating application of the method for displaying cloud fonts to a cloud server according to the embodiment of the present invention;
fig. 8 is another flowchart illustrating application of the method for displaying cloud fonts to a cloud server according to the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a display apparatus for cloud fonts applied to a client according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a cloud font display device applied to a cloud server according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a display client for cloud fonts according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a cloud server for displaying cloud fonts according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problem of the prior art, the embodiment of the invention provides a cloud font display method and device and electronic equipment. First, a method for displaying a cloud font according to an embodiment of the present invention is described below.
As shown in fig. 2, fig. 2 is a schematic flow chart of a method for displaying cloud fonts provided in an embodiment of the present invention, and is applied to a client communicatively connected to a cloud server, where the method may include:
s201: sending a request for acquiring cloud font information;
in one case, the font information may be a font ID, a font name, a font style, and the like. Each font ID corresponds to a font name and a font style.
S202: receiving font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
s203: and displaying the received preset number of font information for the user to select.
By applying the embodiment shown in fig. 2, a request for obtaining the font information of the cloud end is sent, and the font information of the preset number randomly obtained by the cloud end server is received and displayed. When the user selects the font, the font can be selected from the currently displayed preset number of font information, and the range of the font selected by the user is narrowed. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
In an embodiment, another flowchart of applying the method for displaying cloud fonts to a client communicatively connected to a cloud server is provided in an embodiment of the present invention, as shown in fig. 3. In this embodiment, after detecting that the font selection button is selected, sending a request for obtaining font information to the cloud server, and displaying the obtained font information in a font selection pull-down menu in a menu bar of the document editing tool. Specifically, the method may include:
s301: detecting whether a font selection button in a menu bar of a document editing tool is selected;
in one case, the document editing tool may be a PDF or a Word, and a font used when editing the document is selected by selecting a font selection button in the PDF or the Word. The detection of whether the font selection button in the document editing tool menu bar is selected can be the detection of whether the font selection button in the PDF or Word menu bar is selected.
In one case, the font information currently displayed in the font selection pull-down menu does not have the font that the user wants to select, and then the preset number of font information can be obtained from the font library of the cloud server again to be displayed by selecting the font display switching button, so that the user can select the preset number of fonts each time when selecting the fonts, and the range of selecting the fonts each time is reduced. Then, whether a cloud font display switching button in a font selection pull-down menu is selected or not may be detected, and if so, a request for acquiring font information of a preset number of fonts in the cloud font library is sent to the cloud server.
S302: sending a request for acquiring cloud font information when detecting that a font selection button in a document editing tool menu bar is selected;
in one case, upon detecting that a font selection button in a document editing tool menu bar is selected, a request for obtaining cloud font information such as a font ID, a font name, and a font style is sent to a cloud server.
In one case, it may also be detected that a cloud font display switching button in the font selection pull-down menu is selected, and a request for obtaining cloud font information is sent.
S303: receiving font information of a preset number of fonts sent by a cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
in one case, the receiving of the font information of the predetermined number of fonts sent by the cloud server may be receiving of the font information of the predetermined number of fonts sent by the cloud server, such as the font ID, the font name, and the font style.
In one case, after detecting that the cloud font display switching button is selected and sending a request for acquiring font information in the cloud font library to the cloud server, font information of a preset number of fonts sent by the cloud server is received.
S304: the received font information of the preset number of types is displayed in a font selection drop-down menu in a menu bar of the document editing tool.
In one case, after receiving font information of a preset number of fonts sent by the cloud server, the font names in the font information are displayed in a font selection pull-down menu in a menu bar of a PDF or Word document editing tool, for example, in a preset cloud font display bar of the font selection pull-down menu. When it is detected that the font name displayed in the preset cloud font display column is indicated by a pointer, such as a mouse pointer, the font style corresponding to the font name is displayed, so that a user can know the style of the character edited after the font is selected.
The font information displayed in the font selection pull-down menu in the document editing tool menu bar can be the font information acquired after the font selection button is selected, or the font information acquired after the cloud font display switching button in the font selection pull-down menu is selected.
By applying the embodiment shown in fig. 3, after detecting that the font selection button is selected, sending a request for obtaining font information to the cloud server, and displaying the obtained font information of the preset number of fonts to the font selection pull-down menu in the document editing tool menu bar. When the user selects the font, the font information with the number preset in the font selection pull-down menu can be selected, so that the range of the font selected by the user is narrowed. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
In an embodiment, after S304, it may be further determined whether to obtain font information of all fonts in the cloud font library from the cloud server by detecting whether a button of a font selection pull-down menu for checking whether more cloud fonts are selected. As shown in fig. 4, fig. 4 is another flowchart of the method for displaying cloud fonts, provided by the embodiment of the present invention, applied to a client communicatively connected to a cloud server, and specifically, the method may include:
s401: detecting whether more cloud font buttons are selected or not in a font selection pull-down menu;
in one case, the user may click the view more cloud fonts button to browse the font names and font styles of all cloud fonts in the cloud font library.
S402: when the button for checking more cloud fonts is detected to be selected, a request for acquiring font information of all fonts in the cloud font library is sent to the cloud server;
s403: receiving font information of all fonts sent by a cloud server;
s404: generating a bullet frame for displaying font information;
s405: and adding the font information pages of all the fonts into the bullet frame for displaying.
In one case, the font names in the received font information of all the fonts are added to the bullet frame in a paging mode, and a preset number of font names are displayed on each page. When it is detected that the font name is indicated by a pointer, such as a mouse pointer, a font style corresponding to the font name is displayed so that a user can know the style of a character edited after the font is selected.
The bullet frame can also be provided with a font searching frame, so that a user can input font information in the font searching frame to search for a needed font, the efficiency of searching for the font is improved, and the searching time is saved.
By applying the embodiment shown in fig. 4, when it is detected that the button for viewing more cloud fonts is selected, the font information of all cloud fonts is acquired, and all the font information is added to the bullet box and displayed on the editing interface. When the user selects the font, the user can browse and select the font in the popup box in a paging mode, so that the interest of the user in selecting the font is improved, and the user experience is improved.
In an embodiment, after S304, it is detected whether a cloud font name displayed in the font selection drop-down menu is selected, and it is determined whether to acquire font data corresponding to the font name from the cloud server. As shown in fig. 5, fig. 5 is a flowchart for acquiring font data of a displayed cloud font according to an embodiment of the present invention. Specifically, the method may include:
s501: detecting whether a cloud font name displayed in a font selection pull-down menu is selected;
in one case, detecting whether the cloud font name displayed in the font selection pull-down menu is selected may be detecting whether the font name in the preset number of font information acquired from the cloud server after the font selection button is selected, or detecting whether the font name in the preset number of font information acquired from the cloud server after the cloud font display switching button is selected; it is also possible to detect whether the font name displayed in the box displaying all font information is selected.
S502: sending a request for acquiring font data corresponding to the font name to the cloud server when detecting that the font name displayed in the font selection pull-down menu is selected;
in one case, when detecting that the font name displayed in the font selection pull-down menu is selected, or detecting that the font name in the preset number of font information acquired from the cloud server after the cloud font display switching button is selected, or detecting that the font name displayed in the bullet box displaying all the font information is selected, the request for acquiring the font data corresponding to the font name is sent to the cloud server.
S503: receiving font data corresponding to the font name sent by the cloud server;
s504: and storing the font data corresponding to the acquired font name.
By applying the embodiment shown in fig. 5, it is detected whether the cloud font name is selected, and if so, the font data corresponding to the selected cloud font name is obtained from the cloud server for storage. When a user selects a certain font name, the font data corresponding to the font name is stored, so that the memory space occupied by the local disk due to the storage of all cloud font data is reduced, and the worry of the user about the memory space occupied by the font data is reduced. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
As shown in fig. 6, the present invention further provides a font display diagram in font selection, and when a user clicks a font selection button, four font names are displayed; after a user clicks a 'change of one' button, namely a cloud font display switching button, another four font names different from the currently displayed four names are displayed in a column of the cloud font; when a user selects one of the currently displayed font names, such as 1.0 widmanbody in a Sharpword cloud font library, font data corresponding to the font name can be stored in a local disk for the user to use; after the user selects the button of 'view more cloud fonts', a popup box capable of displaying all cloud font information is popped up, so that the user can browse and select the fonts.
The present invention further provides a flowchart of a method for displaying cloud fonts applied to a cloud server, as shown in fig. 7, specifically, the method may include:
s701: receiving a request for acquiring cloud font information; the request is as follows: a request for acquiring cloud font information is sent by a client;
s702: randomly acquiring font information of a preset number of fonts in a cloud font library;
s703: and sending the acquired font information of the preset number of fonts to the client.
By applying the embodiment shown in fig. 7, the request for obtaining the cloud font information is received, and the preset number of types of font information is randomly obtained and sent to the client, so that the user can select from the randomly obtained preset number of types of font information when selecting the font, thereby narrowing the font selection range. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
In an embodiment, the present invention further provides another flowchart of applying the method for displaying cloud fonts to a cloud server, as shown in fig. 8, in this embodiment, each font in a cloud font library is numbered; each font corresponds to a number so as to randomly obtain a preset number of fonts, and after receiving a request for obtaining font data, the font data is sent to the client for storage. Specifically, the method may include:
s801: receiving a request for acquiring cloud font information;
in one case, the received request may be a request for obtaining font information of a preset number of fonts in the cloud, or a request for obtaining font information of all fonts in the cloud font library.
When a request sent by a client after detecting that a font selection button or a cloud font display switching button is selected is received, font information of a preset number of fonts is obtained; and when a request sent by the client after the button for checking more fonts is detected to be selected is received, acquiring font information of all fonts in the cloud font library.
S802: randomly acquiring a preset number of numbers, and determining fonts corresponding to the preset number of numbers as randomly acquired preset number of fonts;
in one case, after receiving a request for acquiring font information of a preset number of fonts, randomly acquiring the preset number of fonts; after receiving the request for obtaining the font information of all fonts in the cloud font library, the font information of the fonts corresponding to all the number numbers can be obtained.
S803: obtaining font information of a preset number of fonts to obtain the preset number of font information;
in one case, randomly acquiring a preset number of fonts to acquire preset number of font information; and acquiring all fonts in the cloud font library to acquire font information of all fonts.
S804: the acquired font information of the preset number of fonts is sent to the client;
in one case, the acquired preset number of font information may be issued to the client, or all the acquired font information may be issued to the client.
S805: receiving a request for acquiring font data corresponding to a cloud font name; the request is as follows: after detecting that the cloud font name displayed in the font setting pull-down menu is selected, the client sends a request for acquiring font data corresponding to the cloud font name;
s806: acquiring font data corresponding to the font name in a cloud font library;
s807: and sending the acquired font data to the client.
In one case, the acquired font data is issued to the client so that the client stores the font data, and the stored font data is used when editing the document.
By applying the embodiment shown in fig. 8, the preset number of font information is randomly acquired and sent to the client for display, and the font data corresponding to the selected cloud font name is acquired and sent to the client for storage. When the user selects the font, the user can select the font from the preset number of font information which is randomly acquired, the range of the user for selecting the font is narrowed, meanwhile, the font data corresponding to the font name is issued to enable the client to store, and the memory space occupied by the local disk due to the fact that a large amount of cloud font data are stored is reduced. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
Corresponding to the method embodiment shown in fig. 2, an embodiment of the present invention further provides a schematic structural diagram of the display device for cloud fonts applied to a client communicatively connected to a cloud server, as shown in fig. 9. The method can comprise the following steps:
a first sending module 901, configured to send a request for obtaining cloud font information;
a first receiving module 902, configured to receive font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
the first display module 903 is configured to display the received preset number of font information for the user to select.
As an embodiment, the apparatus may further include:
a first detection module (not shown) configured to detect whether a font selection button in a menu bar of a document editing tool is selected before sending a request for obtaining cloud font information; if yes, triggering the first sending module to send a request for obtaining the cloud font information.
As an embodiment, the first display module 903 is specifically configured to display the received information of the predetermined number of fonts in a font selection pull-down menu in a menu bar of a document editing tool.
As an embodiment, the apparatus may further include:
a second detecting module (not shown in the figure), configured to detect whether a cloud font display switching button in a font selection pull-down menu in the document editing tool menu bar is selected after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar;
a second sending module (not shown in the figure), configured to send, to the cloud server, a request for obtaining font information of a preset number of fonts in the cloud font library, when detecting that a cloud font display switching button in the font selection pull-down menu is selected;
a second receiving module (not shown in the figure), configured to receive font information of a preset number of fonts sent by the cloud server;
and a second display module (not shown) for displaying the font information of the preset number of fonts in a font selection pull-down menu in a menu bar of the document editing tool.
As an embodiment, the apparatus may further include:
a third detecting module (not shown in the figure), configured to detect whether more cloud font buttons are selected in the font selection pull-down menu after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar;
a third sending module (not shown in the figure), configured to send, to the cloud server, a request for obtaining font information of all fonts in the cloud font library after detecting that a button for checking more cloud fonts in a font selection pull-down menu is selected;
a third receiving module (not shown in the figure), configured to receive font information of all fonts sent by the cloud server;
a generating module (not shown) for generating a bullet box for displaying font information;
and a third display module (not shown) for adding the page of font information of all fonts to the bullet frame for display.
As an embodiment, the apparatus may further include:
a fourth detecting module (not shown in the figure), configured to detect whether a cloud font name displayed in the font selection drop-down menu is selected after displaying the received preset number of font information in the font selection drop-down menu in the document editing tool menu bar;
a fourth sending module (not shown in the figure), configured to send, to the cloud server, a request for obtaining font data corresponding to the cloud font name when detecting that the cloud font name displayed in the font selection pull-down menu is selected;
a fourth receiving module (not shown in the figure), configured to receive font data corresponding to the cloud font name sent by the cloud server;
and the storage module (not shown in the figure) is used for storing the acquired font data corresponding to the cloud font name.
By applying the embodiment shown in fig. 9, a request for obtaining the font information of the cloud end is sent, and the font information of the preset number randomly obtained by the cloud end server is received and displayed. When the user selects the font, the font can be selected from the currently displayed preset number of font information, and the range of the font selected by the user is narrowed. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
Further, corresponding to the method embodiment shown in fig. 7, an embodiment of the present invention further provides a schematic structural diagram that the display device for cloud fonts is applied to a cloud server in communication connection with the client, as shown in fig. 10. The apparatus may include:
a fourth receiving module 1001, configured to receive a request for obtaining cloud font information; the request is as follows: a request for acquiring cloud font information is sent by a client;
the obtaining module 1002 is configured to randomly obtain font information of a preset number of fonts in a cloud font library;
the issuing module 1003 is configured to issue the acquired font information of the preset number of fonts to the client.
By applying the embodiment shown in fig. 10, a request for obtaining the cloud font information is received, and the preset number of types of font information is randomly obtained and sent to the client, so that when the user selects a font, the user selects from the randomly obtained preset number of types of font information, and the font selection range is narrowed. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
The embodiment of the present invention further provides a client, as shown in fig. 11, including a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, where the processor 1101, the communication interface 1102 and the memory 1103 complete mutual communication through the communication bus 1104,
a memory 1103 for storing a computer program;
the processor 1101 is configured to implement the following steps when executing the program stored in the memory 1103:
sending a request for acquiring cloud font information;
receiving font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
and displaying the received preset number of font information for the user to select.
Therefore, in the scheme provided by the embodiment of the invention, the request for obtaining the font information of the cloud end is sent, and the font information of the preset number randomly obtained by the cloud end server is received and displayed. When the user selects the font, the font can be selected from the currently displayed preset number of font information, and the range of the font selected by the user is narrowed. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
The embodiment of the present invention further provides a cloud server, as shown in fig. 12, including a processor 1201, a communication interface 1202, a memory 1203, and a communication bus 1204, where the processor 1201, the communication interface 1202, and the memory 1203 complete mutual communication through the communication bus 1204,
a memory 1203 for storing a computer program;
the processor 1201 is configured to implement the following steps when executing the program stored in the memory 1203:
receiving a request for acquiring cloud font information; the request is as follows: the method comprises the steps that after a client detects that a font display switching button is selected, a request for obtaining cloud font information is sent;
randomly acquiring font information of a preset number of fonts in a cloud font library;
and sending the acquired font information of the preset number of fonts to the client.
Therefore, in the scheme provided by the embodiment of the invention, the request for obtaining the cloud font information is received, the preset number of types of font information is randomly obtained, and the information is issued to the client, so that the user can select from the randomly obtained preset number of types of font information when selecting the font, and the font selection range is narrowed. Therefore, the interest of the user in selecting the fonts is improved, and the user experience is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, there is also provided a computer-readable storage medium, having stored therein instructions, which when run on a computer, cause the computer to execute the cloud font display method described in any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the cloud font display method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, the device embodiment and the computer storage medium embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (21)
1. The method for displaying the cloud fonts is applied to a client side in communication connection with a cloud server, and comprises the following steps:
sending a request for acquiring cloud font information;
receiving font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
and displaying the received preset number of font information for the user to select.
2. The method of claim 1, prior to the step of sending the request for cloud font information, further comprising:
detecting whether a font selection button in a menu bar of a document editing tool is selected; and if so, executing the step of sending the request for obtaining the cloud font information.
3. The method of claim 1,
the step of displaying the received preset number of font information for the user to select comprises:
the received font information of the preset number of types is displayed in a font selection drop-down menu in a menu bar of the document editing tool.
4. The method of claim 3,
after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar, the method further comprises:
detecting whether a cloud font display switching button in a font selection pull-down menu is selected;
if yes, sending a request for acquiring font information of a preset number of fonts in the cloud font library to the cloud server;
receiving font information of a preset number of fonts sent by the cloud server;
and displaying the font information of the preset number of fonts to a font selection pull-down menu in a menu bar of the document editing tool.
5. The method of claim 3,
after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar, the method further comprises:
detecting whether more cloud font buttons are selected or not in a font selection pull-down menu;
if yes, sending a request for acquiring font information of all fonts in the cloud font library to the cloud server;
receiving font information of all fonts sent by the cloud server;
generating a bullet frame for displaying font information;
and adding the font information paging of all the fonts into the bullet frame for displaying.
6. The method of claim 3,
after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar, the method further comprises:
detecting whether the cloud font name displayed in the font selection pull-down menu is selected;
if so, sending a request for acquiring font data corresponding to the cloud font name to the cloud server;
receiving font data corresponding to the cloud font name issued by the cloud server;
and storing the acquired font data corresponding to the cloud font name.
7. The method for displaying the cloud fonts is applied to a cloud server in communication connection with a client, and comprises the following steps:
receiving a request for acquiring cloud font information; the request is as follows: a request for acquiring cloud font information is sent by a client;
randomly acquiring font information of a preset number of fonts in a cloud font library;
and sending the acquired font information of the preset number of fonts to the client.
8. The method of claim 7,
numbering each font in the cloud font library; each font corresponds to a number;
the step of randomly acquiring font information of a preset number of fonts in the cloud font library comprises the following steps: randomly acquiring a preset number of numbers, and determining fonts corresponding to the preset number of numbers as randomly acquired preset number of fonts;
and obtaining the font information of the preset number of fonts to obtain the preset number of font information.
9. The method of claim 7, further comprising:
receiving a request for acquiring font information of a preset number of fonts in the cloud font library; the request is as follows: after detecting that the cloud font display switching button in the font selection pull-down menu is selected, the client sends a request for acquiring font information of a preset number of fonts in the cloud font library;
acquiring font information of a preset number of fonts in a cloud font library;
and sending the acquired font information of the preset number of fonts to the client.
10. The method of claim 7, further comprising:
receiving a request for acquiring font information of all fonts in the cloud font library; the request is as follows: after detecting that more cloud font buttons in the font selection pull-down menu are selected, the client sends a request for acquiring font information of all fonts in the cloud font library;
acquiring font information of all fonts in a cloud font library;
and sending the acquired font information of all the fonts to the client.
11. The method of claim 7,
the method further comprises the following steps:
receiving a request for acquiring font data corresponding to the cloud font name; the request is as follows: after detecting that the cloud font name displayed in the font selection pull-down menu is selected, the client sends a request for acquiring font data corresponding to the cloud font name;
acquiring font data corresponding to the cloud font name in a cloud font library;
and issuing the acquired font data to a client.
12. The utility model provides a display device of cloud typeface, its characterized in that is applied to the client with high in the clouds server communication connection, the device includes:
the first sending module is used for sending a request for obtaining the cloud font information;
the first receiving module is used for receiving font information of a preset number of fonts sent by the cloud server; the preset number of fonts is as follows: the cloud server randomly acquires fonts from a cloud font library;
and the first display module is used for displaying the received preset number of font information for the user to select.
13. The apparatus of claim 12, further comprising:
the system comprises a first detection module, a second detection module and a display module, wherein the first detection module is used for detecting whether a font selection button in a menu bar of a document editing tool is selected or not before a request for acquiring cloud font information is sent; if yes, triggering the first sending module to send a request for obtaining the cloud font information.
14. The apparatus of claim 12,
the first display module is specifically configured to display the received preset number of font information in a font selection pull-down menu in a menu bar of the document editing tool.
15. The apparatus of claim 14, further comprising:
the second detection module is used for detecting whether a cloud font display switching button in a font selection pull-down menu is selected or not after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar;
the second sending module is used for sending a request for acquiring font information of a preset number of fonts in the cloud font library to the cloud server when detecting that a cloud font display switching button in a font selection pull-down menu is selected;
the second receiving module is used for receiving font information of a preset number of fonts sent by the cloud server;
and the second display module is used for displaying the font information of the preset number of fonts to a font selection pull-down menu in a menu bar of the document editing tool.
16. The apparatus of claim 14, further comprising:
the third detection module is used for detecting whether more cloud font buttons are selected or not in the font selection pull-down menu after the step of displaying the received preset number of font information in the font selection pull-down menu in the document editing tool menu bar;
the third sending module is used for sending a request for acquiring font information of all fonts in the cloud font library to the cloud server after detecting that more cloud font buttons are selected in the font selection pull-down menu;
the third receiving module is used for receiving font information of all fonts sent by the cloud server;
the generating module is used for generating a bullet frame for displaying font information;
and the third display module is used for adding the font information pages of all the fonts into the bullet frame for display.
17. The apparatus of claim 14, further comprising:
the fourth detection module is used for detecting whether the cloud font name displayed in the font selection pull-down menu is selected or not after the received preset number of font information is displayed in the font selection pull-down menu in the document editing tool menu bar;
the fourth sending module is used for sending a request for obtaining font data corresponding to the cloud font name to the cloud server when detecting that the cloud font name displayed in the font selection pull-down menu is selected;
the fourth receiving module is used for receiving font data corresponding to the cloud font name issued by the cloud server;
and the storage module is used for storing the acquired font data corresponding to the cloud font name.
18. The utility model provides a display device of cloud typeface, its characterized in that is applied to the high in the clouds server with client communication connection, the device includes:
the request receiving module is used for receiving a request for acquiring the cloud font information; the request is as follows: a request for acquiring cloud font information is sent by a client;
the acquisition module is used for randomly acquiring font information of a preset number of fonts in the cloud font library;
and the issuing module is used for issuing the acquired font information of the preset number of fonts to the client.
19. The client is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are used for completing mutual communication through the communication bus;
the memory is used for storing a computer program;
the communication interface is used for connecting a cloud server;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-6.
20. The cloud server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the communication interface is used for connecting a client;
the processor, when executing the program stored in the memory, is configured to perform the method steps of any of claims 7-11.
21. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any of the claims 1-6 or claims 7-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811358187.7A CN111259621B (en) | 2018-11-15 | 2018-11-15 | Cloud font display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811358187.7A CN111259621B (en) | 2018-11-15 | 2018-11-15 | Cloud font display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111259621A true CN111259621A (en) | 2020-06-09 |
CN111259621B CN111259621B (en) | 2024-03-22 |
Family
ID=70950085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811358187.7A Active CN111259621B (en) | 2018-11-15 | 2018-11-15 | Cloud font display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111259621B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102629917A (en) * | 2012-03-15 | 2012-08-08 | 齐凡 | Personalized information transmission method and transmission system |
CN102662920A (en) * | 2012-03-15 | 2012-09-12 | 齐凡 | Method and system for transmitting text |
US20160078004A1 (en) * | 2014-09-15 | 2016-03-17 | Oracle International Corporation | System independent font rendering |
-
2018
- 2018-11-15 CN CN201811358187.7A patent/CN111259621B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102629917A (en) * | 2012-03-15 | 2012-08-08 | 齐凡 | Personalized information transmission method and transmission system |
CN102662920A (en) * | 2012-03-15 | 2012-09-12 | 齐凡 | Method and system for transmitting text |
US20160078004A1 (en) * | 2014-09-15 | 2016-03-17 | Oracle International Corporation | System independent font rendering |
Also Published As
Publication number | Publication date |
---|---|
CN111259621B (en) | 2024-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107729475B (en) | Webpage element acquisition method, device, terminal and computer-readable storage medium | |
CN104899220B (en) | Application program recommendation method and system | |
CN111414727B (en) | Editing method and device for PDF document header footer and electronic equipment | |
CN112464130B (en) | Drop-down selection box input method, device, equipment and medium | |
CN104991930A (en) | Webpage information sharing method and apparatus | |
CN111124211A (en) | Data display method and device and electronic equipment | |
CN103838486A (en) | Operation method and terminal for terminal display page | |
CN112052368A (en) | Method, system, storage medium and electronic device for automatically extracting list data | |
CN110750958A (en) | Text display method and device, electronic equipment and medium | |
CN107450809B (en) | Page interaction method and device and electronic terminal | |
CN112052647B (en) | Document editing method and device, electronic equipment and readable storage medium | |
CN108268298B (en) | Desktop icon generation method and device, storage medium and electronic equipment | |
CN111367606A (en) | Application page display method, device, terminal and medium | |
CN111259621A (en) | Cloud font display method and device and electronic equipment | |
CN111199137A (en) | Cloud font loading method and device and electronic equipment | |
CN112783400B (en) | Document content selection method and device, electronic equipment and storage medium | |
CN110728113A (en) | Information screening method and device of electronic forms and terminal equipment | |
CN112784552B (en) | Table editing method and apparatus | |
CN108804195B (en) | Page display method and device, server and client | |
CN111596828A (en) | Cookie synchronization method, device and computer readable storage medium | |
CN111506185B (en) | Method, device, electronic equipment and storage medium for operating document | |
CN110889279B (en) | Method and device for displaying display information in document | |
CN112001988A (en) | Animation effect generation method and device | |
CN112765517A (en) | Page generation method and device and electronic equipment | |
CN112784527A (en) | Document merging method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |