2
0
Chlumsky 2 сар өмнө
parent
commit
6574da1310
8 өөрчлөгдсөн 20 нэмэгдсэн , 7 устгасан
  1. 6 0
      CHANGELOG.md
  2. 1 1
      LICENSE.txt
  3. 3 0
      README.md
  4. 6 2
      cmake/msdfgenConfig.cmake.in
  5. 1 1
      main.cpp
  6. 1 1
      msdfgen-ext.h
  7. 1 1
      msdfgen.h
  8. 1 1
      vcpkg.json

+ 6 - 0
CHANGELOG.md

@@ -1,4 +1,10 @@
 
 
+### Version 1.12.1 (2025-05-31)
+
+- Fixed a bug applying error correction incorrectly if shape's Y-axis is inverted (mainly affected SVG input)
+- Fixed error correction not being applied in the standalone executable in MTSDF mode with the `-scanline` option (default in non-Skia builds)
+- Minor CMake adjustments and warning fixes
+
 ## Version 1.12 (2024-05-18)
 ## Version 1.12 (2024-05-18)
 
 
 - Added the possibility to specify asymmetrical distance range (`-arange`, `-apxrange`)
 - Added the possibility to specify asymmetrical distance range (`-arange`, `-apxrange`)

+ 1 - 1
LICENSE.txt

@@ -1,6 +1,6 @@
 MIT License
 MIT License
 
 
-Copyright (c) 2014 - 2024 Viktor Chlumsky
+Copyright (c) 2014 - 2025 Viktor Chlumsky
 
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 of this software and associated documentation files (the "Software"), to deal

+ 3 - 0
README.md

@@ -147,6 +147,9 @@ Using a multi-channel distance field generated by this program is similarly simp
 The only additional operation is computing the **median** of the three channels inside the fragment shader,
 The only additional operation is computing the **median** of the three channels inside the fragment shader,
 right after sampling the distance field. This signed distance value can then be used the same way as usual.
 right after sampling the distance field. This signed distance value can then be used the same way as usual.
 
 
+**Important:** Make sure to interpret the MSDF color channels in linear space just like the alpha channel and not as sRGB,
+even if the image format (PNG, BMP) may suggest otherwise.
+
 The following is an example GLSL fragment shader with anti-aliasing:
 The following is an example GLSL fragment shader with anti-aliasing:
 
 
 ```glsl
 ```glsl

+ 6 - 2
cmake/msdfgenConfig.cmake.in

@@ -36,12 +36,16 @@ if(MSDFGEN_CORE_ONLY)
     if(${CMAKE_VERSION} VERSION_LESS "3.18.0")
     if(${CMAKE_VERSION} VERSION_LESS "3.18.0")
         set_target_properties(msdfgen::msdfgen-core PROPERTIES IMPORTED_GLOBAL TRUE)
         set_target_properties(msdfgen::msdfgen-core PROPERTIES IMPORTED_GLOBAL TRUE)
     endif()
     endif()
-    add_library(msdfgen::msdfgen ALIAS msdfgen::msdfgen-core)
+    if(NOT TARGET msdfgen::msdfgen)
+        add_library(msdfgen::msdfgen ALIAS msdfgen::msdfgen-core)
+    endif()
 else()
 else()
     if(${CMAKE_VERSION} VERSION_LESS "3.18.0")
     if(${CMAKE_VERSION} VERSION_LESS "3.18.0")
         set_target_properties(msdfgen::msdfgen-full PROPERTIES IMPORTED_GLOBAL TRUE)
         set_target_properties(msdfgen::msdfgen-full PROPERTIES IMPORTED_GLOBAL TRUE)
     endif()
     endif()
-    add_library(msdfgen::msdfgen ALIAS msdfgen::msdfgen-full)
+    if(NOT TARGET msdfgen::msdfgen)
+        add_library(msdfgen::msdfgen ALIAS msdfgen::msdfgen-full)
+    endif()
 endif()
 endif()
 
 
 if(MSDFGEN_STANDALONE_AVAILABLE)
 if(MSDFGEN_STANDALONE_AVAILABLE)

+ 1 - 1
main.cpp

@@ -2,7 +2,7 @@
 /*
 /*
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR - standalone console program
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR - standalone console program
  * --------------------------------------------------------------------------
  * --------------------------------------------------------------------------
- * A utility by Viktor Chlumsky, (c) 2014 - 2024
+ * A utility by Viktor Chlumsky, (c) 2014 - 2025
  *
  *
  */
  */
 
 

+ 1 - 1
msdfgen-ext.h

@@ -4,7 +4,7 @@
 /*
 /*
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
  * ---------------------------------------------
  * ---------------------------------------------
- * A utility by Viktor Chlumsky, (c) 2014 - 2024
+ * A utility by Viktor Chlumsky, (c) 2014 - 2025
  *
  *
  * The extension module provides ways to easily load input and save output using popular formats.
  * The extension module provides ways to easily load input and save output using popular formats.
  *
  *

+ 1 - 1
msdfgen.h

@@ -4,7 +4,7 @@
 /*
 /*
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
  * ---------------------------------------------
  * ---------------------------------------------
- * A utility by Viktor Chlumsky, (c) 2014 - 2024
+ * A utility by Viktor Chlumsky, (c) 2014 - 2025
  *
  *
  * The technique used to generate multi-channel distance fields in this code
  * The technique used to generate multi-channel distance fields in this code
  * has been developed by Viktor Chlumsky in 2014 for his master's thesis,
  * has been developed by Viktor Chlumsky in 2014 for his master's thesis,

+ 1 - 1
vcpkg.json

@@ -1,7 +1,7 @@
 {
 {
     "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json",
     "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/master/docs/vcpkg.schema.json",
     "name": "msdfgen",
     "name": "msdfgen",
-    "version": "1.12.0",
+    "version": "1.12.1",
     "default-features": [
     "default-features": [
         "extensions",
         "extensions",
         "geometry-preprocessing",
         "geometry-preprocessing",