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)  

pbmtopk.c File Reference
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include "pbm.h"
Include dependency graph for pbmtopk.c:

Go to the source code of this file.

Macros

#define MAXPKCHAR   256
 
#define MAXOPTLINE   200
 
#define MAXWIDTHTAB   256
 
#define MAXHEIGHTTAB   16
 
#define MAXDEPTHTAB   16
 
#define MAXITALICTAB   64
 
#define MAXPARAMS   30
 
#define NAMELENGTH   80
 
#define round(a)   ((int)(a+.5))
 
#define fixword(d)   ((int)((double)(d)*1048576))
 
#define unfixword(f)   ((double)(f) / 1048576)
 
#define fixrange(f)   ((f) < 16777216 && (f) > -16777216)
 
#define designunits(p)   ((p)*72.27/(double)resolution/unfixword(designsize))
 
#define XOFFSET   1
 
#define YOFFSET   2
 
#define HORZESC   4
 
#define VERTESC   8
 
#define TFMWIDTH   16
 
#define TFMHEIGHT   32
 
#define TFMDEPTH   64
 
#define TFMITALIC   128
 
#define add_tfmwidth(v)
 
#define add_tfmheight(v)
 
#define add_tfmdepth(v)
 
#define add_tfmitalic(v)
 

Typedefs

typedef int integer
 
typedef char quarterword
 
typedef char boolean
 
typedef quarterword ASCIIcode
 
typedef quarterword eightbits
 
typedef unsigned char byte
 

Functions

static byte add_tfmtable (integer *table, integer *count, integer value, integer max_count, char *name)
 
static void pbmtopk_add_suffix (char *name, char *suffix)
 
static void initialize_pk ()
 
static void pbmtopk_pkbyte (b)
 
static void pkhalfword (a)
 
static void pkthreebytes (a)
 
static void pkword (a)
 
static void pknyb (a)
 
static void writepreamble ()
 
static void writepostamble ()
 
static void tfmbyte (b)
 
static void tfmhalfword (a)
 
static void tfmword (a)
 
static void writetfmfile ()
 
static void readcharacter ()
 
static int equal (bit *row1, bit *row2)
 
static void shipcharacter ()
 
static void checkchar ()
 
static void optionfile (name)
 
int main (argc, argv)
 

Variables

integer resolution
 
integer designsize
 
char * filename [256]
 
integer xoffset [256]
 
integer yoffset [256]
 
integer horzesc [256]
 
integer vertesc [256]
 
byte tfmindex [256]
 
byte hgtindex [256]
 
byte depindex [256]
 
byte italindex [256]
 
byte charflags [256]
 
bit ** bitmap
 
integer smallestch = 256
 
integer largestch = -1
 
integer emwidth = 0
 
integer checksum
 
char * codingscheme = "GRAPHIC"
 
char * familyname = "PBM"
 
integer widthtab [256] = {0}
 
integer numwidth = 1
 
integer heighttab [16] = {0}
 
integer numheight = 1
 
integer depthtab [16] = {0}
 
integer numdepth = 1
 
integer italictab [64] = {0}
 
integer numitalic = 1
 
integer parameters [30] = {0}
 
integer numparam = 0
 
static ASCIIcode xord [128]
 
static char xchr [256]
 
static FILEtfmfile
 
static FILEpkfile
 
static char tfmname [80+1]
 
static char pkname [80+1]
 
static integer pbmtopk_pkloc = 0
 
static integer bitweight
 
static integer outputbyte
 
static integer car
 
static integer hppp
 
static integer width
 
static integer height
 

Macro Definition Documentation

◆ add_tfmdepth

#define add_tfmdepth (   v)
Value:
"TFM depth"))
int v
Definition: dviconv.c:10
integer numdepth
Definition: pbmtopk.c:72
integer depthtab[16]
Definition: pbmtopk.c:71
static byte add_tfmtable(integer *table, integer *count, integer value, integer max_count, char *name)
Definition: pbmtopk.c:140
#define MAXDEPTHTAB
Definition: pbmtopk.c:17

Definition at line 135 of file pbmtopk.c.

◆ add_tfmheight

#define add_tfmheight (   v)
Value:
"TFM height"))
integer numheight
Definition: pbmtopk.c:70
#define MAXHEIGHTTAB
Definition: pbmtopk.c:16
integer heighttab[16]
Definition: pbmtopk.c:69

Definition at line 133 of file pbmtopk.c.

◆ add_tfmitalic

#define add_tfmitalic (   v)
Value:
"Italic correction"))
integer numitalic
Definition: pbmtopk.c:74
#define MAXITALICTAB
Definition: pbmtopk.c:18
integer italictab[64]
Definition: pbmtopk.c:73

Definition at line 137 of file pbmtopk.c.

◆ add_tfmwidth

#define add_tfmwidth (   v)
Value:
"TFM width"))
#define MAXWIDTHTAB
Definition: pbmtopk.c:15
integer numwidth
Definition: pbmtopk.c:68
integer widthtab[256]
Definition: pbmtopk.c:67

Definition at line 131 of file pbmtopk.c.

◆ designunits

#define designunits (   p)    ((p)*72.27/(double)resolution/unfixword(designsize))

Definition at line 26 of file pbmtopk.c.

◆ fixrange

#define fixrange (   f)    ((f) < 16777216 && (f) > -16777216)

Definition at line 25 of file pbmtopk.c.

◆ fixword

#define fixword (   d)    ((int)((double)(d)*1048576))

Definition at line 23 of file pbmtopk.c.

◆ HORZESC

#define HORZESC   4

Definition at line 31 of file pbmtopk.c.

◆ MAXDEPTHTAB

#define MAXDEPTHTAB   16

Definition at line 17 of file pbmtopk.c.

◆ MAXHEIGHTTAB

#define MAXHEIGHTTAB   16

Definition at line 16 of file pbmtopk.c.

◆ MAXITALICTAB

#define MAXITALICTAB   64

Definition at line 18 of file pbmtopk.c.

◆ MAXOPTLINE

#define MAXOPTLINE   200

Definition at line 14 of file pbmtopk.c.

◆ MAXPARAMS

#define MAXPARAMS   30

Definition at line 19 of file pbmtopk.c.

◆ MAXPKCHAR

#define MAXPKCHAR   256

Definition at line 13 of file pbmtopk.c.

◆ MAXWIDTHTAB

#define MAXWIDTHTAB   256

Definition at line 15 of file pbmtopk.c.

◆ NAMELENGTH

#define NAMELENGTH   80

Definition at line 20 of file pbmtopk.c.

◆ round

#define round (   a)    ((int)(a+.5))

Definition at line 22 of file pbmtopk.c.

◆ TFMDEPTH

#define TFMDEPTH   64

Definition at line 35 of file pbmtopk.c.

◆ TFMHEIGHT

#define TFMHEIGHT   32

Definition at line 34 of file pbmtopk.c.

◆ TFMITALIC

#define TFMITALIC   128

Definition at line 36 of file pbmtopk.c.

◆ TFMWIDTH

#define TFMWIDTH   16

Definition at line 33 of file pbmtopk.c.

◆ unfixword

#define unfixword (   f)    ((double)(f) / 1048576)

Definition at line 24 of file pbmtopk.c.

◆ VERTESC

#define VERTESC   8

Definition at line 32 of file pbmtopk.c.

◆ XOFFSET

#define XOFFSET   1

Definition at line 29 of file pbmtopk.c.

◆ YOFFSET

#define YOFFSET   2

Definition at line 30 of file pbmtopk.c.

Typedef Documentation

◆ ASCIIcode

Definition at line 41 of file pbmtopk.c.

◆ boolean

typedef char boolean

Definition at line 40 of file pbmtopk.c.

◆ byte

typedef unsigned char byte

Definition at line 43 of file pbmtopk.c.

◆ eightbits

Definition at line 42 of file pbmtopk.c.

◆ integer

typedef int integer

Definition at line 38 of file pbmtopk.c.

◆ quarterword

typedef char quarterword

Definition at line 39 of file pbmtopk.c.

Function Documentation

◆ add_tfmtable()

static byte add_tfmtable ( integer table,
integer count,
integer  value,
integer  max_count,
char *  name 
)
static

Definition at line 140 of file pbmtopk.c.

References car, count, fixrange, i, name, pm_error, and unfixword.

◆ checkchar()

static void checkchar ( )
static

Definition at line 695 of file pbmtopk.c.

References MAXPKCHAR, and pm_error.

Referenced by main(), and optionfile().

◆ equal()

static int equal ( bit row1,
bit row2 
)
static

Definition at line 393 of file pbmtopk.c.

References i, and width.

Referenced by shipcharacter().

◆ initialize_pk()

static void initialize_pk ( )
static

Definition at line 168 of file pbmtopk.c.

References charflags, designsize, filename, fixword, i, MAXPKCHAR, NULL, pm_message, xchr, and xord.

Referenced by main().

◆ main()

◆ optionfile()

◆ pbmtopk_add_suffix()

static void pbmtopk_add_suffix ( char *  name,
char *  suffix 
)
static

Definition at line 157 of file pbmtopk.c.

References dot, name, rindex(), strcmp(), and suffix.

Referenced by main().

◆ pbmtopk_pkbyte()

static void pbmtopk_pkbyte ( b  )
static

Definition at line 183 of file pbmtopk.c.

References b, pbmtopk_pkloc, pkfile, and putc.

Referenced by pkhalfword(), pknyb(), pkthreebytes(), pkword(), shipcharacter(), writepostamble(), and writepreamble().

◆ pkhalfword()

static void pkhalfword ( a  )
static

Definition at line 192 of file pbmtopk.c.

References a, and pbmtopk_pkbyte().

Referenced by shipcharacter().

◆ pknyb()

static void pknyb ( a  )
static

Definition at line 220 of file pbmtopk.c.

References a, bitweight, outputbyte, and pbmtopk_pkbyte().

Referenced by shipcharacter().

◆ pkthreebytes()

static void pkthreebytes ( a  )
static

Definition at line 201 of file pbmtopk.c.

References a, and pbmtopk_pkbyte().

Referenced by shipcharacter().

◆ pkword()

static void pkword ( a  )
static

Definition at line 210 of file pbmtopk.c.

References a, and pbmtopk_pkbyte().

Referenced by shipcharacter(), and writepreamble().

◆ readcharacter()

◆ shipcharacter()

◆ tfmbyte()

static void tfmbyte ( b  )
static

Definition at line 258 of file pbmtopk.c.

References b, putc, and tfmfile.

Referenced by tfmhalfword(), tfmword(), and writetfmfile().

◆ tfmhalfword()

static void tfmhalfword ( a  )
static

Definition at line 266 of file pbmtopk.c.

References a, and tfmbyte().

Referenced by writetfmfile().

◆ tfmword()

static void tfmword ( a  )
static

Definition at line 275 of file pbmtopk.c.

References a, and tfmbyte().

Referenced by writetfmfile().

◆ writepostamble()

static void writepostamble ( void  )
static

Definition at line 249 of file pbmtopk.c.

References pbmtopk_pkbyte(), pbmtopk_pkloc, and pm_message.

Referenced by main().

◆ writepreamble()

static void writepreamble ( void  )
static

Definition at line 233 of file pbmtopk.c.

References checksum, comment, designsize, hppp, i, pbmtopk_pkbyte(), pkword(), strlen(), and xord.

Referenced by main().

◆ writetfmfile()

Variable Documentation

◆ bitmap

Definition at line 59 of file pbmtopk.c.

◆ bitweight

integer bitweight
static

Definition at line 100 of file pbmtopk.c.

Referenced by pknyb(), and shipcharacter().

◆ car

◆ charflags

byte charflags[256]

Definition at line 57 of file pbmtopk.c.

Referenced by initialize_pk(), main(), optionfile(), and readcharacter().

◆ checksum

◆ codingscheme

char* codingscheme = "GRAPHIC"

Definition at line 64 of file pbmtopk.c.

Referenced by main(), and writetfmfile().

◆ depindex

byte depindex[256]

Definition at line 55 of file pbmtopk.c.

Referenced by main(), optionfile(), readcharacter(), and writetfmfile().

◆ depthtab

integer depthtab[16] = {0}

Definition at line 71 of file pbmtopk.c.

Referenced by writetfmfile().

◆ designsize

◆ emwidth

integer emwidth = 0

Definition at line 62 of file pbmtopk.c.

Referenced by readcharacter(), and writetfmfile().

◆ familyname

char* familyname = "PBM"

◆ filename

char* filename[256]

Definition at line 46 of file pbmtopk.c.

Referenced by __gmp_assert_fail(), __gmp_assert_header(), __zzip_try_open(), _cairo_debug_print_traps(), _cairo_fopen(), _cairo_ft_unscaled_font_create_for_pattern(), _cairo_ft_unscaled_font_create_internal(), _cairo_ft_unscaled_font_init(), _cairo_ft_unscaled_font_init_key(), _cairo_output_stream_create_for_filename(), _EscIO2(), _FcConfigParse(), _ft_new_face_uncached(), _GFile_find_program_dir(), _ReadSplineFont(), _SFReadPostscript(), _SFReadTTF(), Efont::PsresDatabase::add_psres_file(), Efont::PsresDatabase::add_psres_path(), addFile(), agl_load_listfile(), AnnotFileAttachment::AnnotFileAttachment(), array_save(), array_save_ppm(), arrayWrite(), bmeps_delete(), boxaRead(), boxaWrite(), bundle_write_xml(), cairo_image_surface_create_from_png(), cairo_pdf_surface_create(), cairo_ps_surface_create(), cairo_script_create(), cairo_surface_write_to_png(), cairo_svg_surface_create(), cairo_xml_create(), calledit(), ccbaRead(), ccbaWrite(), ccbaWriteSVG(), ccbaWriteSVGString(), CFFParse(), check_file_lineno(), checkload(), CIDFont_type0_t1create_ToUnicode_stream(), Filter::UngetFILED::close(), CmdGraphics(), codegen(), codegen_error(), comp_file_entry(), concatenated_filename(), create_font(), createCommonDataFile(), createFontFromFile(), createtmpfile(), dbgcmd_list(), decode_switches(), DecodeArgs(), define_makeflags(), dev_read_mapfile(), dicread(), dicvalread(), dir_contents_file_exists_p(), dir_file_exists_p(), do_bmp(), do_file(), do_image(), do_jp2(), do_jpeg(), do_mps_pages(), do_open_image(), do_pdf(), do_pk_font(), do_png(), do_process(), do_texfig(), dotest(), T1Secondary::dotlessj_font(), dpx_create_fix_temp_file(), dpx_find__app__xyz(), dpx_find_agl_file(), dpx_find_cmap_file(), dpx_find_dfont_file(), dpx_find_enc_file(), dpx_find_fontmap_file(), dpx_find_iccp_file(), dpx_find_opentype_file(), dpx_find_sfd_file(), dpx_find_truetype_file(), dpx_find_type1_file(), dpx_foolsearch(), dpx_open_file(), dumpSignature(), dvi_locate_native_font(), embed_image(), encode_point_and_click_filename(), errfile(), eval_makefile(), exist_access(), extmatch(), Package::extractItem(), extractPackageName(), f_open(), FcConfigAcceptFilename(), FcConfigParseAndLoadFromMemoryInternal(), FcParseInclude(), fea_handle_include(), ff_do_cff(), file_impossible(), file_impossible_p(), Filter::FILED::FILED(), Filter::FILEE::FILEE(), fileerror(), fileExists(), find_file(), find_filename(), findBasename(), FindFamilyStyleKerns(), FindResourceFile(), FindResourceTtfFont(), font_from_lua(), font_to_lua(), FontOfFilename(), fopen_s(), fopenErr(), fopenReadStream(), fread_to_buf(), FTopen(), ftype(), full_qualified_tempnam(), g_iofile(), gbasename(), gdImageCreateFromFile(), gdImageCreateFromXpm(), gdImageFile(), gdSupportsFileType(), gentfm_access(), get_basename(), get_dirname(), getBestPatternExample(), Filter::UngetFILED::getFILE(), FormWidgetSignature::getObjectStartEnd(), getprogname(), gftype_access(), gimp_image_set_filename(), gimpts_magic(), gr_make_file_face(), gr_make_file_face_with_seg_cache(), gregorio_kpse_find(), gregorio_read_ok(), gregorio_vowel_rulefile_error(), gregorio_vowel_rulefile_parse(), gregorio_vowel_tables_load(), gregorio_write_ok(), grep(), idxread(), indwrite(), init_simplified_progress(), init_switches(), init_vt100_progress(), initialize_pk(), insistupdate(), io_lines(), io_open(), io_popen(), iof_copy_file_data(), iof_data_to_file(), iof_debug(), iof_file_reader_from_file(), iof_file_reader_from_file_handle(), iof_file_reopen_input(), iof_filter_file_reader(), iof_filter_file_writer(), iof_reader_to_file(), iof_result_to_file(), iof_setup_file_reader(), iof_setup_file_writer(), iof_write_file(), ioFormatTest(), is_absolute_path(), isPackageName(), IsResourceFork(), IsResourceForkFile(), IsResourceInBinary(), IsResourceInFile(), IsResourceInHex(), kpathsea_absolute_p(), kpathsea_fsyscp_fopen(), kpathsea_fsyscp_xfopen(), kpse_find_t1_or_tt(), landmark(), lastpage(), lj_cf_os_remove(), lj_cf_package_loader_c(), lj_cf_package_loader_croot(), lj_cf_package_loader_lua(), load_encoding_file(), load_image(), LoadColornameFile(), loader_C_luatex(), loader_Call_luatex(), loaderror(), loadfunc(), LoadKerningDataFromAfm(), LoadKerningDataFromAmfm(), LoadNamelist(), log_search(), lua_to_image(), luaL_loadfile(), luaL_loadfilex(), luatex_calledit(), luatex_kpse_clua_find(), luatex_kpse_find_aux(), luatex_kpse_lua_find(), m_img_get(), main(), make_res_filename(), makefontdef(), makeFullFilename(), makeFullFilenameAndDirs(), map_file_parse(), match(), md5_digest_add_file(), md5_digest_file(), DescriptionRegister::mergeRegister(), MmapFile(), mpfr_assert_fail(), mrb_debug_get_source(), mrb_debug_info_append_file(), mrb_debug_list(), mrb_proc_inspect(), mrb_proc_source_location(), my_fclose(), my_fopen_read(), my_fopen_write(), my_unlink(), NamesReadCFF(), NamesReadMacBinary(), NamesReadPostscript(), NamesReadTTF(), numaRead(), numaWrite(), Files::only_fext(), open_ip_file(), openFile(), OpenRtfFile(), optionfile(), os_pushresult(), os_remove(), output_applesingle(), output_binhex(), output_macbinary(), output_pl(), parse_base_encodings(), parse_encoding(), parse_filename(), parse_first_line(), parse_psfile(), parseDependency(), parseImport(), parseInclude(), parseMappings(), parseNormalizationCorrections(), parseTransliterator(), parseUCARules(), pattern_search(), pbm_loadfont(), pbm_loadpbmfont(), pdf_count_pages(), pdf_doc_init(), pdf_get_rect(), pdf_load_fontmap_file(), pdf_open_document(), pdf_out_init(), pdf_ximage_load_image(), pdfelib_open(), PickFOND(), PickTTFFont(), pixaRead(), pixaWrite(), pixRead(), pixReadJpeg(), pixReadTiff(), pixReadWithHint(), pixWrite(), pixWriteJpeg(), pixWriteTiff(), pixWriteTiffCustom(), pk_close_all(), pk_font(), PKopen(), pktype_access(), pmain(), ppdoc_load(), ppstream_read(), PreparsedUCD::PreparsedUCD(), printID(), processFile(), ps_include_page(), ps_searchfile(), ptspnm_load_image(), ptspnm_save_image(), ptstiff3_load_image(), ptstiff3_save_image(), pushFile(), pushresult(), PushSource(), read_file(), read_JPEG_file(), read_quant_tables(), read_scan_script(), read_t1_fontinfo(), read_vowel_rules(), read_wl_finfo(), readable(), readcharacter(), readFile(), readHeaderPng(), readHeaderTiff(), ReadInput(), FontMapper::readMappingTable(), Package::readPackage(), readParagraph(), drvHPGL::readPenColors(), ReadSplineFont(), ReadSplineFontInfo(), readttf(), readttfheader(), recursive(), FontManager::registerFont(), Files::removeIf(), replace_ext(), runargs(), sarrayAppend(), sarrayRead(), sarrayWrite(), scan_font(), scanfontcomments(), scope_finish(), searcher_C(), searcher_Croot(), searcher_Lua(), searchpath(), SearchTtfResources(), SearchTtfResourcesFile(), selective_vpath_search(), SFApplyFeatureFile(), SFApplyFeatureFilename(), SFD_Read(), SFDRead(), SFFromMF(), SFReadMacBinary(), SFReadMacBinaryInfo(), SFReadTTF(), sha256_digest_add_file(), sha256_digest_file(), sha384_digest_add_file(), sha384_digest_file(), sha512_digest_add_file(), sha512_digest_file(), source_file_new(), spc_handler_postscriptbox(), spc_handler_ps_file(), spc_handler_ps_plotfile(), Files::statSize(), strip(), strprepProfileLineFn(), styread(), T_FileStream_file_exists(), T_FileStream_open(), temporary_file(), testDrawing(), tfm_access(), TFMopen(), Files::tmpRemoveCleanup(), ttfInitFont(), ttfLoadTTCFont(), ttfLoadTTCHeader(), TTFopen(), u_fopen_68(), u_fopen_u_68(), u_parseDelimitedFile(), udata_create(), Filter::UngetFILED::UngetFILED(), update_autofont_map(), usrc_create(), usrc_createTextData(), usrc_createWithHeader(), vfty_acc(), w32ify(), write_bb(), write_encoding_file(), write_JPEG_file(), writeAssemblyCode(), Normalizer2DataBuilder::writeBinaryFile(), writeCCode(), Normalizer2DataBuilder::writeCSourceFile(), FontWriter::writeCSSFontFace(), Normalizer2DataBuilder::writeDataFile(), writeFileName(), Package::writePackage(), writePageImage(), writetfmfile(), WriteTTC(), xconcatenated_filename(), xfclose(), xfopen(), xfseek(), xfseek64(), xfseeko(), xftell(), xftell64(), xftello(), yydestruct(), yyerror(), yywarn(), zip_openfile(), zzip_dir_open(), zzip_dir_open_ext_io(), zzip_disk_findfile(), zzip_disk_fopen(), zzip_disk_open(), zzip_entry_ffile(), zzip_entry_findfile(), zzip_fopen(), zzip_freopen(), zzip_mem_disk_findfile(), zzip_mem_disk_fopen(), zzip_mem_disk_open(), zzip_open(), zzip_open_ext_io(), zzip_open_shared_io(), zzip_opendir(), and zzip_opendir_ext_io().

◆ height

integer height
static

Definition at line 105 of file pbmtopk.c.

Referenced by readcharacter(), and shipcharacter().

◆ heighttab

integer heighttab[16] = {0}

Definition at line 69 of file pbmtopk.c.

Referenced by writetfmfile().

◆ hgtindex

byte hgtindex[256]

Definition at line 54 of file pbmtopk.c.

Referenced by main(), optionfile(), readcharacter(), and writetfmfile().

◆ horzesc

integer horzesc[256]

Definition at line 50 of file pbmtopk.c.

Referenced by main(), optionfile(), readcharacter(), and shipcharacter().

◆ hppp

integer hppp
static

Definition at line 103 of file pbmtopk.c.

Referenced by main(), and writepreamble().

◆ italictab

integer italictab[64] = {0}

Definition at line 73 of file pbmtopk.c.

Referenced by writetfmfile().

◆ italindex

byte italindex[256]

Definition at line 56 of file pbmtopk.c.

Referenced by main(), optionfile(), readcharacter(), and writetfmfile().

◆ largestch

integer largestch = -1

Definition at line 61 of file pbmtopk.c.

Referenced by readcharacter(), and writetfmfile().

◆ numdepth

integer numdepth = 1

Definition at line 72 of file pbmtopk.c.

Referenced by writetfmfile().

◆ numheight

integer numheight = 1

Definition at line 70 of file pbmtopk.c.

Referenced by writetfmfile().

◆ numitalic

integer numitalic = 1

Definition at line 74 of file pbmtopk.c.

Referenced by writetfmfile().

◆ numparam

integer numparam = 0

Definition at line 76 of file pbmtopk.c.

Referenced by main(), and writetfmfile().

◆ numwidth

integer numwidth = 1

Definition at line 68 of file pbmtopk.c.

Referenced by writetfmfile().

◆ outputbyte

integer outputbyte
static

Definition at line 101 of file pbmtopk.c.

Referenced by pknyb(), and shipcharacter().

◆ parameters

◆ pbmtopk_pkloc

integer pbmtopk_pkloc = 0
static

Definition at line 99 of file pbmtopk.c.

Referenced by pbmtopk_pkbyte(), shipcharacter(), and writepostamble().

◆ pkfile

FILE * pkfile
static

Definition at line 97 of file pbmtopk.c.

Referenced by main(), and pbmtopk_pkbyte().

◆ pkname

char pkname[80+1]
static

◆ resolution

◆ smallestch

integer smallestch = 256

Definition at line 60 of file pbmtopk.c.

Referenced by readcharacter(), and writetfmfile().

◆ tfmfile

FILE* tfmfile
static

Definition at line 97 of file pbmtopk.c.

Referenced by bbtfmload(), main(), tfmbyte(), virtualfont(), and while().

◆ tfmindex

byte tfmindex[256]

Definition at line 53 of file pbmtopk.c.

Referenced by main(), optionfile(), readcharacter(), shipcharacter(), and writetfmfile().

◆ tfmname

char tfmname[80+1]
static

Definition at line 98 of file pbmtopk.c.

Referenced by do_update(), FontFind(), main(), ReadTFM(), set_glyph_unicode(), and write_tounicode().

◆ vertesc

integer vertesc[256]

Definition at line 51 of file pbmtopk.c.

Referenced by main(), optionfile(), readcharacter(), and shipcharacter().

◆ width

integer width
static

Definition at line 104 of file pbmtopk.c.

Referenced by equal(), readcharacter(), and shipcharacter().

◆ widthtab

integer widthtab[256] = {0}

Definition at line 67 of file pbmtopk.c.

Referenced by bmfMakeAsciiTables(), shipcharacter(), and writetfmfile().

◆ xchr

char xchr[256]
static
Initial value:
= {
'?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '?', '?', '?', '?', '?',
'?', '?', '?', '?', '?', '?', '?', '?',
' ', '!', '"', '#', '$', '%', '&', '\'',
'(', ')', '*', '+', ',', '-', '.', '/',
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', ':', ';', '<', '=', '>', '?',
'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
'X', 'Y', 'Z', '[', '\\', ']', '^', '_',
'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', '{', '|', '}', '~', '?' }

Definition at line 79 of file pbmtopk.c.

Referenced by initialize_pk().

◆ xoffset

◆ xord

ASCIIcode xord[128]
static

Definition at line 78 of file pbmtopk.c.

Referenced by initialize_pk(), writepreamble(), and writetfmfile().

◆ yoffset