| 37066 |
amit |
1 |
package com.spice.profitmandi.common.document;
|
|
|
2 |
|
|
|
3 |
import com.itextpdf.text.BaseColor;
|
|
|
4 |
import com.itextpdf.text.Font;
|
|
|
5 |
|
|
|
6 |
/**
|
|
|
7 |
* Centralized fonts and colors for the document renderer. These are the "MS" (modern style) values
|
|
|
8 |
* lifted verbatim from {@code PdfUtils} so the extracted V2 sections render pixel-identically. The
|
|
|
9 |
* legacy copies in {@code PdfUtils} are removed once all renderers delegate (final cleanup task).
|
|
|
10 |
*/
|
|
|
11 |
public final class Styles {
|
|
|
12 |
|
|
|
13 |
private Styles() {}
|
|
|
14 |
|
|
|
15 |
public static final BaseColor MS_BORDER = new BaseColor(204, 204, 204);
|
|
|
16 |
public static final BaseColor MS_HEADER_BG = new BaseColor(242, 242, 242);
|
|
|
17 |
public static final BaseColor MS_TOTAL_BG = new BaseColor(249, 249, 249);
|
|
|
18 |
public static final BaseColor MS_SUMM_BG = new BaseColor(242, 242, 242);
|
|
|
19 |
|
|
|
20 |
public static final Font MS_TITLE = new Font(Font.FontFamily.HELVETICA, 13, Font.BOLD);
|
|
|
21 |
public static final Font MS_SUBTITLE = new Font(Font.FontFamily.HELVETICA, 7.5f, Font.ITALIC, new BaseColor(51, 51, 51));
|
|
|
22 |
public static final Font MS_SECTION = new Font(Font.FontFamily.HELVETICA, 6.5f, Font.BOLD, new BaseColor(85, 85, 85));
|
|
|
23 |
public static final Font MS_NORMAL = new Font(Font.FontFamily.HELVETICA, 8, Font.NORMAL);
|
|
|
24 |
public static final Font MS_BOLD = new Font(Font.FontFamily.HELVETICA, 8, Font.BOLD);
|
|
|
25 |
public static final Font MS_SMALL = new Font(Font.FontFamily.HELVETICA, 7, Font.NORMAL, new BaseColor(68, 68, 68));
|
|
|
26 |
public static final Font MS_SMALL_BOLD = new Font(Font.FontFamily.HELVETICA, 7, Font.BOLD);
|
|
|
27 |
public static final Font MS_ITALIC = new Font(Font.FontFamily.HELVETICA, 7.5f, Font.ITALIC);
|
|
|
28 |
public static final Font MS_TBL_HDR = new Font(Font.FontFamily.HELVETICA, 7, Font.BOLD);
|
|
|
29 |
}
|