From 307453997ef030ec4dfa1e876feaf0b8b8125bab Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Tue, 12 Apr 2011 14:17:47 +0000 Subject: check in luatex 0.66.0 git-svn-id: svn://tug.org/texlive/trunk@22059 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/font/writefont.w | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Build/source/texk/web2c/luatexdir/font/writefont.w') diff --git a/Build/source/texk/web2c/luatexdir/font/writefont.w b/Build/source/texk/web2c/luatexdir/font/writefont.w index d130b976bf1..5db7218f15a 100644 --- a/Build/source/texk/web2c/luatexdir/font/writefont.w +++ b/Build/source/texk/web2c/luatexdir/font/writefont.w @@ -20,8 +20,8 @@ @ @c static const char _svn_version[] = - "$Id: writefont.w 3612 2010-04-13 09:29:42Z taco $ " -"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.60.x/source/texk/web2c/luatexdir/font/writefont.w $"; + "$Id: writefont.w 3836 2010-08-29 09:29:04Z taco $ " +"$URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.66.0/source/texk/web2c/luatexdir/font/writefont.w $"; #include "ptexlib.h" #include "lua/luatex-api.h" @@ -468,6 +468,7 @@ static void write_fontfile(PDF pdf, fd_entry * fd) @ @c +int cidset = 0; static void write_fontdescriptor(PDF pdf, fd_entry * fd) { static const int std_flags[] = { @@ -494,7 +495,7 @@ static void write_fontdescriptor(PDF pdf, fd_entry * fd) struct avl_traverser t; int fd_flags; assert(fd != NULL && fd->fm != NULL); - + cidset = 0; /* possibly updated by |write_fontfile| */ if (is_fontfile(fd->fm) && is_included(fd->fm)) write_fontfile(pdf, fd); /* this will set |fd->ff_found| if font file is found */ if (fd->fd_objnum == 0) @@ -549,14 +550,11 @@ static void write_fontdescriptor(PDF pdf, fd_entry * fd) assert(0); } } - /* TODO: Optional keys for CID fonts. - - The most interesting ones are + if (cidset !=0) + pdf_printf(pdf, "/CIDSet %i 0 R\n", cidset); + /* TODO: Other optional keys for CID fonts. + The most interesting one is \.{/Style << /Panose <12-byte string>>>} - and - \.{/CIDSET } - the latter can be used in subsets, to give the included CIDs - as a bitmap on the whole list. */ pdf_end_dict(pdf); } -- cgit v1.2.3