[reportlab-users] Font Helvetica always used?

Andy Robinson andy at reportlab.com
Fri Jun 19 06:30:56 EDT 2015


> It would be easier just to make fontname, fontsize & leading available in
> Canvas __init__. If we do that they should be obviously initialization
> values eg initial_fontName,... so there's no confusion with the actual
> current attributes.

If we did
  initial_fontName = "MyFancyFont"
which is not one of the standard 14, then presumably we'd also need to
ensure they registered a font with that name?  When would we complain
that "myfancyfont.ttf" had not been registered - on first use, or on
saving the canvas?


More information about the reportlab-users mailing list