Skip to content

Commit a72408f

Browse files
authored
Merge pull request #3438 from amitdo/pango
Raise Minimum required Pango version to 1.38.0
2 parents ef69805 + 8615f65 commit a72408f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,9 @@ if !($have_icu_uc && $have_icu_i18n); then
529529
fi
530530
531531
# Check location of pango headers
532-
PKG_CHECK_MODULES([pango], [pango >= 1.22.0], [have_pango=true], [have_pango=false])
532+
PKG_CHECK_MODULES([pango], [pango >= 1.38.0], [have_pango=true], [have_pango=false])
533533
if !($have_pango); then
534-
AC_MSG_WARN([pango 1.22.0 or higher is required, but was not found.])
534+
AC_MSG_WARN([pango 1.38.0 or higher is required, but was not found.])
535535
AC_MSG_WARN([Training tools WILL NOT be built.])
536536
AC_MSG_WARN([Try to install libpango1.0-dev package.])
537537
AM_CONDITIONAL([ENABLE_TRAINING], false)

src/training/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ endif()
286286
if (PKG_CONFIG_FOUND OR SW_BUILD)
287287

288288
if (PKG_CONFIG_FOUND)
289-
pkg_check_modules(Pango REQUIRED pango>=1.22.0)
289+
pkg_check_modules(Pango REQUIRED pango>=1.38.0)
290290
pkg_check_modules(Cairo REQUIRED cairo)
291291
pkg_check_modules(PangoFt2 REQUIRED pangoft2)
292292
pkg_check_modules(PangoCairo REQUIRED pangocairo)

src/training/pango/stringrenderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ void StringRenderer::SetLayoutProperties() {
198198
spacing_attr->end_index = static_cast<guint>(-1);
199199
pango_attr_list_change(attr_list, spacing_attr);
200200
}
201-
#if (PANGO_VERSION_MAJOR == 1 && PANGO_VERSION_MINOR >= 38)
201+
202202
if (add_ligatures_) {
203203
set_features("liga, clig, dlig, hlig");
204204
PangoAttribute *feature_attr = pango_attr_font_features_new(features_.c_str());
205205
pango_attr_list_change(attr_list, feature_attr);
206206
}
207-
#endif
207+
208208
pango_layout_set_attributes(layout_, attr_list);
209209
pango_attr_list_unref(attr_list);
210210
// Adjust line spacing

0 commit comments

Comments
 (0)