Fix SVG font rendering after ThorVG update.
(cherry picked from commit 35b0354577
)
This commit is contained in:
parent
9acd4cfdfc
commit
33618f25fd
|
@ -126,7 +126,7 @@ FT_Error tvg_svg_in_ot_preset_slot(FT_GlyphSlot p_slot, FT_Bool p_cache, FT_Poin
|
||||||
xml_body += vformat("</%s>", parser->get_node_name());
|
xml_body += vformat("</%s>", parser->get_node_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String temp_xml_str = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 0 0\">" + xml_body;
|
String temp_xml_str = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1 1\">" + xml_body;
|
||||||
CharString temp_xml = temp_xml_str.utf8();
|
CharString temp_xml = temp_xml_str.utf8();
|
||||||
|
|
||||||
std::unique_ptr<tvg::Picture> picture = tvg::Picture::gen();
|
std::unique_ptr<tvg::Picture> picture = tvg::Picture::gen();
|
||||||
|
|
|
@ -126,7 +126,7 @@ FT_Error tvg_svg_in_ot_preset_slot(FT_GlyphSlot p_slot, FT_Bool p_cache, FT_Poin
|
||||||
xml_body += vformat("</%s>", parser->get_node_name());
|
xml_body += vformat("</%s>", parser->get_node_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String temp_xml_str = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 0 0\">" + xml_body;
|
String temp_xml_str = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1 1\">" + xml_body;
|
||||||
CharString temp_xml = temp_xml_str.utf8();
|
CharString temp_xml = temp_xml_str.utf8();
|
||||||
|
|
||||||
std::unique_ptr<tvg::Picture> picture = tvg::Picture::gen();
|
std::unique_ptr<tvg::Picture> picture = tvg::Picture::gen();
|
||||||
|
|
Loading…
Reference in New Issue