[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 2c853b3: include/freetype/freetype.h (FT_Encoding): I
From: |
Werner Lemberg |
Subject: |
[freetype2] master 2c853b3: include/freetype/freetype.h (FT_Encoding): Improve documentation. |
Date: |
Sat, 7 Aug 2021 18:24:48 -0400 (EDT) |
branch: master
commit 2c853b38a717c615d3113a64033fc896e5888fa8
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>
include/freetype/freetype.h (FT_Encoding): Improve documentation.
Based on a suggestion by Antony Lee <anntzer.lee@gmail.com>.
---
include/freetype/freetype.h | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 77fede3..43eb90f 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -730,11 +730,16 @@ FT_BEGIN_HEADER
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 2c853b3: include/freetype/freetype.h (FT_Encoding): Improve documentation.,
Werner Lemberg <=