CN102467386A - Method and device for adapting software interface to different resolutions - Google Patents

Method and device for adapting software interface to different resolutions Download PDF

Info

Publication number
CN102467386A
CN102467386A CN2010105480863A CN201010548086A CN102467386A CN 102467386 A CN102467386 A CN 102467386A CN 2010105480863 A CN2010105480863 A CN 2010105480863A CN 201010548086 A CN201010548086 A CN 201010548086A CN 102467386 A CN102467386 A CN 102467386A
Authority
CN
China
Prior art keywords
font
software interface
character library
resolution
quoting
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
CN2010105480863A
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.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2010105480863A priority Critical patent/CN102467386A/en
Publication of CN102467386A publication Critical patent/CN102467386A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method for adapting a software interface to equipment with different resolutions. The method comprises the following steps of: creating a set which comprises all different graphs for constructing the software interface; converting the graphs of the set into fonts to construct a font library; and creating the software interface, and describing the graphs in the software interface by using the citations of the fonts corresponding to the graphs in the font library. The invention also provides a device for adapting the software interface to the equipment with the different resolutions. The device comprises a set module, a font library module and an interface module, wherein the set module is used for creating the set which comprises all the different graphs for constructing the software interface; the font library module is used for converting the graphs of the set into the fonts to construct the font library; and the interface module is used for creating the software interface, and describing the graphs in the software interface by using the citations of the fonts corresponding to the graphs in the font library. By the method and the device, the development workload of the software interface is reduced.

Description

The method and apparatus that is used for the adaptive different resolution of software interface
Technical field
The present invention relates to areas of information technology, in particular to the method and apparatus that is used for the adaptive different resolution equipment of software interface.
Background technology
The screen of distinct device generally possesses fixing resolution, and wherein each point is exactly a pixel.It doesn't matter for the size of its resolution and screen itself.When screen size one timing, the high more screen display of resolution is just clear more; If same resolution is certain, the more little display image of screen is also just clear more.
Along with developing rapidly of infotech and electronic technology, people to the demand of software systems also in continuous growth.Simple program on from operation application program on computers to hand-held portable terminal, the range of application of software systems is also in continuous expansion.This just requires software to the user function to be provided through equipment of a great variety, that the specification characteristic is different (is that the 2560*1600 display is the 320*240 mobile phone display screen to low side resolution from high-end resolution) display of user interfaces.
For example, the resolution specification of present smart mobile phone screen roughly is divided into four kinds of QVGA, HVGA, VGA, WVGA, therefore many application software corresponding version of each resolution that also released one after another.If adorn wrong version, just caused whole mobile phone screen can only show that very little pattern perhaps can only show the situation of the part of original pattern at last.Along with the development of technology, mobile phone also can be increasing according to the software of screen specification classification also towards the development of giant-screen high resolving power.
For adaptive resolution, present way is through issuing corresponding version to concrete resolution.Generally need to make showing resource to concrete resolution design user interface.Not only influence the cycle of software productization, simultaneously software is promoted the merchant, use the user also to have higher requirement, must different versions be installed to concrete resolution.
Software interface generally includes figure and literal.To figure, prior art must be made the interface of different editions figure to the embedded device of different resolution, and this has strengthened development difficulty.
Summary of the invention
The present invention aims to provide a kind of method and apparatus that is used for the adaptive different resolution equipment of software interface, to solve the prior art problem of the figure in the software for display interface adaptively.
In an embodiment of the present invention, a kind of method that is used for the adaptive different resolution equipment of software interface is provided, has comprised: create set, it comprises all different patterns that are used to make up software interface; Convert the figure of set into font, to make up character library; Create software interface, figure is wherein described with quoting of its corresponding font in the character library.
In an embodiment of the present invention, a kind of device that is used for the adaptive different resolution equipment of software interface is provided, has comprised: collection modules, be used for creating set, it comprises all different patterns that are used to make up software interface; Character base module is used for converting the figure of set into font, to make up character library; Interface module is used to create software interface, and figure is wherein described with quoting of its corresponding font in the character library.
The method and apparatus that is used for the adaptive different resolution equipment of software interface of the above embodiment of the present invention; Come the figure in the process software interface because adopt character library; So solved the prior art problem of the figure in the software for display interface adaptively, thereby alleviated the workload at the interface that develops software.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 shows the process flow diagram according to the method that is used for the adaptive different resolution equipment of software interface of the embodiment of the invention;
Fig. 2 shows software interface according to the preferred embodiment of the invention;
Fig. 3 shows another exhibiting pictures according to the preferred embodiment of the invention;
Fig. 4 shows the exhibiting pictures and the coding table of comparisons thereof according to the preferred embodiment of the invention;
Fig. 5 shows and shows font sectional drawing in the character library according to the preferred embodiment of the invention;
Fig. 6 shows the schematic representation of apparatus that is used for the adaptive different resolution equipment of software interface according to the embodiment of the invention;
Fig. 7 shows the process flow diagram according to the method that is used for the adaptive different resolution equipment of software interface of the embodiment of the invention;
Fig. 8 shows software interface according to the preferred embodiment of the invention;
Fig. 9 shows two exhibiting pictures among Fig. 8;
Figure 10 shows exhibiting pictures and the literal and the coding table of comparisons thereof according to the preferred embodiment of the invention;
Figure 11 shows and shows font sectional drawing in the character library according to the preferred embodiment of the invention;
Figure 12 shows the software interface through showing that character library produces according to the preferred embodiment of the invention;
Figure 13 shows the schematic representation of apparatus that is used for the adaptive different resolution equipment of software interface according to the embodiment of the invention.
Embodiment
Below with reference to accompanying drawing and combine embodiment, specify the present invention.
Below in conjunction with Fig. 1-Fig. 6 the embodiment of the present invention about the figure in the process software interface described.
Fig. 1 shows the process flow diagram according to the method that is used for the adaptive different resolution equipment of software interface of the embodiment of the invention, comprising:
Step S10 creates set, and it comprises all different patterns that are used to make up software interface;
Step S20 converts the figure of gathering into font, to make up character library;
Step S30 creates software interface, and figure is wherein described with quoting of its corresponding font in the character library.
In the prior art, must develop the software interface of different editions according to different resolution, otherwise figure wherein can't show normally.And in the present embodiment; Adopted word-base technology to come the figure in the process software interface, quoting of font in the character library described, no matter there is the subscriber equipment of how many kinds of resolution so the figure in the software interface adopts; Can be constant for quoting of font; Because the operating system of subscriber equipment can automatically adopt different font sizes to come convergent-divergent to call font according to the difference of resolution, thus the figure correctly in the software for display interface.Therefore, this method has solved the prior art problem of the figure in the software for display interface adaptively, thereby has alleviated the workload at the interface that develops software.
Preferably, step S10 comprises: the figure in current figure and the set is compared; Can not obtain through simple scalability by the figure in the set if confirm current figure, confirm that then current figure is a different patterns, and join in the set.The repetition of element during this preferred embodiment can be avoided gathering, the uniqueness of assurance element.
For example, when user interface (UI) designs, graphical information is wherein extracted, divides, goes heavily to wait operation, produce an adaptive graphical baseset; Wherein for can be regarded as one type through the figure that the X-Y scheme conversion can be changed mutually.As shown in Figure 2, be a page of showing that vegetables are ordered, what wherein show is the pumpkin of different size.For this type of situation, the pumpkin of different size can be changed mutually through the mode of two-dimentional convergent-divergent, therefore when extracting, can be classified as one type; Fig. 3 is that the fruit in the same system is ordered the page, and what wherein show is the apple of different size, in like manner, also can be classified as one type.But the apple among the pumpkin among Fig. 2 and Fig. 3 can not change through the mode of simple X-Y scheme conversion mutually, thus these they can not be classified as one type.For simplicity, only extracted two figures in the system here, for the system that has a plurality of figures, method for distilling is similar in this.So far, can draw a figure baseset of current system, comprising pumpkin and apple.
Preferably, different patterns being added set comprises: each different patterns is provided with unique encoding; All codings and graph of a correspondence thereof are added set.Figure in this preferred embodiment pair set carries out unique coding, thereby is convenient to retrieve the figure in the set.
In conjunction with Fig. 4, be example with the apple and the pumpkin of said extracted, the concrete mode of narration coding.Can the figure of above-mentioned baseset be encoded based on Unicode.Coding begins from 0x4e00, can certainly define start code voluntarily, and the coding in non-inlay district, basic plane is used in suggestion.Corresponding relation behind the coding is as shown in Figure 4.Wherein the name of the figure in the selected figure baseset classified as in literal, only limits in this step, use.Wherein be the figure at its place in the secondary series, the 3rd classifies as and is its specified coding.For the situation that has a plurality of figures in the baseset, can follow with reference to the coded system in the 3rd row, continue coding, until wherein all encoding of graphs are finished.Wherein, can name according to certain rule, prevent the situation of repetition character library for for the purpose of distinguishing.Can adopt the mode of the self-defined fontname of GUID_.
Preferably, character library adopts the TrueType character library, and each figure during employing FontLab instrument will be gathered converts font into, and font is joined in the TrueType character library.TrueType is a kind of font mathematical description technology of being united proposition by Apple Computer company and Microsoft company.Quadratic b-spline curve and straight line are described the appearance profile of font in the TrueType employing geometry, and be characterized in: TrueType both can be used as type fount, can be used as screen display again.
Preferably, quoting of font is the Unicode coding, and step S30 comprises: confirm the figure pairing font in character library in the software interface; With the Unicode coding replacement of the figure in the software interface with its corresponding font.
Use FontLab, the Graphics Design of encoding is font, as shown in Figure 5.Wherein each corresponding above the font be to be its specified coding.Design is during font, though it is noted that it is different patterns, because ultimate demand is stored as a font, then need consider it literally, and the parameter designing of font design such as baseline is consistent, to guarantee the final effect of using.Making finishes, through instrument, such as GUIDGEN.EXE; Generate a GUID; Such as 2778C019-CE45-408a-B4FB-325948007B15, self-defined font melon and fruit by name is showed font, final called after " the 2778C019CE45408aB4FB325948007B15_ melon and fruit is showed font ".In the time of can preventing effectively that different software provider from providing like this, the situation of name repetition appears.
Preferably, this method also comprises: subscriber equipment calls from character library and display graphics by reference, with the software for display interface.Adopt character library to come display graphics during demonstration, thereby can control the size of figure according to resolution.
Preferably, subscriber equipment calls from character library with display graphics by reference and comprises: the resolution of obtaining subscriber equipment; Confirm font size according to resolution; From character library, call corresponding font according to quoting in the software interface; Show font with font size.
Can load character library in the operating system of subscriber equipment, suitable font size is set in the font service of using operating system to provide, carries out graphic presentation.Utilize font to serve accordingly simultaneously, can carry out it is carried out two-dimensional transform.In addition, the data that can the font service be provided are as the input of other system service, after handling through corresponding system service, export again.
Next the font service interface that adopts operating system to provide is loaded into font in the system, before software startup; Use the font service of operating system; The font of the request font self-defined fontname of GUID_ by name is set the font of using into the system equipment context, according to showing the Interface Design requirement; Carry out figure output, accomplish the demonstration of showing figure in the interface.
With Symbian S60 platform is example, the way of output of the first row figure in the key diagram 2.
void?Draw(const?TRect&?aRect)const
{
CWindowGc&gc=SystemGc();
gc.Clear(aRect);
gc.SetPenStyle(CGraphicsContext::ENullPen);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
TPoint textPoint (100,200); The initial display position of // the first row
TBuf<2>text;
text[0]=0x4e00;
The font of // setting request
_ LIT (KFontName, " the 2778C019CE45408aB4FB325948007B15_ melon and fruit is showed font "); // signal code
TInt KTextHight; The size of // font
CFont*normalFont;
For(KTextHight=29;KTextHight<=34;++KTextHight)
{
iCoeEnv -> ScreenDevice ()-> GetNearestFontInTwips(iFont,TFontSpec(KFontName,KTextHight));
Gc.UseFont (normalFont); // set font
Gc.DrawText (text, textPo int); // rendering text
TextPoint.x+=KTextHight; // navigate to next graphic presentation place
}
gc.DiscardFont();
}
Wherein partial code for convenience's sake, has adopted the mode (marking in the above-mentioned code) of signal code, and practice may be different.
Through above-mentioned code, just can realize the output of the first row figure among Fig. 2.The second row figure be output in that this is similar.Only need reset corresponding font size, setting textPoint is corresponding outgoing position, and (text textPoint) gets final product to call gc.DrawText then.
The wherein setting of font size is a two-dimensional transform (convergent-divergent) of having realized above-mentioned figure through font engine.The mode of other two-dimensional transforms can the reference computers graphics related algorithm carry out.A kind of concrete embodiment is at first to pass through font engine, font size is set obtains suitable font size; Extract through the font service character contour that corresponding encoded is corresponding then, convert the X-Y scheme that system supports into, such as the path; Just can adopt the related algorithm in the computer graphics then, conversion such as shear, after conversion is accomplished; Through the demonstration or the output function of system, realize the demonstration or the output of figure.
In addition, the data that can the font service be provided are as the input of other system service, after handling through corresponding system service, export again.Such as, can be extracted as figure through the font service, after other services through system then (such as filling etc.) are handled, export again.
Fig. 6 shows the schematic representation of apparatus that is used for the adaptive different resolution equipment of software interface according to the embodiment of the invention, comprising:
Collection modules 10 is used for creating set, and it comprises all different patterns that are used to make up software interface;
Character base module 20 is used for converting the figure of set into font, to make up character library;
Interface module 30 is used to create software interface, and figure is wherein described with quoting of its corresponding font in the character library.
This device has alleviated the workload at the interface that develops software.
Preferably, this device also comprises: display module is used for subscriber equipment and calls and display graphics from character library by reference, with the software for display interface.Adopt character library to come display graphics during demonstration, thereby can control the size of figure according to resolution.
Preferably, display module comprises: the resolution module is used to obtain the resolution of subscriber equipment; The font size module is used for confirming font size according to resolution; Calling module is used for from character library, calling corresponding font according to quoting of software interface; Present module, be used for showing font with font size.
Below in conjunction with Fig. 7-Figure 13 the embodiment of the present invention about the literal in the process software interface described.
Fig. 7 shows the process flow diagram according to the method that is used for the adaptive different resolution equipment of software interface of the embodiment of the invention, comprising:
Step S15 creates set, and it comprises all different literal that are used to make up software interface;
Step S25 is a font with the text conversion of gathering, to make up character library;
Step S35 creates software interface, and literal is wherein described with quoting of its corresponding font in the character library.
In the prior art, must develop the software interface of different editions according to different resolution, otherwise literal wherein can't show normally.And in the present embodiment; Adopted word-base technology to come the literal in the process software interface, quoting of font in the character library described, no matter there is the subscriber equipment of how many kinds of resolution so the literal in the software interface adopts; Can be constant for quoting of font; Because the operating system of subscriber equipment can automatically adopt different font sizes to come convergent-divergent to call font according to the difference of resolution, thus the literal correctly in the software for display interface.Therefore, this method has solved the prior art problem of the literal in the software for display interface adaptively, thereby has alleviated the workload at the interface that develops software.
Preferably, step S15 comprises: the literal in current literal and the set is compared; Can not obtain through simple scalability by the literal in the set if confirm current literal, confirm that then current literal is a different literal, and join in the set.The repetition of element during this preferred embodiment can be avoided gathering, the uniqueness of assurance element.
For example, when user interface (UI) designs, wherein Word message is extracted, divides, goes heavily to wait operation, produce a self-adaptation literal baseset; Wherein for can be regarded as one type through the literal that two-dimentional text transform can be changed mutually.As shown in Figure 8, wherein comprise " upright the Northern Wei Dynasty regular script " " upright The Orchid Pavilion is black ", " upright quiet flower bud ", " upright mew toot ", " upright learned Song ", " Founder is slightly pretty ", " upright paper-cut ", " upright cartoon ", 9 exhibiting pictures such as " become upright being subordinate to ".Fig. 9 wherein two exhibiting pictures for extracting, one of them is " upright paper-cut " style, one is " upright mew toot " style.The text element that wherein comprises is for " the upright upright cartoon of thick pretty upright paper-cut of the upright mew of the upright just quiet flower bud of the upright The Orchid Pavilion black of regular script in the Northern Wei Dynasty toot upright learned Song becomes upright being subordinate to ", because text style wherein is all inconsistent, so above-mentioned literal can not go heavily to handle; For the consistent situation of text style; Such as being similarly " upright quiet flower bud ", if wherein comprise two " just " words, even font size is different; Also can be regarded as a text, go heavily.So above-mentionedly go the text baseset after heavy to be " the upright upright cartoon of thick pretty upright paper-cut of the upright mew of the upright just quiet flower bud of the upright The Orchid Pavilion black of regular script in the Northern Wei Dynasty toot upright learned Song becomes upright being subordinate to ".
Preferably, different literal being added set comprises: each different literal is provided with unique encoding; All codings and corresponding character thereof are added set.Literal in this preferred embodiment pair set carries out unique coding, thereby is convenient to retrieve the literal in the set.
In conjunction with Figure 10, be example with wherein " upright paper-cut " " upright mew toot ", the concrete mode of narration coding.Coding begins from 0x4e00, can certainly define start code voluntarily, and the coding in non-inlay district, basic plane is used in suggestion.Corresponding relation behind the coding is shown in figure 10.Wherein the text in the selected text baseset classified as in literal, is the exhibiting pictures at its place in the secondary series wherein, and the 3rd classifies the coding into its formulation as.For other texts in the baseset of confirming in the first step, the coding that can follow in the 3rd row continues coding, until wherein all text codes are finished.Wherein, can name according to certain rule, prevent the situation of repetition character library for for the purpose of distinguishing.Can adopt the mode of the self-defined fontname of GUID.
Preferably, character library adopts the TrueType character library, and each text conversion during employing FontLab instrument will be gathered is a font, and font is joined in the TrueType character library.TrueType is a kind of font mathematical description technology of being united proposition by Apple Computer company and Microsoft company.Quadratic b-spline curve and straight line are described the appearance profile of font in the TrueType employing geometry, and be characterized in: TrueType both can be used as type fount, can be used as screen display again.
Preferably, quoting of font is the Unicode coding, and step S35 comprises: confirm the literal pairing font in character library in the software interface; With the Unicode coding replacement of the literal in the software interface with its corresponding font.
Use FontLab, the literal of encoding is designed to font, shown in figure 11.Wherein each corresponding above the font be to be its specified coding.Design is during font, though it is noted that it is different font styles, because ultimate demand is stored as a font, then need consider it literally, and the parameter designing of font design such as baseline is consistent, to guarantee the final effect of using.Making finishes; Pass through instrument; Such as GUIDGEN.EXE, generate a GUID, such as E3EA46F6-9BCA-4460-8BB0-A3DC95CD0C5C; Font is showed in the cruel Saipan of self-defined font upright word by name, and font is showed in the cruel Saipan of the upright word of final called after E3EA46F69BCA44608BB0A3DC95CD0C5C_.In the time of can preventing effectively that different software provider from providing like this, the situation of name repetition appears.
Preferably, this method also comprises: subscriber equipment calls from character library and display text by reference, with the software for display interface.Adopt character library to come display text during demonstration, thereby can control the size of literal according to resolution.
Preferably, subscriber equipment calls from character library with display text by reference and comprises: the resolution of obtaining subscriber equipment; Confirm font size according to resolution; From character library, call corresponding font according to quoting in the software interface; Show font with font size.
Can load character library in the operating system of subscriber equipment, suitable font size is set in the font service of using operating system to provide, carries out literal and shows.Utilize font to serve accordingly simultaneously, can carry out it is carried out two-dimensional transform.In addition, the data that can the font service be provided are as the input of other system service, after handling through corresponding system service, export again.
Next the font service interface that adopts operating system to provide is loaded into font in the system, before software startup; Use the font service of operating system; The font of the request font self-defined fontname of GUID_ by name is set the font of using into the system equipment context, according to showing the Interface Design requirement; Carry out literal output, accomplish the demonstration of showing the interface Chinese words.
With Symbian S60 platform is example, and the way of output of " upright paper-cut " these several texts is described.
void?Draw(const?TRect&?aRect)const
{
CWindowGc&gc=SystemGc();
gc.Clear(aRect);
gc.SetPenStyle(CGraphicsContext::ENullPen);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
TPoint textPoint (aRect.Width ()/3, aRect.Height () * 2/3); // display position
TBuf < 20>text (_ L (" upright paper-cut ")); // signal code
The font of // setting request
_ LIT (KFontName, " font is showed in the cruel Saipan of the upright word of E3EA46F69BCA44608BB0A3DC95CD0C5C_ "); // signal code
TInt KTextHight=15; The size of // definition font
CFont*normalFont;
iCoeEnv -> ScreenDevice ()-> GetNearestFontInTwips(iFont,TFontSpec(KFontName,KTextHight));
Gc.UseFont (normalFont); // set font
Gc.DrawText (text, textPoint); // rendering text
gc.DiscardFont();
}
Wherein partial code for convenience's sake, has adopted the mode (marking in the above-mentioned code) of signal code, and practice may be different.
Through above-mentioned code, just can realize the text output of " upright paper-cut " among Figure 12.Other texts be output in that this is similar.Only need reset the text Chinese version is corresponding text, and to set textPoint be corresponding outgoing position, and (text textPoint) gets final product to call gc.DrawText then.
Figure 13 shows the schematic representation of apparatus that is used for the adaptive different resolution equipment of software interface according to the embodiment of the invention, comprising:
Collection modules 15 is used for creating set, and it comprises all different literal that are used to make up software interface;
Character base module 25, the text conversion that is used for set is a font, to make up character library;
Interface module 35 is used to create software interface, and literal is wherein described with quoting of its corresponding font in the character library.
This device has alleviated the workload at the interface that develops software.
Preferably, this device also comprises: display module is used for subscriber equipment and calls and display text from character library by reference, with the software for display interface.Adopt character library to come display text during demonstration, thereby can control the size of literal according to resolution.
Preferably, display module comprises: the resolution module is used to obtain the resolution of subscriber equipment; The font size module is used for confirming font size according to resolution; Calling module is used for from character library, calling corresponding font according to quoting of software interface; Present module, be used for showing font with the font size of confirming.
In addition, a preferred embodiment of the present invention provides a kind of method that is used for the adaptive different resolution equipment of software interface, comprising:
Step S15 creates set, and it comprises all different literal that are used to make up software interface;
Step S25 is a font with the text conversion of gathering, to make up character library;
Step S35 creates software interface, and literal is wherein described with quoting of its corresponding font in the character library; And
Step S10 creates set, and it comprises all different literal that are used to make up software interface;
Step S20 is a font with the text conversion of gathering, to make up character library;
Step S30 creates software interface, and literal is wherein described with quoting of its corresponding font in the character library.
Wherein, step S15, S25, S35 and step S10, S20, S30 obviously do not limit precedence.
In addition, a preferred embodiment of the present invention provides a kind of device that is used for the adaptive different resolution equipment of software interface, comprising:
Collection modules 15 is used for creating set, and it comprises all different literal that are used to make up software interface;
Character base module 25, the text conversion that is used for set is a font, to make up character library;
Interface module 35 is used to create software interface, and literal is wherein described with quoting of its corresponding font in the character library; And
Collection modules 10 is used for creating set, and it comprises all different literal that are used to make up software interface;
Character base module 20, the text conversion that is used for set is a font, to make up character library;
Interface module 30 is used to create software interface, and literal is wherein described with quoting of its corresponding font in the character library.
Can find out that from above description the above embodiments of the present invention can be when figure in the real software interface and literal, the subscriber equipment of self-adaptation different resolution.
Obviously; It is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize that they can concentrate on the single calculation element with the general calculation device; Perhaps be distributed on the network that a plurality of calculation element forms; Alternatively, they can be realized with the executable program code of calculation element, carried out by calculation element thereby can they be stored in the memory storage; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method that is used for the adaptive different resolution equipment of software interface is characterized in that, comprising:
Create set, it comprises all different patterns that are used to make up said software interface;
Convert the figure of said set into font, to make up character library;
Create said software interface, figure is wherein described with quoting of its corresponding font in the said character library.
2. method according to claim 1 is characterized in that, creates set and comprises:
Figure in current figure and the said set is compared;
If confirm that current figure can not be obtained through simple scalability by the figure in the said set, confirm that then current figure is a different patterns, and join in the said set.
3. method according to claim 2 is characterized in that, said different patterns is added said set comprise:
Each different said figure is provided with unique encoding;
All said codings and graph of a correspondence thereof are added said set.
4. method according to claim 1 is characterized in that, said character library adopts the TrueType character library, adopts the FontLab instrument to convert each the said figure in the said set into said font, and said font is joined in the said TrueType character library.
5. method according to claim 4 is characterized in that, quoting of said font is Unicode coding, with wherein figure quoting to describe and comprise with its corresponding font in the said character library:
Confirm the figure pairing font in said character library in the said software interface;
With the Unicode coding replacement of the figure in the said software interface with its corresponding font.
6. method according to claim 1 is characterized in that, also comprises:
Subscriber equipment calls from said character library and shows said figure through said quoting, to show said software interface.
7. method according to claim 6 is characterized in that, subscriber equipment calls from said character library and shows that said figure comprises through said quoting:
Obtain the resolution of said subscriber equipment;
Confirm font size according to said resolution;
Said quoting according in the said software interface called corresponding said font from said character library;
Show said font with said font size.
8. a device that is used for the adaptive different resolution equipment of software interface is characterized in that, comprising:
Collection modules is used for creating set, and it comprises all different patterns that are used to make up said software interface;
Character base module is used for converting the figure of said set into font, to make up character library;
Interface module is used to create said software interface, and figure is wherein described with quoting of its corresponding font in the said character library.
9. device according to claim 8 is characterized in that, also comprises:
Display module is used for subscriber equipment and calls and show said figure through said quoting from said character library, to show said software interface.
10. device according to claim 9 is characterized in that, said display module comprises:
The resolution module is used to obtain the resolution of said subscriber equipment;
The font size module is used for confirming font size according to said resolution;
Calling module is used for from said character library, calling corresponding said font according to said the quoting of said software interface;
Present module, be used for showing said font with said font size.
CN2010105480863A 2010-11-17 2010-11-17 Method and device for adapting software interface to different resolutions Pending CN102467386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105480863A CN102467386A (en) 2010-11-17 2010-11-17 Method and device for adapting software interface to different resolutions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105480863A CN102467386A (en) 2010-11-17 2010-11-17 Method and device for adapting software interface to different resolutions

Publications (1)

Publication Number Publication Date
CN102467386A true CN102467386A (en) 2012-05-23

Family

ID=46071062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105480863A Pending CN102467386A (en) 2010-11-17 2010-11-17 Method and device for adapting software interface to different resolutions

Country Status (1)

Country Link
CN (1) CN102467386A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461564A (en) * 2014-12-24 2015-03-25 浪潮(北京)电子信息产业有限公司 Font-based icon generating method and device
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device
CN104978374A (en) * 2014-09-01 2015-10-14 腾讯科技(深圳)有限公司 Method and device for inserting icon in application program

Citations (3)

* 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
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character
US20070195096A1 (en) * 2006-02-10 2007-08-23 Freedom Scientific, Inc. System-Wide Content-Sensitive Text Stylization and Replacement

Patent Citations (3)

* 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
US20070195096A1 (en) * 2006-02-10 2007-08-23 Freedom Scientific, Inc. System-Wide Content-Sensitive Text Stylization and Replacement
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩壮志等: "《嵌入式系统显示界面的自适应显示方法》", 《液晶与显示》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978374A (en) * 2014-09-01 2015-10-14 腾讯科技(深圳)有限公司 Method and device for inserting icon in application program
CN104461564A (en) * 2014-12-24 2015-03-25 浪潮(北京)电子信息产业有限公司 Font-based icon generating method and device
CN104699833A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Picture presentation method, picture storage method, picture presentation device and picture storage device

Similar Documents

Publication Publication Date Title
CN101699426B (en) Document format conversion system and method
CN100405370C (en) Dynamic switching between local and remote speech rendering
CN101183355B (en) Copy and paste processing method, apparatus
US6801673B2 (en) Section extraction tool for PDF documents
US20090109227A1 (en) System and method for independent font substitution of string characters
CN102239490A (en) Method and apparatus for adjusting the length of text strings to fit display sizes
CN101364216B (en) Method and device for displaying electronic book documentary on mobile terminal
CN104598902A (en) Method and device for identifying screenshot and browser
CN102467385A (en) Method and device for software interface to adapt to different resolutions
CN102779063A (en) Method for providing application invocation and server
KR20090075693A (en) Rendering and encoding glyphs
WO2006013582A2 (en) A method and system for pixel based rendering of multi-lingual characters from a combination of glyphs
CN104820589A (en) Method and device for dynamically adapting webpage
CN105224540A (en) Page composing method and device
CN104424192A (en) Method and device for forming multi-font font library and method and device for displaying different fonts
CN110310226B (en) Picture mosaic display method and system
CN102467386A (en) Method and device for adapting software interface to different resolutions
CN109375962A (en) The implementation method of chinese character mixing output display based on embedded OS
US20100077298A1 (en) Multi-platform presentation system
CN112114803A (en) Deep learning-based front-end code generation method, equipment and medium for UI (user interface)
US20020146181A1 (en) System, method and computer program product for a multi-lingual text engine
CN112395529A (en) Page loading method, device, equipment and storage medium
CN104021026A (en) Language adding method based on Android system
US20120124465A1 (en) High fidelity conversion of documents
CN114020187A (en) Font icon display method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120523