Portal Application Fonts
Introduction
The portal applications in KreaTV can only use fonts which are included in
the KreaTV bootimage. Fonts can not be dynamically downloaded over the
network.
Loading Fonts
The browser automatically loads multiple fonts at startup, by doing a
case-insensitive search for *.ttf and *.otf files in the directory
/usr/share/fonts
This can be memory consuming if too many fonts are included
into the boot image.
The kreatv-font-kreativ IIP installs a regular font variant and a bold font
variant in /usr/share/fonts.
It is possible to specify the default font family by adding
a font=<familyname> option to the SVG Portal Application IIP.
Example:
kreatv-app-ekioh-portal:font=kreativ
Selecting Fonts
In order to select which font to use in a page, the following mechanism is
used:
- The font family needs to be selected. This is done e.g. by using the
CSS 2 property 'font-family'. The SVG Portal Application currently does not
support the CSS 3 property '@font-face'. If no font family is selected
the application will use the default font. The default font can be set when
the boot image is built, see Loading Fonts above. If no default font has
been set, the last font found in the directory search will be selected as
default font.
- When the font family has been determined, the SVG Portal Application searches within that
font family for the font variant to use. The search is done in the
following order of priority:
- The requested font variant (regular, bold, italic, bold+italic)
- Regular
- Bold
- Italic
- Bold + Italic