[go: up one dir, main page]

CN109814977B - Character display method and device, computing equipment and storage medium - Google Patents

Character display method and device, computing equipment and storage medium Download PDF

Info

Publication number
CN109814977B
CN109814977B CN201910107968.7A CN201910107968A CN109814977B CN 109814977 B CN109814977 B CN 109814977B CN 201910107968 A CN201910107968 A CN 201910107968A CN 109814977 B CN109814977 B CN 109814977B
Authority
CN
China
Prior art keywords
display area
background
character
data
text
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.)
Active
Application number
CN201910107968.7A
Other languages
Chinese (zh)
Other versions
CN109814977A (en
Inventor
杨皓明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Xishanju Digital Technology Co ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Xishanju Digital Technology Co ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Xishanju Digital Technology Co ltd, Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Xishanju Digital Technology Co ltd
Priority to CN201910107968.7A priority Critical patent/CN109814977B/en
Publication of CN109814977A publication Critical patent/CN109814977A/en
Application granted granted Critical
Publication of CN109814977B publication Critical patent/CN109814977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present specification provides a text display method, a text display apparatus, a computing device, and a storage medium, wherein the text display method includes: creating a background layer and a character layer for character data to be displayed, wherein the background layer comprises a background display area and a background preparation area outside the background display area, the character layer comprises a character display area for displaying the character data, and the background display area and the character display area are overlapped; and the character display area and the background display area are overlapped and then stored as a frame of overlapped data, and the frame of overlapped data is output to the display equipment for displaying, wherein the character data of the character display area is displayed in a transparent mode, and the part of the background display area corresponding to the character data is displayed in the character display area.

Description

Character display method and device, computing equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a text display method and apparatus, a computing device, and a storage medium.
Background
The existing method for making the characters with the gradually changed colors in the webpage is basically that the characters with the gradually changed colors are directly hung in the webpage after the colors are processed by related picture processing software, and the colors are fixed and cannot be changed. The function can also be realized when the animation-supporting picture format, namely the image interchange format, is generated by using related picture processing software and then is mounted in a webpage, and because the image interchange format file can only contain 256 colors at most, when the effect of large color quantity, namely the gradual color change, is realized, a large number of due colors can be lost, and the final effect has a large number of color blocks, so that the requirement cannot be met. In addition, another word making method is to make a table of a cascading style in the hypertext markup language, but this method is difficult to realize the generation of color-changing colored words, and finally needs a huge workload, and once the color and the color-changing rhythm and mode need to be changed, a great cost is generated.
Disclosure of Invention
In view of this, embodiments of the present specification provide a text display method, a text display apparatus, a computing device, and a storage medium, so as to solve technical defects in the prior art.
According to a first aspect of embodiments of the present specification, there is provided a text display method including:
creating a background layer and a character layer for character data to be displayed, wherein the background layer comprises a background display area and a background preparation area outside the background display area, the character layer comprises a character display area for displaying the character data, and the background display area and the character display area are overlapped;
and the character display area and the background display area are overlapped and then stored as a frame of overlapped data, and the frame of overlapped data is output to the display equipment for displaying, wherein the character data of the character display area is displayed in a transparent mode, and the part of the background display area corresponding to the character data is displayed in the character display area.
Optionally, the text display method further includes:
controlling the background layer to move relative to the character layer, overlapping the background display area with the character display area to obtain another frame of overlapped data, and outputting the overlapped data to the display equipment for displaying;
continuously and circularly moving the background display area and the background preparation area relative to the character layer, and acquiring a frame of superposed data generated by superposing the background display area and the character display area each time;
and outputting the superposed data to the display equipment for display.
Optionally, the controlling the background layer to move relative to the text layer includes:
and controlling the background layer to move according to a preset moving speed or a preset moving mode.
Optionally, the outputting the overlay data to the display device for display includes:
adjusting the style and layout of the character data in the superimposed data on the display equipment by using a cascading style sheet;
and displaying the adjusted text data on the display equipment.
Optionally, the creating a background layer for the text data to be displayed includes:
creating a background layer for the character data to be displayed according to a preset color change rule;
the preset color change rule comprises: and (5) color gradient rules.
Optionally, the color gradient rule comprises a change in color from dark to light or a change in color from light to dark.
According to a second aspect of embodiments herein, there is provided a text display device including:
the text display device comprises a creating module, a display module and a display module, wherein the creating module is configured to create a background layer and a text layer for text data to be displayed, the background layer comprises a background display area and a background preparation area outside the background display area, the text layer comprises a text display area for displaying the text data, and the background display area and the text display area are overlapped;
the first display module is configured to store the character display area and a background display area as a frame of superimposed data after being superimposed, and output the frame of superimposed data to the display device for display, wherein the character data of the character display area is displayed in a transparent manner, and a part of the background display area corresponding to the character data is displayed in the character display area.
Optionally, the text display device further comprises:
the moving module is configured to control the background layer to move relative to the character layer, the background display area is overlapped with the character display area, another frame of overlapped data is obtained, and the overlapped data is output to the display equipment to be displayed;
the control module is configured to move the background display area and the background preparation area relative to the character layer continuously and circularly, and acquire a frame of superposed data generated by superposing the background display area and the character display area each time;
a second display module configured to output the overlay data to the display device for display.
Optionally, the moving module is further configured to:
and controlling the background layer to move according to a preset moving speed or a preset moving mode.
Optionally, the second display module comprises:
the adjustment sub-module is configured to adjust the style and the layout of the character data in the overlapped data on the display device by using a cascading style sheet;
and the display sub-module is configured to display the adjusted text data on the display device.
Optionally, the creation module is further configured to:
creating a background layer for the character data to be displayed according to a preset color change rule;
the preset color change rule comprises: and (5) color gradient rules.
Optionally, the color gradient rule comprises a change in color from dark to light or a change in color from light to dark.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the text display method when executing the instructions.
According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the text display method.
In the embodiment of the specification, a background layer and a text layer are created for text data to be displayed, the background layer comprises a background display area and a background preparation area outside the background display area, the text layer comprises a text display area for displaying the text data, the background display area and the text display area are overlapped, the text display area and the background display area are overlapped and then stored as a frame of overlapped data, the frame of overlapped data is output to the display equipment for displaying, the text data in the text display area is displayed in a transparent mode, and the background display area and the text data corresponding part are displayed in the text display area; the background layer is arranged, so that the desired character visual effect can be obtained, simplicity and practicability are realized, the finally obtained character display effect of continuous cyclic color change is excellent, and the application scene is wide.
Drawings
FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;
FIG. 2 is a flow chart of a text display method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a text display method according to an embodiment of the present application;
fig. 4 (a) is a schematic structural diagram of a text layer in a text display method according to an embodiment of the present application;
fig. 4 (b) is a schematic structural diagram of a background layer in the text display method provided in the embodiment of the present application;
fig. 4 (c) is a schematic structural diagram of a text layer and a background layer in the text display method according to the embodiment of the present application after superposition;
fig. 5 (a) is a schematic structural diagram of a color changing process of a character in a character display method provided in an embodiment of the present application;
fig. 5 (b) is a schematic structural diagram of a final display effect in the text display method according to the embodiment of the present application;
fig. 6 is a schematic structural diagram of a text display device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit and scope of this application, and thus this application is not limited to the specific implementations disclosed below.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can be termed a second and, similarly, a second can be termed a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
Cascading Style Sheets (CSS: cascading Style Sheets): is a computer language used to represent file styles such as HTML (an application of standard universal markup language) or XML (a subset of standard universal markup language). The cascading style sheet not only can statically modify the webpage, but also can dynamically format each element of the webpage in cooperation with various scripting languages; the cascading style sheet can accurately control the typesetting of element positions in the webpage in a pixel level, supports almost all font and size styles and has the capability of editing webpage objects and model styles.
In the present application, a text display method, a text display apparatus, a computing device and a storage medium are provided, which are described in detail in the following embodiments one by one.
Fig. 1 is a block diagram illustrating a configuration of a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 100 and other components not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
The processor 120 may execute the steps in the text display method shown in fig. 2. Fig. 2 is a flowchart illustrating a text display method according to an embodiment of the present disclosure, including step 202 to step 204.
Step 202: the method comprises the steps of creating a background layer and a character layer for character data to be displayed, wherein the background layer comprises a background display area and a background preparation area outside the background display area, the character layer comprises a character display area for displaying the character data, and the background display area and the character display area are overlapped.
In one or more embodiments of the present specification, the creating a background layer for the text data to be displayed includes:
creating a background layer for the character data to be displayed according to a preset color change rule;
the preset color change rule comprises: and (5) color gradient rules.
In one or more embodiments of the present disclosure, the color gradient rule includes a change in color from dark to light or a change in color from light to dark.
Specifically, the background layer includes a background display area and a background preparation area, where the background preparation area may be an area to be overlapped with the text display area, the background layer may be created by changing according to a preset rule, and may be created by gradually changing a color from a dark color to a light color, or gradually changing a color from a light color to a dark color, and a change rule of the color may be set according to an actual application, which is not limited herein.
In practical application, the text display area may be a text picture with a hollowed target text, and the background display area is a gradient picture with a color from a dark color to a light color, wherein the gradient picture of the background display area is provided with an initial position, the initial position of the gradient picture of the background display area is overlapped with the text picture of the text display area, and the overlapped part is an area to be displayed.
Step 204: and overlapping the text display area and the background display area, storing the overlapped text display area and the background display area as a frame of overlapped data, and outputting the frame of overlapped data to the display equipment for displaying, wherein the text data in the text display area is displayed in a transparent mode, and the part of the background display area corresponding to the text data is displayed in the text display area.
In one or more embodiments of the present specification, the text display method further includes:
controlling the background layer to move relative to the character layer, overlapping the background display area with the character display area to obtain another frame of overlapped data, and outputting the overlapped data to the display equipment for displaying;
continuously and circularly moving the background display area and the background preparation area relative to the character layer, and acquiring a frame of superposed data generated by superposing the background display area and the character display area each time;
and outputting the superposed data to the display equipment for display.
Specifically, the background display area may be provided with a position complex value, after the background display area and the text display area are superimposed, superimposed data of each frame is output to a display device for display, when the background display area moves relative to the text layer to reach the position complex value, the background display area will not have a superimposed portion with the text display area, the background display area is superimposed with the text display area again from an initial position according to the set position complex value, a frame of superimposed data is output to the display device for display, and the text in the text display area keeps changing color all the time, and the situation that the text in the middle does not display color does not occur.
It should be noted that, the color of the background display area may be set at will according to the needs of the actual application, and this specification is not limited at all.
In one or more embodiments of the present specification, the controlling the background layer to move relative to the text layer includes:
and controlling the background layer to move according to a preset moving speed or a preset moving mode.
Specifically, the moving speed of the background layer may be set according to a requirement, the moving mode of the background layer may be moving from left to right relative to the text layer, or moving from top to bottom, and the moving mode may be set according to a display effect required in an actual application, which is not limited herein.
In one or more embodiments of the present specification, the outputting the overlay data to the display device for displaying includes:
adjusting the style and layout of the character data in the superimposed data on the display equipment by using a cascading style sheet;
and displaying the adjusted text data on the display equipment.
In practical application, the text display area and the background display area are overlapped to output one frame of data to a display device, the background display area further comprises a partial area outside the background display area, the partial area outside the background display area cannot appear on the display device, the partial area outside the background display area is adjusted through a cascading style sheet, the partial area outside the adjusted background display area is hidden, and the display device cannot display other data information except text data in the overlapped data.
It should be noted that the style and distribution of the cascading style sheet when adjusting the text data in the stacked data are adjusted according to the set requirement, and the text data can be adjusted according to the required style, for example, only the text data is displayed or the text data is surrounded by a frame can be adjusted by the cascading style sheet.
In one or more embodiments of the present specification, a background layer and a text layer are created for text data to be displayed, where the background layer includes a background display area and a background preparation area outside the background display area, the text layer includes a text display area for displaying the text data, an area where the background display area overlaps with the text display area is present, the text display area and the background display area are overlapped and stored as a frame of overlapped data, and the frame of overlapped data is output to the display device for display, where the text data in the text display area is displayed in a transparent manner, and a portion of the background display area corresponding to the text data is displayed in the text display area; the background layer is arranged, the desired visual effect of the characters can be obtained, the color of the character display area can be slowly and continuously changed, the method is simple and feasible, the finally obtained continuous and cyclic color change characters have excellent display effect, the colors of the characters can be periodically circulated, and the application scene is wide.
Fig. 3 is a diagram illustrating a text display method according to an embodiment of the present specification, which is described by exemplifying text color gradient, and includes steps 302 to 312.
Step 302: and creating a background layer and a text layer for the target text data to be displayed.
Specifically, a background layer and a character layer are created for target character data to be displayed, the background layer comprises a background display area and a background preparation area outside the background display area, the character layer comprises a character display area, the background display area and the character display area are overlapped, color bars of the background display area are set according to the sequence from dark color to light color, and the target characters in the character display area are hollow non-colored characters.
Referring to fig. 4 (a), it is a schematic diagram of a text layer created for a target text to be displayed, which includes a text display area of the target text to be displayed.
Referring to fig. 4 (b), it is a schematic diagram of a background layer created for the target text to be displayed, which includes a background display area and a background preparation area.
Referring to fig. 4 (c), it is a schematic diagram of the background display area overlapping with the text display area, wherein the target text has not yet started to change color.
Step 304: and setting the moving mode of the background layer.
Specifically, the background layer is set to move leftwards relative to the text layer according to the requirement, and the moving speed is slow.
Step 306: and acquiring a frame of superposed data after the background display area and the character display area are superposed.
Referring to fig. 5 (a), the background display area is moved to the left relative to the text display area of the target text data according to a set moving mode, the color of the text display area of the target text data changes according to the color of the background display area, and the color of the target text gradually changes from dark color to light color.
Step 308: the background display area continuously moves, and each frame of superposed data generated in the moving process is obtained.
Referring to fig. 5 (a), the background display area continuously moves to the left relative to the target text, wherein when the position change is a, the target text and the background display area start to be overlapped to generate first overlapped data of the current frame, and according to the preset moving speed of the background display area, after a set time t, the background display area moves to the left, when the position change is B, the target text and the background display area are overlapped to generate second overlapped data of the current frame, after the time t, the background display area moves to the left, and when the position change is C, the target text and the background display area are overlapped to generate third overlapped data of the current frame.
The color of the target character gradually changes to light color according to the color of a background display area, wherein the background display area is provided with a position complex value, the background display area reaches the position complex value when the background display area moves to the position with respect to the target character and changes to C, if the background display area moves, the target character loses color, the background display area is overlapped with the target character from the initial position again according to the set position complex value, the positions of the background display area and the target character change to A again, overlapped data are obtained again, the background display area can continuously move relative to the target character, and when the background display area moves to the position complex value, the background display area starts to move again from the initial position again to enable the color of the target character to continuously change.
Step 310: and adjusting the pattern and distribution of each frame of superposed data on the display device by using the cascading pattern table.
Step 312: and outputting each frame of the adjusted superposed data to display equipment for displaying.
Referring to fig. 5 (B), the background display area continuously moves to the left relative to the target text, wherein when the position change is a, the target text and the background display area start to be overlapped to generate first overlapped data of the current frame, after a preset time t according to the moving speed of the background display area, the background display area moves to the left, when the position change is B, the target text and the background display area are overlapped to generate second overlapped data of the current frame, after the time t, the background display area moves to the left, and when the position change is C, the target text and the background display area are overlapped to generate third overlapped data of the current frame. And adjusting the first superposition data, the second superposition data and the third superposition data according to a cascading style sheet to hide a background preparation area in a background layer, wherein only the color of the characters displayed on display equipment is gradually changed, the rest parts are hidden through the cascading style sheet, and the display effect of the target characters is that the color is gradually changed from deep color to light color, and the color of the target characters is periodically and circularly changed.
In one or more embodiments of the present specification, a background layer and a text layer are created for text data to be displayed, where the background layer includes a background display area and a background preparation area outside the background display area, the text layer includes a text display area for displaying the text data, and there is an overlapping area between the background display area and the text display area, the text display area and the background display area are overlapped and then stored as a frame of overlapped data, and the frame of overlapped data is output to the display device for display, where the text data in the text display area is displayed in a transparent manner, and a part of the background display area corresponding to the text data is displayed in the text display area; the background layer is arranged, a desired character visual effect can be obtained, the color of the character display area can be changed slowly and continuously, the method is simple and easy to implement, the finally obtained character with continuous color change in a circulating mode has an excellent display effect, the character color can be periodically circulated, and the application scene is wide.
Corresponding to the above method embodiment, this specification further provides a text display device embodiment, and fig. 6 shows a schematic structural diagram of the text display device according to an embodiment of this specification. As shown in fig. 6, the apparatus 600 includes:
a creating module 602 configured to create a background layer and a text layer for text data to be displayed, where the background layer includes a background display area and a background preparation area outside the background display area, the text layer includes a text display area for displaying the text data, and there is an overlapping area between the background display area and the text display area;
a first display module 604, configured to store the text display area and a background display area as a frame of superimposed data after superimposing them, and output the frame of superimposed data to the display device for displaying, where the text data in the text display area is displayed in a transparent manner, and a portion of the background display area corresponding to the text data is displayed in the text display area.
In an optional embodiment, the text display device further comprises:
the moving module is configured to control the background layer to move relative to the character layer, the background display area is overlapped with the character display area, another frame of overlapped data is obtained, and the overlapped data is output to the display equipment to be displayed;
the control module is configured to move the background display area and the background preparation area relative to the character layer continuously and circularly, and acquire a frame of superposed data generated by superposing the background display area and the character display area each time;
a second display module configured to output the overlay data to the display device for display.
In an optional embodiment, the moving module is further configured to:
and controlling the background layer to move according to a preset moving speed or a preset moving mode.
In an alternative embodiment, the second display module includes:
the adjustment sub-module is configured to adjust the style and the layout of the character data in the overlapped data on the display device by using a cascading style sheet;
and the display sub-module is configured to display the adjusted text data on the display device.
In an optional embodiment, the creating module 602 is further configured to:
creating a background layer for the character data to be displayed according to a preset color change rule;
the preset color change rule comprises: and (5) color gradient rules.
In an alternative embodiment, the color gradient rule comprises a change in color from dark to light or a change in color from light to dark.
In the embodiment of the specification, a background layer and a text layer are created for text data to be displayed, the background layer comprises a background display area and a background preparation area outside the background display area, the text layer comprises a text display area for displaying the text data, the background display area and the text display area are overlapped, the text display area and the background display area are overlapped and then stored as a frame of overlapped data, the frame of overlapped data is output to the display equipment for displaying, the text data in the text display area is displayed in a transparent mode, and the background display area and the text data corresponding part are displayed in the text display area; the background layer is arranged, the desired character visual effect can be obtained, the method is simple and easy to implement, the finally obtained character display effect of continuous cyclic color change is excellent, and the application scene is wide.
One or more embodiments of the present specification also provide a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the text display method when executing the instructions.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, and the instructions, when executed by a processor, implement the steps of the text display method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned text display method, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the above-mentioned text display method.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently considered to be preferred embodiments and that acts and modules are not required in the present application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (14)

1. A method for displaying text, comprising:
creating a background layer and a character layer for character data to be displayed, wherein the background layer comprises a background display area and a background preparation area outside the background display area, the character layer comprises a character display area for displaying the character data, and the background display area and the character display area are overlapped;
and storing the character display area and the background display area as a frame of superimposed data after superimposing, wherein the background display area continuously moves, each frame of superimposed data generated in the moving process is acquired, and is output to display equipment for displaying, the character data of the character display area is displayed in a transparent mode, the background display area and the part corresponding to the character data are displayed in the character display area, the background display area is provided with a position complex value, and when the background display area moves relative to the character layer to reach the position complex value, the background display area is superimposed with the character display area again from an initial position according to the set position complex value, and a frame of data after superimposing is output to the display equipment for displaying.
2. The text display method according to claim 1, further comprising:
controlling the background layer to move relative to the character layer, overlapping the background display area with the character display area to obtain another frame of overlapped data, and outputting the overlapped data to the display equipment for displaying;
continuously and circularly moving the background display area and the background preparation area relative to the character layer, and acquiring a frame of superposed data generated by superposing the background display area and the character display area each time;
and outputting the superposed data to the display equipment for display.
3. The text display method of claim 2, wherein the controlling the background layer to move relative to the text layer comprises:
and controlling the background layer to move according to a preset moving speed or a preset moving mode.
4. The text display method of claim 2, wherein outputting the overlay data to the display device for display comprises:
adjusting the style and layout of the character data in the superimposed data on the display equipment by using a cascading style sheet;
and displaying the adjusted text data on the display equipment.
5. The text display method according to claim 1, wherein the creating a background layer for the text data to be displayed comprises:
creating a background layer for the character data to be displayed according to a preset color change rule;
the preset color change rule comprises: and (5) color gradient rules.
6. The text display method according to claim 5, wherein the color gradation rule includes a change in color from a dark color to a light color or a change in color from a light color to a dark color.
7. A text display device, comprising:
the text display device comprises a creating module, a display module and a display module, wherein the creating module is configured to create a background layer and a text layer for text data to be displayed, the background layer comprises a background display area and a background preparation area outside the background display area, the text layer comprises a text display area for displaying the text data, and the background display area and the text display area are overlapped;
the first display module is configured to store the character display area and a background display area as one frame of superimposed data after being superimposed, the background display area continuously moves, each frame of superimposed data generated in the moving process is acquired, and is output to display equipment for displaying, wherein the character data of the character display area is displayed in a transparent mode, a part, corresponding to the character data, of the background display area is displayed in the character display area, a position complex value is set in the background display area, and when the background display area moves relative to the character layer to reach the position complex value, the background display area is superimposed with the character display area again from an initial position according to the set position complex value, and a frame of data after being superimposed is output to the display equipment for displaying.
8. The text display device of claim 7, further comprising:
the moving module is configured to control the background layer to move relative to the character layer, the background display area is overlapped with the character display area, another frame of overlapped data is obtained, and the overlapped data is output to the display equipment to be displayed;
the control module is configured to move the background display area and the background preparation area relative to the character layer continuously and circularly, and acquire a frame of superposed data generated by superposing the background display area and the character display area each time;
a second display module configured to output the overlay data to the display device for display.
9. The text display device of claim 8, wherein the movement module is further configured to:
and controlling the background layer to move according to a preset moving speed or a preset moving mode.
10. The text display device of claim 8, wherein the second display module comprises:
the adjustment sub-module is configured to adjust the style and the layout of the character data in the overlapped data on the display device by using a cascading style sheet;
and the display sub-module is configured to display the adjusted text data on the display equipment.
11. The text display device of claim 7, wherein the creation module is further configured to:
creating a background layer for the character data to be displayed according to a preset color change rule;
the preset color change rule comprises: and (5) color gradient rules.
12. The text display device of claim 11, wherein the color gradient rule comprises a change in color from dark to light or a change in color from light to dark.
13. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any of claims 1-6 when executing the instructions.
14. A computer-readable storage medium, characterized in that it stores computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1-6.
CN201910107968.7A 2019-02-02 2019-02-02 Character display method and device, computing equipment and storage medium Active CN109814977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910107968.7A CN109814977B (en) 2019-02-02 2019-02-02 Character display method and device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910107968.7A CN109814977B (en) 2019-02-02 2019-02-02 Character display method and device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109814977A CN109814977A (en) 2019-05-28
CN109814977B true CN109814977B (en) 2022-10-14

Family

ID=66605243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910107968.7A Active CN109814977B (en) 2019-02-02 2019-02-02 Character display method and device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109814977B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116643831B (en) * 2023-07-27 2023-10-13 城云科技(中国)有限公司 Optimization method and device for Canvas drawing overlapped characters and application of optimization method and device
CN118605783B (en) * 2024-08-08 2024-11-26 浙江中控信息产业股份有限公司 A method, system, device and medium for optimizing dynamic text display in three-dimensional visualization

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550281A (en) * 2016-11-01 2017-03-29 广州视源电子科技股份有限公司 Shadow caption generation method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566952B (en) * 2010-12-20 2014-11-26 福建星网视易信息系统有限公司 Display system and display method applied to embedded digital entertainment on-demand system
CN106326895B (en) * 2015-06-16 2020-07-07 富士通株式会社 Image processing device and image processing method
JP6801003B2 (en) * 2016-01-18 2020-12-16 ウェーヴシフト・エルエルシー Evaluation and reduction of myopia generation effect of electronic display
CN105957125B (en) * 2016-05-20 2019-02-22 Oppo广东移动通信有限公司 Icon and character processing method and mobile terminal
CN106713661B (en) * 2017-01-19 2019-10-25 努比亚技术有限公司 A kind of mobile terminal and the method for showing text

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550281A (en) * 2016-11-01 2017-03-29 广州视源电子科技股份有限公司 Shadow caption generation method and device

Also Published As

Publication number Publication date
CN109814977A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN113344633B (en) Advertisement picture processing method and device
CN106681706A (en) Application progress processing method and terminal
CN109814977B (en) Character display method and device, computing equipment and storage medium
CN110516186A (en) Page skeleton automatic generating method, equipment, storage medium and device
CN113282863B (en) Service page generation method and device
CN103065338A (en) Method and device providing shadow for foreground image in background image
CN113050939A (en) Page generation method and device
CN113209614A (en) Virtual character control method and device
CN108288296B (en) Digital image coloring method and batch coloring method for digitally published pictures
CN109529349B (en) Image drawing method and device, computing equipment and storage medium
JP4197313B2 (en) Text editing method, program for executing text editing method, and text editing system
CN107862054A (en) A kind of pattern rendering intent
CN105373565B (en) web page processing method and device
CN110975284A (en) Unity-based NGUI resource rendering processing method and device
CN110548290B (en) Image-text mixed arrangement method and device, electronic equipment and storage medium
CN113127126B (en) Object display method and device
JP2006113910A5 (en)
CN114067028A (en) Image editing method and device
CN114428931B (en) Page processing method and device
CN111617470B (en) Interface special effect rendering method and device
CN114491097A (en) Method, device and equipment for converting webpage into presentation PPT
Eşanu Escape the Landscape
CN113064530A (en) Image processing method and device
CN113676765A (en) Interactive animation display method and device
CN113209621A (en) Virtual role control method and device, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Applicant after: Zhuhai Xishanju Digital Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Applicant before: ZHUHAI SEASUN MOBILE GAME TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant