mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-01 04:36:13 +00:00
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
17 lines
437 B
Makefile
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 $@
|