The invention relates generally to font selection techniques and, more specifically, to font selection techniques that use mark-up language documents to define one or more selection criteria.
A font is a set of displayable images, or “glyphs,” each of which depicts a letter, character or symbol. Each glyph can be thought of as the computer-age equivalent of a block of type used in a printing press. Developing a font is a skilled, labor intensive task. Typographers spend many hours crafting each glyph in a font, and consider not only the shape of the glyph itself, but also how the glyph will look in any likely combination with other glyphs. While developing a font for a single language is challenging, developing a single font that is supposed to cover multiple languages is even more difficult. For example, a font for plain English (US or UK) may need less than a hundred glyphs, but a font to support all scripts written with a Latin based alphabet requires thousands of glyphs. Similarly, basic typesetting of Arabic can be achieved with around a hundred glyphs, but setting all languages that are based on the Arabic writing system requires thousands of glyphs. Many other writing systems, such as Cyrillic, Greek, Hebrew and Thai, have also been used as the basis of extended glyph repertoires and thus provide a similar challenge in scale. Finally, although limited in variations, East Asian scripts, such as Chinese, Japanese and Korean, contain tens of thousands of glyphs. Thus, a truly international font requires of the order of 50,000 to 100,000 glyphs.
To conserve memory, many international fonts cut corners by, for example, using a single glyph for multiple written languages, even if the glyph is only appropriate for one language. For example, some East Asian ideographic characters are written differently by Chinese speakers than by Japanese speakers. However, the Unicode system, which forms the basis for many international fonts, often uses only one code for such characters. Thus, a typographer who is developing an international font may be forced to choose between constructing the Chinese version of a character or constructing the Japanese version of the character. Furthermore, there are often stylistic differences between Japanese and Chinese ideographs that are not accounted for by Unicode. This presents a similar problem for a typographer because even though the Chinese and Japanese versions of a particular ideograph might be the same in terms of number and arrangement of strokes, it is not necessarily appropriate to present a glyph from a Chinese font in a Japanese document, or vice versa.
A font developer might choose to build an international font by collecting glyphs together from several single writing system fonts, taking care to match the purpose of the international font and to keep the glyphs balanced in weight and size. When matching fonts for this purpose, a font developer may find that some groups of writing systems have more similarity than differences. For example, Latin, Greek and Cyrillic scripts share many features, such as upper and lower case letters, and the use of serifed and sans serif styles. In contrast, writing systems such as Arabic also have a huge variety of typographic styles, although none correspond so directly to other scripts as, for example, Latin and Cyrillic do. Thus when creating a range of international fonts for a variety of purposes, font developers may mix and match existing fonts in different ways, and even incorporate a font for a single writing system into several different international fonts. For example, the ‘Arial’ and ‘Times New Roman’ fonts used in MICROSOFT® products contain different Latin glyph sets, but use the same Arabic glyph set.
To summarize, international font developers face a variety of problems when using current font development techniques. One problem is that time is wasted constructing, testing maintaining the same glyphs into multiple fonts. Another problem is that, to match correctly in size, some glyph sets need resizing, which is usually an expensive process. Yet another problem is that glyph counts frequently exceed the maximum allowed by current font technologies (65536 for TrueType/OpenType). Finally, as the previous discussion indicates, representing the same glyphs in multiple fonts wastes memory.
Wasted memory is of particular concern in the context of printer fonts. Most of today's printers include built-in fonts. Thus, when using a printer font, a computer program need only send character codes to the printer, rather than sending entire glyphs. When using a font not included with the printer, however, the computer program also needs to download the font to the printer. This increases the size of temporary files created during the print process, the time needed to print the document at the client workstation, the time needed to transmit the document to the printer at the print server. It also consumes precious memory inside the printer.
In accordance with the foregoing, a method for selecting a font is provided herein. According to various embodiments of the invention, a mark-up language document includes rules for determining which of a plurality of fonts is to be used under a given set of circumstances. The mark-up language document may also define whether or how glyphs obtained from the selected font are to be enlarged or reduced. The determination of which font to be used is influenced by such factors as language or locality information associated with a document in which the font is to be used.
Additional aspects of the invention will be made apparent from the following detailed description of illustrative embodiments that proceeds with reference to the accompanying figures.
While the appended claims set forth the features of the present invention with particularity, the invention may be best understood from the following detailed description taken in conjunction with the accompanying drawings of which:
The invention is generally directed to a method for selecting a font that uses a mark-up language document to group together multiple pre-existing fonts into a single font family or “virtual font.” The mark-up language document includes rules regarding the conditions under which individual fonts within the family are to be used. This permits, for example, a font developer to create, in an efficient manner, an international font using several preexisting fonts.
Prior to proceeding with a description of the various embodiments of the invention, a description of the computer and networking environment in which the various embodiments of the invention may be practiced will now be provided. Although it is not required, the present invention may be implemented by programs that are executed by a computer. Generally, programs include routines, objects, components, data structures and the like that perform particular tasks or implement particular abstract data types. The term “program” as used herein may connote a single program module or multiple program modules acting in concert. The term “computer” as used herein includes any device that electronically executes one or more programs, such as personal computers (PCs), hand-held devices, multi-processor systems, microprocessor-based programmable consumer electronics, network PCs, minicomputers, mainframe computers, consumer appliances having a microprocessor or microcontroller, routers, gateways, hubs and the like. The invention may also be employed in distributed computing environments, where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, programs may be located in both local and remote memory storage devices.
An example of a networked environment in which the invention may be used will now be described with reference to
Referring to
Computer 10 may also contain communications connections that allow the device to communicate with other devices. A communication connection is an example of a communication medium. Communication media typically embodies 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. 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, RF, infrared and other wireless media. The term “computer-readable medium” as used herein includes both computer storage media and communication media.
Computer 10 may also have input devices such as a keyboard 25, mouse, pen, voice input device, touch input device, etc. Output devices such as a display 20, speakers, a printer 27, etc. may also be included. All these devices are well known in the art and need not be discussed at length here.
An example of how multiple fonts may be organized into a single virtual font according to an embodiment of the invention will now be described with reference to
The glyph generation module 28 generates the glyphs that are to be shown on the display 20. The glyph generation module 28 obtains these glyphs from one or more fonts files. The font files, such as the font files 32, 34, 36 and 38 shown in
When a document is to be printed on the printer 27, the glyph generation module 28 behaves in a somewhat different manner. In the case of printing, the glyph generation module 28 selects the font to be used, but does not actually generated the printer glyphs. Instead, the glyph generation module 28 sends the name of the font that is to be used to the printer 27, along with the Unicode values of the glyphs that are to be printed and any metrics, such as scaling data, that are needed. If the printer 27 has the font file of the selected font stored in its memory, then the printer 27 prints the glyphs. If, on the other had, the printer 27 does not have the correct font, then the printer 27 indicates this fact to the glyph generation module 28. The glyph generation module 28 then chooses another font from the virtual font file 30, and sends the name of the newly selected font to the printer 27 along with the Unicode values of the glyphs to be printed and any required scaling data. The glyph generation module 28 may repeat this procedure until it finds a font that the printer 27 possesses. If the glyph generation module 28 does not find a font that the printer 21 possesses, then the glyph generation module 28 chooses a fallback font, which is specified in the virtual font file 30 and stored in the memory of the computer 10. The glyph generation module 28 then retrieves the appropriate glyphs of the fallback font and sends them to the printer 27. In various embodiments of the invention, the fallback font has glyphs that are sized appropriately for being printed on the printer 27.
Continuing with the description of
As the beginning and ending tags of the block of XML text indicate, the virtual font file 30, in effect, describes a family of fonts that include the Microsoft San Serif, Chinese (traditional) #2, Math Symbol #5 and Japanese #10 fonts. The first three lines of XML text—with the “Name” tags—include conditional instructions regarding what name will be given to the font family represented by the virtual font file 30. For example, the line <Name xml:lang=“en-US”> name=“MS International”</Name> indicates that if the user's language is English-US (“en-US”), then the glyph generation module 28 should name the font family “MS international.” The next line, <Name xml:lang=“zh-TW”> </Name>, indicates that if the user is operating in Chinese-Taiwan, then the name given to the virtual font family should be “” (which approximates the meaning of “international” in Chinese). The following line, <Name xml:lang=“ja”></Name>, indicates that if the user is operating in Japanese, then the name given to the virtual font family should be “” (which is the Japanese pronunciation of the English word “international”). The name of the font family does not necessarily appear to the user of the CAD program 26, but may appear if, for example, the user purposefully selects a “settings” menu to see what font is being used.
The next line, which reads <Range UnicodeRange=“2200-22FF” TargetFontFamily=“Math Symbol #5”/>, indicates to the glyph generation module 28 that if a character is received from the keyboard having a Unicode that falls in the range 2200-22FF, then the font to be used to render the glyph is the Math Symbol #5 font. The next three lines determine the font to be used based the user's language. For example, if the user's written language is Chinese-Taiwan, then the font to be used is the Chinese (traditional) #2 font. If, on the other hand, the user's written language is Japanese, then the font to be used is the Japanese #10 font. Referring again to the block of XML text shown above and to
The line reads <Range xml:lang=“en-US” family=“Microsoft San Serif”/>, which indicates that if the user is operating in English-US, the Microsoft San Serif font is to be used. This line of instructions acts as a default in the event that the appropriate language to be used is English—US, but that the conditions specified in the previous lines are not satisfied. Finally, the last line before the </FontFamily> tag is <Range TargetFontFamily=“Arial”/>, which specifies a final default font to be used in the event that none of the explicit conditions of the previous lines apply.
Referring again to
In the second scenario, the operating system 22 detects that the keyboard 25 has generated a Unicode value of 2264, and passes this value to the glyph generation module 28. The operating system 22 also informs the glyph generation module 28 that the CAD file 27 contains a document that is intended to be displayed in English-US. The glyph generation module 28 refers to the virtual font file 30 to determine how to handle the Unicode value of 2264. Based on the line “<Range UnicodeRange=“2200-22FF” family=“Math Symbol #5”/>” the glyph generation module 28 determines that the proper font to use is the Math Symbol #5 font, which is contained in the Math Symbol #5 font file 36. The glyph generation module 28 references the font file 36 to locate the glyph corresponding to the Unicode value of 2264. In this case, the glyph is -≦- The glyph generation module 28 then copies the glyph -≦- into the list 40, and associates the glyph with the value 2264. The glyph generation module 28 then passes the glyph to the operating system 22 to be displayed.
In the third scenario, the operating system 22 detects that the keyboard 25 has generated a Unicode value of 76F4, and passes this value to the glyph generation module 28. The operating system 22 also informs the glyph generation module 28 that the CAD file 27 contains a document that is intended to be displayed in Chinese-Taiwan. The glyph generation module 28 refers to the virtual font file 30 to determine how to handle the Unicode value of 76F4. Based on the line “<Range XML:Lang=“ch-TW” family=“Chinese (traditional) #2”/>” the glyph generation module 28 determines that the proper font to use is the Chinese (traditional) #2 font, which is contained in the Chinese (traditional) #2 font file 34. The glyph generation module 28 references the font file 34 to locate the glyph corresponding to the Unicode value of 76F4. In this case, the glyph is . This particular glyph represents the ideograph for the concept of “straight,” as in “direct” or “honest.” The glyph generation module 28 then copies the glyph into the list 42, and associates the glyph with the value 76F4. The glyph generation module 28 then passes the glyph to the operating system 22 to be displayed.
In the fourth scenario, the operating system 22 detects that the keyboard 25 has generated a Unicode value of 76F4, and passes this value to the glyph generation module 28. The operating system 22 also informs the glyph generation module 28 that the CAD file 27 contains a document that is intended to be displayed in Japanese. The glyph generation module 28 refers to the virtual font file 30 to determine how to handle the Unicode value of 76F4. Based on the line “<Range XML:Lang=“jp” family=“Japanese #10”/>” the glyph generation module 28 determines that the proper font to use is the Japanese #10 font, which is contained in the Japanese #10 font file 38. The glyph generation module 28 references the font file 34 to locate the glyph corresponding to the Unicode value of 76F4. In this case, the glyph is. This glyph also represents the ideograph for the concept of “straight,” but is rendered in its Japanese variation. The glyph generation module 28 then copies the glyph into the list 44, and associates the glyph with the value 76F4. The glyph generation module 28 then passes the glyph to the operating system 22 to be displayed.
It can thus be seen that a new and useful method for selecting a font has been provided. In view of the many possible embodiments to which the principles of this invention may be applied, it should be recognized that the embodiments described herein with respect to the drawing figure is meant to be illustrative only and should not be taken as limiting the scope of invention. For example, those of skill in the art will recognize that the elements of the illustrated embodiments shown in software may be implemented in hardware and vice versa or that the illustrated embodiments can be modified in arrangement and detail without departing from the spirit of the invention. Therefore, the invention as described herein contemplates all such embodiments as may come within the scope of the following claims and equivalents thereof.
Number | Name | Date | Kind |
---|---|---|---|
5412771 | Fenwick | May 1995 | A |
5526477 | McConnell et al. | Jun 1996 | A |
5689585 | Bloomberg et al. | Nov 1997 | A |
5698620 | Wideman et al. | Dec 1997 | A |
5781714 | Collins et al. | Jul 1998 | A |
5999706 | Chrosny | Dec 1999 | A |
6073147 | Chan et al. | Jun 2000 | A |
6204782 | Gonzalez et al. | Mar 2001 | B1 |
6313735 | Higuchi | Nov 2001 | B1 |
6323864 | Kaul et al. | Nov 2001 | B1 |
6356268 | Beaman et al. | Mar 2002 | B1 |
6393416 | Atkin et al. | May 2002 | B1 |
6404435 | Miller et al. | Jun 2002 | B1 |
6426751 | Patel et al. | Jul 2002 | B1 |
6426798 | Yeung | Jul 2002 | B1 |
6493464 | Hawkins et al. | Dec 2002 | B1 |
6614541 | Fritz et al. | Sep 2003 | B1 |
6623529 | Lakritz | Sep 2003 | B1 |
6675357 | Carter et al. | Jan 2004 | B1 |
6691281 | Sorge et al. | Feb 2004 | B1 |
6714199 | Beaman et al. | Mar 2004 | B1 |
6718519 | Taieb | Apr 2004 | B1 |
6738518 | Minka et al. | May 2004 | B1 |
6760887 | Taieb | Jul 2004 | B1 |
6771267 | Muller | Aug 2004 | B1 |
6813747 | Taieb | Nov 2004 | B1 |
6826728 | Horiyama | Nov 2004 | B1 |
6919966 | Nguyen et al. | Jul 2005 | B2 |
20020016836 | Suzuki et al. | Feb 2002 | A1 |
20020036788 | Hino | Mar 2002 | A1 |
20020048032 | Ichikawa et al. | Apr 2002 | A1 |
20020091737 | Markel | Jul 2002 | A1 |
20020146181 | Azam et al. | Oct 2002 | A1 |
20020161673 | Lee et al. | Oct 2002 | A1 |
20020178007 | Slotznick et al. | Nov 2002 | A1 |
20030002056 | Yamaguchi et al. | Jan 2003 | A1 |
20030023590 | Atkin | Jan 2003 | A1 |
20030028561 | Gounares et al. | Feb 2003 | A1 |
20030033334 | Banerjee et al. | Feb 2003 | A1 |
20030093326 | Poon et al. | May 2003 | A1 |
20030095135 | Kaasila et al. | May 2003 | A1 |
20030126554 | Behzadi et al. | Jul 2003 | A1 |
20030126557 | Yardumian et al. | Jul 2003 | A1 |
20030140311 | Lemon et al. | Jul 2003 | A1 |
20030158791 | Gilberto et al. | Aug 2003 | A1 |
20030193502 | Patel et al. | Oct 2003 | A1 |
20030237048 | Jones et al. | Dec 2003 | A1 |
20040003388 | Jacquemot et al. | Jan 2004 | A1 |
20040056894 | Zaika et al. | Mar 2004 | A1 |
20040088657 | Brown et al. | May 2004 | A1 |
20040114042 | Paolini et al. | Jun 2004 | A1 |
20040128276 | Scanlon et al. | Jul 2004 | A1 |
20040205042 | Ritter et al. | Oct 2004 | A1 |
20040205561 | Gibbs et al. | Oct 2004 | A1 |
20050210379 | Weathersby et al. | Sep 2005 | A1 |
20050213152 | Suzuki et al. | Sep 2005 | A1 |
20050228796 | Jung | Oct 2005 | A1 |
20060173951 | Arteaga et al. | Aug 2006 | A1 |
20060193321 | Shell et al. | Aug 2006 | A1 |
Number | Date | Country |
---|---|---|
1 033 697 | Sep 2000 | EP |
WO 9423379 | Oct 1994 | WO |
Number | Date | Country | |
---|---|---|---|
20040088657 A1 | May 2004 | US |