Crash when using font with a non ascii character (diacritics) in name
Summary:
We created our TTF font which I cannot unfortunately share. When I try to insert a symbol under space character, the Inkscape crashes. The crash is repeatable. The font name contains 'ě' letter and I can confirm this is the cause of crash. The font usage works fine in MS Word.
Steps to reproduce:
Text Tool -> Insert space character from our TTF
What happened?
Crash
<pre>
0# boost::stacktrace::basic_stacktrace<std::allocator<boost::stacktrace::frame> >::init(unsigned long long, unsigned long long) in libinkscape_base
1# Inkscape::Application::crash_handler(int) in libinkscape_base
2# _raise in msvcrt
3# _abort in msvcrt
4# __gnu_cxx::__verbose_terminate_handler() in libstdc___6
5# __cxxabiv1::__terminate(void (*)()) in libstdc___6
6# std::terminate() in libstdc___6
7# _cxa_throw in libstdc___6
8# Glib::ConvertError::throw_func(_GError*) in libglibmm_2_4_1
9# Glib::Error::throw_exception(_GError*) in libglibmm_2_4_1
10# Glib::operator<<(std::ostream&, Glib::ustring const&) in libglibmm_2_4_1
11# Inkscape::RecentlyUsedFonts::write_recently_used_fonts() in libinkscape_base
12# Inkscape::RecentlyUsedFonts::prepend_to_list(Glib::ustring const&) in libinkscape_base
13# Inkscape::FontLister::set_font_family(Glib::ustring, bool, bool) in libinkscape_base
14# Inkscape::FontLister::selection_update() in libinkscape_base
15# Inkscape::UI::Toolbar::TextToolbar::selection_changed(Inkscape::Selection*) in libinkscape_base
16# Inkscape::Selection::_emitModified(unsigned int) in libinkscape_base
17# Inkscape::Selection::_emit_modified(Inkscape::Selection*) in libinkscape_base
18# _g_clear_list in libglib_2_0_0
19# _g_main_context_check in libglib_2_0_0
20# _g_main_context_iteration in libglib_2_0_0
21# _g_application_run in libgio_2_0_0
22# 0x00007FF7AD3D37BB in inkscape
23# 0x00007FF7AD3D12EE in inkscape
24# 0x00007FF7AD3D13E6 in inkscape
25# _BaseThreadInitThunk in KERNEL32
26# _RtlUserThreadStart in ntdll
</pre>
<details><summary>System info</summary>
Inkscape 1.3 (0e150ed6c4, 2023-07-21)
GLib version: 2.76.4
GTK version: 3.24.38
glibmm version: 2.66.6
gtkmm version: 3.24.7
libxml2 version: 2.11.4
libxslt version: 1.1.38
Cairo version: 1.17.7
Pango version: 1.50.14
HarfBuzz version: 8.0.1
OS version: Windows 10 22H2
</details>
What should have happened?
No crash, insert character. ...
Version info
Inkscape 1.3 (0e150ed6c4, 2023-07-21)
Edited by Vity