Skip to content

Commit

Permalink
lcdf-typetools 2.110
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@68131 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Akira Kakuto committed Aug 31, 2023
1 parent f62eae5 commit cabe754
Show file tree
Hide file tree
Showing 98 changed files with 5,655 additions and 4,959 deletions.
2 changes: 1 addition & 1 deletion texk/README
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ gsftopk - from Paul Vojta's xdvi.

kpathsea - maintained here, by us

lcdf-typetools 2.108 - checked 31may22
lcdf-typetools 2.110 - checked 01sep23
https://www.lcdf.org/type/

makeindexk - maintained here, by us
Expand Down
5 changes: 5 additions & 0 deletions texk/lcdf-typetools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2023-09-01 Akira Kakuto <kakuto@jcom.zaq.ne.jp>

Import lcdf-typetools-2.110.
* version.ac: Adapted.

2019-01-28 Akira Kakuto <kakuto@w32tex.org>

Import lcdf-typetools-2.108.
Expand Down
6 changes: 6 additions & 0 deletions texk/lcdf-typetools/TLpatches/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2023-09-01 Akira Kakuto <kakuto@jcom.zaq.ne.jp>

Import lcdf-typetools-2.110.
* patch-02-mingw64: Remove.
* patch-03-w32: Adapted.

2019-01-30 Akira Kakuto <kakuto@w32tex.org>

* patch-03-w32: Remove wrong changes.
Expand Down
3 changes: 2 additions & 1 deletion texk/lcdf-typetools/TLpatches/TL-Changes
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Changes applied to the lcdf-typetools tree as obtained from:
http://www.lcdf.org/type/lcdf-typetools-2.108.tar.gz
http://www.lcdf.org/type/lcdf-typetools-2.110.tar.gz

Removed:
aclocal.m4
ar-lib
compile
configure
depcomp
Expand Down
11 changes: 0 additions & 11 deletions texk/lcdf-typetools/TLpatches/patch-02-mingw64

This file was deleted.

196 changes: 3 additions & 193 deletions texk/lcdf-typetools/TLpatches/patch-03-w32
Original file line number Diff line number Diff line change
@@ -1,200 +1,10 @@
diff -ur lcdf-typetools-2.108/liblcdf/filename.cc lcdf-typetools-src/liblcdf/filename.cc
--- lcdf-typetools-2.108/liblcdf/filename.cc Mon Jan 28 03:39:19 2019
+++ lcdf-typetools-src/liblcdf/filename.cc Thu Jan 31 06:16:24 2019
diff -ur lcdf-typetools-2.110/liblcdf/filename.cc lcdf-typetools-src/liblcdf/filename.cc
--- lcdf-typetools-2.110/liblcdf/filename.cc Fri Apr 08 02:43:00 2022
+++ lcdf-typetools-src/liblcdf/filename.cc Fri Sep 01 07:11:55 2023
@@ -126,5 +126,5 @@
if (_actual || !_path)
return _actual;
else
- return fopen(_path.c_str(), binary ? "wb" : "w");
+ return fopen(_path.c_str(), "wb");
}
diff -ur lcdf-typetools-2.108/otftotfm/automatic.cc lcdf-typetools-src/otftotfm/automatic.cc
--- lcdf-typetools-2.108/otftotfm/automatic.cc Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/otftotfm/automatic.cc Thu Jan 31 06:35:14 2019
@@ -39,7 +39,9 @@
#include <algorithm>

#ifdef WIN32
-# define mkdir(dir, access) mkdir(dir)
+# include <io.h>
+# include <direct.h>
+# define mkdir(dir, access) _mkdir(dir)
# define COPY_CMD "copy"
# define CMD_SEP "&"
#else
@@ -124,7 +126,18 @@
static void
find_writable_texdir(ErrorHandler *errh, const char *)
{
+#if defined(W32TEX)
+// W32TeX does not have TEXMFVAR
+ char *p = kpsei_var_value("TEXMFVAR");
+ if (p == NULL) // W32TeX
+ look_for_writable_texdir("$TEXMFLOCAL", true);
+ else { // TeXLive
+ free (p);
+ look_for_writable_texdir("$TEXMFVAR", true);
+ }
+#else
look_for_writable_texdir("$TEXMFVAR", true);
+#endif
if (!writable_texdir)
look_for_writable_texdir("$VARTEXMF", false);
if (!writable_texdir)
@@ -313,7 +326,7 @@
String ls_r = writable_texdir + "ls-R";
bool success = false;
if (access(ls_r.c_str(), R_OK) >= 0) // make sure it already exists
- if (FILE *f = fopen(ls_r.c_str(), "a")) {
+ if (FILE *f = fopen(ls_r.c_str(), "ab")) {
fprintf(f, "./%s:\n%s\n", directory.c_str(), file.c_str());
success = true;
fclose(f);
@@ -323,7 +336,11 @@
if (!success && writable_texdir.find_left('\'') < 0 && directory.find_left('\'') < 0 && file.find_left('\'') < 0) {
// look for mktexupd script
if (!mktexupd_tried) {
+#ifdef _WIN32
+ mktexupd = "mktexupd.exe";
+#else
mktexupd = kpsei_string(kpsei_find_file("mktexupd", KPSEI_FMT_WEB2C));
+#endif
mktexupd_tried = true;
}

@@ -677,7 +694,7 @@
#endif
{
fclose(f);
- f = fopen(map_file.c_str(), "w");
+ f = fopen(map_file.c_str(), "wb");
fd = fileno(f);
}

diff -ur lcdf-typetools-2.108/otftotfm/kpseinterface.c lcdf-typetools-src/otftotfm/kpseinterface.c
--- lcdf-typetools-2.108/otftotfm/kpseinterface.c Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/otftotfm/kpseinterface.c Thu Jan 31 06:37:34 2019
@@ -21,6 +21,9 @@
#include <kpathsea/expand.h>
#include <kpathsea/c-pathch.h>
#include <kpathsea/tex-file.h>
+#ifdef W32TEX
+#include <kpathsea/variable.h>
+#endif
#include "kpseinterface.h"

int kpsei_env_sep_char = ENV_SEP;
@@ -86,3 +89,11 @@
{
kpathsea_debug = flags;
}
+
+#ifdef W32TEX
+char*
+kpsei_var_value(const char *name)
+{
+ return kpse_var_value(name);
+}
+#endif
diff -ur lcdf-typetools-2.108/otftotfm/kpseinterface.h lcdf-typetools-src/otftotfm/kpseinterface.h
--- lcdf-typetools-2.108/otftotfm/kpseinterface.h Thu Jun 23 21:25:52 2016
+++ lcdf-typetools-src/otftotfm/kpseinterface.h Thu Jan 31 06:38:40 2019
@@ -13,6 +13,10 @@
char* kpsei_find_file(const char* name, int format);
void kpsei_set_debug_flags(unsigned flags);

+#ifdef W32TEX
+char* kpsei_var_value(const char *name);
+#endif
+
#ifdef __cplusplus
}
#endif
diff -ur lcdf-typetools-2.108/otftotfm/otftotfm.cc lcdf-typetools-src/otftotfm/otftotfm.cc
--- lcdf-typetools-2.108/otftotfm/otftotfm.cc Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/otftotfm/otftotfm.cc Thu Jan 31 06:40:59 2019
@@ -63,6 +63,9 @@
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
+#ifdef _MSC_VER
+# include <io.h>
+#endif

using namespace Efont;

@@ -590,7 +593,7 @@

if (verbose)
errh->message("creating %s", filename.c_str());
- FILE *f = fopen(filename.c_str(), "w");
+ FILE *f = fopen(filename.c_str(), "wb");
if (!f) {
errh->error("%s: %s", filename.c_str(), strerror(errno));
return;
@@ -1048,7 +1051,7 @@
#endif
{
fclose(f);
- f = fopen(filename.c_str(), "w");
+ f = fopen(filename.c_str(), "wb");
fd = fileno(f);
}

diff -ur lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc lcdf-typetools-src/t1dotlessj/t1dotlessj.cc
--- lcdf-typetools-2.108/t1dotlessj/t1dotlessj.cc Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/t1dotlessj/t1dotlessj.cc Thu Jan 31 06:43:35 2019
@@ -410,10 +410,10 @@
// write it to output
if (!outputf)
outputf = stdout;
- if (binary) {
#if defined(_MSDOS) || defined(_WIN32)
- _setmode(_fileno(outputf), _O_BINARY);
+ _setmode(_fileno(outputf), _O_BINARY);
#endif
+ if (binary) {
Type1PFBWriter w(outputf);
dotless_font->write(w);
} else {
diff -ur lcdf-typetools-2.108/t1rawafm/t1rawafm.cc lcdf-typetools-src/t1rawafm/t1rawafm.cc
--- lcdf-typetools-2.108/t1rawafm/t1rawafm.cc Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/t1rawafm/t1rawafm.cc Thu Jan 31 06:44:47 2019
@@ -359,6 +359,9 @@
if (!outf)
errh->fatal("%s: %s", output_file, strerror(errno));
}
+#if defined(_MSDOS) || defined(_WIN32)
+ _setmode(_fileno(outf), _O_BINARY);
+#endif

write_afm(outf, font);

diff -ur lcdf-typetools-2.108/t1reencode/t1reencode.cc lcdf-typetools-src/t1reencode/t1reencode.cc
--- lcdf-typetools-2.108/t1reencode/t1reencode.cc Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/t1reencode/t1reencode.cc Thu Jan 31 06:46:38 2019
@@ -1094,10 +1094,10 @@
if (!outf)
errh->fatal("%s: %s", output_file, strerror(errno));
}
- if (binary) {
#if defined(_MSDOS) || defined(_WIN32)
- _setmode(_fileno(outf), _O_BINARY);
+ _setmode(_fileno(outf), _O_BINARY);
#endif
+ if (binary) {
Type1PFBWriter w(outf);
font->write(w);
} else {
diff -ur lcdf-typetools-2.108/t1testpage/t1testpage.cc lcdf-typetools-src/t1testpage/t1testpage.cc
--- lcdf-typetools-2.108/t1testpage/t1testpage.cc Mon Jan 28 03:39:20 2019
+++ lcdf-typetools-src/t1testpage/t1testpage.cc Thu Jan 31 06:47:51 2019
@@ -665,6 +665,9 @@
if (!outf)
errh->fatal("%s: %s", output_file, strerror(errno));
}
+#if defined(_MSDOS) || defined(_WIN32)
+ _setmode(_fileno(outf), _O_BINARY);
+#endif

//font->undo_synthetic();
24 changes: 12 additions & 12 deletions texk/lcdf-typetools/configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for LCDF typetools (TeX Live) 2.108.
# Generated by GNU Autoconf 2.71 for LCDF typetools (TeX Live) 2.110.
#
# Report bugs to <tex-k@tug.org>.
#
Expand Down Expand Up @@ -629,8 +629,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='LCDF typetools (TeX Live)'
PACKAGE_TARNAME='lcdf-typetools--tex-live-'
PACKAGE_VERSION='2.108'
PACKAGE_STRING='LCDF typetools (TeX Live) 2.108'
PACKAGE_VERSION='2.110'
PACKAGE_STRING='LCDF typetools (TeX Live) 2.110'
PACKAGE_BUGREPORT='tex-k@tug.org'
PACKAGE_URL=''

Expand Down Expand Up @@ -1417,7 +1417,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures LCDF typetools (TeX Live) 2.108 to adapt to many kinds of systems.
\`configure' configures LCDF typetools (TeX Live) 2.110 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1489,7 +1489,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of LCDF typetools (TeX Live) 2.108:";;
short | recursive ) echo "Configuration of LCDF typetools (TeX Live) 2.110:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1635,7 +1635,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
LCDF typetools (TeX Live) configure 2.108
LCDF typetools (TeX Live) configure 2.110
generated by GNU Autoconf 2.71

Copyright (C) 2021 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2691,7 +2691,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by LCDF typetools (TeX Live) $as_me 2.108, which was
It was created by LCDF typetools (TeX Live) $as_me 2.110, which was
generated by GNU Autoconf 2.71. Invocation command line was

$ $0$ac_configure_args_raw
Expand Down Expand Up @@ -9348,7 +9348,7 @@ fi

# Define the identity of the package.
PACKAGE='lcdf-typetools--tex-live-'
VERSION='2.108'
VERSION='2.110'


printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
Expand Down Expand Up @@ -15252,7 +15252,7 @@ fi



LCDF_TYPETOOLS_VERSION=2.108
LCDF_TYPETOOLS_VERSION=2.110


ac_config_headers="$ac_config_headers autoconf.h"
Expand Down Expand Up @@ -21548,7 +21548,7 @@ Usage: $0 [OPTIONS]
Report bugs to <bug-libtool@gnu.org>."

lt_cl_version="\
LCDF typetools (TeX Live) config.lt 2.108
LCDF typetools (TeX Live) config.lt 2.110
configured by $0, generated by GNU Autoconf 2.71.

Copyright (C) 2011 Free Software Foundation, Inc.
Expand Down Expand Up @@ -23624,7 +23624,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by LCDF typetools (TeX Live) $as_me 2.108, which was
This file was extended by LCDF typetools (TeX Live) $as_me 2.110, which was
generated by GNU Autoconf 2.71. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -23692,7 +23692,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
LCDF typetools (TeX Live) config.status 2.108
LCDF typetools (TeX Live) config.status 2.110
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"

Expand Down
1 change: 1 addition & 0 deletions texk/lcdf-typetools/lcdf-typetools-src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ EXTRA_DIST = \
include/efont/otf.hh \
include/efont/otfcmap.hh \
include/efont/otfdata.hh \
include/efont/otffvar.hh \
include/efont/otfgpos.hh \
include/efont/otfgsub.hh \
include/efont/otfname.hh \
Expand Down
1 change: 1 addition & 0 deletions texk/lcdf-typetools/lcdf-typetools-src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ EXTRA_DIST = \
include/efont/otf.hh \
include/efont/otfcmap.hh \
include/efont/otfdata.hh \
include/efont/otffvar.hh \
include/efont/otfgpos.hh \
include/efont/otfgsub.hh \
include/efont/otfname.hh \
Expand Down
16 changes: 16 additions & 0 deletions texk/lcdf-typetools/lcdf-typetools-src/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
LCDF Typetools NEWS
===================

## Version 2.110 – 30.Aug.2023

* Support `otfinfo --var`, which prints information about variable fonts.

* `otfinfo -u` reports all Unicode code positions, not just the BMP.

* `otfinfo -i` reports embedding permissions.

* Update feature, language, and script descriptions.


## Version 2.109 – 29.Aug.2023

* Change output to avoid triggering pdftex bug.


## Version 2.108 – 27.Jan.2019

* Handle more fonts.
Expand Down
Loading

0 comments on commit cabe754

Please sign in to comment.