@@ -619,7 +619,7 @@ void sfnts_end_string(TTStreamWriter& stream)
619619
620620/*
621621** This is called at the start of each new table.
622- ** The argument is the length in bytes of the table
622+ ** The argement is the length in bytes of the table
623623** which will follow. If the new table will not fit
624624** in the current string, a new one is started.
625625*/
@@ -742,7 +742,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
742742 ULONG checksum;
743743 } tables[9 ];
744744
745- BYTE *ptr; /* A pointer into the original table directory. */
745+ BYTE *ptr; /* A pointer into the origional table directory. */
746746 ULONG x,y; /* General use loop countes. */
747747 int c; /* Input character. */
748748 int diff;
@@ -821,7 +821,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
821821
822822 debug (" only %d tables selected" ,count);
823823
824- /* Now, emit the table directory. */
824+ /* Now, emmit the table directory. */
825825 for (x=0 ; x < 9 ; x++)
826826 {
827827 if ( tables[x].length == 0 ) /* Skip missing tables */
@@ -910,7 +910,7 @@ void ttfont_sfnts(TTStreamWriter& stream, struct TTFONT *font)
910910**
911911** If we are creating a type 3 instead of a type 42 font,
912912** this array will instead convert PostScript character names
913- ** to executable procedures .
913+ ** to executable proceedures .
914914--------------------------------------------------------------*/
915915const char *Apple_CharStrings[]=
916916{
@@ -1022,7 +1022,7 @@ void ttfont_CharStrings(TTStreamWriter& stream, struct TTFONT *font, std::vector
10221022 /* The 'post' table format number. */
10231023 post_format = getFixed ( font->post_table );
10241024
1025- /* Emit the start of the PostScript code to define the dictionary. */
1025+ /* Emmit the start of the PostScript code to define the dictionary. */
10261026 stream.printf (" /CharStrings %d dict dup begin\n " , glyph_ids.size ()+1 );
10271027 /* Section 5.8.2 table 5.7 of the PS Language Ref says a CharStrings dictionary must contain an entry for .notdef */
10281028 stream.printf (" /.notdef 0 def\n " );
@@ -1051,13 +1051,13 @@ void ttfont_CharStrings(TTStreamWriter& stream, struct TTFONT *font, std::vector
10511051} /* end of ttfont_CharStrings() */
10521052
10531053/* ----------------------------------------------------------------
1054- ** Emit the code to finish up the dictionary and turn
1054+ ** Emmit the code to finish up the dictionary and turn
10551055** it into a font.
10561056----------------------------------------------------------------*/
10571057void ttfont_trailer (TTStreamWriter& stream, struct TTFONT *font)
10581058{
10591059 /* If we are generating a type 3 font, we need to provide */
1060- /* a BuildGlyph and BuildChar procedures . */
1060+ /* a BuildGlyph and BuildChar proceedures . */
10611061 if (font->target_type == PS_TYPE_3 ||
10621062 font->target_type == PS_TYPE_42_3_HYBRID)
10631063 {
@@ -1072,7 +1072,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
10721072
10731073 stream.put_char (' \n ' );
10741074
1075- /* This procedure is for compatibility with */
1075+ /* This proceedure is for compatibility with */
10761076 /* level 1 interpreters. */
10771077 stream.putline (" /BuildChar {" );
10781078 stream.putline (" 1 index /Encoding get exch get" );
@@ -1127,7 +1127,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
11271127 /* is a procedure. If it is, it executes it, otherwise, it */
11281128 /* lets the TrueType rasterizer loose on it. */
11291129
1130- /* When this procedure is executed the stack contains */
1130+ /* When this proceedure is executed the stack contains */
11311131 /* the font dictionary and the character name. We */
11321132 /* exchange arguments and move the dictionary to the */
11331133 /* dictionary stack. */
@@ -1151,7 +1151,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
11511151 stream.putline (" get dup xcheck" );
11521152 /* stack: CharStrings_entry */
11531153
1154- /* If is a procedure . Execute according to RBIIp 277-278. */
1154+ /* If is a proceedure . Execute according to RBIIp 277-278. */
11551155 stream.putline (" {currentdict systemdict begin begin exec end end}" );
11561156
11571157 /* Is a TrueType character index, let the rasterizer at it. */
@@ -1294,7 +1294,7 @@ void read_font(const char *filename, font_type_enum target_type, std::vector<int
12941294 font.numGlyphs = getUSHORT ( font.post_table + 32 );
12951295
12961296 /* If we are generating a Type 3 font, we will need to */
1297- /* have the 'loca' and 'glyf' tables around while */
1297+ /* have the 'loca' and 'glyf' tables arround while */
12981298 /* we are generating the CharStrings. */
12991299 if (font.target_type == PS_TYPE_3 || font.target_type == PS_TYPE_42_3_HYBRID)
13001300 {
@@ -1345,14 +1345,14 @@ void insert_ttfont(const char *filename, TTStreamWriter& stream,
13451345 ttfont_FontInfo (stream, &font);
13461346
13471347 /* If we are generating a type 42 font, */
1348- /* emit the sfnts array. */
1348+ /* emmit the sfnts array. */
13491349 if (font.target_type == PS_TYPE_42 ||
13501350 font.target_type == PS_TYPE_42_3_HYBRID)
13511351 {
13521352 ttfont_sfnts (stream, &font);
13531353 }
13541354
1355- /* Emit the CharStrings array. */
1355+ /* Emmit the CharStrings array. */
13561356 ttfont_CharStrings (stream, &font, glyph_ids);
13571357
13581358 /* Send the font trailer. */
0 commit comments