genode/repos/gems/recipes/src/vfs_ttf/content.mk
Norman Feske 81e55e8901 gems: TrueType VFS plugin
This commit introduces a VFS plugin that exposes the glyphs and
metadata of a TrueType font as a pseudo file system. The TTF font data
is obtained from the VFS. The resulting pseudo file system is a
directory that contains the files 'glyphs', 'baseline', 'max_width',
and 'max_height'.

The counter part of the plugin is the 'Vfs_font' class that implements
the 'Text_painter::Font' interface by accessing the pseudo file system
as provided by the TTF VFS plugin.

Fixes #2740
2018-04-10 11:09:20 +02:00

17 lines
437 B
Makefile

MIRROR_FROM_REP_DIR := lib/mk/vfs_ttf.mk lib/mk/ttf_font.mk \
src/lib/vfs/ttf src/lib/ttf_font
STB_PORT_DIR := $(call port_dir,$(GENODE_DIR)/repos/libports/ports/stb)
content: $(MIRROR_FROM_REP_DIR) include/stb_truetype.h LICENSE
include/stb_truetype.h:
mkdir -p $(dir $@)
cp -r $(STB_PORT_DIR)/include/stb_truetype.h $@
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:
cp $(GENODE_DIR)/LICENSE $@