CN112395529B - Page loading method, device, equipment and storage medium - Google Patents

Page loading method, device, equipment and storage medium Download PDF

Info

Publication number
CN112395529B
CN112395529B CN201910749789.3A CN201910749789A CN112395529B CN 112395529 B CN112395529 B CN 112395529B CN 201910749789 A CN201910749789 A CN 201910749789A CN 112395529 B CN112395529 B CN 112395529B
Authority
CN
China
Prior art keywords
bitmap
page
text information
path
character
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.)
Active
Application number
CN201910749789.3A
Other languages
Chinese (zh)
Other versions
CN112395529A (en
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 CN201910749789.3A priority Critical patent/CN112395529B/en
Publication of CN112395529A publication Critical patent/CN112395529A/en
Application granted granted Critical
Publication of CN112395529B publication Critical patent/CN112395529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a page loading method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring text information in a page to be loaded, wherein the text information comprises a plurality of characters; generating a bitmap path of each character according to the text information; and calling a corresponding bitmap file according to the bitmap path, and embedding the bitmap file into the page to be loaded. The page loading method provided by the embodiment of the application not only can directly download the bitmap file corresponding to the text information in the page from the cloud according to the bitmap path and embed the bitmap file into the page, thereby avoiding the need of storing the whole font library by the equipment, occupying a large amount of memory resources, but also shortening the time length of page loading and enabling the operation of the equipment to be smoother.

Description

Page loading method, device, equipment and storage medium
Technical Field
The present application relates generally to the field of information technologies, and in particular, to a page loading method, device, apparatus, and storage medium.
Background
Electronic devices such as mobile phones and tablet computers have been widely popularized in modern society. People browse pages, acquire information, play games and the like through the electronic equipment, so that daily life is greatly enriched.
For pages, conventional typesetting fonts and a paragraph-style typesetting style are generally employed. However, common style fonts have not been able to meet a wide variety of requirements well. Therefore, in order to increase visual aesthetic feeling and adapt to the development trend of individualization, a specific chinese character font is sometimes adopted.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: when a user views a page, the device needs to load the whole font library to obtain text content on the page, but most Chinese characters in the whole font library cannot be used, so that a large amount of memory resources are occupied, the page loading time is too long, and equipment is easy to be blocked.
Disclosure of Invention
In view of the above-mentioned drawbacks or shortcomings in the prior art, it is desirable to provide a page loading method, device, apparatus and storage medium, which not only can directly download a bitmap file corresponding to text information in a page from a cloud, but also can embed the bitmap file into the page, thereby avoiding the need of storing the whole font library by the apparatus, occupying a large amount of memory resources, and simultaneously shortening the time of page loading, so that the operation of the apparatus is smoother.
In a first aspect, the present application provides a page loading method, including:
acquiring text information in a page to be loaded, wherein the text information comprises a plurality of characters;
generating a bitmap path of each character according to the text information;
and calling a corresponding bitmap file according to the bitmap path, and embedding the bitmap file into the page to be loaded.
In a second aspect, the present application provides a page loading apparatus, the apparatus comprising:
the system comprises an acquisition module, a loading module and a loading module, wherein the acquisition module is used for acquiring text information in a page to be loaded, and the text information comprises a plurality of characters;
the path generation module is used for generating bitmap paths of the characters according to the text information;
and the calling module is used for calling the corresponding bitmap file according to the bitmap path and embedding the bitmap file into the page to be loaded.
In a third aspect, the present application provides an apparatus comprising a processor and a memory having stored therein at least one instruction, at least one program, code set or instruction set, the instruction, program, code set or instruction set being loaded and executed by the processor to implement the steps of the page loading method as described in the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of the page loading method as described in the first aspect.
From the above technical solutions, the embodiment of the present application has the following advantages:
the embodiment of the application provides a page loading method, which comprises the steps of firstly acquiring text information when loading a page, wherein the text information comprises a plurality of characters; then generating bitmap paths of the characters according to the text information; calling a corresponding bitmap file according to the bitmap path, and embedding the bitmap file into the page; based on the method, the bitmap file corresponding to the text information in the page can be directly downloaded from the cloud according to the bitmap path, the bitmap file is embedded into the page, the situation that the equipment needs to store the whole font library and occupies a large amount of memory resources is avoided, meanwhile, the time for loading the page can be shortened, and the operation of the equipment is smoother.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a schematic diagram of an application scenario of a page loading method according to an embodiment of the present application;
FIG. 2 is a basic flow diagram of a page loading method according to an embodiment of the present application;
FIG. 3 is an example of a page loading method according to an embodiment of the present application;
FIG. 4 is an example of a bitmap loaded page effect provided by an embodiment of the present application;
FIG. 5 is an example of a server deployment bitmap file provided by an embodiment of the present application;
FIG. 6 is an example of another server deployment bitmap file provided by an embodiment of the present application;
FIG. 7 is a diagram illustrating a page loader according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another page loader according to an embodiment of the present application;
FIG. 9 is a block diagram of an apparatus according to an embodiment of the present application;
fig. 10 is a block diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the described embodiments of the application may be implemented in other sequences than those illustrated or otherwise described herein.
Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules that are expressly listed or inherent to such process, method, article, or apparatus.
The technical terms related to the embodiment of the application are as follows:
font force: a font editor supporting all common font formats may be used for multiple operating systems such as Linux, windows or OS X.
Python: a widely used interpreted computer programming language.
TTF (TrueType Font): a file representation of computer outline fonts.
Uincode: i.e., the ten thousand national code or the unicode, is an industry standard in the field of computer science, including character sets, coding schemes, etc. The method can solve the limitation of the traditional character coding scheme, and sets uniform and unique binary codes for each character in each language so as to meet the requirements of cross-language and cross-platform text conversion and processing.
CSS (Cascading Style Sheets): i.e., cascading style sheets, is a computer language that defines style structures such as fonts, colors, and positions, and is used in structured documents such as HTML documents or XML applications.
In order to facilitate understanding of the page loading method provided by the embodiment of the application, the page loading method is described below in connection with an actual application scenario.
Fig. 1 is a schematic diagram of an application scenario of a page loading method according to an embodiment of the present application. As shown in fig. 1, the page loading method is applied to a page loading system. The page loading system comprises a device 101 and a server 102, wherein the device 101 is in signal connection with the server 102. The signal connection mode includes wired interface connection and wireless internet connection, and the wireless internet connection can include Wi-Fi, wireless broadband, global microwave interconnection access and bluetooth, radio frequency identification, ultra wideband and other technologies. It should be noted that, the server in the embodiment of the present application may be replaced by a cloud disk, where the cloud disk has a function of storing data.
The device 101 may be a desktop terminal or a mobile terminal, and the mobile terminal may include, but is not limited to, a personal digital assistant (Personal Digital Assistant, PDA), a Tablet Computer (Tablet Computer), a wireless handheld device, a mobile phone, and the like, which are not limited in the embodiment of the present application. The server 102 stores bitmap files corresponding to characters in advance, and can provide font support services, and specifically, the server can be an independent server or a server cluster formed by a plurality of servers.
It should be noted that, the page loading method provided by the embodiment of the application can be applied to a scene where a part of text needs to be displayed by using a predetermined font type, such as text editing, animation page display, two-dimensional code page display, picture or poster design, and the like. In the embodiment of the application, when the predetermined font type is needed to display the partial text, the predetermined font type of the partial text can be displayed only by calling the bitmap file of the predetermined font type from the server without loading the whole font library, so that the storage space and loading waiting time of the equipment are greatly saved, and the efficiency is higher. Among them, a bitmap file (bitmap) is also called a dot matrix image or a drawing image, that is, is composed of individual dots called pixels, which can be variously arranged and colored to constitute a pattern.
For easy understanding and explanation, the method, apparatus and device for loading pages provided in the embodiments of the present application are described in detail below with reference to fig. 2 to 9.
Fig. 2 is a basic flow chart of a page loading method according to an embodiment of the present application. The method is applied to the equipment end and comprises the following steps:
s201, acquiring text information in a page to be loaded, wherein the text information comprises a plurality of characters.
It should be noted that the text information may include a predetermined font type in addition to a plurality of characters. In particular, the device may install a font application that is capable of providing support for multiple font types for the device, while the server is a background server for the font application. When the partial text is required to be displayed by using the predetermined font type, only the bitmap file of the predetermined font type is required to be called from the server, and the whole font library is not required to be loaded, so that the storage space of the equipment is greatly saved.
Taking a text editing scene as an example, the page to be loaded at this time is a text editing page. In the process of editing the text by the user, since the font setting options are provided in the setting menu of the text editing page, when the user wants to set the fonts of the edited partial text to the predetermined font types, a plurality of characters to be set can be selected from the edited text, and then the font types are determined from a plurality of font type options included in the drop-down list of the font setting options, so that the setting of the font types for the plurality of characters is triggered.
Taking the animation page display as an example, the animation page is generated in advance by using an animation editing tool such as Flash software, and only the animation page is needed to be loaded and displayed in the embodiment of the application. When the animation page contains the bitmap file with the predetermined font type, which is needed to be displayed, the bitmap file with the predetermined font type is directly downloaded from the server, and the whole font library is not needed to be loaded, so that the waiting time for loading the animation page is shortened. Wherein the animation page may include, but is not limited to, a game animation page, a video animation page, and the like.
Taking two-dimensional code page display as an example, as shown in fig. 3, a user can view multimedia content by scanning a two-dimensional code on a page. In the process, the multimedia content also needs to display part of the text by using the predetermined font type, so that the bitmap file of the predetermined font type is directly called from the server without loading the whole font library, the storage space of the device and the time consumption of page loading are greatly saved, and the page loading efficiency is improved.
S202, generating bitmap paths of the characters according to the text information.
The bitmap path includes a bitmap library path and a bitmap file name. The bitmap library path refers to the address of the bitmap file stored on the server, such as https:// game.gtimg.cn/images/tgideas/act/a20180823 nts/fontSXSBZBJ/; the bitmap file name is in the format of "uni character encoding file suffix", for example, the bitmap file name of the character "giant" is "uni5de8.Png". Thus, the bitmap path of the character "giant" is https:// game.gtimg.cn/images/tgideas/act/a20180823 nts/fontSXSBZBJ/uni5de8.Png. It should be noted that, in general, a file name includes a main file name and an extension. For example, "uni5DE8" in "uni5DE8.Png" is the master file name, which the user can name autonomously; "png" is an extension, typically the name representing the file's properties by default by the software that generated the file. Thus, the file name herein refers to the master file name. The bitmap path of each character comprises the bitmap library path and the bitmap file name, so that the bitmap file corresponding to each character can be accurately inquired on the server, the situation that the whole font library is required to be stored by equipment is avoided, a large amount of memory resources are occupied, and meanwhile, the page loading time can be shortened.
Optionally, in the embodiment of the present application, the specific process of determining the bitmap library path according to the font type is: and determining the address of the folder corresponding to the font type according to a preset resource address configuration table. The address is the position information of the folder in the server, bitmap files with different font types are respectively stored in the corresponding folders, and the bitmap library path is the address of the folder corresponding to the font type.
It should be noted that, the font type may include one font type, or may include multiple font types, and a mapping relationship between the font type and a folder storing the bitmap file of the font type is established in the preset resource address configuration table, for example, the bitmap file of the font type 1 is stored in the folder 1, and then the resource address configuration table is expressed as "font type 1: https:// game.gtimg.cn/images/tgideas/act/a20180823 nts/fontSXSBZBJ/file1"; the bitmap file of font type 2 is stored in folder 2, and then is embodied as "font type 2" in the resource address configuration table: https:// game.gtimg.cn/images/tgideas/act/a20180823fonts/fontSXSBZBJ/file 2). According to the embodiment of the application, the management and maintenance of the bitmap files with the font types are more convenient by setting the different font types in the corresponding folders.
Optionally, in the embodiment of the present application, the bitmap library path is determined according to the font type, and then the corresponding bitmap file names are generated according to the sequence of each character in the text information, so that the bitmap path of each character is generated according to the bitmap library path and the bitmap file names in the sequence.
For example, the font types include font type 1 and font type 2, when the bitmap file of font type 1 is stored in folder 1 and the bitmap file of font type 2 is stored in folder 2, then the bitmap library path of font type 1 is https:// game.gtimg.cn/images/tgideas/act/a20180823 nts/fontSXSBZBJ/file1, and the bitmap library path of font type 2 is https:// game.gtimg.cn/images/tgideas/act/a20180823 nts/fontSXSBZBJ/file2.
Optionally, in the embodiment of the present application, the specific process of generating the corresponding bitmap file name according to the sequence of each character in the text information is: firstly, dividing each character in text information into single characters one by one; secondly, carrying out character coding on the single character to obtain a character coding result; further, the character encoding result is taken as a constituent part of the bitmap file name. Wherein the character encoding is an encoding of characters in a computer language that can be used to recognize the characters. As in the previous embodiment, the bitmap file name of the character "giant" is "uni5DE8.Png", where uni represents the Uincode encoding result in Unicode encoding format, and 5DE8 is "giant". It is to be understood that the character encoding result may be used as a file name, or may be named in combination with information such as the encoding type, and the content other than the character encoding result is not limited.
It should be noted that, the character encoding in the embodiment of the present application may include, but is not limited to, unicode encoding. The Uincode code, i.e. the ten thousand national code or the unified code, is an industry standard in the field of computer science, and comprises a character set, a coding scheme and the like. The method can solve the limitation of the traditional character coding scheme, and sets uniform and unique binary codes for each character in each language so as to meet the requirements of cross-language and cross-platform text conversion and processing. For example, unicode of the character "giant" is encoded as "5DE8", and Unicode of the character "fu" is encoded as "5E9C".
For example, in the embodiment of the present application, the specific process of generating the corresponding bitmap file name according to the sequence of the characters in the text information may be implemented by running the following codes:
let str= 'grand fu'; chinese character content requiring conversion into predetermined font type
let arr=str.split ("); the contents of Chinese characters are split one by one to become an array, and each element of the array is a single character, such as [ "huge", "Fu" ]
S203, calling a corresponding bitmap file according to the bitmap path, and embedding the bitmap file into the page to be loaded.
It should be noted that, in the embodiment of the present application, the corresponding bitmap files are called one by one according to the sequence of each character in the text information.
For example, as shown in FIG. 4, the character "macro" is located at the first position and the character "house" is located at the second position in the text information, so that the device calls the bitmap file of the character "macro" corresponding to the font type 1 according to the bitmap path https:// game.gtimg.cn/ima/images/tgideas/act/a20180823fonts/fontSXSBZBJ/file1/uni5de8.Png, and then calls the bitmap file of the character "house" corresponding to the font type 1 according to the bitmap path https:// game.gtimg.cn/images/tgideas/acta 20180823 fontsBBBBBJ/file 1/uni5e9℃ Png, and then embeds the bitmap file into the bitmap file to be loaded through the cascading style sheet (Cascading Style Sheets, CSS). It should be understood that, the calling sequence herein refers to the sequence in which the page loader sends the calling information, and does not limit the sequence of the returned bitmap information. The return can return the bitmap according to the calling sequence, or return the bitmap according to the query or return sequence.
It should be noted that a cascading style sheet is a computer language defining style structures such as fonts, colors, and positions, and is used in a structured document such as an HTML document or an XML application. The cascading style sheet may be stored directly in the HTML web page or in a separate style sheet file, either way, the style sheet contains rules for applying the style to elements of a specified type, where the style rules consist of one or more style attributes and their values, applicable to elements in the web page, such as formatting instructions for text paragraphs or links. The internal style sheets are placed directly in the web page, while the external style sheets are stored in a separate document with file extension ". Css", and the web page links the external style sheets via a special tag. In short, the cascading style sheet can accurately control the typesetting of element positions in the webpage at a pixel level, supports almost all font size styles, and has the capability of editing webpage objects and model styles.
Of course, in other embodiments of the present application, the bitmap file may be called asynchronously and not sequentially, and the bitmap file may be embedded into the page to be loaded according to the sequence of the characters in the text information.
In addition, in other embodiments of the present application, please refer to fig. 5, which is an example of a server deployment bitmap file provided in an embodiment of the present application, including the following steps:
s501, installing a font editor.
For example, the Font editor is a Font force. Note that, the Font force is a Font editor supporting all the universal Font formats, and may be used for multiple operating systems, such as Linux, windows or OS X.
S502, extracting fonts.
For example, the specific process of extracting fonts in the embodiment of the present application may be implemented by running the following Python codes:
s503, generating a bitmap file corresponding to the font.
For example, in the embodiment of the present application, the bitmap file of the corresponding font is generated by running the following Python code, namely:
ffpython myscript.py
s504, deploying a bitmap file.
It should be noted that, in the embodiment of the present application, the bitmap file is stored according to a preset resource address configuration table. For example, the bitmap file of the font type 1 is stored in the folder 1, and the corresponding bitmap library path is https:// game.gtimg.cn/images/tgideas/act/a20180823 nts/fontSXSBZBJ/file 1'; the bitmap file of the font type 2 is stored in the folder 2, and the corresponding bitmap library path is https:// game. In the folder, the respective bitmap files are stored in the format "character encoding file suffix" of the bitmap file names, as shown in fig. 6, for example, the bitmap file name of the character "giant" in the folder 1 is "uni5de8.Png", and the bitmap file name of the character "fu" is "uni5e9c.png". At this time, the device side can call bitmap resources of the server side through a bitmap path, wherein the bitmap path of the calling character 'macro' is https:// game.gtimg.cn/images/tgideas/act/a20180823fonts/fontSXSBZBJ/file1/uni5de8.Png, and the bitmap path of the calling character 'macro' is https:// game.gtimg.cn/images/tgideas/act/a20180823fonts/fontSXSBZBJ/file1/uni5e9c. Png. According to the embodiment of the application, the management and maintenance of the bitmap files with the font types are more convenient by setting the different font types in the corresponding folders.
The embodiment of the application provides a page loading method, which comprises the steps of firstly acquiring text information when loading a page, wherein the text information comprises a plurality of characters; then generating bitmap paths of the characters according to the text information; calling a corresponding bitmap file according to the bitmap path, and embedding the bitmap file into the page; based on the method, the bitmap file corresponding to the text information in the page can be directly downloaded from the cloud according to the bitmap path, the bitmap file is embedded into the page, the situation that the equipment needs to store the whole font library and occupies a large amount of memory resources is avoided, meanwhile, the time for loading the page can be shortened, and the operation of the equipment is smoother.
Based on the foregoing embodiments, please refer to fig. 7, which illustrates a page loading device according to an embodiment of the present application. As shown in fig. 7, the page loading device 7 includes:
the acquiring module 71 is configured to acquire text information in a page to be loaded, where the text information includes a plurality of characters;
a path generation module 72, configured to generate a bitmap path of each character according to the text information;
and the calling module 73 is used for calling the corresponding bitmap file according to the bitmap path and embedding the bitmap file into the page to be loaded.
In other embodiments of the present application, as shown in fig. 8, the path generation module 72 includes:
a bitmap library path determining unit 721 for determining a bitmap library path according to the font type; the text information also comprises a predetermined font type, and the bitmap path comprises a bitmap file name and a bitmap library path;
a bitmap path generating unit 722, configured to generate a corresponding bitmap file name according to the sequence of each character in the text information;
and generating bitmap paths of the characters in the sequence according to the bitmap library paths and the bitmap file names.
In other embodiments of the present application, the bitmap path generating unit 722 is further configured to:
dividing each character in the text information into single characters one by one;
performing character encoding on the single character to obtain a character encoding result;
the character encoding result is used as a constituent part of the bitmap file name.
In other embodiments of the present application, the bitmap library path determination unit 721 is further configured to:
determining the address of a folder corresponding to the font type according to a preset resource address configuration table; the address is the position information of the folder in the server, bitmap files with different font types are respectively stored in the corresponding folders, and the bitmap library path is the address of the folder corresponding to the font type.
In other embodiments of the present application, the calling module 73 is further configured to call the corresponding bitmap files one by one according to the sequence of each character in the text information.
The embodiment of the application provides a page loading device, wherein an acquisition module firstly acquires text information when loading a page, and the text information comprises a plurality of characters; then, the path generation module generates bitmap paths of the characters according to the text information; the calling module calls the corresponding bitmap file according to the bitmap path and embeds the bitmap file into the page; based on the method, the bitmap file corresponding to the text information in the page can be directly downloaded from the cloud according to the bitmap path, the bitmap file is embedded into the page, the situation that the equipment needs to store the whole font library and occupies a large amount of memory resources is avoided, meanwhile, the time for loading the page can be shortened, and the operation of the equipment is smoother.
Based on the foregoing embodiments, please refer to fig. 9, which is a block diagram of an apparatus according to an embodiment of the present application. The device 101 includes a processor 1011 and a memory 1012, wherein the processor 1011 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1011 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA).
The processor 1011 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state.
In addition, the processor 1011 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering the content to be displayed by the display screen. In some embodiments, the processor 1011 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 1012 may include one or more computer-readable storage media, which may be non-transitory. Memory 1012 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1012 is used to store at least one instruction for execution by processor 1011 to implement the text display method provided in the method embodiments of the present application.
In some embodiments, device 101 may also include a peripheral interface 1013 and at least one peripheral. The processor 1011, memory 1012, and peripheral interface 1013 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 1013 via buses, signal lines, or a circuit board.
In particular, peripheral devices include, but are not limited to, radio frequency circuit 1014, touch display 1015, and power source 1016. Peripheral interface 1013 may be used to connect at least one Input/Output (I/O) related peripheral to processor 1011 and memory 1012. In some embodiments, processor 1011, memory 1012, and peripheral interface 1013 are integrated on the same chip or circuit board; in some other embodiments, either or both of processor 1011, memory 1012, and peripheral interface 1013 may be implemented on separate chips or circuit boards, which are not limiting embodiments of the application.
The Radio Frequency circuit 1014 is configured to receive and transmit Radio Frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 1014 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1014 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1014 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. The radio frequency circuit 1014 may communicate with other devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to, metropolitan area networks, generation-by-generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or wireless fidelity (Wireless Fidelity, wiFi) networks. In some embodiments, the radio frequency circuit 1014 may also include circuitry related to near field wireless communication (Near Field Communication, NFC).
The display 1015 is used to display a User Interface (UI). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1015 is a touch display, the display 1015 also has the ability to capture touch signals at or above the surface of the display 1015. The touch signal may be input to the processor 1011 as a control signal for processing. At this time, the display 1015 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1015 may be one, disposed on the front panel of the device 101; in other embodiments, the display 1015 may be at least two, respectively disposed on different surfaces of the device 101 or in a folded design; in still other embodiments, the display 1015 may be a flexible display disposed on a curved surface or a folded surface of the device 101. Even more, the display 1015 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 1015 may be made of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or other materials.
Those skilled in the art will appreciate that the structure shown in fig. 9 is not limiting of the device 101 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In this embodiment, the apparatus 101 also includes one or more programs stored in the memory 1012 and configured to be executed by the one or more processors 1011, the one or more programs including instructions for performing the page loading method performed by the above apparatus provided by the embodiments of the present application.
Based on the foregoing embodiments, the embodiments of the present application provide a structural block diagram of a server. Referring to fig. 10, the server 102 may vary considerably in configuration or performance, and may include one or more central processing units (Central Processing Units, CPU) 1021 (e.g., one or more processors) and memory 1022, one or more storage media 1025 (e.g., one or more mass storage devices) storing applications 1023 or data 1024. Wherein memory 1022 and storage medium 1025 can be transitory or persistent storage. The program stored on storage medium 1025 may include one or more modules (not shown), each of which may include operations on a series of instructions in a computer system. Further, central processor 1021 may be configured to communicate with storage medium 1025, and to perform a series of instruction operations in storage medium 1025 on server 102.
The server 102 can also include one or more power supplies 1026, one or more wired or wireless network interfaces 1027, one or more input/output interfaces 1028, and/or one or more operating systems 1029, such as Windows Server TM, mac OS XTM, unix, linux, freeBSDTM, and the like.
As another aspect, embodiments of the present application provide a computer readable storage medium storing program code for performing any one of the foregoing respective embodiment page loading methods.
As a further aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any one of the implementations of the page loading methods of the various embodiments described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, apparatuses and modules described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms. The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each module may exist alone physically, or two or more units may be integrated in one module. The integrated units may be implemented in hardware or in software functional units. And the integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium.
Based on such understanding, the technical solution of the present application may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the information reporting method of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of page loading, the method comprising:
acquiring text information in a page to be loaded, wherein the text information comprises a plurality of characters;
determining a bitmap library path according to the font type; wherein the text information further comprises the predetermined font type, and the bitmap path comprises a bitmap file name and the bitmap library path;
generating the corresponding bitmap file names according to the sequence of the characters in the text information;
generating bitmap paths of the characters in the sequence according to the bitmap library paths and the bitmap file names;
and calling a corresponding bitmap file according to the bitmap path, and embedding the bitmap file into the page to be loaded.
2. The page loading method as recited in claim 1, wherein the generating the corresponding bitmap file name according to the sequence of each character in the text information comprises the steps of:
dividing each character in the text information into single characters one by one;
performing character encoding on the single character to obtain a character encoding result;
and taking the character encoding result as a component part of the bitmap file name.
3. The page loading method as recited in claim 1, wherein the determining a bitmap library path according to font type comprises the steps of:
determining the address of a folder corresponding to the font type according to a preset resource address configuration table; the address is the position information of the folder in the server, bitmap files with different font types are respectively stored in the corresponding folders, and the bitmap library path is the address of the folder corresponding to the font type.
4. The page loading method as recited in claim 1, wherein the calling a corresponding bitmap file according to the bitmap path comprises:
and calling the corresponding bitmap files one by one according to the sequence of the characters in the text information.
5. A page loading apparatus, the apparatus comprising:
the system comprises an acquisition module, a loading module and a loading module, wherein the acquisition module is used for acquiring text information in a page to be loaded, and the text information comprises a plurality of characters;
the bitmap library path determining unit is used for determining a bitmap library path according to the font type; wherein the text information further comprises the predetermined font type, and the bitmap path comprises a bitmap file name and the bitmap library path;
a bitmap path generating unit, configured to generate a corresponding bitmap file name according to the sequence of each character in the text information; generating bitmap paths of the characters in the sequence according to the bitmap library paths and the bitmap file names;
and the calling module is used for calling the corresponding bitmap file according to the bitmap path and embedding the bitmap file into the page to be loaded.
6. The page loading device as recited in claim 5, wherein the file name generating unit is further configured to:
dividing each character in the text information into single characters one by one;
performing character encoding on the single character to obtain a character encoding result;
and taking the character encoding result as a component part of the bitmap file name.
7. The page loading device as recited in claim 5, wherein the bitmap library path determination unit is further configured to:
determining the address of a folder corresponding to the font type according to a preset resource address configuration table; the address is the position information of the folder in the server, bitmap files with different font types are respectively stored in the corresponding folders, and the bitmap library path is the address of the folder corresponding to the font type.
8. The page loading device of claim 5, wherein the calling module is further configured to:
and calling the corresponding bitmap files one by one according to the sequence of the characters in the text information.
9. An apparatus comprising a processor and a memory having stored therein at least one instruction, at least one program, code set, or instruction set that is loaded and executed by the processor to implement the steps of the page loading method of any of claims 1 to 4.
10. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of the page loading method of any of claims 1 to 4.
CN201910749789.3A 2019-08-14 2019-08-14 Page loading method, device, equipment and storage medium Active CN112395529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910749789.3A CN112395529B (en) 2019-08-14 2019-08-14 Page loading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910749789.3A CN112395529B (en) 2019-08-14 2019-08-14 Page loading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112395529A CN112395529A (en) 2021-02-23
CN112395529B true CN112395529B (en) 2023-08-11

Family

ID=74602740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910749789.3A Active CN112395529B (en) 2019-08-14 2019-08-14 Page loading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112395529B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113183759A (en) * 2021-07-01 2021-07-30 智道网联科技(北京)有限公司 Method and device for displaying characters of instrument panel
CN116847385B (en) * 2023-09-01 2023-12-15 四川中电启明星信息技术有限公司 Network self-adaptive mobile application data loading method

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811751A (en) * 2005-01-28 2006-08-02 微软公司 Font cache and meta-fonts
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character
CN101470719A (en) * 2007-12-24 2009-07-01 深圳富泰宏精密工业有限公司 File route and name storage method
CN101639846A (en) * 2009-08-20 2010-02-03 无敌科技(西安)有限公司 Method for user-defined character font
WO2010063017A1 (en) * 2008-11-26 2010-06-03 Lila Aps (Ahead.) Dynamic image tiling
CN101833542A (en) * 2010-04-21 2010-09-15 中兴通讯股份有限公司 Method and device for rendering fonts of user interface
CN103902513A (en) * 2014-03-21 2014-07-02 北京百度网讯科技有限公司 Method and device for displaying fonts in terminal device
CN104899227A (en) * 2014-03-07 2015-09-09 腾讯科技(深圳)有限公司 Webpage character rendering method and device
CN104915186A (en) * 2014-03-12 2015-09-16 腾讯科技(深圳)有限公司 Method and device for making page
CN108874829A (en) * 2017-05-12 2018-11-23 腾讯科技(深圳)有限公司 Processing method, device, smart machine and the computer storage medium of webpage
CN109657683A (en) * 2018-12-19 2019-04-19 北京像素软件科技股份有限公司 Text region modeling method and device, character recognition method and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1811751A (en) * 2005-01-28 2006-08-02 微软公司 Font cache and meta-fonts
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character
CN101470719A (en) * 2007-12-24 2009-07-01 深圳富泰宏精密工业有限公司 File route and name storage method
WO2010063017A1 (en) * 2008-11-26 2010-06-03 Lila Aps (Ahead.) Dynamic image tiling
CN101639846A (en) * 2009-08-20 2010-02-03 无敌科技(西安)有限公司 Method for user-defined character font
CN101833542A (en) * 2010-04-21 2010-09-15 中兴通讯股份有限公司 Method and device for rendering fonts of user interface
CN104899227A (en) * 2014-03-07 2015-09-09 腾讯科技(深圳)有限公司 Webpage character rendering method and device
CN104915186A (en) * 2014-03-12 2015-09-16 腾讯科技(深圳)有限公司 Method and device for making page
CN103902513A (en) * 2014-03-21 2014-07-02 北京百度网讯科技有限公司 Method and device for displaying fonts in terminal device
CN108874829A (en) * 2017-05-12 2018-11-23 腾讯科技(深圳)有限公司 Processing method, device, smart machine and the computer storage medium of webpage
CN109657683A (en) * 2018-12-19 2019-04-19 北京像素软件科技股份有限公司 Text region modeling method and device, character recognition method and electronic equipment

Also Published As

Publication number Publication date
CN112395529A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
US8910036B1 (en) Web based copy protection
CN106056530B (en) Method and device for displaying picture content in application
CN107895394B (en) Animation special effect implementation method and device, terminal equipment and storage medium
CN109254818B (en) Pixel-level positioning method and device for different resolutions of browser
CN107301046B (en) Icon processing method and device, computer equipment and storage medium
CN106127837A (en) The multi-language support system of network caricature
CN112395529B (en) Page loading method, device, equipment and storage medium
CN108897541B (en) Visual restoration method and device of application program, storage medium and terminal
US8687004B2 (en) Font file with graphic images
CN111159597A (en) Skeleton screen generation method and system, computer equipment and storage medium
CN108961361B (en) Method and system for generating special effect text image and computer equipment
US20150169508A1 (en) Obfuscating page-description language output to thwart conversion to an editable format
CN113760283A (en) Text rendering method and device
CN114298895B (en) Image realism style migration method, device, equipment and storage medium
CN111352665A (en) Page loading method, device, equipment and storage medium thereof
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN113672293B (en) Media data processing method based on cloud mobile phone and terminal equipment
US20100017708A1 (en) Information output apparatus, information output method, and recording medium
CN110881001B (en) Electronic red packet detection method, system and terminal equipment
CN111309300A (en) Code generation method, device, computer system and readable storage medium
US9965446B1 (en) Formatting a content item having a scalable object
CN113110829A (en) Multi-UI component library data processing method and device
CN111158675A (en) Front-end page template multiplexing method
US9619915B2 (en) Method and apparatus for converting an animated sequence of images into a document page
US20110296292A1 (en) Efficient application-neutral vector documents

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038855

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant