From c072eb7debe80aca352a5dc26bff08a6ecd8baff Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 13 May 2006 13:56:05 +0000 Subject: Initial support for adding fonts at run-time. Currently we only support loading AFM files, we recognise them by name, and we can't embed fonts in the output (which is also invalid, though accepted by xpdf, in the PDF case). Oh, and there's no documentation. Still, it's a start. [originally from svn r6681] --- halibut.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'halibut.h') diff --git a/halibut.h b/halibut.h index 36ad929..eb62b9e 100644 --- a/halibut.h +++ b/halibut.h @@ -243,7 +243,11 @@ enum { err_text_codeline, /* \c line too long in text backend */ err_htmlver, /* unrecognised HTML version keyword */ err_charset, /* unrecognised character set name */ - err_nofont, /* unrecognised font name */ + err_nofont, /* unrecognised font name */ + err_afmeof, /* eof in AFM file */ + err_afmkey, /* missing expected keyword in AFM */ + err_afmvers, /* unsupported AFM version */ + err_afmval, /* missing value(s) for AFM key */ err_whatever /* random error of another type */ }; @@ -382,6 +386,11 @@ paragraph *cmdline_cfg_simple(char *string, ...); paragraph *read_input(input *in, indexdata *idx); /* + * in_afm.c + */ +void read_afm_file(input *in); + +/* * keywords.c */ struct keywordlist_Tag { -- cgit v1.1