summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-04-19 12:26:09 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-04-19 12:36:45 +0200
commit940252743dca2259158649a16d546696989d31d6 (patch)
treed90f2dd093f7a71805d2c3e7d89d23712b87921f /examples
parent20917f97570b8f10f228b3dd361460de45705369 (diff)
Change Cairo::FontWeight enum to Cairo::ToyFontFace::Weight.
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.cc2
-rw-r--r--examples/text/toy-text.cc2
-rw-r--r--examples/text/user-font.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/text/text-rotate.cc b/examples/text/text-rotate.cc
index 7ab3853..31cde98 100644
--- a/examples/text/text-rotate.cc
+++ b/examples/text/text-rotate.cc
@@ -45,7 +45,7 @@ void draw(Cairo::RefPtr<Cairo::Context> cr, int width, int height)
std::string text("cairo");
cr->select_font_face("Bitstream Vera Sans", Cairo::ToyFontFace::Slant::NORMAL,
- Cairo::FONT_WEIGHT_NORMAL);
+ Cairo::ToyFontFace::Weight::NORMAL);
cr->set_font_size(TEXT_SIZE);
Cairo::FontOptions font_options;
diff --git a/examples/text/toy-text.cc b/examples/text/toy-text.cc
index fe618a1..bcd4c06 100644
--- a/examples/text/toy-text.cc
+++ b/examples/text/toy-text.cc
@@ -26,7 +26,7 @@ int main(int, char**)
auto font =
Cairo::ToyFontFace::create("Bitstream Charter",
Cairo::ToyFontFace::Slant::ITALIC,
- Cairo::FONT_WEIGHT_BOLD);
+ Cairo::ToyFontFace::Weight::BOLD);
cr->set_font_face(font);
cr->set_font_size(FONT_SIZE);
cr->show_text("cairomm!");
diff --git a/examples/text/user-font.cc b/examples/text/user-font.cc
index 8273ead..890b8e1 100644
--- a/examples/text/user-font.cc
+++ b/examples/text/user-font.cc
@@ -124,7 +124,7 @@ int main(int, char**)
auto toy_font =
Cairo::ToyFontFace::create("Bitstream Charter",
Cairo::ToyFontFace::Slant::NORMAL,
- Cairo::FONT_WEIGHT_BOLD);
+ Cairo::ToyFontFace::Weight::BOLD);
cr->set_font_face(toy_font);
cr->set_font_size(FONT_SIZE);
cr->show_text("cairomm!");