Skip to content

Commit

Permalink
Merge pull request #215 from sfztools/pango
Browse files Browse the repository at this point in the history
Fix compile-time check for pango
  • Loading branch information
scheffle committed Jun 23, 2021
2 parents 6621988 + 77ab543 commit 2cf61f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstgui/lib/platform/linux/cairofont.cpp
Expand Up @@ -156,7 +156,7 @@ Font::Font (UTF8StringPtr name, const CCoord& size, const int32_t& style)
{
impl->ascent = pango_units_to_double (pango_font_metrics_get_ascent (metrics));
impl->descent = pango_units_to_double (pango_font_metrics_get_descent (metrics));
#ifdef PANGO_AVAILABLE_IN_1_44
#if (PANGO_VERSION_MAJOR > 1) || ((PANGO_VERSION_MAJOR == 1) && PANGO_VERSION_MINOR >= 44)
auto height = pango_units_to_double (pango_font_metrics_get_height (metrics));
impl->leading = height - (impl->ascent + impl->descent);
#else
Expand Down

0 comments on commit 2cf61f5

Please sign in to comment.