diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2011-04-12 14:17:47 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2011-04-12 14:17:47 +0000 |
commit | 307453997ef030ec4dfa1e876feaf0b8b8125bab (patch) | |
tree | ab2054693ba95e9ac8f6e3478b4d0175d893329f /Build/source/texk/web2c/luatexdir/font/writefont.w | |
parent | d95b11a25d3d9e17cc4afb9c8713ef4037567527 (diff) |
check in luatex 0.66.0
git-svn-id: svn://tug.org/texlive/trunk@22059 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/writefont.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/font/writefont.w | 18 |
1 files changed, 8 insertions, 10 deletions
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 <stream>} - the latter can be used in subsets, to give the included CIDs - as a bitmap on the whole list. */ pdf_end_dict(pdf); } |