Commit be6fe77405c52248cae73f172395cae2314cb8c5

Werner Lemberg 2007-02-11T13:15:25

Some more info on Unicode cmaps.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index bc9223c..3520d35 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -2813,6 +2813,11 @@ FT_BEGIN_HEADER
   /*    This function returns an error if no charmap in the face           */
   /*    corresponds to the encoding queried here.                          */
   /*                                                                       */
+  /*    Because many fonts contain more than a single cmap for Unicode     */
+  /*    encoding, this function has some special code to select the one    */
+  /*    which covers Unicode best.  It is thus preferable to               */
+  /*    @FT_Set_Charmap in this case.                                      */
+  /*                                                                       */
   FT_EXPORT( FT_Error )
   FT_Select_Charmap( FT_Face      face,
                      FT_Encoding  encoding );