emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/android b3d100734b6: Update Android port


From: Po Lu
Subject: feature/android b3d100734b6: Update Android port
Date: Tue, 28 Mar 2023 00:04:24 -0400 (EDT)

branch: feature/android
commit b3d100734b666bfe0541acfef7b8023a4edae455
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Update Android port
    
    * src/sfntfont.c (sfnt_open_tables): Fix typos in non-HarfBuzz
    code.
---
 src/sfntfont.c | 22 +++++++++++-----------
 1 file 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)
   if (!tables->hmtx)
     goto bail5;
 
-#ifdef HAVE_HARFBUZZ
-  /* Now copy over the subtable if necessary, as it is needed to read
-     extra font tables required by HarfBuzz.  */
-  tables->directory = subtable;
-  tables->fd = fd;
-#else /* !HAVE_HARFBUZZ */
-  /* Otherwise, close the fd and free the table directory.  */
-  xfree (subtable);
-  emacs_close (fd);
-#endif /* HAVE_HARFBUZZ */
-
   /* Read instruction related font tables.  These might not be
      present, which is OK, since instructing fonts is optional.  */
   tables->prep = sfnt_read_prep_table (fd, subtable);
@@ -2782,6 +2771,17 @@ sfnt_open_tables (struct sfnt_font_desc *desc)
     tables->cvar = sfnt_read_cvar_table (fd, subtable, tables->fvar,
                                         tables->cvt);
 
+#ifdef HAVE_HARFBUZZ
+  /* Now copy over the subtable if necessary, as it is needed to read
+     extra font tables required by HarfBuzz.  */
+  tables->directory = subtable;
+  tables->fd = fd;
+#else /* !HAVE_HARFBUZZ */
+  /* Otherwise, close the fd and free the table directory.  */
+  xfree (subtable);
+  emacs_close (fd);
+#endif /* HAVE_HARFBUZZ */
+
   return tables;
 
  bail5:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]