Text display method and system for multiple display devices

By setting unified starting coordinates and text component parameters without margins in the text components on the editing and displaying ends, text parameters are transmitted in text form, which solves the problem of resource consumption and dynamic modification difficulties caused by text to pictures in the prior art, and realizes efficient text display and dynamic modification.

CN120047576APending Publication Date: 2025-05-27XIAN QINGSONG PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311526767.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-16
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

In the prior art, in order to ensure the consistent display effect of text on the editing and displaying ends, text needs to be converted into pictures, resulting in the generation, transmission, analysis and refresh of pictures taking a long time and system resources, and dynamically modifying text cannot be achieved.

Method used

By editing the text and text parameters to be displayed in the text component on the editing end, and setting the component parameters of each text component, ensuring that the upper left corner of the text component is the upper left corner of the text component to be displayed and does not contain inner margins. These parameters are sent to the display end in the display end in the corresponding text component according to the component parameters.

Benefits of technology

It realizes data transmission and parsing in text form, reduces the consumption of system resources, supports dynamic modification of text, reduces user waiting response time, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120047576A_ABST
    Figure CN120047576A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of text display, in particular to a method and system for text display of multiple display devices. Comprising the steps that a to-be-displayed text and text parameters are edited in a text component of an editing end, component parameters of each text component are set, the upper left corner of the text component is the upper left corner of the to-be-displayed text, and the text component does not contain an inner margin; and sending the to-be-displayed text, the text parameter and the component parameter of each text component to a display end in a text form, and displaying the to-be-displayed text in the corresponding text component according to the text parameter by the display end according to the component parameter of each text component. According to the method provided by the invention, the text content and the text parameters of the to-be-displayed text can be edited, transmitted and analyzed in a text form, so that the text can be dynamically modified, and the waiting response time of a user is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of text display, and particularly to a method and system for text display on multiple display devices. Background Art

[0002] In the LED industry, programs containing text are usually edited on mobile devices such as mobile phones or tablets and sent to the LED screen for display. There are differences in the native text components of different terminals based on different software and hardware systems. For example, different text components are used on the mobile phone editing end and the LED screen display end, resulting in inconsistent display effects of the text on the editing end and the display end, and what is seen on the editing end is not what is obtained on the display end. To ensure that the display effect of the text on the LED screen is consistent with that on mobile devices such as mobile phones, the existing technical solution is to convert the text into pictures and output them to the LED screen for display.

[0003] In actual implementation, using pictures as the carrier of text content, since the display end cannot change the content, position, and display effect of the text in the picture, any modification of the text content needs to be carried out on the editing end. After the editing is completed, the picture is sent to the display end again, and the display end redisplay the modified picture to complete the modification of the text content. However, pictures have a larger data volume and more complex parsing compared to pure text. Therefore, the generation, transmission, parsing, and refreshing of pictures all require a long time and a large amount of system resources.

[0004] In the process of implementing the embodiments of the present invention, the inventors found that at least the following problems exist in the above related technologies: The text in the picture cannot be dynamically modified, and the efficiency of converting text into pictures is low, and the user's waiting response time is long. Summary of the Invention

[0005] The embodiments of the present application provide a method and system for text display on multiple display devices, which can solve the technical problem in the prior art that text needs to be converted into pictures to ensure consistent display effects on the editing end and the display end.

[0006] The objectives of the embodiments of the present invention are achieved through the following technical solutions:

[0007] To solve the above technical problem, in a first aspect, the embodiments of the present invention provide a method for text display on multiple display devices, including: editing the text to be displayed and text parameters in the text components of the editing end, and setting the component parameters of each text component, where the upper left corner of the text component is the upper left corner of the text to be displayed, and the text component does not include inner margins; sending the text to be displayed, text parameters, and component parameters of each text component to the display end in text form, and the display end displays the text to be displayed in accordance with the text parameters in the corresponding text component according to the component parameters of each text component.

[0008] In some embodiments, in the text component at the editing end, when editing the text to be displayed and the text parameters, editing the text to be displayed specifically includes: using the upper left corner of the text component as the starting coordinate of the text, and drawing the text to be displayed in the text component; when drawing, aligning the upper left corner coordinate of the text to be displayed with the starting coordinate of the text, and aligning the lower right corner of the text component with the lower right corner of the text to be displayed.

[0009] In some embodiments, aligning the lower right corner of the text component with the lower right corner of the text to be displayed further includes: when the display size of the text to be displayed changes, resetting the lower right corner coordinate of the text component according to the changed lower right corner coordinate of the text to be displayed.

[0010] In some embodiments, in the text component at the editing end, when editing the text to be displayed and the text parameters, editing the text parameters specifically includes: setting one or more parameters of the font, font size, text color, text background, and text special effects of the text to be displayed, and using the set parameters as the text parameters.

[0011] In some embodiments, when setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the font, it specifically includes: obtaining the list of fonts supported by the display end, and selecting the font of the text to be displayed from the supported font list; and / or, setting a preferred font and setting at least one alternative font, where the alternative font is a font in the common font library.

[0012] In some embodiments, when setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the font size, it specifically includes: obtaining the pixel size of the drawable range of the display end, and setting the corresponding pixel ratio of the editing area at the editing end according to the obtained pixel size, so as to view the display effect after setting the font size at the editing end.

[0013] In some embodiments, when setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the text color, it specifically includes: obtaining the color of the text background, and / or, obtaining the color of the display position of the corresponding text component at the display end; setting the text color according to the obtained color, and / or, setting the color of the text edge according to the obtained color.

[0014] In some embodiments, when setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the text background, it specifically includes: setting the text background to be transparent; and / or, setting the text background according to the text special effects; and / or, setting the text background according to the background of the display position of the corresponding text component at the display end.

[0015] In some embodiments, setting one or more of the font, font size, text color, text background, and text effects of the text to be displayed, when setting the text effects, specifically includes: obtaining a list of text effects supported by the display end, and selecting the text effect of the text to be displayed from the list of supported text effects; and / or, setting a preferred text effect and setting at least one alternative text effect, where the alternative text effect is a text effect in the common text effect library.

[0016] In some embodiments, setting one or more of the font, font size, text color, text background, and text effects of the text to be displayed, when setting the text effects, further includes: when the text effect is a dynamic effect, setting at least two sets of text parameters and / or component parameters according to the dynamic effect, as well as the switching time and switching mode of different text parameters and / or component parameters.

[0017] In some embodiments, the display end displays the text to be displayed in the corresponding text component according to the component parameters of each text component, specifically including: determining the starting coordinates and the text pixel size of the text to be displayed in the text component according to the component parameters of each text component; using the starting coordinates as the starting point for drawing the text to be displayed, and drawing the text to be displayed according to the text parameters and the text pixel size.

[0018] In some embodiments, determining the starting coordinates and the text pixel size of the text to be displayed in the text component according to the component parameters of each text component specifically includes: calculating the upper left corner pixel coordinates of the text to be displayed as the starting coordinates according to the starting ratio coordinates in the component parameters; calculating the text pixel size of the text to be displayed according to the size ratio in the component parameters.

[0019] In some embodiments, displaying the text to be displayed in the corresponding text component according to the text parameters further includes: when the text effect is a dynamic effect, switching the text parameters of the text to be displayed in the corresponding text component according to the switching time and switching mode of each set of text parameters.

[0020] To solve the above technical problems, in a second aspect, an embodiment of the present invention provides a multi-display device text display system, including an editing end and a display end, specifically including: the editing end edits the text component according to the multi-display device text display method provided in the first aspect; the display end displays the text component according to the multi-display device text display method provided in the first aspect.

[0021] Compared with the prior art, the beneficial effects of the present invention are as follows: Different from the prior art, in the embodiments of the present invention, a method for text display on multiple display devices is provided. In the custom text component used in this method, the starting coordinate for displaying text is directly the first pixel in the upper left corner, without retaining the inner padding of the native text component, thus avoiding the technical problem that the starting point of text drawing and the inner padding in the existing native text component affect the text display effect. The method for text display on multiple display devices provided in the embodiments of the present invention uses a specific text component, which defines the starting position of text drawing in the text component and also defines that the text component does not include inner padding, so as to ensure that the drawing starting point and inner padding of the text component will not affect the text display effect. Thereby, it can complete the editing, transmission, and parsing of the text content and text parameters of the text to be displayed in text form, facilitating dynamic modification of the text and reducing the long waiting response time of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In one or more embodiments, exemplary illustrations are provided through the pictures in the corresponding attached drawings. These exemplary illustrations do not constitute limitations on the embodiments. Elements / modules and steps with the same reference numerals in the attached drawings are represented as similar elements / modules and steps. Unless otherwise stated, the drawings in the attached drawings do not constitute a proportional limitation.

[0023] Figure 1 is a schematic diagram of the native text component at the editing end in the prior art;

[0024] Figure 2 is a schematic diagram of the native text component at the display end in the prior art;

[0025] Figure 3 is a schematic diagram showing the display difference between the native text components at the editing end and the display end in the prior art;

[0026] Figure 4 is a flowchart of a method for text display on multiple display devices provided in Embodiment 1 of the present invention;

[0027] Figure 5 is a schematic diagram of the text component provided in the embodiments of the present invention;

[0028] Figure 6 is a schematic diagram showing the adjustment effect of the text component provided in the embodiments of the present invention;

[0029] Figure 7 is another schematic diagram showing the adjustment effect of the text component provided in the embodiments of the present invention;

[0030] Figure 8 is yet another schematic diagram showing the adjustment effect of the text component provided in the embodiments of the present invention;

[0031] Figure 9It is the flowchart of text color setting in the method provided in the first embodiment of the present invention;

[0032] Figure 10 It is the flowchart of text component display in the method provided in the first embodiment of the present invention;

[0033] Figure 11 It is the schematic diagram of the setting method of the starting ratio and size ratio of the text component provided in the embodiment of the present invention;

[0034] Figure 12 It is the schematic diagram of the calculation method of the starting physical pixel coordinates and the height physical pixel value of the text component provided in the embodiment of the present invention;

[0035] Figure 13 It is the schematic diagram of the system architecture of the method for text display on multiple display devices provided in the second embodiment of the present invention;

[0036] Figure 14 It is the schematic diagram of the hardware structure of the editing end or the display end in the system provided in the second embodiment of the present invention. Detailed implementation manners

[0037] The present invention will be described in detail below with reference to specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made. These all belong to the protection scope of the present invention.

[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] It should be noted that if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, and all are within the protection scope of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed differently from the module division in the device or the order in the flowchart.

[0040] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs. The terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not used to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0041] To solve the technical problem in the prior art that text needs to be converted into pictures to ensure consistent display effects between the editing end and the display end, embodiments of the present invention provide a method for text display on multiple display devices and a system for text display on multiple display devices. By using a specific text component, the starting position of text drawing in the text component is defined, and the inner margin in the text component is not included, so as to ensure that the drawing starting point and inner margin of the text component do not affect the text display effect. Thus, the text content and text parameters of the text to be displayed can be edited, transmitted, and parsed in text form, facilitating dynamic modification of text and reducing the long waiting response time of users.

[0042] Specifically, with reference to the accompanying drawings, embodiments of the present invention will be further elaborated below.

[0043] In the existing technical solutions, the most significant influencing factors are the existence of the starting point of text drawing and the inner margin, and there are differences between the native text components at the editing end and the display end. For example, Figure 1 As shown, in the native text component of a mobile phone as the editing end, the starting coordinates of the text are (x1, y1), and the inner margins in the x direction and y direction are dx1 and dy1 respectively; Figure 2 As shown, in the native text component of an LED screen as the display end, the starting coordinates of the text are (x2, y2), and the inner margins in the x direction and y direction are dx2 and dy2 respectively. Figure 1 And 2 In, the solid line box is the border of the text component, and the dashed line box is the text display range. From the comparison of the display effects of the editing end and the display end shown in Figure 3 , it can be seen that due to the different starting coordinates and inner margins of the text at the editing end and the display end, the position of the text may change during display. Moreover, due to the different resolutions of the editing end and the display end, usually the display end needs to scale the text proportionally according to the resolution, and the size of the text will also affect the size of the text drawing starting point and inner margin, resulting in text displacement and unable to achieve the expected display effect. Therefore, to ensure consistent display effects between the display end and the editing end, the text needs to be converted into pictures for output display.

[0044] Embodiment 1

[0045] Embodiments of the present invention provide a method for text display on multiple display devices. Please refer to Figure 4 , which shows the flow of a method for text display on multiple display devices provided by embodiments of the present invention. This method can be applied to text display. The text display on multiple display devices includes but is not limited to the following steps:

[0046] Step 101: Edit the text to be displayed and text parameters in the text component at the editing end, and set the component parameters for each text component. Here, the upper left corner of the text component is the upper left corner of the text to be displayed, and there is no inner margin in the text component.

[0047] To solve the problems such as text display offset caused by different starting coordinates and inner margins of native text components on different systems in the prior art. In this embodiment, the characteristics of the text component are restricted. When performing text display, in the text component, the first pixel of the text to be displayed is drawn starting from the upper left corner of the text component, and the maximum coordinate range of the text component is used as the text display range during drawing, without reserving inner margins in the text component. Since the starting coordinates and inner margin settings of the text components at the editing end and the display end are unified, it will not cause differences in the text display positions and sizes at both ends.

[0048] On the other hand, in order to present different display effects at the display end, it is also necessary to set the text parameters of the text at the editing end. For example, set one or more parameters such as the font, font size, text color, text background, and text special effects of the text to be displayed, and use the set parameters as text parameters. These text parameters can be represented by corresponding flag variables or characteristic characters at the editing end and can be sent to the display end in text form. The display end can also display the text to be displayed according to the flag variables in text form. Further, multiple groups of text parameter templates can be preset. When transmitting, only the preset text parameter template numbers or names need to be transmitted to further reduce the amount of data to be transmitted, so as to quickly realize the switching of display effects.

[0049] On the other hand, at the display end, only one text component may be displayed, or multiple text components at different positions may be displayed simultaneously. In actual implementation, the display position, size, display time period, etc. of each text component can be determined by setting the component parameters of each text component.

[0050] Step 102: Send the text to be displayed, text parameters, and component parameters of each text component to the display end in text form. The display end displays the text to be displayed in accordance with the text parameters in the corresponding text component according to the component parameters of each text component.

[0051] After editing the text to be displayed, text parameters, and component parameters in each text component at the editing end, it can be sent to the display end for display. Different from the prior art, in the method provided in this embodiment, specific text components are used, which will not cause the offset of the display positions at both ends of the text. Therefore, it is not necessary to convert the text into a picture for transmission, but the text form can be directly used for transmission. The transmitted content includes the content of the text to be displayed, as well as text parameters such as font size, color, whether it is bold, whether it is italic, etc., and component parameters such as the position of the text component.

[0052] Furthermore, during the display process, when the text to be displayed or the text parameters need to be changed, only the changed text to be displayed or a certain changed text parameter can be transmitted to further reduce the amount of data that needs to be transmitted and parsed. In order to enable the display end to distinguish the text component corresponding to each received text message, an id or other unique identifier can be set for each text component. After the display end receives the data, the corresponding text component is replaced or redrawn according to the unique identifier of the text component.

[0053] After the display end receives the text to be displayed, text parameters, and component parameters of the text component, it first calculates the display position of each text component according to the component parameters, and then draws the corresponding text to be displayed in each text component according to the text parameters. At the display end, the same text component as that at the editing end is used. Starting from the upper left corner of the text component as the origin, the first pixel of the text to be displayed is drawn, and when drawing, the maximum coordinate range of the text component is used as the text display range, without leaving internal margins in the text component. Therefore, by using the same text component, the position and size of the text can be ensured to be consistent with those at the editing end. The editing end does not need to convert the text into a picture to ensure the text display effect, and the display end does not need to consume a large amount of resources for caching and parsing pictures. Only the corresponding data needs to be transmitted and parsed in text form.

[0054] In actual implementation, different text components may need to be displayed at different time points. In order to enable the display end to know the display time of each text component, the editing end can control the sending time and display time of the text component in different ways. For example: the editing end sends according to the display time, and the display end displays immediately after receiving; add display time information to the component parameters of the text component, and the display end displays according to the display time information; set the switching time of the text component, and the display end automatically switches according to the switching time; the display end control personnel manually control the display according to actual needs. In actual implementation, in order to ensure that the display time set by the editing end is consistent with the display time point of the display end, the display time is determined following the system time of the display end to ensure the synchronization of the content of the text component and other display contents of the display end.

[0055] After steps 101-102 provided in this embodiment, the text component provided in this embodiment can be used to complete the editing and transmission of the content to be displayed in text form, without using the picture form to ensure the same display effect of the text at the editing end and the display end.

[0056] In the method provided in this embodiment, a specific text component is used for text editing at the editing end and text display at the display end. As Figure 5 shown, in order to avoid different display effects caused by different starting coordinates of text drawing, in the text component used in this embodiment, the upper left corner of the text component is fixed as the starting coordinate of the text, and the text to be displayed is drawn in the text component, that is, the upper left corner of the text component is used as the (0, 0) point of the coordinate system of the text component. At the same time, in order to avoid different display effects caused by different or changing inner margins, the text component used in this embodiment does not include inner margins. When drawing, the upper left corner coordinate of the text to be displayed is aligned with the starting coordinate of the text, the upper left corner of the text component is used as the starting point of the text drawing coordinate system, and the lower right corner of the text component is aligned with the lower right corner of the text to be displayed, so that the coordinate range of the text component is the same as the display coordinate range of the text itself. Compared with the native text component, Figure 5 the border of the text component in Figure 1 or Figure 2 the solid line box of the text component border in

[0057] coincides with the dotted line box of the text display range, that is: the starting coordinate of the text is (0, 0), dx = 0, dy = 0.

[0058] Further, when displaying, the font size or font in the text parameters may change, resulting in a change in the display size of the text to be displayed. At this time, the size of the text component also needs to change accordingly. When the display size of the text to be displayed changes, the upper left corner position of the text component is not changed, and only the lower right corner coordinate of the text component is reset according to the changed lower right corner coordinate of the text to be displayed, so that the size of the text component is the same as the size of the text to be displayed.

[0059] On the other hand, when adjusting the size of the text component at the editing end, the size of the text to be displayed can also be adjusted accordingly as needed, so that the font size of the text to be displayed matches the size of the text component. For example: (1) Change the font size of the text to be displayed according to the adjusted size of the text component, so that the upper left corner and the lower right corner of the text to be displayed are consistent with the adjusted text component. (2) As Figure 6 shown, when adjusting the width of the text component, instead of changing the font size of the text to be displayed, change the character spacing in the text to be displayed, so that the upper left corner and the lower right corner of the text to be displayed are consistent with the adjusted text component. (3) As Figure 7 shown, when the text to be displayed has multiple lines and the height of the text component is adjusted, instead of changing the font size of the text to be displayed, change the line spacing in the text to be displayed, so that the upper left corner and the lower right corner of the text to be displayed are consistent with the adjusted text component. In specific implementation, the adjustment of character spacing and line spacing can be carried out simultaneously as needed, and the character spacing and line spacing can be calculated according to the font size and the adjusted size of the text component.

[0060] In some scenarios, it is necessary to batch-adjust the sizes and spacings of multiple text components, and the font sizes in different text components may be different. In this scenario, as Figure 8 shown, the size of each text component and the spacing between text components can be scaled according to the ratio of the font sizes in the text components. On the other hand, for the text to be displayed in each text component, the font size, character spacing or line spacing of the text to be displayed can be set according to the adjusted size of each text component in the above manner. Among them, the character spacing or line spacing can be calculated according to the font size of the text to be displayed and the adjusted size of the text component.

[0061] In this embodiment, in order to achieve different display effects, different text parameters can be set at the editing end. However, in actual implementation, due to system differences between the editing end and the display end, and between different display ends, the support for the same text parameter may be different. Therefore, when setting text parameters, corresponding situations also need to be processed to ensure that the display effects of each display end are basically the same.

[0062] When setting the font, if the fonts supported by the display end can be obtained, obtain the list of fonts supported by the display end, and select the font of the text to be displayed from the list of supported fonts to ensure that the display end can support the font set by the editing end; and / or, if it is inconvenient to obtain the fonts supported by the display end, or there are multiple different display ends, set a preferred font and set at least one alternative font, where the alternative font is a font in the common font library. By setting the alternative font, when the display end cannot support the preferred font, a font with a similar display effect can be used for display to ensure that the display effects of different display ends are basically the same.

[0063] In an actual scenario, the resolutions of the editing end and the display end are usually different, and the editing area of the editing end and the drawable range of the display end are also different. To achieve the what-you-see-is-what-you-get effect at the editing end, it is necessary to determine the size of the editing area and the display effect of different font sizes according to the drawable range of the display end. Specifically, obtain the pixel size of the drawable range of the display end, and set the corresponding editing area pixel ratio at the editing end according to the obtained pixel size, so as to view the display effect after setting the font size at the editing end.

[0064] In some scenarios, the text provided by the editing end needs to be typeset with pictures or videos. To avoid the colors of the text and the text background conflicting with each other and making the text illegible, it is necessary to determine the text color according to the color of the text background or the color of the typeset image. As Figure 9 shown, the text color can be set in the following way.

[0065] Step 201: Obtain the color of the text background, and / or obtain the color of the display position of the corresponding text component at the display end.

[0066] In a normal scenario, the text color can be specified at the editing end. However, in some scenarios, it is necessary to adjust the text color according to the color of the text background or the typeset image. When the text background is set at the editing end, obtain the color of the text background. When text and image typesetting is required, obtain the color of the typeset image at the display position of the text component; when the typeset image contains multiple colors, obtain the most dominant color in the display position area.

[0067] Step 202: Set the text color according to the obtained color, and / or set the color of the text edge according to the obtained color.

[0068] After obtaining the color of the text background or the typeset image, the text color can be set according to the obtained color. For example, set the text color according to a preset color matching template, or set the text color to the complementary color of the obtained color, etc. In some scenarios, the typeset image contains many colors, or the colors of the typeset video change frequently, and the color of the text edge can be further set to make the visual effect of the text clearer.

[0069] After going through steps 201 - 202 provided in this embodiment, the text color can be set, and the visual clarity of the text can be improved through the text color.

[0070] In common scenarios, the text background can use the default background color of the display end, or be specified on the editing end. However, in some scenarios, the text background needs to be set as needed. For example: when mixed text and images, or mixed video and text, the text background is set to transparent, and the text component is placed above the mixed picture or video. The switching of the lower layer of pictures and videos will not affect the text display in the text component; and / or, when the text special effects need to be coordinated with the pattern background, the text background is set according to the text special effects to generate text special effects such as shadows, three-dimensional, and background patterns; and / or, in order to make the overall visual effect of the text component area more obvious, or when a transparent background cannot be set, the text background is set according to the background of the display position of the corresponding text component on the display end. Furthermore, when setting the text background according to the text special effects, background pictures of different text special effects can be pre-stored on the display end, and the editing end only needs to send the corresponding background number or name to further reduce the amount of data transmitted and parsed.

[0071] In addition to setting text effects through the text background, you can also set dynamic text effects such as text scaling, scrolling, flashing, and color change. Text scaling and scrolling can be achieved through simple coordinate calculations on the display end, and flashing and color change can be achieved by switching different text parameters on the display end. Therefore, when setting text effects, you can send the corresponding effect number or name without sending complex pictures or videos. In actual implementation, if you can get the list of special effects supported by the display end, get the list of text effects supported by the display end, and select the text effects of the text to be displayed in the list of supported text effects to ensure that the display end can support the text effects set by the editing end; and / or, if it is inconvenient to get the text effects supported by the display end, or there are multiple different display ends, set a preferred text effect, and set at least one alternative text effect, wherein the alternative text effect is a text effect in the public text effect library. By setting the alternative text effect, when the display end cannot support the preferred text effect, the alternative text effect with a similar display effect can be used for display, ensuring that the display effects of different display ends are basically the same. When the text special effect is a dynamic special effect, such as flashing, color change, etc., the desired display effect can be further specified through different text parameters, and at least two groups of text parameters and / or component parameters, as well as the switching time and switching mode of different text parameters and / or component parameters, can be set according to the dynamic effect. For example, by setting three text colors and the switching time of the three text colors in the text parameters, and setting the switching mode to cyclic switching, the text special effect of switching three text colors in turn can be realized on the display end; or, by setting the starting and ending positions of the text component movement in the component parameters, the moving special effect can be realized on the display end. Using this method, the amount of data that needs to be transmitted can be further reduced.

[0072] To further ensure the consistent display effects between the display end and the editing end, in addition to setting the text parameters of the text to be displayed in each text component, it is also necessary to set the component parameters of the text component. In actual implementation, the component parameters to be set can be determined according to actual needs, as long as the display time and display position of the text component are ensured. For example, the component parameters may include: (1) a preset resolution, indicating the optimal resolution of the text component; (2) a starting ratio coordinate, indicating the upper-left coordinate of the text component, which is used to record the horizontal and vertical position percentages of the upper-left corner of the text component in the preset resolution; (3) a size ratio, indicating the width-to-height ratio of the text component, specifically: the physical pixel value of the height of the text component at the editing end / the physical pixel value of the height of the editing area at the editing end; (4) a display time, indicating the start and end times of the display of the text component; (5) a display effect, indicating the type of effect of the text component, such as a moving coordinate, a blinking interval time, etc.

[0073] After completing the above editing and settings at the editing end, the text to be displayed, the text parameters, and the component parameters can be sent to the display end in text form. After receiving the above information, the display end can use the method as Figure 10 shown to display the text component.

[0074] Step 301: Determine the starting coordinate and the character pixel size of the text to be displayed in the text component according to the component parameters of each text component.

[0075] At the display end, the same text component as that at the editing end is used for display to ensure that the display effect is the same as or basically the same as that at the editing end. Therefore, first, it is necessary to determine the display position and display size of each text component according to the component parameters of the text component to determine the display position and display size of the text to be displayed.

[0076] In some scenarios, since the resolutions of the display end and the editing end are not necessarily the same, and it is convenient to display simultaneously on multiple display ends with different pixels. Therefore, when setting the display position of the text component at the editing end, the physical pixel value is not used, but the starting ratio coordinate is used to represent it. The display end calculates the upper-left pixel coordinate of the text to be displayed as the starting coordinate according to the starting ratio coordinate in the component parameters according to the actual resolution. Similarly, when setting the size of the text component at the editing end, the physical pixel value is not used, but the size ratio is used to represent it. The display end calculates the character pixel size of the text to be displayed according to the size ratio in the component parameters according to the actual resolution.

[0077] Step 302: Use the starting coordinate as the starting point for drawing the text to be displayed, and draw the text to be displayed according to the text parameters and the character pixel size.

[0078] After obtaining the positions and sizes of the text components, the text to be displayed in each text component can be drawn. In this embodiment, the upper left corner of the text component is the upper left corner of the text to be displayed, and there is no inner padding in the text component. Therefore, when drawing, starting from the starting coordinates, the upper left corner of the text component is used as the upper left corner of the text drawing coordinate system, and the text is drawn without reserving inner padding. When drawing, it is also necessary to determine the font, size, color, whether it is bold, whether it is italic, etc. of the current text to be displayed according to the text parameters. After drawing is completed, the same display effect as that on the editing end can be presented on the display end.

[0079] After going through step 301-step 302 provided in this embodiment, the display of the text to be displayed can be completed.

[0080] In a certain actual scenario, such as Figure 11 shown, the physical resolution of the editing end is (1200*500), the starting ratio of the text component set on the editing end is (0.2, 0.35), and its corresponding physical pixel starting coordinates (x3, y3) are (240, 175); the size ratio is (0.1), and its corresponding height physical pixel value is h1 = 120. As Figure 12 shown, the physical resolution of the display end is (3600*1500). According to the starting ratio, its corresponding physical pixel starting coordinates (x4, y4) are (720, 525); according to the size ratio, its corresponding height physical pixel value is h2 = 360. It can be seen that although the physical pixel ratios of the editing end and the display end are different, since the size and position of the text are set proportionally, and the information such as the size and color of the text is the same as that on the text editing end, the display effect of the text on the display end can be made to be consistent with the preview effect set on the editing end. Further, for the convenience of previewing the display effect on the re-editing end, in actual implementation, the width-to-height ratio of the editing area on the editing end can be set to be the same as that on the display end.

[0081] In some actual scenarios, when displaying, it is also necessary to perform corresponding displays for text effects or display effects of text components. When the text effect is a dynamic effect, according to the switching time and switching mode of each group of text parameters, the text parameters of the text to be displayed in the corresponding text component are switched. Similarly, when the display effect of the text component is a dynamic effect, it is also necessary to switch the display position, display size, etc. of the text component according to the switching time and display effect in the component parameters.

[0082] During the actual display process, the lifecycle of each text component can be determined as needed. For example, for some text components located in certain positions where text display needs to be continuously performed, they can be generated only once. When the display content changes, only the text to be displayed is redrawn, without destroying the text component itself, such as the logo or event name, etc.; some text components are only for temporary display, so they are generated when needed and destroyed after the display is completed, such as prompt messages, etc.; some text components are dedicated to a certain time period or a certain display content, and are generated and retained during that time period or when that content is displayed, and are destroyed when the time period or content ends, such as video subtitles, etc. Through different methods, the data transmission volume of the component parameters of the text components can be further reduced, and the data transmission volume of the text parameters of the text to be displayed in some scenarios can also be reduced. For example, when displaying video subtitles, only the text to be displayed for each subtitle needs to be transmitted, without the need to transmit other text parameters and component parameters, and the display end can perform the display according to the text parameters already set in the text component.

[0083] In some other actual scenarios, text components need to be displayed in cooperation with pictures, videos, etc. The display end can bind the text components with the cooperating pictures, videos, etc. to achieve automatic synchronous switching; or set the advance time, abort time, or delay time of the display to meet the display requirements of different scenarios.

[0084] The method for text display on multiple display devices provided in this embodiment, by using specific text components, does not require complex and time-consuming text-to-picture operations, reduces the waiting time for producing the content to be displayed, is also convenient for dynamically modifying the text content, reduces the user waiting time, and improves the user experience.

[0085] Embodiment 2

[0086] The embodiment of the present invention also provides a system for text display on multiple display devices. Please refer to Figure 13 , which shows the hardware structure capable of executing Figure 4 the method for text display on multiple display devices described above.

[0087] The system for text display on multiple display devices provided in this embodiment includes an editing end and a display end.

[0088] The editing end edits the text components according to the method for text display on multiple display devices provided in Embodiment 1. For example, step 101 is executed to edit the text to be displayed, set text parameters, component parameters, etc.

[0089] The display end displays the text component according to the method for multi-display device text display provided in the first embodiment. For example, step 102 is executed to calculate the starting coordinates and the text pixel size of the text to be displayed in the text component, and draw the text to be displayed according to the text parameters. The content to be displayed is redrawn according to the changes of the editing end, and the dynamic switching of the text to be displayed and the text component also needs to be performed according to the text special effects and the display special effects of the text component.

[0090] Due to the method provided in the first embodiment, which can support the data transmission in text form, in the system of this embodiment, the data transmission between the editing end and the display end only needs to support text transmission. For example, when the editing end is a mobile phone or a tablet computer, 3G / 4G network, wireless network or Bluetooth is used for transmission, which is flexible and convenient; when the editing end is a control device such as a video switcher, a serial port is used for transmission, and the transmission speed is fast and the reliability is high.

[0091] In the system provided in this embodiment, the number of the editing end and the display end is not limited, and only the corresponding editing and display need to be completed based on the text component provided in the first embodiment. In different implementation scenarios, multiple editing ends can be used to correspond to the same display end, so as to use the same display end to complete the display of different contents; one editing end can be used to correspond to multiple display ends, so as to realize multi-screen simultaneous display; multiple editing ends can also be used to correspond to multiple display ends to achieve more flexible control. In specific use, the corresponding relationship between the editing end and the display end can also be managed through different permission management or access control methods to avoid conflicts.

[0092] In actual implementation, both the editing end and the display end can be implemented using the hardware structure as Figure 14 shown. It includes: at least one processor 11; and a memory 12 communicatively connected to the at least one processor 11, Figure 14 Taking one processor 11 as an example. The memory 12 stores instructions executable by the at least one processor 11, and the instructions are executed by the at least one processor 11, so that the at least one processor 11 can execute the above Figure 4 、 Figure 9 and Figure 10 actions that need to be performed by the editing end or the display end in the method for multi-display device text display described above. The processor 11 and the memory 12 can be connected by a bus or other means, Figure 14 Taking the connection by bus as an example.

[0093] The memory 12, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the method of text display on a multi-display device in the embodiments of the present application. The processor 11 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions, and modules stored in the memory 12, that is, implements the method provided in the above method embodiments.

[0094] The memory 12 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created when the multi-display device text display method is executed by the editing end or the display end, etc. In addition, the memory 12 may include high-speed random access memory and may also include 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 embodiments, the memory 12 may optionally include a memory remotely set relative to the processor 11, and these remote memories can be connected to the editing end or the display end through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0095] The one or more modules are stored in the memory 12 and, when executed by the one or more processors 11, perform the functions of the editing end or the display end in the method of text display on a multi-display device in any of the above method embodiments. For example, execute the Figure 4 , Figure 9 and Figure 10 method steps.

[0096] The above product can execute the method provided in the embodiments of the present application and has functional modules and beneficial effects corresponding to the executed method. For technical details not described in detail in this embodiment, reference can be made to the method provided in the embodiments of the present application.

[0097] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0098] Through the description of the above embodiments, those of ordinary skill in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The said program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the said storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order, and there are many other changes in different aspects of the present invention as described above. For the sake of brevity, they are not provided in detail; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for text display on multiple display devices, characterized in that, it includes: Editing the text to be displayed and text parameters in the text components at the editing end, and setting the component parameters for each text component, where the upper left corner of the text component is the upper left corner of the text to be displayed, and there is no inner padding in the text component; Sending the text to be displayed, text parameters, and component parameters of each text component in text form to the display end, and the display end displays the text to be displayed in the corresponding text component according to the text parameters based on the component parameters of each text component.

2. The method for text display on multiple display devices according to claim 1, characterized in that, In the editing of the text to be displayed and text parameters in the text components at the editing end, the editing of the text to be displayed specifically includes: Taking the upper left corner of the text component as the starting coordinate of the text, and drawing the text to be displayed in the text component; When drawing, aligning the upper left corner coordinate of the text to be displayed with the starting coordinate of the text, and aligning the lower right corner of the text component with the lower right corner of the text to be displayed.

3. The method for text display on multiple display devices according to claim 2, characterized in that, The alignment of the lower right corner of the text component with the lower right corner of the text to be displayed further includes: When the display size of the text to be displayed changes, resetting the lower right corner coordinate of the text component according to the changed lower right corner coordinate of the text to be displayed.

4. The method for text display on multiple display devices according to claim 1, characterized in that, In the editing of the text to be displayed and text parameters in the text components at the editing end, the editing of the text parameters specifically includes: Setting one or more parameters of the font, font size, text color, text background, and text special effects of the text to be displayed, and using the set parameters as the text parameters.

5. The method for text display on multiple display devices according to claim 4, characterized in that, When setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the font, it specifically includes: Obtaining the list of fonts supported by the display end, and selecting the font of the text to be displayed from the supported font list; And / or, setting a preferred font and setting at least one alternative font, where the alternative font is a font in the common font library.

6. The method for text display on multiple display devices according to claim 4, characterized in that, When setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the font size, it specifically includes: Obtaining the pixel size of the drawable range of the display end, and setting the corresponding editing area pixel ratio at the editing end according to the obtained pixel size, so as to view the display effect after setting the font size at the editing end.

7. The method for text display on multiple display devices according to claim 4, characterized in that, When setting one or more of the font, font size, text color, text background, and text special effects of the text to be displayed, when setting the text color, it specifically includes: Obtaining the color of the text background, and / or obtaining the color of the display position of the corresponding text component at the display end; Set the text color according to the acquired color, and / or set the color of the text edge according to the acquired color.

8. The method for text display on a multi-display device according to claim 4, wherein, when setting one or more of the font, font size, text color, text background, and text effects of the text to be displayed, when setting the text background, it specifically includes: Set the text background to transparent; and / or set the text background according to the text effects; and / or set the text background according to the background of the corresponding text component display position on the display end.

9. The method for text display on a multi-display device according to claim 4, wherein, when setting one or more of the font, font size, text color, text background, and text effects of the text to be displayed, when setting the text effects, it specifically includes: Obtain the list of text effects supported by the display end, and select the text effects of the text to be displayed from the supported list of text effects; and / or set a preferred text effect and set at least one alternative text effect, wherein the alternative text effect is a text effect in the common text effect library.

10. The method for text display on a multi-display device according to claim 4, wherein, when setting one or more of the font, font size, text color, text background, and text effects of the text to be displayed, when setting the text effects, it further includes: When the text effect is a dynamic effect, set at least two groups of text parameters and / or component parameters according to the dynamic effect, as well as the switching time and switching mode of different text parameters and / or component parameters.

11. The method for text display on a multi-display device according to claim 1, wherein, the display end displays the text to be displayed in the corresponding text component according to the component parameters of each text component, specifically including: Determine the starting coordinates and text pixel size of the text to be displayed in the text component according to the component parameters of each text component; Use the starting coordinates as the starting point for drawing the text to be displayed, and draw the text to be displayed according to the text parameters and text pixel size.

12. The method for text display on a multi-display device according to claim 11, wherein, when determining the starting coordinates and text pixel size of the text to be displayed in the text component according to the component parameters of each text component, it specifically includes: Calculate the upper left corner pixel coordinates of the text to be displayed as the starting coordinates according to the starting ratio coordinates in the component parameters; Calculate the text pixel size of the text to be displayed according to the size ratio in the component parameters.

13. The method for text display on a multi-display device according to claim 1, wherein, when displaying the text to be displayed in the corresponding text component according to the text parameters, it further includes: When the text effect is a dynamic effect, switch the text parameters of the text to be displayed in the corresponding text component according to the switching time and switching mode of each group of text parameters.

14. A system for text display on a multi-display device, wherein, it includes an editing end and a display end, specifically including: The editing end edits the text component according to the method for text display of a multi-display device described in any one of claims 1-13; The display end displays the text component according to the method for text display of a multi-display device described in any one of claims 1-13.