diff options
| author | Po Lu | 2023-03-28 12:03:47 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-28 12:03:47 +0800 |
| commit | b3d100734b666bfe0541acfef7b8023a4edae455 (patch) | |
| tree | 7b94f66f77af7fe285d96d1bc626610ad0553206 | |
| parent | 64206ee3af9b59da9591aae400439bdea2cda09f (diff) | |
| download | emacs-b3d100734b666bfe0541acfef7b8023a4edae455.tar.gz emacs-b3d100734b666bfe0541acfef7b8023a4edae455.zip | |
Update Android port
* src/sfntfont.c (sfnt_open_tables): Fix typos in non-HarfBuzz
code.
| -rw-r--r-- | src/sfntfont.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sfntfont.c b/src/sfntfont.c index ee049b5c159..9c0910d18ed 100644 --- a/src/sfntfont.c +++ b/src/sfntfont.c | |||
| @@ -2756,17 +2756,6 @@ sfnt_open_tables (struct sfnt_font_desc *desc) | |||
| 2756 | if (!tables->hmtx) | 2756 | if (!tables->hmtx) |
| 2757 | goto bail5; | 2757 | goto bail5; |
| 2758 | 2758 | ||
| 2759 | #ifdef HAVE_HARFBUZZ | ||
| 2760 | /* Now copy over the subtable if necessary, as it is needed to read | ||
| 2761 | extra font tables required by HarfBuzz. */ | ||
| 2762 | tables->directory = subtable; | ||
| 2763 | tables->fd = fd; | ||
| 2764 | #else /* !HAVE_HARFBUZZ */ | ||
| 2765 | /* Otherwise, close the fd and free the table directory. */ | ||
| 2766 | xfree (subtable); | ||
| 2767 | emacs_close (fd); | ||
| 2768 | #endif /* HAVE_HARFBUZZ */ | ||
| 2769 | |||
| 2770 | /* Read instruction related font tables. These might not be | 2759 | /* Read instruction related font tables. These might not be |
| 2771 | present, which is OK, since instructing fonts is optional. */ | 2760 | present, which is OK, since instructing fonts is optional. */ |
| 2772 | tables->prep = sfnt_read_prep_table (fd, subtable); | 2761 | tables->prep = sfnt_read_prep_table (fd, subtable); |
| @@ -2782,6 +2771,17 @@ sfnt_open_tables (struct sfnt_font_desc *desc) | |||
| 2782 | tables->cvar = sfnt_read_cvar_table (fd, subtable, tables->fvar, | 2771 | tables->cvar = sfnt_read_cvar_table (fd, subtable, tables->fvar, |
| 2783 | tables->cvt); | 2772 | tables->cvt); |
| 2784 | 2773 | ||
| 2774 | #ifdef HAVE_HARFBUZZ | ||
| 2775 | /* Now copy over the subtable if necessary, as it is needed to read | ||
| 2776 | extra font tables required by HarfBuzz. */ | ||
| 2777 | tables->directory = subtable; | ||
| 2778 | tables->fd = fd; | ||
| 2779 | #else /* !HAVE_HARFBUZZ */ | ||
| 2780 | /* Otherwise, close the fd and free the table directory. */ | ||
| 2781 | xfree (subtable); | ||
| 2782 | emacs_close (fd); | ||
| 2783 | #endif /* HAVE_HARFBUZZ */ | ||
| 2784 | |||
| 2785 | return tables; | 2785 | return tables; |
| 2786 | 2786 | ||
| 2787 | bail5: | 2787 | bail5: |