[Commit] fontconfig/src fcfreetype.c,1.39,1.40

Keith Packard commit at keithp.com
Thu Jun 26 02:19:13 PDT 2003


Committed by: keithp

Update of /local/src/CVS/fontconfig/src
In directory home.keithp.com:/tmp/cvs-serv30860/src

Modified Files:
	fcfreetype.c 
Log Message:
Add autoconf checks for FT_Has_PS_Glyph_Names

Index: fcfreetype.c
===================================================================
RCS file: /local/src/CVS/fontconfig/src/fcfreetype.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- fcfreetype.c	25 Jun 2003 23:21:03 -0000	1.39
+++ fcfreetype.c	26 Jun 2003 08:19:11 -0000	1.40
@@ -1599,6 +1599,7 @@
     return h;
 }
 
+#if HAVE_FT_HAS_PS_GLYPH_NAMES
 /*
  * Use Type1 glyph names for fonts which have reliable names
  * and which export an Adobe Custom mapping
@@ -1684,6 +1685,7 @@
     }
     return 0;
 }
+#endif
 
 /*
  * Map a UCS4 glyph to a glyph index.  Use all available encoding
@@ -1731,6 +1733,7 @@
 	if (glyphindex)
 	    return glyphindex;
     }
+#if HAVE_FT_HAS_PS_GLYPH_NAMES
     /*
      * Check postscript name table if present
      */
@@ -1744,6 +1747,7 @@
 		return glyphindex;
 	}
     }
+#endif
     return 0;
 }
 
@@ -1933,6 +1937,7 @@
 #endif
 	}
     }
+#if HAVE_FT_HAS_PS_GLYPH_NAMES
     /*
      * Add mapping from PS glyph names if available
      */
@@ -1967,6 +1972,7 @@
 	    }
 	}
     }
+#endif
 #ifdef CHECK
     printf ("%d glyphs %d encoded\n", (int) face->num_glyphs, FcCharSetCount (fcs));
     for (ucs4 = 0; ucs4 <= font_max; ucs4++)




More information about the Commit mailing list