w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dvipng.h File Reference
#include "config.h"
#include <inttypes.h>
#include <gd.h>
#include <kpathsea/kpathsea.h>
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include "commands.h"
Include dependency graph for dvipng.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dvi_data
 
struct  dvi_color
 
struct  page_list
 
struct  filemmap
 
struct  encoding
 
struct  subfont
 
struct  psfontmap
 
struct  char_entry
 
struct  font_entry
 
struct  font_num
 
struct  internal_state
 

Macros

#define STRSIZE   255 /* stringsize for file specifications */
 
#define FIRSTFNTCHAR   0
 
#define LASTFNTCHAR   255
 
#define NFNTCHARS   LASTFNTCHAR+1
 
#define STACK_SIZE   100 /* DVI-stack size */
 
#define DEFAULT_GAMMA   1.0
 
#define MAKETEXPK   "mktexpk"
 
#define bool   boolean
 
#define MM_TO_PXL(x)   (int)(((x)*resolution*10)/254)
 
#define PT_TO_PXL(x)   (int)((int32_t)((x)*resolution*100l)/7224)
 
#define PT_TO_DVI(x)   (int32_t)((x)*65536l)
 
#define PIXROUND(num, den)   ((num)>0 ? ((num)+(den)/2)/(den) : -(((den)/2-(num))/(den)))
 
#define DVI_TYPE   0
 
#define DVI_PREVIEW_LATEX_TIGHTPAGE   1
 
#define DVI_PREVIEW_BOP_HOOK   (1<<1)
 
#define PAGE_POST   INT32_MAX
 
#define PAGE_LASTPAGE   INT32_MAX-1
 
#define PAGE_MAXPAGE   INT32_MAX-2 /* assume no pages out of this range */
 
#define PAGE_FIRSTPAGE   INT32_MIN
 
#define PAGE_MINPAGE   INT32_MIN+1 /* assume no pages out of this range */
 
#define FONT_TYPE_PK   1
 
#define FONT_TYPE_VF   2
 
#define FONT_TYPE_FT   3
 
#define EXTERN   extern
 
#define INIT(x)
 
#define BE_NONQUIET   1
 
#define BE_VERBOSE   (1<<1)
 
#define PARSE_STDIN   (1<<2)
 
#define EXPAND_BBOX   (1<<3)
 
#define TIGHT_BBOX   (1<<4)
 
#define FORCE_TRUECOLOR   (1<<5)
 
#define USE_FREETYPE   (1<<6)
 
#define REPORT_HEIGHT   (1<<7)
 
#define REPORT_DEPTH   (1<<8)
 
#define REPORT_WIDTH   (1<<9)
 
#define DVI_PAGENUM   (1<<10)
 
#define MODE_PICKY   (1<<11)
 
#define GIF_OUTPUT   (1<<12)
 
#define MODE_STRICT   (1<<13)
 
#define NO_GHOSTSCRIPT   (1<<14)
 
#define NO_GSSAFER   (1<<15)
 
#define BG_TRANSPARENT   (1<<16)
 
#define BG_TRANSPARENT_ALPHA   (1<<17)
 
#define FORCE_PALETTE   (1<<18)
 
#define NO_RAW_PS   (1<<19)
 
#define PAGE_GAVE_WARN   1
 
#define PAGE_PREVIEW_BOP   (1<<1)
 
#define PAGE_TRUECOLOR   (1<<2)
 
#define DEBUG_PRINT(a, b)   if (debug & a) { printf b; fflush(stdout); }
 
#define DEBUG_DVI   1
 
#define DEBUG_VF   (1<<1)
 
#define DEBUG_PK   (1<<2)
 
#define DEBUG_TFM   (1<<3)
 
#define DEBUG_GLYPH   (1<<4)
 
#define DEBUG_FT   (1<<5)
 
#define DEBUG_ENC   (1<<6)
 
#define DEBUG_COLOR   (1<<7)
 
#define DEBUG_GS   (1<<8)
 
#define LASTDEBUG   DEBUG_GS
 
#define DEBUG_DEFAULT   DEBUG_DVI
 
#define max(x, y)   if ((y)>(x)) x = y
 
#define min(x, y)   if ((y)<(x)) x = y
 
#define EXIT_FATAL   EXIT_FAILURE+1
 

Typedefs

typedef int pixels
 
typedef int32_t subpixels
 
typedef int32_t dviunits
 

Functions

struct dvi_dataDVIOpen (char *, char *)
 
void DVIClose (struct dvi_data *)
 
boolean DVIReOpen (struct dvi_data *)
 
struct page_listFindPage (struct dvi_data *, int32_t, boolean)
 
struct page_listNextPage (struct dvi_data *, struct page_list *)
 
struct page_listPrevPage (struct dvi_data *, struct page_list *)
 
int SeekPage (struct dvi_data *, struct page_list *)
 
boolean DVIFollowToggle (void)
 
unsigned char * DVIGetCommand (struct dvi_data *)
 
boolean DVIIsNextPSSpecial (struct dvi_data *)
 
uint32_t CommandLength (unsigned char *)
 
void ClearPSHeaders (void)
 
boolean DecodeArgs (int, char *[])
 
void DecodeString (char *)
 
boolean MmapFile (char *filename, struct filemmap *fmmap)
 
void UnMmapFile (struct filemmap *fmmap)
 
void Message (int, const char *fmt,...)
 
void Warning (const char *fmt,...)
 
void Fatal (const char *fmt,...)
 
int32_t SNumRead (unsigned char *, register int)
 
uint32_t UNumRead (unsigned char *, register int)
 
void CheckChecksum (uint32_t, uint32_t, const char *)
 
void InitPK (struct font_entry *newfontp)
 
void DonePK (struct font_entry *oldfontp)
 
void InitVF (struct font_entry *newfontp)
 
void DoneVF (struct font_entry *oldfontp)
 
void FontDef (unsigned char *, void *)
 
void ClearFonts (void)
 
void SetFntNum (int32_t, void *)
 
void FreeFontNumP (struct font_num *hfontnump)
 
char * copyword (char *orig)
 
struct psfontmapNewPSFont (struct psfontmap *copyfrom)
 
void InitPSFontMap (void)
 
void ClearPSFontMap (void)
 
struct psfontmapFindPSFontMap (char *)
 
struct encodingFindEncoding (char *)
 
void ClearEncoding (void)
 
boolean ReadTFM (struct font_entry *, char *)
 
boolean InitFT (struct font_entry *)
 
void DoneFT (struct font_entry *tfontp)
 
void LoadFT (int32_t, struct char_entry *)
 
struct psfontmapFindSubFont (struct psfontmap *entry, char *fontname)
 
void ClearSubfont (void)
 
boolean ParsePages (const char *)
 
void FirstPage (int32_t, boolean)
 
void LastPage (int32_t, boolean)
 
void ClearPpList (void)
 
void Reverse (boolean)
 
struct page_listNextPPage (void *, struct page_list *)
 
void CreateImage (pixels width, pixels height)
 
void DestroyImage (void)
 
void DrawCommand (unsigned char *, void *)
 
void DrawPages (void)
 
void WriteImage (char *, int)
 
void LoadPK (int32_t, register struct char_entry *)
 
int32_t SetChar (int32_t)
 
dviunits SetGlyph (struct char_entry *ptr, int32_t hh, int32_t vv)
 
void Gamma (double gamma)
 
int32_t SetVF (struct char_entry *ptr)
 
int32_t SetRule (int32_t, int32_t, int32_t, int32_t)
 
void SetSpecial (char *, char *, int32_t, int32_t)
 
void BeginVFMacro (struct font_entry *)
 
void EndVFMacro (void)
 
void handlepapersize (const char *, int32_t *, int32_t *)
 
void stringrgb (const char *colorstring, int *r, int *g, int *b)
 
void background (const char *)
 
void initcolor (void)
 
void popcolor (void)
 
void pushcolor (const char *)
 
void resetcolorstack (const char *)
 
void StoreColorStack (struct page_list *tpagep)
 
void ReadColorStack (struct page_list *tpagep)
 
void StoreBackgroundColor (struct page_list *tpagep)
 
void ClearColorNames (void)
 
void InitXColorPrologue (const char *prologuename)
 

Variables

boolean makeTexPK
 
uint32_t usermag
 
struct font_entryhfontptr
 
struct internal_state current_state
 
uint32_t option_flags
 
uint32_t page_flags
 
unsigned int debug
 
char * user_mfmode
 
int user_bdpi
 
int dpi
 
int compression
 
int x_min
 
int y_min
 
int x_max
 
int y_max
 
int x_width_def
 
int y_width_def
 
int x_offset_def
 
int y_offset_def
 
int x_width_tightpage
 
int y_width_tightpage
 
int x_offset_tightpage
 
int y_offset_tightpage
 
int x_pwidth
 
int y_pwidth
 
int borderwidth
 
boolean userbordercolor
 
struct dvi_color bordercolor
 
gdImagePtr page_imagep
 
int32_t shrinkfactor
 
struct dvi_color cstack [100]
 
int csp
 
struct font_entrycurrentfont
 
struct dvi_datadvi
 
FT_Library libfreetype
 
int exitcode
 

Macro Definition Documentation

◆ BE_NONQUIET

#define BE_NONQUIET   1

Definition at line 384 of file dvipng.h.

◆ BE_VERBOSE

#define BE_VERBOSE   (1<<1)

Definition at line 385 of file dvipng.h.

◆ BG_TRANSPARENT

#define BG_TRANSPARENT   (1<<16)

Definition at line 400 of file dvipng.h.

◆ BG_TRANSPARENT_ALPHA

#define BG_TRANSPARENT_ALPHA   (1<<17)

Definition at line 401 of file dvipng.h.

◆ bool

Definition at line 85 of file dvipng.h.

◆ DEBUG_COLOR

#define DEBUG_COLOR   (1<<7)

Definition at line 422 of file dvipng.h.

◆ DEBUG_DEFAULT

#define DEBUG_DEFAULT   DEBUG_DVI

Definition at line 425 of file dvipng.h.

◆ DEBUG_DVI

#define DEBUG_DVI   1

Definition at line 415 of file dvipng.h.

◆ DEBUG_ENC

#define DEBUG_ENC   (1<<6)

Definition at line 421 of file dvipng.h.

◆ DEBUG_FT

#define DEBUG_FT   (1<<5)

Definition at line 420 of file dvipng.h.

◆ DEBUG_GLYPH

#define DEBUG_GLYPH   (1<<4)

Definition at line 419 of file dvipng.h.

◆ DEBUG_GS

#define DEBUG_GS   (1<<8)

Definition at line 423 of file dvipng.h.

◆ DEBUG_PK

#define DEBUG_PK   (1<<2)

Definition at line 417 of file dvipng.h.

◆ DEBUG_PRINT

#define DEBUG_PRINT (   a,
  b 
)    if (debug & a) { printf b; fflush(stdout); }

Definition at line 414 of file dvipng.h.

◆ DEBUG_TFM

#define DEBUG_TFM   (1<<3)

Definition at line 418 of file dvipng.h.

◆ DEBUG_VF

#define DEBUG_VF   (1<<1)

Definition at line 416 of file dvipng.h.

◆ DEFAULT_GAMMA

#define DEFAULT_GAMMA   1.0

Definition at line 37 of file dvipng.h.

◆ DVI_PAGENUM

#define DVI_PAGENUM   (1<<10)

Definition at line 394 of file dvipng.h.

◆ DVI_PREVIEW_BOP_HOOK

#define DVI_PREVIEW_BOP_HOOK   (1<<1)

Definition at line 141 of file dvipng.h.

◆ DVI_PREVIEW_LATEX_TIGHTPAGE

#define DVI_PREVIEW_LATEX_TIGHTPAGE   1

Definition at line 140 of file dvipng.h.

◆ DVI_TYPE

#define DVI_TYPE   0

Definition at line 126 of file dvipng.h.

◆ EXIT_FATAL

#define EXIT_FATAL   EXIT_FAILURE+1

Definition at line 523 of file dvipng.h.

◆ EXPAND_BBOX

#define EXPAND_BBOX   (1<<3)

Definition at line 387 of file dvipng.h.

◆ EXTERN

EXTERN (   void)    extern

Definition at line 326 of file dvipng.h.

◆ FIRSTFNTCHAR

#define FIRSTFNTCHAR   0

Definition at line 31 of file dvipng.h.

◆ FONT_TYPE_FT

#define FONT_TYPE_FT   3

Definition at line 240 of file dvipng.h.

◆ FONT_TYPE_PK

#define FONT_TYPE_PK   1

Definition at line 238 of file dvipng.h.

◆ FONT_TYPE_VF

#define FONT_TYPE_VF   2

Definition at line 239 of file dvipng.h.

◆ FORCE_PALETTE

#define FORCE_PALETTE   (1<<18)

Definition at line 402 of file dvipng.h.

◆ FORCE_TRUECOLOR

#define FORCE_TRUECOLOR   (1<<5)

Definition at line 389 of file dvipng.h.

◆ GIF_OUTPUT

#define GIF_OUTPUT   (1<<12)

Definition at line 396 of file dvipng.h.

◆ INIT

#define INIT (   x)

Definition at line 327 of file dvipng.h.

◆ LASTDEBUG

#define LASTDEBUG   DEBUG_GS

Definition at line 424 of file dvipng.h.

◆ LASTFNTCHAR

#define LASTFNTCHAR   255

Definition at line 32 of file dvipng.h.

◆ MAKETEXPK

#define MAKETEXPK   "mktexpk"

Definition at line 40 of file dvipng.h.

◆ max

#define max (   x,
  y 
)    if ((y)>(x)) x = y

Definition at line 474 of file dvipng.h.

◆ min

#define min (   x,
  y 
)    if ((y)<(x)) x = y

Definition at line 475 of file dvipng.h.

◆ MM_TO_PXL

#define MM_TO_PXL (   x)    (int)(((x)*resolution*10)/254)

Definition at line 110 of file dvipng.h.

◆ MODE_PICKY

#define MODE_PICKY   (1<<11)

Definition at line 395 of file dvipng.h.

◆ MODE_STRICT

#define MODE_STRICT   (1<<13)

Definition at line 397 of file dvipng.h.

◆ NFNTCHARS

#define NFNTCHARS   LASTFNTCHAR+1

Definition at line 33 of file dvipng.h.

◆ NO_GHOSTSCRIPT

#define NO_GHOSTSCRIPT   (1<<14)

Definition at line 398 of file dvipng.h.

◆ NO_GSSAFER

#define NO_GSSAFER   (1<<15)

Definition at line 399 of file dvipng.h.

◆ NO_RAW_PS

#define NO_RAW_PS   (1<<19)

Definition at line 403 of file dvipng.h.

◆ PAGE_FIRSTPAGE

#define PAGE_FIRSTPAGE   INT32_MIN

Definition at line 148 of file dvipng.h.

◆ PAGE_GAVE_WARN

#define PAGE_GAVE_WARN   1

Definition at line 406 of file dvipng.h.

◆ PAGE_LASTPAGE

#define PAGE_LASTPAGE   INT32_MAX-1

Definition at line 146 of file dvipng.h.

◆ PAGE_MAXPAGE

#define PAGE_MAXPAGE   INT32_MAX-2 /* assume no pages out of this range */

Definition at line 147 of file dvipng.h.

◆ PAGE_MINPAGE

#define PAGE_MINPAGE   INT32_MIN+1 /* assume no pages out of this range */

Definition at line 149 of file dvipng.h.

◆ PAGE_POST

#define PAGE_POST   INT32_MAX

Definition at line 145 of file dvipng.h.

◆ PAGE_PREVIEW_BOP

#define PAGE_PREVIEW_BOP   (1<<1)

Definition at line 407 of file dvipng.h.

◆ PAGE_TRUECOLOR

#define PAGE_TRUECOLOR   (1<<2)

Definition at line 408 of file dvipng.h.

◆ PARSE_STDIN

#define PARSE_STDIN   (1<<2)

Definition at line 386 of file dvipng.h.

◆ PIXROUND

#define PIXROUND (   num,
  den 
)    ((num)>0 ? ((num)+(den)/2)/(den) : -(((den)/2-(num))/(den)))

Definition at line 119 of file dvipng.h.

◆ PT_TO_DVI

#define PT_TO_DVI (   x)    (int32_t)((x)*65536l)

Definition at line 112 of file dvipng.h.

◆ PT_TO_PXL

#define PT_TO_PXL (   x)    (int)((int32_t)((x)*resolution*100l)/7224)

Definition at line 111 of file dvipng.h.

◆ REPORT_DEPTH

#define REPORT_DEPTH   (1<<8)

Definition at line 392 of file dvipng.h.

◆ REPORT_HEIGHT

#define REPORT_HEIGHT   (1<<7)

Definition at line 391 of file dvipng.h.

◆ REPORT_WIDTH

#define REPORT_WIDTH   (1<<9)

Definition at line 393 of file dvipng.h.

◆ STACK_SIZE

#define STACK_SIZE   100 /* DVI-stack size */

Definition at line 35 of file dvipng.h.

◆ STRSIZE

#define STRSIZE   255 /* stringsize for file specifications */

Part of the dvipng distribution

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Copyright (C) 2002-2015 Jan-Åke Larsson

Definition at line 29 of file dvipng.h.

◆ TIGHT_BBOX

#define TIGHT_BBOX   (1<<4)

Definition at line 388 of file dvipng.h.

◆ USE_FREETYPE

#define USE_FREETYPE   (1<<6)

Definition at line 390 of file dvipng.h.

Typedef Documentation

◆ dviunits

typedef int32_t dviunits

Definition at line 108 of file dvipng.h.

◆ pixels

typedef int pixels

Definition at line 106 of file dvipng.h.

◆ subpixels

typedef int32_t subpixels

Definition at line 107 of file dvipng.h.

Function Documentation

◆ background()

void background ( const char *  p)

Definition at line 371 of file color.c.

References blue, cstack, DEBUG_COLOR, DEBUG_PRINT, green, p, red, and stringrgb().

◆ BeginVFMacro()

void BeginVFMacro ( struct font_entry currentvf)

◆ CheckChecksum()

void CheckChecksum ( uint32_t  c1,
uint32_t  c2,
const char *  name 
)

Part of the dvipng distribution

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Copyright (C) 2002-2015 Jan-Åke Larsson

Definition at line 27 of file font.c.

References c1, c2, endif, HAVE_LIBKPATHSEA, name, and Warning().

Referenced by InitPK(), and InitVF().

◆ ClearColorNames()

void ClearColorNames ( void  )

Definition at line 183 of file color.c.

References ClearXColorPrologue(), colornamep, free, colorname::next, and next.

Referenced by main().

◆ ClearEncoding()

void ClearEncoding ( void  )

Definition at line 120 of file enc.c.

References encodingp, free, encoding::next, NULL, and temp.

Referenced by main().

◆ ClearFonts()

void ClearFonts ( void  )

Definition at line 294 of file font.c.

References DoneFont(), dvi, dvi_data::fontnump, free, FreeFontNumP(), hfontptr, font_entry::name, font_entry::next, and NULL.

Referenced by Fatal(), and main().

◆ ClearPpList()

void ClearPpList ( void  )

Definition at line 175 of file ppagelist.c.

References abspage, first, free, last, pp_list::next, no_ppage, PAGE_FIRSTPAGE, PAGE_LASTPAGE, and ppages.

Referenced by DrawPages().

◆ ClearPSFontMap()

void ClearPSFontMap ( void  )

Definition at line 173 of file fontmap.c.

References entry, free, psfontmap::next, NULL, psfont_mmap, psfontmap, ttfont_mmap, and UnMmapFile().

Referenced by main().

◆ ClearPSHeaders()

void ClearPSHeaders ( void  )

Definition at line 97 of file special.c.

References free, pscode::next, NULL, psheaderp, temp, and UnMmapFile().

Referenced by DVIClose(), and DVIReOpen().

◆ ClearSubfont()

void ClearSubfont ( void  )

Definition at line 171 of file sfd.c.

References free, subfont::next, NULL, subfontp, and temp.

Referenced by main().

◆ CommandLength()

uint32_t CommandLength ( unsigned char *  command)

Definition at line 265 of file dvi.c.

References command, dvi_commandlength, FNT_DEF1, FNT_DEF2, FNT_DEF3, FNT_DEF4, length, PRE, UNumRead(), XXX1, XXX2, XXX3, and XXX4.

Referenced by SetVF().

◆ copyword()

char* copyword ( char *  orig)

Definition at line 46 of file fontmap.c.

References Fatal(), malloc, NULL, strcpy(), and strlen().

Referenced by FindSubFont(), NewPSFont(), and ReadPSFontMap().

◆ CreateImage()

◆ DecodeArgs()

◆ DecodeString()

void DecodeString ( char *  string)

Definition at line 657 of file misc.c.

References DecodeArgs(), NULL, PARSEARGS, string, and void.

Referenced by main().

◆ DestroyImage()

void DestroyImage ( void  )

Definition at line 179 of file set.c.

References gdImageDestroy(), NULL, and page_imagep.

Referenced by DrawPages(), and WriteImage().

◆ DoneFT()

void DoneFT ( struct font_entry tfontp)

Definition at line 159 of file ft.c.

References c, font_entry::chr, error, font_entry::face, free, FT_Done_Face(), font_entry::name, NFNTCHARS, NULL, UnLoadFT(), and Warning().

Referenced by DoneFont().

◆ DonePK()

void DonePK ( struct font_entry oldfontp)

Definition at line 395 of file pk.c.

References c, font_entry::chr, FIRSTFNTCHAR, font_entry::fmmap, free, LASTFNTCHAR, font_entry::name, NULL, UnLoadPK(), and UnMmapFile().

Referenced by DoneFont().

◆ DoneVF()

void DoneVF ( struct font_entry oldfontp)

◆ DrawCommand()

◆ DrawPages()

◆ DVIClose()

void DVIClose ( struct dvi_data dvi)

Definition at line 453 of file dvi.c.

References ClearPSHeaders(), DelPageList(), dvi, fclose, dvi_data::filep, free, dvi_data::name, NULL, and dvi_data::outname.

Referenced by DecodeArgs(), and main().

◆ DVIFollowToggle()

boolean DVIFollowToggle ( void  )

Definition at line 48 of file dvi.c.

References followmode.

Referenced by DecodeArgs().

◆ DVIGetCommand()

unsigned char* DVIGetCommand ( struct dvi_data dvi)

◆ DVIIsNextPSSpecial()

boolean DVIIsNextPSSpecial ( struct dvi_data dvi)

Definition at line 227 of file dvi.c.

References DEBUG_DVI, DEBUG_PRINT, dvi, fgetc_follow(), dvi_data::filep, fseek, ftell, SEEK_SET, XXX1, XXX2, XXX3, and XXX4.

◆ DVIOpen()

◆ DVIReOpen()

◆ EndVFMacro()

void EndVFMacro ( void  )

Definition at line 282 of file draw.c.

References DEBUG_DVI, DEBUG_PRINT, dvi_stack, and Fatal().

Referenced by SetVF().

◆ Fatal()

◆ FindEncoding()

struct encoding* FindEncoding ( char *  encoding)

Definition at line 103 of file enc.c.

References encodingp, InitEncoding(), NULL, strcmp(), and temp.

Referenced by ReadPSFontMap().

◆ FindPage()

struct page_list* FindPage ( struct dvi_data dvi,
int32_t  pagenum,
boolean  abspage 
)

Definition at line 420 of file dvi.c.

References abspage, dvi, NextPage(), NULL, PAGE_FIRSTPAGE, PAGE_LASTPAGE, PAGE_POST, pagenum, and PrevPage().

Referenced by NextPPage().

◆ FindPSFontMap()

struct psfontmap* FindPSFontMap ( char *  fontname)

◆ FindSubFont()

struct psfontmap* FindSubFont ( struct psfontmap entry,
char *  fontname 
)

◆ FirstPage()

void FirstPage ( int32_t  page,
boolean  data 
)

Definition at line 39 of file ppagelist.c.

References abspage, data, first, and page.

◆ FontDef()

◆ FreeFontNumP()

void FreeFontNumP ( struct font_num hfontnump)

Definition at line 284 of file font.c.

References free, font_num::next, and NULL.

Referenced by ClearFonts(), and DoneVF().

◆ Gamma()

void Gamma ( double  gamma)

Definition at line 195 of file set.c.

References DEBUG_GLYPH, DEBUG_PRINT, gamma, gammatable, gdAlphaMax, i, int(), and pow().

Referenced by cmsBuildGamma(), DecodeArgs(), EntriesByGamma(), and Type_vcgt_Read().

◆ handlepapersize()

void handlepapersize ( const char *  p,
int32_t x,
int32_t y 
)

Definition at line 65 of file papersiz.c.

References myatodim(), p, cordic::x, and y.

Referenced by DecodeArgs(), getdefaults(), main(), and predospecial().

◆ initcolor()

void initcolor ( void  )

Definition at line 92 of file pscolor.c.

◆ InitFT()

◆ InitPK()

◆ InitPSFontMap()

void InitPSFontMap ( void  )

Definition at line 69 of file fontmap.c.

References DEBUG_FT, DEBUG_PRINT, find_format(), free, MmapFile(), NULL, psfont_mmap, ttfont_mmap, and Warning().

Referenced by main().

◆ InitVF()

◆ InitXColorPrologue()

void InitXColorPrologue ( const char *  prologuename)

Definition at line 194 of file color.c.

References ClearXColorPrologue(), Fatal(), malloc, name, NULL, strcpy(), strlen(), and xcpname.

◆ LastPage()

void LastPage ( int32_t  page,
boolean  data 
)

Definition at line 44 of file ppagelist.c.

References abspage, data, last, and page.

◆ LoadFT()

void LoadFT ( int32_t  c,
struct char_entry ptr 
)

Part of the dvipng distribution

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Copyright (C) 2002-2009 Jan-Åke Larsson

Definition at line 27 of file ft.c.

References FT_GlyphSlotRec_::bitmap, bitmap, FT_GlyphSlotRec_::bitmap_left, FT_GlyphSlotRec_::bitmap_top, c, calloc(), subfont::charindex, encoding::charname, currentfont, DEBUG_FT, DEBUG_GLYPH, DEBUG_PRINT, psfontmap::encoding, font_entry::face, Fatal(), FT_Get_Char_Index(), FT_Get_Name_Index(), FT_Load_Glyph(), FT_LOAD_NO_HINTING, FT_LOAD_RENDER, FT_LOAD_TARGET_LIGHT, FT_FaceRec_::glyph, GREYLEVELS, i, j, k, NULL, font_entry::psfontmap, ptr, shrinkfactor, psfontmap::subfont, and Warning().

Referenced by SetChar().

◆ LoadPK()

◆ Message()

void Message ( int  activeflags,
const char *  fmt,
  ... 
)

Definition at line 754 of file misc.c.

References args, fmt, option_flags, fc-lang::stdout, va_end, and va_start.

Referenced by DecodeArgs(), DrawPages(), DVIInit(), DVIReOpen(), InitFT(), InitPK(), and InitVF().

◆ MmapFile()

◆ NewPSFont()

◆ NextPage()

struct page_list* NextPage ( struct dvi_data dvi,
struct page_list page 
)

◆ NextPPage()

struct page_list* NextPPage ( void dvi,
struct page_list page 
)

Definition at line 61 of file ppagelist.c.

References abspage, dvi, FindPage(), first, InPageList(), last, NextPage, no_ppage, NULL, PrevPage(), and reverse.

Referenced by DrawPages().

◆ ParsePages()

boolean ParsePages ( const char *  s)

Definition at line 133 of file ppagelist.c.

References c, ListPage(), PAGE_MAXPAGE, PAGE_MINPAGE, pp_list::ps_high, pp_list::ps_low, s, strtol(), and t.

Referenced by DecodeArgs(), and main().

◆ popcolor()

void popcolor ( void  )

Definition at line 387 of file color.c.

References csp, DEBUG_COLOR, and DEBUG_PRINT.

◆ PrevPage()

struct page_list* PrevPage ( struct dvi_data dvi,
struct page_list page 
)

Definition at line 414 of file dvi.c.

Referenced by FindPage(), and NextPPage().

◆ pushcolor()

void pushcolor ( const char *  p)

Definition at line 378 of file color.c.

References blue, csp, cstack, DEBUG_COLOR, DEBUG_PRINT, Fatal(), green, p, red, STACK_SIZE, and stringrgb().

Referenced by resetcolorstack().

◆ ReadColorStack()

void ReadColorStack ( struct page_list tpagep)

◆ ReadTFM()

boolean ReadTFM ( struct font_entry tfontp,
char *  tfmname 
)

Part of the dvipng distribution

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Copyright (C) 2002-2009, 2019 Jan-Åke Larsson

Definition at line 27 of file tfm.c.

References bc, c, font_entry::chr, filemmap::data, char_entry::data, DEBUG_DVI, DEBUG_FT, DEBUG_PRINT, DEBUG_TFM, ec, end, Fatal(), free, if, lh, malloc, MmapFile(), NFNTCHARS, NULL, nw, position, font_entry::s, filemmap::size, SNumRead(), tfmname, char_entry::tfmw, UnMmapFile(), UNumRead(), and width.

Referenced by FontFind().

◆ resetcolorstack()

void resetcolorstack ( const char *  p)

Definition at line 393 of file color.c.

References csp, DEBUG_COLOR, DEBUG_PRINT, p, pushcolor(), and Warning().

◆ Reverse()

void Reverse ( boolean  new)

Definition at line 49 of file ppagelist.c.

References reverse.

◆ SeekPage()

int SeekPage ( struct dvi_data dvi,
struct page_list page 
)

Definition at line 368 of file dvi.c.

References dvi, dvi_data::filep, fseek, PAGE_POST, ReadColorStack(), and SEEK_SET.

Referenced by DrawPages(), and NextPage().

◆ SetChar()

◆ SetFntNum()

void SetFntNum ( int32_t  k,
void parent 
)

◆ SetGlyph()

◆ SetRule()

◆ SetSpecial()

void SetSpecial ( char *  ,
char *  ,
int32_t  ,
int32_t   
)

Referenced by DrawCommand(), and SkipPage().

◆ SetVF()

int32_t SetVF ( struct char_entry ptr)

Definition at line 30 of file vf.c.

References BeginVFMacro(), command, CommandLength(), currentfont, DEBUG_DVI, DEBUG_PRINT, DrawCommand(), dvi_commands, end, EndVFMacro(), and ptr.

Referenced by SetChar().

◆ SNumRead()

int32_t SNumRead ( unsigned char *  current,
register int  n 
)

Definition at line 698 of file misc.c.

References current, n, and cordic::x.

Referenced by DrawCommand(), LoadPK(), and ReadTFM().

◆ StoreBackgroundColor()

void StoreBackgroundColor ( struct page_list tpagep)

Definition at line 434 of file color.c.

References dvi_color::blue, cstack, page_list::cstack, dvi_color::green, and dvi_color::red.

Referenced by DrawPages().

◆ StoreColorStack()

void StoreColorStack ( struct page_list tpagep)

◆ stringrgb()

◆ UnMmapFile()

◆ UNumRead()

uint32_t UNumRead ( unsigned char *  current,
register int  n 
)

◆ Warning()

◆ WriteImage()

Variable Documentation

◆ bordercolor

struct dvi_color bordercolor
extern

◆ borderwidth

int borderwidth
extern

◆ compression

◆ csp

◆ cstack

◆ current_state

struct internal_state current_state

◆ currentfont

struct font_entry* currentfont
extern

◆ debug

unsigned int debug
extern

Definition at line 131 of file autosp.c.

◆ dpi

int dpi
extern

Definition at line 48 of file kpsewhich.c.

◆ dvi

◆ exitcode

int exitcode
extern

Referenced by _Escape(), DrawPages(), main(), and rezzip_make().

◆ hfontptr

struct font_entry* hfontptr
extern

Definition at line 594 of file dvi2xx.h.

Referenced by ClearFonts(), CloseFiles(), DoBop(), FontDef(), OpenFontFile(), ReadFontDef(), and SetFntNum().

◆ libfreetype

FT_Library libfreetype
extern

Referenced by DecodeArgs(), Fatal(), InitFT(), and main().

◆ makeTexPK

boolean makeTexPK
extern

Referenced by DecodeArgs(), and main().

◆ option_flags

◆ page_flags

uint32_t page_flags
extern

◆ page_imagep

◆ shrinkfactor

◆ user_bdpi

int user_bdpi
extern

Referenced by DecodeArgs(), and main().

◆ user_mfmode

char* user_mfmode
extern

Referenced by DecodeArgs(), and main().

◆ userbordercolor

boolean userbordercolor
extern

Referenced by DecodeArgs(), and WriteImage().

◆ usermag

uint32_t usermag
extern

Definition at line 51 of file dvi2.c.

Referenced by DecodeArgs(), DVIInit(), init_settings(), ReadPostAmble(), and ReadPreAmble().

◆ x_max

◆ x_min

◆ x_offset_def

int x_offset_def
extern

Referenced by DecodeArgs(), and DrawPages().

◆ x_offset_tightpage

int x_offset_tightpage
extern

Referenced by DrawPages().

◆ x_pwidth

int x_pwidth
extern

Referenced by DecodeArgs().

◆ x_width_def

int x_width_def
extern

Referenced by DecodeArgs(), and DrawPages().

◆ x_width_tightpage

int x_width_tightpage
extern

Referenced by DrawPages().

◆ y_max

◆ y_min

◆ y_offset_def

int y_offset_def
extern

Referenced by DecodeArgs(), and DrawPages().

◆ y_offset_tightpage

int y_offset_tightpage
extern

Referenced by DrawPages().

◆ y_pwidth

int y_pwidth
extern

Referenced by DecodeArgs().

◆ y_width_def

int y_width_def
extern

Referenced by DecodeArgs(), and DrawPages().

◆ y_width_tightpage

int y_width_tightpage
extern

Referenced by DrawPages().