[smooth] Dubious fix for Firefox.

* src/base/ftlcdfil.c (FT_Library_SetLcdFilter{,Weights})
[!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Return FT_Err_Ok instead of
FT_Err_Unimplemented_Feature.
* include/freetype/ftlcdfil.h: Documentation updated.
This commit is contained in:
Alexei Podtelezhnikov 2017-03-12 22:18:55 -04:00
parent 3f663bc648
commit 51dd542e55
3 changed files with 17 additions and 10 deletions

View File

@ -1,3 +1,12 @@
2017-03-12 Alexei Podtelezhnikov <apodtele@gmail.com>
[smooth] Dubious fix for Firefox.
* src/base/ftlcdfil.c (FT_Library_SetLcdFilter{,Weights})
[!FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Return FT_Err_Ok instead of
FT_Err_Unimplemented_Feature.
* include/freetype/ftlcdfil.h: Documentation updated.
2017-03-08 Alexei Podtelezhnikov <apodtele@gmail.com>
[smooth] Harmony itself.

View File

@ -229,10 +229,9 @@ FT_BEGIN_HEADER
* @FT_LCD_FILTER_NONE in order to enable it.
*
* Due to *PATENTS* covering subpixel rendering, this function doesn't
* do anything except returning `FT_Err_Unimplemented_Feature' if the
* configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not
* defined in your build of the library, which should correspond to all
* default builds of FreeType.
* do anything if FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined
* in your build of the library, which should correspond to all default
* builds of FreeType.
*
* @since:
* 2.3.0
@ -264,10 +263,9 @@ FT_BEGIN_HEADER
*
* @note:
* Due to *PATENTS* covering subpixel rendering, this function doesn't
* do anything except returning `FT_Err_Unimplemented_Feature' if the
* configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not
* defined in your build of the library, which should correspond to all
* default builds of FreeType.
* do anything if FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined
* in your build of the library, which should correspond to all default
* builds of FreeType.
*
* LCD filter weights can also be set per face using @FT_Face_Properties
* with @FT_PARAM_TAG_LCD_FILTER_WEIGHTS.

View File

@ -377,7 +377,7 @@
FT_UNUSED( library );
FT_UNUSED( weights );
return FT_THROW( Unimplemented_Feature );
return FT_Err_Ok;
}
@ -388,7 +388,7 @@
FT_UNUSED( library );
FT_UNUSED( filter );
return FT_THROW( Unimplemented_Feature );
return FT_Err_Ok;
}
#endif /* !FT_CONFIG_OPTION_SUBPIXEL_RENDERING */