NewFont
From ADempiere
This Wiki is read-only for reference purposes to avoid broken links.
Adding Fonts
In Code
Alter the main method of org.compiere.print.MPrintFont by adding the following lines:
String[] newFonts = new String[] { "Helvetica Neue LT Pro", "Webdings", }; for (int i = 0; i < newFonts; i++) { //add plain,bold,italic for all fontsizes you need create(new Font(newFonts[i], Font.PLAIN, 11)); create(new Font(newFonts[i], Font.BOLD, 11)); create(new Font(newFonts[i], Font.ITALIC, 11)); [...] create(new Font(newFonts[i], Font.PLAIN, 8)); create(new Font(newFonts[i], Font.BOLD, 8)); create(new Font(newFonts[i], Font.ITALIC, 8)); }
All additional fonts must be available (installed) at all client systems!
Directly in table
- open Print Font window
- fill the new print font record following this rules:
- Assign a good name for your new font i.e. = Arial bold 11
- Enter a Validation Code in this format:
fontfamilyname-style-pointsize
-
fontfamilyname
is the font name e.g. Arial -
style
is one of the following font styles (case insensitive)-
PLAIN
-
BOLD
-
ITALIC
-
BOLDITALIC
-
-
pointsize
is the size of the font
-
- i.e.
Arial-BOLD-11
Save and use it in your reports.
All additional fonts must be available (installed) at all client systems!