[NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

Hans Hagen j.hagen at xs4all.nl
Fri Jan 7 19:23:18 CET 2022


On 1/7/2022 4:18 PM, J. P. Ascher via ntg-context wrote:

> % Libertine with a Junicode fallback, lib-fb-jun
looks like there is some beta junicode two (i tried the variable font 
but the ttf crashes (no hvar table) and the otf also has issues so 
probably a bit too beta) .. maybe that font will cover what libertine has?

- ttf variable : crash (probably due to missing hvar or invalid deltas)
- otf variable : issues
- otf normal   : crash on italic due to stem problem
- ttf normal   : seems to work

(it makes no sense to add all kind of sanity checks for fonts with issues)

the font has a fi ligature but not as feature so you need to add it:

\startluacode
     fonts.handlers.otf.addfeature {
         name = "xlig",
         type = "ligature",
         data = {
             [64257] = { "f", "i" },
         }
     }
\stopluacode

\definefontfeature[default][default][xlig=yes,dlig=yes] % is dflt defined ?

\setupbodyfont[junicode]

\starttext

     % fi ligature in \char 64257 but not in liga feature

          Ik fiets op de stoep en dat mag niet. \blank
     {\it Ik fiets op de stoep en dat mag niet.}\blank
     {\bf Ik fiets op de stoep en dat mag niet.}\blank
     {\bi Ik fiets op de stoep en dat mag niet.}\blank
\stoptext

attached a possible typescript file (patched from ws 2011 version)

anyway ... these fonts are probably to beta to be useful now although 
one needs users like you to test them and feedback

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
-------------- next part --------------
%D \module
%D   [     file=type-junicode,
%D      version=2011.09.18,
%D        title=\CONTEXT\ Typescript Macros,
%D     subtitle=Junicode Font Definitions,
%D       author=Wolfgang Schuster,
%D         date=\currentdate,
%D    copyright=Wolfgang Schuster,
%D      license=GNU General Public License]

% adapted by hh

\usetypescriptfile[texgyre]
\usetypescriptfile[dejavu]

\starttypescriptcollection [junicode]

% crash on data points / hvar inconsistency
%
% \definefontfeature[junicodebold][default]
%
% \definefontsynonym[junicoderegular][\s!file:junicodetwobetavf-roman.ttf]
% \definefontsynonym[junicodeitalic] [\s!file:junicodetwobetavf-italic.ttf]
%
% \starttypescript [\s!serif] [junicode]
%     \definefontsynonym [Junicode-Regular]    [junicoderegular][\s!features=default]
%     \definefontsynonym [Junicode-Italic]     [junicodeitalic] [\s!features=default]
%     \definefontsynonym [Junicode-Bold]       [junicoderegular][\s!features={default,junicodebold}]
%     \definefontsynonym [Junicode-BoldItalic] [junicodeitalic] [\s!features={default,junicodebold}]
% \stoptypescript

% italic crashes on stems in cff
%
% \starttypescript [\s!serif] [junicode]
%     \definefontsynonym [Junicode-Regular]    [\s!file:junicodetwobeta-regular.otf]   [\s!features=\s!default]
%     \definefontsynonym [Junicode-Italic]     [\s!file:junicodetwobeta-italic.otf]    [\s!features=\s!default]
%     \definefontsynonym [Junicode-Bold]       [\s!file:junicodetwobeta-bold.otf]      [\s!features=\s!default]
%     \definefontsynonym [Junicode-BoldItalic] [\s!file:junicodetwobeta-bolditalic.otf][\s!features=\s!default]
% \stoptypescript

\starttypescript [\s!serif] [junicode]
    \definefontsynonym [Junicode-Regular]    [\s!file:junicodetwobeta-regular.ttf]   [\s!features=\s!default]
    \definefontsynonym [Junicode-Italic]     [\s!file:junicodetwobeta-italic.ttf]    [\s!features=\s!default]
    \definefontsynonym [Junicode-Bold]       [\s!file:junicodetwobeta-bold.ttf]      [\s!features=\s!default]
    \definefontsynonym [Junicode-BoldItalic] [\s!file:junicodetwobeta-bolditalic.ttf][\s!features=\s!default]
\stoptypescript

\starttypescript [\s!serif] [junicode]
    \setups[\s!font:\s!fallback:\s!serif]
    \definefontsynonym [\s!Serif]           [Junicode-Regular]   [\s!features=\s!default]
    \definefontsynonym [\s!SerifItalic]     [Junicode-Italic]    [\s!features=\s!default]
    \definefontsynonym [\s!SerifBold]       [Junicode-Bold]      [\s!features=\s!default]
    \definefontsynonym [\s!SerifBoldItalic] [Junicode-BoldItalic][\s!features=\s!default]
\stoptypescript

\starttypescript [junicode]
    \definetypeface [junicode] [rm] [\s!serif] [junicode] [\s!default]
    \definetypeface [junicode] [tt] [\s!mono]  [dejavu]   [\s!default]
    \definetypeface [junicode] [mm] [\s!math]  [pagella]  [\s!default]
    \quittypescriptscanning
\stoptypescript

\stoptypescriptcollection

\endinput


More information about the ntg-context mailing list