CN103745710B - Word message playing device and method - Google Patents
Word message playing device and method Download PDFInfo
- Publication number
- CN103745710B CN103745710B CN201310648928.6A CN201310648928A CN103745710B CN 103745710 B CN103745710 B CN 103745710B CN 201310648928 A CN201310648928 A CN 201310648928A CN 103745710 B CN103745710 B CN 103745710B
- Authority
- CN
- China
- Prior art keywords
- font
- type
- conversion
- played
- playing
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000006243 chemical reaction Methods 0.000 claims abstract description 40
- 239000011159 matrix material Substances 0.000 claims description 24
- 230000000694 effects Effects 0.000 abstract description 11
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The present invention relates to a kind of Word message playing device and method, wherein said method comprises step: the font attribute obtaining Word message to be played, and described font attribute comprises font type, font name and font size; Judge whether to need to carry out font conversion according to described font type; And when described font type is that Second Type font needs to carry out font conversion, by preset ratio, convergent-divergent is carried out to described font size, and from first kind fontlib, find out the first kind font matched according to the font size after described font name and convergent-divergent, and control described Word message to be played with the described first kind font matched carry out broadcasting display.Therefore, the present invention only needs the fontlib arranging a type can realize two type font display effects, the fontlib of system is safeguarded simple.
Description
Technical Field
The present invention relates to the field of display technologies, and in particular, to a text information playing apparatus and method.
Background
At present, an LED display screen system is widely applied to urban media and urban traffic electronic signboards, and users can play and display various types of character information including trotting horse lamps and static texts according to requirements, so that the users are required to select vector fonts or dot matrix fonts to display the character information according to the requirements. The current system has the following disadvantages in playing and displaying text information: (1) the existing system only supports one of the vector font or the dot matrix font, so that the display of the other font cannot be realized, and if the display is realized, a user needs to be familiar with the vector font and the dot matrix font to conveniently convert the font; (2) the existing system can support two types of fonts, but needs to maintain two types of font libraries, and has high requirements on the storage capacity and the maintenance capacity of the system.
Disclosure of Invention
Therefore, in order to solve the technical problems in the prior art, the present invention provides a text information playing apparatus and method.
Specifically, a text information playing device provided in an embodiment of the present invention includes: the font conversion system comprises a font attribute acquisition module, a conversion judgment module, a font conversion module, a first type font library and a play control module. The font attribute acquiring module is used for acquiring the font attributes of the character information to be played, wherein the font attributes comprise font types, font names and font sizes. And the conversion judging module is used for judging whether the font conversion is needed or not according to the font type. And the font conversion module is used for scaling the font size according to a preset proportion when the font type is a second type font and the font conversion is needed. The playing control module is used for searching out a matched first type font from the first type font library according to the font name and the scaled font size, and controlling the character information to be played and displayed by the matched first type font.
In addition, the method for playing the text information provided by the embodiment of the invention comprises the following steps: acquiring font attributes of character information to be played, wherein the font attributes comprise font types, font names and font sizes; judging whether font conversion is needed or not according to the font type; and when the font type is a second type font and needs font conversion, scaling the font size according to a preset proportion, searching a matched first type font from a first type font library according to the font name and the scaled font size, and controlling the text information to be played and displayed by the matched first type font.
Therefore, the embodiment of the invention can realize the display effect of the two types of fonts only by setting one type of font library, so that the font library of the system is simple to maintain.
Other aspects and features of the present invention will become apparent from the following detailed description, which proceeds with reference to the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention, for which reference should be made to the appended claims. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
Drawings
The following detailed description of embodiments of the invention will be made with reference to the accompanying drawings.
Fig. 1 is a schematic view of a modular structure of a text message playing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Fig. 1 is a schematic view of a modular structure of a text information playing apparatus according to an embodiment of the present invention. As shown in fig. 1, the text information playing device includes: a font property acquiring module 110, a conversion judging module 130, a font converting module 150, a first type font library 170, and a play control module 190; the text message playing device is implemented by software, for example, and may be installed in an LED display screen system, for example, an asynchronous control card of an LED display screen asynchronous system, but the invention is not limited thereto.
Specifically, the font attribute obtaining module 110 is configured to obtain font attributes of the text information to be played, where the font attributes include attributes such as a font type, a font name, and a font size. Font types are for example: dot matrix fonts, vector fonts, and the like; the font names are for example: song Dynasty, regular script, etc.
The conversion determining module 130 is configured to determine whether font conversion is needed according to the font type in the font attribute of the text information to be played, which is obtained by the font attribute obtaining module 110. For example, when the first type font library 170 is a dot matrix font library, if the font type of the text information to be played is a vector font, the determination result of the conversion determining module 130 is that font conversion is required, otherwise, if the font type of the text information to be played is a dot matrix font, the determination result of the conversion determining module 130 is that font conversion is not required. Similarly, when the first type font library 170 is a vector font library, if the font type of the text information to be played is a dot matrix font, the determination result of the conversion determining module 130 is that font conversion is required, otherwise, if the font type of the text information to be played is a vector font, the determination result of the conversion determining module 130 is that font conversion is not required.
The font conversion module 150 is configured to scale the font size of the text information to be played according to a preset ratio when the font type of the text information to be played is the second type font and font conversion is required. For example, the conversion relationship between the vector font size and the dot matrix font size is preferably: vector font size = dot matrix font size 3/4, dot matrix font size = vector font size 4/3.
The playing control module 190 is configured to find a matched first type font from the first type font library 170 according to the font name of the text information to be played and the scaled font size, and control the text information to be played in the matched first type font for playing and displaying; and in the case of no font conversion, the method and the device are configured to find out the matched first type font from the first type font library 170 according to the font name and the font size of the text information to be played, and accordingly control the text information to be played for display.
A text message playing method based on the text message playing apparatus will be described in detail below, which includes the following steps:
firstly, obtaining font attributes of character information to be played, such as font type, font name, font size and other attributes; in this embodiment, the font type may be a dot matrix font or a vector font.
And then, judging whether the font conversion is needed or not according to the font type of the character information to be played. It can be understood here that, since the first type font library is configured, if the font type of the text information to be played is a second type font different from the first type font, it is determined that font conversion is required, and certainly if the font type of the text information to be played is the first type font, font conversion is not required.
Then, when the font type of the text information to be played is a second type font different from the first type font, the font size of the text information to be played is scaled according to a preset proportion, then the matched first type font is searched from the first type font library 170 according to the font name of the text information to be played and the scaled font size, and the text information to be played is controlled to be played and displayed by the searched matched first type font, so that the effect similar to the display effect of directly playing and displaying the second type font according to the font attribute of the text information to be played is achieved. It can be understood that, if the font type of the text information to be played is the first type font, the matching font is found from the first type font library 170 directly according to the font name and the font size in the font attribute, and the playing and displaying are performed accordingly.
For ease of understanding, several examples of font conversion are specified below.
[ EXAMPLES one ]: when the font type, the font name and the font size in the font attribute of the text information to be played are respectively: lattice font, Song font and 64 x 64, and the configured font library is vector font library; therefore, in order to achieve the display effect required by the font property of the text information to be played, the dot matrix font size 64 × 64 is converted into the vector font size, and the converted vector font size is the font size of 48, namely (64 × 3/4); and then searching the Song font and the 48-Song font in the vector font library, and controlling the character information to be played and displayed in the vector font and the 48-Song font, wherein the displayed display effect is very close to the display effect of the character information to be played from the angle of human eyes, and the displayed display effect is directly played and displayed in a dot matrix font and a 64 multiplied by 64 Song font.
[ EXAMPLE two ]: when the font type, the font name and the font size in the font attribute of the text information to be played are respectively: vector font, Song font and No. 12 font, and the configured font library is a dot matrix font library; therefore, in order to achieve the display effect required by the font property of the text information to be played, the font with the vector font size of 12 is converted into the dot matrix font size, and the converted dot matrix font size is 16 × 16, namely (12 × 4/3) × (12 × 4/3); and then searching the Song font and the 16 x 16 font in the dot matrix font library, and controlling the character information to be played and displayed in the dot matrix font and the 16 x 16 Song font, wherein the displayed display effect is very close to that of the character information to be played from the angle of human eyes and is directly played and displayed in the vector font and the Song font with the number of 12.
In summary, the embodiment of the present invention only needs to set one type of font library to achieve the two types of font display effects, so that the font library of the system is simple to maintain.
The principle and implementation of the text information playing device and method of the present invention are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and its core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention, and the scope of the present invention should be subject to the appended claims.
Claims (9)
1. A text information playing apparatus comprising: the font conversion system comprises a font attribute acquisition module, a font conversion module and a first type font library; the device is characterized by also comprising a conversion judgment module and a play control module; wherein,
the font attribute acquisition module is used for acquiring font attributes of character information to be played, and the font attributes comprise font types, font names and font sizes;
the conversion judging module is used for judging whether the font conversion is needed according to the font type;
the font conversion module is used for scaling the font size according to a preset proportion when the font type is a second type font and font conversion is needed;
the playing control module is used for searching out a matched first type font from the first type font library according to the font name and the scaled font size, and controlling the character information to be played and displayed by the matched first type font.
2. The apparatus for playing back letter information according to claim 1, wherein the first type of font is one of a vector font and a dot matrix font, and the second type of font is the other of the vector font and the dot matrix font.
3. The apparatus for playing text messages according to claim 2, wherein when the second type of font is a dot matrix font, the predetermined ratio is 3/4.
4. The apparatus for playing text messages according to claim 2, wherein when the second type font is a vector font, the predetermined ratio is 4/3.
5. A text message playing method is characterized by comprising the following steps:
acquiring font attributes of character information to be played, wherein the font attributes comprise font types, font names and font sizes;
judging whether font conversion is needed or not according to the font type; and
and when the font type is a second type font and needs font conversion, scaling the font size according to a preset proportion, searching a matched first type font from a first type font library according to the font name and the scaled font size, and controlling the text information to be played and displayed by the matched first type font.
6. The text message playing method according to claim 5, comprising the steps of:
and when the font type is a first type font without font conversion, searching a matched first type font from the first type font library according to the font name and the font size of the character information to be played, and controlling the character information to be played and displayed by the matched first type font.
7. The method for playing text information according to claim 5, wherein the first type font is one of a vector font and a dot matrix font, and the second type font is the other of the vector font and the dot matrix font.
8. The method for playing text messages according to claim 7, wherein when the second type of font is a dot matrix font, the predetermined ratio is 3/4.
9. The method for playing text messages according to claim 7, wherein when the second type font is a vector font, the predetermined ratio is 4/3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310648928.6A CN103745710B (en) | 2013-12-04 | 2013-12-04 | Word message playing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310648928.6A CN103745710B (en) | 2013-12-04 | 2013-12-04 | Word message playing device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103745710A CN103745710A (en) | 2014-04-23 |
CN103745710B true CN103745710B (en) | 2015-11-25 |
Family
ID=50502723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310648928.6A Active CN103745710B (en) | 2013-12-04 | 2013-12-04 | Word message playing device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103745710B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795258B (en) * | 2018-07-17 | 2023-03-24 | 珠海金山办公软件有限公司 | Font library matching method, device and equipment |
CN110188329A (en) * | 2019-05-29 | 2019-08-30 | 惠州市德赛西威汽车电子股份有限公司 | Method for mutually conversing and its system between the number of both font types |
CN114333723B (en) * | 2021-12-28 | 2023-08-18 | 浙江航芯科技有限公司 | Method, system, equipment and storage medium for displaying characters by LCD |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62232087A (en) * | 1986-04-02 | 1987-10-12 | Nec Corp | Character dot-font segmentation system |
JPH05313637A (en) * | 1992-05-11 | 1993-11-26 | Fuji Xerox Co Ltd | Font data processing part |
US5414448A (en) * | 1991-09-03 | 1995-05-09 | Hitachi, Ltd. | Character/pattern generator and information processing system |
CN101192212A (en) * | 2006-11-20 | 2008-06-04 | 中兴通讯股份有限公司 | System and method for implementing font with frame on terminal |
CN101202976A (en) * | 2006-12-13 | 2008-06-18 | 希姆通信息技术(上海)有限公司 | Apparatus and method of mobile communication terminal character conversion |
CN102208180A (en) * | 2011-06-02 | 2011-10-05 | 福建新大陆通信科技股份有限公司 | Method for rapidly displaying vector font by set top box (STB) |
CN102426565A (en) * | 2011-11-03 | 2012-04-25 | 北京华大智宝电子系统有限公司 | SOC (System on Chip) chip with font processing function |
CN102521261A (en) * | 2011-11-18 | 2012-06-27 | 四川长虹电器股份有限公司 | Method for manufacturing dot matrix word stock according to vector word stock |
-
2013
- 2013-12-04 CN CN201310648928.6A patent/CN103745710B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62232087A (en) * | 1986-04-02 | 1987-10-12 | Nec Corp | Character dot-font segmentation system |
US5414448A (en) * | 1991-09-03 | 1995-05-09 | Hitachi, Ltd. | Character/pattern generator and information processing system |
JPH05313637A (en) * | 1992-05-11 | 1993-11-26 | Fuji Xerox Co Ltd | Font data processing part |
CN101192212A (en) * | 2006-11-20 | 2008-06-04 | 中兴通讯股份有限公司 | System and method for implementing font with frame on terminal |
CN101202976A (en) * | 2006-12-13 | 2008-06-18 | 希姆通信息技术(上海)有限公司 | Apparatus and method of mobile communication terminal character conversion |
CN102208180A (en) * | 2011-06-02 | 2011-10-05 | 福建新大陆通信科技股份有限公司 | Method for rapidly displaying vector font by set top box (STB) |
CN102426565A (en) * | 2011-11-03 | 2012-04-25 | 北京华大智宝电子系统有限公司 | SOC (System on Chip) chip with font processing function |
CN102521261A (en) * | 2011-11-18 | 2012-06-27 | 四川长虹电器股份有限公司 | Method for manufacturing dot matrix word stock according to vector word stock |
Also Published As
Publication number | Publication date |
---|---|
CN103745710A (en) | 2014-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
ES2866798T3 (en) | Systems, methods, and interfaces for displaying online content and block-level content on an access device | |
WO2017173914A1 (en) | Method and device for changing information display interface | |
CN105975576B (en) | Terminal content adaptive display method and device and terminal | |
CN105446946B (en) | Rearrangement method, system and the electronic reading terminal of format document | |
WO2016015564A1 (en) | Method and apparatus for displaying document | |
CN101699426A (en) | Document format conversion system and method | |
CN104078038B (en) | A kind of content of pages reads aloud method and apparatus | |
CN102065234B (en) | Caption producing and broadcasting method and system based on distributive type caption processing system | |
CN103353878A (en) | Method for displaying files of different file formats in webpage | |
CN104063489A (en) | Method and device for determining webpage image relevancy and displaying retrieved result | |
US20130262987A1 (en) | Document processing method, apparatus and editor | |
WO2017016101A1 (en) | Search result display method, device and search engine | |
CN103745710B (en) | Word message playing device and method | |
CN105956133B (en) | Method and device for displaying file on intelligent terminal | |
CN110766772A (en) | Flatter-based cross-platform poster manufacturing method, device and equipment | |
US20150006174A1 (en) | Information processing device, information processing method and program | |
CN116881412A (en) | Chinese character multidimensional information matching training method and device, electronic equipment and storage medium | |
KR102087274B1 (en) | Web electric document editing apparatus for rendering object and operating method thereof | |
JP2013137654A (en) | In-vehicle communication service utilization system and in-vehicle communication service utilization method | |
CN102436464A (en) | Method for supporting multi-font display, user side and server | |
US9965446B1 (en) | Formatting a content item having a scalable object | |
CN106599225A (en) | 3D specification display system | |
CN103617151A (en) | Method for making flash courseware | |
CN105354295B (en) | Dynamic display device and method for three-dimensional dynamic plotting point labels | |
CN112256176B (en) | Character display method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 710075 DEF101, Zero One Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province Patentee after: XI'AN NOVASTAR TECH Co.,Ltd. Address before: 710075 Qinfengge D District 401, Xi'an Software Park, 68 Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province Patentee before: Xi'an NovaStar Tech Co.,Ltd. |