@@ -661,36 +661,12 @@ FT_BEGIN_HEADER
661
661
* not) instructions in a certain way so that all TrueType fonts look like
662
662
* they do in a Windows ClearType (DirectWrite) environment. See [1] for a
663
663
* technical overview on what this means. See `ttinterp.h` for more
664
- * details on the LEAN option.
664
+ * details on this option.
665
665
*
666
- * There are three possible values.
667
- *
668
- * Value 1:
669
- * This value is associated with the 'Infinality' moniker, contributed by
670
- * an individual nicknamed Infinality with the goal of making TrueType
671
- * fonts render better than on Windows. A high amount of configurability
672
- * and flexibility, down to rules for single glyphs in fonts, but also
673
- * very slow. Its experimental and slow nature and the original
674
- * developer losing interest meant that this option was never enabled in
675
- * default builds.
676
- *
677
- * The corresponding interpreter version is v38.
678
- *
679
- * Value 2:
680
- * The new default mode for the TrueType driver. The Infinality code
681
- * base was stripped to the bare minimum and all configurability removed
682
- * in the name of speed and simplicity. The configurability was mainly
683
- * aimed at legacy fonts like 'Arial', 'Times New Roman', or 'Courier'.
684
- * Legacy fonts are fonts that modify vertical stems to achieve clean
685
- * black-and-white bitmaps. The new mode focuses on applying a minimal
686
- * set of rules to all fonts indiscriminately so that modern and web
687
- * fonts render well while legacy fonts render okay.
688
- *
689
- * The corresponding interpreter version is v40.
690
- *
691
- * Value 3:
692
- * Compile both, making both v38 and v40 available (the latter is the
693
- * default).
666
+ * The new default mode focuses on applying a minimal set of rules to all
667
+ * fonts indiscriminately so that modern and web fonts render well while
668
+ * legacy fonts render okay. The corresponding interpreter version is v40.
669
+ * The so-called Infinality mode (v38) is no longer available in FreeType.
694
670
*
695
671
* By undefining these, you get rendering behavior like on Windows without
696
672
* ClearType, i.e., Windows XP without ClearType enabled and Win9x
@@ -705,9 +681,7 @@ FT_BEGIN_HEADER
705
681
* [1]
706
682
* https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
707
683
*/
708
- /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
709
- #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2
710
- /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */
684
+ #define TT_CONFIG_OPTION_SUBPIXEL_HINTING
711
685
712
686
713
687
/**************************************************************************
@@ -977,21 +951,14 @@ FT_BEGIN_HEADER
977
951
978
952
979
953
/*
980
- * The next three macros are defined if native TrueType hinting is
954
+ * The next two macros are defined if native TrueType hinting is
981
955
* requested by the definitions above. Don't change this.
982
956
*/
983
957
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
984
958
#define TT_USE_BYTECODE_INTERPRETER
985
-
986
959
#ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
987
- #if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 1
988
- #define TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
989
- #endif
990
-
991
- #if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 2
992
960
#define TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL
993
961
#endif
994
- #endif
995
962
#endif
996
963
997
964
0 commit comments