CN111276110B - Character display method and device and electronic equipment - Google Patents

Character display method and device and electronic equipment Download PDF

Info

Publication number
CN111276110B
CN111276110B CN201811472732.5A CN201811472732A CN111276110B CN 111276110 B CN111276110 B CN 111276110B CN 201811472732 A CN201811472732 A CN 201811472732A CN 111276110 B CN111276110 B CN 111276110B
Authority
CN
China
Prior art keywords
displayed
character
dot matrix
matrix data
data corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811472732.5A
Other languages
Chinese (zh)
Other versions
CN111276110A (en
Inventor
张晓奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201811472732.5A priority Critical patent/CN111276110B/en
Publication of CN111276110A publication Critical patent/CN111276110A/en
Application granted granted Critical
Publication of CN111276110B publication Critical patent/CN111276110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/222Control of the character-code memory
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the invention provides a character display method, a character display device and electronic equipment, wherein the method comprises the following steps: the first processor obtains an identifier of a character to be displayed as a first identifier; determining first dot matrix data corresponding to characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed. To achieve a reduction in the amount of data of the characters required to be transmitted during the character display.

Description

Character display method and device and electronic equipment
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method and an apparatus for displaying characters, and an electronic device.
Background
In the related art, in a process of displaying an OSD (on-screen display) character by an electronic device, a first processor of the electronic device first obtains a character to be displayed, which is set by a user, as a character to be displayed; further determining the identification of the character to be displayed and the type of the character to be displayed, such as a Chinese character, an English character or other language characters; based on the determined type of the character to be displayed, determining a character library corresponding to the type of the character to be displayed from a pre-stored character library as a target character library, for example: when the type of the character to be displayed comprises a Chinese character, the target character library comprises a Chinese character library, and when the type of the character to be displayed comprises an English character, the target character library comprises an English character library and the like; the first processor sends the target character library to a preset storage area of the electronic equipment and sends the identifier of the character to be displayed to a second processor of the electronic equipment; the second processor searches dot matrix data corresponding to the characters to be displayed from a target character library stored in the preset storage area based on the obtained identifiers of the characters to be displayed; and then drawing the character to be displayed according to the found dot matrix data corresponding to the character to be displayed, and synthesizing the drawn character to be displayed to a coding channel to be sent to a display so that the display displays the character.
The character library includes a corresponding relationship between an identifier of each character and the dot matrix data corresponding to the character, and the identifier of the character may be a position index of the dot matrix data corresponding to the character in the character library. The dot matrix data corresponding to the characters can be a matrix with multiple rows and multiple columns, and the shapes of the corresponding characters are identified through numerical values corresponding to elements in the matrix. As shown in fig. 1A, the diagram is a 16 × 32 dot matrix data corresponding to the character a, where a value corresponding to an element is "1" to identify that there is a pixel in a corresponding position when the character is displayed, and a value corresponding to an element is "0" to identify that there is no pixel in a corresponding position when the character is displayed. Subsequently, the dot matrix data of the character a shown in fig. 1A corresponds to the display effect, as shown in fig. 1B.
In the related art, in the process of displaying characters, a first processor of an electronic device needs to send a complete character library containing dot matrix data corresponding to characters to be displayed to a predetermined storage area, so that a second processor of the electronic device can search the dot matrix data corresponding to the characters to be displayed from the complete character library stored in the predetermined storage area. As can be seen, in the related art, the amount of data transmitted by the first processor of the electronic device is large during the process of displaying the characters.
Disclosure of Invention
The embodiment of the invention aims to provide a character display method, a character display device and electronic equipment, so as to reduce the data volume of characters required to be sent in the character display process. The specific technical scheme is as follows:
in one aspect, an embodiment of the present invention provides a character display method, which is applied to a first processor of an electronic device, where the electronic device further includes a second processor, and the method includes:
the first processor obtains an identifier of a character to be displayed as a first identifier;
determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character;
and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed.
Optionally, the step of sending the first dot matrix data corresponding to the character to be displayed to the second processor, so that the second processor controls the display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed, includes:
sending the first dot matrix data corresponding to the characters to be displayed to a preset shared storage area;
determining a second identifier of the character to be displayed, wherein the second identifier is: the mark is used for representing the storage position of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area;
and sending the second identifier of the character to be displayed to the second processor, so that the second processor reads the first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls the display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed.
Optionally, the number of the characters to be displayed is multiple;
before the step of sending the first lattice data corresponding to the character to be displayed to the second processor, the method further includes:
the first processor obtains a display sequence of a plurality of characters to be displayed;
splicing the first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed;
the step of sending the first dot matrix data corresponding to the character to be displayed to the second processor so that the second processor controls the display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed includes:
and sending the spliced dot matrix data to be displayed to the second processor so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed.
Optionally, the first dot matrix data corresponding to the character to be displayed is a matrix including a plurality of rows and a plurality of columns;
before the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed, the method further includes:
the first processor generates second dot matrix data corresponding to each character to be displayed based on first dot matrix data corresponding to each character to be displayed, wherein the number of rows contained in the second dot matrix data corresponding to each character to be displayed is the same;
the step of splicing a plurality of first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed comprises the following steps:
and splicing a plurality of second dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed.
Optionally, the step of generating second lattice data corresponding to each character to be displayed based on the first lattice data corresponding to each character to be displayed includes:
obtaining a preset line number corresponding to the character to be displayed;
adjusting lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of lines of the preset lines to obtain first dot matrix data after the line number is adjusted corresponding to each character to be displayed;
and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the line number is adjusted corresponding to each character to be displayed.
Optionally, the step of generating second lattice data corresponding to each character to be displayed based on the first lattice data corresponding to each character to be displayed includes:
determining the line number of lines contained in first dot matrix data corresponding to each character to be displayed;
determining the number of rows with the maximum numerical value from the determined number of rows as a reference number of rows;
and adjusting the lines of the first dot matrix data corresponding to each character to be displayed into a plurality of reference lines so as to generate second dot matrix data corresponding to each character to be displayed.
Optionally, the first dot matrix data corresponding to the character to be displayed is a matrix representing the minimum size of the shape of the corresponding character to be displayed;
before the step of determining the second lattice data corresponding to each character to be displayed according to the first lattice data after the row number adjustment corresponding to each character to be displayed, the method further includes:
adding first preset column data before first column data included in the first column data after the row number is adjusted corresponding to each character to be displayed to obtain the first dot matrix data after the column number is adjusted corresponding to each character to be displayed; or the like, or, alternatively,
adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data to obtain the first lattice data after the column number is adjusted corresponding to each character to be displayed;
the step of determining the second lattice data corresponding to each character to be displayed according to the first lattice data after the row number is adjusted corresponding to each character to be displayed includes:
and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed.
Optionally, the step of determining, according to the first lattice data after the number of columns is adjusted corresponding to each character to be displayed, the second lattice data corresponding to each character to be displayed includes:
obtaining pre-stored data reading information;
and adjusting the storage mode of the first dot matrix data after the row number is adjusted corresponding to each character to be displayed based on the pre-stored data reading information so as to obtain second dot matrix data corresponding to each character to be displayed.
Optionally, when a plurality of the characters to be displayed are determined to be displayed in a plurality of lines;
before the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed, the method further includes:
obtaining a pre-stored minimum reading column number;
obtaining second dot matrix data corresponding to a first character to be displayed corresponding to each display line during multi-line display as initial dot matrix data;
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, and the method comprises the following steps:
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, wherein the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the initial splicing position is as follows: and the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data is not more than the number of the minimum reading columns, and the initial splicing position is the position of the first second dot matrix data in the splicing process.
Optionally, the preset shared storage area includes a first shared storage area and a second shared storage area, where the first shared storage area is: an area for storing characters having non-numeric attributes, the second shared storage area being: an area for storing characters whose attributes are numbers.
In another aspect, an embodiment of the present invention provides a character display apparatus, which is applied to a first processor of an electronic device, where the electronic device further includes a second processor, and the apparatus includes:
the first obtaining module is used for obtaining the identifier of the character to be displayed as a first identifier;
the determining module is used for determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises a corresponding relation between the identification of each character and the first dot matrix data corresponding to the character;
and the sending module is used for sending the first dot matrix data corresponding to the characters to be displayed to the second processor so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed.
Optionally, the sending module is specifically configured to
Sending the first dot matrix data corresponding to the characters to be displayed to a preset shared storage area;
determining a second identifier of the character to be displayed, wherein the second identifier is: the mark is used for representing the storage position of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area;
and sending the second identifier of the character to be displayed to the second processor, so that the second processor reads the first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls the display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed.
Optionally, the number of the characters to be displayed is multiple;
the device further comprises:
a second obtaining module, configured to obtain a display order of the multiple characters to be displayed before the first lattice data corresponding to the characters to be displayed is sent to the second processor;
the splicing module is used for splicing the first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed;
the sending module is specifically configured to:
and sending the spliced dot matrix data to be displayed to the second processor so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed.
Optionally, the first dot matrix data corresponding to the character to be displayed is a matrix including a plurality of rows and a plurality of columns;
the device further comprises:
the generating module is used for generating second dot matrix data corresponding to each character to be displayed based on the first dot matrix data corresponding to each character to be displayed before the first dot matrix data corresponding to the characters to be displayed are spliced according to the display sequence to obtain the spliced dot matrix data to be displayed, wherein the number of rows contained in the second dot matrix data corresponding to each character to be displayed is the same;
the splicing module is particularly used for
And splicing a plurality of second dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed.
Optionally, the generating module includes:
the first obtaining unit is used for obtaining a preset line number corresponding to the character to be displayed;
the adjusting unit is used for adjusting the lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of preset lines to obtain the first dot matrix data after the line number is adjusted corresponding to each character to be displayed;
and the determining unit is used for determining second lattice data corresponding to each character to be displayed according to the first lattice data after the row number is adjusted corresponding to each character to be displayed.
Optionally, the generating module is specifically configured to
Determining the line number of lines contained in first dot matrix data corresponding to each character to be displayed;
determining the number of rows with the maximum numerical value from the determined number of rows as a reference number of rows;
and adjusting the lines of the first dot matrix data corresponding to each character to be displayed into a plurality of reference lines so as to generate second dot matrix data corresponding to each character to be displayed.
Optionally, the first dot matrix data corresponding to the character to be displayed is a matrix representing the minimum size of the shape of the corresponding character to be displayed;
the generation module further comprises:
the adding unit is used for adding first preset column data before the first dot matrix data after the row number is adjusted corresponding to each character to be displayed contains the first column data before the second dot matrix data corresponding to each character to be displayed is determined according to the first dot matrix data after the row number is adjusted corresponding to each character to be displayed, and obtaining the first dot matrix data after the column number is adjusted corresponding to each character to be displayed; or the like, or, alternatively,
adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data to obtain the first lattice data after the column number is adjusted corresponding to each character to be displayed;
the determination unit is particularly used for
And determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed.
Optionally, the determination unit is specifically configured to
Obtaining pre-stored data reading information;
and adjusting the storage mode of the first dot matrix data after the row number is adjusted corresponding to each character to be displayed based on the pre-stored data reading information so as to obtain second dot matrix data corresponding to each character to be displayed.
Optionally, when a plurality of the characters to be displayed are determined to be displayed in a plurality of lines;
the device further comprises:
a third obtaining module, configured to obtain a pre-stored minimum number of read columns before the first dot matrix data corresponding to the multiple characters to be displayed are spliced according to the display sequence to obtain spliced dot matrix data to be displayed;
the fourth obtaining module is used for obtaining second dot matrix data corresponding to the first character to be displayed corresponding to each display line during multi-line display as initial dot matrix data;
the splicing module is specifically configured to:
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, wherein the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the initial splicing position is as follows: and the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data is not more than the number of the minimum reading columns, and the initial splicing position is the position of the first second dot matrix data in the splicing process.
Optionally, the preset shared storage area includes a first shared storage area and a second shared storage area, where the first shared storage area is: an area for storing characters having non-numeric attributes, the second shared storage area being: an area for storing characters whose attributes are numbers.
On the other hand, an embodiment of the present invention provides an electronic device, including a first processor, a second processor, a communication interface, a memory, and a communication bus, where the first processor, the second processor, and the communication interface complete mutual communication through the communication bus by the memory;
a memory for storing a computer program;
a first processor, configured to implement any of the above character display method steps provided in the embodiments of the present invention when executing the computer program stored in the memory;
and the second processor is used for controlling the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, which are sent by the first processor.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a first processor, the computer program implements any of the above-mentioned steps of the character display method provided in the embodiment of the present invention.
In the character display method provided by the embodiment of the invention, the first processor obtains the identifier of the character to be displayed as the first identifier; determining first dot matrix data corresponding to characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed. Therefore, in the embodiment of the invention, in the character display process, the first processor does not need to send the whole character library where the characters to be displayed are located to the second processor, and only the first dot matrix data corresponding to the characters to be displayed can be sent to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, the data volume of the characters to be sent in the character display process is reduced, the resource consumption of electronic equipment in the character display process can be saved to a certain extent, and the efficiency of the character display process of the electronic equipment is improved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1A is a diagram illustrating a dot matrix data corresponding to a character A;
FIG. 1B is a schematic diagram illustrating a display effect corresponding to the dot matrix data shown in FIG. 1A;
FIG. 2 is a flow chart illustrating a character display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a structure of a default shared memory region;
FIG. 4 is another flow chart illustrating a character display method according to an embodiment of the present invention;
fig. 5A is a schematic diagram of a display effect corresponding to the dot matrix data corresponding to the character "K" with the size of 32 × 32;
5B, 5C, 5D, and 5E are diagrams illustrating display effects corresponding to a conversion process of converting first lattice data corresponding to different characters to corresponding second lattice data, respectively;
fig. 5F is a schematic diagram of display effects corresponding to the second dot matrix data corresponding to the characters shown in fig. 5B, 5C, 5D, and 5E and the dot matrix data to be displayed obtained by splicing;
FIG. 6 is a schematic diagram of one reading of the dot matrix data "big HiK" to be displayed;
FIG. 7 is a diagram illustrating first dot matrix data corresponding to a character "H";
FIG. 8A is a schematic diagram of a memory of the character "H";
FIG. 8B is a diagram illustrating a change in the storage of a byte;
FIG. 8C is a diagram illustrating a change in the storage of a byte;
fig. 9 is a schematic structural diagram of a character display device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a character display method, a character display device and electronic equipment, which are used for reducing the data volume of characters required to be sent in the character display process.
It can be understood that the character display method provided in the embodiment of the present invention may be applied to any type of electronic device, and the electronic device may be a computer or a mobile phone. The electronic device may include a first processor and a second processor, which may be different processing chips, or which may be different cores of the same processing chip. The electronic device includes, but is not limited to, a front-end camera, a DVR (Digital Video Recorder), a Network Video Recorder (NVR), and other devices. The first processor of the electronic device may be any type of processor, for example: CPU (Central Processing Unit/Processor); the second processor of the electronic device may be, but is not limited to, a DSP (Digital Signal Processing) processor.
In one implementation, the electronic device may be installed with target application software, the target application program may implement interaction between the electronic device and a user, and the user may set a character to be displayed through a setting interface of the character to be displayed provided by the target application software. In one case, the user may further set whether to immediately perform character display, and when the user sets that the character display is performed immediately, after the user sets the character to be displayed, the first processor of the electronic device may immediately obtain an identifier of the character to be displayed; further, the character display process provided by the embodiment of the invention is executed. When the user sets that the character display is not performed immediately, the user can continue to set the display starting time, and after the user sets the character to be displayed, the first processor of the electronic device obtains the identifier of the character to be displayed after the first processor of the electronic device determines that the time reaches the display starting time, so that the character display process provided by the embodiment of the invention is executed. Wherein, the time may be a local time of the electronic device; the character to be displayed is the character which is set by the user and needs to be displayed.
As shown in fig. 2, a character display method provided in an embodiment of the present invention may include the following steps:
s201: the first processor obtains an identifier of a character to be displayed as a first identifier;
s202: determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification;
the preset character library comprises a corresponding relation between the identification of each character and the first dot matrix data corresponding to the character;
in this step, the first identifier may be a storage location in a preset character library corresponding to the character to be displayed, specifically, the first identifier may be a location index, and may guide and determine a specific storage location of the first lattice data corresponding to the character to be displayed in the preset character library. In one case, the first identifier may be a character Code value, which may also be referred to as a Code value, and refers to a number of a character to be displayed in a preset character library, and the first lattice data corresponding to the character to be displayed may also be uniquely determined from the preset character library through the number.
In one case, the number of the characters to be displayed may be at least one, and when the number of the characters to be displayed is multiple, the characters to be displayed may include the same type of characters, or may include different types of characters, for example, the characters to be displayed may include a chinese type of characters, where the chinese type of characters may include chinese characters, chinese type english letters, chinese type punctuation marks, and the like; the method can comprise English type characters, wherein the English type characters can comprise English type letters, English type calibration symbols and the like; characters of any other language type may be included. The embodiment of the present invention does not limit the type of the character.
In one implementation, the types of characters may be further classified into ASCII (American Standard Code for Information exchange) type characters, which may include all characters included in ASCII Code, and non-ASCII type characters, which include 256 characters; the characters of the non-ASCII code type may include other characters than those included in ASCII code, such as: chinese type characters and any other language type characters. The character sub-library containing the characters of the ASCII code type may be referred to as an ASCII character sub-library, and the identification of the character may be the number of each ASCII character of the ASCII code type in the ASCII code, such as the number 65 of the character "a", as the identification of the character "a". Among them, the number may be called an ASCII value of a character.
When the characters to be displayed include different types of characters, the preset character library may include different character sub-libraries, where the different character sub-libraries store first lattice data corresponding to the different types of characters, that is, each character sub-library may store one type of characters. At this time, before the first processor obtains the first identifier of the character to be displayed, the type corresponding to each character to be displayed may also be obtained, and at this time, the first identifier of the character to be displayed may be obtained based on the type corresponding to the character to be displayed, that is, the position index of the character to be displayed in the character sub-library of the type is obtained.
And then, the first processor determines first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification of the characters to be displayed. When the number of the characters to be displayed is multiple, the first lattice data corresponding to the characters to be displayed can be determined from the preset character library based on the first identifier of each character to be displayed. When the characters to be displayed are of different types, determining first lattice data corresponding to the characters to be displayed from a character sub-library corresponding to the type based on the first identification of each character to be displayed and the type of the character to be displayed. In the embodiment of the present invention, the first dot matrix data corresponding to each character to be displayed may be a matrix with multiple rows and multiple columns, and the shape of the corresponding character to be displayed is identified by a numerical value corresponding to each element in the matrix, that is, the shape of the character to be displayed may be represented by the first dot matrix data corresponding to each character to be displayed.
In an implementation manner, the preset character library may be stored locally in the electronic device, and at this time, after the first processor obtains the first identifier of the character to be displayed, the first lattice data corresponding to the character to be displayed may be determined in the preset character library locally stored in the electronic device without using a network. In another implementation manner, the preset character library may be stored in an external storage device connected to the electronic device, so that a local storage space of the electronic device may be saved to a certain extent; after the first processor obtains the first identifier of the character to be displayed, the first lattice data corresponding to the character to be displayed can be determined from a preset character library stored in an external storage device connected with the electronic device through a network.
S203: and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed.
In this step, after determining the first dot matrix data corresponding to the character to be displayed, the first processor of the electronic device may send the first dot matrix data corresponding to the character to be displayed to the second processor, so that the second processor controls display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed. In one implementation, the first processor may send the first dot matrix data corresponding to each character to be displayed to the second processor one by one, and the second processor controls the display of the character to be displayed after obtaining the first dot matrix data corresponding to the character to be displayed. In another implementation manner, the first processor splices the first dot matrix data corresponding to each character to be displayed, and then sends the spliced first dot matrix data corresponding to each character to be displayed to the second processor as a whole, so that the second processor controls the display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed.
The second processor controls a process of displaying the character to be displayed based on the first lattice data corresponding to the character to be displayed, and may be: and the second processor draws the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, synthesizes the drawn characters to be displayed into the coding channel, and sends the characters to the connected display through the coding channel so as to enable the display to display the drawn characters to be displayed. Any drawing mode can be adopted to draw the character to be displayed, and the embodiment of the invention does not limit the drawing mode for drawing the character to be displayed.
In one implementation manner, the step of sending the first dot matrix data corresponding to the character to be displayed to the second processor, so that the second processor controls the display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed, may include:
sending first dot matrix data corresponding to characters to be displayed to a preset shared storage area;
determining a second identifier of the character to be displayed, wherein the second identifier is as follows: the identifier is used for representing the storage position of first dot matrix data corresponding to the character to be displayed in a preset shared storage area;
and sending the second identifier of the character to be displayed to the second processor, so that the second processor reads the first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls the display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed.
The preset shared memory area may be: the area which is pre-set locally from the electronic equipment and can be written by the first processor and can be read by the second processor. In this implementation manner, the first processor of the electronic device may send the first dot matrix data corresponding to the character to be displayed to the preset shared storage area, and then the first processor of the electronic device determines, according to a storage condition of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area, a storage position, namely a second identifier, of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area; and sending a second identifier of the character to be displayed to a second processor, wherein the second processor reads first dot matrix data corresponding to the character to be displayed from a preset shared storage area based on the second identifier of the character to be displayed, and controls the display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed. The data in the preset shared storage area may be stored in a cache form, and the data in the preset shared storage area includes first dot matrix data corresponding to the character to be displayed or second dot matrix data mentioned later.
In one case, the second flag may be an offset value, wherein the offset value may identify: the storage position of the dot matrix data corresponding to each character to be displayed in the preset shared storage area is offset relative to the storage position of the dot matrix data corresponding to the first character to be displayed in the preset shared storage area, wherein the dot matrix data corresponding to the character to be displayed comprises the first dot matrix data corresponding to the character to be displayed or the second dot matrix data mentioned later. The storage position of each character to be displayed in the preset shared storage area can be determined according to the offset value of each character to be displayed. Wherein, the first character to be displayed is: the offset value of the first character to be displayed in the current character display process may be 0.
In the character display method provided by the embodiment of the invention, the first processor obtains the identifier of the character to be displayed as the first identifier; determining first dot matrix data corresponding to characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed. Therefore, in the embodiment of the invention, in the character display process, the first processor does not need to send the whole character library where the characters to be displayed are located to the second processor, and only the first dot matrix data corresponding to the characters to be displayed can be sent to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, the data volume of the characters to be sent in the character display process is reduced, the resource consumption of electronic equipment in the character display process can be saved to a certain extent, and the efficiency of the character display process of the electronic equipment is improved.
In one case, characters having numerical attributes, such as arabic numerals 0 to 9, may exist among the characters to be displayed. For example, in the process of displaying characters of date and time, the date and time itself includes characters of non-numeric nature, such as characters of chinese type or characters of english type, and characters of numeric nature, such as arabic numerals. The characters to be displayed corresponding to the date and time can be: YY is divided into ZZ seconds when XX is in Y month and Z day in X year, wherein the positions of X, Y, Z, XX, YY and ZZ identify the positions of characters with non-numeric attributes; in the characters to be displayed corresponding to the date and time, the frequency of change of the characters with numeric attributes is generally higher than that of the characters with non-numeric attributes, for example, the time information ZZ seconds is continuously jumped. If the character to be displayed is changed every time, the first processor of the electronic device resends the first dot matrix data corresponding to the character to be displayed to the preset shared storage area, so that the character with the digital attribute in the character to be displayed corresponding to the date and the time is changed, and the processing load of the first processor is increased, which is unreasonable.
In order to solve the above problem, in the embodiment of the present invention, in the process of displaying characters of date and time, for characters with non-numeric attributes such as year, month, day, hour, minute, and second, a first processor of an electronic device may obtain a first identifier of a character to be displayed, determine first dot matrix data corresponding to the character to be displayed from a preset character library based on the first identifier, send the first dot matrix data corresponding to the character to be displayed to a preset shared storage area, and send a second identifier of the character to be displayed to a second processor, so that the second processor reads the first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed. That is, the first dot matrix data corresponding to the character having the non-numeric character as the attribute is dynamically transmitted to realize the display of the character having the non-numeric character as the attribute.
For the character with the attribute of number, the second processor directly carries out character replacement to display the character. The process of directly performing character replacement by the second processor to perform character display may be: when the second processor is started, namely when characters need to be displayed, the first processor sends first dot matrix data corresponding to the characters with the digital attributes to an area of a preset shared storage area. Subsequently, the first processor may send a first identifier of each character with numeric attributes to be displayed to the second processor, and after receiving the first identifier of each character with numeric attributes to be displayed, the second processor reads first bitmap data corresponding to each character with numeric attributes to be displayed from the content cached in the area of the preset shared storage area based on the first identifier, so as to control display of the characters with numeric attributes to be displayed.
In one implementation, storage and reading of the above-described characters having numerical attributes and characters having non-numerical attributes is facilitated. The preset shared storage area may include a first shared storage area and a second shared storage area, where the first shared storage area is: an area for storing characters having non-numeric attributes, the second shared storage area being: an area for storing characters whose attributes are numbers.
In one case, the second shared memory region is located at a position further back than the preset shared memory region, and stores the first dot matrix data corresponding to the characters with the attribute as a number, the second dot matrix data is lower than the shared memory region and located at a position further front than the preset shared memory region, as shown in fig. 3, a start position of the preset shared memory region shown in fig. 3, that is, a position identified with "Offset ═ 0", is a start position of the first shared memory region; the position indicated with "Offset ═ preset value" as shown in fig. 3 is the start position of the second shared memory region. The preset value can be set by a worker according to experience. It is to be understood that, in one aspect, the first shared memory area and the second shared memory area may be set as two separate memory areas. By storing the first dot matrix data corresponding to the characters with the non-numeric attributes and the first dot matrix data corresponding to the characters with the numeric attributes in a partitioned manner, the respective changes of the characters with the non-numeric attributes and the characters with the numeric attributes to be displayed can be ensured, and the display of the other party cannot be influenced.
In one implementation, the number of the characters to be displayed is multiple; as shown in fig. 4, the method may include the steps of:
s401: the first processor obtains an identifier of a character to be displayed as a first identifier;
s402: determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification;
the preset character library comprises a corresponding relation between the identification of each character and the first dot matrix data corresponding to the character;
s403: obtaining a display sequence of a plurality of characters to be displayed;
s404: splicing first dot matrix data corresponding to a plurality of characters to be displayed according to a display sequence to obtain spliced dot matrix data to be displayed;
s405: and sending the spliced dot matrix data to be displayed to a second processor so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed.
Here, S401 is the same as S201 shown in fig. 2, and S402 is the same as S202 shown in fig. 2.
When the characters to be displayed are multiple, in order to ensure the ordering of character display and the attractiveness of character display, the first dot matrix data corresponding to the multiple characters to be displayed can be spliced according to the display sequence of the multiple characters to be displayed, so as to obtain the spliced dot matrix data to be displayed, and then the spliced dot matrix data to be displayed is sent to the second processor, so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed.
It can be understood that the first dot matrix data corresponding to each character to be displayed may be a matrix including a plurality of rows and a plurality of columns, and the shape of the corresponding character is identified by a numerical value corresponding to each element in the matrix, where a numerical value corresponding to an element of "1" identifies that there is a pixel in a corresponding position when the character is displayed, and a numerical value corresponding to an element of "0" identifies that there is no pixel in a corresponding position when the character is displayed, so as to display the corresponding character to be displayed.
In one case, for the first dot matrix data corresponding to each character in the preset character library, the number of rows included in each dot matrix data may be the same; and the number of columns of each included column may be the same or different. Based on the above situation, when the splicing is performed, the attractiveness of the spliced dot matrix data to be displayed can be ensured, and further, the attractiveness of characters to be displayed, which are displayed based on the spliced dot matrix data to be displayed, can be ensured. In an implementation manner, the process of splicing the first lattice data corresponding to the multiple characters to be displayed may be: and performing ending splicing based on the first dot matrix data corresponding to each character to be displayed. When the current character to be displayed is a non-first character to be displayed and is a non-last character to be displayed, splicing elements of a starting column of first dot matrix data corresponding to the current character to be displayed with elements of a last column of the first dot matrix data corresponding to a character to be displayed before the current character to be displayed; and splicing the elements of the last row of the first dot matrix data corresponding to the current character to be displayed with the elements of the initial row of the first dot matrix data corresponding to the character to be displayed after the current character to be displayed. When the current character to be displayed is the first character to be displayed, elements of the last row of the first dot matrix data corresponding to the current character to be displayed are spliced with elements of the initial row of the first dot matrix data corresponding to the character to be displayed which is next to the current character to be displayed. When the current character to be displayed is the last character to be displayed, the elements of the initial column of the first dot matrix data corresponding to the current character to be displayed are spliced with the elements of the last column of the first dot matrix data corresponding to the character to be displayed before the current character to be displayed.
The above-mentioned dot matrix data to be displayed after will splicing sends to the second treater to make the second treater wait to show the dot matrix data based on after the concatenation, the process of the demonstration of control waiting to show the character can be: the first processor sends the spliced dot matrix data to be displayed to a preset shared storage area, determines an identifier representing the storage position of the spliced dot matrix data to be displayed in the preset shared storage area, namely a second identifier, and sends the second identifier to the second processor; and the second processor reads the dot matrix data to be displayed from the preset shared storage area according to the second identifier, draws characters according to the read dot matrix data to be displayed, synthesizes the drawn characters into a coding channel, sends the coding channel to a display connected with the electronic equipment, and displays the drawn characters through the display.
As shown in fig. 5A, the display effect is corresponding to the dot matrix data corresponding to a character with a size of 32 × 32. The character is "K", and as shown in fig. 5A, the position of the light color point represents that there is a pixel point, that is, the numerical value of the element at the corresponding position of the dot matrix data corresponding to the character "K" is "1", and the position of the dark color point represents that there is no pixel point, that is, the numerical value of the element at the corresponding position of the dot matrix data corresponding to the character "K" is "0". For a character, when the storage size of the first lattice data corresponding to the character in the preset character library is 32 × 32, the storage space is wasted to a certain extent. The data outside the rectangular frame shown in fig. 5A all represents that there is no pixel at the corresponding position, and accordingly, the value of the element at the corresponding position of the dot matrix data at the position where the data outside the rectangular frame shown in fig. 5A is located is "0", and the element whose corresponding value is "0" can be considered as invalid data.
In one implementation manner, in order to save the storage space of the preset character library, the first lattice data corresponding to the characters in the preset character library may be: the matrix representing the minimum size of the shape of the character, that is, the matrix includes elements in the minimum area where the corresponding elements with the numerical value of "1" are located, the numerical values corresponding to the elements in the row or column at the outermost edge of the first dot matrix data are not all "0", which may be referred to as the matrix only including valid display data of the corresponding character, such as the data in the rectangular frame shown in fig. 5A. Subsequently, when displaying the characters, in order to ensure the aesthetic property of the character display and the effectiveness of the display, the line number of the lines included in the first dot matrix data corresponding to each character to be displayed may be adjusted, so that the line number of the lines included in the first dot matrix data corresponding to each character to be displayed is adjusted to be the same line number.
In one implementation mode, first dot matrix data corresponding to characters to be displayed is a matrix comprising a plurality of rows and a plurality of columns;
before the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed, the method may further include:
the first processor generates second dot matrix data corresponding to each character to be displayed based on first dot matrix data corresponding to each character to be displayed, wherein the number of rows contained in the second dot matrix data corresponding to each character to be displayed is the same;
the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed may include:
and splicing the second dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed.
It can be understood that there are various ways to adjust the number of rows included in the first dot matrix data corresponding to each character to be displayed to the same number of rows. In an implementation manner, the step of generating second lattice data corresponding to each character to be displayed based on the first lattice data corresponding to each character to be displayed may include:
obtaining a preset line number corresponding to a character to be displayed;
adjusting lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of preset lines to obtain first dot matrix data after the line number is adjusted corresponding to each character to be displayed;
and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the line number is adjusted corresponding to each character to be displayed.
The method comprises the steps that a preset line number corresponding to a character to be displayed can be pre-stored in an electronic device locally or an external storage device connected with the electronic device, a first processor of the electronic device can obtain the preset line number corresponding to the character to be displayed after obtaining a display sequence of a plurality of characters to be displayed, and further lines included in first dot matrix data corresponding to each character to be displayed are adjusted to be the preset line number, so that first dot matrix data after the line number is adjusted corresponding to each character to be displayed are obtained; and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the row number is adjusted corresponding to each character to be displayed. In order to ensure the display effectiveness of the characters to be displayed, the first dot matrix data may be filled with invalid data, so that the lines included in the first dot matrix data corresponding to each character to be displayed are all adjusted to a predetermined number of lines. The invalid data may refer to an element corresponding to a value of "0".
Specifically, the process of adjusting the lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of predetermined lines is as follows:
can be as follows: adding elements of a first number of rows above elements of a first row of first dot matrix data corresponding to each character to be displayed, wherein the data corresponding to the added elements of the first number of rows are all '0', the total number of the elements of each row in the added first number of rows is equal to the number of columns included in the first dot matrix data corresponding to the character to be displayed, and the first number is equal to the number of predetermined rows and the number of rows included in the first dot matrix data corresponding to the character to be displayed.
Can be as follows: and adding elements of a second number of rows below elements of the last row of the first dot matrix data corresponding to each character to be displayed, wherein the data corresponding to the added elements of the second number of rows are all '0', the total number of the elements of each row in the added second number of rows is equal to the number of columns included in the first dot matrix data corresponding to the character to be displayed, and the second number is equal to the number of preset rows and the number of rows included in the first dot matrix data corresponding to the character to be displayed.
Can be as follows: the method includes the steps that elements of a third number of rows are added above elements of a first row of first dot matrix data corresponding to each character to be displayed, elements of a fourth number of rows are added below elements of a last row of the first dot matrix data corresponding to each character to be displayed, wherein the data corresponding to the added elements of the third number of rows and the added elements of the fourth number of rows are 0, the total number of the elements of each row in the added third number of rows and the added fourth number of rows is equal to the number of columns included in the first dot matrix data corresponding to the character to be displayed, the sum of the third number and the fourth number is equal to the number of rows included in the first dot matrix data corresponding to the predetermined number of rows and the character to be displayed, and the absolute value of the difference between the third number and the fourth number is minimum.
For example, when the first lattice data corresponding to the characters in the preset character library is: when characterizing the matrix of the minimum size of the shape of the character, the display effect corresponding to the first lattice data corresponding to each character, as shown in fig. 5B, 5C, 5D, and 5E, is preset, the display effect of the first lattice data corresponding to the character "large" in the character library, as shown in the leftmost graph B1 in fig. 5B, where the first lattice data corresponding to the character "large" is a matrix of 29 × 28; presetting a display effect of first lattice data corresponding to a character "H" in a character library, such as a leftmost graph C1 shown in fig. 5C, wherein the first lattice data corresponding to the character "H" is a matrix of 21 × 22; presetting a display effect of first dot matrix data corresponding to a character "i" in a character library, such as a leftmost graph D1 shown in fig. 5D, wherein the first dot matrix data corresponding to the character "i" is a 22 × 7 matrix; the display effect of the first lattice data corresponding to the character "k" in the character library is preset, as shown in the leftmost graph E1 shown in fig. 5E, where the first lattice data corresponding to the character "k" is a 22 × 15 matrix. In fig. 5B, 5C, 5D, and 5E, the position where the light color point is located represents that there is a pixel point, that is, the numerical value of the element at the corresponding position of the first dot matrix data corresponding to the character is "1", and the position where the dark color point is located represents that there is no pixel point, that is, the numerical value of the element at the corresponding position of the first dot matrix data corresponding to the character is "0".
In order to ensure the aesthetic property of the displayed characters, it is necessary to generate second dot matrix data corresponding to each character to be displayed based on the first dot matrix data corresponding to each character to be displayed, for example: and adjusting the line number of lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of lines of a preset line to generate second dot matrix data corresponding to each character to be displayed.
In an implementation manner of the present invention, when the number of lines included in the first dot matrix data corresponding to each character to be displayed is adjusted to a predetermined number of lines, for example, the height is 32 bits (i.e., 32 lines), invalid data, i.e., an element having a value of "0", needs to be filled in the upper side of the first line and the lower side of the last line of the first dot matrix data corresponding to the character to be displayed, i.e., the top and the bottom of the first dot matrix data corresponding to the character to be displayed.
As shown in fig. 5B, 5C, 5D and 5E, when the predetermined number of rows is 32, the first dot matrix data of the matrix 29 × 28 corresponding to the character "large" needs to be adjusted to the second dot matrix data of the matrix 32 × 28; the character "large" corresponds to the display effect corresponding to the second dot matrix data of the matrix of 32 × 28, as shown in a diagram B2 in fig. 5B. The first lattice data of the matrix 21 × 22 corresponding to the character "H" needs to be adjusted to the second lattice data of the matrix 32 × 22; the character "H" corresponds to the display effect corresponding to the second dot matrix data of the matrix of 32 × 22, as shown in a diagram C2 in fig. 5C. It is necessary to adjust the first dot matrix data of the matrix 22 × 7 corresponding to the character "i" to the second dot matrix data of the matrix 32 × 7, and the second dot matrix data of the matrix 32 × 7 corresponding to the character "i" to obtain the display effect, as shown in a diagram D2 in fig. 5D. It is necessary to adjust the first dot matrix data of the matrix 22 × 15 corresponding to the character "k" to the second dot matrix data of the matrix 32 × 15, and the second dot matrix data of the matrix 32 × 15 corresponding to the character "k" to have the display effect, as shown in a diagram E2 in fig. 5E.
The process of determining the second lattice data corresponding to each character to be displayed according to the first lattice data after the row number is adjusted corresponding to each character to be displayed may be: directly determining the first dot matrix data after the row number adjustment corresponding to each character to be displayed as second dot matrix data corresponding to each character to be displayed; it can also be: the first processor firstly obtains preset data reading information, and adjusts the storage mode of first dot matrix data after the number of rows is adjusted corresponding to each character to be displayed based on the preset data reading information so as to obtain second dot matrix data corresponding to each character to be displayed; and then according to the display sequence, splicing second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, and sending the spliced dot matrix data to be displayed to a preset shared storage area, so that the second processor reads information according to the preset data and reads the spliced dot matrix data to be displayed from the preset shared storage area. It is understood that the predetermined data reading information may be predetermined by the first processor and the second processor. For clarity of layout, a process of obtaining second dot matrix data corresponding to each character to be displayed by adjusting a storage manner of the first dot matrix data after the adjustment line number corresponding to each character to be displayed based on the preset data reading information is described in the following.
In another implementation manner, the number of rows included in the first dot matrix data corresponding to the characters to be displayed may also be directly determined, and then the row number with the largest numerical value is determined from the determined row numbers, and is used as the reference row number, and then all the rows included in the first dot matrix data corresponding to the characters to be displayed are adjusted to the reference row number. Specifically, the step of generating second dot matrix data corresponding to each character to be displayed based on the first dot matrix data corresponding to each character to be displayed includes:
determining the line number of lines contained in first dot matrix data corresponding to each character to be displayed;
determining the number of rows with the maximum numerical value from the determined number of rows as a reference number of rows;
and adjusting the lines included in the first dot matrix data corresponding to each character to be displayed into reference lines to generate second dot matrix data corresponding to each character to be displayed.
In one implementation, the first dot matrix data corresponding to the character to be displayed is a matrix representing the minimum size of the shape of the corresponding character to be displayed;
before the step of determining, according to the first lattice data after the row number adjustment corresponding to each character to be displayed, the second lattice data corresponding to each character to be displayed, the method may further include:
adding first preset column data before first column data included in the first column data after the row number is adjusted corresponding to each character to be displayed to obtain the first dot matrix data after the column number is adjusted corresponding to each character to be displayed; or the like, or, alternatively,
adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data to obtain the first lattice data after the column number is adjusted corresponding to each character to be displayed;
the step of determining, according to the first lattice data after the row number adjustment corresponding to each character to be displayed, the second lattice data corresponding to each character to be displayed may include:
and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed.
In order to ensure the aesthetic property of character display, when characters to be displayed are displayed, a certain interval is needed between every two characters to be displayed, so that the character display is more intuitive and accords with the watching habit of a viewer. In this implementation manner, after the rows included in the first lattice data corresponding to each character to be displayed are all adjusted to a plurality of predetermined rows, the first lattice data after the row number is adjusted corresponding to each character to be displayed is obtained, and then, the row number is adjusted for the first lattice data after the row number is adjusted corresponding to each character to be displayed. Specifically, the first preset column data may be added before the first column data included in the first dot matrix data after the row number adjustment corresponding to each character to be displayed; or adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data, and further determining the second lattice data corresponding to each character to be displayed according to the first lattice data after the column number is adjusted corresponding to each character to be displayed.
The process of determining the second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of columns is adjusted corresponding to each character to be displayed may be: directly determining the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed as second dot matrix data corresponding to each character to be displayed; it can also be: the first processor firstly obtains preset data reading information, and adjusts the storage mode of first dot matrix data after the number of adjustment columns corresponding to each character to be displayed based on the preset data reading information so as to obtain second dot matrix data corresponding to each character to be displayed; and then according to the display sequence, splicing second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, and sending the spliced dot matrix data to be displayed to a preset shared storage area, so that the second processor reads information according to the preset data and reads the spliced dot matrix data to be displayed from the preset shared storage area. The predetermined data reading information may be predetermined by the first processor and the second processor. For clarity of layout, a process of obtaining second dot matrix data corresponding to each character to be displayed by adjusting a storage manner of the first dot matrix data after the adjustment line number corresponding to each character to be displayed based on the preset data reading information is described in the following.
It can be understood that, in order to ensure the validity of the display of the characters to be displayed, the first preset column data or the second preset column data added to the first lattice data after the row number is adjusted corresponding to each character to be displayed may be invalid data, where the invalid data may refer to an element whose corresponding numerical value is "0". And the total amount of each column of data in the added first preset column data or second preset column data is equal to the preset row number.
In one implementation, the first preset column and the second preset column may be numerical values preset by a worker. In one case, the first preset column and the second preset column may be 1, that is, a column of data is added to the first dot matrix data after the row number is adjusted corresponding to each character to be displayed, that is, 1Bit of data is added to each row. Specifically, a column of data may be added after the last column of data included in the first dot matrix data after the row number adjustment corresponding to each character to be displayed. As shown in fig. 5B, 5C, 5D, and 5E, a row of elements with a value of "0" is added after the first dot matrix data after the row adjustment corresponding to the character "large" is included in the first dot matrix data, so as to obtain a display effect corresponding to the second dot matrix data of the matrix 32 × 29 corresponding to the character "large", as shown in fig. B3 in fig. 5B. It is necessary to add a column of elements with a value of "0" to the first dot matrix data after the row number adjustment corresponding to the character "H", after the last column of data is included, to obtain a display effect corresponding to the second dot matrix data of the matrix 32 × 23 corresponding to the character "H", as shown in fig. 5C, which is a diagram C3. It is necessary to add a column of elements with a value of "0" to the first dot matrix data after the row number adjustment corresponding to the character "i", after the last column of data is included, to obtain a display effect corresponding to the second dot matrix data of the matrix 32 × 8 corresponding to the character "i", as shown in a diagram D3 in fig. 5D. It is necessary to add a column of elements with a value of "0" to the first dot matrix data after the row number adjustment corresponding to the character "k", after the last column of data is included, to obtain a display effect corresponding to the second dot matrix data of the matrix 32 × 16 corresponding to the character "k", as shown in fig. 5E, E3.
Subsequently, the first dot matrix data after the row number and the column number are adjusted corresponding to each character to be displayed, that is, the second dot matrix data corresponding to each character to be displayed, may be directly spliced to obtain the spliced dot matrix data to be displayed. As shown in fig. 5F, the second dot matrix data corresponding to the display effect shown in fig. X3 in fig. 5B, 5C, 5D, and 5E are merged to obtain the merged dot matrix data to be displayed, as shown in the rightmost diagram in fig. 5F, which is the display effect corresponding to the merged dot matrix data to be displayed, where "X" may be "B, C, D or E".
In one implementation manner, in the process of displaying the characters, the second processor may read the spliced dot matrix data to be displayed from the preset shared storage area based on a preset minimum number of reading columns, that is, the second processor reads out the data each time: and displaying the data block corresponding to the minimum reading column number in the dot matrix data to be displayed. Because the occupied width, i.e., the number of columns, of the second dot matrix data corresponding to each character to be displayed in the dot matrix data to be displayed may be different, when the second dot matrix data corresponding to each character to be displayed is directly subjected to ending splicing, a situation that a data block read by the second processor in a certain reading process is not the second dot matrix data corresponding to a complete character to be displayed may occur.
For example, when the second processor reads the spliced dot matrix data "big HiK" to be displayed from the preset shared storage area based on the minimum number of read columns of 16, as shown in fig. 6, the predetermined number of rows of the second dot matrix data corresponding to each character to be displayed in the dot matrix data to be displayed is 32. The data blocks read out from the preset shared storage area by the second processor each time, such as the data block corresponding to "0", the data block corresponding to "1", the data block corresponding to "2", the data block corresponding to "3", and the data block corresponding to "4" shown in fig. 6, may all be data blocks of 16 × 32Bit, that is, 64 bytes, and are not necessarily the second dot matrix data corresponding to one complete character to be displayed. As shown in fig. 7, the "big" word can be read completely only by dividing into 2 times of reading, when the second processor reads for the first time, the read content includes the left half of the "big", and when the second processor reads for the second time, the read content includes the right half of the "big" and also includes the data on the left side of the one-dot character "H".
When the characters to be displayed need to be displayed in a single row, namely all the characters to be displayed are displayed in a single row, the splicing relation between the second dot matrix data corresponding to each character to be displayed in the dot matrix data to be displayed cannot be influenced, and further the display effect presented cannot be influenced.
When the characters to be displayed need to be displayed in multiple rows, that is, all the characters to be displayed are displayed in at least two rows, a situation that the second dot matrix data corresponding to a certain character to be displayed is respectively displayed in two rows may occur. To avoid the above, in one implementation, when it is determined that a plurality of characters to be displayed are displayed in a plurality of lines;
before the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed, the method may further include:
obtaining a pre-stored minimum reading column number;
the pre-stored minimum reading column number is a data reading column number pre-agreed by the first processor and the second processor, the second processor can read the spliced dot matrix data to be displayed from a preset shared storage area based on the minimum reading column number, and the preset shared storage area is as follows: the area is used for storing the spliced dot matrix data to be displayed;
obtaining second dot matrix data corresponding to a first character to be displayed corresponding to each display line during multi-line display as initial dot matrix data;
the step of splicing the second dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed may include:
according to the display sequence, splicing the second dot matrix data corresponding to a plurality of characters to be displayed to obtain the spliced dot matrix data to be displayed, wherein the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the initial splicing position is as follows: and the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data does not exceed the minimum number of the reading columns, and the initial splicing position is the position of the first second dot matrix data in the current splicing process.
Wherein the display behavior is: and the line is used for displaying the second dot matrix data corresponding to the complete character to be displayed. When a plurality of characters to be displayed are displayed in a plurality of lines, that is, second dot matrix data corresponding to the plurality of characters to be displayed are displayed in a plurality of lines, that is, each display line displays second dot matrix data corresponding to part of the characters to be displayed in the second dot matrix data corresponding to the plurality of characters to be displayed, each initial dot matrix data can be spliced from a position of integral multiple of the minimum reading column number in the splicing process, wherein in order to avoid subsequent waste of a preset shared storage space and ensure a display effect, the number of intervals between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data does not exceed the minimum reading column number. Wherein, the splicing position corresponding to each initial lattice data is as follows: the position where the start lattice data starts to be spliced. Taking the example shown in fig. 6 as an example, when the second dot matrix data corresponding to the character "large" and the second dot matrix data corresponding to the character "k" are the second dot matrix data corresponding to the first character to be displayed corresponding to each display line, that is, the start dot matrix data, the splicing position corresponding to the second dot matrix data corresponding to the character "k" should be modified to the position indicated by "64", that is, the second dot matrix data corresponding to the character "k" is spliced from the position indicated by "64", and the position between the position indicated by "64" and the end position of the second dot matrix data corresponding to "i" is filled with the element with the value "0", and the start splicing position is the start position of the second dot matrix data corresponding to the character "large".
In the embodiment, when the characters to be displayed are displayed in multiple lines, the second dot matrix data corresponding to each character to be displayed can be completely displayed, the second dot matrix data corresponding to the characters to be displayed are prevented from being split and displayed, and the display effect and the attractiveness are better improved.
In one implementation of the present invention, the character size of each type of character can be set to be different when the character is displayed. For example: for an english type character, the character width is narrow, and the character size when the english type character is displayed can be set to 16 × 32Bit, and for a chinese type character, the character width is relatively wider than the width of the english type character, and the character size when the chinese type character is displayed can be set to 32 × 32 Bit. For the type of characters having a wider character width, for example, the characters of the Tibetan language type and the Sanskrit language type, the width may be set to be wider among the character sizes when the characters of the type are displayed, for example, the character size when the characters are displayed is set to 64 × 32Bit, or the like.
In one implementation of the present invention, when the characters to be displayed are all ASCII type characters, in one case, each character of the SCII type may occupy space (16/8) × 32Byte (Byte), and all the ASCII type characters total 256, and at this time, the whole ASCII character sub-library, i.e., the character sub-library in which the ASCII type characters are located, needs to occupy space of 16KB (Kilobyte ), and its data size is small. In one case, in order to achieve fast display of characters and improve character display efficiency, when the second processor is started, that is, when characters need to be displayed, the first processor directly sends the entire ASCII character sub-library to the preset shared storage area, where the ASCII character sub-library may be cached from a start position of the preset shared storage area, that is, first dot matrix data corresponding to each character in the ASCII character sub-library is cached; subsequently, the first processor may send the first identifier of each character to be displayed to the second processor, and after receiving the first identifier of each character to be displayed, the second processor reads the first dot matrix data corresponding to each character to be displayed from the ASCII code character sub-library cached in the preset shared storage area based on the first identifier, so as to control the display of the character to be displayed. It is understood that the second processor has pre-stored a starting position of the predetermined shared memory area.
Next, a process of adjusting the storage manner of the first dot matrix data after the number of the adjustment columns corresponding to each character to be displayed is adjusted based on the preset data reading information to obtain the second dot matrix data corresponding to each character to be displayed is described.
Taking the character "H" as an example, as shown in fig. 7, a schematic diagram of the structure of the first lattice data corresponding to the character "H".
In one case, the first dot matrix data corresponding to each character to be displayed may be stored in a single Byte alignment manner in a preset character library, that is, the width of the character "H" is 22 bits (i.e., 22 columns), the height of the character "H" is 21 bits (i.e., 21 rows), the actually required occupied space is 3 × 21 bytes, that is, 3 bytes are required to accommodate data with a width of 22 bits in the horizontal direction, but there are no pixels at the display positions corresponding to the last two columns, that is, the value of the element at the position of the last two columns is "0". According to the data storage manner in the preset character library with the horizontal direction as the main sequence and the vertical direction as the auxiliary sequence, the actual arrangement form of the first dot matrix data corresponding to the character "H" is shown in fig. 8A, where "BY" identifies the position occupied BY one byte, where "Y" may be each integer from 0 to 62.
In order to ensure the aesthetic appearance of the character display, the first dot matrix data corresponding to the character "H" needs to be adjusted to data having a height of 32 bits, and at this time, invalid data, i.e., an element having a value of "0", may be filled in at the top and bottom of the first dot matrix data corresponding to the character "H". Meanwhile, in order to ensure the aesthetic property of the character display, 1 column of invalid data is added before the first column or after the last column of the first dot matrix data corresponding to the character "H" as the interval between the characters to be displayed. Subsequently, the object of the storage mode of the converted byte is the first dot matrix data after adding rows and columns corresponding to the character "H", the actual height of the object is 32Bit, and the data amount of the data existing in each row is 22+1 ═ 23Bit, that is, the data of 23 columns × 32 rows.
As shown in fig. 8B, which is a schematic diagram of a conversion manner when the storage manner of the adjusted first dot matrix data corresponding to the character "H" is adjusted, when the storage manner of the bytes in the adjusted first dot matrix data corresponding to the character "H" is converted, the storage needs to be performed according to a single-byte completion mechanism to obtain the second dot matrix data corresponding to the character "H".
The first lattice data after adding rows and columns is hereinafter referred to as adjusted first lattice data.
In one implementation, when the second processor reads data from the preset shared memory space based on the preset data reading information, the second processor may read data from the preset shared memory space using a data specification of 16 × 32 bits (bits), that is, each time the second processor reads data from the preset shared memory space, the second processor may read data of 16 columns × 32 rows. In order to ensure that the second processor can read correct data each time the second processor reads data from the preset shared memory space, that is, the shape of a character drawn based on the read data is not changed, it is necessary to convert the storage manner of the bytes in the adjusted first lattice data corresponding to each character to obtain the second lattice data corresponding to each character. The preset data reading information may include the data specification, wherein the data rule includes a minimum reading column number and a minimum reading row number in each data reading, where when the data rule is 16 × 32Bit, the data rule represents that the minimum reading column number is 16 columns, and the minimum reading row number is 32 rows.
When the conversion is performed, the storage manner of the bytes in the adjusted first lattice data corresponding to each character needs to be converted according to the data specification of the read data set by the second processor. When the data specification of the read data is 16x32Bit, the storage mode of the byte in the adjusted first dot matrix data corresponding to each character needs to be converted to the storage mode of the data specification of the read data, which is 16x32 Bit. The data specification 16 × 32Bit storage method suitable for the read data is as follows: on the premise of not changing the character shape represented by the adjusted first dot matrix data corresponding to the character to be displayed, changing the storage arrangement sequence of bytes in the adjusted first dot matrix data corresponding to the character to be displayed. That is, it is required to ensure that the shape of the character represented by the first dot matrix data corresponding to the character to be displayed is the same as the shape of the character represented by the second dot matrix data corresponding to the character to be displayed.
When the second processor reads data from the preset shared memory area by using the data specification of 16x32Bit, it needs to read two bytes horizontally for each reading. It can be seen that, considering the reading manner of the second processor reading data from the preset shared memory area, the effect on character splicing is as follows: and the width of the adjusted first dot matrix data corresponding to the character to be displayed, namely the number of the included columns. In the process of character splicing, it is necessary to convert the storage arrangement order of the bytes in the adjusted first lattice data corresponding to each character, that is, to convert the storage manner of the bytes in the adjusted first lattice data corresponding to each character.
Taking the character "H" as an example, if the adjusted first dot matrix data corresponding to the character "H" is still stored in the storage manner shown in fig. 8B to obtain the corresponding second dot matrix data, and then the second processor reads the data from the preset shared storage area, an error is prone to occur, because in the storage manner shown in fig. 8B, the single bytes of the third byte of the second dot matrix data corresponding to the character "H" are aligned, and when the second processor reads the data from the preset shared storage area, the characters "B64 and B65" are continuously read, and the characters "B64 and B65" are horizontally drawn, so that the display of the subsequent character "H" is affected.
In order to avoid the foregoing situation, in the embodiment of the present invention, it is necessary to obtain the adjusted first dot matrix data, which laterally occupies three bytes, corresponding to the character "H", by supplementing one byte, and further adjust the storage manner of the adjusted first dot matrix data, which laterally occupies four bytes, corresponding to the character "H", by using the storage manner shown in fig. 8B. That is, the adjusted first bitmap data occupying four bytes horizontally corresponding to "H" is converted in a four-byte conversion manner, and every two bytes are stored continuously. The accuracy of the data read by the second processor each time is guaranteed.
In one implementation, in the process of character splicing, the storage arrangement sequence of the bytes in the adjusted first lattice data corresponding to each character is converted, that is, when the storage manner of the bytes in the adjusted first lattice data corresponding to each character is converted, the following situations can be divided into:
(1) when the width of the adjusted first dot matrix data corresponding to the character to be displayed is greater than or equal to 32 bits, that is, the number of columns is greater than or equal to 32 columns, conversion needs to be divided into a plurality of times, data with the width of 32 bits (4 bytes) is converted first, then the remaining data are converted, the remaining data are equivalent to a brand new character, and it is sufficient to judge which case the character belongs to again, and then conversion is performed according to the conversion mode corresponding to the case to which the character belongs. When data with the width of 32 bits which are converted first are converted, the conversion is carried out according to a conversion mode of four bytes, and every two bytes are stored continuously.
(2) The width of the first dot matrix data corresponding to the character to be displayed is greater than 24Bit and less than 32Bit, that is, the number of columns is greater than 24 and less than 32 column, each row of data of the first dot matrix data corresponding to the character to be displayed occupies 4 bytes, and after the data of 1Bit in the added column is added, the data amount of the data of each row does not exceed 4 bytes, at this time, direct conversion can be performed according to the condition that the width of the dot matrix data is 4 bytes, that is, conversion is performed according to the conversion mode of four bytes, and every two bytes are continuously stored.
(3) When the width of the first dot matrix data corresponding to the character to be displayed is greater than 16 bits and less than or equal to 24 bits, that is, the number of columns is greater than 16 and less than or equal to 24 columns, there is a special case that the width of the first dot matrix data corresponding to the character to be displayed is less than 24 bits, and after 1 data in one added column is added, the width of each row of data is 3 bytes, then the conversion manner may be as shown in fig. 8B, because the third byte in the adjusted first dot matrix data corresponding to the character to be displayed does not contain valid data, that is, the third byte contains invalid data, which does not affect the display shape of the character.
Here, unlike the case shown in fig. 8C, in the case shown in fig. 8C, the width of the first dot matrix data corresponding to the character to be displayed is 24 bits, the third byte thereof is not a dummy byte, that is, the third byte is not all invalid data, so that in the case where the third byte of the first dot matrix data corresponding to the character to be displayed is not a dummy byte before a column of invalid data is added, the conversion is performed in a four-byte conversion manner.
When the width of the first dot matrix data corresponding to the character to be displayed is exactly 24 bits, and the added data of 1Bit in one column is added, the width of the data to be converted in each row becomes 25 bits, at this time, 4 bytes are required to be occupied, and correspondingly, the conversion mode can be as shown in fig. 8C, and every two bytes are continuously stored.
(4) When the width of the first dot matrix data corresponding to the character to be displayed is greater than 8 bits and less than or equal to 16 bits, that is, the number of columns is greater than 8 and less than or equal to 16 columns, and when the width of the first dot matrix data corresponding to the character to be displayed is less than 16 bits, and after the data of 1Bit in the added column is added, conversion can be performed according to the condition that the width is 2 bytes, that is, conversion is performed according to a two-byte conversion mode;
when the width of the first dot matrix data corresponding to the character to be displayed is exactly 16 bits, after the data of 1Bit in the added column is added, the byte actually converted is 3 bytes, and the conversion can be performed according to the case that the width is 3 bytes, that is, according to the conversion mode of three bytes, and the conversion mode is as shown in fig. 8B. In this kind of situation, since the data to be filled is invalid, that is, the third byte on the width corresponding to the character to be displayed is invalid data, in the case that the width of the first bitmap data corresponding to the character to be displayed is less than 16 bits, the generated data is the same, and the final result is not affected, that is, the conversion can still be performed in the 2-byte conversion manner.
(5) The situation that the width of the first dot matrix data corresponding to the character to be displayed is less than or equal to 8 bits is similar to the situation described in (3), when the width of the first dot matrix data corresponding to the character to be displayed is less than 8 bits, the added data of 1Bit in a column is added, and then the conversion is carried out according to the single-byte conversion mode; and when the width of the first dot matrix data corresponding to the character to be displayed is equal to 8 bits, adding the added data of 1Bit in one column, and then converting according to a two-byte conversion mode.
The essence of the conversion mode of the different bytes is the same as that of the digital matrix conversion, and details are not repeated.
Corresponding to the above method embodiment, an embodiment of the present invention provides a character display apparatus, which is applied to a first processor of an electronic device, where the electronic device further includes a second processor, and as shown in fig. 9, the apparatus includes:
a first obtaining module 910, configured to obtain an identifier of a character to be displayed as a first identifier;
a determining module 920, configured to determine, based on the first identifier, first dot matrix data corresponding to the character to be displayed from a preset character library, where the preset character library includes a correspondence between the identifier of each character and the first dot matrix data corresponding to the character;
a sending module 930, configured to send the first dot matrix data corresponding to the character to be displayed to the second processor, so that the second processor controls display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed.
By applying the embodiment of the invention, the identifier of the character to be displayed is obtained and used as the first identifier; determining first dot matrix data corresponding to characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed. Therefore, in the embodiment of the invention, in the character display process, the first processor does not need to send the whole character library where the characters to be displayed are located to the second processor, and only the first dot matrix data corresponding to the characters to be displayed can be sent to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, the data volume of the characters to be sent in the character display process is reduced, the resource consumption of electronic equipment in the character display process can be saved to a certain extent, and the efficiency of the character display process of the electronic equipment is improved.
In one implementation, the sending module 930 is specifically configured to
Sending the first dot matrix data corresponding to the characters to be displayed to a preset shared storage area;
determining a second identifier of the character to be displayed, wherein the second identifier is: the mark is used for representing the storage position of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area;
and sending the second identifier of the character to be displayed to the second processor, so that the second processor reads the first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls the display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed.
In one implementation, the number of the characters to be displayed is multiple;
the device further comprises:
a second obtaining module, configured to obtain a display order of the multiple characters to be displayed before the first lattice data corresponding to the characters to be displayed is sent to the second processor;
the splicing module is used for splicing the first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed;
the sending module 930 is specifically configured to:
and sending the spliced dot matrix data to be displayed to the second processor so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed.
In one implementation mode, first dot matrix data corresponding to characters to be displayed is a matrix comprising a plurality of rows and a plurality of columns;
the device further comprises:
the generating module is used for generating second dot matrix data corresponding to each character to be displayed based on the first dot matrix data corresponding to each character to be displayed before the first dot matrix data corresponding to the characters to be displayed are spliced according to the display sequence to obtain the spliced dot matrix data to be displayed, wherein the number of rows contained in the second dot matrix data corresponding to each character to be displayed is the same;
the splicing module is particularly used for
And splicing a plurality of second dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed.
In one implementation, the generating module includes:
the first obtaining unit is used for obtaining a preset line number corresponding to the character to be displayed;
the adjusting unit is used for adjusting the lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of preset lines to obtain the first dot matrix data after the line number is adjusted corresponding to each character to be displayed;
and the determining unit is used for determining second lattice data corresponding to each character to be displayed according to the first lattice data after the row number is adjusted corresponding to each character to be displayed.
In one implementation, the generating module is specifically configured to
Determining the line number of lines contained in first dot matrix data corresponding to each character to be displayed;
determining the number of rows with the maximum numerical value from the determined number of rows as a reference number of rows;
and adjusting the lines of the first dot matrix data corresponding to each character to be displayed into a plurality of reference lines so as to generate second dot matrix data corresponding to each character to be displayed.
In one implementation, the first dot matrix data corresponding to the character to be displayed is a matrix representing the minimum size of the shape of the corresponding character to be displayed;
the generation module further comprises:
the adding unit is used for adding first preset column data before the first dot matrix data after the row number is adjusted corresponding to each character to be displayed contains the first column data before the second dot matrix data corresponding to each character to be displayed is determined according to the first dot matrix data after the row number is adjusted corresponding to each character to be displayed, and obtaining the first dot matrix data after the column number is adjusted corresponding to each character to be displayed; or the like, or, alternatively,
adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data to obtain the first lattice data after the column number is adjusted corresponding to each character to be displayed;
the determination unit is particularly used for
And determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed.
In one implementation, the determining unit is specifically configured to
Obtaining pre-stored data reading information;
and adjusting the storage mode of the first dot matrix data after the row number is adjusted corresponding to each character to be displayed based on the pre-stored data reading information so as to obtain second dot matrix data corresponding to each character to be displayed.
In one implementation, when a plurality of lines are determined to display a plurality of the characters to be displayed;
the device further comprises:
a third obtaining module, configured to obtain a pre-stored minimum number of read columns before the first dot matrix data corresponding to the multiple characters to be displayed are spliced according to the display sequence to obtain spliced dot matrix data to be displayed;
the fourth obtaining module is used for obtaining second dot matrix data corresponding to the first character to be displayed corresponding to each display line during multi-line display as initial dot matrix data;
the splicing module is specifically configured to:
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, wherein the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the initial splicing position is as follows: and the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data is not more than the number of the minimum reading columns, and the initial splicing position is the position of the first second dot matrix data in the splicing process.
In one implementation manner, the preset shared storage area includes a first shared storage area and a second shared storage area, where the first shared storage area is: an area for storing characters having non-numeric attributes, the second shared storage area being: an area for storing characters whose attributes are numbers.
Corresponding to the above method embodiment, an electronic device is further provided in the embodiment of the present invention, as shown in fig. 10, including a first processor 101, a second processor 102, a communication interface 103, a memory 104, and a communication bus 105, where the first processor 101, the second processor 102, the communication interface 103, and the memory 104 complete mutual communication through the communication bus 105,
a memory xx3 for storing computer programs;
the first processor 101 is configured to implement any of the character display method steps provided in the embodiments of the present invention when executing the computer program stored in the memory 104:
obtaining an identifier of a character to be displayed as a first identifier; determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; sending the first dot matrix data corresponding to the character to be displayed to the second processor,
the second processor 102 is configured to control display of the character to be displayed based on the first lattice data corresponding to the character to be displayed, which is sent by the first processor 101.
By applying the embodiment of the invention, the identifier of the character to be displayed is obtained and used as the first identifier; determining first dot matrix data corresponding to characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed. Therefore, in the embodiment of the invention, in the character display process, the first processor does not need to send the whole character library where the characters to be displayed are located to the second processor, and only the first dot matrix data corresponding to the characters to be displayed can be sent to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, the data volume of the characters to be sent in the character display process is reduced, the resource consumption of electronic equipment in the character display process can be saved to a certain extent, and the efficiency of the character display process of the electronic equipment is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Corresponding to the above method embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a first processor, the computer program implements any of the character display method steps provided in the embodiment of the present invention:
obtaining an identifier of a character to be displayed as a first identifier; determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed.
By applying the embodiment of the invention, the identifier of the character to be displayed is obtained and used as the first identifier; determining first dot matrix data corresponding to characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character; and sending the first dot matrix data corresponding to the characters to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed. Therefore, in the embodiment of the invention, in the character display process, the first processor does not need to send the whole character library where the characters to be displayed are located to the second processor, and only the first dot matrix data corresponding to the characters to be displayed can be sent to the second processor, so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, the data volume of the characters to be sent in the character display process is reduced, the resource consumption of electronic equipment in the character display process can be saved to a certain extent, and the efficiency of the character display process of the electronic equipment is improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (18)

1. A character display method applied to a first processor of an electronic device, the electronic device further including a second processor, the method comprising:
the first processor obtains an identifier of a character to be displayed as a first identifier;
determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises the corresponding relation between the identification of each character and the first dot matrix data corresponding to the character;
sending the first dot matrix data corresponding to the character to be displayed to the second processor, so that the second processor controls the display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed;
the number of the characters to be displayed is multiple;
before the step of sending the first lattice data corresponding to the character to be displayed to the second processor, the method further includes:
the first processor obtains a display sequence of a plurality of characters to be displayed;
splicing the first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed;
the step of sending the first dot matrix data corresponding to the character to be displayed to the second processor so that the second processor controls the display of the character to be displayed based on the first dot matrix data corresponding to the character to be displayed includes:
sending the spliced dot matrix data to be displayed to the second processor, so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed;
sending the first dot matrix data corresponding to the characters to be displayed to a preset shared storage area;
determining a second identifier of the character to be displayed, wherein the second identifier is: the mark is used for representing the storage position of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area;
and sending the second identifier of the character to be displayed to the second processor, so that the second processor reads the first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls the display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed.
2. The method of claim 1, wherein the first dot matrix data corresponding to the character to be displayed is a matrix comprising a plurality of rows and a plurality of columns;
before the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed, the method further includes:
the first processor generates second dot matrix data corresponding to each character to be displayed based on first dot matrix data corresponding to each character to be displayed, wherein the number of rows contained in the second dot matrix data corresponding to each character to be displayed is the same;
the step of splicing a plurality of first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed comprises the following steps:
and splicing a plurality of second dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed.
3. The method according to claim 2, wherein the step of generating the second lattice data corresponding to each character to be displayed based on the first lattice data corresponding to each character to be displayed comprises:
obtaining a preset line number corresponding to the character to be displayed;
adjusting lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of lines of the preset lines to obtain first dot matrix data after the line number is adjusted corresponding to each character to be displayed;
and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the line number is adjusted corresponding to each character to be displayed.
4. The method according to claim 2, wherein the step of generating the second lattice data corresponding to each character to be displayed based on the first lattice data corresponding to each character to be displayed comprises:
determining the line number of lines contained in first dot matrix data corresponding to each character to be displayed;
determining the number of rows with the maximum numerical value from the determined number of rows as a reference number of rows;
and adjusting the lines of the first dot matrix data corresponding to each character to be displayed into a plurality of reference lines so as to generate second dot matrix data corresponding to each character to be displayed.
5. The method according to claim 3, wherein the first dot matrix data corresponding to the character to be displayed is a matrix representing a minimum size of a shape of the corresponding character to be displayed;
before the step of determining the second lattice data corresponding to each character to be displayed according to the first lattice data after the row number adjustment corresponding to each character to be displayed, the method further includes:
adding first preset column data before first column data included in the first column data after the row number is adjusted corresponding to each character to be displayed to obtain the first dot matrix data after the column number is adjusted corresponding to each character to be displayed; or the like, or, alternatively,
adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data to obtain the first lattice data after the column number is adjusted corresponding to each character to be displayed;
the step of determining the second lattice data corresponding to each character to be displayed according to the first lattice data after the row number is adjusted corresponding to each character to be displayed includes:
and determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed.
6. The method according to claim 5, wherein the step of determining the second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the adjusted number of columns corresponding to each character to be displayed comprises:
obtaining pre-stored data reading information;
and adjusting the storage mode of the first dot matrix data after the row number is adjusted corresponding to each character to be displayed based on the pre-stored data reading information so as to obtain second dot matrix data corresponding to each character to be displayed.
7. The method according to any one of claims 1 to 6, wherein when it is determined that a plurality of the characters to be displayed are displayed in a plurality of lines;
before the step of splicing the first dot matrix data corresponding to the plurality of characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed, the method further includes:
obtaining a pre-stored minimum reading column number;
obtaining second dot matrix data corresponding to a first character to be displayed corresponding to each display line during multi-line display as initial dot matrix data;
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, and the method comprises the following steps:
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, wherein the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the initial splicing position is as follows: and the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data is not more than the number of the minimum reading columns, and the initial splicing position is the position of the first second dot matrix data in the splicing process.
8. The method according to claim 1, wherein the predetermined shared memory area comprises a first shared memory area and a second shared memory area, wherein the first shared memory area is: an area for storing characters having non-numeric attributes, the second shared storage area being: an area for storing characters whose attributes are numbers.
9. A character display apparatus applied to a first processor of an electronic device, the electronic device further including a second processor, the apparatus comprising:
the first obtaining module is used for obtaining the identifier of the character to be displayed as a first identifier;
the determining module is used for determining first dot matrix data corresponding to the characters to be displayed from a preset character library based on the first identification, wherein the preset character library comprises a corresponding relation between the identification of each character and the first dot matrix data corresponding to the character;
the sending module is used for sending the first dot matrix data corresponding to the characters to be displayed to the second processor so that the second processor controls the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed;
sending the first dot matrix data corresponding to the characters to be displayed to a preset shared storage area;
determining a second identifier of the character to be displayed, wherein the second identifier is: the mark is used for representing the storage position of the first dot matrix data corresponding to the character to be displayed in the preset shared storage area;
sending the second identifier of the character to be displayed to the second processor, so that the second processor reads first dot matrix data corresponding to the character to be displayed from the preset shared storage area based on the second identifier of the character to be displayed, and controls display of the character to be displayed based on the read first dot matrix data corresponding to the character to be displayed;
the number of the characters to be displayed is multiple;
the device further comprises:
a second obtaining module, configured to obtain a display order of the multiple characters to be displayed before the first lattice data corresponding to the characters to be displayed is sent to the second processor;
the splicing module is used for splicing the first dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain spliced dot matrix data to be displayed;
the sending module is specifically configured to:
and sending the spliced dot matrix data to be displayed to the second processor so that the second processor controls the display of the characters to be displayed based on the spliced dot matrix data to be displayed.
10. The apparatus of claim 9, wherein the first dot matrix data corresponding to the character to be displayed is a matrix comprising a plurality of rows and a plurality of columns;
the device further comprises:
the generating module is used for generating second dot matrix data corresponding to each character to be displayed based on the first dot matrix data corresponding to each character to be displayed before the first dot matrix data corresponding to the characters to be displayed are spliced according to the display sequence to obtain the spliced dot matrix data to be displayed, wherein the number of rows contained in the second dot matrix data corresponding to each character to be displayed is the same;
the splicing module is particularly used for
And splicing a plurality of second dot matrix data corresponding to the characters to be displayed according to the display sequence to obtain the spliced dot matrix data to be displayed.
11. The apparatus of claim 10, wherein the generating module comprises:
the first obtaining unit is used for obtaining a preset line number corresponding to the character to be displayed;
the adjusting unit is used for adjusting the lines included in the first dot matrix data corresponding to each character to be displayed into a plurality of preset lines to obtain the first dot matrix data after the line number is adjusted corresponding to each character to be displayed;
and the determining unit is used for determining second lattice data corresponding to each character to be displayed according to the first lattice data after the row number is adjusted corresponding to each character to be displayed.
12. The apparatus according to claim 10, wherein the generating module is specifically configured to determine a number of rows of a row included in the first lattice data corresponding to each character to be displayed;
determining the number of rows with the maximum numerical value from the determined number of rows as a reference number of rows;
and adjusting the lines of the first dot matrix data corresponding to each character to be displayed into a plurality of reference lines so as to generate second dot matrix data corresponding to each character to be displayed.
13. The apparatus according to claim 11, wherein the first dot matrix data corresponding to the character to be displayed is a matrix of a minimum size characterizing a shape of the corresponding character to be displayed;
the generation module further comprises:
the adding unit is used for adding first preset column data before the first dot matrix data after the row number is adjusted corresponding to each character to be displayed contains the first column data before the second dot matrix data corresponding to each character to be displayed is determined according to the first dot matrix data after the row number is adjusted corresponding to each character to be displayed, and obtaining the first dot matrix data after the column number is adjusted corresponding to each character to be displayed; or the like, or, alternatively,
adding second preset column data after the first lattice data after the row number is adjusted corresponding to each character to be displayed comprises the last column data to obtain the first lattice data after the column number is adjusted corresponding to each character to be displayed;
the determination unit is particularly used for
And determining second dot matrix data corresponding to each character to be displayed according to the first dot matrix data after the number of the columns is adjusted corresponding to each character to be displayed.
14. The apparatus according to claim 13, wherein the determining unit is specifically configured to obtain pre-stored data reading information;
and adjusting the storage mode of the first dot matrix data after the row number is adjusted corresponding to each character to be displayed based on the pre-stored data reading information so as to obtain second dot matrix data corresponding to each character to be displayed.
15. The apparatus according to any one of claims 9-14, wherein when it is determined that a plurality of said characters to be displayed are displayed in a plurality of rows;
the device further comprises:
a third obtaining module, configured to obtain a pre-stored minimum number of read columns before the first dot matrix data corresponding to the multiple characters to be displayed are spliced according to the display sequence to obtain spliced dot matrix data to be displayed;
the fourth obtaining module is used for obtaining second dot matrix data corresponding to the first character to be displayed corresponding to each display line during multi-line display as initial dot matrix data;
the splicing module is specifically configured to:
according to the display sequence, splicing a plurality of second dot matrix data corresponding to the characters to be displayed to obtain spliced dot matrix data to be displayed, wherein the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the initial splicing position is as follows: and the number of the interval columns between the splicing position corresponding to each initial dot matrix data and the splicing position corresponding to the previous second dot matrix data of the initial dot matrix data is not more than the number of the minimum reading columns, and the initial splicing position is the position of the first second dot matrix data in the splicing process.
16. The apparatus of claim 9, wherein the predetermined shared memory area comprises a first shared memory area and a second shared memory area, and wherein the first shared memory area is: an area for storing characters having non-numeric attributes, the second shared storage area being: an area for storing characters whose attributes are numbers.
17. An electronic device is characterized by comprising a first processor, a second processor, a communication interface, a memory and a communication bus, wherein the first processor, the second processor and the communication interface are used for realizing the communication among the memories through the communication bus;
a memory for storing a computer program;
a first processor for implementing the character display method steps of any one of claims 1 to 8 when executing the computer program stored in the memory;
and the second processor is used for controlling the display of the characters to be displayed based on the first dot matrix data corresponding to the characters to be displayed, which are sent by the first processor.
18. A computer-readable storage medium, in which a computer program is stored which, when being executed by a first processor, carries out the character display method steps of any one of claims 1 to 8.
CN201811472732.5A 2018-12-04 2018-12-04 Character display method and device and electronic equipment Active CN111276110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811472732.5A CN111276110B (en) 2018-12-04 2018-12-04 Character display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811472732.5A CN111276110B (en) 2018-12-04 2018-12-04 Character display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111276110A CN111276110A (en) 2020-06-12
CN111276110B true CN111276110B (en) 2021-10-19

Family

ID=71000011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811472732.5A Active CN111276110B (en) 2018-12-04 2018-12-04 Character display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111276110B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231607B (en) * 2020-10-15 2023-11-21 百度(中国)有限公司 Document processing method, device, electronic equipment and storage medium
CN113360113B (en) * 2021-05-24 2022-07-19 中国电子科技集团公司第四十一研究所 System and method for dynamically adjusting character display width based on OLED screen
CN113723342B (en) * 2021-09-08 2023-09-29 北京奇艺世纪科技有限公司 Subtitle display method and device, electronic equipment and readable storage medium
CN114442978A (en) * 2021-12-06 2022-05-06 深圳市乐升半导体有限公司 Character space adjusting method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739936A (en) * 2009-12-16 2010-06-16 台安科技(无锡)有限公司 Chinese character display method
CN101764971A (en) * 2008-12-23 2010-06-30 无锡华润矽科微电子有限公司 On-screen display device and on-screen display method thereof
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen
CN102103849A (en) * 2009-12-22 2011-06-22 无锡华润矽科微电子有限公司 OSD controller
CN102298498A (en) * 2011-08-15 2011-12-28 深圳创维数字技术股份有限公司 Soft keyboard character input processing method and device
CN102508822A (en) * 2011-11-09 2012-06-20 北京赛科世纪数码科技有限公司 Thai display method, device and system
CN104469468A (en) * 2014-12-26 2015-03-25 珠海迈越信息技术有限公司 Multi-language display method for OLED front panel of set top box
CN104639854A (en) * 2015-01-29 2015-05-20 广东迅通科技股份有限公司 String processing display method based on Davinci platform
WO2018188089A1 (en) * 2017-04-14 2018-10-18 华为技术有限公司 Data processing method, storage system and exchange device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9870322B2 (en) * 2015-11-12 2018-01-16 International Business Machines Corporation Memory mapping for object-based storage devices

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764971A (en) * 2008-12-23 2010-06-30 无锡华润矽科微电子有限公司 On-screen display device and on-screen display method thereof
CN101739936A (en) * 2009-12-16 2010-06-16 台安科技(无锡)有限公司 Chinese character display method
CN102103849A (en) * 2009-12-22 2011-06-22 无锡华润矽科微电子有限公司 OSD controller
CN101888505A (en) * 2010-06-13 2010-11-17 杭州海康威视数字技术股份有限公司 Method and device for displaying characters on screen
CN102298498A (en) * 2011-08-15 2011-12-28 深圳创维数字技术股份有限公司 Soft keyboard character input processing method and device
CN102508822A (en) * 2011-11-09 2012-06-20 北京赛科世纪数码科技有限公司 Thai display method, device and system
CN104469468A (en) * 2014-12-26 2015-03-25 珠海迈越信息技术有限公司 Multi-language display method for OLED front panel of set top box
CN104639854A (en) * 2015-01-29 2015-05-20 广东迅通科技股份有限公司 String processing display method based on Davinci platform
WO2018188089A1 (en) * 2017-04-14 2018-10-18 华为技术有限公司 Data processing method, storage system and exchange device

Also Published As

Publication number Publication date
CN111276110A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN111276110B (en) Character display method and device and electronic equipment
US9111007B2 (en) Adaptive rendering of a webpage on an electronic display device
CN109254773A (en) Skeleton page generation method, device, equipment and storage medium
CN103678267A (en) Method and system for typesetting and rendering image-text mixed content
CN106502659A (en) A kind of layout method of mobile device webpage single-page and system
CN113127784A (en) Large-screen data visual display method and device, storage medium and computer equipment
CN107479897B (en) A kind of vector graphics interface Zoom method used on video monitoring equipment
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
US10311060B2 (en) Glyph management in texture atlases
CN111223155B (en) Image data processing method, device, computer equipment and storage medium
CN111324836A (en) Page processing method and device, computer equipment and storage medium
CN102298498A (en) Soft keyboard character input processing method and device
CN111783007B (en) Display rendering method and device, electronic equipment and storage medium
CN110457016B (en) Data visualization processing method and device, computer equipment and storage medium
CN105389308A (en) Display processing method and device for web pages
US20150040058A1 (en) Method and System for Inputting Variant Character and Storage Medium
KR20220107902A (en) Rendering method and apparatus, electronic device and storage medium
US7461341B2 (en) Structured document display processor, method for processing display of structured document, and program for displaying structured document
CN108614805B (en) Method and system for displaying color expression using QML, server and medium
CN103309878A (en) Method and device used for layout in webpage displaying
CN113805709A (en) Information input method and device
CN113705190A (en) Text processing method, device and equipment
CN110188326B (en) Rich text generating method, rich text generating device, computer equipment and storage medium
CN106776489B (en) Electronic document display method and system of display device
CN111221458A (en) Rapid display method for copying, pasting, dragging and cloning global sliding table of big data

Legal Events

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