From eeaaf07f4c8e6f1a4fa25cadb0796eaf016e8b49 Mon Sep 17 00:00:00 2001 From: PeterAddy960 Date: Wed, 31 Aug 2016 20:29:34 -0500 Subject: [PATCH] Added methods to font object to get if font has underline and strikeout. --- source/paint/graphics.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/paint/graphics.cpp b/source/paint/graphics.cpp index 40530a18..ea8212cb 100644 --- a/source/paint/graphics.cpp +++ b/source/paint/graphics.cpp @@ -156,6 +156,18 @@ namespace paint return (impl_->font_ptr->italic); } + bool font::underline() const + { + if(empty()) return false; + return (impl_->font_ptr->underline); + } + + bool font::strikeout() const + { + if(empty()) return false; + return (impl_->font_ptr->strikeout); + } + native_font_type font::handle() const { if(empty()) return nullptr;