terminal: use VFS-based font handling

This patch replaces the terminal's formerly built-in fonts with the new
VFS-based font handling.

To avoid the copying of the terminal's font configuration across run
scripts, this patch adds the new terminal/pkg runtime package, which
includes everything needed for instantiating a terminal: the actual
terminal component, the library dependencies (vfs_ttf, which in turn
depends on the libc), a font (bitstream-vera), and a reasonable default
configuration.

Fixes #2758
This commit is contained in:
Norman Feske
2018-04-11 14:14:20 +02:00
committed by Christian Helmuth
parent 0011dd1623
commit 1f1302e185
43 changed files with 702 additions and 785 deletions

View File

@@ -84,8 +84,14 @@
<resource name="RAM" quantum="4M"/>
<provides> <service name="Terminal"/> </provides>
<config>
<keyboard layout="none"/>
<font size="8" />
<vfs>
<rom name="VeraMono.ttf"/>
<dir name="fonts">
<dir name="monospace">
<ttf name="regular" path="/VeraMono.ttf" size_px="10"/>
</dir>
</dir>
</vfs>
</config>
<route>
<any-service> <child name="log_nit_fb"/> <parent/> </any-service>
@@ -131,11 +137,8 @@
<binary name="terminal"/>
<resource name="RAM" quantum="8M"/>
<provides> <service name="Terminal"/> </provides>
<config>
<keyboard layout="none"/>
<font size="16" />
</config>
<route>
<service name="ROM" label="config"> <parent label="fonts.config"/> </service>
<any-service> <child name="control_nit_fb"/> <parent/> </any-service>
</route>
</start>