enkisoftware / imgui_markdown

Markdown for Dear ImGui
zlib License
1.03k stars 69 forks source link

compatible with c++11, add font scale #9

Closed Xrysnow closed 3 years ago

juliettef commented 3 years ago

imgui_markdown requires C++14 due to the use of aggregate initializers along with default member initializers. Adding C++11 constructors would break our users' code in a way that would be difficult to workaround and adding initializer list constructors is somewhat of a pain.

Regarding the font size we would prefer not to use font scaling as it's not very high quality but we are considering adding a way to allow users to set the font parameters though a function callback.

juliettef commented 3 years ago

Forgot to say many thanks for the PR. It's helped a lot with improving the code.

juliettef commented 3 years ago

Submitted question regarding C++11 support

dougbinks commented 3 years ago

We've updated the code with backwards compatible C++11 support, and will look into supporting font parameters through a function callback later on.

juliettef commented 3 years ago

See #13 for solution to font scale