This commit should hopefully fix all the font problems we were having. Instead of using font substitution for emojis, we just instead call QFont::setFamilies. Builds with Qt versions below 5.13 will not have proper emoji support.
0) emojis seem to work fine at least in my environment
1) when selecting theme with font that is not on the system, a respectable default is used instead
2) custom fonts now work great on Windows (seems to be due to the removal of insertSubstitutions, which didn't seem to work in my build)
3) the dodgey 'Kristall XX' stuff was removed, as it seems like we don't need it
Custom search engines were not being displayed in the combobox after closing/reopening the settings dialog, it was defaulting to the default option. This fixes that.
Also adds the Veronica gopher search engine to list of default options
This broke running make with flags like -k or -s set,
because make apparently removes hyphens from those flags,
making it to think that we want to run a not existing target.
Also, flags are stored in env, so child processes know which flags
are in use and we don't have to provide them again.
Text which is selected in a kristalltextbrowser now has it's quotes replaced with ASCII quotes. This was done as copying fancy quotes is seen as an annoyance to most people. It is still possible to copy these quotes, if they are the only thing in the selection (whitespace also allowed, and commas, and fullstops)
The window state and geometry are now saved either after app.exec() finished, or if closeEvent is emitted on the MainWindow.
This allows the window geometry/state restoration to be a lot more reliable. E.g in my configuration (Fluxbox) - if I closed the window using my own defined keybinding, the state would not get saved
The that was used to achieve this is a bit messy/crazy, however, it seems to work quite well for all the cases I tested it on. This will finally close#141
0) when visiting for example, https://lists.orbitalfox.eu/archives/gemini/2020/000304.html the page title was getting a newline character in it (for some reason). This has now been fixed.
1) the tab title is now limited to 45 characters, until the string is chopped and an ellipsis (...) is appended. This limit was added to prevent pages with enormous titles from clogging up the tab bar. For this reason, the limit is quite high - users browing Gemini don't usually have that many tabs open (compared to the web), so i think we can get away with this high number.
For sites that do not have a page title (i.e no '#' heading) the document's filename is used. If no filename exists, then the hostname of the page is used.