diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-19 13:47:53 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-19 13:47:58 -0400 |
commit | 2ebaf2e45a2190ea97826f5c69bb7676e5528e5e (patch) | |
tree | f75222f87128d9990763b0b1d44ceb1ef4262018 /gtk2_ardour/utils.cc | |
parent | f5edb5a022e193429fb1acd4c404c273e5e66908 (diff) |
explanatory comment
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 104005e21a..e749d519dc 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -206,6 +206,20 @@ xpm2rgba (const char** xpm, uint32_t& w, uint32_t& h) return (savergb); } +/** Returns a Pango::FontDescription given a string describing the font. + * + * If the returned FontDescription does not specify a family, then + * the family is set to "Sans". This mirrors GTK's behaviour in + * gtkstyle.c. + * + * Some environments will force Pango to specify the family + * even if it was not specified in the string describing the font. + * Such environments should be left unaffected by this function, + * since the font family will be left alone. + * + * There may be other similar font specification enforcement + * that we might add here later. + */ Pango::FontDescription sanitized_font (std::string const& name) { |