diff options
author | Karl Berry <karl@freefriends.org> | 2008-05-04 17:04:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-05-04 17:04:24 +0000 |
commit | cc9ce94021dcb487c98b49fb08aa570671c4c57c (patch) | |
tree | f6622481ed20e5d4da034ece57e1b513846ff48d /Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc | |
parent | eed6bd31cc43fa6f09f26224add40f33b0256096 (diff) |
lcdf-typetools 2.68
git-svn-id: svn://tug.org/texlive/trunk@7841 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc')
-rw-r--r-- | Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc b/Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc index 94c1cc79486..a8b68fc2961 100644 --- a/Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc +++ b/Build/source/texk/lcdf-typetools/otftotfm/dvipsencoding.cc @@ -1,6 +1,6 @@ /* dvipsencoding.{cc,hh} -- store a DVIPS encoding * - * Copyright (c) 2003-2007 Eddie Kohler + * Copyright (c) 2003-2008 Eddie Kohler * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free @@ -754,7 +754,23 @@ DvipsEncoding::make_metrics(Metrics &metrics, const FontInfo &finfo, Secondary * // find named glyph, if any Efont::OpenType::Glyph named_glyph = finfo.glyphid(chname); - +#if 0 + // 2.May.2008: ff, fi, fl, ffi, and ffl might map to f_f, f_i, f_l, + // f_f_i, and f_f_l + if (!named_glyph && chname.length() > 0 && chname.length() <= 3 + && chname[0] == 'f') { + if (chname.equals("ff", 2)) + named_glyph = finfo.glyphid("f_f"); + else if (chname.equals("fi", 2)) + named_glyph = finfo.glyphid("f_i"); + else if (chname.equals("fl", 2)) + named_glyph = finfo.glyphid("f_l"); + else if (chname.equals("ffi", 2)) + named_glyph = finfo.glyphid("f_f_i"); + else if (chname.equals("ffl", 2)) + named_glyph = finfo.glyphid("f_f_l"); + } +#endif // do not use a Unicode-mapped glyph if literal if (literal) glyph = named_glyph; |