diff options
author | Murray Cumming <murrayc@murrayc.com> | 2017-04-19 12:17:02 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-04-19 12:36:39 +0200 |
commit | 20917f97570b8f10f228b3dd361460de45705369 (patch) | |
tree | 0ba94e78ab8b15bbc926f9e807d48c37eb76f5b7 /examples | |
parent | 1986e068f9b1b4fc7eb30143a13e620da2af7a0e (diff) |
Change Cairo::FontSlant enum to Cairo::ToyFontFace::Slant.
And change this from an old-style enum to a C++11 enum class.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/text/text-rotate.cc | 2 | ||||
-rw-r--r-- | examples/text/toy-text.cc | 2 | ||||
-rw-r--r-- | examples/text/user-font.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/text/text-rotate.cc b/examples/text/text-rotate.cc index fe2c9d8..7ab3853 100644 --- a/examples/text/text-rotate.cc +++ b/examples/text/text-rotate.cc @@ -44,7 +44,7 @@ void draw(Cairo::RefPtr<Cairo::Context> cr, int width, int height) Cairo::TextExtents extents; std::string text("cairo"); - cr->select_font_face("Bitstream Vera Sans", Cairo::FONT_SLANT_NORMAL, + cr->select_font_face("Bitstream Vera Sans", Cairo::ToyFontFace::Slant::NORMAL, Cairo::FONT_WEIGHT_NORMAL); cr->set_font_size(TEXT_SIZE); diff --git a/examples/text/toy-text.cc b/examples/text/toy-text.cc index 2934d5f..fe618a1 100644 --- a/examples/text/toy-text.cc +++ b/examples/text/toy-text.cc @@ -25,7 +25,7 @@ int main(int, char**) cr->set_source_rgb(0.8, 0.2, 0.2); auto font = Cairo::ToyFontFace::create("Bitstream Charter", - Cairo::FONT_SLANT_ITALIC, + Cairo::ToyFontFace::Slant::ITALIC, Cairo::FONT_WEIGHT_BOLD); cr->set_font_face(font); cr->set_font_size(FONT_SIZE); diff --git a/examples/text/user-font.cc b/examples/text/user-font.cc index a4b6a05..8273ead 100644 --- a/examples/text/user-font.cc +++ b/examples/text/user-font.cc @@ -123,7 +123,7 @@ int main(int, char**) cr->set_source_rgba(0.2, 0.2, 0.2, 0.3); auto toy_font = Cairo::ToyFontFace::create("Bitstream Charter", - Cairo::FONT_SLANT_NORMAL, + Cairo::ToyFontFace::Slant::NORMAL, Cairo::FONT_WEIGHT_BOLD); cr->set_font_face(toy_font); cr->set_font_size(FONT_SIZE); |