made some variations on the text appearance
This commit is contained in:
parent
65574004a1
commit
d9a2b6f1ca
6
main.cpp
6
main.cpp
@ -49,10 +49,10 @@ void draw(sc::gui::Window& window) {
|
||||
cairo_fill(cr);
|
||||
|
||||
// light blue text
|
||||
cairo_set_source_rgb(cr, 0, 0.5, 1);
|
||||
cairo_select_font_face(cr, "Optima", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
|
||||
cairo_set_source_rgb(cr, 0.2, 0.5, 0);
|
||||
cairo_select_font_face(cr, "Helvetica", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
|
||||
cairo_set_font_size(cr, 42);
|
||||
cairo_move_to(cr, 350, 150);
|
||||
cairo_move_to(cr, 100, 150);
|
||||
cairo_show_text(cr, "Cairo on SDL");
|
||||
|
||||
// show
|
||||
|
Loading…
x
Reference in New Issue
Block a user