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
- word message
- played
- conversion
- 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
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 display technique field, particularly a kind of Word message playing device and method.
Background technology
At present, LED display screen system is widely used in city medium, urban transportation electronic mark board, user can play the various types of Word message of display according to demand, 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 Word message according to demand.The shortcoming that current system plays display Word message exists: the one in (1) existing system support vector font or raster font, so just cannot realize the display of another kind of font, if realize display, user needs to be familiar with vector fonts and raster font just can be changed easily; (2) existing system can support two type fonts, but needs the fontlib of maintenance two type, has very high requirement to the storage capacity of system and the ability of maintenance.
Summary of the invention
Therefore, for solving the technical matters that prior art exists, 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 used for judging whether to need to carry out font conversion according to described font type.Font modular converter is used for when described font type is that Second Type font needs, when carrying out font conversion, described font size is carried out convergent-divergent by preset ratio.Transmit control module be used for from described first kind fontlib, find out according to the font size after described font name and convergent-divergent the first kind font matched, and control described Word message to be played with the described first kind font matched carry out broadcastings show.
In addition, a kind of Word message player method that the embodiment of the present invention proposes, comprise step: the font attribute obtaining Word message to be played, 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; 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.
As from the foregoing, the embodiment of the present invention only needs the fontlib arranging a type can realize two type font display effects, the fontlib of system is safeguarded simple.
By the detailed description below with reference to accompanying drawing, other side of the present invention and feature become obvious.But it should be known that this accompanying drawing is only the object design of explanation, instead of as the restriction of scope of the present invention, this is because it should with reference to additional claim.Should also be appreciated that, unless otherwise noted, unnecessaryly draw accompanying drawing to scale, they only try hard to structure described herein and flow process are described conceptually.
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 enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, are described in detail the specific embodiment of the present invention below in conjunction with accompanying drawing.
Refer to Fig. 1, it is the modular construction schematic diagram of a kind of Word message playing device of 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 such as realizes with software, and it can be arranged in LED display screen system, such as, 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 such as: raster font, vector fonts etc.; Font name is such as: the Song typeface, regular script etc.
Conversion judge module 130 judges whether to need to carry out font conversion for the font type in the font attribute of Word message to be played that obtains according to font attribute acquisition module 110.Illustrate, when first kind fontlib 170 is raster font storehouse, if the font type of Word message to be played is vector fonts, the judged result then changing judge module 130 carries out font conversion for needs, if instead the font type of Word message to be played is raster font, then the judged result changing judge module 130 is without the need to carrying out font conversion.Similarly, when first kind fontlib 170 is vector fonts storehouse, if the font type of Word message to be played is raster font, the judged result then changing judge module 130 carries out font conversion for needs, if instead the font type of Word message to be played is vector fonts, then the judged result changing judge module 130 is without the need to carrying out font conversion.
Font modular converter 150 for when the font type of Word message to be played be Second Type font need to carry out font conversion time the font size of Word message to be played is carried out convergent-divergent by preset ratio.Illustrate, the transformational relation for vector fonts size and raster font size is preferably: vector fonts size=raster font size * 3/4, raster font size=vector fonts size * 4/3.
Transmit control module 190 for finding out according to the font size after the font name of Word message to be played and convergent-divergent the first kind font matched from first kind fontlib 170, and controls Word message to be played and carries out broadcasting display with the described first kind font matched; And without the need to carrying out font conversion when, carrying out broadcastings show for finding out the first kind font that matches according to the font name of Word message to be played and font size and control Word message to be played accordingly from first kind fontlib 170.
To describe a kind of Word message player method based on aforementioned Word message playing device in detail below, it such as comprises the following steps:
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, also can be vector fonts.
Afterwards, can judge the need of carrying out font conversion according to the font type of Word message to be played.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 being different from first kind font, then judge to need to carry out font conversion, certainly if first kind font, then without the need to doing font conversion.
Then, when the font type of Word message to be played is the Second Type font being different from first kind font, then by preset ratio, convergent-divergent is carried out to the font size of Word message to be played, from first kind fontlib 170, the first kind font matched is found out more afterwards according to the font size after the font name of Word message to be played and convergent-divergent, and control Word message to be played with the first kind font matched found out carry out broadcasting display, to reach and directly to carry out playing the akin effect of display effect showing and have 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, then direct from first kind fontlib 170, find out the font that matches according to the font name in font attribute and font size and carry out broadcasting accordingly show.
For ease of understanding, below especially exemplified by the example going out the conversion of several font.
[citing one]: font type, font name and font size in the font attribute of Word message to be played are respectively: raster font, the Song typeface and 64 × 64, and the fontlib configured is vector fonts storehouse; Therefore for reach Word message to be played font attribute required by display effect, raster font size 64 × 64 is converted to vector fonts size, and the vector fonts size after changing is No. 48 fonts, is also (64*3/4); Afterwards, the Song typeface, No. 48 fonts are found out in vector fonts storehouse, and control Word message to be played and carry out broadcasting display with vector fonts, No. 48 Song typefaces, its display effect presented from the angle of human eye closely Word message to be played directly carry out playing the display effect showing and present with raster font, 64 × 64 Song typefaces.
[citing two]: font type, font name and font size in the font attribute of Word message to be played are respectively: vector fonts, the Song typeface and No. 12 fonts, and the fontlib configured is raster font storehouse; Therefore for reach Word message to be played font attribute required by display effect, vector fonts size No. 12 fonts are converted to raster font size, raster font size after changing is 16 × 16, is also (12*4/3) × (12*4/3); Afterwards, the Song typeface, 16 × 16 fonts are found out in raster font storehouse, and control Word message to be played and carry out broadcasting display with raster font, 16 × 16 Song typefaces, its display effect presented from the angle of human eye closely Word message to be played directly carry out playing the display effect showing and present with vector fonts, No. 12 Song typefaces.
In sum, the above embodiment of the present invention only needs the fontlib arranging a type can realize two type font display effects, the fontlib of system is safeguarded simple.
Apply specific case herein to set forth Word message playing device of the present invention and square ratio juris and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; 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, comprising: font attribute acquisition module, font modular converter and first kind fontlib; It is characterized in that, also comprise conversion judge module and transmit control module; Wherein,
Described 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;
Described conversion judge module is used for judging whether to need to carry out font conversion according to described font type;
Described font modular converter is used for when described font type is that Second Type font needs, when carrying out font conversion, described font size is carried out convergent-divergent by preset ratio;
Described transmit control module be used for from described first kind fontlib, find out according to the font size after described font name and convergent-divergent the first kind font matched, and control described Word message to be played with the described first kind font matched carry out broadcastings show.
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, it 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, it 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;
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.
6. Word message player method as claimed in claim 5, is characterized in that, comprise step:
When described font type is first kind font and without the need to carrying out font conversion, from described first kind fontlib, find out according to the font name of described Word message to be played and font size the first kind font matched, and control described Word message to be played and carry out broadcasting display with the described first kind font matched.
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, it 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, it 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 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 |
---|---|---|
CN101719335B (en) | Grid picture electronic map for geographic information system | |
CN103745710B (en) | Word message playing device and method | |
CN104296116B (en) | A kind of controlled in wireless lighting device with audio playing function | |
WO2008045798A3 (en) | System and method for grouping traffic events | |
WO2006088868A3 (en) | Method and system providing for the compact navigation of a tree structure | |
CN102799592A (en) | Parsing method and system of rich text document | |
CN104244084B (en) | A kind of method, system and the mobile terminal that control audio file to play | |
CN103093068A (en) | Method and client side for acquiring task data | |
CN102867322A (en) | Method and device for realizing Chinese marking in three-dimensional scene | |
CN203775201U (en) | LED display system based on Bluetooth, NFC and WIFI communication | |
EP3021228A1 (en) | Information processing device, information processing method, and program | |
CN105354295B (en) | Dynamic display device and method for three-dimensional dynamic plotting point labels | |
CN103324740B (en) | A kind of image display method, device and set top box | |
CN202502711U (en) | LED display screen asynchronous controller based on high-speed SD card storage interface | |
CN104423921A (en) | Advertising system | |
CN202948442U (en) | External equipment used for new media communication | |
CN101650726B (en) | Method for acquiring data | |
CN202931474U (en) | HDMI expansion interface and HDMI expansion device | |
CN202455388U (en) | Multimedia information publishing system | |
Ishizu et al. | Wireless network system for tv white space with coordination of database | |
CN106127840A (en) | A kind of processing method and processing device of flash animation | |
Hirose et al. | A study of broadcast v2m communication system with ad hoc forwarding | |
CN205561854U (en) | Support 3G4G's tall and erect vehicle navigation equipment of ann | |
Tanaka et al. | Timing Synchronization Sheme for OFDM Signal in General Purpose Processor Based Software Defined Radio Raceiver | |
CN202601110U (en) | Light-emitting diode (LED) unit board and high-definition LED display screen assembled by the same |
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. |