Font faces: Font file definitions in template

Goal

Define what font files to use in the templates.

Example

For Trivire this would look like:

    <configuration>
        <pdffonts>
            <!-- encoding: unicode / ansi -->
            <font-face  family="helvetica" weight="normal" style="normal" alias="helvetica_neue_lt_std_55_roman"        src="Helvetica.ttf"              encoding="unicode" />
            <font-face  family="helvetica" weight="bold"   style="normal" alias="helvetica_neue_lt_std_75_bold"         src="Helvetica-Bold.ttf"         encoding="unicode" />
            <font-face  family="helvetica" weight="light"  style="italic" alias="helvetica_neue_lt_std_46_light_italic" src="Helvetica-LightOblique.ttf" encoding="unicode" />
            <font-face  family="helvetica" weight="bold"   style="italic" alias="helvetica_bold_italic"                 src="Helvetica-BoldOblique.ttf"  encoding="unicode" />
            <font-face  family="helvetica" weight="light"  style="normal" alias="helvetica_lite"                        src="Helvetica-Light.ttf"        encoding="unicode" />
            <font-face  family="helvetica" weight="normal" style="italic" alias="helvetica_italic"                      src="Helvetica-Obliqu.ttf"       encoding="unicode" />
        </pdffonts>
        ...        
    </configuration>
Implementation

Based on css @font-face

attribute   values       description
family name Defines the name of the font
src URL File name of font file (defined in sources
style normal / italic Defines how the font should be styled. Default value is “normal”
weight normal / lite / bold Defines the boldness of the font. Default value is “normal”
encoding ansi / unicode Defines which characters the font supports. Default value is “unicode”
alias name Defines the font-family name used in the styles section of the template