зеркало из https://github.com/microsoft/vcpkg.git
[freetype] add subpixel-rendering feature (#37443)
This commit is contained in:
Родитель
fe39c3c818
Коммит
0475ca4489
|
@ -1,3 +1,7 @@
|
|||
if("subpixel-rendering" IN_LIST FEATURES)
|
||||
set(SUBPIXEL_RENDERING_PATCH "subpixel-rendering.patch")
|
||||
endif()
|
||||
|
||||
vcpkg_from_sourceforge(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO freetype/freetype2
|
||||
|
@ -9,6 +13,7 @@ vcpkg_from_sourceforge(
|
|||
brotli-static.patch
|
||||
bzip2.patch
|
||||
fix-exports.patch
|
||||
${SUBPIXEL_RENDERING_PATCH}
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
|
||||
index 1976b33af959..b3425e55feec 100644
|
||||
--- a/include/freetype/config/ftoption.h
|
||||
+++ b/include/freetype/config/ftoption.h
|
||||
@@ -123,7 +123,7 @@ FT_BEGIN_HEADER
|
||||
* When this macro is not defined, FreeType offers alternative LCD
|
||||
* rendering technology that produces excellent output.
|
||||
*/
|
||||
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
|
||||
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
|
||||
|
||||
|
||||
/**************************************************************************
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "freetype",
|
||||
"version": "2.13.2",
|
||||
"port-version": 1,
|
||||
"description": "A library to render fonts.",
|
||||
"homepage": "https://www.freetype.org/",
|
||||
"license": "FTL OR GPL-2.0-or-later",
|
||||
|
@ -42,6 +43,9 @@
|
|||
"libpng"
|
||||
]
|
||||
},
|
||||
"subpixel-rendering": {
|
||||
"description": "Enables subpixel rendering."
|
||||
},
|
||||
"zlib": {
|
||||
"description": "Use zlib instead of internal library for DEFLATE",
|
||||
"dependencies": [
|
||||
|
|
|
@ -2834,7 +2834,7 @@
|
|||
},
|
||||
"freetype": {
|
||||
"baseline": "2.13.2",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"freetype-gl": {
|
||||
"baseline": "2022-01-17",
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "60a5a2596ec865db746a7ea741458322cf0cc2bc",
|
||||
"version": "2.13.2",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "443f320ccf3139bc1818f0cc273944a56e960d6e",
|
||||
"version": "2.13.2",
|
||||
|
|
Загрузка…
Ссылка в новой задаче