Previous Page | Next Page

The FONTREG Procedure

Example 2: Adding All Font Files from Multiple Directories


Procedure features:

MSGLEVEL= option

FONTPATH statement


This example shows how to add all valid font files from two different directories and how to write detailed information to the SAS log.


Program

 Note about code
proc fontreg msglevel=verbose;
 Note about code
   fontpath 'your-font-directory-1' 'your-font-directory-2';
run;

Output: SAS Log (Partial)

1    proc fontreg msglevel=verbose;
2    fontpath 'your-font-directory-1'
3             'your-font-directory-2';
4    run;

ERROR: FreeType base module FT_New_Face -- unknown file format.
ERROR: A problem was encountered with file 
       "your-font-directory-2\MODERN.FON".

. . .  more log entries . . .    

WARNING: The "Sasfont" font in file
         "your-font-directory-2\SAS1252.FON" is non-scalable. Only 
         scalable fonts are supported.

. . .  more log entries . . .   


NOTE: The font "Albertus Medium" (Style: Regular, Weight: Normal) has been
      added to the SAS Registry at 
      [CORE\PRINTING\FREETYPE\FONTS\<ttf>Albertus Medium]. Because it is a TRUETYPE
      font, it can be referenced as "Albertus Medium" or "<ttf>Albertus Medium" in 
      SAS. The font resides in file
      "your-font-directory-1\albr55w.ttf".
 
. . .  more log entries . . .   


WARNING: The font "Georgia" (Style: Regular, Weight: Normal) will not be added 
because it already exists in the "<ttf>Georgia" font family of the SAS Registry.

. . .  more log entries . . . 

SUMMARY:
  Files processed: 138
  Unusable files: 3
  Files identified as fonts: 135
  Fonts that were processed: 135
  Fonts replaced in the SAS registry: 0
  Fonts added to the SAS registry: 91
  Fonts that could not be used: 44
  Font Families removed from SAS registry: 0

NOTE: PROCEDURE FONTREG used (Total process time):
      real time           27.81 seconds
      cpu time            1.18 seconds

Previous Page | Next Page | Top of Page