Summary of the invention
Fundamental purpose of the present invention is to provide a kind of Tibetan fonts collocation method and device of Android system, to solve UI and the overlapping phenomenon of browser display Tibetan language of Android system.
The present invention proposes a kind of Tibetan fonts collocation method of Android system, comprising:
Download Tibetan fonts to destination path;
Described Tibetan fonts after downloading is added in the system character library;
The acquiescence character library title that is the Android system by the name modifications of described Tibetan fonts after configuration so that described Tibetan fonts by default character library when system is moved, preferentially be called.
Preferably, after the step of the described acquiescence character library title that is the Android system by the name modifications of the described Tibetan fonts after configuration, the method also comprises:
Revise the title of the original acquiescence character library of Android system;
The original acquiescence character library of Android system after the modification title is added in the system character library;
Set up to revise the ordinal relation of calling between the original acquiescence character library of Android system after title and the described Tibetan fonts of revising after title, so that the Android system is directly called described original acquiescence character library when failed calling described Tibetan fonts after revising title.
Preferably, after the step of calling ordinal relation between the described Tibetan fonts after the original acquiescence character library of Android system after title is revised in described foundation and modification title, the method also comprises:
If the character of Android system shows disappearance, display layout's parameter of Android system is carried out to error correction.
Preferably, the step that the described original acquiescence character library of Android system that will revise after title is configured to the system character library comprises:
The original acquiescence character library of Android system after the modification title is imported in the system character library with amended title;
The original acquiescence character library of Android system after the modification title is configured in the acquiescence font file or standby font file of system.
Preferably, the step described Tibetan fonts after downloading is added in the system character library comprises:
Described Tibetan fonts after downloading is write to the storage area of Android system character library path point for calling;
In calling catalogue, the character library of described Android system adds the Tibetan fonts call options.
The present invention also proposes a kind of Tibetan fonts inking device of Android system, comprising:
Download module, for downloading Tibetan fonts to destination path;
Configuration module, be added into the system character library for the described Tibetan fonts by after downloading;
Modified module, the acquiescence character library title that is the Android system for the name modifications of described Tibetan fonts by after configuration so that described Tibetan fonts by default character library when system is moved, preferentially be called.
Preferably, described modified module is also for revising the title of the original acquiescence character library of Android system; Described configuration module also is added into the system character library for the original acquiescence character library of Android system that will revise after title; Also comprise control module, for setting up the ordinal relation of calling between the original acquiescence character library of Android system revised after title and the described Tibetan fonts of revising after title, so that the Android system is directly called described original acquiescence character library when failed calling described Tibetan fonts after revising title.
Preferably, described configuration module comprises:
Writing unit, for the acquiescence character library that will revise the Android system after title with amended title writing system character library;
Dispensing unit, be configured to acquiescence font file or the standby font file of system for the acquiescence character library that will revise the Android system after title.
Preferably, if described control module also shows disappearance for the character of Android system, display layout's parameter of Android system is carried out to error correction.
Preferably, described configuration module comprises:
Writing unit, write the storage area of Android system character library path point for calling for the described Tibetan fonts by after downloading;
Dispensing unit, call catalogue for the character library in described Android system and add the Tibetan fonts call options.
Tibetan fonts collocation method and the device of the Android system that the present invention proposes, after Tibetan fonts is written into to the Android system, title by the name modifications of the Tibetan fonts that is written into for the acquiescence character library, in system, carry out the Tibetan fonts be written into to be called as the acquiescence character library of system in the process of UI or browser display, can better call the Tibetan language symbol and be shown, to solve the overlapping problem of Tibetan language.
Embodiment
Below in conjunction with drawings and the specific embodiments, with regard to technical scheme of the present invention, be described further.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
See figures.1.and.2, the schematic flow sheet of Tibetan fonts collocation method the first embodiment that Fig. 1 is Android system of the present invention, the idiographic flow schematic diagram that Fig. 2 is step S20 in Fig. 1.
The present embodiment proposes a kind of Tibetan fonts collocation method of Android system, comprising:
Step S10, download Tibetan fonts to destination path;
Can select needed Tibetan fonts, DriodSansTibetan.ttf for example, for the international standard character library of Android system, Himalaya character libraries etc. are supported the character library of Tibetan language, this character library can be downloaded by network, also character library can be kept in External memory equipment, be written into needed character library by External memory equipment, all be called in the present embodiment the download Tibetan fonts, this destination path is the storage area that is specifically designed to the storage character library in the Android system, as/frameworks/base/data/fonts/, store the multiple character library that the Android system is supported in this storage area, as Chinese, English, the character library such as Japanese and Korean.
Step S20, be added into the described Tibetan fonts after downloading in the system character library;
Step S20 specifically comprises in the present embodiment:
Step S21, write the storage area of Android system character library path point for calling by the described Tibetan fonts after downloading;
Can be by the compiling file that in the memory location of revising character library, system carries, and by compiling, the Tibetan fonts of download is write to the storage area of Android system character library path point for calling, storage area by the Tibetan fonts writing system character library path point of download, call Tibetan fonts when carrying out UI demonstration and browser display in system is shown for system, otherwise the Tibetan language character string can't find the font storehouse of coupling in procedure for displaying, the storage area of this system character library path point stores multiple character library, the Tibetan fonts of this download is not necessarily only supported Tibetan language, also can support the word of other language.
Step S22 adds the Tibetan fonts call options in the character library of described Android system is called catalogue.
In Android system definition the iso code of most language, for example mark code in the world of Tibetan language is bo_CN, bo is area code, CN is country code, can be added into by the iso code by Tibetan language in the store path of national standard code of Android system appointment, at the bar of character library with having added Tibetan fonts in catalogue, can call catalogue according to this and call corresponding character library, so that the Android system arranges the option of middle increase Tibetan language at language, the user can select the language that needs the Android system to support as required in calling catalogue, as Chinese, English and Tibetan language.
Step S30, the acquiescence character library title that is the Android system by the name modifications of described Tibetan fonts after configuration so that described Tibetan fonts by default character library when system is moved, preferentially be called.
The name of the Tibetan fonts of for example downloading is called DriodSansTibetan.ttf, the acquiescence character library name of Android system is called Roboto-Regular.ttf, can be Roboto-Regular.ttf by the name modifications of the Tibetan fonts of download, when system is carried out UI demonstration and browser display, if receive character string the Tibetan fonts after this modification title can be used as the acquiescence character library, preferentially in the Tibetan fonts after revising title, search and mate font information.
The Tibetan fonts collocation method of the Android system that the present embodiment proposes, after Tibetan fonts is written into to the Android system, title by the name modifications of the Tibetan fonts that is written into for the acquiescence character library, in system, carry out the Tibetan fonts be written into to be called as the acquiescence character library of system in the process of UI or browser display, can better call the Tibetan language symbol and be shown, to solve the overlapping problem of Tibetan language.
With reference to Fig. 3, the schematic flow sheet of the second embodiment of the Tibetan fonts collocation method that Fig. 3 is Android system of the present invention.
Propose the second enforcement of the Tibetan fonts collocation method of Android system of the present invention based on the first embodiment, also comprise after step S30 in the present embodiment:
Step S40, the title of the original acquiescence character library of modification Android system;
Because the Tibetan fonts modification acquiescence character library by after downloading is called, the original Tibetan fonts of Android system can't be called normally, and because the Tibetan fonts of downloading may only be supported Tibetan language and part language, the language that may cause some Tibetan fonts not supported can't normally show, if for example this Tibetan fonts is not supported English,, when receiving the english character string, can't inquire about and mate the English font information, can cause English mess code to occur in the process shown.
Because the original acquiescence character library of Android system is comparatively ripe, included multilingual, can the title of original acquiescence character library will be revised, this amended title can be by User Defined, original acquiescence character library after revising title is called as standby character library, to guarantee multilingual normal demonstration.
Step S50, be added into the original acquiescence character library of Android system after the modification title in the system character library;
Although the original acquiescence character library of system is in loading system, but because the original acquiescence character library of Android system has been revised title, carry out character library can't this character library of normal call while calling, original acquiescence character library need to be reconfigured for to the character library of system with amended title, the guarantee system, can be according to the original acquiescence character library of title calling system Android of character library in carrying out the process that character library calls.
Step S60, set up to revise the ordinal relation of calling between the original acquiescence character library of Android system after title and the described Tibetan fonts of revising after title, so that the Android system is directly called described original acquiescence character library when failed calling described Tibetan fonts after revising title.
Although the original acquiescence character library system that is configured to that will revise after title is given tacit consent to character library normally, but do not set up the order of calling of this character library, may no longer call other character libraries when the described Tibetan fonts after revising title is failed, so must set up the ordinal relation of calling between the described Tibetan fonts after the original acquiescence character library of Android system revised after title and modification title, so that the Android system is directly called described original acquiescence character library when the described Tibetan fonts failure of calling after revising title, normal demonstration with the character that guarantees the Android system.
With reference to Fig. 4, the idiographic flow schematic diagram that Fig. 4 is step S50 in Fig. 3.
In the second embodiment of the Tibetan fonts collocation method of Android system of the present invention, step S50 comprises:
Step S51, import to the original acquiescence character library of Android system after the modification title in the system character library with amended title;
Step S52, be configured to the original acquiescence character library of Android system after the modification title in the acquiescence font file or standby font file of system.
The acquiescence font file of system or standby font file are preferably XML(Extensible Markup Language, extend markup language) file, the title of the character library that acquiescence font file or the standby font file system of preserving are supported, system is resolved acquiescence font file or the standby font file title with the character library that obtains system and supported when starting, and the title obtained is kept in the buffer memory of system, system is loaded in internal memory relevant character library for calling according to the character library title in buffer memory, original acquiescence character library after this modification title can be kept in the acquiescence font file, also can be kept in the standby font file, all can preserve the title of a plurality of character libraries in this acquiescence font file and standby font file, in system can first all be loaded on internal memory by the corresponding character library of character library title in buffer memory, at first call the Tibetan fonts of revising after title while calling character library, call again original acquiescence character library of revising after title.
With reference to Fig. 5, the schematic flow sheet of the 3rd embodiment of the Tibetan fonts collocation method that Fig. 5 is Android system of the present invention.
Propose the 3rd embodiment of the Tibetan fonts collocation method of Android system of the present invention based on the second embodiment, in the present embodiment, also comprise after step S60:
Step S70, if the character of Android system shows disappearance, carry out error correction to display layout's parameter of Android system.
Because the Tibetan fonts of adopt downloading has been replaced the original acquiescence character library of Android system, cause the information of some font in character library not mated and make some characters show disappearance.Display layout's parameter of Android system comprises the display position of each control, show height and width, unreasonable due to display layout's parameter configuration, may cause the title of some application only can show partly or the disappearance of some character, can guarantee by revising display layout's parameter the normal demonstration of character.Take really the describing as example of English character, as Apply Names Launch the latter half shows really, now can make Apply Names Launch show normally by the height parameter of regulating in display layout's parameter, and for example the latter half of Apply Names Launch shows disappearance, and the width parameter of regulating in display layout's parameter makes Apply Names Launch show normally.
After Android system Tibetan fonts imports successfully, write and need to carry in the intelligent terminal of Android system by the Android system by after this importing success by External memory equipment, for example intelligent television, PC and smart mobile phone, intelligent terminal with the Android system after this importing Tibetan fonts success of assurance lift-launch, can normally show Tibetan language.
With reference to Fig. 6 and Fig. 7, the structural representation of the first embodiment of the Tibetan fonts inking device that Fig. 6 is Android system of the present invention, the concrete structure schematic diagram that Fig. 7 is configuration module in Fig. 6.
The Tibetan fonts inking device of the Android system that this enforcement proposes comprises:
Download module 10, for downloading Tibetan fonts to destination path;
Can select needed Tibetan fonts, DriodSansTibetan.ttf for example, for the international standard character library of Android system, Himalaya character libraries etc. are supported the character library of Tibetan language, this character library can be downloaded by network, also character library can be kept in External memory equipment, be written into needed character library by External memory equipment, all be called in the present embodiment the download Tibetan fonts, this destination path is the storage area that is specifically designed to the storage character library in the Android system, as/frameworks/base/data/fonts/, store the multiple character library that the Android system is supported in this storage area, as Chinese, English, the character library such as Japanese and Korean.
Configuration module 20, be configured to the system character library for the described Tibetan fonts by after downloading;
In the present embodiment,configuration module 20 specifically comprises:
Writing unit 21, write the storage area of Android system character library path point for calling for the described Tibetan fonts by after downloading;
Can be by the compiling file that in the memory location of revising character library, system carries, and by compiling, the Tibetan fonts of download is write to the storage area of Android system character library path point for calling, storage area by the Tibetan fonts writing system character library path point of download, call Tibetan fonts when carrying out UI demonstration and browser display in system is shown for system, otherwise the Tibetan language character string can't find the font storehouse of coupling in procedure for displaying, the storage area of this system character library path point stores multiple character library, the Tibetan fonts of this download is not necessarily only supported Tibetan language, also can support the word of other language.
Dispensingunit 22, call catalogue for the character library in described Android system and add the Tibetan fonts call options.
In Android system definition the iso code of most language, for example mark code in the world of Tibetan language is bo_CN, bo is area code, CN is country code, can be added into by the iso code by Tibetan language in the store path of national standard code of Android system appointment, at the bar of character library with having added Tibetan fonts in catalogue, can call catalogue according to this and call corresponding character library, so that the Android system arranges the option of middle increase Tibetan language at language, the user can select the language that needs the Android system to support as required in calling catalogue, as Chinese, English and Tibetan language.
Modified module 30, the acquiescence character library title that is the Android system for the name modifications of described Tibetan fonts by after configuration so that described Tibetan fonts by default character library when system is moved, preferentially be called.
The name of the Tibetan fonts of for example downloading is called DriodSansTibetan.ttf, the acquiescence character library name of Android system is called Roboto-Regular.ttf, can be Roboto-Regular.ttf by the name modifications of the Tibetan fonts of download, when system is carried out UI demonstration and browser display, if receive character string the Tibetan fonts after this modification title can be used as the acquiescence character library, preferentially in the Tibetan fonts after revising title, search and mate font information.
The Tibetan fonts inking device of the Android system that the present embodiment proposes, after Tibetan fonts is written into to the Android system, title by the name modifications of the Tibetan fonts that is written into for the acquiescence character library, in system, carry out the Tibetan fonts be written into to be called as the acquiescence character library of system in the process of UI or browser display, can better call the Tibetan language symbol and be shown, to solve the overlapping problem of Tibetan language.
With reference to Fig. 8, the structural representation of the second embodiment of the Tibetan fonts inking device that Fig. 8 is Android system of the present invention.
Propose the second embodiment of the Tibetan fonts inking device of Android system of the present invention based on the first embodiment, in the present embodiment, described modifiedmodule 30 is also for revising the title of the original acquiescence character library of Android system; Describedconfiguration module 20 also is configured to the system character library for the original acquiescence character library of Android system that will revise after title; Also comprisecontrol module 40, for setting up the ordinal relation of calling between the original acquiescence character library of Android system revised after title and the described Tibetan fonts of revising after title, so that the Android system is directly called described original acquiescence character library when failed calling described Tibetan fonts after revising title.
Because the Tibetan fonts modification acquiescence character library by after downloading is called, the original Tibetan fonts of Android system can't be called normally, and because the Tibetan fonts of downloading may only be supported Tibetan language and part language, the language that may cause some Tibetan fonts not supported can't normally show, if for example this Tibetan fonts is not supported English,, when receiving the english character string, can't inquire about and mate the English font information, can cause English mess code to occur in the process shown.
The original acquiescence character library of Android system is comparatively ripe, included multilingual, can the title of original acquiescence character library will be revised, this amended title can be by User Defined, original acquiescence character library after revising title is called as standby character library, to guarantee multilingual normal demonstration.
Although the original acquiescence character library of system is in loading system, but because the original acquiescence character library of Android system has been revised title, carry out character library can't this character library of normal call while calling, original acquiescence character library need to be reconfigured for to the character library of system with amended title, the guarantee system, can be according to the original acquiescence character library of title calling system Android of character library in carrying out the process that character library calls.
Although the original acquiescence character library system that is configured to that will revise after title is given tacit consent to character library normally, but do not set up the order of calling of this character library, may no longer call other character libraries when the described Tibetan fonts after revising title is failed, so must set up the ordinal relation of calling between the described Tibetan fonts after the original acquiescence character library of Android system revised after title and modification title, so that the Android system is directly called described original acquiescence character library when the described Tibetan fonts failure of calling after revising title, normal demonstration with the character that guarantees the Android system.
In a second embodiment, saidwrite unit 21 also for the acquiescence character library that will revise the Android system after title with amended title writing system character library; Described dispensingunit 22 also is configured to acquiescence font file or the standby font file of system for the acquiescence character library that will revise the Android system after title.
The acquiescence font file of system or standby font file are preferably XML(Extensible Markup Language, extend markup language) file, the title of the character library that acquiescence font file or the standby font file system of preserving are supported, system is resolved acquiescence font file or the standby font file title with the character library that obtains system and supported when starting, and the title obtained is kept in the buffer memory of system, system is loaded in internal memory relevant character library for calling according to the character library title in buffer memory, original acquiescence character library after this modification title can be kept in the acquiescence font file, also can be kept in the standby font file, all can preserve the title of a plurality of character libraries in this acquiescence font file and standby font file, in system can first all be loaded on internal memory by the corresponding character library of character library title in buffer memory, at first call the Tibetan fonts of revising after title while calling character library, call again original acquiescence character library of revising after title.
In a second embodiment, if describedcontrol module 40 also shows disappearance for the character of Android system, display layout's parameter of Android system is carried out to error correction.
Because the Tibetan fonts of adopt downloading has been replaced the original acquiescence character library of Android system, cause the information of some font in character library not mated and make some characters show disappearance.Display layout's parameter of Android system comprises the display position of each control, show height and width, unreasonable due to display layout's parameter configuration, may cause the title of some application only can show partly or the disappearance of some character, can guarantee by revising display layout's parameter the normal demonstration of character.Take really the describing as example of English character, as Apply Names Launch the latter half shows really, now can make Apply Names Launch show normally by the height parameter of regulating in display layout's parameter, and for example the latter half of Apply Names Launch shows disappearance, and the width parameter of regulating in display layout's parameter makes Apply Names Launch show normally.
After Android system Tibetan fonts imports successfully, write and need to carry in the intelligent terminal of Android system by the Android system by after this importing success by External memory equipment, for example intelligent television, PC and smart mobile phone, intelligent terminal with the Android system after this importing Tibetan fonts success of assurance lift-launch, can normally show Tibetan language.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure transformation that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.