msdfgen/1.12

Multi-channel signed distance field generator
Recipe info
2024-06-16

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
msdfgen/1.12

Using msdfgen

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
msdfgen/1.12
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("msdfgen/1.12")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): msdfgen
  • CMake target name(s): msdfgen::msdgen-all-unofficial
  • _msdfgen => msdfgen::msdfgen
    msdfgen-ext => msdfgen::msdfgen-ext
    
  • pkg-config file name(s): msdfgen.pc
  • _msdfgen => msdfgen-_msdfgen.pc
    msdfgen-ext => msdfgen-msdfgen-ext.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(msdfgen REQUIRED)
# ...
target_link_libraries(YOUR_TARGET msdfgen::msdgen-all-unofficial)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the msdfgen homepage listed above:

#include "msdfgen/core/Bitmap.h"
#include "msdfgen/core/Bitmap.hpp"
#include "msdfgen/core/BitmapRef.hpp"
#include "msdfgen/core/Contour.h"
#include "msdfgen/core/DistanceMapping.h"
#include "msdfgen/core/EdgeColor.h"
#include "msdfgen/core/EdgeHolder.h"
#include "msdfgen/core/MSDFErrorCorrection.h"
#include "msdfgen/core/Projection.h"
#include "msdfgen/core/Range.hpp"
#include "msdfgen/core/SDFTransformation.h"
#include "msdfgen/core/Scanline.h"
#include "msdfgen/core/Shape.h"
#include "msdfgen/core/ShapeDistanceFinder.h"
#include "msdfgen/core/ShapeDistanceFinder.hpp"
#include "msdfgen/core/SignedDistance.hpp"
#include "msdfgen/core/Vector2.hpp"
#include "msdfgen/core/arithmetics.hpp"
#include "msdfgen/core/base.h"
#include "msdfgen/core/bitmap-interpolation.hpp"
#include "msdfgen/core/contour-combiners.h"
#include "msdfgen/core/edge-coloring.h"
#include "msdfgen/core/edge-segments.h"
#include "msdfgen/core/edge-selectors.h"
#include "msdfgen/core/equation-solver.h"
#include "msdfgen/core/export-svg.h"
#include "msdfgen/core/generator-config.h"
#include "msdfgen/core/msdf-error-correction.h"
#include "msdfgen/core/pixel-conversion.hpp"
#include "msdfgen/core/rasterization.h"
#include "msdfgen/core/render-sdf.h"
#include "msdfgen/core/save-bmp.h"
#include "msdfgen/core/save-fl32.h"
#include "msdfgen/core/save-rgba.h"
#include "msdfgen/core/save-tiff.h"
#include "msdfgen/core/sdf-error-estimation.h"
#include "msdfgen/core/shape-description.h"
#include "msdfgen/ext/import-font.h"
#include "msdfgen/ext/import-svg.h"
#include "msdfgen/ext/resolve-shape-geometry.h"
#include "msdfgen/ext/save-png.h"
#include "msdfgen/msdfgen-config.h"
#include "msdfgen/msdfgen-ext.h"
#include "msdfgen/msdfgen.h"
#include "msdfgen/msdfgen/msdfgen-config.h"