CN114492300A - Word processing method, device and system, storage medium and display control card - Google Patents

Word processing method, device and system, storage medium and display control card Download PDF

Info

Publication number
CN114492300A
CN114492300A CN202011273189.3A CN202011273189A CN114492300A CN 114492300 A CN114492300 A CN 114492300A CN 202011273189 A CN202011273189 A CN 202011273189A CN 114492300 A CN114492300 A CN 114492300A
Authority
CN
China
Prior art keywords
display
character
target
outline
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011273189.3A
Other languages
Chinese (zh)
Inventor
高杰
韦桂锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202011273189.3A priority Critical patent/CN114492300A/en
Publication of CN114492300A publication Critical patent/CN114492300A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a word processing method, a word processing device, a word processing system, a storage medium and a display control card. The word processing method comprises the following steps: acquiring a target character; acquiring display parameters of the target characters; extracting a target character data block required for displaying the target character; analyzing the target character data block to obtain a target character outline of the target character; zooming the target character contour line according to the display parameters to obtain a processed character contour line; and performing rasterization processing on the processed character outline according to the display parameters to obtain character display data for display. The embodiment of the invention can save the space of the memory and reduce the cost of equipment.

Description

Word processing method, device and system, storage medium and display control card
Technical Field
The present invention relates to the field of display control technologies, and in particular, to a word processing method, a word processing apparatus, a word processing system, a storage medium, and a display control card.
Background
With the rapid development of LED (Light-Emitting Diode) display technology, LED display screens are applied to various fields to display images and videos due to their advantages of high brightness, wide viewing angle, and the like. Meanwhile, characters can be displayed On the Display Screen, but the Display of the characters is mainly applied to On-Screen Display (OSD) Display, and the Display of the characters is mainly used for displaying the network port number of a Display controller connected with the current LED box body, and displaying monitoring information, Screen body information, video source information and the like during the configuration and the Screen connection operation of the Display Screen. The existing technical scheme is as follows: the method comprises the steps that lattice modulus of a specific font is conducted on the upper computer through modulus taking software in advance, parameters such as the size, the style and the display mode of the font are set in the modulus taking process, the modulus taking software conducts binarization operation on characters or characters to be displayed according to set preset font parameter information, data information of corresponding pixel points on the characters is generated, and whether the corresponding pixel points are displayed or not is controlled. And then, the upper computer sends the pixel point data generated by the mold extraction software to the display control card through the LED display screen controller, the display control card maps the pixel point data to the actual physical pixel points of the display screen in an equal proportion, the pixel points are displayed or closed according to the pixel point data, and after a complete font datum is refreshed, the corresponding font is displayed on the display screen. However, in the implementation process of this method, parameter information such as font width and the like needs to be preset when the font is generated by the font fetching software of the upper computer, so the size of the generated font cannot be changed, and meanwhile, information such as the font fetching mode, dot matrix format and the like needs to be preset when the font is generated, so that the character display mode is limited, and the method has no universality, poor maintainability and portability; when a plurality of font sizes need to be displayed, a plurality of character models need to be generated and stored, which results in a large consumption of storage space and an increase in hardware cost.
Disclosure of Invention
Therefore, in view of at least some of the drawbacks and disadvantages of the prior art, embodiments of the present invention provide a word processing method, a word processing apparatus, a word processing system, a storage medium, and a display control card.
Specifically, a method for processing a word provided in an embodiment of the present invention includes: acquiring a target character; acquiring display parameters of the target characters; extracting a target character data block required for displaying the target character; analyzing the target character data block to obtain a target character outline of the target character; zooming the target character contour line according to the display parameters to obtain a processed character contour line; and performing rasterization processing on the processed character outline according to the display parameters to obtain character display data for display.
According to the technical scheme, the target character outline is obtained according to the character data block of the extracted and analyzed target character, the target character outline is subjected to zooming processing and rasterization processing according to the display parameters to obtain character display data, so that display of various font sizes of characters needing to be displayed can be realized through one font file, the problems that in the prior art, a plurality of sets of font data need to be generated and stored, storage space is greatly consumed, hardware cost is increased are solved, and equipment cost is reduced.
In one embodiment of the invention, the display parameter comprises a text width; the acquiring of the display parameters of the target characters comprises: acquiring the resolution of a display screen loaded by the display control card; determining the size of a display area of the target character according to the resolution of the display screen; and determining the character width of the target characters according to the size of the display area and the number of the target characters.
In one embodiment of the present invention, the display parameters include a text alignment mode and a size of a display area; the rasterizing the processed character outline according to the display parameters to obtain character display data for displaying comprises the following steps: determining the position of the display area according to the character alignment mode; mapping the processed character outline lines according to the size and the position of the display area to obtain character outline display data; and supplementing the character outline display data to obtain the character display data.
In an embodiment of the present invention, the extracting a target text data block required for displaying the target text includes: reading a font file; analyzing a plurality of offset information in an offset list in the font file; acquiring target offset information of the target characters from a plurality of offset information in the offset list according to the target characters; and extracting the target text data block from the font file according to the target offset information.
In another aspect, an embodiment of the present invention provides a word processing apparatus, including: the target character acquisition module is used for acquiring target characters; the display parameter acquisition module is used for acquiring the display parameters of the target characters; the character data block extraction module is used for extracting a target character data block required by displaying the target character; the character data block analysis module is used for analyzing the target character data block to obtain a target character outline of the target character; the outline zooming module is used for zooming the target character outline according to the display parameters to obtain a processed character outline; and the outline line rasterizing module is used for rasterizing the processed character outline line according to the display parameters to obtain character display data for display.
In one embodiment of the invention, the display parameter comprises a text width; the display parameter acquisition module comprises: the display screen resolution acquisition unit is used for acquiring the resolution of the display screen loaded by the display control card; the display area size determining unit is used for determining the size of the display area of the target character according to the resolution of the display screen; and the character width determining unit is used for determining the character width of the target characters according to the size of the display area and the number of the target characters.
In one embodiment of the present invention, the display parameters include a text alignment mode and a size of a display area; the contour line rasterization module comprises: a display area position determining unit, configured to determine a position of the display area according to the text alignment manner; the character outline line mapping unit is used for mapping the processed character outline lines according to the size and the position of the display area to obtain character outline display data; and the character display data supplement unit is used for supplementing the character outline display data to obtain the character display data.
In another aspect, an embodiment of the present invention provides a word processing system, including: a memory and a processor coupled to the memory, the memory storing a computer program, the processor executing the word processing method according to any of the preceding claims when executing the computer program.
In another aspect, an embodiment of the present invention provides a storage medium, which is a non-volatile memory and stores computer-executable instructions, where the computer-executable instructions are used to execute a word processing method according to any one of the foregoing descriptions.
In another aspect, an embodiment of the present invention provides a display control card, including: a display data and control signal output interface; a programmable logic device electrically connected to the display data and control signal output interface and including: a soft core processing unit and a data processing unit; wherein the soft core processing unit is configured to: acquiring target characters and acquiring display parameters of the target characters; extracting a target character data block required for displaying the target character; analyzing the target character data block to obtain a target character outline of the target character; zooming the target character contour line according to the display parameters to obtain a processed character contour line; the data processing unit is configured to: and performing rasterization processing on the processed character outline according to the display parameters to obtain character display data for display.
The above technical solution may have one or more of the following advantages: according to the embodiment of the invention, the target character outline is obtained according to the extracted and analyzed character data block of the target character, and the character display data is obtained by carrying out zooming processing and rasterization processing on the target character outline according to the display parameters, so that the display of various font sizes of characters needing to be displayed can be realized through one font file, the problems that a large amount of storage space is consumed and the hardware cost is increased due to the fact that a plurality of sets of font data need to be generated and stored in the prior art are solved, the storage space is saved, and the equipment cost is reduced. In addition, the character width of the target characters is determined according to the resolution ratio of the display screen carried by the display control card to be adaptive to display of the target characters, and when the display screen displaying the target characters is changed, the size of the target characters can be dynamically changed along with the size change of the display screen, so that the display effect and the user experience of the target characters on the display screen are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a word processing method according to an embodiment of the present invention.
Fig. 2 is a detailed flowchart of step S12 in fig. 1.
Fig. 3 is a detailed flowchart of step S13 in fig. 1.
Fig. 4 is a detailed flowchart of step S16 in fig. 1.
Fig. 5 is a schematic structural diagram of a display system according to the present invention.
FIG. 6 is a schematic structural diagram of the display control card in FIG. 5.
Fig. 7 is a schematic diagram of a process for implementing word processing by the programmable logic device in fig. 6.
FIG. 8 is a schematic diagram of another display control card shown in FIG. 5.
Fig. 9 is a block diagram of a word processing device according to a second embodiment of the present invention.
Fig. 10a is a schematic block diagram of the display parameter acquiring module in fig. 9.
Fig. 10b is a block diagram of the outline rasterization module in fig. 9.
Fig. 11 is a schematic structural diagram of a word processing system according to a third embodiment of the present invention.
Fig. 12 is a schematic structural diagram of a storage medium according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
Referring to fig. 1, a method for processing a word according to an embodiment of the present invention is provided. The word processing method is suitable for a display control card and comprises the following steps:
s11: acquiring a target character;
s12: acquiring display parameters of the target characters;
s13: extracting a target character data block required for displaying the target character;
s14: analyzing the target character data block to obtain a target character outline of the target character;
s15: zooming the target character contour line according to the display parameters to obtain a processed character contour line; and
s16: and performing rasterization processing on the processed character outline according to the display parameters to obtain character display data for display.
According to the embodiment of the invention, the target character outline is obtained according to the extracted and analyzed character data block of the target character, and the character display data is obtained by carrying out zooming processing and rasterization processing on the target character outline according to the display parameters, so that the display of various font sizes of characters needing to be displayed can be realized through one font file, the problems that a large amount of storage space is consumed and the hardware cost is increased due to the fact that a plurality of sets of font data need to be generated and stored in the prior art are solved, the storage space is saved, and the equipment cost is reduced.
Specifically, the target text of step S11 may be, for example, text such as letters, glyphs, or characters, etc. sent from the upper computer and through the display controller to the display control card. In addition, when the display control card is provided with a control component or is connected with the control component, the target characters can also be determined through a display instruction triggered by the operation of a user on the control component, wherein the display instruction is different, and the acquired target characters are different. The manipulation part 140 may include, for example, but not limited to, a key, a joystick, a knob, a touch screen, and the like. The manipulation modes of the manipulation member 140 by the user include, for example and without limitation: the number of times of pressing the key, the duration of pressing, the direction, speed and distance of shaking the rocker, the direction and angle of rotation of the knob, and the touch operation on the touch screen.
Specifically, the display parameter of the target text includes, for example, a text width. As shown in fig. 2, step S12 includes, for example:
s121: acquiring the resolution of a display screen loaded by the display control card;
s123: determining the size of a display area of the target character according to the resolution of the display screen;
s125: and determining the character width of the target characters according to the size of the display area and the number of the target characters.
According to the embodiment of the invention, the character width of the target character is determined according to the resolution of the display screen loaded by the display control card to be adaptive to display of the target character, and when the display screen displaying the target character is changed, the size of the target character can be dynamically changed along with the size change of the display screen, so that the display effect and the user experience of the target character on the display screen are improved.
Specifically, as shown in fig. 3, step S13 includes, for example:
s131: reading a font file;
s133: analyzing a plurality of offset information in an offset list in the font file;
s135: acquiring target offset information of the target characters from a plurality of offset information in the offset list according to the target characters; and
s137: and extracting the target character data block from the font file according to the target offset information.
The font file here may be, for example, a TTF (true Type font) font file, and the TTF font is, for example, in a vector font format. The data in the font file is divided into a number of blocks, each of which records a different type of information. Specifically, the font file includes an offset list (OffsetTable) and a plurality of text data blocks. The offset table is located at the beginning of the TTF file, and the relative position of each text data block is stored in the offset table, that is, the offset list includes the relative storage position information (or referred to as offset information) of all the texts included in the font file. The offset information includes, for example, the name of the text data block, the offset address of the text data block, the data length of the text data block, and the like. Each text data block includes data block contents required for displaying the text, such as head, maxp, CMapTable, LocaTable, and the like. Wherein, the head data block mainly records the version, the side length and partial parameters of other data blocks; the maxp block mainly records information related to the number of fonts, such as the maximum number, for example, records how many Glyph structures are in a font file, each Glyph structure corresponds to a font, each Glyph structure is formed by a plurality of Contour lines (Contour), and each Contour is formed by a plurality of second-order Bezier curves and straight lines. The CMapTable and the LocaTable are used for finding a Glyph structure of a font, the CMapTable adopts a certain mapping mode to map codes of formats of input characters to a label, the label represents a subscript of the corresponding Glyph, in addition, the positions of the Glyph stored in a whole font file need to be located through the LocaTable according to the number of the Glyph, the CMapTable and the LocaTable are typically two mapping tables, and the specific positions of corresponding outline information in the file are found according to the input characters. And acquiring a corresponding offset address through the name of the target character, and reading a character data block of the target character through the corresponding offset address.
In addition, the display parameters include a text alignment mode and a size of a display area. As shown in fig. 4, step S16 may include, for example:
s161: determining the position of the display area according to the character alignment mode;
s163: mapping the processed character outline lines according to the size and the position of the display area to obtain character outline display data; and
s165: and supplementing the character outline display data to obtain the character display data.
For better understanding of the present embodiment, a display screen is taken as an LED display screen as an example, and the specific process and principle of the word processing method of the present embodiment are described with reference to fig. 5 to 8.
As shown in fig. 5, the word processing method provided in this embodiment is suitable for the display control card 100 in the display system 10, and displays characters and the like to be displayed on the display screen 200 connected to the display control card 100. The display system 10 may, for example, include an upper computer 400, a display controller 300, a display control card 100, and a display screen 200, which are connected in sequence. The upper computer 400 may be, for example, a PC, and is configured to configure the display screen 200 through the display controller 300 and the display control card 100, or send characters or symbols to be displayed on the display screen 200 to the display controller 300 and the display control card 100. The display controller 300, also called a transmitting card, has a function of performing image processing on received image data and packing the processed image data into a corresponding format, for example, a network packet format, and outputting the packed image data to the display control card 100, which may also typically implement its function by using a programmable logic device.
As mentioned above, as shown in fig. 6, the display control card 100 may include, for example, an image data input circuit 120, a programmable logic device 110, and a display data and control signal interface 130. The programmable logic device 110 is connected between the image data input circuit 120 and the display data and control signal interface 130. The image data input circuit 120 is used for receiving a video source or an image input by the display controller, wherein the image data input circuit 120 may be an ethernet interface circuit, for example. The ethernet interface circuit includes, for example, an ethernet interface, and an ethernet physical layer transceiver connected between the ethernet interface and the programmable logic device 110, and may further include a network transformer connected between the ethernet interface and the ethernet physical layer transceiver. The ethernet interface is, for example, an RJ45 interface. In addition, the image data input circuit 130 may also be an optical interface circuit, which may for example include an optical fiber interface and a photoelectric conversion module connected between the optical fiber interface and the programmable logic device 110, for receiving and processing image data transmitted through the optical fiber. The Programmable logic device 110 may be, for example, an FPGA (Field Programmable Gate Array) for performing image processing on image data acquired from the image data input circuit 120, converting the processed image data into display data and control signals in a specific format, such as TTL format, and outputting the display data and control signals to the display screen 200 connected thereto through the display data and control signal interface 130. The display data and control signal interface 130 may be, for example, a pin header, a box header, etc. connector. More specifically, as shown in fig. 7, the programmable logic device 110 further includes, for example, a soft core processing unit 111, an image superimposing module 113, and a data conversion unit 115. The soft core processing unit 111 is, for example, MicroBlaze, which is a microprocessor IP core based on the FPGA of Xilinx corporation, and can respond to software and hardware interrupts, perform exception handling, and by adding control logic, can extend external interrupts, etc. The soft core processing unit 111 may be, for example, configured to process a text to be displayed to obtain a text outline, and map the text outline into text display data corresponding to the display screen 200. The image superimposing unit 113 may, for example, perform superimposing processing on the character display data and other image or layer data to obtain a target output image. The data conversion unit 114 may be used to convert the target output image into display data and control signals and output to the display screen 200 through the display data and control signal interface.
The display screen 200 may be, for example, an LED display screen, which may, for example, include at least one LED lamp panel, and each of the LED lamp panels includes a plurality of LED lamp points. Typically, the display screen 200 is used to transmit display data and control signals input by the display control card 100 to the LED lamp panel connected thereto to display corresponding images.
Referring to fig. 7, the method for processing a text according to the embodiment of the present invention mainly obtains a target text outline according to a text data block of an extracted and analyzed target text, and performs scaling and rasterization processing on the target text outline according to a display parameter to obtain text display data, so that display of various font sizes of the text to be displayed can be implemented by using one font file, thereby avoiding problems of a large amount of storage space consumption and hardware cost increase caused by the need of generating and storing multiple sets of font data in the prior art, and reducing equipment cost, which is specifically as follows:
first, the soft core processing unit 111 of the programmable logic device 110 of the display control card 100 acquires a target word. The target text is also the text or character that needs to be displayed on the display screen 200. The target characters can be character contents which are received by the image data input circuit 120 from the upper computer 400 and are transmitted by the display controller 300, so that the user can realize linkage display of an LED display screen and an upper computer interface when realizing the character display function of the display screen, and the man-machine interaction function is enhanced. The target characters can be various characters or characters such as Chinese characters and foreign characters.
In addition, the soft core processing unit 111 also obtains the display parameters of the target text. That is, display parameter data required for displaying the target text. The display parameters include, for example, one or more of the font width, the display range, the text alignment manner, and the like of the target text. The acquisition of the display parameters may be, for example, built in the display control card 100, for example, on a nonvolatile memory thereon, so as to be called by the soft core processing unit 111, or may be sent by the upper computer. In addition, the display parameters may even be calculated by the soft core processing unit 111 according to the parameters of the display screen 200 loaded by the display control card 100. Specifically, taking the font width of the display parameter as an example, the soft core processing unit 111 obtains the resolution (width × height) of the display screen 200 loaded by the display control card 100, and then determines the size of the display area of the target text according to the resolution of the display screen 200. Generally, the larger the target text display, the clearer and more comfortable the user will look and experience better. Therefore, the maximum size of the display area of the target text is usually limited, for example, the size of the display area of the target text, such as the width and height, should not exceed 70% of the width and height of the display screen. For example, the resolution of the display screen 200 is 100 × 100, then the size of the display area must not exceed 70 × 70. And finally, the soft core processing unit 111 determines the character width of the target characters according to the size of the display area and the number of the target characters. For example, the number of target characters is 5, the width of the display area is 70, and the font width of a single character is: 70/5-14.
In light of the above, the text or character mentioned here may be, for example, a ttf (true Type font) font, which may support not only conventional character display, but also special characters, etc., and may support equal-scale enlargement of text, thereby greatly increasing display flexibility and meeting various display requirements. TTF fonts can be stored in a memory within display control card 100, such as a non-volatile memory, for example, in the form of a font file or a font library, or an external non-volatile memory, such as SPI FLASH, SD card, and usb disk, etc., or even directly in the internal RAM of programmable logic device 110 for programmable logic device 110 to call. In addition, the font file or the font library may adopt a standard vector font file or a standard font library, or a font file or a font library obtained by adjusting the standard font file or the standard font library according to the user requirement, or even a font file or a font library created by the user, which is not limited in the present invention.
Of course, as shown in fig. 8, display control card 100 may further include a manipulation unit 140, where manipulation unit 140 is connected to programmable logic device 110. The soft core processing unit 111 may further obtain the target text triggered by the operation of the user on the manipulation component, where the target text corresponds to a manipulation mode of the manipulation component by the user. The manipulation part 140 may include, for example, but not limited to, a key, a joystick, a knob, a touch screen, and the like. The manipulation modes of the manipulation member 140 by the user include, for example and without limitation: the number of times of pressing the key, the duration of pressing, the direction, speed and distance of shaking the rocker, the direction and angle of rotation of the knob, and the touch operation on the touch screen. The target characters are obtained through keys instead of the upper computer 400 and the display controller 300, so that the characters can be displayed on the display screen 200 without connecting the display controller 300, and the application scene of the character display is expanded; meanwhile, different target characters are generated through different control modes of the control component, for example, when a user triggers different key times, different character contents can be displayed on the display screen, the page turning function of character display can be realized, and the display contents and the display effect of the characters can be enriched. In addition, the display reference of the target characters can also be obtained through the control of the user on the control component, so that the characters are more flexibly and conveniently displayed and adjusted.
Then, the soft core processing unit 111 extracts a target text data block required for displaying the target text. Specifically, the soft core processing unit 111 reads a font file, such as a TTF file, and then parses the content of the offset list part in the font file, where the content includes the number of text data blocks in the font file, and offset information of each text data block, such as an offset address, a data length, and the like; then, acquiring target offset information of the target character, such as an offset address and a data length, from a plurality of offset information in the offset list according to the name of the target character, such as the target character; and extracting the target text data block from the font file according to the target offset information. The target text data block here includes much information required for displaying the target text.
As mentioned above, the soft core processing unit 111 analyzes the target text data block to obtain a target text outline of the target text. And the soft core processing unit 111 analyzes the target character data block according to the rule and the analysis protocol of the TTF font to obtain a target character outline. The target text outline here includes, for example, a curved line and a straight line, and preferably, the curved line may be, for example, a quadratic bezier curve.
And then, the soft core processing unit 111 performs scaling processing on the target character outline according to the display parameters to obtain a processed character outline. Specifically, the target character contour line is scaled according to the target font width of the target character. It should be noted here that the target text outline has an initial default font width. The soft core processing unit 111 compares the target font width of the target character with the default font width, and reduces or enlarges the target character outline when the target font width and the default font width are not equal to each other, and does not scale the target character outline when the target character outline and the default font width are equal to each other. And then obtaining the processed character contour lines.
Then, the soft core processing unit 111 performs rasterization processing on the processed text outline according to the display parameters to obtain text display data for display. Specifically, the soft core processing unit 111 determines the position of the display area according to the character alignment mode; mapping the processed character outline lines according to the size and the position of the display area to obtain character outline display data; and supplementing the character outline display data to obtain the character display data. The text alignment manner may include, for example, a horizontal alignment manner and a vertical alignment manner, the horizontal alignment manner includes, for example, left alignment, right alignment, center alignment, and the like, and the vertical alignment manner may also include upper alignment, middle alignment, lower alignment, and the like. The soft core processing unit 111 may determine the initial coordinate of the display area of the target text on the display screen 200 according to the alignment mode and the resolution of the display screen, and usually takes the vertex of the upper left corner of the display area as the initial coordinate; then mapping the processed character outline to display data of corresponding pixel points on a display screen according to the size and the position of the display area to obtain character outline display data; then, the soft core processing unit 111 fills or supplements the text outline display data to obtain complete text display data corresponding to the target text. The text display data here is, for example, display data represented by 0 or 1. Further, the text display data herein may be, for example, image display data represented in RGB format, that is, the display data of each pixel point of the text portion to be displayed is represented by three color channels. The display parameters of the target text may include text color, which is obtained in the same manner as the other display parameters. Therefore, the display of the color characters can be realized, and the diversity of character display is improved.
Finally, the image overlay module 112 of the programmable logic device overlays the obtained text display data and other data to be displayed to obtain a target output picture, and the data conversion and output unit 113 converts the target output picture into display data and a control signal and outputs the display data and the control signal to the display screen 200 for display. The method can be realized by a common conversion method in the prior art, and is not described in detail. The other data to be displayed here includes, for example, display data of other images to be output, and may also be display data of a background screen, which is not limited in the present invention.
In summary, in the embodiments of the present invention, the target text outline is obtained according to the text data block of the extracted and analyzed target text, and the text display data is obtained by performing scaling and rasterization on the target text outline according to the display parameter, so that display of various font sizes of the text to be displayed can be realized by one font file, thereby avoiding a problem that a large amount of storage space is consumed and hardware cost is increased due to the need to generate and store multiple sets of font data in the prior art, saving the storage space, and reducing the equipment cost. In addition, the character width of the target characters is determined according to the resolution ratio of the display screen carried by the display control card to be adaptive to display of the target characters, and when the display screen displaying the target characters is changed, the size of the target characters can be dynamically changed along with the size change of the display screen, so that the display effect and the user experience of the target characters on the display screen are improved. Moreover, the character display data is color image data, so that the display of color characters can be realized, and the diversity of character display is improved. Because the unified vector font file and the font library are adopted and the font analyzing processes are mutually compatible, the difference of program maintenance is reduced.
[ second embodiment ]
Referring to fig. 9, a word processing apparatus 400 according to an embodiment of the present invention is used to implement the word processing method in the foregoing first embodiment. Word processing device 400 may include, for example: a target text obtaining module 410, a display parameter obtaining module 420, a text data block extracting module 430, a text data block parsing module 440, an outline scaling module 450, and an outline rasterizing module 460.
The target text acquiring module 410 is configured to acquire a target text; the display parameter acquiring module 420 is configured to acquire a display parameter of the target text; the text data block extraction module 430 is configured to extract a target text data block required for displaying the target text; the text data block analysis module 440 is configured to analyze the target text data block to obtain a target text outline of the target text; the outline zooming module 450 is configured to zoom the target text outline according to the display parameter to obtain a processed text outline; the outline rasterizing module 460 is configured to perform rasterization processing on the processed text outline according to the display parameters to obtain text display data for display.
Furthermore, as shown in fig. 10a, the display parameter acquiring module 420 may include, for example:
a display screen resolution acquiring unit 421, configured to acquire a resolution of a display screen loaded by the display control card;
a display area size determining unit 423, configured to determine the size of the display area of the target text according to the resolution of the display screen;
a text width determining unit 425, configured to determine a text width of the target text according to the size of the display area and the number of the target text.
In addition, as shown in fig. 10b, the outline line rasterization module 460 may, for example, include:
a display area position determining unit 461, configured to determine a position of the display area according to the text alignment manner;
a text outline mapping unit 463 configured to map the processed text outline according to the size and position of the display area to obtain text outline display data; and
and a text display data supplementing unit 465, configured to supplement the text outline display data to obtain the text display data.
For specific functional details of each module of the word processing device 400 based on the LED display screen provided in this embodiment, reference may be made to the related description of each step of the word processing method in the foregoing first embodiment, and no further description is given here. In addition, it should be noted that each module, unit and sub-unit of the LED display screen-based word processing device 400 may be a software module or unit, for example, a programmable logic device integrated in the display control card in the first embodiment.
[ third embodiment ]
As shown in FIG. 11, a third embodiment of the present invention provides a word processing system 500. Word processing system 500 includes, for example, a memory 510 and a processor 530 coupled to memory 510. The memory 510 may be, for example, a non-volatile memory having stored thereon a computer program 511. Processor 530 may be, for example, an embedded processor. The processor 530 executes the word processing method in the first embodiment when running the computer program 511.
The detailed operation and technical effects of the word processing system 500 in this embodiment are described with reference to the first embodiment.
[ fourth example ] A
As shown in fig. 12, an embodiment of the present invention provides a storage medium 600. The storage medium 600 is, for example, a nonvolatile memory, and specifically, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The storage medium 600 has stored thereon computer-executable instructions 610. The storage medium 600 may execute the computer-executable instructions 610 by one or more processors or processing devices to implement the word processing method of the first embodiment described above.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and technical solutions of the embodiments can be arbitrarily combined and used without conflict between technical features and structures, and without departing from the purpose of the present invention.
Furthermore, it should be appreciated that in the embodiments provided by the present invention, the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of word processing, comprising:
acquiring target characters;
acquiring display parameters of the target characters;
extracting a target character data block required for displaying the target character;
analyzing the target character data block to obtain a target character outline of the target character;
zooming the target character contour line according to the display parameters to obtain a processed character contour line;
and performing rasterization processing on the processed character outline according to the display parameters to obtain character display data for display.
2. The word processing method of claim 1 wherein the display parameter comprises a word width; the obtaining of the display parameters of the target characters comprises:
acquiring the resolution of a display screen loaded by a display control card;
determining the size of a display area of the target character according to the resolution of the display screen;
and determining the character width of the target characters according to the size of the display area and the number of the target characters.
3. The word processing method of claim 1 wherein the display parameters include a word alignment mode and a size of a display area; the rasterizing the processed character outline according to the display parameters to obtain character display data for displaying comprises the following steps:
determining the position of the display area according to the character alignment mode;
mapping the processed character outline lines according to the size and the position of the display area to obtain character outline display data; and
and supplementing the character outline display data to obtain the character display data.
4. The word processing method of claim 1, wherein said extracting a target text data block required for displaying the target text comprises:
reading a font file;
analyzing a plurality of offset information in an offset list in the font file;
acquiring target offset information of the target characters from a plurality of offset information in the offset list according to the target characters; and
and extracting the target character data block from the font file according to the target offset information.
5. A word processing device, comprising:
the target character acquisition module is used for acquiring target characters;
the display parameter acquisition module is used for acquiring the display parameters of the target characters;
the character data block extraction module is used for extracting a target character data block required by displaying the target character;
the character data block analysis module is used for analyzing the target character data block to obtain a target character outline of the target character;
the outline zooming module is used for zooming the target character outline according to the display parameters to obtain a processed character outline;
and the outline line rasterizing module is used for rasterizing the processed character outline line according to the display parameters to obtain character display data for display.
6. The word processing device of claim 5 wherein the display parameter comprises a word width; the display parameter acquisition module comprises:
the display screen resolution acquisition unit is used for acquiring the resolution of the display screen loaded by the display control card;
the display area size determining unit is used for determining the size of the display area of the target character according to the resolution of the display screen;
and the character width determining unit is used for determining the character width of the target characters according to the size of the display area and the number of the target characters.
7. The word processing device of claim 5 wherein the display parameters include a word alignment and a size of a display area; the contour line rasterization module comprises:
the character width determining unit is used for determining the position of the display area according to the character alignment mode;
the character width determining unit is used for mapping the processed character outline lines according to the size and the position of the display area to obtain character outline display data; and
and the character width determining unit is used for supplementing the character outline display data to obtain the character display data.
8. A word processing system, comprising: a memory and a processor coupled to the memory, the memory storing a computer program that, when executed by the processor, performs a word processing method according to any one of claims 1 to 4.
9. A storage medium, wherein the storage medium is a non-volatile memory and stores computer-executable instructions, wherein the computer-executable instructions are configured to perform the word processing method according to any one of claims 1 to 4.
10. A display control card, comprising:
a display data and control signal output interface;
a programmable logic device electrically connected to the display data and control signal output interface and including: a soft core processing unit and a data processing unit;
wherein the soft core processing unit is configured to: acquiring target characters and acquiring display parameters of the target characters; extracting a target character data block required for displaying the target character; analyzing the target character data block to obtain a target character outline of the target character; zooming the target character contour line according to the display parameters to obtain a processed character contour line;
the data processing unit is configured to: and performing rasterization processing on the processed character outline according to the display parameters to obtain character display data for display.
CN202011273189.3A 2020-11-13 2020-11-13 Word processing method, device and system, storage medium and display control card Pending CN114492300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011273189.3A CN114492300A (en) 2020-11-13 2020-11-13 Word processing method, device and system, storage medium and display control card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011273189.3A CN114492300A (en) 2020-11-13 2020-11-13 Word processing method, device and system, storage medium and display control card

Publications (1)

Publication Number Publication Date
CN114492300A true CN114492300A (en) 2022-05-13

Family

ID=81491092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011273189.3A Pending CN114492300A (en) 2020-11-13 2020-11-13 Word processing method, device and system, storage medium and display control card

Country Status (1)

Country Link
CN (1) CN114492300A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6498608B1 (en) * 1998-12-15 2002-12-24 Microsoft Corporation Method and apparatus for variable weight outline emboldening of scalable outline fonts
US20060146075A1 (en) * 2005-01-06 2006-07-06 Weiss Benjamin D Method and apparatus for magnifying computer screen display
CN101341481A (en) * 2005-12-19 2009-01-07 微软公司 Automating font control value determination
CN105513547A (en) * 2014-09-24 2016-04-20 上海通用汽车有限公司 Font depicting method based on sub-pixel technology
CN106383689A (en) * 2016-09-20 2017-02-08 青岛海信电器股份有限公司 Display font size adjustment method and apparatus, and terminal device
CN109062521A (en) * 2018-07-20 2018-12-21 珠海智汇网络设备有限公司 A kind of print data processing method and device, computer installation, storage medium
CN111221596A (en) * 2018-11-23 2020-06-02 北京方正手迹数字技术有限公司 Font rendering method and device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6498608B1 (en) * 1998-12-15 2002-12-24 Microsoft Corporation Method and apparatus for variable weight outline emboldening of scalable outline fonts
US20060146075A1 (en) * 2005-01-06 2006-07-06 Weiss Benjamin D Method and apparatus for magnifying computer screen display
CN101341481A (en) * 2005-12-19 2009-01-07 微软公司 Automating font control value determination
CN105513547A (en) * 2014-09-24 2016-04-20 上海通用汽车有限公司 Font depicting method based on sub-pixel technology
CN106383689A (en) * 2016-09-20 2017-02-08 青岛海信电器股份有限公司 Display font size adjustment method and apparatus, and terminal device
CN109062521A (en) * 2018-07-20 2018-12-21 珠海智汇网络设备有限公司 A kind of print data processing method and device, computer installation, storage medium
CN111221596A (en) * 2018-11-23 2020-06-02 北京方正手迹数字技术有限公司 Font rendering method and device and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王宏元;: "玩转电脑字体", 电脑爱好者(普及版), no. 06, 1 June 2007 (2007-06-01) *

Similar Documents

Publication Publication Date Title
US7036076B2 (en) Systems and methods for digital document processing
US8786781B2 (en) Detection and enhancement of in-video text
US7417647B2 (en) Making an overlay image edge artifact less conspicuous
WO2020103245A1 (en) Font rendering method and apparatus, and computer-readable storage medium
US20030020726A1 (en) Method and system for displaying graphics information
CN105956133B (en) Method and device for displaying file on intelligent terminal
KR20060109211A (en) Av system and bitmap font outline producing method of the av system
US20210209721A1 (en) Method for preprocessing image and related electronic device
US5341472A (en) Efficient area description for raster displays
CN114492300A (en) Word processing method, device and system, storage medium and display control card
CN111399788B (en) Media file playing method and media file playing device
WO2023065961A1 (en) Video implantation method and apparatus, device, and computer readable storage medium
CN112614459A (en) OSD display method based on LED display screen, device and display control card thereof
US20030020748A1 (en) Method and system for displaying graphics information
CN111541924B (en) Display apparatus and display method
CN113038184A (en) Data processing method, device, equipment and storage medium
US20050162446A1 (en) Common on screen display size for multiple display formats
WO2020051495A1 (en) Multi-panel display
CN113112573B (en) Picture generation method and device based on markup language and electronic equipment
US11877036B2 (en) Rendering scrolling captions
US20050128348A1 (en) Display apparatus and method for enabling artifact-free rapid image format changes
US20150221113A1 (en) Method for dynamically displaying picture after converting gif picture to pdf file
KR20230005691A (en) Display apparatus and operating method thereof
CN116684674A (en) Subtitle display method and display equipment
de Oliveira Bueno Pixels Beyond Colors: Exploring Attributes and Representations of Text-Art Images

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination