summaryrefslogtreecommitdiff
path: root/Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc')
-rw-r--r--Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc b/Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc
index 49d97241fc0..e7207672e07 100644
--- a/Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc
+++ b/Build/source/texk/lcdf-typetools/otftotfm/otftotfm.cc
@@ -626,6 +626,8 @@ output_pl(Metrics &metrics, const String &ps_name, int boundary_char,
if (vpl) {
int vpl_first_font = (metrics.need_base() ? 0 : 1);
font_mapping.assign(metrics.n_mapped_fonts(), 0);
+ if (vpl_first_font == 1 && font_mapping.size() == 1)
+ font_mapping.push_back(0);
// how many times is each font used?
Vector<Setting> settings;
for (int i = 0; i < 256; i++)
@@ -957,7 +959,7 @@ write_encoding_file(String &filename, const String &encoding_name,
while (!feof(f))
if (char *x = sa.reserve(8192)) {
int amt = fread(x, 1, 8192, f);
- sa.forward(amt);
+ sa.adjust_length(amt);
} else {
fclose(f);
return errh->error("Out of memory!");