Text program display method and device of LED display screen, equipment, medium and product
By drawing and issuing picture information to control the LED display screen in the text program display method of the LED display screen, the problem of inconvenience in installing new fonts in the prior art LED control card is solved, and the display effect of quickly applying new fonts and controlling the LED display screen is realized.
Patent Information
- Application Number
- CN202510425506.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-06-27
AI Technical Summary
The built-in fonts of the existing LED control card are fixed when leaving the factory, lack an entrance to directly install fonts, and it is not convenient to operate the equipment through a remote control or connecting a computer and other media to install fonts, making it difficult to quickly apply new fonts to text programs and control the display of the LED display.
Provide a text program display method for LED display screen. By obtaining the edited target text program and the selected target control card, if a new font other than the built-in font of the target control card is used in the target text program, the target picture is drawn and image information is generated, and it is sent to the target control card, so that it controls the LED display screen to display according to the picture information.
It realizes that new fonts are applied to text-type programs easily and quickly without operating equipment, and controls the LED display screen for display, solving the problem of inconvenient installation of fonts in the LED control card in the prior art.
Smart Images

Figure CN120220587A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of LED control, and in particular, to a method, device, equipment, medium and product for displaying text programs on an LED display screen. Background Art
[0002] As the styles of computer fonts become increasingly rich, there is a growing need to apply new fonts to text programs and send them to an LED control card for controlled display. However, at present, the vast majority of LED control cards have fixed fonts built in at the factory, do not directly provide an entry for installing fonts, and it is extremely inconvenient to operate the device through media such as a remote control or connecting to a computer to install fonts. Summary of the Invention
[0003] Embodiments of the present invention provide a method, device, equipment, medium and product for displaying text programs on an LED display screen, so as to conveniently and quickly apply a new font to a text program and control the LED display screen for display.
[0004] In a first aspect, embodiments of the present invention provide a method for displaying a text program on an LED display screen, the method comprising:
[0005] Obtaining an edited target text program and a selected target control card;
[0006] If a new font other than the built-in font of the target control card is used in the target text program, then draw a target picture according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and generate picture information of the target picture;
[0007] Sending the picture information to the target control card, so that the target control card controls the target LED display screen for display according to the picture information.
[0008] Optionally, after obtaining the edited target text program and the selected target control card, the method further comprises:
[0009] If a new font other than the built-in font of the target control card is not used in the target text program, then directly send the target text program to the target control card, so that the target control card controls the target LED display screen for display according to the target text program.
[0010] Optionally, the target text program includes text content and a font name, and the screen parameters of the target LED display screen include a screen width and a screen height.
[0011] Optionally, the picture information includes a hyperlink to the target picture; correspondingly, the step of enabling the target control card to control the target LED display to perform display according to the picture information includes:
[0012] Enabling the target control card to download the target picture according to the hyperlink and control the target LED display to perform display according to the target picture.
[0013] Optionally, the picture information further includes an md5 value and / or the size of the target picture, which is used to verify the target picture downloaded by the target control card.
[0014] Optionally, the method further includes:
[0015] When editing a text program, every time a character is received, draw the current picture according to the current latest text program and the screen parameters of the simulation screen, and control the simulation screen to display the current picture in real time.
[0016] In a second aspect, an embodiment of the present invention further provides a text program display device for an LED display, and the device includes:
[0017] A target text program acquisition module, configured to acquire an edited target text program and a selected target control card;
[0018] A target picture drawing module, configured to, if a new font other than the built-in font of the target control card is used in the target text program, draw a target picture according to the target text program and the screen parameters of the target LED display matched with the target control card, and generate picture information of the target picture;
[0019] A picture information sending module, configured to send the picture information to the target control card, so that the target control card controls the target LED display to perform display according to the picture information.
[0020] In a third aspect, an embodiment of the present invention further provides a computer device, and the computer device includes:
[0021] One or more processors;
[0022] A memory, configured to store one or more programs;
[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the text program display method for an LED display provided in any embodiment of the present invention.
[0024] Fourthly, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements the text program display method of the LED display screen provided by any embodiment of the present invention.
[0025] Fifthly, an embodiment of the present invention further provides a computer program product. The computer program product includes a computer program. When the program is executed by a processor, it implements the text program display method of the LED display screen provided by any embodiment of the present invention.
[0026] An embodiment of the present invention provides a text program display method for an LED display screen. First, an edited target text program and a selected target control card are obtained. If a new font other than the built-in font of the target control card is used in the target text program, a target picture is drawn according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and picture information of the target picture is generated. Then, the picture information is sent to the target control card so that the target control card controls the target LED display screen to display according to the picture information. The text program display method for the LED display screen provided by the embodiment of the present invention realizes the convenient and rapid application of a new font to a text program and the control of the LED display screen to display without operating the device by drawing the text program into a picture for the LED control card to control the display when there is a new font in the text program to be sent. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flowchart of the text program display method for the LED display screen provided by Embodiment 1 of the present invention;
[0028] Figure 2 It is a schematic structural diagram of the text program display device for the LED display screen provided by Embodiment 2 of the present invention;
[0029] Figure 3 It is a schematic structural diagram of the computer device provided by Embodiment 3 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0030] The present invention will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present invention, rather than limiting the present invention. Additionally, it should be noted that for the sake of description, only parts related to the present invention are shown in the drawings rather than all the structures.
[0031] Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts depict the steps as sequential processes, many of the steps can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operations are completed, but it can also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, and so on.
[0032] Embodiment 1
[0033] Figure 1 The flowchart of the text program display method for the LED display screen provided by Embodiment 1 of the present invention is shown. This embodiment is applicable to the situation of controlling the LED display screen to display text programs using new fonts. This method can be executed by the text program display device of the LED display screen provided by the embodiments of the present invention, and this device can be implemented in a hardware and / or software manner and is generally integrated in a computer device.
[0034] As Figure 1 shown, it specifically includes the following steps:
[0035] S11. Obtain the edited target text program and the selected target control card.
[0036] S12. If the target text program uses a new font other than the built-in font of the target control card, draw a target picture according to the target text program and the screen parameters of the target LED display screen matching the target control card, and generate picture information of the target picture.
[0037] S13. Send the picture information to the target control card so that the target control card controls the target LED display screen to display according to the picture information.
[0038] Specifically, the text program display method for the LED display screen provided by this embodiment can be implemented by a correspondingly developed system. The user can select the target text program to be sent and the specified target control card from the currently saved and edited text programs through the system interaction interface. Among them, the target text program can be in html format. When uploading various font files to the system, the corresponding font names can be marked, and during the process of editing the text program, the required font name can also be selected from the existing font names for the edited text content. Then, after determining the target text program and the target control card, it can be automatically determined whether the target text program uses a new font other than the built-in font of the target control card, and the built-in fonts of each control card can be pre-stored in the local system.
[0039] If a new font other than the built-in font of the target control card is used in the target text program, a target picture can be drawn according to the target text program and the screen parameters of the target LED display that matches the target control card, and picture information of the target picture can be generated. Specifically, call parameters can be generated according to the target text program and the screen parameters of the target LED display, and the call parameters can be used to call the background drawing interface for drawing. Optionally, the target text program includes text content and font name, and the screen parameters of the target LED display include screen width and screen height. Correspondingly, the call parameters can include the target text program in html format (including text content and font name) and the screen width and screen height of the target LED display, etc., so that the new font is reflected in the form of a picture, and the drawn target picture can adapt to the resolution of the target LED display.
[0040] After generating the picture information of the target picture, the picture information is sent to the target control card, and at the same time, the original target text program can also be sent to the target control card, so that when the target control card receives the sent target text program, it can judge whether it also receives the picture information. When it is determined that the picture information is received, the target LED display is controlled to display according to the picture information, instead of drawing by itself.
[0041] Optionally, the picture information includes the hyperlink of the target picture; correspondingly, the step of enabling the target control card to control the target LED display to display according to the picture information includes: enabling the target control card to download the target picture according to the hyperlink and control the target LED display to display according to the target picture. In addition, the picture information can also only include the target picture content and can be sent to the target control card in the form of a picture format file. Then, the target control card can also control the target LED display to display the target picture when receiving the picture information.
[0042] Further optionally, the picture information further includes an md5 value and / or the size of the target picture, which is used to verify the target picture downloaded by the target control card, so that the correctness of the picture to be controlled and displayed by the target control card can be ensured through the consistency of the md5 value and / or the size of the target picture. Specifically, the target LED display can be controlled to display the target picture after the verification passes.
[0043] On the basis of the above technical solution, optionally, after obtaining the edited target text program and the selected target control card, it further includes: if no new font other than the built-in font of the target control card is used in the target text program, directly send the target text program to the target control card, so that the target control card controls the target LED display to display according to the target text program.
[0044] Specifically, if no new font other than the built-in font of the target control card is used in the target text program, the target text program in the original html format can be directly sent to the target control card. So that when the target control card receives the sent target text program, it can judge whether it also receives picture information. When it is determined that no picture information is received, it can draw the content to be displayed by itself according to the target text program and control the target LED display to display.
[0045] On the basis of the above technical solution, optionally, the method further includes: when editing a text program, every time a character is received, draw the current picture according to the current latest text program and the screen parameters of the simulation screen, and control the simulation screen to display the current picture in real time.
[0046] Specifically, the simulation screen can be a simulation window set on the local machine screen, which is used to simulate the display state of the edited text program on the LED display. During the process of editing the text program, every time a character is input, the background drawing interface can be called once to draw the corresponding current picture for the entire latest text program being edited. Among them, the call parameters are similar to the above, that is, they can be the screen width and height of the simulation screen, and the current latest text program in html format (including text content and font name). The screen width and height of the simulation screen can be set with reference to the actual LED display. Correspondingly, every time a current picture returned by the background is received, the current picture can be displayed in real time through the simulation screen, or every time a hyperlink of a current picture returned by the background is received, the current picture is obtained according to the hyperlink and displayed in real time through the simulation screen. Thus, the display state of the text program can be previewed in real time during the editing process, especially for text programs using new fonts. After the editing is completed, the edited text program can be saved locally for the user to select and use later.
[0047] The technical solution provided by the embodiments of the present invention first obtains the edited target text program and the selected target control card. If a new font other than the built-in font of the target control card is used in the target text program, a target picture is drawn according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and the picture information of the target picture is generated. Then, the picture information is sent to the target control card so that the target control card controls the target LED display screen to display according to the picture information. By drawing the text program as a picture for the LED control card to control the display when there is a new font in the text program to be sent, the new font can be conveniently and quickly applied to the text program and the LED display screen can be controlled to display without operating the device.
[0048] Embodiment 2
[0049] Figure 2 As shown in the figure, it is a schematic structural diagram of a text program display device for an LED display screen provided by Embodiment 2 of the present invention. This device can be implemented in a hardware and / or software manner and is generally integrated in a computer device for executing the text program display method for an LED display screen provided by any embodiment of the present invention. Figure 2 As shown in the figure, the device includes:
[0050] A target text program acquisition module 21, configured to acquire the edited target text program and the selected target control card;
[0051] A target picture drawing module 22, configured to draw a target picture according to the target text program and the screen parameters of the target LED display screen matched with the target control card and generate the picture information of the target picture if a new font other than the built-in font of the target control card is used in the target text program;
[0052] A picture information sending module 23, configured to send the picture information to the target control card so that the target control card controls the target LED display screen to display according to the picture information.
[0053] In the technical solution provided by the embodiment of the present invention, first, an edited target text program and a selected target control card are obtained. If a new font other than the built-in font of the target control card is used in the target text program, a target picture is drawn according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and picture information of the target picture is generated. Then, the picture information is sent to the target control card so that the target control card controls the target LED display screen to display according to the picture information. By drawing the text program as a picture for the LED control card to control the display when there is a new font in the text program to be sent, it realizes the convenient and fast application of the new font to the text program and the control of the LED display screen to display without operating the device.
[0054] Based on the above technical solution, optionally, the text program display device of the LED display screen further includes:
[0055] A text program sending module, configured to directly send the target text program to the target control card after obtaining the edited target text program and the selected target control card, if no new font other than the built-in font of the target control card is used in the target text program, so that the target control card controls the target LED display screen to display according to the target text program.
[0056] Based on the above technical solution, optionally, the target text program includes text content and font name, and the screen parameters of the target LED display screen include screen width and screen height.
[0057] Based on the above technical solution, optionally, the picture information includes a hyperlink of the target picture; correspondingly, the picture information sending module 23 is specifically configured to:
[0058] So that the target control card downloads the target picture according to the hyperlink and controls the target LED display screen to display according to the target picture.
[0059] Based on the above technical solution, optionally, the picture information further includes an md5 value and / or the size of the target picture, which is used to verify the target picture downloaded by the target control card.
[0060] Based on the above technical solution, optionally, the text program display device of the LED display screen further includes:
[0061] An analog display module, configured to draw a current picture according to the current latest text program and the screen parameters of the analog screen and control the analog screen to display the current picture in real time every time a character is received during the editing of the text program.
[0062] The text program display device of the LED display screen provided by the embodiments of the present invention can execute the text program display method of the LED display screen provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.
[0063] It should be noted that, in the above embodiments of the text program display device of the LED display screen, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0064] Embodiment III
[0065] Figure 3 FIG. is a schematic structural diagram of a computer device provided by Embodiment III of the present invention, showing a block diagram of an exemplary computer device suitable for implementing the embodiments of the present invention. Figure 3 The displayed computer device is only an example and should not bring any limitations to the functions and usage scope of the embodiments of the present invention. As Figure 3 shown, the computer device includes a processor 31, a memory 32, an input device 33, and an output device 34; the number of processors 31 in the computer device can be one or more, Figure 3 taking one processor 31 as an example, the processor 31, the memory 32, the input device 33, and the output device 34 in the computer device can be connected through a bus or other means, Figure 3 taking the connection through a bus as an example.
[0066] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the text program display method of the LED display screen in the embodiments of the present invention (for example, the target text program acquisition module 21, the target picture drawing module 22, and the target picture drawing module 23 in the text program display device of the LED display screen). The processor 31 executes various functional applications and data processing of the computer device by running the software programs, instructions, and modules stored in the memory 32, that is, implements the above-mentioned text program display method of the LED display screen.
[0067] The memory 32 may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 32 may further include a memory remotely provided with respect to the processor 31, and these remote memories may be connected to the computer device through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0068] The input device 33 can be used to obtain the user's edited content and selection operations, and generate key signal inputs related to the user settings and function controls of the computer device, etc. The output device 34 may include a display screen and can be used to display the edited content, etc. to the user.
[0069] Embodiment 4
[0070] Embodiment 4 of the present invention further provides a storage medium containing computer-executable instructions, and these computer-executable instructions are used to execute a method for displaying a text program on an LED display screen when executed by a computer processor. The method includes:
[0071] Obtain the edited target text program and the selected target control card;
[0072] If a new font other than the built-in font of the target control card is used in the target text program, draw a target picture according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and generate picture information of the target picture;
[0073] Send the picture information to the target control card so that the target control card controls the target LED display screen to display according to the picture information.
[0074] A storage medium can be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (such as hard disks or optical storage); registers or other similar types of memory elements, etc. The storage medium can also include other types of memory or combinations thereof. Additionally, the storage medium can be located in the computer system in which the program is executed, or it can be located in a different second computer system that is connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "storage medium" can include two or more storage media that can reside in different locations (e.g., in different computer systems connected via a network). The storage medium can store program instructions (e.g., embodied as a computer program) executable by one or more processors.
[0075] Of course, for a storage medium containing computer-executable instructions provided by an embodiment of the present invention, the computer-executable instructions are not limited to the method operations described above, and can also execute related operations in the text program display method of the LED display screen provided by any embodiment of the present invention.
[0076] A computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
[0077] The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination of the above.
[0078] From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software and necessary general-purpose hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disc of a computer, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
[0079] Embodiment Five
[0080] Embodiment Five of the present invention further provides a computer program product. This computer program product includes a computer program (which can also be referred to as code, instruction). This computer program can be stored in a computer-readable storage medium. When this computer program is executed by a processor, it is used to execute the text program display method of the LED display screen provided in any of the above embodiments, and has the corresponding beneficial effects of the execution method.
[0081] Note that the above is only the preferred embodiment of the present invention and the applied technical principle. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described here. Various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, it can also include more other equivalent embodiments, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for displaying text programs on an LED display screen, characterized in that: include: Obtain the edited target text program and the selected target control card; If the target text program uses a new font other than the built-in font of the target control card, a target picture is drawn according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and picture information of the target picture is generated; The image information is sent to the target control card, so that the target control card controls the target LED display screen to display according to the image information.
2. The method for displaying text programs on an LED display screen according to claim 1, characterized in that: After obtaining the edited target text program and the selected target control card, the method further includes: If the target text program does not use any new font other than the built-in font of the target control card, the target text program is directly sent to the target control card, so that the target control card controls the target LED display screen to display according to the target text program.
3. The method for displaying text programs on an LED display screen according to claim 1, characterized in that: The target text program includes text content and font name, and the screen parameters of the target LED display screen include screen width and screen height.
4. The method for displaying text programs on an LED display screen according to claim 1, characterized in that: The picture information includes a hyperlink to the target picture; accordingly, the target control card controls the target LED display screen to display according to the picture information, including: So that the target control card downloads the target image according to the hyperlink, and controls the target LED display screen to display according to the target image.
5. The method for displaying text programs on an LED display screen according to claim 4, characterized in that: The picture information also includes an md5 value and / or a target picture size, which is used to verify the target picture downloaded by the target control card.
6. The method for displaying text programs on an LED display screen according to claim 1, characterized in that: The method further comprises: When editing a text program, each time a word is received, a current picture is drawn according to the current latest text program and the screen parameters of the simulation screen, and the simulation screen is controlled to display the current picture in real time.
7. A text program display device for an LED display screen, characterized in that: include: The target text program acquisition module is used to acquire the edited target text program and the selected target control card; A target picture drawing module is used to draw a target picture according to the target text program and the screen parameters of the target LED display screen matched with the target control card, and generate picture information of the target picture if a new font other than the built-in font of the target control card is used in the target text program; The picture information sending module is used to send the picture information to the target control card, so that the target control card controls the target LED display screen to display according to the picture information.
8. A computer device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the text program display method of the LED display screen as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the text program display method of the LED display screen as described in any one of claims 1-6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the text program display method of the LED display screen as described in any one of claims 1 to 6.