Am 22.11.2013 um 18:08 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>:

> 
> Am 22.11.2013 um 05:00 schrieb Rik <amphib...@gmail.com>:
> 
>> Fallbacks (at least the range I tested) do not work with the roman face of 
>> Linux Libertine O in the new (core) simplefonts implementation. I first 
>> thought that this might be a Libertine issue, but further testing makes me 
>> suspect it may be a simplefonts issue. Or perhaps I have used the wrong 
>> syntax with the new implementation.
> 
> I can reproduce it and it does also happen with a typescript only solution 
> (depends on how you define the fallback font) but it seems to happen only 
> with the Linux Libertine font.


Below is a minimal example which demonstrates the problem. The version where 
with \definefontsynonym is also
used by simplefonts and this is where the fallback font isn’t used for 
Libertine Regular, you can also see

        fonts           > defining > font with asked name 'GentiumPlus' is not 
found using lookup 'file'
        fonts           > defining > unknown font 'GentiumPlus', loading aborted

as message on the console. In the second case where I set the fallback font 
with \definefontfallback you get
the fallback font for Libertine Regular.


% one: load the fallback font from a synonym

\definefontsynonym [GentiumPlus] [file:gentiumplusr.ttf] [features=default]

\definefontfallback [libertine-fallback-1] [GentiumPlus] [0x02053]

\definefontsynonym [LibertineOneRegular] [file:linlibertiner.otf]  
[features=default,fallbacks=libertine-fallback-1]
\definefontsynonym [LibertineOneItalic]  [file:linlibertineri.otf] 
[features=default,fallbacks=libertine-fallback-1]

% two: direct loading of the fallback font

\definefontfallback [libertine-fallback-2] [file:gentiumplusr.ttf*default] 
[0x02053]

\definefontsynonym [LibertineTwoRegular] [file:linlibertiner.otf]  
[features=default,fallbacks=libertine-fallback-2]
\definefontsynonym [LibertineTwoItalic]  [file:linlibertineri.otf] 
[features=default,fallbacks=libertine-fallback-2]

\starttext
\starttabulate
\NC One Regular \EQ \definedfont[LibertineOneRegular] ⁓⁗ \NC\NR
\NC One Italic  \EQ \definedfont[LibertineOneItalic]  ⁓⁗ \NC\NR
\NC Two Regular \EQ \definedfont[LibertineTwoRegular] ⁓⁗ \NC\NR
\NC Two Italic  \EQ \definedfont[LibertineTwoItalic]  ⁓⁗ \NC\NR
\stoptabulate

\stoptext


Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to