Browse Source

Readme update

Chlumsky 2 days ago
parent
commit
10728a9971
6 changed files with 14 additions and 7 deletions
  1. 1 1
      LICENSE.txt
  2. 9 2
      README.md
  3. 1 1
      ext/import-svg.cpp
  4. 1 1
      main.cpp
  5. 1 1
      msdfgen-ext.h
  6. 1 1
      msdfgen.h

+ 1 - 1
LICENSE.txt

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

+ 9 - 2
README.md

@@ -1,5 +1,8 @@
 # Multi-channel signed distance field generator
 
+[![Sponsor this project](https://img.shields.io/badge/github-sponsor-magenta?logo=github)](https://github.com/sponsors/Chlumsky)
+[![Buy me a coffee](https://img.shields.io/badge/-buy_me_a_coffee-gray?logo=buy-me-a-coffee)](https://buymeacoffee.com/chlumsky)
+
 This is a utility for generating signed distance fields from vector shapes and font glyphs,
 which serve as a texture representation that can be used in real-time graphics to efficiently reproduce said shapes.
 Although it can also be used to generate conventional signed distance fields best known from
@@ -46,7 +49,7 @@ the CMake configuration will take care of fetching all required packages from vc
 
 The standalone program is executed as
 ```
-msdfgen.exe <mode> <input> <options>
+msdfgen <mode> <input> <options>
 ```
 where only the input specification is required.
 
@@ -87,7 +90,7 @@ Some of the important ones are:
 
 For example,
 ```
-msdfgen.exe msdf -font C:\Windows\Fonts\arialbd.ttf 'M' -o msdf.png -dimensions 32 32 -pxrange 4 -autoframe -testrender render.png 1024 1024
+msdfgen msdf -font C:\Windows\Fonts\arialbd.ttf 'M' -o msdf.png -dimensions 32 32 -pxrange 4 -autoframe -testrender render.png 1024 1024
 ```
 
 will take the glyph capital M from the Arial Bold typeface, generate a 32&times;32 multi-channel distance field
@@ -218,3 +221,7 @@ would represent a square with magenta and yellow edges,
 { 0, 1; (+1.6, -0.8; -1.6, -0.8); # }
 ```
 is a teardrop shape formed by a single cubic Bézier curve.
+
+![MSDFgen logo](https://github.com/user-attachments/assets/080ee448-07e1-4d54-afcb-82f2565d0a78)
+
+Created by Viktor Chlumský, © 2015 - 2026

+ 1 - 1
ext/import-svg.cpp

@@ -382,7 +382,7 @@ static std::string xmlDecode(const char *start, const char *end) {
             return std::string();
         if (start == buffer.data()) {
             buffer.resize(end-start, '\0');
-            return (std::string &&) buffer;
+            return buffer;
         }
     }
     return std::string(start, end);

+ 1 - 1
main.cpp

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

+ 1 - 1
msdfgen-ext.h

@@ -4,7 +4,7 @@
 /*
  * MULTI-CHANNEL SIGNED DISTANCE FIELD GENERATOR
  * ---------------------------------------------
- * A utility by Viktor Chlumsky, (c) 2014 - 2025
+ * A utility by Viktor Chlumsky, (c) 2015 - 2026
  *
  * 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
  * ---------------------------------------------
- * A utility by Viktor Chlumsky, (c) 2014 - 2025
+ * A utility by Viktor Chlumsky, (c) 2015 - 2026
  *
  * 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,