Respect my work! or BTC: 1MTFbBSKrocPK7G6GKfG8RoTw5N57WnnNa ![]() If you have paid donate send me e-mail with Your data or transaction number to receive an access code to articles with limited access. |
PmWiki /
Adding new font in PDF Internal reportsIf you want add new font in PDF Internal report you must: 1. Add file *.ttf with your font to directory: <directory_of_proreports>/webapps-plus/rep/font/unifont> 2. In PDF Internal Report in section <HEADER><TABLE><TR> you must use tag add_font_family (see Tags) with parameters: "<name_of_font>;<style>;<file *.ttf>;true” where: name_of_font -your name for this font style - empty value or value B or I or BI file *.ttf - name of file with font true - always true for example: <HEADER><TABLE> <TR add-font-style=";B;" add-font-family="dejavumono;;DejaVuSansMono.ttf;true;" add-font-family="dejavumono;B;DejaVuSansMono-Bold.ttf;true;" orientation=P height=9 border=MB font-size=8> <TD image="files/logoprot.png" image-width=25 ></TD> <TD font-size=7 font-family=dejavumono font-style=B >List of users\n \n </TD> <TD font-size=6 align=R>Generated: $V[date_of_report]</TD> </TR></TABLE> <NEXT-HEADER> <TABLE><TR nobr=0 bgcolor=#41627E color=#ffffff border=TB font-size=7> <TD width=45>Login</TD> <TD width=65>Name</TD> </TR></TABLE> </HEADER> As you can see the new font can be used with tags font-family and font-style in sections <TR> or <TD>. Important!
If you attach in report font file for example xyz.ttf with name for example myfont123 you must use this name in any other report. ProReports remember, that file xyz.ttf was added to the name myfont123 and need this name in other reports. This page may have a more recent version on pmwiki.org: PmWiki:RepIntPDFFont, and a talk page: PmWiki:RepIntPDFFont-Talk. |