microsoft.com Home   All Products  |   Support  |   Search  |   microsoft.com Home  
Microsoft

Microsoft Typography | ...on the Web | ...embedding | ...WEFT 2 | Webfonts.exe... next


Webfonts.exe command line interface


About Webfonts.exe

A number of 'expert' Web authors have requested a simplified model for using Weft, one that may be easily automated. These authors are interested in creating the font objects, but they are not interested in or may not be able to provide all of the information that Weft asks for.

To help streamline the process of creating embedded font objects, we've designed a command line interface. With this interface, the user specifies a font file, a file containing a character 'keep list,' and a set of root URLs to which to bind the font objects.

dialog

The command line interface is a stand-alone application, based on the WEFT OLE automation objects. The source code for the application is included in this SDK.


Using the Application

The command line follows the general syntax of:

[cmd] [arg1] [arg2] ... [argn]

The commands are one word tokens. The arguments are single flags or flags followed by a value. For example '/Arg' or '/Arg value'. The interface also supports single and double quoted strings as well as '\'-escaped characters.

The available commands are: crawlsite, mkeot, and pageinfo. These are discussed below.


crawlsite

Crawls through an entire site, and creates optimal EOT's for encountered fonts in encountered pages. This is a potentially destructive command.

Arguments
[required] /website string URL to the root page.
  /crawmode num Flag that determines which pages to process.
  /fontmode num Flag that determines what fonts to process.
  /subsetmode num Flags that determines how to subset fonts.
  /fonturl string Storage URL of created EOTs.
  /bindroot URL bind paths.


mkeot

Creates an EOT and generates a CSS declaration of it.

Arguments
[required] /facename string The face name of the font.
  /weight num Weight of the font.
  /italic bool Italicness of the font.
  /family Family and pitch of the font.
  /charset Charset of the font.
  /keeplist string Subset character list for the font.
  /keepfile string File containing the keeplist.
[required] /bindroot string URL bind paths.
  /fonturl string URL of where the EOT will be stored. The EOT will be created in the /target directory, but the created CSS will point use this URL.
  /target string Directory where the EOT will be created.


pageinfo

Analyzes one web page and reports the use of fonts within it.

Arguments
[required] /url string URL of the page to examine.



this page was last updated 9 December
© 1998 Microsoft Corporation. All rights reserved. Legal Notices.
please e-mail comments to us via the e-mail address listed here.

 

Microsoft Typography | ...on the Web | ...embedding | ...WEFT 2 | Webfonts.exe... next