diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-16 15:54:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-16 15:54:32 +0000 |
commit | e69e90912037ff24c42325a1b87022ceef0066cf (patch) | |
tree | cf7a16f7d2a8593277af15dacfb80a5d49512892 /Build | |
parent | 3e82729e7e1d522082a5971d6232aa53a9baead6 (diff) |
distinguish glyph source being fallback resolutions from fallback font
git-svn-id: svn://tug.org/texlive/trunk@46982 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 8 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/tex-glyph.c | 13 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/tex-glyph.h | 5 |
3 files changed, 19 insertions, 7 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 363bf0ee4f4..d518a43fa9f 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,10 @@ +2018-03-16 Karl Berry <karl@freefriends.org> + + * tex-glyph.h (kpse_glyph_source_fallback_res): new enum value + in kpse_glyph_source_type. + * tex-glyph.c (kpathsea_find_glyph): use it for `source'. + Private report from Doug McKenna, 14 Mar 2018 19:26:12. + 2018-03-14 Karl Berry <karl@tug.org> * tex-glyph.c (kpathsea_find_glyph, try_size): disentangle @@ -9,6 +16,7 @@ * texmf.cnf (TEXMFVAR, TEXMFCONFIG, doc): 2018. 2018-02-24 Hironobu Yamashita <h.y.acetaminophen@gmail.com> + * tex-make.c (kpathsea_make_tex): Change an error message "Invalid fontname" to "Invalid filename", since $ tex -fmt=-a x diff --git a/Build/source/texk/kpathsea/tex-glyph.c b/Build/source/texk/kpathsea/tex-glyph.c index 9af2aabfce0..aae1b6555ec 100644 --- a/Build/source/texk/kpathsea/tex-glyph.c +++ b/Build/source/texk/kpathsea/tex-glyph.c @@ -1,6 +1,6 @@ /* tex-glyph.c: search for GF/PK files. - Copyright 1993, 1994, 1995, 1996, 2008, 2009, 2011, 2017 Karl Berry. + Copyright 1993, 1994, 1995, 1996, 2008, 2009, 2011, 2017, 2018 Karl Berry. Copyright 1997, 1998, 1999, 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -298,8 +298,10 @@ kpathsea_find_glyph (kpathsea kpse, /* If mktex... failed, try any fallback resolutions. */ } else { - if (kpse->fallback_resolutions) + if (kpse->fallback_resolutions) { + source = kpse_glyph_source_fallback_res; ret = try_fallback_resolutions (kpse, fontname, dpi,format,glyph_file); + } /* We're down to the font of last resort. */ if (!ret && kpse->fallback_font) { @@ -311,8 +313,9 @@ kpathsea_find_glyph (kpathsea kpse, ret = try_resolution (kpse, name, dpi, format, glyph_file); /* The fallback font at the fallback resolutions. */ - if (!ret && kpse->fallback_resolutions) + if (!ret && kpse->fallback_resolutions) { ret = try_fallback_resolutions (kpse, name, dpi, format, glyph_file); + } } } } @@ -337,8 +340,8 @@ kpse_find_glyph (const_string passed_fontname, unsigned dpi, kpse_file_format_type format, kpse_glyph_file_type *glyph_file) { - return kpathsea_find_glyph (kpse_def, passed_fontname, dpi, format, - glyph_file); + return kpathsea_find_glyph (kpse_def, passed_fontname, dpi, format, + glyph_file); } #endif diff --git a/Build/source/texk/kpathsea/tex-glyph.h b/Build/source/texk/kpathsea/tex-glyph.h index 0864bb35423..ac3954bd3b4 100644 --- a/Build/source/texk/kpathsea/tex-glyph.h +++ b/Build/source/texk/kpathsea/tex-glyph.h @@ -1,6 +1,6 @@ /* tex-glyph.h: look for a TeX glyph font (GF or PK). - Copyright 1993, 2008, 2009, 2011 Karl Berry. + Copyright 1993, 2008, 2009, 2011, 2018 Karl Berry. Copyright 1999, 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -26,13 +26,14 @@ extern "C" { #endif -/* This type describes the origination of a glyph font. */ +/* This type describes the origin of a glyph font. */ typedef enum { kpse_glyph_source_normal, /* the searched-for font: already existed */ kpse_glyph_source_alias, /* : was an alias for an existing file */ kpse_glyph_source_maketex, /* : was created on the fly */ + kpse_glyph_source_fallback_res, /* : found at fallback resolutions */ kpse_glyph_source_fallback /* : wasn't found, but the fallback font was */ } kpse_glyph_source_type; |