-
Title says it all; I'd like to use this as a library, but I'm not quite sure how to go about doing that. This feels like more of a C++ question than one related to this library (my knowledge of building C++ code is extremely limited), but I'm not sure how building everything together would work for this library specifically so figure I might as well ask here. A minimal example usage would be extremely helpful, but even just some pointers for where to look to learn what I need to get up-and-running would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
My goal was to make the library portion as flexible as possible so that it can be used in many different ways, such as - the way it's used in the standalone executable, to progressively generate requested characters on the fly in the background, to work in a GPU accelerated context or not, etc. Because of that, it is nowhere as simple as I can try to describe what roughly happens in the main.cpp, starting about here. Keep in mind there is a lot of extra code because of all the different settings and error reporting.
|
Beta Was this translation helpful? Give feedback.
My goal was to make the library portion as flexible as possible so that it can be used in many different ways, such as - the way it's used in the standalone executable, to progressively generate requested characters on the fly in the background, to work in a GPU accelerated context or not, etc. Because of that, it is nowhere as simple as
generateEverything("myfont.ttf");
and done. What use case do you have in mind?I can try to describe what roughly happens in the main.cpp, starting about here. Keep in mind there is a lot of extra code because of all the different settings and error reporting.
msdfgen::FontHandle *
) usingmsdfgen::loadFont
(after initializingmsdfgen…