mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
change the way font specifications are used in UI config files
If no font family is specified, enforce use of Sans to match GTK behaviour (which we inadvertently relied on, it appears)
This commit is contained in:
parent
280fc81e05
commit
01df705f70
5 changed files with 72 additions and 41 deletions
|
|
@ -206,6 +206,18 @@ xpm2rgba (const char** xpm, uint32_t& w, uint32_t& h)
|
|||
return (savergb);
|
||||
}
|
||||
|
||||
Pango::FontDescription
|
||||
sanitized_font (std::string const& name)
|
||||
{
|
||||
Pango::FontDescription fd (name);
|
||||
|
||||
if (fd.get_family().empty()) {
|
||||
fd.set_family ("Sans");
|
||||
}
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
Pango::FontDescription
|
||||
get_font_for_style (string widgetname)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue