diff --git a/README.md b/README.md index 6ffddec..5ee5184 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ NanoVG ========== -NanoVG is small antialiased vector graphics rendering library for OpenGL. It has lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations. +NanoVG is small antialiased vector graphics rendering library for OpenGL. It has lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations. ## Screenshot @@ -100,5 +100,5 @@ The library is licensed under [zlib license](LICENSE.txt) [NanoVG mailing list](https://groups.google.com/forum/#!forum/nanovg) ## Links -Uses [stb_truetype](http://nothings.org) for font rendering. +Uses [stb_truetype](http://nothings.org) (or, optionally, [freetype](http://freetype.org)) for font rendering. Uses [stb_image](http://nothings.org) for image loading. diff --git a/premake4.lua b/premake4.lua index bd69f49..ae15408 100644 --- a/premake4.lua +++ b/premake4.lua @@ -5,13 +5,14 @@ solution "nanovg" location ( "build" ) configurations { "Debug", "Release" } platforms {"native", "x64", "x32"} - + project "nanovg" language "C" kind "StaticLib" includedirs { "src" } files { "src/*.c" } targetdir("build") + --defines { "FONS_USE_FREETYPE" } -- Uncomment to compile with FreeType support configuration "Debug" defines { "DEBUG" } @@ -19,7 +20,7 @@ solution "nanovg" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} + flags { "Optimize", "ExtraWarnings"} project "example_gl2" kind "ConsoleApp" @@ -28,7 +29,7 @@ solution "nanovg" includedirs { "src", "example" } targetdir("build") links { "nanovg" } - + configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } links { "GL", "GLU", "m", "GLEW" } @@ -48,7 +49,7 @@ solution "nanovg" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} + flags { "Optimize", "ExtraWarnings"} project "example_gl3" kind "ConsoleApp" @@ -57,7 +58,7 @@ solution "nanovg" includedirs { "src", "example" } targetdir("build") links { "nanovg" } - + configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } links { "GL", "GLU", "m", "GLEW" } @@ -77,7 +78,7 @@ solution "nanovg" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} + flags { "Optimize", "ExtraWarnings"} project "example_gl2_msaa" kind "ConsoleApp" @@ -87,7 +88,7 @@ solution "nanovg" includedirs { "src", "example" } targetdir("build") links { "nanovg" } - + configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } links { "GL", "GLU", "m", "GLEW" } @@ -107,7 +108,7 @@ solution "nanovg" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} + flags { "Optimize", "ExtraWarnings"} project "example_gl3_msaa" kind "ConsoleApp" @@ -117,7 +118,7 @@ solution "nanovg" includedirs { "src", "example" } targetdir("build") links { "nanovg" } - + configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } links { "GL", "GLU", "m", "GLEW" } @@ -137,7 +138,7 @@ solution "nanovg" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} + flags { "Optimize", "ExtraWarnings"} project "example_gles2" kind "ConsoleApp" @@ -146,7 +147,7 @@ solution "nanovg" includedirs { "src", "example" } targetdir("build") links { "nanovg" } - + configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } links { "GL", "GLU", "m", "GLEW" } @@ -174,7 +175,7 @@ solution "nanovg" includedirs { "src", "example" } targetdir("build") links { "nanovg" } - + configuration { "linux" } linkoptions { "`pkg-config --libs glfw3`" } links { "GL", "GLU", "m", "GLEW" } @@ -193,4 +194,4 @@ solution "nanovg" configuration "Release" defines { "NDEBUG" } - flags { "Optimize", "ExtraWarnings"} + flags { "Optimize", "ExtraWarnings"}