diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:37:27 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:37:27 +0000 |
commit | 7db8921aac3a0e1223af269ec7092bdd91a7c7a2 (patch) | |
tree | 4336d04fbb26c26d23f6d5a3d572b474dd1f70af /z50.c | |
parent | a9f9ae0efa326dc2edc7f2d92ce270f5fdc15b60 (diff) | |
download | lout-7db8921aac3a0e1223af269ec7092bdd91a7c7a2.tar.gz |
Lout 3.24.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@17 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z50.c')
-rw-r--r-- | z50.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,6 +1,6 @@ /*@z50.c:PDF Back End:PDF_BackEnd@********************************************/ /* */ -/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.23) */ +/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.24) */ /* COPYRIGHT (C) 1991, 2000 Jeffrey H. Kingston */ /* */ /* Jeffrey H. Kingston (jeff@cs.usyd.edu.au) */ @@ -141,9 +141,21 @@ static void PDF_PrintLength(FULL_CHAR *buff, int length, int length_dim) static void PDF_PrintPageSetupForFont(OBJECT face, int font_curr_page, FULL_CHAR *font_name, FULL_CHAR *first_size_str) { + FULL_CHAR *enc = NULL; fprintf(out_fp, "%%%%IncludeResource: font %s\n", font_name); + /*** PDFFont_AddFont(out_fp, first_size_str, font_name, MapEncodingName(font_mapping(face))); + ***/ + if (font_recoded(face)) { + MAPPING m = font_mapping(face); + /* This is a NASTY hack. Need to rework the interface Since + PDF is random-access format - we don't care which page this + encoding is for and we need to only print it once -- Uwe */ + MapEnsurePrinted(m, 1); + enc = MapEncodingName(m); + } + PDFFont_AddFont(out_fp, first_size_str, font_name, enc); } /* end PDF_PrintPageSetupForFont */ |