(int,int)
|
|
float
|
|
float
|
dots_to_mm(dots)
convert dots to millimeters |
source code
|
|
|
|
str
|
extract_font_name(f)
extract the font name from a string or from a tuple (fontname, slant,
weight) |
source code
|
|
|
|
|
draw_shadow(cr,
rect,
thickness=None,
shadow_color=( 0, 0, 0, 0.3) )
draw a shadow at the bottom-right corner of a rect |
source code
|
|
|
draw_line(cr,
rect,
stroke_rgba=None,
stroke_width=1.0)
draw a line from (x,y) to (x+w,y+h), where rect=(x,y,w,h) |
source code
|
|
|
draw_box(cr,
rect,
stroke_rgba=None,
fill_rgba=None,
stroke_width=1.0,
shadow=None)
draw a box (rectangle) with optional shadow |
source code
|
|
|
draw_str(cr,
text,
rect,
scaling=-1,
stroke_rgba=None,
align=( 2, 0) ,
bbox=False,
font=' Times ' ,
measure=None,
shadow=None)
draw text |
source code
|
|