Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
setup.c File Reference
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include "mdvi.h"
#include "private.h"
+ Include dependency graph for setup.c:

Go to the source code of this file.

Functions

void mdvi_init_kpathsea (const char *program, const char *mfmode, const char *font, int dpi, const char *texmfcnf)
 

Function Documentation

void mdvi_init_kpathsea ( const char *  program,
const char *  mfmode,
const char *  font,
int  dpi,
const char *  texmfcnf 
)

Definition at line 28 of file setup.c.

31 {
32  const char *p;
33 
34  /* Stop meaningless output generation. */
35  kpse_make_tex_discard_errors = FALSE;
36 
37  p = strrchr(program, '/');
38  p = (p ? p + 1 : program);
39  kpse_set_program_name(program, p);
40  kpse_init_prog(p, dpi, mfmode, font);
41  kpse_set_program_enabled(kpse_any_glyph_format, 1, kpse_src_compile);
42  kpse_set_program_enabled(kpse_pk_format, 1, kpse_src_compile);
43  kpse_set_program_enabled(kpse_tfm_format, 1, kpse_src_compile);
44  kpse_set_program_enabled(kpse_ofm_format, 1, kpse_src_compile);
45  if (texmfcnf != NULL)
46  xputenv("TEXMFCNF", texmfcnf);
47 }

+ Here is the caller graph for this function: