Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.document;

import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Font;

/**
 * Centralized fonts and colors for the document renderer. These are the "MS" (modern style) values
 * lifted verbatim from {@code PdfUtils} so the extracted V2 sections render pixel-identically. The
 * legacy copies in {@code PdfUtils} are removed once all renderers delegate (final cleanup task).
 */
public final class Styles {

    private Styles() {}

    public static final BaseColor MS_BORDER    = new BaseColor(204, 204, 204);
    public static final BaseColor MS_HEADER_BG  = new BaseColor(242, 242, 242);
    public static final BaseColor MS_TOTAL_BG   = new BaseColor(249, 249, 249);
    public static final BaseColor MS_SUMM_BG    = new BaseColor(242, 242, 242);

    public static final Font MS_TITLE      = new Font(Font.FontFamily.HELVETICA, 13, Font.BOLD);
    public static final Font MS_SUBTITLE   = new Font(Font.FontFamily.HELVETICA, 7.5f, Font.ITALIC, new BaseColor(51, 51, 51));
    public static final Font MS_SECTION    = new Font(Font.FontFamily.HELVETICA, 6.5f, Font.BOLD, new BaseColor(85, 85, 85));
    public static final Font MS_NORMAL     = new Font(Font.FontFamily.HELVETICA, 8, Font.NORMAL);
    public static final Font MS_BOLD       = new Font(Font.FontFamily.HELVETICA, 8, Font.BOLD);
    public static final Font MS_SMALL      = new Font(Font.FontFamily.HELVETICA, 7, Font.NORMAL, new BaseColor(68, 68, 68));
    public static final Font MS_SMALL_BOLD = new Font(Font.FontFamily.HELVETICA, 7, Font.BOLD);
    public static final Font MS_ITALIC     = new Font(Font.FontFamily.HELVETICA, 7.5f, Font.ITALIC);
    public static final Font MS_TBL_HDR    = new Font(Font.FontFamily.HELVETICA, 7, Font.BOLD);
}