text: fixed a corrupted italic style application

issue: https://github.com/thorvg/thorvg/issues/2669
This commit is contained in:
lpogic 2024-08-23 10:01:19 +02:00 committed by Hermet Park
parent 5f5060dbf2
commit df8c79fbc1
2 changed files with 2 additions and 1 deletions

View file

@ -34,3 +34,4 @@ Neo Xu <neo.xu1990@gmail.com>
Thaddeus Crews <repiteo@outlook.com>
Josh Soref <jsoref@gmail.com>
Elliott Sales de Andrade <quantum.analyst@gmail.com>
Łukasz Pomietło <oficjalnyadreslukasza@gmail.com>

View file

@ -98,9 +98,9 @@ struct Text::Impl
{
if (!loader) return false;
loader->request(shape, utf8, italic);
//reload
if (changed) {
loader->request(shape, utf8, italic);
loader->read();
changed = false;
}