index.htmlMain Page    classes.htmlAlphabetical List    annotated.htmlData Structures    files.htmlFile List    functions.htmlData Fields    globals.htmlGlobals    font.c File Reference
Functions
char * font_8c.html#a4wmf_ipa_font_lookup  ( types_8h.html#a22wmfAPI  *API, char *ps_name) void font_8c.html#a5wmf_ipa_font_init  ( types_8h.html#a22wmfAPI  *API, types_8h.html#a21wmfAPI_Options  *options) void font_8c.html#a6wmf_ipa_font_map_set  ( types_8h.html#a22wmfAPI  *API, ipa_8h.html#a23wmfMap  map) void font_8c.html#a7wmf_ipa_font_dir  ( types_8h.html#a22wmfAPI  *API, char *fontdir) float font_8c.html#a9wmf_ipa_font_stringwidth  ( types_8h.html#a22wmfAPI  *API, ipa_8h.html#a4wmfFont  *font, char *str) void font_8c.html#a11wmf_ipa_draw_text  ( types_8h.html#a22wmfAPI  *API, ipa_8h.html#a19wmfDrawText_t  *draw_text, include_2libwmf_2font_8h.html#a10wmfCharDrawer  ipa_draw_text) void font_8c.html#a12wmf_ipa_font_map_xml  ( types_8h.html#a22wmfAPI  *API, include_2libwmf_2font_8h.html#a6wmfXML_FontData  *FD, char *xmlfontmap) void font_8c.html#a13wmf_ipa_font_map_gs  ( types_8h.html#a22wmfAPI  *API, include_2libwmf_2font_8h.html#a4wmfGS_FontData  *FD, char *gsfontmap) void font_8c.html#a18wmf_ipa_font_map  ( types_8h.html#a22wmfAPI  *API, ipa_8h.html#a4wmfFont  *font) Function Documentation
  
    
      
        
          
 void wmf_ipa_draw_text           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
ipa_8h.html#a19wmfDrawText_t  *           
  draw_text,         
        
          
          
          
include_2libwmf_2font_8h.html#a10wmfCharDrawer            
  ipa_draw_text         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 void wmf_ipa_font_dir           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
char *           
  fontdir         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 void wmf_ipa_font_init           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
types_8h.html#a21wmfAPI_Options  *           
  options         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 char* wmf_ipa_font_lookup           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
char *           
  ps_name         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 void wmf_ipa_font_map           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
ipa_8h.html#a4wmfFont  *           
  font         
        
          
          
)           
        
      
    
  
  
    
       
    
    
This is the fun bit.
Parameters: API the API handle 
font WMF font object: font's 
family name, italics flag, and the weight Other inputs include: a ghostscript-style Fontmap, and up to two XML RedHat-style fontmaps. (These are all parsed earlier.) There are also the fallback 13 standard postscript fonts. And then there is a list of font directories to search for fonts.
libwmf requires fonts to have a postscript name, and maintains an internal cache of glyphs path and freetype font face, keyed to postscript font name. Unfortunately, although the XML fontmaps do have font family name, the GS fontmap does not. In the latter, therefore, matching WMF font info to postscript font name is hit-and-miss.       
  
    
      
        
          
 void wmf_ipa_font_map_gs           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
include_2libwmf_2font_8h.html#a4wmfGS_FontData  *           
  FD,         
        
          
          
          
char *           
  gsfontmap         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 void wmf_ipa_font_map_set           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
ipa_8h.html#a23wmfMap            
  map         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 void wmf_ipa_font_map_xml           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
include_2libwmf_2font_8h.html#a6wmfXML_FontData  *           
  FD,         
        
          
          
          
char *           
  xmlfontmap         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
  
    
      
        
          
 float wmf_ipa_font_stringwidth           
(           
types_8h.html#a22wmfAPI  *           
  API,         
        
          
          
          
ipa_8h.html#a4wmfFont  *           
  font,         
        
          
          
          
char *           
  str         
        
          
          
)           
        
      
    
  
  
    
       
    
    
    
  
Generated on Tue Dec 10 19:53:49 2002 for libwmf by
http://www.doxygen.org/index.htmldoxygen 1.2.18 