mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
lottie: add missing delimiter
\u0003 (\3) can be used as delimiter. Now handled correctly.
This commit is contained in:
parent
607c338799
commit
24fba7cfae
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ void LottieBuilder::updateImage(LottieGroup* layer)
|
||||||
//TODO: unify with the updateText() building logic
|
//TODO: unify with the updateText() building logic
|
||||||
static void _fontText(TextDocument& doc, Scene* scene)
|
static void _fontText(TextDocument& doc, Scene* scene)
|
||||||
{
|
{
|
||||||
auto delim = "\r\n";
|
auto delim = "\r\n\3";
|
||||||
auto size = doc.size * 75.0f; //1 pt = 1/72; 1 in = 96 px; -> 72/96 = 0.75
|
auto size = doc.size * 75.0f; //1 pt = 1/72; 1 in = 96 px; -> 72/96 = 0.75
|
||||||
auto lineHeight = doc.size * 100.0f;
|
auto lineHeight = doc.size * 100.0f;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue