[go: up one dir, main page]

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
module
resolution
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

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a method for adapting software interfaces to devices with different resolutions, which comprises the following steps: creating a collection comprising all the different graphics used to build the software interface; converting the collected graphs into fonts to construct a word stock; and creating a software interface, and describing the graph in the software interface by using the reference of the corresponding font in the font library. The invention also provides a device for adapting the software interface to the equipment with different resolutions, which comprises the following steps: a collection module for creating a collection comprising all the different graphics used to build the software interface; the word stock module is used for converting the collected graphs into the character patterns so as to construct a word stock; and the interface module is used for creating a software interface and describing the graph in the software interface by using the reference of the corresponding font in the font library. The invention reduces the workload of developing the software interface.

Description

用于软件界面适配不同分辨率的方法和装置Method and device for adapting software interface to different resolutions

技术领域 technical field

本发明涉及信息技术领域,具体而言,涉及用于软件界面适配不同分辨率设备的方法和装置。The invention relates to the field of information technology, in particular to a method and a device for adapting a software interface to devices with different resolutions.

背景技术 Background technique

不同设备的屏幕一般具备固定的分辨率,其中每一个点就是一个像素。其分辨率和屏幕本身的大小没有关系。当屏幕大小一定时,分辨率越高屏幕显示就越清晰;同样如果分辨率一定,屏幕越小显示图像也就越清晰。The screens of different devices generally have a fixed resolution, where each dot is a pixel. Its resolution has nothing to do with the size of the screen itself. When the screen size is constant, the higher the resolution, the clearer the screen display; similarly, if the resolution is constant, the smaller the screen, the clearer the display image will be.

随着信息技术和电子技术的迅速发展,人们对软件系统的需求也在不断增长。从运行在计算机上的应用程序到手持移动终端上的简单程序,软件系统的应用范围也在不断扩大。这就要求软件必须通过种类繁多、规格特性各异的设备(从高端的分辨率为2560*1600显示器到低端分辨率为320*240手机显示屏)显示用户界面,向用户提供功能。With the rapid development of information technology and electronic technology, people's demand for software systems is also increasing. From applications running on computers to simple programs on handheld mobile terminals, the scope of application of software systems is also expanding. This requires that the software must display user interfaces and provide functions to users through a wide variety of devices with different specifications and characteristics (from high-end resolutions of 2560*1600 displays to low-end resolutions of 320*240 mobile phone displays).

例如,目前的智能手机屏幕的分辨率规格大致分为QVGA、HVGA、VGA、WVGA四种,因此许多应用软件也相继推出了各个分辨率的对应版本。如果装错版本,最后就造成了整个手机屏幕只能显示很小的图案或者只能显示原图案的一部分的情况。随着技术的发展,手机也正在向着大屏幕高分辨率发展,根据屏幕规格分类的软件也会日益增多。For example, the resolution specifications of the current smart phone screen are roughly divided into four types: QVGA, HVGA, VGA, and WVGA. Therefore, many application software have successively released corresponding versions of each resolution. If the wrong version is installed, the entire mobile phone screen can only display a small pattern or only a part of the original pattern. With the development of technology, mobile phones are also developing towards large screens and high resolutions, and there will be more and more software classified according to screen specifications.

为了适配分辨率,目前的做法是通过针对具体的分辨率发行相应的版本。一般需要针对具体的分辨率设计用户界面,制作展示资源。不仅影响软件产品化的周期,同时对软件推广商,使用用户也提出了更高的要求,必须针对具体的分辨率,安装不同的版本。In order to adapt to the resolution, the current practice is to release the corresponding version for the specific resolution. Generally, it is necessary to design the user interface for a specific resolution and produce display resources. It not only affects the cycle of software productization, but also puts forward higher requirements for software promoters and users. Different versions must be installed for specific resolutions.

软件界面通常包括图形和文字。针对图形,现有技术必须针对不同分辨率的嵌入式设备制作不同版本图形的界面,这加大了开发难度。Software interfaces usually include graphics and text. For graphics, in the prior art, interfaces of different versions of graphics must be made for embedded devices with different resolutions, which increases the difficulty of development.

发明内容 Contents of the invention

本发明旨在提供一种用于软件界面适配不同分辨率设备的方法和装置,以解决现有技术不能自适应地显示软件界面中的图形的问题。The present invention aims to provide a method and device for adapting a software interface to devices with different resolutions, so as to solve the problem that graphics in the software interface cannot be adaptively displayed in the prior art.

在本发明的实施例中,提供了一种用于软件界面适配不同分辨率设备的方法,包括:创建集合,其包括用于构建软件界面的所有不同的图形;将集合的图形转换为字形,以构建字库;创建软件界面,将其中的图形用字库中其对应的字形的引用来描述。In an embodiment of the present invention, a method for adapting a software interface to devices with different resolutions is provided, including: creating a set, which includes all different graphics used to build a software interface; converting the set graphics into glyphs , to build a font library; create a software interface, and describe the graphics therein with references to their corresponding glyphs in the font library.

在本发明的实施例中,提供了一种用于软件界面适配不同分辨率设备的装置,包括:集合模块,用于创建集合,其包括用于构建软件界面的所有不同的图形;字库模块,用于将集合的图形转换为字形,以构建字库;界面模块,用于创建软件界面,将其中的图形用字库中其对应的字形的引用来描述。In an embodiment of the present invention, a device for adapting a software interface to devices with different resolutions is provided, including: a collection module for creating a collection, which includes all different graphics used to build a software interface; a font module , used to convert the collected graphics into glyphs to build a font library; the interface module is used to create a software interface, and describe the graphics in it with references to their corresponding glyphs in the font library.

本发明上述实施例的用于软件界面适配不同分辨率设备的方法和装置,因为采用字库来处理软件界面中的图形,所以解决了现有技术不能自适应地显示软件界面中的图形的问题,从而减轻了开发软件界面的工作量。The method and device for adapting the software interface to devices with different resolutions in the above embodiments of the present invention solve the problem that the prior art cannot adaptively display the graphics in the software interface because the font library is used to process the graphics in the software interface , thereby reducing the workload of developing the software interface.

附图说明 Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1示出了根据本发明实施例的用于软件界面适配不同分辨率设备的方法的流程图;FIG. 1 shows a flowchart of a method for adapting a software interface to devices with different resolutions according to an embodiment of the present invention;

图2示出了根据本发明优选实施例的一个软件界面;Fig. 2 shows a software interface according to a preferred embodiment of the present invention;

图3示出了根据本发明优选实施例的另一个展示图片;Fig. 3 shows another display picture according to a preferred embodiment of the present invention;

图4示出了根据本发明优选实施例的展示图片及其编码对照表;Fig. 4 shows a display picture and its coding comparison table according to a preferred embodiment of the present invention;

图5示出了根据本发明优选实施例的展示字库中字形截图;Figure 5 shows a screenshot of glyphs in the display font library according to a preferred embodiment of the present invention;

图6示出了根据本发明实施例的用于软件界面适配不同分辨率设备的装置的示意图;FIG. 6 shows a schematic diagram of an apparatus for adapting a software interface to devices with different resolutions according to an embodiment of the present invention;

图7示出了根据本发明实施例的用于软件界面适配不同分辨率设备的方法的流程图;FIG. 7 shows a flowchart of a method for adapting a software interface to devices with different resolutions according to an embodiment of the present invention;

图8示出了根据本发明优选实施例的一个软件界面;Fig. 8 shows a software interface according to a preferred embodiment of the present invention;

图9示出了图8中的两个展示图片;Figure 9 shows the two presentation pictures in Figure 8;

图10示出了根据本发明优选实施例的展示图片和文字及其编码对照表;Fig. 10 shows a display picture and text and its coding comparison table according to a preferred embodiment of the present invention;

图11示出了根据本发明优选实施例的展示字库中字形截图;Figure 11 shows a screenshot of glyphs in the display font library according to a preferred embodiment of the present invention;

图12示出了根据本发明优选实施例的经过展示字库产生的软件界面;Fig. 12 shows the software interface produced by displaying fonts according to a preferred embodiment of the present invention;

图13示出了根据本发明实施例的用于软件界面适配不同分辨率设备的装置的示意图。Fig. 13 shows a schematic diagram of an apparatus for adapting a software interface to devices with different resolutions according to an embodiment of the present invention.

具体实施方式 Detailed ways

下面将参考附图并结合实施例,来详细说明本发明。The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

下面结合图1-图6描述本发明关于处理软件界面中的图形的实施例。The following describes an embodiment of the present invention about processing graphics in a software interface with reference to FIGS. 1-6 .

图1示出了根据本发明实施例的用于软件界面适配不同分辨率设备的方法的流程图,包括:Fig. 1 shows a flowchart of a method for adapting a software interface to devices with different resolutions according to an embodiment of the present invention, including:

步骤S10,创建集合,其包括用于构建软件界面的所有不同的图形;Step S10, creating a collection, which includes all the different graphics used to build the software interface;

步骤S20,将集合的图形转换为字形,以构建字库;Step S20, converting the collected graphics into glyphs to build a font library;

步骤S30,创建软件界面,将其中的图形用字库中其对应的字形的引用来描述。Step S30, creating a software interface, and describing the graphics therein by references to their corresponding glyphs in the font library.

在现有技术中,必须根据不同的分辨率开发不同版本的软件界面,否则其中的图形无法正常显示。而本实施例中,采用了字库技术来处理软件界面中的图形,所以软件界面中的图形采用对字库中字形的引用来描述,不管存在多少种分辨率的用户设备,对于字形的引用可以不变,因为用户设备的操作系统能够根据分辨率的不同,自动地采用不同的字号来缩放调用字形,从而正确地显示软件界面中的图形。因此,本方法解决了现有技术不能自适应地显示软件界面中的图形的问题,从而减轻了开发软件界面的工作量。In the prior art, different versions of the software interface must be developed according to different resolutions, otherwise the graphics therein cannot be displayed normally. However, in this embodiment, the font library technology is used to process the graphics in the software interface, so the graphics in the software interface are described by references to the glyphs in the font library. Because the operating system of the user equipment can automatically use different font sizes to scale and call fonts according to different resolutions, so as to correctly display the graphics in the software interface. Therefore, the method solves the problem that the prior art cannot adaptively display the graphics in the software interface, thereby reducing the workload of developing the software interface.

优选地,步骤S10包括:将当前的图形与集合中的图形进行比较;如果确定当前的图形不能由集合中的图形通过简单缩放得到,则确定当前的图形是一个不同的图形,并加入到集合中。本优选实施例可以避免集合中元素的重复,保证元素的唯一性。Preferably, step S10 includes: comparing the current figure with the figures in the set; if it is determined that the current figure cannot be obtained by simply scaling the figures in the set, then determine that the current figure is a different figure, and add it to the set middle. This preferred embodiment can avoid duplication of elements in the set and ensure the uniqueness of elements.

例如,在用户界面(UI)设计时,将其中的图形信息进行提取、划分、去重等操作,制作出一个自适应图形基本集;其中对于可以通过二维图形变换可以互相转换的图形算作一类。如图2所示,是一个展示蔬菜订购的页面,其中展示的是不同规格的南瓜。对于此类情况,不同规格的南瓜可以通过二维缩放的方式进行互相转换,因此在提取时,可以归为一类;图3为同一个系统中的水果订购页面,其中展示的是不同规格的苹果,同理,也可以归为一类。但是图2中的南瓜和图3中的苹果不能通过简单二维图形变换的方式进行互转,因此这它们不能归为一类。此处为方便起见,只提取了系统中的两个图形,对于存在多个图形的系统,提取方法于此相似。至此,可以得出当前系统的一个图形基本集,其中包括南瓜和苹果。For example, when designing a user interface (UI), extract, divide, and deduplicate the graphic information in it to create a basic set of adaptive graphics; among them, the graphics that can be converted to each other through two-dimensional graphics transformation are counted as one type. As shown in Figure 2, it is a page displaying vegetable ordering, in which pumpkins of different specifications are displayed. For such cases, pumpkins of different sizes can be converted to each other through two-dimensional scaling, so they can be classified into one category when extracted; Figure 3 is the fruit order page in the same system, which shows different sizes of pumpkins Apple, by the same token, can also be classified as one. However, the pumpkin in Figure 2 and the apple in Figure 3 cannot be transformed into each other through a simple two-dimensional graphic transformation, so they cannot be classified into one category. Here, for convenience, only two graphs in the system are extracted, and the extraction method is similar for systems with multiple graphs. So far, a basic set of graphics for the current system can be obtained, including pumpkins and apples.

优选地,将不同的图形加入集合包括:对每个不同的图形设置唯一的编码;将所有编码及其对应的图形加入集合。本优选实施例对集合中的图形进行唯一编码,从而便于检索集合中的图形。Preferably, adding different figures into the set includes: setting a unique code for each different figure; adding all codes and their corresponding figures into the set. In this preferred embodiment, the graphics in the collection are uniquely coded, so as to facilitate retrieval of the graphics in the collection.

结合图4,以上述提取的苹果和南瓜为例,叙述编码的具体方式。可以将上述基本集的图形,基于Unicode进行编码。编码从0x4e00开始,当然也可以自行定义起始编码,建议使用基本平面非补字区的编码。编码后的对应关系如图4所示。其中文字列为选定的图形基本集中的图形的命名,仅限于在该步骤中使用。其中第二列中为其所在的图形,第三列为为其指定的编码。对于基本集中存在多个图形的情况,可以接着参照第三列中的编码方式,继续编码,直至对其中所有的图形编码完毕。其中为了区别起见,可以对字库按照一定的规则进行命名,防止出现重复的情况。可以采用GUID_自定义字体名的方式。With reference to FIG. 4 , taking the extracted apples and pumpkins as examples, the specific manner of encoding is described. The graphics of the above basic set can be encoded based on Unicode. The encoding starts from 0x4e00, and of course you can define the starting encoding by yourself. It is recommended to use the encoding of the non-complement area of the basic plane. The corresponding relationship after encoding is shown in Fig. 4 . The text column is the name of the graphics in the selected graphics basic set, which is only used in this step. The graphics in the second column are its location, and the third column is its assigned code. For the case where there are multiple graphics in the basic set, you can refer to the coding method in the third column and continue coding until all the graphics are coded. Among them, for the sake of distinction, the font library can be named according to certain rules to prevent duplication. The method of GUID_custom font name can be used.

优选地,字库采用TrueType字库,采用FontLab工具将集合中的各个图形转换为字形,将字形加入到TrueType字库中。TrueType是由Apple Computer公司和Microsoft公司联合提出的一种字形数学描述技术。TrueType采用几何学中二次B样条曲线及直线来描述字体的外形轮廓,其特点是:TrueType既可以用作打印字体,又可以用作屏幕显示。Preferably, the font library is a TrueType font library, and the FontLab tool is used to convert each figure in the collection into a glyph, and the glyph is added to the TrueType font library. TrueType is a font mathematical description technology jointly proposed by Apple Computer and Microsoft. TrueType uses quadratic B-spline curves and straight lines in geometry to describe the outline of fonts. Its characteristic is that TrueType can be used as both a printing font and a screen display.

优选地,字形的引用是Unicode编码,步骤S30包括:确定软件界面中的图形在字库中所对应的字形;将软件界面中的图形用其对应的字形的Unicode编码替换。Preferably, the reference of the glyph is Unicode code, and step S30 includes: determining the glyph corresponding to the graphic in the software interface in the font library; replacing the graphic in the software interface with the Unicode code of the corresponding glyph.

使用FontLab,对编码过的图形设计为字形,如图5所示。其中每个字形上面对应的是为其指定的编码。设计字形时,需要注意,虽然是不同的图形,但由于最终需要存储为一个字体,则需要考虑将其字面,基线等字体设计的参数设计一致,以保证最终使用的效果。制作完毕,通过工具,比如GUIDGEN.EXE,生成一个GUID,比如2778C019-CE45-408a-B4FB-325948007B15,自定义字体名为瓜果展示字体,最终命名为“2778C019CE45408aB4FB325948007B15_瓜果展示字体”。这样可以有效地防止不同软件提供商提供时,出现命名重复的情况。Use FontLab to design the encoded graphics as glyphs, as shown in Figure 5. Each glyph corresponds to the code specified for it. When designing fonts, you need to pay attention to that although they are different graphics, because they need to be stored as a font in the end, you need to consider the design parameters of font design such as its literal and baseline to ensure the final use effect. After the production is completed, use a tool such as GUIDGEN.EXE to generate a GUID, such as 2778C019-CE45-408a-B4FB-325948007B15. The custom font is named "Melon and Fruit Display Font", and finally named "2778C019CE45408aB4FB325948007B15_Melon and Fruit Display Font". This can effectively prevent duplication of naming when provided by different software providers.

优选地,本方法还包括:用户设备通过引用从字库中调用和显示图形,以显示软件界面。显示时采用字库来显示图形,从而可以根据分辨率控制图形的大小。Preferably, the method further includes: the user equipment invokes and displays graphics from the font library by reference, so as to display the software interface. When displaying, fonts are used to display graphics, so that the size of graphics can be controlled according to the resolution.

优选地,用户设备通过引用从字库中调用和显示图形包括:获取用户设备的分辨率;根据分辨率确定字号;根据软件界面中的引用从字库中调用对应的字形;以字号显示字形。Preferably, calling and displaying graphics from the font library by the user equipment through reference includes: obtaining the resolution of the user equipment; determining the font size according to the resolution; calling the corresponding font from the font library according to the reference in the software interface; displaying the font with the font size.

可以加载字库到用户设备的操作系统中,使用操作系统提供的字体服务,设定合适的字号,进行图形显示。同时利用字体相应的服务,可以进行对其进行二维变换。除此之外,可以将字体服务提供的数据作为其他系统服务的输入,通过相应的系统服务处理之后,再进行输出。The font library can be loaded into the operating system of the user device, and the font service provided by the operating system can be used to set an appropriate font size for graphic display. At the same time, using the corresponding service of the font, you can perform two-dimensional transformation on it. In addition, the data provided by the font service can be used as the input of other system services, and then output after being processed by the corresponding system services.

采用操作系统提供的字体服务接口,在软件启动前将字体加载到系统中,接下来,使用操作系统的字体服务,请求字体名为GUID_自定义字体名的字体,将其设定为系统设备上下文使用的字体,按照展示界面的设计要求,进行图形输出,完成展示界面中图形的显示。Use the font service interface provided by the operating system to load the font into the system before the software starts. Next, use the font service of the operating system to request a font whose font name is GUID_custom font name, and set it as a system device The fonts used in the context, according to the design requirements of the display interface, perform graphic output to complete the display of graphics in the display interface.

以Symbian S60平台为例,说明图2中第一行图形的输出方式。Take the Symbian S60 platform as an example to illustrate the output mode of the first row of graphics in Figure 2.

void Draw(const TRect& aRect)constvoid Draw(const TRect& aRect)const

{{

     CWindowGc&gc=SystemGc();CWindowGc&gc=SystemGc();

     gc.Clear(aRect);gc. Clear(aRect);

     gc.SetPenStyle(CGraphicsContext::ENullPen);gc.SetPenStyle(CGraphicsContext::ENullPen);

     gc.SetBrushStyle(CGraphicsContext::ESolidBrush);gc.SetBrushStyle(CGraphicsContext::ESolidBrush);

     TPoint textPoint(100,200);//第一行的初始显示位置TPoint textPoint(100, 200);//The initial display position of the first line

    TBuf<2>text;TBuf<2>text;

text[0]=0x4e00;text[0]=0x4e00;

//设定请求的字体//Set the requested font

_LIT(KFontName,″2778C019CE45408aB4FB325948007B15_瓜果展示字体″);//示意代码_LIT(KFontName, "2778C019CE45408aB4FB325948007B15_Melon and fruit display font");//Schematic code

TInt KTextHight;                //字体的大小TInt KTextHight; // font size

CFont*normalFont;CFont*normalFont;

For(KTextHight=29;KTextHight<=34;++KTextHight)For(KTextHight=29; KTextHight<=34; ++KTextHight)

{{

   iCoeEnv  ->  ScreenDevice  ()->  GetNearestFontInTwips(iFont,TFontSpec(KFontName,KTextHight));iCoeEnv -> ScreenDevice () -> GetNearestFontInTwips(iFont, TFontSpec(KFontName, KTextHight));

   gc.UseFont(normalFont);//设置字体gc.UseFont(normalFont);//set font

   gc.DrawText(text,textPo int);//绘制文本gc.DrawText(text, textPoint);//draw text

   textPoint.x+=KTextHight;//定位到下一个图形显示处textPoint.x+=KTextHight;//locate to the next graphics display

}}

   gc.DiscardFont();gc. DiscardFont();

}}

其中部分代码,为了方便起见,采用了示意代码的方式(上述代码中已经标出),实际运用可能会不同。Some of the codes, for the sake of convenience, use the way of indicating the code (marked in the above code), the actual application may be different.

通过上述代码,就可以实现图2中第一行图形的输出。第二行图形的输出于此类似。只需要重新设定相应的字号,设定textPoint为相应的输出位置,然后调用gc.DrawText(text,textPoint)即可。Through the above code, the output of the first line of graphics in Figure 2 can be realized. The output for the second row of graphs is similar. You only need to reset the corresponding font size, set textPoint as the corresponding output position, and then call gc.DrawText(text, textPoint).

其中字号的设置,是通过字体引擎实现了上述图形的二维变换(缩放)。其他二维变换的方式可以参考计算机图形学的相关算法进行。一种具体的实施方式,是首先通过字体引擎,设置字号得到合适的字号,然后通过字体服务将相应编码对应的字形轮廓提取出来,转换为系统支持的二维图形,比如路径,然后就可以采用计算机图形学中的相关算法,进行剪切等变换,变换完成后,通过系统的显示或输出函数,实现图形的显示或输出。The setting of the font size is to realize the two-dimensional transformation (zooming) of the above graphics through the font engine. Other two-dimensional transformation methods can be performed with reference to related algorithms of computer graphics. A specific implementation method is to firstly use the font engine to set the font size to obtain a suitable font size, and then use the font service to extract the glyph outline corresponding to the corresponding code, convert it into a two-dimensional graphic supported by the system, such as a path, and then use The relevant algorithms in computer graphics perform transformations such as shearing. After the transformation is completed, the display or output of graphics is realized through the display or output functions of the system.

除此之外,可以将字体服务提供的数据作为其他系统服务的输入,通过相应的系统服务处理之后,再进行输出。比如,可以通过字体服务提取为图形,然后通过系统的其他服务(比如填充等)进行处理后,再进行输出。In addition, the data provided by the font service can be used as the input of other system services, and then output after being processed by the corresponding system services. For example, it can be extracted as graphics through the font service, and then processed by other services of the system (such as filling, etc.), and then output.

图6示出了根据本发明实施例的用于软件界面适配不同分辨率设备的装置的示意图,包括:Fig. 6 shows a schematic diagram of an apparatus for adapting a software interface to devices with different resolutions according to an embodiment of the present invention, including:

集合模块10,用于创建集合,其包括用于构建软件界面的所有不同的图形;Collection module 10, for creating a collection, which includes all the different graphics used to build the software interface;

字库模块20,用于将集合的图形转换为字形,以构建字库;Font library module 20, for converting the graphics of the collection into fonts, to build the font library;

界面模块30,用于创建软件界面,将其中的图形用字库中其对应的字形的引用来描述。The interface module 30 is used to create a software interface, and describe the graphics therein with references to their corresponding glyphs in the font library.

本装置减轻了开发软件界面的工作量。The device reduces the workload of developing the software interface.

优选地,本装置还包括:显示模块,用于用户设备通过引用从字库中调用和显示图形,以显示软件界面。显示时采用字库来显示图形,从而可以根据分辨率控制图形的大小。Preferably, the device further includes: a display module, used for the user equipment to call and display graphics from the font library by reference, so as to display the software interface. When displaying, fonts are used to display graphics, so that the size of graphics can be controlled according to the resolution.

优选地,显示模块包括:分辨率模块,用于获取用户设备的分辨率;字号模块,用于根据分辨率确定字号;调用模块,用于根据软件界面中的引用从字库中调用对应的字形;呈现模块,用于以字号显示字形。Preferably, the display module includes: a resolution module, used to obtain the resolution of the user equipment; a font size module, used to determine the font size according to the resolution; a calling module, used to call the corresponding font from the font library according to the reference in the software interface; Rendering module for displaying glyphs in font size.

下面结合图7-图13描述本发明关于处理软件界面中的文字的实施例。The following describes an embodiment of the present invention about processing text in a software interface with reference to FIGS. 7-13 .

图7示出了根据本发明实施例的用于软件界面适配不同分辨率设备的方法的流程图,包括:Fig. 7 shows a flowchart of a method for adapting a software interface to devices with different resolutions according to an embodiment of the present invention, including:

步骤S15,创建集合,其包括用于构建软件界面的所有不同的文字;Step S15, creating a collection, which includes all the different characters used to build the software interface;

步骤S25,将集合的文字转换为字形,以构建字库;Step S25, converting the collected characters into glyphs to build a font library;

步骤S35,创建软件界面,将其中的文字用字库中其对应的字形的引用来描述。Step S35, creating a software interface, and describing the characters in it by references to their corresponding glyphs in the font library.

在现有技术中,必须根据不同的分辨率开发不同版本的软件界面,否则其中的文字无法正常显示。而本实施例中,采用了字库技术来处理软件界面中的文字,所以软件界面中的文字采用对字库中字形的引用来描述,不管存在多少种分辨率的用户设备,对于字形的引用可以不变,因为用户设备的操作系统能够根据分辨率的不同,自动地采用不同的字号来缩放调用字形,从而正确地显示软件界面中的文字。因此,本方法解决了现有技术不能自适应地显示软件界面中的文字的问题,从而减轻了开发软件界面的工作量。In the prior art, different versions of the software interface must be developed according to different resolutions, otherwise the text therein cannot be displayed normally. However, in this embodiment, font technology is used to process the text in the software interface, so the text in the software interface is described by reference to the font in the font. No matter how many resolutions there are in the user equipment, the reference to the font may not Because the operating system of the user equipment can automatically use different font sizes to scale and call fonts according to different resolutions, so as to correctly display the text in the software interface. Therefore, the method solves the problem that the prior art cannot adaptively display the text in the software interface, thereby reducing the workload of developing the software interface.

优选地,步骤S15包括:将当前的文字与集合中的文字进行比较;如果确定当前的文字不能由集合中的文字通过简单缩放得到,则确定当前的文字是一个不同的文字,并加入到集合中。本优选实施例可以避免集合中元素的重复,保证元素的唯一性。Preferably, step S15 includes: comparing the current text with the text in the collection; if it is determined that the current text cannot be obtained by simply scaling the text in the collection, then determine that the current text is a different text, and add it to the collection middle. This preferred embodiment can avoid duplication of elements in the set and ensure the uniqueness of elements.

例如,在用户界面(UI)设计时,将其中的文字信息进行提取、划分、去重等操作,制作出一个自适应文字基本集;其中对于可以通过二维文字变换可以互相转换的文字算作一类。如图8所示,其中包含“方正北魏楷书”,“方正兰亭黑”,“方正静蕾”,“方正喵呜”,“方正博雅宋”,“方正粗倩”,“方正剪纸”,“方正卡通”,“方正隶变”等9个展示图片。图9为提取的其中两个展示图片,其中一个为“方正剪纸”风格,一个为“方正喵呜”风格。其中包含的文本元素为“方正北魏楷书方正兰亭黑方正静蕾方正喵呜方正博雅宋方正粗倩方正剪纸方正卡通方正隶变”,由于其中的文本风格均不一致,所以上述文字不能进行去重处理,对于文本风格一致的情况,比如同样为“方正静蕾”,如果其中包含两个“正”字,即使字号不同,也算作一个文本,进行去重。所以上述去重之后的文本基本集为“方正北魏楷书方正兰亭黑方正静蕾方正喵呜方正博雅宋方正粗倩方正剪纸方正卡通方正隶变”。For example, when designing a user interface (UI), the text information in it is extracted, divided, and deduplicated to create a basic set of adaptive text; among them, the text that can be converted to each other through two-dimensional text transformation is counted as one type. As shown in Figure 8, it includes "Founder Northern Wei Kaishu", "Founder Lanting Black", "Founder Jinglei", "Founder Meow", "Founder Boya Song", "Founder Ruqian", "Founder Paper-cut", "Founder 9 display pictures including "Founder Cartoon" and "Founder Slave Transformation". Figure 9 shows two of the extracted display pictures, one of which is in the style of "Founder Paper-cut" and the other is in the style of "Founder Meow". The text element contained in it is "Founder Northern Wei regular script Founder Orchid Pavilion Black Founder Jinglei Founder Meow Founder Boya Song Founder Rough Qian Founder Paper-cut Founder Cartoon Founder Libian". Since the text styles in it are inconsistent, the above text cannot be deduplicated , for the same text style, such as "Founder Jinglei", if it contains two "Zheng" characters, even if the font sizes are different, it will be counted as one text and deduplicated. Therefore, the basic set of texts after the above-mentioned deduplication is "Founder's regular script of Northern Wei Dynasty, Founder's regular script of Lanting, Hei, Founder of Jinglei, Founder's meow, Founder of Boya, Song Dynasty, Founder's rough, Qian, Founder's paper-cut, Founder's cartoon, Founder's slave change".

优选地,将不同的文字加入集合包括:对每个不同的文字设置唯一的编码;将所有编码及其对应的文字加入集合。本优选实施例对集合中的文字进行唯一编码,从而便于检索集合中的文字。Preferably, adding different characters into the set includes: setting a unique code for each different character; adding all codes and their corresponding characters into the set. In this preferred embodiment, the characters in the collection are uniquely coded, so as to facilitate retrieval of the characters in the collection.

结合图10,以其中的“方正剪纸”“方正喵呜”为例,叙述编码的具体方式。编码从0x4e00开始,当然也可以自行定义起始编码,建议使用基本平面非补字区的编码。编码后的对应关系如图10所示。其中文字列为选定的文本基本集中的文本,其中第二列中为其所在的展示图片,第三列为为其制定的编码。对于第一步中确定的基本集中的其他文本,可以接着第三列中的编码继续编码,直至对其中所有的文本编码完毕。其中为了区别起见,可以对字库按照一定的规则进行命名,防止出现重复的情况。可以采用GUID自定义字体名的方式。Combining with Fig. 10, taking "Fangzheng paper-cut" and "Fangzheng meow" as examples, the specific way of coding is described. The encoding starts from 0x4e00, and of course you can define the starting encoding by yourself. It is recommended to use the encoding of the non-complement area of the basic plane. The corresponding relationship after encoding is shown in FIG. 10 . The text column is the text in the selected text basic set, the second column is the display picture where it is located, and the third column is the code formulated for it. For other texts in the basic set determined in the first step, the coding in the third column can be continued until all the texts are coded. Among them, for the sake of distinction, the font library can be named according to certain rules to prevent duplication. You can use GUID to customize the font name.

优选地,字库采用TrueType字库,采用FontLab工具将集合中的各个文字转换为字形,将字形加入到TrueType字库中。TrueType是由Apple Computer公司和Microsoft公司联合提出的一种字形数学描述技术。TrueType采用几何学中二次B样条曲线及直线来描述字体的外形轮廓,其特点是:TrueType既可以用作打印字体,又可以用作屏幕显示。Preferably, the font library is a TrueType font library, and the FontLab tool is used to convert each character in the collection into glyphs, and the glyphs are added to the TrueType font library. TrueType is a font mathematical description technology jointly proposed by Apple Computer and Microsoft. TrueType uses quadratic B-spline curves and straight lines in geometry to describe the outline of fonts. Its characteristic is that TrueType can be used as both a printing font and a screen display.

优选地,字形的引用是Unicode编码,步骤S35包括:确定软件界面中的文字在字库中所对应的字形;将软件界面中的文字用其对应的字形的Unicode编码替换。Preferably, the reference of the glyph is Unicode code, and step S35 includes: determining the glyph corresponding to the character in the software interface in the font library; replacing the character in the software interface with the Unicode code of the corresponding glyph.

使用FontLab,对编码过的文字设计为字形,如图11所示。其中每个字形上面对应的是为其指定的编码。设计字形时,需要注意,虽然是不同的字体风格,但由于最终需要存储为一个字体,则需要考虑将其字面,基线等字体设计的参数设计一致,以保证最终使用的效果。制作完毕,通过工具,比如GUIDGEN.EXE,生成一个GUID,比如E3EA46F6-9BCA-4460-8BB0-A3DC95CD0C5C,自定义字体名为方正字酷塞班展示字体,最终命名为E3EA46F69BCA44608BB0A3DC95CD0C5C_方正字酷塞班展示字体。这样可以有效地防止不同软件提供商提供时,出现命名重复的情况。Use FontLab to design the encoded text as glyphs, as shown in Figure 11. Each glyph corresponds to the code specified for it. When designing fonts, you need to pay attention to that although they are different font styles, because they need to be stored as one font in the end, you need to consider the design parameters of font design such as literal and baseline to ensure the final use effect. After the production is completed, use a tool such as GUIDGEN.EXE to generate a GUID, such as E3EA46F6-9BCA-4460-8BB0-A3DC95CD0C5C. The custom font is named Founder Cool Symbian Display Font, and finally named E3EA46F69BCA44608BB0A3DC95CD0C5C_Founder Cool Saipan Display font. This can effectively prevent duplication of naming when provided by different software providers.

优选地,本方法还包括:用户设备通过引用从字库中调用和显示文字,以显示软件界面。显示时采用字库来显示文字,从而可以根据分辨率控制文字的大小。Preferably, the method further includes: the user equipment invokes and displays text from the font library by reference, so as to display the software interface. When displaying, the font library is used to display the text, so that the size of the text can be controlled according to the resolution.

优选地,用户设备通过引用从字库中调用和显示文字包括:获取用户设备的分辨率;根据分辨率确定字号;根据软件界面中的引用从字库中调用对应的字形;以字号显示字形。Preferably, calling and displaying text from the font library by the user equipment through reference includes: obtaining the resolution of the user equipment; determining the font size according to the resolution; calling the corresponding font from the font library according to the reference in the software interface; displaying the font with the font size.

可以加载字库到用户设备的操作系统中,使用操作系统提供的字体服务,设定合适的字号,进行文字显示。同时利用字体相应的服务,可以进行对其进行二维变换。除此之外,可以将字体服务提供的数据作为其他系统服务的输入,通过相应的系统服务处理之后,再进行输出。The font library can be loaded into the operating system of the user device, and the font service provided by the operating system can be used to set an appropriate font size for text display. At the same time, using the corresponding service of the font, you can perform two-dimensional transformation on it. In addition, the data provided by the font service can be used as the input of other system services, and then output after being processed by the corresponding system services.

采用操作系统提供的字体服务接口,在软件启动前将字体加载到系统中,接下来,使用操作系统的字体服务,请求字体名为GUID_自定义字体名的字体,将其设定为系统设备上下文使用的字体,按照展示界面的设计要求,进行文字输出,完成展示界面中文字的显示。Use the font service interface provided by the operating system to load the font into the system before the software starts. Next, use the font service of the operating system to request a font whose font name is GUID_custom font name, and set it as a system device The font used in the context, according to the design requirements of the display interface, performs text output to complete the display of the text in the display interface.

以Symbian S60平台为例,说明“方正剪纸”这几个文本的输出方式。Take the Symbian S60 platform as an example to illustrate the output method of the texts "Founder paper-cut".

void Draw(const TRect& aRect)constvoid Draw(const TRect& aRect)const

     {{

     CWindowGc&gc=SystemGc();CWindowGc&gc=SystemGc();

     gc.Clear(aRect);gc. Clear(aRect);

     gc.SetPenStyle(CGraphicsContext::ENullPen);gc.SetPenStyle(CGraphicsContext::ENullPen);

gc.SetBrushStyle(CGraphicsContext::ESolidBrush);gc.SetBrushStyle(CGraphicsContext::ESolidBrush);

TPoint textPoint(aRect.Width()/3,aRect.Height()*2/3);//显示位置TPoint textPoint(aRect.Width()/3, aRect.Height()*2/3);//display position

TBuf<20>text(_L(″方正剪纸″));//示意代码TBuf<20>text(_L("Founder paper-cut"));//show code

//设定请求的字体//Set the requested font

_LIT(KFontName,″E3EA46F69BCA44608BB0A3DC95CD0C5C_方正字酷塞班展示字体″);//示意代码_LIT(KFontName, "E3EA46F69BCA44608BB0A3DC95CD0C5C_Founder font cool Symbian display");//show code

TInt KTextHight=15;                 //定义字体的大小TInt KTextHight=15; //Define the size of the font

CFont*normalFont;CFont*normalFont;

iCoeEnv  ->  ScreenDevice  ()->  GetNearestFontInTwips(iFont,TFontSpec(KFontName,KTextHight));iCoeEnv -> ScreenDevice () -> GetNearestFontInTwips(iFont, TFontSpec(KFontName, KTextHight));

gc.UseFont(normalFont);//设置字体gc.UseFont(normalFont);//Set the font

gc.DrawText(text,textPoint);//绘制文本gc.DrawText(text, textPoint);//draw text

gc.DiscardFont();gc. DiscardFont();

}}

其中部分代码,为了方便起见,采用了示意代码的方式(上述代码中已经标出),实际运用可能会不同。Some of the codes, for the sake of convenience, use the way of indicating the code (marked in the above code), the actual application may be different.

通过上述代码,就可以实现图12中“方正剪纸”的文本输出。其他文本的输出于此类似。只需要重新设定text中文本为相应的文本,并且设定textPoint为相应的输出位置,然后调用gc.DrawText(text,textPoint)即可。Through the above code, the text output of "Founder paper-cut" in Figure 12 can be realized. The output for other text is similar. You only need to reset the text in text to the corresponding text, and set textPoint to the corresponding output position, and then call gc.DrawText(text, textPoint).

图13示出了根据本发明实施例的用于软件界面适配不同分辨率设备的装置的示意图,包括:Fig. 13 shows a schematic diagram of an apparatus for adapting a software interface to devices with different resolutions according to an embodiment of the present invention, including:

集合模块15,用于创建集合,其包括用于构建软件界面的所有不同的文字;The collection module 15 is used to create a collection, which includes all the different texts used to build the software interface;

字库模块25,用于将集合的文字转换为字形,以构建字库;The character library module 25 is used to convert the collected characters into fonts to build the font library;

界面模块35,用于创建软件界面,将其中的文字用字库中其对应的字形的引用来描述。The interface module 35 is used to create a software interface, and describe the text in it by the reference of its corresponding glyph in the font library.

本装置减轻了开发软件界面的工作量。The device reduces the workload of developing the software interface.

优选地,本装置还包括:显示模块,用于用户设备通过引用从字库中调用和显示文字,以显示软件界面。显示时采用字库来显示文字,从而可以根据分辨率控制文字的大小。Preferably, the device further includes: a display module, used for the user equipment to call and display text from the font library by reference, so as to display the software interface. When displaying, the font library is used to display the text, so that the size of the text can be controlled according to the resolution.

优选地,显示模块包括:分辨率模块,用于获取用户设备的分辨率;字号模块,用于根据分辨率确定字号;调用模块,用于根据软件界面中的引用从字库中调用对应的字形;呈现模块,用于以确定的字号显示字形。Preferably, the display module includes: a resolution module, used to obtain the resolution of the user equipment; a font size module, used to determine the font size according to the resolution; a calling module, used to call the corresponding font from the font library according to the reference in the software interface; The rendering module is used for displaying glyphs with a determined font size.

另外,本发明的一个优选实施例提供了一种用于软件界面适配不同分辨率设备的方法,包括:In addition, a preferred embodiment of the present invention provides a method for adapting a software interface to devices with different resolutions, including:

步骤S15,创建集合,其包括用于构建软件界面的所有不同的文字;Step S15, creating a collection, which includes all the different characters used to build the software interface;

步骤S25,将集合的文字转换为字形,以构建字库;Step S25, converting the collected characters into glyphs to build a font library;

步骤S35,创建软件界面,将其中的文字用字库中其对应的字形的引用来描述;以及Step S35, create a software interface, and describe the text in it by the reference of its corresponding glyph in the font library; and

步骤S10,创建集合,其包括用于构建软件界面的所有不同的文字;Step S10, creating a collection, which includes all the different characters used to build the software interface;

步骤S20,将集合的文字转换为字形,以构建字库;Step S20, converting the collected characters into glyphs to build a font library;

步骤S30,创建软件界面,将其中的文字用字库中其对应的字形的引用来描述。Step S30, creating a software interface, and describing the characters in it by references to their corresponding glyphs in the font library.

其中,步骤S15、S25、S35与步骤S10、S20、S30显然不限定先后次序。Wherein, steps S15 , S25 , S35 and steps S10 , S20 , S30 are obviously not limited in order.

另外,本发明的一个优选实施例提供了一种用于软件界面适配不同分辨率设备的装置,包括:In addition, a preferred embodiment of the present invention provides an apparatus for adapting software interfaces to devices with different resolutions, including:

集合模块15,用于创建集合,其包括用于构建软件界面的所有不同的文字;The collection module 15 is used to create a collection, which includes all the different texts used to build the software interface;

字库模块25,用于将集合的文字转换为字形,以构建字库;The character library module 25 is used to convert the collected characters into fonts to build the font library;

界面模块35,用于创建软件界面,将其中的文字用字库中其对应的字形的引用来描述;以及The interface module 35 is used to create a software interface, and the text therein is described by the reference of its corresponding glyph in the font library; and

集合模块10,用于创建集合,其包括用于构建软件界面的所有不同的文字;The collection module 10 is used to create a collection, which includes all the different texts used to build the software interface;

字库模块20,用于将集合的文字转换为字形,以构建字库;The character library module 20 is used to convert the collected characters into fonts to build the font library;

界面模块30,用于创建软件界面,将其中的文字用字库中其对应的字形的引用来描述。The interface module 30 is used to create a software interface, and describe the text in it by the reference of its corresponding glyph in the font library.

从以上的描述中可以看出,本发明上述的实施例可以在现实软件界面中的图形和文字时,自适应不同分辨率的用户设备。It can be seen from the above description that the above embodiments of the present invention can adapt to user devices with different resolutions when displaying graphics and text in the software interface.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Optionally, they can be implemented with program codes executable by computing devices, so that they can be stored in storage devices and executed by computing devices, or they can be made into individual integrated circuit modules, or their Multiple modules or steps are implemented as a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the 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
CN109597617B (en) Method and device for quickly generating service page based on template
US11030389B2 (en) Acquisition of a font portion using a compression mechanism
CN110096275B (en) Page processing method and device
WO2015180422A1 (en) Page layout method and device
CN104820589A (en) Method and device for dynamically adapting webpage
CN102467385A (en) Method and device for adapting software interface to different resolutions
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN104616158A (en) Product detail page generation method and device
US20150169508A1 (en) Obfuscating page-description language output to thwart conversion to an editable format
CN111881648A (en) A method for generating e-book font files
CN102467386A (en) Method and device for adapting software interface to different resolutions
CN116303888A (en) Rarely used word processing method and device, storage medium and electronic equipment
US20060181532A1 (en) Method and system for pixel based rendering of multi-lingual characters from a combination of glyphs
US20160124910A1 (en) Document layout for electronic displays
CN110825390A (en) Visualization large screen project rapid deployment
US10452952B2 (en) Typesetness score for a table
US12367695B2 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
CN113110837B (en) Method and device for processing page information
US20100017708A1 (en) Information output apparatus, information output method, and recording medium
CN114020187A (en) Font icon display method and device and electronic equipment
CN100585585C (en) Insert objects using a text editor that supports scalable fonts
CN113240776B (en) Method, device and storage medium for changing picture color based on canvas
CN102567305A (en) Resolving page references in layout dependent documents
CN112949257B (en) Character display method, device, equipment and computer readable storage medium
CN115544963A (en) Character thickening method and device, electronic equipment and readable storage medium

Legal Events

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

Application publication date: 20120523