diff --git a/CMakeLists.txt b/CMakeLists.txt index 3859b97..e47b8eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,7 +96,7 @@ add_library(Lina::VG ALIAS ${PROJECT_NAME}) target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR}/include) target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_MAJOR=1) target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_MINOR=4) -target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_PATCH=4) +target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_PATCH=5) #-------------------------------------------------------------------- # Subdirectories & linking diff --git a/src/Core/Drawer.cpp b/src/Core/Drawer.cpp index 1cf3cdd..f0ee757 100644 --- a/src/Core/Drawer.cpp +++ b/src/Core/Drawer.cpp @@ -3213,9 +3213,6 @@ namespace LinaVG pos.x += (kerning + ch.m_advance.x) * scale + spacing; pos.y += ch.m_advance.y * scale; - if (w == 0.0f || h == 0.0f) - return; - Vertex v0, v1, v2, v3; if (isGradient) @@ -3263,6 +3260,9 @@ namespace LinaVG outData->characterInfo.push_back(ci); } + if (w == 0.0f || h == 0.0f) + return; + buf->PushVertex(v0); buf->PushVertex(v1); buf->PushVertex(v2);