diff --git a/src/GPUFontAtlasLayerCombo.cpp b/src/GPUFontAtlasLayerCombo.cpp index ce740f6..9d63be9 100644 --- a/src/GPUFontAtlasLayerCombo.cpp +++ b/src/GPUFontAtlasLayerCombo.cpp @@ -208,7 +208,8 @@ void GPUFontAtlasLayerCombo::draw(int width, int height){ font->collectBoundingBoxes(layer->getVariationText(), layer->getVariationTextAppearance(), bb, bbs, advanceY, - true, layer->getProps().fontSize_px); + true, layer->getProps().fontSize_px, + layer->getProps().lineHeight); glm::vec4 transformOrigin; getAndApplyTransformOrigin(transformOrigin, layer->getOuterNode(), diff --git a/src/Layer.h b/src/Layer.h index 11141f1..678bb71 100644 --- a/src/Layer.h +++ b/src/Layer.h @@ -32,6 +32,7 @@ class Layer { float rotation = 0; float fontSize_px = 42; float letterSpacing = 0; + float lineHeight = 1; std::array color = {0, 0, 0, 1}; bool mirror_x = false; float mirror_x_distance = 0;