Skip to content

Commit

Permalink
更新项目名字
Browse files Browse the repository at this point in the history
  • Loading branch information
plter committed Oct 20, 2020
1 parent 317f4de commit d636a3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions L07CairoText/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.17)
project(L07CairoCircle)
project(L07CairoText)

set(CMAKE_CXX_STANDARD 14)

Expand All @@ -19,4 +19,4 @@ link_libraries(
cairo
)

add_executable(L07CairoCircle main.c)
add_executable(L07CairoText main.c)
6 changes: 5 additions & 1 deletion L07CairoText/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

void draw(cairo_surface_t *cairosurf) {
cairo_t *cr = cairo_create(cairosurf);

cairo_select_font_face(
cr, "Sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL
);
cairo_set_font_size(cr, FONT_SIZE);
cairo_move_to(cr, 0, FONT_SIZE);
cairo_show_text(cr, "Hello Cairo");
Expand Down

0 comments on commit d636a3b

Please sign in to comment.