From 9c9fe1a6e373ab174667314d5be29c6822894f54 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 14 Jun 2016 02:08:28 +0200 Subject: Fix typos in various parts of the code. --- source/pdf/pdf-appearance.c | 4 ++-- source/pdf/pdf-device.c | 2 +- source/pdf/pdf-font.c | 2 +- source/pdf/pdf-form.c | 4 ++-- source/pdf/pdf-write.c | 2 +- source/pdf/pdf-xref.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/pdf') diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index 122f36ac..04a4bc75 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -860,7 +860,7 @@ static char *to_font_encoding(fz_context *ctx, pdf_font_desc *font, char *utf8) int i; int needs_converting = 0; - /* Temporay partial solution. We are using a slow lookup in the conversion + /* Temporary partial solution. We are using a slow lookup in the conversion * below, so we avoid performing the conversion unnecessarily. We check for * top-bit-set chars, and convert only if they are present. We should also * check that the font encoding is one that agrees with utf8 from 0 to 7f, @@ -2012,7 +2012,7 @@ static fz_text *fit_text(fz_context *ctx, font_info *font_rec, char *str, fz_rec } /* Post process text with the scale determined by the splitter - * and with the required offst */ + * and with the required offset */ for (span = text->head; span; span = span->next) { fz_pre_scale(&span->trm, splitter.scale, splitter.scale); diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c index 7ece963d..5c243e8f 100644 --- a/source/pdf/pdf-device.c +++ b/source/pdf/pdf-device.c @@ -386,7 +386,7 @@ pdf_dev_font(fz_context *ctx, pdf_device *pdev, fz_font *font) if (font->t3procs) fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support type 3 fonts"); if (font->ft_substitute) - fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support substitute fnots"); + fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support substitute fonts"); if (!pdf_font_writing_supported(font)) fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support font types found in this file"); diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c index 02af35b7..574519fd 100644 --- a/source/pdf/pdf-font.c +++ b/source/pdf/pdf-font.c @@ -1820,7 +1820,7 @@ pdf_add_to_unicode(fz_context *ctx, pdf_document *doc, fz_font *font) fz_buffer_printf(ctx, buf, "endcodespacerange\n"); /* Note to have a valid CMap, the number of entries in table set can - * not exceed 100, so we have to break into multipe tables. Also, note + * not exceed 100, so we have to break into multiple tables. Also, note * that to reduce the file size we should be looking for sequential * ranges. Per Adobe technical note #5411, we can't have a range * cross a boundary where the high order byte changes */ diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index 01efd818..928742ad 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -127,7 +127,7 @@ pdf_obj *pdf_lookup_field(fz_context *ctx, pdf_obj *form, char *name) static void reset_field(fz_context *ctx, pdf_document *doc, pdf_obj *field) { - /* Set V to DV whereever DV is present, and delete V where DV is not. + /* Set V to DV wherever DV is present, and delete V where DV is not. * FIXME: we assume for now that V has not been set unequal * to DV higher in the hierarchy than "field". * @@ -627,7 +627,7 @@ int pdf_pass_event(fz_context *ctx, pdf_document *doc, pdf_page *page, pdf_ui_ev hp->gen = pdf_to_gen(ctx, annot->obj); hp->state = HOTSPOT_POINTER_DOWN; changed = 1; - /* Exectute the down and focus actions */ + /* Execute the down and focus actions */ execute_additional_action(ctx, doc, annot->obj, "AA/Fo"); execute_additional_action(ctx, doc, annot->obj, "AA/D"); } diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 34e831d1..cadb9f82 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -1197,7 +1197,7 @@ add_linearization_objs(fz_context *ctx, pdf_document *doc, pdf_write_state *opts /* FIXME: Do we have named destinations? Do a E entry */ /* FIXME: Do we have interactive forms? Do a V entry */ /* FIXME: Do we have document information? Do an I entry */ - /* FIXME: Do we have logical structure heirarchy? Do a C entry */ + /* FIXME: Do we have logical structure hierarchy? Do a C entry */ /* FIXME: Do L, Page Label hint table */ pdf_dict_put_drop(ctx, hint_obj, PDF_NAME_Filter, PDF_NAME_FlateDecode); opts->hints_length = pdf_new_int(ctx, doc, INT_MIN); diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index e6f39cfe..f6f4c292 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -2289,7 +2289,7 @@ pdf_page_presentation(fz_context *ctx, pdf_page *page, float *duration) The functions are split across two files to allow calls to a version of the constructor that does not link in the interpreter. The interpreter references the built-in font and cmap resources - which are quite big. Not linking those into the mubusy binary + which are quite big. Not linking those into the mutool binary saves roughly 6MB of space. */ -- cgit v1.2.3