A cloud-based font delivery/streaming service enables applications to download fonts on demand, thereby reducing application package size and disk footprint. Typically, applications provide a font selection menu comprising a list of fonts available to the application from which a user can select a desired font. To provide hints to the user as to what the fonts look like prior to committing to a font, it is desirable for the application to render previews of the font names (or other representations of the fonts) in their own typefaces. When a font file of a given font is stored on the cloud (i.e., not locally), rendering a high fidelity preview of the font in its own typography can be difficult.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description section. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended as an aid in determining the scope of the claimed subject matter. Aspects are directed to an automated system, method, and device for generating an independent preview font file for presenting font typeface preview elements representative of cloud-based fonts in a font selection menu.
In some examples, a font system includes one or more processors for executing programmed instructions, memory coupled to the one or more processors for storing program instruction steps for execution by the computer processor, a font typeface preview engine for: generating a preview font file, the preview font file comprising a plurality of font typeface preview elements, wherein each font typeface preview element is associated with a font; and generating a mapping file comprising location data mapping each font to a storage location of its associated font typeface preview element in the preview font file.
In some examples, a method for generating an independent preview font file for presenting font typeface preview elements representative of cloud-based fonts in a font selection menu includes: generating a preview font file, the preview font file comprising a plurality of font typeface preview elements, wherein each font typeface preview element is associated with a font; and generating a mapping file comprising location data mapping each font to a storage location of its associated font typeface preview element in the preview font file.
In some examples, one or more computer storage media storing computer-usable instructions that, when used by one or more computing devices, cause the one or more computing devices to perform a method for: generating an independent preview font file for presenting font typeface preview elements representative of cloud-based fonts in a font selection menu, the method comprising: generating a preview font file, the preview font file comprising a plurality of font typeface preview elements, wherein each font typeface preview element is associated with a font; and generating a mapping file comprising location data mapping each font to a storage location of its associated font typeface preview element in the preview font file.
In some examples, the font system provides the preview font file and the mapping file to a client application executing on a client computing device for rendering the plurality of font typeface preview elements as representations of the fonts in a font selection menu, wherein the client computing device does not include the fonts. In some examples, the font system receives an indication of a selection of font, and transmits a font file including a plurality of glyphs in the typeface of the selected font to the client application executing on the client computing device.
By generating a plurality of font typeface preview elements, wherein each element is representative of an available cloud-based font and comprised of a subset of glyphs of the font, and packaging and providing the plurality of font typeface preview elements in a preview font file, the size of the preview font file can be kept very low. Thus, a computing device receiving the preview font file is enabled to render the plurality of font typeface preview elements in a font selection menu with high fidelity, while advantageously saving local memory allocation for fonts, minimizing the disk footprint, and reducing processor load. For example, the computing device is enabled to render the plurality of font typeface preview elements rather than downloading all of the available fonts to the client computing device or loading and rendering each glyph of each font name (or other representations of the fonts), which requires a lot of memory allocation and processing.
Rendering the plurality of font typeface preview elements in a font selection menu provides an intuitive user interface for users. For example, displaying representations of fonts that are not locally stored on a computing device in the fonts' own typefaces provides users with a high fidelity visual clue of the fonts and typefaces available, thus improving usability of the font selection menu.
Examples are implemented as a computer process, a computing system, or as an article of manufacture such as a computer program product or computer readable media. According to an aspect, the computer program product is a computer storage media readable by a computer system and encoding a computer program of instructions for executing a computer process.
The details of one or more aspects are set forth in the accompanying drawings and description below. Other features and advantages will be apparent from a reading of the following detailed description and a review of the associated drawings. It is to be understood that the following detailed description is explanatory only and is not restrictive of the claims.
The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate various aspects. In the drawings:
The following detailed description refers to the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the following description refers to the same or similar elements. While examples may be described, modifications, adaptations, and other implementations are possible. For example, substitutions, additions, or modifications may be made to the elements illustrated in the drawings, and the methods described herein may be modified by substituting, reordering, or adding stages to the disclosed methods. Accordingly, the following detailed description is not limiting, but instead, the proper scope is defined by the appended claims. Examples may take the form of a hardware implementation, or an entirely software implementation, or an implementation combining software and hardware aspects. The following detailed description is, therefore, not to be taken in a limiting sense.
Aspects of the present disclosure are directed to a method, system, and computer storage media for generating an independent preview font file for presenting font typeface preview elements representative of cloud-based fonts in a font selection menu. In some examples, a font typeface preview engine includes: a font loader for loading one or more font files from a font database; a glyph and property extractor for extracting a subset of glyphs and character properties from each font file; a preview font generator for generating a single-glyph font typeface preview element for each font from each subset of glyphs according to the character properties; a preview font package generator for generating a preview font file and storing the one or more generated font typeface preview elements in the preview font file; and a mapping file generator for mapping each available font to a location of its associated font typeface preview element in the preview font file. In some examples, the font typeface preview engine further includes an output engine for transmitting the preview font file to a client application executing on a client computing device.
With reference now to
In one example, the font database 106 is a single device at a single location, for example, on a single server. In another example, the font database 106 includes a plurality of storage devices that are distributed among different locations, for example, on a plurality of distributed servers. In some examples, the font typeface preview engine 110, the font manager 104, and the font database 106 are located on a single computing device or server. In other examples, the font typeface preview engine 110, the font manager 104, and the font database 106 are distributed across a network on multiple computing devices, servers, or data stores.
According to an aspect, for each font file 108, the font typeface preview engine 110 is operable to load the font file 108 from the font database 106, extract a subset of glyphs and character properties from the font file 108, and generate a single-glyph font typeface preview element 124a-n (collectively, 124) representative of the font. In some examples, the subset of glyphs includes the glyphs in the font's name and in the typeface of the font. For example, the preview font for the font “Arial” includes the glyphs “A,” “r,” “i,” “a,” and “I” combined into a single glyph in the Arial typeface. The font typeface preview engine 110 is further operable to package each generated font typeface preview element 124 into a preview font file 112, and generate a mapping table file 116 for mapping the name of each font to the storage location of the font typeface preview element 124 in the preview font file 112.
According to an aspect, the font system 102 is operable to provide the preview font file 112 comprising the generated font typeface preview elements 124 and the mapping file 116 to one or more applications 118 executing on a client computing device 114. In some examples, an application 118 executing on the client computing device 114 downloads the preview font file 112 from the font system 102. The font system 102 is operable to transport the preview font file 112 and the mapping file 116 to the client computing device 114 over a distributed computing network 120, such as the Internet or an intranet. In other examples, the font system 102 provides the preview font file 112 for packaging with a client application 118 at build time of the client application 118.
Although illustrated as a tablet computing device in
In some examples, the client application 118 is an application operable to reference the mapping file 116 for locating font typeface preview elements 124 representative of fonts for displaying in a font selection menu 126, and render the font typeface preview elements 124 in a font selection menu 126 such that the fonts represented by the font typeface preview elements 124 are displayed in their own typefaces. The data repository 122 is illustrative of a general purpose data storage unit or system for storing the preview font file 112 and the mapping file 116.
Upon receiving an indication of a selection of a font typeface preview element 124 from the font selection menu 126, the client application 118 is further operable to access the font file 108 associated with the font represented by the selected font typeface preview element 124 via a font manager 104. For example, the client application 118 makes a request to the font manager 104 for the selected font. The font manager 104 receives the request, retrieves the font file 108 residing in the font database 106, and transmits the font file 108 to the client application 118 via the distributed computing network 120.
With reference now to
According to examples, the font loader 208 is illustrative of a software module, system, or device that is in communicatively attached to the font database 106 and operable to access and retrieve a plurality of font files 108 from the font database 106. As described above, the font database 106 is illustrative of a general purpose data storage unit or system for storing a plurality of font files 108, wherein each font file 108 comprises a collection of glyphs of a font and character properties associated with the font.
According to examples, the glyph and property extractor 210 is illustrative of a software module, system, or device operable to determine a subset of glyphs to extract from each font file 108, and to extract the subsets of glyphs. In some examples, the glyph and property extractor 210 extracts the glyphs that comprise the name of the font. For example and with reference to
Referring back to
According to one aspect, the preview font generator 212 is in communication with a shaping engine 220. According to another aspect, the preview font generator 212 includes a shaping engine 220. The shaping engine 220 is operable to consult the character properties extracted by the glyph and property extractor 210, and space, shape, position, and contextually reorder the glyphs 304 in the subset of glyphs 302 in accordance with the character properties. For example, the character properties include logic associated with spacing, shaping, positioning, special behaviors, or contextual reordering. In some examples, the character properties further include logic associated with language-specific properties. The preview font generator 212, in conjunction with the shaping engine 220, generates a plurality of single-glyph font typeface preview elements 124 that are accurate representations of the fonts in the font files 108 stored in the font database 106.
With reference again to
According to examples, the mapping file generator 216 is illustrative of a software module, system, or device operable to generate a mapping file 116 that maps each font to the location of its associated font typeface preview element 124 in the preview font file 112. For example, the mapping file 116 is a mapping table.
According to examples, the output engine 218 is illustrative of a software module, system, or device operable to provide the preview font file 112 comprising the generated font typeface preview elements 124 and the mapping file 116 to one or more client applications 118. In some examples, the output engine 218 is operable to transmit the preview font file 112 to a client application 118 executing on a client computing device 114 over a distributed computing network 120, such as the Internet or an intranet. Accordingly, the client computing device 114 is operable to receive the preview font file 112 and the mapping file 116 (e.g., download the preview font file 112 and mapping file 116), and store the preview font file 112 and the mapping file 116 in a local data repository 122 such that the font typeface preview elements 124 and the mapping file 116 are available for use by the one or more applications 118 executing on the client computing device 114.
In other examples, the output engine 218 is operable to provide the preview font file 112 and the mapping file 116 for packaging the preview font file 112 and the mapping file 116 with a client application 118 at build time.
For example and with reference to
With reference now to
After the font typeface preview engine 110 generates a plurality of font typeface preview elements 124, packages the plurality of font typeface preview elements 124 in a preview font file 112, and generates a mapping file 116 including location data 402 that maps each of the font to the locations of the font typeface preview elements 124 in the preview font file 112, the font typeface preview engine 110 outputs the preview font file 112 and the mapping file 116 to a client application 118 executing on a client computing device 114. The client computing device 114 then stores the preview font file 112 and the mapping file 116 in a data repository 122 associated with the client computing device 114.
When an indication of a selection to view a listing of fonts available to a client application 118 is received, the client application 118 reads the location data 402 in the mapping file 116 for the locations of the font typeface preview elements 124 for the fonts available to the client application 118. The client application 118 then retrieves the font typeface preview elements 124 from the preview font file 112 for displaying the font typeface preview elements 124 in a font selection menu 126.
When an indication of a selection of a font typeface preview element 124 in the font selection menu 126 is received, the client application 118 sends a request 404 to the font manager 104 for the font file 108 associated with the font represented by the selected font typeface preview element 124. For example, if the user selects font typeface preview element 124c, which is representative of the Algerian font, the client application 118 sends a request 404 to the font manager 104 for the font file 108c for the Algerian font. The font manager 104 retrieves the font file 108c residing in the font database 106, and transports the font file 108c to the client application 118.
Having described an operating environment, a data flow example, and various aspects with respect to
The method 500 continues to an extraction operation 515, where the glyph and property extractor 210 determines which glyphs 304 to extract from the font files 108, and extracts the determined subsets of glyphs 302 and character properties from each font file 108. According to an aspect, the determination of which glyphs 304 to extract from a font file 108 is made according to the representation of the font that is desired. For example, if the name of a font is the desired representation of the font, the glyph and property extractor 210 extracts the glyphs 304 that comprise the name of the font (e.g., the “A,” “r,” “i,” “a,” and “I” glyphs 304a-e are extracted from the Arial font file 108). According to another aspect, the determination of which glyphs 304 to extract from a font file 108 is made according to a particular language or location. For example, for a particular region or language, certain fonts may be available. Additionally, it may be desired for the fonts to be represented in a particular language using glyphs 304 of the particular language (e.g., Japanese characters).
The method 500 continues to a preview element generation operation 520, where, for each subset of glyphs 302, the preview font generator 212 combines the glyphs 304 into a single-glyph font typeface preview element 124. According to an example, the preview font generator 212 employs a shaping engine 220 to consult the character properties associated with spacing, shaping, positioning, special behaviors, or contextual reordering, and space, shape, position, or reorder the glyphs 304 in the subset of glyphs 302, or apply special behavior to the glyphs 304 in the subset of glyphs 302 in accordance with the character properties.
The method 500 continues to a packaging operation 525, where the preview font package generator 214 collects the plurality of font typeface preview elements 124 generated by the preview font generator 212, and packages the plurality of font typeface preview elements 124 into a preview font file 112.
The method 500 continues to a mapping file generation operation 530, where the mapping file generator 216 generates a mapping file 116 that maps each font of the plurality of font files 108 to the location of its associated font typeface preview element 124 in the preview font file 112.
The method 500 continues to a transmission operation 535, where the output engine 218 provides the preview font file 112 to a client application 118. In some examples, the output engine 218 transmits the preview font file 112 and the mapping file 116 to a client application 118 executing on a client computing device 114 over a distributed computing network 120 in response to receiving a request for the client application 118 to download the preview font file 112 and the mapping file 116. In other examples, the output engine 218 provides the preview font file 112 and the mapping file 116 to a font manager 104 for packaging the preview font file 112 and the mapping file 116 with a client application 118 at build time. Accordingly, a client application 118 executing on the client computing device 114 is enabled to access the plurality of font typeface preview elements 124 in the preview font file 112 for displaying font typeface preview elements 124 in a font selection menu 126.
For example, the client application 118 reads the mapping file 116 for finding the storage locations of the font typeface preview elements 124 associated with the fonts that are available to the client application 118, pulls the associated font typeface preview elements 124 from the preview font file 112, and renders the font typeface preview elements 124 in the font selection menu 126. Accordingly, the fonts are represented in their own typographies. A user of the client application 118 is enabled to see an accurate representation of the available fonts.
The method 500 ends at OPERATION 540.
The method 545 begins at start operation 550 and proceeds to a selection operation 555, where an indication of a selection of a font is received. According to examples, the indication of the selection of the font is in response to a selection made by a user of a font typeface preview element 124 in a font selection menu 126, wherein the font typeface preview element 124 is associated with the font. According to examples, the indication of the selection is communicated to the font manager 104 via a client application 118 executing on a client computing device 114.
The method 545 continues to a transmission operation 560, where the font file 108 including the glyphs 304 and character properties of the selected font are transmitted to the client application 118 executing on the client computing device 114. Accordingly, the client application 118 is enabled to utilize the selected font for rendering glyphs and characters in the typeface of the font.
The method 545 ends at OPERATION 565.
While implementations have been described in the general context of program modules that execute in conjunction with an application program that runs on an operating system on a computer, those skilled in the art will recognize that aspects may also be implemented in combination with other program modules. Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types.
The aspects and functionalities described herein may operate via a multitude of computing systems including, without limitation, desktop computer systems, wired and wireless computing systems, mobile computing systems (e.g., mobile telephones, netbooks, tablet or slate type computers, notebook computers, and laptop computers), hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, and mainframe computers.
In addition, according to an aspect, the aspects and functionalities described herein operate over distributed systems (e.g., cloud-based computing systems), where application functionality, memory, data storage and retrieval and various processing functions are operated remotely from each other over a distributed computing network, such as the Internet or an intranet. According to an aspect, user interfaces and information of various types are displayed via on-board computing device displays or via remote display units associated with one or more computing devices. For example, user interfaces and information of various types are displayed and interacted with on a wall surface onto which user interfaces and information of various types are projected. Interaction with the multitude of computing systems with which implementations are practiced include, keystroke entry, touch screen entry, voice or other audio entry, gesture entry where an associated computing device is equipped with detection (e.g., camera) functionality for capturing and interpreting user gestures for controlling the functionality of the computing device, and the like.
As stated above, according to an aspect, a number of program modules and data files are stored in the system memory 604. While executing on the processing unit 602, the program modules 606 (e.g., font typeface preview engine 110 and font manager 104) perform processes including, but not limited to, one or more of the stages of the methods 500 and 545 illustrated in
According to an aspect, aspects are practiced in an electrical circuit comprising discrete electronic elements, packaged or integrated electronic chips containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, aspects are practiced via a system-on-a-chip (SOC) where each or many of the components illustrated in
According to an aspect, the computing device 600 has one or more input device(s) 612 such as a keyboard, a mouse, a pen, a sound input device, a touch input device, etc. The output device(s) 614 such as a display, speakers, a printer, etc. are also included according to an aspect. The aforementioned devices are examples and others may be used. According to an aspect, the computing device 600 includes one or more communication connections 616 allowing communications with other computing devices 618. Examples of suitable communication connections 616 include, but are not limited to, radio frequency (RF) transmitter, receiver, and/or transceiver circuitry; universal serial bus (USB), parallel, and/or serial ports.
The term computer readable media as used herein include computer storage media. Computer storage media include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. The system memory 604, the removable storage device 609, and the non-removable storage device 610 are all computer storage media examples (i.e., memory storage.) According to an aspect, computer storage media includes RAM, ROM, electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture which can be used to store information and which can be accessed by the computing device 600. According to an aspect, any such computer storage media is part of the computing device 600. Computer storage media does not include a carrier wave or other propagated data signal.
According to an aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. According to an aspect, the term “modulated data signal” describes a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.
According to an aspect, one or more application programs 750 are loaded into the memory 762 and run on or in association with the operating system 764. Examples of the application programs include phone dialer programs, e-mail programs, personal information management (PIM) programs, word processing programs, spreadsheet programs, Internet browser programs, messaging programs, and so forth. According to an aspect, the font typeface preview engine 110 and font manager 104 are loaded into memory 762. The system 702 also includes a non-volatile storage area 768 within the memory 762. The non-volatile storage area 768 is used to store persistent information that should not be lost if the system 702 is powered down. The application programs 750 may use and store information in the non-volatile storage area 768, such as e-mail or other messages used by an e-mail application, and the like. A synchronization application (not shown) also resides on the system 702 and is programmed to interact with a corresponding synchronization application resident on a host computer to keep the information stored in the non-volatile storage area 768 synchronized with corresponding information stored at the host computer. As should be appreciated, other applications may be loaded into the memory 762 and run on the mobile computing device 700.
According to an aspect, the system 702 has a power supply 770, which is implemented as one or more batteries. According to an aspect, the power supply 770 further includes an external power source, such as an AC adapter or a powered docking cradle that supplements or recharges the batteries.
According to an aspect, the system 702 includes a radio 772 that performs the function of transmitting and receiving radio frequency communications. The radio 772 facilitates wireless connectivity between the system 702 and the “outside world,” via a communications carrier or service provider. Transmissions to and from the radio 772 are conducted under control of the operating system 764. In other words, communications received by the radio 772 may be disseminated to the application programs 750 via the operating system 764, and vice versa.
According to an aspect, the visual indicator 720 is used to provide visual notifications and/or an audio interface 774 is used for producing audible notifications via the audio transducer 725. In the illustrated example, the visual indicator 720 is a light emitting diode (LED) and the audio transducer 725 is a speaker. These devices may be directly coupled to the power supply 770 so that when activated, they remain on for a duration dictated by the notification mechanism even though the processor 760 and other components might shut down for conserving battery power. The LED may be programmed to remain on indefinitely until the user takes action to indicate the powered-on status of the device. The audio interface 774 is used to provide audible signals to and receive audible signals from the user. For example, in addition to being coupled to the audio transducer 725, the audio interface 774 may also be coupled to a microphone to receive audible input, such as to facilitate a telephone conversation. According to an aspect, the system 702 further includes a video interface 776 that enables an operation of an on-board camera 730 to record still images, video stream, and the like.
According to an aspect, a mobile computing device 700 implementing the system 702 has additional features or functionality. For example, the mobile computing device 700 includes additional data storage devices (removable and/or non-removable) such as, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
According to an aspect, data/information generated or captured by the mobile computing device 700 and stored via the system 702 is stored locally on the mobile computing device 700, as described above. According to another aspect, the data is stored on any number of storage media that is accessible by the device via the radio 772 or via a wired connection between the mobile computing device 700 and a separate computing device associated with the mobile computing device 700, for example, a server computer in a distributed computing network, such as the Internet. As should be appreciated such data/information is accessible via the mobile computing device 700 via the radio 772 or via a distributed computing network. Similarly, according to an aspect, such data/information is readily transferred between computing devices for storage and use according to well-known data/information transfer and storage means, including electronic mail and collaborative data/information sharing systems.
Implementations, for example, are described above with reference to block diagrams and/or operational illustrations of methods, systems, and computer program products according to aspects. The functions/acts noted in the blocks may occur out of the order as shown in any flowchart. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The description and illustration of one or more examples provided in this application are not intended to limit or restrict the scope as claimed in any way. The aspects, examples, and details provided in this application are considered sufficient to convey possession and enable others to make and use the best mode. Implementations should not be construed as being limited to any aspect, example, or detail provided in this application. Regardless of whether shown and described in combination or separately, the various features (both structural and methodological) are intended to be selectively included or omitted to produce an example with a particular set of features. Having been provided with the description and illustration of the present application, one skilled in the art may envision variations, modifications, and alternate examples falling within the spirit of the broader aspects of the general inventive concept embodied in this application that do not depart from the broader scope.