diff options
author | Murray Cumming <murrayc@murrayc.com> | 2014-01-28 13:02:27 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2014-01-28 13:04:54 +0100 |
commit | bdceb94b5c626a70345d9349483f3d65be0174c5 (patch) | |
tree | 44021f7e70429e2f96d685d7102c7a5a683f7ca1 | |
parent | 174fe4c57db488a9b9872e7e97605f6529032c90 (diff) |
ScaledFont: Add the missing get_extents() method implementation.
Bug #53981 (cheshirekow)
-rw-r--r-- | cairomm/scaledfont.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cairomm/scaledfont.cc b/cairomm/scaledfont.cc index 46ce491..a562619 100644 --- a/cairomm/scaledfont.cc +++ b/cairomm/scaledfont.cc @@ -64,6 +64,11 @@ RefPtr<ScaledFont> ScaledFont::create(const RefPtr<FontFace>& font_face, const c void ScaledFont::extents(FontExtents& extents) const { + get_extents(extents); +} + +void ScaledFont::get_extents(FontExtents& extents) const +{ cairo_scaled_font_extents(m_cobject, static_cast<cairo_font_extents_t*>(&extents)); check_object_status_and_throw_exception(*this); } |