Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
language = "bash"
run = ""
26 changes: 13 additions & 13 deletions extern/ttconv/pprdrv_tt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ void sfnts_end_string(TTStreamWriter& stream)

/*
** This is called at the start of each new table.
** The argement is the length in bytes of the table
** The argument is the length in bytes of the table
** which will follow. If the new table will not fit
** in the current string, a new one is started.
*/
Expand Down Expand Up @@ -742,7 +742,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
ULONG checksum;
} tables[9];

BYTE *ptr; /* A pointer into the origional table directory. */
BYTE *ptr; /* A pointer into the original table directory. */
ULONG x,y; /* General use loop countes. */
int c; /* Input character. */
int diff;
Expand Down Expand Up @@ -821,7 +821,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)

debug("only %d tables selected",count);

/* Now, emmit the table directory. */
/* Now, emit the table directory. */
for (x=0; x < 9; x++)
{
if ( tables[x].length == 0 ) /* Skip missing tables */
Expand Down Expand Up @@ -852,7 +852,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
{
continue;
}
debug("emmiting table '%s'",table_names[x]);
debug("emitting table '%s'",table_names[x]);

/* 'glyf' table gets special treatment */
if ( strcmp(table_names[x],"glyf")==0 )
Expand Down Expand Up @@ -910,7 +910,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
**
** If we are creating a type 3 instead of a type 42 font,
** this array will instead convert PostScript character names
** to executable proceedures.
** to executable procedures.
--------------------------------------------------------------*/
const char *Apple_CharStrings[]=
{
Expand Down Expand Up @@ -1022,12 +1022,12 @@ void ttfont_CharStrings(TTStreamWriter& stream, struct TTFONT *font, std::vector
/* The 'post' table format number. */
post_format = getFixed( font->post_table );

/* Emmit the start of the PostScript code to define the dictionary. */
/* Emit the start of the PostScript code to define the dictionary. */
stream.printf("/CharStrings %d dict dup begin\n", glyph_ids.size()+1);
/* Section 5.8.2 table 5.7 of the PS Language Ref says a CharStrings dictionary must contain an entry for .notdef */
stream.printf("/.notdef 0 def\n");

/* Emmit one key-value pair for each glyph. */
/* Emit one key-value pair for each glyph. */
for (std::vector<int>::const_iterator i = glyph_ids.begin();
i != glyph_ids.end(); ++i)
{
Expand All @@ -1051,13 +1051,13 @@ void ttfont_CharStrings(TTStreamWriter& stream, struct TTFONT *font, std::vector
} /* end of ttfont_CharStrings() */

/*----------------------------------------------------------------
** Emmit the code to finish up the dictionary and turn
** Emit the code to finish up the dictionary and turn
** it into a font.
----------------------------------------------------------------*/
void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
{
/* If we are generating a type 3 font, we need to provide */
/* a BuildGlyph and BuildChar proceedures. */
/* a BuildGlyph and BuildChar procedures. */
if (font->target_type == PS_TYPE_3 ||
font->target_type == PS_TYPE_42_3_HYBRID)
{
Expand All @@ -1072,7 +1072,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)

stream.put_char('\n');

/* This proceedure is for compatibility with */
/* This procedure is for compatibility with */
/* level 1 interpreters. */
stream.putline("/BuildChar {");
stream.putline(" 1 index /Encoding get exch get");
Expand Down Expand Up @@ -1127,7 +1127,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
/* is a procedure. If it is, it executes it, otherwise, it */
/* lets the TrueType rasterizer loose on it. */

/* When this proceedure is executed the stack contains */
/* When this procedures is executed the stack contains */
/* the font dictionary and the character name. We */
/* exchange arguments and move the dictionary to the */
/* dictionary stack. */
Expand All @@ -1151,7 +1151,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
stream.putline(" get dup xcheck");
/* stack: CharStrings_entry */

/* If is a proceedure. Execute according to RBIIp 277-278. */
/* If is a procedure, Execute according to RBIIp 277-278. */
stream.putline(" {currentdict systemdict begin begin exec end end}");

/* Is a TrueType character index, let the rasterizer at it. */
Expand Down Expand Up @@ -1294,7 +1294,7 @@ void read_font(const char *filename, font_type_enum target_type, std::vector<int
font.numGlyphs = getUSHORT( font.post_table + 32 );

/* If we are generating a Type 3 font, we will need to */
/* have the 'loca' and 'glyf' tables arround while */
/* have the 'loca' and 'glyf' tables around while */
/* we are generating the CharStrings. */
if (font.target_type == PS_TYPE_3 || font.target_type == PS_TYPE_42_3_HYBRID)
{
Expand Down
6 changes: 3 additions & 3 deletions extern/ttconv/pprdrv_tt2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct FlaggedPoint
** overflow the stack on certain level 1 interpreters.
**
** Prepare to push another item onto the stack,
** starting a new proceedure if necessary.
** starting a new procedure if necessary.
**
** Not all the stack depth calculations in this routine
** are perfectly accurate, but they do the job.
Expand Down Expand Up @@ -131,7 +131,7 @@ void GlyphToType3::stack_end(TTStreamWriter& stream) /* calle
} /* end of stack_end() */

/*
** We call this routine to emmit the PostScript code
** We call this routine to emit the PostScript code
** for the character we have loaded with load_char().
*/
void GlyphToType3::PSConvert(TTStreamWriter& stream)
Expand Down Expand Up @@ -398,7 +398,7 @@ void GlyphToType3::load_char(TTFONT* font, BYTE *glyph)
} /* end of load_char() */

/*
** Emmit PostScript code for a composite character.
** Emit PostScript code for a composite character.
*/
void GlyphToType3::do_composite(TTStreamWriter& stream, struct TTFONT *font, BYTE *glyph)
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.