CN104461564A - Font-based icon generating method and device - Google Patents

Font-based icon generating method and device Download PDF

Info

Publication number
CN104461564A
CN104461564A CN201410816974.7A CN201410816974A CN104461564A CN 104461564 A CN104461564 A CN 104461564A CN 201410816974 A CN201410816974 A CN 201410816974A CN 104461564 A CN104461564 A CN 104461564A
Authority
CN
China
Prior art keywords
font
icon
generation module
size
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410816974.7A
Other languages
Chinese (zh)
Inventor
钱鑫
袁鹏飞
周龙飞
何中辰
张书宁
文中领
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410816974.7A priority Critical patent/CN104461564A/en
Publication of CN104461564A publication Critical patent/CN104461564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a font-based icon generating method and device. The method includes the steps that a vector font image is generated; the vector font image is converted into a font through font loading software; the font is loaded in a system font library. The system font library is used for calling the font and adjusting the size and color of the font to generate the font icon. By means of the scheme, icons meeting the requirements can be generated faster and more conveniently, and the software interface development requirement is met.

Description

A kind of based on font generation figure calibration method and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of based on font generation figure calibration method and device.
Background technology
In computer software fields, especially in interface programming environment, the icon of all size, color, pattern is needed in interface, the figure had in the middle of these icons is the same, but size and color are not inconsistent interface requirements, art designing will be caused like this to need to become same graphic plotting the icon of different colours, different size, increase its workload.Because the picture required in software is all bitmap form, icon will be caused to thicken if simply amplify process to little icon, reduce software friendly.
Summary of the invention
In order to solve the problem, the present invention proposes a kind of based on font generation figure calibration method and device, can more fast generate the icon satisfied the demands, meet software interface development requirement.
In order to achieve the above object, the present invention proposes a kind of based on font generation figure calibration method, and the method comprises:
Generate vector fonts picture; Load software by font and vector fonts picture is converted into font; And font is loaded in system font storehouse.
By system font library call font, size, the color of adjustment font generate font icon.
Preferably, referred to by font described in system font library call: in whole fonts that the history that stores from system font storehouse loads, call arbitrarily one or more font, when calling multiple font, the identical or complete difference of multiple font or part identical.
Preferably, the method also comprises: by the multiple font of system font library call, adjusts size and the color of multiple font, and superposes and/or evolution the multiple fonts after adjustment, generates font icon.
The present invention also proposes a kind of device generating icon based on font, and this device comprises: font generation module, icon generation module.
Font generation module, for generating vector fonts picture; Load software by font and vector fonts picture is converted into font; And font is loaded in system font storehouse.
Icon generation module, for by font described in system font library call, adjusts the size of font, color generates font icon.
Preferably, icon generation module also for: call arbitrarily one or more font in whole fonts that the history that stores from system font storehouse loads, when calling multiple font, the identical or complete difference of multiple font or part identical.
Preferably, icon generation module also for: by the multiple font of system font library call, adjust size and the color of multiple font, and the multiple fonts after adjustment superposed and/or evolution, generate font icon.
Compared with prior art, the present invention includes: generate vector fonts picture; Load software by font and vector fonts picture is converted into font; And font is loaded in system font storehouse.By system font library call font, size, the color of adjustment font generate font icon.By the solution of the present invention, can more fast generate the icon satisfied the demands, meet software interface development requirement.
Accompanying drawing explanation
Be described the accompanying drawing in the embodiment of the present invention below, the accompanying drawing in embodiment is for a further understanding of the present invention, is used from explanation the present invention, does not form limiting the scope of the invention with instructions one.
Fig. 1 is the method flow diagram generating icon based on font of the present invention;
Fig. 2 is the system chart generating icon based on font of the present invention;
Fig. 3 is the embodiment schematic diagram based on font generation figure calibration method of the present invention.
Embodiment
For the ease of the understanding of those skilled in the art, below in conjunction with accompanying drawing, the invention will be further described, can not be used for limiting the scope of the invention.
Font is a kind of vector graphics, can arrange its attribute such as size, color.If special character in use system font replaces figure to be a good solution as icon, but the font provided in system is limited, much cannot meet software development requirement.
Therefore in order to solve the problem, we use icon font to replace, and customized font according to demand.Icon font is vector graphics, and any convergent-divergent can not obfuscation.Use icon font can arrange size, color etc. to character, therefore art designing only needs to make a font for a figure, is controlled by software as the attribute such as color and size.
Particularly, the present invention proposes a kind of based on font generation figure calibration method, and as shown in Figure 1, the method comprises:
S101, generation vector fonts picture; Load software by font and vector fonts picture is converted into font; And font is loaded in system font storehouse.
S102, by system font library call font, the adjustment size of font, color generate font icon.
Preferably, referred to by font described in system font library call: in whole fonts that the history that stores from system font storehouse loads, call arbitrarily one or more font, when calling multiple font, the identical or complete difference of multiple font or part identical.
Preferably, the method also comprises: by the multiple font of system font library call, adjusts size and the color of multiple font, and superposes and/or evolution the multiple fonts after adjustment, generates font icon.
The present invention also proposes a kind of device 01 generating icon based on font, and as shown in Figure 2, this device comprises: font generation module 02, icon generation module 03.
Font generation module 02, for generating vector fonts picture; Load software by font and vector fonts picture is converted into font; And font is loaded in system font storehouse.
Icon generation module 03, for by font described in system font library call, adjusts the size of font, color generates font icon.
Preferably, icon generation module 03 also for: call arbitrarily one or more font in whole fonts that the history that stores from system font storehouse loads, when calling multiple font, the identical or complete difference of multiple font or part identical.
Preferably, icon generation module 03 also for: by the multiple font of system font library call, adjust size and the color of multiple font, and the multiple fonts after adjustment superposed and/or evolution, generate font icon.
As shown in Figure 3, the solution of the present invention is introduced below by specific embodiment:
The present invention is divided into font making, Bootload uses font two parts.
Font generation module 02 draws out script figure file according to interface requirements, and graphic file is vector graphics, then picture file translation is become font file.
Icon generation module 03 uses font that 2 scenes can be divided into apply.One is direct use, size, the color direct output map marking-up body of adjustment font, as the first character in Fig. 3 be No. 20 black, second character be No. 90 black, also can be adjusted to other colors and size, after adjusting, all directly can be used as font icon.Another kind is that multiple character adding uses, and respectively to multiple character setting size, color, is superimposed together by multiple characterized icon, forms complicated icon by the position of technological means adjustment font; As the character of the 3rd in Fig. 3 be that No. 20 black superpose between two parties with No. 90 grey, the 4th character be that No. 20 white bottom rights offset and superpose between two parties with No. 90 black, also other colors, size and location can be adjusted to, and the number of adjustment character, using the character after two or more superposition as font icon, rich interface represent form.
The present invention decreases by using icon font the workload making various icon, is also according to user's request customized, different characters can also be carried out overlap-add operation through technical finesse simultaneously, forms more complicated icon.Icon font can customize, and once draws, and repeatedly uses.Meet software interface development requirement.
It should be noted that; above-described embodiment is only understand for the ease of those skilled in the art; be not limited to protection scope of the present invention; under the prerequisite not departing from inventive concept of the present invention, any apparent replacement and improvement etc. that those skilled in the art make the present invention are all within protection scope of the present invention.

Claims (6)

1. generate a figure calibration method based on font, it is characterized in that, described method comprises:
Generate vector fonts picture; Load software by font and described vector fonts picture is converted into font; And described font is loaded in system font storehouse;
By font described in described system font library call, adjust the size of described font, color generates font icon.
2. the method for claim 1, it is characterized in that, describedly to be referred to by font described in described system font library call: in the whole described font that the history stored from described system font storehouse loads, call arbitrarily one or more described font, when calling multiple described font, the identical or complete difference of multiple described font or part identical.
3. method as claimed in claim 2, it is characterized in that, described method also comprises: by the multiple described font of described system font library call, adjusts size and the color of multiple described font, and the multiple described font after adjustment is superposed and/or evolution, generate described font icon.
4. generate a device for icon based on font, it is characterized in that, described device comprises: font generation module, icon generation module;
Described font generation module, for generating vector fonts picture; Load software by font and described vector fonts picture is converted into font; And described font is loaded in system font storehouse;
Described icon generation module, for by font described in described system font library call, adjusts the size of described font, color generates font icon.
5. device as claimed in claim 4, it is characterized in that, described icon generation module also for: call arbitrarily one or more described font in the whole described font that the history that stores from described system font storehouse loads, when calling multiple described font, the identical or complete difference of multiple described font or part identical.
6. device as claimed in claim 5, it is characterized in that, described icon generation module also for: by the multiple described font of described system font library call, adjust size and the color of multiple described font, and the multiple described font after adjustment is superposed and/or evolution, generate described font icon.
CN201410816974.7A 2014-12-24 2014-12-24 Font-based icon generating method and device Pending CN104461564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410816974.7A CN104461564A (en) 2014-12-24 2014-12-24 Font-based icon generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410816974.7A CN104461564A (en) 2014-12-24 2014-12-24 Font-based icon generating method and device

Publications (1)

Publication Number Publication Date
CN104461564A true CN104461564A (en) 2015-03-25

Family

ID=52907675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410816974.7A Pending CN104461564A (en) 2014-12-24 2014-12-24 Font-based icon generating method and device

Country Status (1)

Country Link
CN (1) CN104461564A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device
CN105094540A (en) * 2015-06-30 2015-11-25 上海触乐信息科技有限公司 Method and device for software icon display
CN105138355A (en) * 2015-08-10 2015-12-09 北京金山安全软件有限公司 Method and device for inserting elements in interface of application program and electronic equipment
CN105549817A (en) * 2015-12-09 2016-05-04 广州阿里巴巴文学信息技术有限公司 Font package generation method and device and graphic display method and device
CN106055295A (en) * 2016-05-24 2016-10-26 腾讯科技(深圳)有限公司 Picture processing method and device, and picture drawing method and device
CN107301046A (en) * 2017-06-15 2017-10-27 腾讯科技(深圳)有限公司 Treating method and apparatus, computer equipment and the storage medium of icon
CN107329767A (en) * 2017-07-06 2017-11-07 深圳市茁壮网络股份有限公司 A kind of application program interior view target display methods and device
CN109144619A (en) * 2017-06-14 2019-01-04 阿里巴巴集团控股有限公司 Icon font information processing method, apparatus and system
CN110570720A (en) * 2019-09-17 2019-12-13 安徽博文风雅文化科技有限公司 calligraphy teaching system and teaching method
CN113986416A (en) * 2021-09-30 2022-01-28 江苏中交车旺科技有限公司 Method and system for realizing font icon rendering based on Flutter
CN117519859A (en) * 2022-07-30 2024-02-06 荣耀终端有限公司 Interface adjustment method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234899A1 (en) * 2002-03-29 2005-10-20 Haidong Sun Embedded curve chinese character library described based on stroke central line
CN102467385A (en) * 2010-11-17 2012-05-23 北大方正集团有限公司 Method and device for software interface to adapt to different resolutions
CN102467386A (en) * 2010-11-17 2012-05-23 北大方正集团有限公司 Method and device for adapting software interface to different resolutions
WO2012122933A1 (en) * 2011-03-14 2012-09-20 北京小米科技有限责任公司 Icon generation method
CN102902658A (en) * 2011-07-27 2013-01-30 腾讯科技(深圳)有限公司 Colorful character displaying method and device
CN102930575A (en) * 2011-08-08 2013-02-13 腾讯科技(深圳)有限公司 Method and device for drawing auxiliary graphs and information terminal
CN103559280A (en) * 2013-11-08 2014-02-05 厦门亿联网络技术股份有限公司 Method for flexibly storing and displaying icons
CN103902513A (en) * 2014-03-21 2014-07-02 北京百度网讯科技有限公司 Method and device for displaying fonts in terminal device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234899A1 (en) * 2002-03-29 2005-10-20 Haidong Sun Embedded curve chinese character library described based on stroke central line
CN102467385A (en) * 2010-11-17 2012-05-23 北大方正集团有限公司 Method and device for software interface to adapt to different resolutions
CN102467386A (en) * 2010-11-17 2012-05-23 北大方正集团有限公司 Method and device for adapting software interface to different resolutions
WO2012122933A1 (en) * 2011-03-14 2012-09-20 北京小米科技有限责任公司 Icon generation method
CN102902658A (en) * 2011-07-27 2013-01-30 腾讯科技(深圳)有限公司 Colorful character displaying method and device
CN102930575A (en) * 2011-08-08 2013-02-13 腾讯科技(深圳)有限公司 Method and device for drawing auxiliary graphs and information terminal
CN103559280A (en) * 2013-11-08 2014-02-05 厦门亿联网络技术股份有限公司 Method for flexibly storing and displaying icons
CN103902513A (en) * 2014-03-21 2014-07-02 北京百度网讯科技有限公司 Method and device for displaying fonts in terminal device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device
CN105094540A (en) * 2015-06-30 2015-11-25 上海触乐信息科技有限公司 Method and device for software icon display
WO2017000898A1 (en) * 2015-06-30 2017-01-05 上海触乐信息科技有限公司 Software icon display method and apparatus
CN105094540B (en) * 2015-06-30 2018-12-14 上海触乐信息科技有限公司 Software icon display methods and device
CN105138355A (en) * 2015-08-10 2015-12-09 北京金山安全软件有限公司 Method and device for inserting elements in interface of application program and electronic equipment
WO2017025008A1 (en) * 2015-08-10 2017-02-16 北京金山安全软件有限公司 Method and apparatus for inserting element in interface of application program, and electronic device
CN105549817A (en) * 2015-12-09 2016-05-04 广州阿里巴巴文学信息技术有限公司 Font package generation method and device and graphic display method and device
CN106055295A (en) * 2016-05-24 2016-10-26 腾讯科技(深圳)有限公司 Picture processing method and device, and picture drawing method and device
CN106055295B (en) * 2016-05-24 2018-11-16 腾讯科技(深圳)有限公司 Image processing method, picture method for drafting and device
CN109144619A (en) * 2017-06-14 2019-01-04 阿里巴巴集团控股有限公司 Icon font information processing method, apparatus and system
CN107301046A (en) * 2017-06-15 2017-10-27 腾讯科技(深圳)有限公司 Treating method and apparatus, computer equipment and the storage medium of icon
CN107329767A (en) * 2017-07-06 2017-11-07 深圳市茁壮网络股份有限公司 A kind of application program interior view target display methods and device
CN110570720A (en) * 2019-09-17 2019-12-13 安徽博文风雅文化科技有限公司 calligraphy teaching system and teaching method
CN113986416A (en) * 2021-09-30 2022-01-28 江苏中交车旺科技有限公司 Method and system for realizing font icon rendering based on Flutter
CN113986416B (en) * 2021-09-30 2024-04-30 江苏中交车旺科技有限公司 Method and system for rendering font icon based on Flutter
CN117519859A (en) * 2022-07-30 2024-02-06 荣耀终端有限公司 Interface adjustment method and electronic equipment

Similar Documents

Publication Publication Date Title
CN104461564A (en) Font-based icon generating method and device
US10817156B1 (en) Dynamic configuration of application component tiles
CN104063211B (en) Layout system for devices with variable display screen size and orientation
US8930810B2 (en) User interface (UI) color scheme generation and management according to visual consistency of visual attributes in the color scheme
US10649711B2 (en) Method of switching display of a terminal and a terminal
KR20130140138A (en) Icon generation method
CN111727424A (en) Adaptive interface conversion across display screens
KR102171389B1 (en) Image display system
CN105872418A (en) Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image
CN107301046B (en) Icon processing method and device, computer equipment and storage medium
CN111192352B (en) Map rendering method, map rendering device, computer equipment and storage medium
CN101154150A (en) Method for capturing computer screen image
CN107818588B (en) Device and method for calling Qt drawing based on JNI multithreading in Android system
CN105808035B (en) Icon display method and device
US20050179918A1 (en) Color matching system and display device
CN114296722A (en) Visual rapid development method and system applied to digital reform
WO2021213222A1 (en) Method and apparatus for processing reading content, computer device and storage medium
CN106648602A (en) Page loading method
US10067914B2 (en) Techniques for blending document objects
CN111597151A (en) File generation method and device, computer equipment and storage medium
CN111913711B (en) Video rendering method and device
CN117557677A (en) Chart drawing method, device and computer equipment
KR101779380B1 (en) System and method for providing vector and bitmap overlay font
CN115774590A (en) Shadow generation method and device, electronic equipment and storage medium
CN114237795A (en) Terminal interface display method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325

WD01 Invention patent application deemed withdrawn after publication