Back to index

tetex-bin  3.0
Defines | Functions | Variables
omfonts.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHAR_CODE_NUM   0
#define CHAR_CODE_ASCII   1
#define NUM_CODE_HEX   0
#define NUM_CODE_OCTAL   1
#define TEXT_CODE_UPPER   0
#define TEXT_CODE_MIXED   1

Functions

int main (int, string *)
void read_in_whole (unsigned char **, unsigned *, FILE *, string)
void init_tables (void)
void output_ofm_file (void)
void output_ovf_file (void)
void output_text_file (FILE *)

Variables

FILEfile_ovf
FILEfile_output
int verbose_option
int char_format
int num_format
int text_format
unsigned length_ofm
unsigned length_ovf
unsigned char * ofm
unsigned char * ovf

Define Documentation

#define CHAR_CODE_ASCII   1

Definition at line 25 of file omfonts.h.

#define CHAR_CODE_NUM   0

Definition at line 24 of file omfonts.h.

#define NUM_CODE_HEX   0

Definition at line 26 of file omfonts.h.

#define NUM_CODE_OCTAL   1

Definition at line 27 of file omfonts.h.

#define TEXT_CODE_MIXED   1

Definition at line 29 of file omfonts.h.

#define TEXT_CODE_UPPER   0

Definition at line 28 of file omfonts.h.


Function Documentation

Definition at line 311 of file omfonts.c.

{
    font_table_init(); /* subsidiary fonts in virtual fonts */
    init_header();
    init_planes();
    init_measures();
}

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  ,
string  
)

Definition at line 50 of file dvipng.c.

{
  bool parsestdin;
    
#ifdef TIMING
# ifdef HAVE_GETTIMEOFDAY
  gettimeofday(&Tp, NULL);
  timer = Tp.tv_sec + ((float)(Tp.tv_usec))/ 1000000.0;
# else
#  ifdef HAVE_FTIME
  ftime(&timebuffer);
  timer = timebuffer.time + (float)(timebuffer.millitm) / 1000.0;
#  endif
# endif
#endif
  /* setbuf(stderr, NULL); */

#ifdef HAVE_LIBKPATHSEA
  /* Use extra paths as used by dvips */
  kpse_set_program_name(argv[0],"dvips");
  /* If dvipng is not installed in the texmf tree, and _only_
   * SELFAUTO...  is used in texmf.cnf, kpathsea will not find a)
   * Virtual fonts b) ps2pk.map or psfonts.map c) PostScript fonts
   *
   * We adjust these things here
   */
# ifdef ENV_SELFAUTOLOC
  putenv(ENV_SELFAUTOLOC);
# endif
# ifdef ENV_SELFAUTODIR
  putenv(ENV_SELFAUTODIR);
# endif
# ifdef ENV_SELFAUTOPARENT
  putenv(ENV_SELFAUTOPARENT);
# endif
  kpse_set_program_enabled (kpse_pk_format, makeTexPK, kpse_src_compile);
#endif

  initcolor();
  parsestdin = DecodeArgs(argc, argv);

#ifdef HAVE_LIBKPATHSEA
  if (user_mfmode)
    if (user_bdpi)
      kpse_init_prog("DVIPNG", user_bdpi, user_mfmode, "cmr10");
    else {
      Warning("--mfmode given without --bdpi.");
      /* this will give a lot of warnings but... */
      kpse_init_prog("DVIPNG", 300, user_mfmode, "cmr10");
    }
  else
    kpse_init_prog("DVIPNG", 300, "cx", "cmr10");
#endif

#ifdef HAVE_FT2_OR_LIBT1
  InitPSFontMap();
#endif

  DrawPages();

  if (parsestdin) {
    char    line[STRSIZE];

    printf("%s> ",dvi!=NULL?dvi->name:"");
    fgets(line,STRSIZE,stdin);
    while(!feof(stdin)) {
      DecodeString(line);
      if (dvi!=NULL) {
       if (DVIReOpen(dvi))
         flags &= ~PREVIEW_LATEX_TIGHTPAGE;
       DrawPages();
      }
      printf("%s> ",dvi!=NULL?dvi->name:"");
      fgets(line,STRSIZE,stdin);
    }
    printf("\n");
  }

#ifdef TIMING
# ifdef HAVE_GETTIMEOFDAY
  gettimeofday(&Tp, NULL);
  timer = (Tp.tv_sec + (float)(Tp.tv_usec)/1000000.0) - timer;
# else
#  ifdef HAVE_FTIME
  ftime(&timebuffer);
  timer = (timebuffer.time + (float)(timebuffer.millitm)/1000.0) - timer;
#  endif
# endif
  
  if (ndone > 0) 
    fprintf(stderr,
           "Time of complete run: %.2f s, %d page(s), %.4f s/page.\n",
           timer, ndone, timer / ndone);
  if (my_toc >= 0.0001) 
    fprintf(stderr,
           "Thereof in TIC/TOC region %.5f s.\n",my_toc);
#endif

  ClearFonts();
  DVIClose(dvi);
  ClearDvipsNam();
#ifdef HAVE_FT2_OR_LIBT1
  ClearPSFontMap();
  ClearEncoding();
#endif
#ifdef HAVE_FT2
  if (libfreetype!=NULL && FT_Done_FreeType(libfreetype)) 
    Fatal("an error occured during freetype destruction"); 
  libfreetype = NULL;
#endif  
#ifdef HAVE_LIBT1
  if (libt1!=NULL && T1_CloseLib())
    Fatal("an error occured during t1lib destruction"); 
  libt1 = NULL;
#endif  

  exit(exitcode);
}

Definition at line 609 of file font_routines.c.

{
    unsigned i, k;

    out_ovf(DVI_PRE); out_ovf(VF_ID);
    /* Check for vtitle==NULL by Joel Riou <joel.riou@normalesup.org> */
    k = vtitle ? strlen(vtitle) : 0; out_ovf(k);
    for (i=0; i<k; i++) out_ovf(vtitle[i]);
    out_ovf_4(check_sum); out_ovf_4(design_size);
    output_ovf_fonts();
    output_ovf_chars();
    do {
        out_ovf(DVI_POST);
    } while ((file_ovf_count % 4) != 0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 320 of file omfonts.c.

{
}
void read_in_whole ( unsigned char **  ,
unsigned *  ,
FILE ,
string   
)

Definition at line 277 of file omfonts.c.

{
    unsigned no_read;
    unsigned no_total_read = 0;
    unsigned size = BIG_BLOCK;
    string where;
    string current_block;

    current_block = (char *) xmalloc(size);
    where = current_block;

    while (1) {
        no_read = fread(where, 1, LITTLE_BLOCK, file);
        no_total_read += no_read;
        if ((no_total_read+LITTLE_BLOCK) > size) {
            size *= 2;
            current_block = (char *) xrealloc(current_block, size);
        }
        where = current_block + no_total_read;
        if (ferror(file)) {
            fatal_error_s("Error while reading file %s", name);
        } else if (feof(file)) {
            break;
        }
    }

    *contents_loc = (unsigned char *) current_block;
    *length_loc = no_total_read;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 53 of file omfonts.c.

Definition at line 68 of file omfonts.c.

Definition at line 67 of file omfonts.c.

unsigned length_ofm

Definition at line 73 of file omfonts.c.

unsigned length_ovf

Definition at line 74 of file omfonts.c.

Definition at line 54 of file omfonts.c.

unsigned char* ofm

Definition at line 70 of file omfonts.c.

unsigned char* ovf

Definition at line 71 of file omfonts.c.

Definition at line 55 of file omfonts.c.

Definition at line 52 of file omfonts.c.