prawn icon indicating copy to clipboard operation
prawn copied to clipboard

Request: allow set of font before page start

Open johnnyshields opened this issue 12 years ago • 1 comments

Currently calling pdf.font('font_name') before creating first page throws Prawn::Errors::NotOnPage

However, pdf.fallback_fonts works fine in the same place. Would be nice to be able to call pdf.font here.

johnnyshields avatar Apr 28 '14 01:04 johnnyshields

We need to more comprehensively think about what to allow / not allow before a page is created. But I agree that we should at least be consistent, and for things that aren't specifically "page related" it may make sense to allow setting them in advance.

practicingruby avatar Apr 28 '14 01:04 practicingruby