Restore missing comment lines and other minor fixes

This commit is contained in:
Nikhil Ramakrishnan 2018-06-04 18:42:29 +05:30
parent cc62677224
commit 78d85b9c84
9 changed files with 19 additions and 19 deletions

View File

@ -118,7 +118,6 @@ FT_BEGIN_HEADER
* When this macro is not defined, FreeType offers alternative LCD * When this macro is not defined, FreeType offers alternative LCD
* rendering technology that produces excellent output without LCD * rendering technology that produces excellent output without LCD
* filtering. * filtering.
*
*/ */
/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ /* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
@ -212,7 +211,6 @@ FT_BEGIN_HEADER
* *
* Do not #undef this macro here since the build system might define * Do not #undef this macro here since the build system might define
* it for certain configurations only. * it for certain configurations only.
*
*/ */
/* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */ /* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */
@ -240,7 +238,6 @@ FT_BEGIN_HEADER
* systems that have multiple system libraries, some with or without * systems that have multiple system libraries, some with or without
* file stream support, in the cases where file stream support is not * file stream support, in the cases where file stream support is not
* necessary such as memory loading of font files. * necessary such as memory loading of font files.
*
*/ */
/* #define FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT */ /* #define FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT */
@ -532,6 +529,7 @@ FT_BEGIN_HEADER
* TrueType CMap support * TrueType CMap support
* *
* Here you can fine-tune which TrueType CMap table format shall be * Here you can fine-tune which TrueType CMap table format shall be
* supported.
*/ */
#define TT_CONFIG_CMAP_FORMAT_0 #define TT_CONFIG_CMAP_FORMAT_0
#define TT_CONFIG_CMAP_FORMAT_2 #define TT_CONFIG_CMAP_FORMAT_2
@ -612,7 +610,6 @@ FT_BEGIN_HEADER
* defined. * defined.
* *
* [1] https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx * [1] https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
*
*/ */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */

View File

@ -121,7 +121,6 @@ FT_BEGIN_HEADER
* When this macro is not defined, FreeType offers alternative LCD * When this macro is not defined, FreeType offers alternative LCD
* rendering technology that produces excellent output without LCD * rendering technology that produces excellent output without LCD
* filtering. * filtering.
*
*/ */
/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ /* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
@ -219,7 +218,6 @@ FT_BEGIN_HEADER
* If you use a build system like cmake or the `configure' script, * If you use a build system like cmake or the `configure' script,
* options set by those programs have precendence, overwriting the * options set by those programs have precendence, overwriting the
* value here with the configured one. * value here with the configured one.
*
*/ */
/* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */ /* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */
@ -240,7 +238,6 @@ FT_BEGIN_HEADER
* If you use a build system like cmake or the `configure' script, * If you use a build system like cmake or the `configure' script,
* options set by those programs have precendence, overwriting the * options set by those programs have precendence, overwriting the
* value here with the configured one. * value here with the configured one.
*
*/ */
/* #define FT_CONFIG_OPTION_USE_BZIP2 */ /* #define FT_CONFIG_OPTION_USE_BZIP2 */
@ -252,7 +249,6 @@ FT_BEGIN_HEADER
* systems that have multiple system libraries, some with or without * systems that have multiple system libraries, some with or without
* file stream support, in the cases where file stream support is not * file stream support, in the cases where file stream support is not
* necessary such as memory loading of font files. * necessary such as memory loading of font files.
*
*/ */
/* #define FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT */ /* #define FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT */
@ -271,7 +267,6 @@ FT_BEGIN_HEADER
* If you use a build system like cmake or the `configure' script, * If you use a build system like cmake or the `configure' script,
* options set by those programs have precendence, overwriting the * options set by those programs have precendence, overwriting the
* value here with the configured one. * value here with the configured one.
*
*/ */
/* #define FT_CONFIG_OPTION_USE_PNG */ /* #define FT_CONFIG_OPTION_USE_PNG */
@ -289,7 +284,6 @@ FT_BEGIN_HEADER
* If you use a build system like cmake or the `configure' script, * If you use a build system like cmake or the `configure' script,
* options set by those programs have precendence, overwriting the * options set by those programs have precendence, overwriting the
* value here with the configured one. * value here with the configured one.
*
*/ */
/* #define FT_CONFIG_OPTION_USE_HARFBUZZ */ /* #define FT_CONFIG_OPTION_USE_HARFBUZZ */
@ -418,7 +412,6 @@ FT_BEGIN_HEADER
* *
* Do not #undef these macros here since the build system might define * Do not #undef these macros here since the build system might define
* them for certain configurations only. * them for certain configurations only.
*
*/ */
/* #define FT_DEBUG_LEVEL_ERROR */ /* #define FT_DEBUG_LEVEL_ERROR */
/* #define FT_DEBUG_LEVEL_TRACE */ /* #define FT_DEBUG_LEVEL_TRACE */
@ -455,7 +448,6 @@ FT_BEGIN_HEADER
* *
* Do not #undef these macros here since the build system might define * Do not #undef these macros here since the build system might define
* them for certain configurations only. * them for certain configurations only.
*
*/ */
/* #define FT_DEBUG_AUTOFIT */ /* #define FT_DEBUG_AUTOFIT */
@ -474,7 +466,6 @@ FT_BEGIN_HEADER
* *
* Do not #undef this macro here since the build system might define * Do not #undef this macro here since the build system might define
* it for certain configurations only. * it for certain configurations only.
*
*/ */
/* #define FT_DEBUG_MEMORY */ /* #define FT_DEBUG_MEMORY */
@ -557,6 +548,7 @@ FT_BEGIN_HEADER
* TrueType CMap support * TrueType CMap support
* *
* Here you can fine-tune which TrueType CMap table format shall be * Here you can fine-tune which TrueType CMap table format shall be
* supported.
*/ */
#define TT_CONFIG_CMAP_FORMAT_0 #define TT_CONFIG_CMAP_FORMAT_0
#define TT_CONFIG_CMAP_FORMAT_2 #define TT_CONFIG_CMAP_FORMAT_2
@ -646,7 +638,6 @@ FT_BEGIN_HEADER
* defined. * defined.
* *
* [1] https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx * [1] https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
*
*/ */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2
@ -769,7 +760,6 @@ FT_BEGIN_HEADER
* engine gets compiled into FreeType. If defined, it is possible to * engine gets compiled into FreeType. If defined, it is possible to
* switch between the two engines using the `hinting-engine' property of * switch between the two engines using the `hinting-engine' property of
* the type1 driver module. * the type1 driver module.
*
*/ */
/* #define T1_CONFIG_OPTION_OLD_ENGINE */ /* #define T1_CONFIG_OPTION_OLD_ENGINE */
@ -813,7 +803,6 @@ FT_BEGIN_HEADER
* engine gets compiled into FreeType. If defined, it is possible to * engine gets compiled into FreeType. If defined, it is possible to
* switch between the two engines using the `hinting-engine' property of * switch between the two engines using the `hinting-engine' property of
* the cff driver module. * the cff driver module.
*
*/ */
/* #define CFF_CONFIG_OPTION_OLD_ENGINE */ /* #define CFF_CONFIG_OPTION_OLD_ENGINE */
@ -841,7 +830,6 @@ FT_BEGIN_HEADER
* *
* If this option is activated, it can be controlled with the * If this option is activated, it can be controlled with the
* `no-long-family-names' property of the pcf driver module. * `no-long-family-names' property of the pcf driver module.
*
*/ */
/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */ /* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */
@ -902,7 +890,6 @@ FT_BEGIN_HEADER
* [truetype] Fix metrics on size request for scalable fonts. * [truetype] Fix metrics on size request for scalable fonts.
* *
* This problematic commit is now reverted (more or less). * This problematic commit is now reverted (more or less).
*
*/ */
/* #define AF_CONFIG_OPTION_TT_SIZE_METRICS */ /* #define AF_CONFIG_OPTION_TT_SIZE_METRICS */

View File

@ -1005,6 +1005,7 @@
* accepts an FSRef instead of a path. * accepts an FSRef instead of a path.
* *
* This function is deprecated because Carbon data types (FSRef) * This function is deprecated because Carbon data types (FSRef)
* are not cross-platform, and thus not suitable for the FreeType API.
*/ */
FT_EXPORT_DEF( FT_Error ) FT_EXPORT_DEF( FT_Error )
FT_New_Face_From_FSRef( FT_Library library, FT_New_Face_From_FSRef( FT_Library library,
@ -1049,6 +1050,7 @@
* FT_New_Face_From_FSSpec is identical to FT_New_Face except it * FT_New_Face_From_FSSpec is identical to FT_New_Face except it
* accepts an FSSpec instead of a path. * accepts an FSSpec instead of a path.
* *
* This function is deprecated because FSSpec is deprecated in Mac OS X
*/ */
FT_EXPORT_DEF( FT_Error ) FT_EXPORT_DEF( FT_Error )
FT_New_Face_From_FSSpec( FT_Library library, FT_New_Face_From_FSSpec( FT_Library library,

View File

@ -396,6 +396,7 @@
* The number of glyph subroutines. * The number of glyph subroutines.
* *
* @Return: * @Return:
* The bias value.
*/ */
static FT_Int static FT_Int
cff_compute_bias( FT_Int in_charstring_type, cff_compute_bias( FT_Int in_charstring_type,

View File

@ -1653,6 +1653,7 @@
* known_othersubr_result_cnt * known_othersubr_result_cnt
* *
* for unhandled othersubrs the following pops adjust * for unhandled othersubrs the following pops adjust
* the stack pointer as necessary
*/ */
count = cf2_stack_count( opStack ); count = cf2_stack_count( opStack );

View File

@ -774,6 +774,7 @@
* known_othersubr_result_cnt * known_othersubr_result_cnt
* *
* for unhandled othersubrs the following pops adjust the * for unhandled othersubrs the following pops adjust the
* stack pointer as necessary
*/ */
if ( arg_cnt > top - decoder->stack ) if ( arg_cnt > top - decoder->stack )

View File

@ -32,7 +32,6 @@ FT_BEGIN_HEADER
* *
* Uncomment the following line if you are using ftraster.c as a * Uncomment the following line if you are using ftraster.c as a
* standalone module, fully independent of FreeType. * standalone module, fully independent of FreeType.
*
*/ */
/* #define STANDALONE_ */ /* #define STANDALONE_ */

View File

@ -2941,6 +2941,7 @@
* this range * this range
* GID 3 USHORT and its GID * GID 3 USHORT and its GID
* *
* Ranges are sorted by `uniStart'.
*/ */
#ifdef TT_CONFIG_CMAP_FORMAT_14 #ifdef TT_CONFIG_CMAP_FORMAT_14

View File

@ -7446,6 +7446,7 @@
* Selector Bit: 3 * Selector Bit: 3
* Return Bit(s): 10 * Return Bit(s): 10
* *
* XXX: UNDOCUMENTED!
*/ */
if ( (args[0] & 8 ) != 0 && exc->face->blend ) if ( (args[0] & 8 ) != 0 && exc->face->blend )
K |= 1 << 10; K |= 1 << 10;
@ -7472,6 +7473,7 @@
* Selector Bit: 6 * Selector Bit: 6
* Return Bit(s): 13 * Return Bit(s): 13
* *
* v40 does subpixel hinting by default.
*/ */
if ( ( args[0] & 64 ) != 0 ) if ( ( args[0] & 64 ) != 0 )
K |= 1 << 13; K |= 1 << 13;
@ -7489,6 +7491,7 @@
* Selector Bit: 10 * Selector Bit: 10
* Return Bit(s): 17 * Return Bit(s): 17
* *
* XXX: FreeType supports it, dependent on what client does?
*/ */
if ( ( args[0] & 1024 ) != 0 ) if ( ( args[0] & 1024 ) != 0 )
K |= 1 << 17; K |= 1 << 17;
@ -7499,6 +7502,7 @@
* Return Bit(s): 18 * Return Bit(s): 18
* *
* The only smoothing method FreeType supports unless someone sets * The only smoothing method FreeType supports unless someone sets
* FT_LOAD_TARGET_MONO.
*/ */
if ( ( args[0] & 2048 ) != 0 && exc->subpixel_hinting_lean ) if ( ( args[0] & 2048 ) != 0 && exc->subpixel_hinting_lean )
K |= 1 << 18; K |= 1 << 18;
@ -7510,6 +7514,7 @@
* Return Bit(s): 19 * Return Bit(s): 19
* *
* Grayscale rendering is what FreeType does anyway unless someone * Grayscale rendering is what FreeType does anyway unless someone
* sets FT_LOAD_TARGET_MONO or FT_LOAD_TARGET_LCD(_V)
*/ */
if ( ( args[0] & 4096 ) != 0 && exc->grayscale_cleartype ) if ( ( args[0] & 4096 ) != 0 && exc->grayscale_cleartype )
K |= 1 << 19; K |= 1 << 19;
@ -7537,6 +7542,7 @@
* Selector Bit: 7 * Selector Bit: 7
* Return Bit(s): 14 * Return Bit(s): 14
* *
* Functionality still needs to be added
*/ */
if ( ( args[0] & 128 ) != 0 && exc->compatible_widths ) if ( ( args[0] & 128 ) != 0 && exc->compatible_widths )
K |= 1 << 14; K |= 1 << 14;
@ -7546,6 +7552,7 @@
* Selector Bit: 8 * Selector Bit: 8
* Return Bit(s): 15 * Return Bit(s): 15
* *
* Functionality still needs to be added
*/ */
if ( ( args[0] & 256 ) != 0 && exc->vertical_lcd ) if ( ( args[0] & 256 ) != 0 && exc->vertical_lcd )
K |= 1 << 15; K |= 1 << 15;
@ -7555,6 +7562,7 @@
* Selector Bit: 9 * Selector Bit: 9
* Return Bit(s): 16 * Return Bit(s): 16
* *
* Functionality still needs to be added
*/ */
if ( ( args[0] & 512 ) != 0 && exc->bgr ) if ( ( args[0] & 512 ) != 0 && exc->bgr )
K |= 1 << 16; K |= 1 << 16;
@ -7566,6 +7574,7 @@
* Selector Bit: 10 * Selector Bit: 10
* Return Bit(s): 17 * Return Bit(s): 17
* *
* Functionality still needs to be added
*/ */
if ( ( args[0] & 1024 ) != 0 && exc->subpixel_positioned ) if ( ( args[0] & 1024 ) != 0 && exc->subpixel_positioned )
K |= 1 << 17; K |= 1 << 17;
@ -7575,6 +7584,7 @@
* Selector Bit: 11 * Selector Bit: 11
* Return Bit(s): 18 * Return Bit(s): 18
* *
* Functionality still needs to be added
*/ */
if ( ( args[0] & 2048 ) != 0 && exc->symmetrical_smoothing ) if ( ( args[0] & 2048 ) != 0 && exc->symmetrical_smoothing )
K |= 1 << 18; K |= 1 << 18;
@ -7584,6 +7594,7 @@
* Selector Bit: 12 * Selector Bit: 12
* Return Bit(s): 19 * Return Bit(s): 19
* *
* Functionality still needs to be added
*/ */
if ( ( args[0] & 4096 ) != 0 && exc->gray_cleartype ) if ( ( args[0] & 4096 ) != 0 && exc->gray_cleartype )
K |= 1 << 19; K |= 1 << 19;