CN103745710A - Text information playing device and method - Google Patents
Text information playing device and method Download PDFInfo
- Publication number
- CN103745710A CN103745710A CN201310648928.6A CN201310648928A CN103745710A CN 103745710 A CN103745710 A CN 103745710A CN 201310648928 A CN201310648928 A CN 201310648928A CN 103745710 A CN103745710 A CN 103745710A
- Authority
- CN
- China
- Prior art keywords
- font
- type
- word message
- played
- size
- 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.)
- Granted
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention relates to a text information playing device and method. The method comprises the following steps: font attributes of text information to be played are acquired, wherein the font attributes comprise the font type, the font name and the font size; font conversion is judged whether needs to be performed according to the font type; and when font conversion needs to be performed because the font type is the second type of font, the font size is scaled according to a preset ratio, and a matched first type of font is found out from the first type of font library according to the font name and the scaled font size, and the text information to be played is controlled to be played and displayed in the matched first type of font. Thus, according to the invention, the display effects of two types of fonts can be realized by only setting one type of font library, so that the font library of the system can be maintained easily.
Description
Technical field
The present invention relates to display technique field, particularly a kind of Word message playing device and method.
Background technology
At present, LED display system is widely used in city medium, urban transportation electronic mark board, user can play according to demand and show various types of Word messages, comprise a lantern adorned with a revolving circle of paper horses, static text, so just need user's choice for use vector fonts or raster font display text information according to demand.The shortcoming that current system plays display text information exists: the one in (1) existing system support vector font or raster font, so just cannot realize the demonstration of another kind of font, if realize, show, user need to be familiar with vector fonts and raster font just can be changed easily; (2) existing system can be supported two types of fonts, but need to safeguard the fontlib of two types, and the storage capacity to system and the ability of maintenance have very high requirement.
Summary of the invention
Therefore, the technical matters existing for solving prior art, the present invention proposes a kind of Word message playing device and method.
Particularly, a kind of Word message playing device that the embodiment of the present invention proposes, comprising: font attribute acquisition module, conversion judge module, font modular converter, first kind fontlib and transmit control module.Wherein, font attribute acquisition module is for obtaining the font attribute of Word message to be played, and described font attribute comprises font type, font name and font size.Conversion judge module is for judging whether to carry out font conversion according to described font type.Font modular converter for when described font type be Second Type font and need to carry out font change time described font size is carried out to convergent-divergent by preset ratio.Transmit control module is used for according to the font size after described font name and convergent-divergent, from described first kind fontlib, finding out the first kind font matching, and controls described Word message to be played and play demonstration with the described first kind font matching.
In addition, a kind of Word message player method that the embodiment of the present invention proposes, comprises step: obtain the font attribute of Word message to be played, described font attribute comprises font type, font name and font size; According to described font type, judge whether to carry out font conversion; When described font type is Second Type font and need to carry out font conversion, described font size is carried out to convergent-divergent by preset ratio, and according to the font size after described font name and convergent-divergent, from first kind fontlib, find out the first kind font matching, and control described Word message to be played and play demonstration with the described first kind font matching.
As from the foregoing, the embodiment of the present invention only need to arrange the fontlib of a type can realize two types of font display effects, makes the fontlib of system safeguard simple.
By the detailed description below with reference to accompanying drawing, it is obvious that other side of the present invention and feature become.But it should be known that the only object design for explaining of this accompanying drawing, rather than as the restriction of scope of the present invention, this is because it should be with reference to additional claim.Should also be appreciated that, unless otherwise noted, the unnecessary accompanying drawing of drawing to scale, they only try hard to illustrate conceptually structure described herein and flow process.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Fig. 1 is the modular construction schematic diagram of a kind of Word message playing device of the embodiment of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Refer to Fig. 1, the modular construction schematic diagram of its a kind of Word message playing device that is the embodiment of the present invention.As shown in Figure 1, Word message playing device comprises: font attribute acquisition module 110, conversion judge module 130, font modular converter 150, first kind fontlib 170 and transmit control module 190; Word message playing device herein is for example realized with software, and it can be arranged in LED display system, for example, be arranged on the asynchronous control card of LED display asynchronous system, but the present invention is not as limit.
Particularly, font attribute acquisition module 110, for obtaining the font attribute of Word message to be played, comprises the attributes such as font type, font name and font size.Font type is for example: raster font, vector fonts etc.; Font name is for example: the Song typeface, regular script etc.
Font modular converter 150 is for when the font type of Word message to be played being Second Type font and need to carry out font conversion and time the font size of Word message to be played be carried out to convergent-divergent by preset ratio.Illustrate, for the transformational relation of vector fonts size and raster font size, be preferably: vector fonts size=raster font size * 3/4, raster font size=vector fonts size * 4/3.
Transmit control module 190 is for find out the first kind font matching from first kind fontlib 170 according to the font size after the font name of Word message to be played and convergent-divergent, and controls Word message to be played and play demonstration with the described first kind font matching; And without carrying out under the situation of font conversion, for finding out the first kind font matching and control accordingly Word message to be played and play demonstration from first kind fontlib 170 according to the font name of Word message to be played and font size.
By a kind of Word message player method describing in detail based on aforementioned Word message playing device, it for example comprises the following steps below:
First, obtain the font attribute of Word message to be played, the attributes such as such as font type, font name and font size; In the present embodiment, font type can be raster font, can be also vector fonts.
Afterwards, according to the font type of Word message to be played, can judge whether need to carry out font conversion.Be understandable that herein, due to configured be first kind fontlib, if the font type of Word message to be played is the Second Type font that is different from first kind font, judgement need to be carried out font conversion, certainly if first kind font, without doing font conversion.
Then, when the font type of Word message to be played is the Second Type font that is different from first kind font, the font size of Word message to be played is carried out to convergent-divergent by preset ratio, according to the font size after the font name of Word message to be played and convergent-divergent, from first kind fontlib 170, find out again afterwards the first kind font matching, and control Word message to be played and play demonstration with the first kind font matching finding out, to reach and directly to play and show the akin effect of display effect being had with Second Type font according to the font attribute of Word message to be played.Be understandable that, if the font type of Word message to be played is first kind font, directly according to the font name in font attribute and font size, from first kind fontlib 170, finds out the font matching and play accordingly demonstration.
For ease of understanding, below especially exemplified by the example that goes out several font conversions.
[giving an example one]: when the font type in the font attribute of Word message to be played, font name and font size are respectively: raster font, the Song typeface and 64 × 64, and the fontlib configuring is vector fonts storehouse; Therefore for reaching the desired display effect of font attribute of Word message to be played, raster font size 64 × 64 is converted to vector fonts size, the vector fonts size after changing is No. 48 fonts, is also (64*3/4); Afterwards, in vector fonts storehouse, find out the Song typeface, No. 48 fonts, and control Word message to be played and play demonstration with vector fonts, No. 48 Song typefaces, its display effect presenting approaches Word message to be played from the angle of human eye and directly with raster font, 64 × 64 Song typefaces, plays and show the display effect being presented very much.
[giving an example two]: when the font type in the font attribute of Word message to be played, font name and font size are respectively: vector fonts, the Song typeface and No. 12 fonts, and the fontlib configuring is raster font storehouse; Therefore for reaching the desired display effect of font attribute of Word message to be played, No. 12 fonts of vector fonts size are converted to raster font size, raster font size after changing is 16 × 16, be also (12*4/3) × (12*4/3); Afterwards, in raster font storehouse, find out the Song typeface, 16 × 16 fonts, and control Word message to be played and play demonstration with raster font, 16 × 16 Song typefaces, its display effect presenting approaches Word message to be played from the angle of human eye and directly with vector fonts, No. 12 Song typefaces, plays and show the display effect being presented very much.
In sum, the above embodiment of the present invention only need to arrange the fontlib of a type can realize two types of font display effects, makes the fontlib of system safeguard simple.
Applied specific case herein Word message playing device of the present invention and square ratio juris and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention; all will change in specific embodiments and applications; in sum, this description should not be construed as limitation of the present invention, and protection scope of the present invention should be as the criterion with appended claim.
Claims (9)
1. a Word message playing device, is characterized in that, comprising:
Font attribute acquisition module, for obtaining the font attribute of Word message to be played, described font attribute comprises font type, font name and font size;
Conversion judge module, need to carry out font conversion for judging whether according to described font type;
Font modular converter, for when described font type being Second Type font and need to carry out font conversion and time described font size be carried out to convergent-divergent by preset ratio;
First kind fontlib;
Transmit control module, for find out the first kind font matching from described first kind fontlib according to the font size after described font name and convergent-divergent, and control described Word message to be played and play demonstration with the described first kind font matching.
2. Word message playing device as claimed in claim 1, is characterized in that, first kind font is a kind of font type in vector fonts and raster font, and described Second Type font is the another kind of font type in vector fonts and raster font.
3. Word message playing device as claimed in claim 2, is characterized in that, when described Second Type font is raster font, described preset ratio is 3/4.
4. Word message playing device as claimed in claim 2, is characterized in that, when described Second Type font is vector fonts, described preset ratio is 4/3.
5. a Word message player method, is characterized in that, comprises step:
Obtain the font attribute of Word message to be played, described font attribute comprises font type, font name and font size;
According to described font type, judge whether to carry out font conversion; And
When described font type is Second Type font and need to carry out font conversion, described font size is carried out to convergent-divergent by preset ratio, and according to the font size after described font name and convergent-divergent, from first kind fontlib, find out the first kind font matching, and control described Word message to be played and play demonstration with the described first kind font matching.
6. Word message player method as claimed in claim 5, is characterized in that, comprises step:
When described font type is first kind font and without carrying out font conversion, according to the font name of described Word message to be played and font size, from described first kind fontlib, find out the first kind font matching, and control described Word message to be played and play demonstration with the described first kind font matching.
7. Word message player method as claimed in claim 5, is characterized in that, described first kind font is a kind of font type in vector fonts and raster font, and described Second Type font is the another kind of font type in vector fonts and raster font.
8. Word message player method as claimed in claim 7, is characterized in that, when described Second Type font is raster font, described preset ratio is 3/4.
9. Word message player method as claimed in claim 7, is characterized in that, when described Second Type font is vector fonts, described preset 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 true CN103745710A (en) | 2014-04-23 |
CN103745710B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110188329A (en) * | 2019-05-29 | 2019-08-30 | 惠州市德赛西威汽车电子股份有限公司 | Method for mutually conversing and its system between the number of both font types |
CN110795258A (en) * | 2018-07-17 | 2020-02-14 | 珠海金山办公软件有限公司 | Font library matching method, device and equipment |
CN114333723A (en) * | 2021-12-28 | 2022-04-12 | 浙江航芯科技有限公司 | 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 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795258A (en) * | 2018-07-17 | 2020-02-14 | 珠海金山办公软件有限公司 | Font library matching method, device and equipment |
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 |
CN114333723A (en) * | 2021-12-28 | 2022-04-12 | 浙江航芯科技有限公司 | Method, system, equipment and storage medium for displaying characters by LCD |
CN114333723B (en) * | 2021-12-28 | 2023-08-18 | 浙江航芯科技有限公司 | Method, system, equipment and storage medium for displaying characters by LCD |
Also Published As
Publication number | Publication date |
---|---|
CN103745710B (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101719335B (en) | Grid picture electronic map for geographic information system | |
CN105975576B (en) | Terminal content adaptive display method and device and terminal | |
CN103137103A (en) | Character display method and device | |
CN101699426A (en) | Document format conversion system and method | |
CN103745710A (en) | Text information playing device and method | |
CN103093068A (en) | Method and client side for acquiring task data | |
CN102841887A (en) | Method and device for typesetting variable data | |
CN107423012B (en) | A kind of data display method, device and electronic equipment | |
CN103941976B (en) | A kind of information processing method and electronic equipment | |
CN113835806B (en) | Page layout method and device, electronic equipment and storage medium | |
Jiang et al. | Partial slingshot reconnection between two filaments | |
EP2629229A3 (en) | Bootstrapping access models in the absence of training data | |
CN103365968A (en) | Webpage content magnification method and webpage content magnifier | |
CN102663795A (en) | 2.5D character animation realization method based on webpage and system thereof | |
CN104575122A (en) | Touch type learning system and touch type learning machine | |
Sakaue et al. | Dynamics of polymer decompression: Expansion, unfolding, and ejection | |
CN102902658A (en) | Colorful character displaying method and device | |
CN108271060A (en) | A kind of list loading method and device | |
CN203775201U (en) | LED display system based on Bluetooth, NFC and WIFI communication | |
CN105354295B (en) | Dynamic display device and method for three-dimensional dynamic plotting point labels | |
CN108256124A (en) | Method for building website, device, server and storage medium | |
CN202872906U (en) | Mobile terminal which displays in swinging | |
CN202502711U (en) | LED display screen asynchronous controller based on high-speed SD card storage interface | |
Sampson et al. | Delivering IMS learning design activities via mobile devices | |
CN104317875A (en) | Engineering graphics course test paper production system |
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 |
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. |
|
CP03 | Change of name, title or address |