FontName
property for PowerScript objects
Applies to
Description
The FontName property gets or sets the font name in the PDF
document.
Datatype
String
Usage
You can set the FontName property for the font of a text block in a
PDF document following the example:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
PDFdocument lpdf_doc PDFpage lpdf_page PDFrichtext lpdf_rtext PDFfont lpdf_font String ls_text lpdf_doc = create PDFdocument lpdf_page = create PDFpage lpdf_rtext = create PDFrichtext lpdf_font = create PDFfont lpdf_rtext.width = lpdf_page.getwidth( ) ls_text = "Addtextblock text" lpdf_font.fontname = "simsunb" lpdf_font.fontsize = 32 lpdf_rtext.addtextblock(ls_text,lpdf_font) lpdf_page.addcontent( lpdf_rtext) lpdf_doc.addpage( lpdf_page) lpdf_doc.save( "D:save ichtext_addtextblock.pdf") |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest