CN103577387A - Typeface changing method and device - Google Patents

Typeface changing method and device Download PDF

Info

Publication number
CN103577387A
CN103577387A CN201210257618.7A CN201210257618A CN103577387A CN 103577387 A CN103577387 A CN 103577387A CN 201210257618 A CN201210257618 A CN 201210257618A CN 103577387 A CN103577387 A CN 103577387A
Authority
CN
China
Prior art keywords
font
extended area
touch point
type
font type
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
CN201210257618.7A
Other languages
Chinese (zh)
Inventor
黄水成
黄继波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210257618.7A priority Critical patent/CN103577387A/en
Publication of CN103577387A publication Critical patent/CN103577387A/en
Pending legal-status Critical Current

Links

Images

Abstract

A typeface changing method includes the following steps: obtaining a typeface changing command, and detecting an installed typeface type; displaying the detected typeface type in a typeface changing window; obtaining a selected typeface type, and drawing characters on an application program interface according to the selected typeface type. By means of the typeface changing method, typeface can be changed fast on each application program interface flexibly. In addition, a typeface changing device is further provided.

Description

Change the method and apparatus of font
Technical field
The present invention relates to intelligent terminal technical field, particularly relate to a kind of method and apparatus of changing font.
Background technology
Along with the development of intelligent terminal technology, on intelligent terminal, can move various application programs.Because the screen of dissimilar intelligent terminal (as mobile phone, notebook computer, panel computer, media player etc.) has different resolution, on different intelligent terminals, run application, tend to change the font of application interface.
The method of traditional change font can only be changed font size conventionally, and can not change the type of font.When if desired the font type at application programs interface is changed, need first to install self-defined font, then the font type at the interface of all application programs is all changed.Therefore the method for traditional change font has larger limitation.
Summary of the invention
Based on this, be necessary the circumscribed problem for traditional change font, providing a kind of can carry out quick-replaceable font and have more the method for the replacing font of dirigibility the interface of each application program.
A method of changing font, comprises the following steps:
Obtain font and change instruction, detect the font type of installing;
In font, change the described font type that in window, displaying detects;
Obtain the font type of selection, according to the word on the font type application programs interface of described selection, draw.
In addition, also providing a kind of can carry out quick-replaceable font and have more the system of the replacing font of dirigibility the interface of each application program.
Change a device for font, described device comprises:
Font type detection module, changes instruction for obtaining font, detects the font type of installing;
Font type display module, shows for changing window in font the described font type detecting;
Font type acquisition module, for obtaining the font type of selection;
Word-Drawing module, for drawing according to the word on the font type application programs interface of described selection.
The method and apparatus of above-mentioned replacing font, by changing in window and show and obtain the font type of selection by the font type detecting in font, and draws according to the word on the interface of the font type application programs of selecting.Like this, can carry out quick-replaceable font for the interface of each application program.And by changing in window and show that a plurality of font types that detect are selective in font, can realize for certain application program the replacing of multiple font type, therefore have more dirigibility.
Accompanying drawing explanation
Fig. 1 changes the schematic flow sheet of the method for font in an embodiment;
Fig. 2 shows the schematic diagram of font type and font size by extended area;
The schematic diagram of Fig. 3 for extended area is carried out to region division;
Fig. 4 changes the structural representation of the device of font in an embodiment;
Fig. 5 is for changing the structural representation of the device of font in another embodiment;
Fig. 6 is for changing the structural representation of the device of font in another embodiment.
Embodiment
As shown in Figure 1, in one embodiment, a kind of method of changing font, comprises the following steps:
Step S10, obtains font and changes instruction, detects the font type of installing.
Font is changed the click commands that instruction can be the function button that in preset function menu, corresponding font is changed, and can be also the click commands to default specific physical button.For the terminal of using touch-screen, also can grow by operation touch-screen, eject default font change option, it is to the selection of this option or click commands that font is changed instruction.
Further, get font and change after instruction, detect the font type of installing.Concrete, can detect the self-defined font type under font installation path, obtain the self-defined font type of installing in this locality.
Step S20, changes in font the font type that in window, displaying detects.
Concrete, can on Application Program Interface, eject font and change window, font is changed window and is comprised a plurality of extended areas, and each extended area is used for showing a font type.In one embodiment, judge whether to detect self-defined font type, if the self-defined font type detecting comprises a plurality of, can in the self-defined font type detecting, choose at random a predetermined number self-defined font type, and the title of the self-defined font type detecting is shown in corresponding extended area.
Step S30, obtains the font type of selection, according to the word on the font type application programs interface of selecting, draws.
Can change a plurality of font types of showing in window to font and select, for example, can select by clicking the title of corresponding font type.Preferably, can, after getting the font type of selection, hide font and change window, and draw according to the word on the font type application programs interface of selecting, thereby the font of the word on Application Program Interface is changed to selected font type.
Described application program, is preferably browser, and step S30 can draw the word on browser page according to the font type of selecting, and can realize the font type of quick-replaceable browser page.
In one embodiment, after step S20, also can comprise: the corresponding relation that generates extended area and the font type of showing in extended area.
For the terminal of using touch-screen, font is changed window can be divided into a plurality of extended areas, the corresponding back end of each extended area, and each back end is defined as by area coordinate and font type and forms.Further, according to the font type detecting, generate a plurality of back end, each back end comprises extended area and the corresponding relation of the font type shown in extended area.The back end generating forms list storage.
In one embodiment, the detailed process of obtaining the font type of selection is: obtain the coordinate of the touch point of touch operation, according to the coordinate of touch point, obtain extended area under touch point; According to above-mentioned corresponding relation search with touch point under font type corresponding to extended area.
Concrete, touch operation can be font to be changed to the clicking operation of window, according to the coordinate of the position acquisition touch point of clicking, further, according to the coordinate of touch point, obtain touch point affiliated area, in the list then forming at back end, search, search and obtain the back end corresponding with touch point affiliated area, and obtain the font type in this back end, be the font type of selection.
In one embodiment, also can change and in window, show default font size in font; Obtain the font size of selection, according to the word on the font size application programs interface of selecting, draw.
In one embodiment, in advance can Memory Extension region and extended area in the corresponding relation of the font size of showing.In the present embodiment, the detailed process of obtaining the font size of selection is: the coordinate that obtains the touch point of touch operation, according to the coordinate of touch point, obtain extended area under touch point, corresponding relation according to extended area with the font size of showing in extended area, search with touch point under font size corresponding to extended area.
As shown in Figure 2, font is changed window and is divided into a plurality of extended areas, shows the font type of the installation detecting and default font size in extended area.In the present embodiment, the corresponding back end of each extended area, back end is defined as by area coordinate and font type and forms, or is defined as area coordinate and font size formation.
In one embodiment, area coordinate can be the coordinate in the upper left corner of each extended area.As shown in Figure 3, font is changed window and is divided into 8 extended areas, and the data structure of the back end that definable extended area is corresponding is as follows:
Figure BDA00001926474700041
Wherein, the coordinate in the upper left corner that Point is extended area, font type or the font size of Type for showing in corresponding extended area.
Concrete, show that the back end corresponding to extended area of font size forms a list, in each back end, comprise the corresponding relation of extended area and the font size of showing in extended area, this list can be stored in this locality in advance.
After the font type of installation being detected, the font type of showing in extended area is write in the corresponding back end of extended area of showing font type, this back end forms a list, and in each back end, comprises the corresponding relation of extended area and the font type of showing in extended area.
Further, can obtain font type and/or the font size of by font, changing window selection, according to the font type of selecting and/or the word on font size application programs interface, draw.
In one embodiment, as shown in Figure 4, a kind of device of changing font, comprises font type detection module 10, font type display module 20, font type acquisition module 30 and Word-Drawing module 40, wherein:
Font type detection module 10 is changed instruction for obtaining font, detects the font type of installing.
Font type display module 20 shows for changing window in font the font type detecting.
Font type acquisition module 30 is for obtaining the font type of selection.
Word-Drawing module 40 is for drawing according to the word on the font type application programs interface of selecting.
Concrete, font type detection module 10 can be used for detecting the self-defined font type under font installation path, obtains the self-defined font type of installing in this locality.Font type display module 20 is used on Application Program Interface and ejects font replacing window, and font is changed window and comprised a plurality of extended areas, and each extended area is used for showing a font type.
In one embodiment, font type display module 20 judges whether to detect self-defined font type, if the self-defined font type detecting comprises a plurality of, can in the self-defined font type detecting, choose at random a predetermined number self-defined font type, and the title of the self-defined font type detecting is shown in corresponding extended area.
In one embodiment, Word-Drawing module 40 is for after getting the font type of selection, hide font and change window, and draw according to the word on the font type application programs interface of selecting, thereby the font of the word on Application Program Interface is changed to selected font type.
In one embodiment, font replacing window comprises a plurality of extended areas.As shown in Figure 5, the device of changing font also can comprise corresponding relation generation module 50, for generating the corresponding relation of extended area and the font type of showing at extended area.
For the terminal of using touch-screen, font is changed window can be divided into a plurality of extended areas, the corresponding back end of each extended area, and each back end is defined as by area coordinate and font type and forms.Further, corresponding relation generation module 50 generates a plurality of back end according to the font type detecting, and each back end comprises extended area and the corresponding relation of the font type shown in extended area.The back end generating forms list storage.
In one embodiment, font type acquisition module 30 is for obtaining the coordinate of the touch point of touch operation, according to the coordinate of touch point, obtain extended area under touch point, according to above-mentioned corresponding relation search with institute touch point under font type corresponding to extended area.
Concrete, touch operation can be font to be changed to the clicking operation of window, according to the coordinate of the position acquisition touch point of clicking, further, font type acquisition module 30 can be used for obtaining touch point affiliated area according to the coordinate of touch point, in the list then forming at back end, searches, and searches and obtains the back end corresponding with touch point affiliated area, and obtain the font type in this back end, be the font type of selection.
In one embodiment, as shown in Figure 6, the device of changing font also can comprise font size display module 60 and font size acquisition module 70, wherein:
Font size display module 60 is shown default font size for changing window in font.
Font size acquisition module 70 is for obtaining the font size of selection.
In the present embodiment, Word-Drawing module 40 also can be used for drawing according to the word on the font size application programs interface of selecting.
In one embodiment, the device of changing font also can comprise memory module (not shown), the corresponding relation for Memory Extension region with the font size of showing at extended area.In the present embodiment, font size acquisition module 70 is for obtaining the coordinate of the touch point of touch operation, according to the coordinate of touch point, obtain extended area under described touch point, corresponding relation according to extended area with the font size of showing in extended area, search with touch point under font size corresponding to extended area.
In the present embodiment, the corresponding back end of each extended area, back end is defined as by area coordinate and font type and forms, or is defined as area coordinate and font size formation.In one embodiment, area coordinate can be the coordinate in the upper left corner of each extended area.
Concrete, show that the back end corresponding to extended area of font size forms a list, in each back end, comprise the corresponding relation of extended area and the font size of showing in extended area, memory module is for being stored in this locality in advance by this list.
After the font type of installation being detected, corresponding relation generation module 50 writes the font type of showing in extended area in the corresponding back end of extended area of showing font type, this back end forms a list, and in each back end, comprises the corresponding relation of extended area and the font type of showing in extended area.
Further, Word-Drawing module 40 can be used for obtaining font type and/or the font size of changing window selection by font, according to the font type of selecting and/or the word on font size application programs interface, draws.
The method and apparatus of above-mentioned replacing font, by changing in window and show and obtain the font type of selection by the font type detecting in font, and draws according to the word on the interface of the font type application programs of selecting.Like this, can carry out quick-replaceable font for the interface of each application program.And by changing in window and show that a plurality of font types that detect are selective in font, can realize for certain application program the replacing of multiple font type, therefore have more dirigibility.
In addition, by being set in font is changed window, a plurality of extended areas are used for showing the font type that detects and/or default font size, when needs provide multiple font type and/or font size when selective, the extended area that can change in window font is expanded, therefore can support the replacing of multiple font type and/or font size, there is extendability.
By the back end that extended area is corresponding is set, terminal for touch-screen, when font being changed to the font type shown in window and/or font size and selects, can obtain touch point affiliated area according to the coordinate of the touch point of touch operation, further obtain the selected font type of touch operation and/or font size, can simplify user's operation, improve the convenience of operation.
The method and apparatus of the replacing font in above-described embodiment, can be embedded in various application programs, realizes the word on the interface of changing various application programs.Preferably, can be embedded in the browser that browser particularly moves on mobile terminal, realize the font of the word of the page in change browser.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a method of changing font, comprises the following steps:
Obtain font and change instruction, detect the font type of installing;
In font, change the described font type that in window, displaying detects;
Obtain the font type of selection, according to the word on the font type application programs interface of described selection, draw.
2. the method for replacing font according to claim 1, is characterized in that, described font is changed window and comprised a plurality of extended areas; Described, after font is changed the step of showing the described font type detecting in window, also comprise:
The corresponding relation of the font type that generates extended area and show in described extended area.
3. the method for replacing font according to claim 2, is characterized in that, described in obtain the font type of selection step be:
Obtain the coordinate of the touch point of touch operation, according to the coordinate of described touch point, obtain extended area under described touch point;
According to described corresponding relation search with described touch point under font type corresponding to extended area.
4. according to the method for the replacing font described in any one in claims 1 to 3, it is characterized in that, described method also comprises:
In described font, change in window and show default font size;
Obtain the font size of selection, according to the word on the font size application programs interface of described selection, draw.
5. the method for replacing font according to claim 4, is characterized in that, before obtaining the step of font replacing instruction, also comprises:
The corresponding relation of Memory Extension region and the font size of showing in extended area.
The described step of obtaining the font size of selection is:
Obtain the coordinate of the touch point of touch operation, according to the coordinate of described touch point, obtain extended area under described touch point;
Corresponding relation according to described extended area with the font size of showing in extended area, search with described touch point under font size corresponding to extended area.
6. a device of changing font, is characterized in that, described device comprises:
Font type detection module, changes instruction for obtaining font, detects the font type of installing;
Font type display module, shows for changing window in font the described font type detecting;
Font type acquisition module, for obtaining the font type of selection;
Word-Drawing module, for drawing according to the word on the font type application programs interface of described selection.
7. the device of replacing font according to claim 6, is characterized in that, described font is changed window and comprised a plurality of extended areas, and described device also comprises:
Corresponding relation generation module, for generating the corresponding relation of extended area and the font type shown at described extended area.
8. the device of replacing font according to claim 7, it is characterized in that, described font type acquisition module is also for obtaining the coordinate of the touch point of touch operation, according to the coordinate of described touch point, obtain extended area under described touch point, according to described corresponding relation search with described touch point under font type corresponding to extended area.
9. according to the device of the replacing font described in any one in claim 6 to 8, it is characterized in that, described device also comprises:
Font size display module, shows default font size for changing window in font;
Font size acquisition module, for obtaining the font size of selection;
Described Word-Drawing module is also for drawing according to the word on the font size application programs interface of described selection.
10. the device of replacing font according to claim 9, is characterized in that, described device also comprises: memory module, the corresponding relation for Memory Extension region with the font size of showing at extended area.
Described font size acquisition module is for obtaining the coordinate of the touch point of touch operation, according to the coordinate of described touch point, obtain extended area under described touch point, corresponding relation according to described extended area with the font size of showing in extended area, search with described touch point under font size corresponding to extended area.
CN201210257618.7A 2012-07-24 2012-07-24 Typeface changing method and device Pending CN103577387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210257618.7A CN103577387A (en) 2012-07-24 2012-07-24 Typeface changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210257618.7A CN103577387A (en) 2012-07-24 2012-07-24 Typeface changing method and device

Publications (1)

Publication Number Publication Date
CN103577387A true CN103577387A (en) 2014-02-12

Family

ID=50049196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210257618.7A Pending CN103577387A (en) 2012-07-24 2012-07-24 Typeface changing method and device

Country Status (1)

Country Link
CN (1) CN103577387A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761110A (en) * 2014-02-18 2014-04-30 优视科技有限公司 Browser font displaying and processing method and device
CN104484315A (en) * 2014-12-15 2015-04-01 深圳市邦华电子有限公司 Method and system for regulating type font of single module
CN105573746A (en) * 2015-12-10 2016-05-11 广东欧珀移动通信有限公司 Control attribute processing method and device
CN105653153A (en) * 2015-12-24 2016-06-08 努比亚技术有限公司 Font synchronization method and apparatus for mobile terminal application
CN105718428A (en) * 2016-01-25 2016-06-29 北京京东尚科信息技术有限公司 Text output method and output device
CN105893336A (en) * 2016-03-30 2016-08-24 努比亚技术有限公司 Text display method and terminal
CN106453952A (en) * 2016-11-25 2017-02-22 努比亚技术有限公司 Theme font preview system and method
CN107690028A (en) * 2017-08-30 2018-02-13 努比亚技术有限公司 A kind of method of adjustment of font size, terminal and readable storage medium storing program for executing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149345A (en) * 1994-04-01 1997-05-07 惠普公司 Font manager with selective access of installed fonts
CN101196917A (en) * 2007-12-27 2008-06-11 腾讯科技(深圳)有限公司 Implementing method and apparatus for sharing letter form
CN100450106C (en) * 2005-08-09 2009-01-07 腾讯科技(深圳)有限公司 Method for implementing character multi-type in immediate message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149345A (en) * 1994-04-01 1997-05-07 惠普公司 Font manager with selective access of installed fonts
CN100450106C (en) * 2005-08-09 2009-01-07 腾讯科技(深圳)有限公司 Method for implementing character multi-type in immediate message
CN101196917A (en) * 2007-12-27 2008-06-11 腾讯科技(深圳)有限公司 Implementing method and apparatus for sharing letter form

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XIYE LEUNG: "Kindle Touch中文操作界面", 《百度文库》 *
焦点数码: "《玩转我的ipad、ipad2》", 31 July 2011, 北京:科学出版社 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761110A (en) * 2014-02-18 2014-04-30 优视科技有限公司 Browser font displaying and processing method and device
CN104484315A (en) * 2014-12-15 2015-04-01 深圳市邦华电子有限公司 Method and system for regulating type font of single module
CN105573746A (en) * 2015-12-10 2016-05-11 广东欧珀移动通信有限公司 Control attribute processing method and device
CN105573746B (en) * 2015-12-10 2019-04-26 Oppo广东移动通信有限公司 A kind of control property processing method and processing device
CN105653153A (en) * 2015-12-24 2016-06-08 努比亚技术有限公司 Font synchronization method and apparatus for mobile terminal application
CN105718428A (en) * 2016-01-25 2016-06-29 北京京东尚科信息技术有限公司 Text output method and output device
CN105718428B (en) * 2016-01-25 2018-10-02 北京京东尚科信息技术有限公司 A kind of output method and output device of text
CN105893336A (en) * 2016-03-30 2016-08-24 努比亚技术有限公司 Text display method and terminal
CN105893336B (en) * 2016-03-30 2019-04-26 努比亚技术有限公司 A kind of text display method and terminal
CN106453952A (en) * 2016-11-25 2017-02-22 努比亚技术有限公司 Theme font preview system and method
CN107690028A (en) * 2017-08-30 2018-02-13 努比亚技术有限公司 A kind of method of adjustment of font size, terminal and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
CN103577387A (en) Typeface changing method and device
US11340759B2 (en) User terminal device with pen and controlling method thereof
CN103098011B (en) Item display method and equipment
US10275151B2 (en) Apparatus and method for cursor control and text selection and editing based on gesture-based touch inputs received in a virtual keyboard display area
KR102113674B1 (en) Apparatus, method and computer readable recording medium for selecting objects displayed on an electronic device using a multi touch
CN106155517B (en) Mobile terminal and control method thereof
EP3042274B1 (en) Method and apparatus for providing multiple applications
KR101911804B1 (en) Method and apparatus for providing function of searching in a touch-based device
US20130007666A1 (en) Electronic device with touch screen device, method of moving function icon and computer readable storage media comprising computer executable instructions
AU2014275609B2 (en) Portable terminal and user interface method in portable terminal
US20130080951A1 (en) Device and method for moving icons across different desktop screens and related computer readable storage media comprising computer executable instructions
US20150026641A1 (en) Terminal Multiselection Operation Method And Terminal
CN101937311A (en) Mobile terminal and icon control method
CN103092469A (en) Terminal and icon moving method
CN103384871A (en) Device, method, and graphical user interface for manipulating soft keyboards
CN104380240A (en) Information display apparatus and method of user device
US11119622B2 (en) Window expansion method and associated electronic device
CN103412763A (en) Background program management method of mobile terminal and mobile terminal
KR20140088165A (en) Touch control terminal and method and device for unlocking touch control
CN105393202A (en) Portable device for providing combined UI component and method of controlling the same
CN103631482A (en) Display method and terminal of icons
CN106502493A (en) A kind of multi-screen display method and terminal
CN102929846A (en) Method and device for processing long text
CN102970421A (en) Method and system for controlling information display for mobile terminal
CN103294392A (en) Method and apparatus for editing content view in a mobile device

Legal Events

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

Application publication date: 20140212