ref: 2c853b38a717c615d3113a64033fc896e5888fa8
parent: 18fc64e6a335e82eb3adb9a1a4a9ba43768cd134
author: Werner Lemberg <[email protected]>
date: Sat Aug 7 20:22:34 EDT 2021
include/freetype/freetype.h (FT_Encoding): Improve documentation. Based on a suggestion by Antony Lee <[email protected]>.
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -730,11 +730,16 @@
* Same as FT_ENCODING_JOHAB. Deprecated.
*
* @note:
- * By default, FreeType enables a Unicode charmap and tags it with
- * `FT_ENCODING_UNICODE` when it is either provided or can be generated
- * from PostScript glyph name dictionaries in the font file. All other
- * encodings are considered legacy and tagged only if explicitly defined
- * in the font file. Otherwise, `FT_ENCODING_NONE` is used.
+ * When loading a font, FreeType makes a Unicode charmap active if
+ * possible (either if the font provides such a charmap, or if FreeType
+ * can synthesize one from PostScript glyph name dictionaries; in either
+ * case, the charmap is tagged with `FT_ENCODING_UNICODE`). If such a
+ * charmap is synthesized, it is placed at the first position of the
+ * charmap array.
+ *
+ * All other encodings are considered legacy and tagged only if
+ * explicitly defined in the font file. Otherwise, `FT_ENCODING_NONE` is
+ * used.
*
* `FT_ENCODING_NONE` is set by the BDF and PCF drivers if the charmap is
* neither Unicode nor ISO-8859-1 (otherwise it is set to