ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Simplefonts (new) fallback issue with Linux Libertine O
Date: Sun, 24 Nov 2013 13:10:56 +0100	[thread overview]
Message-ID: <68361A20-6184-43E1-933B-6C5E207ABA62@gmail.com> (raw)
In-Reply-To: <AD78DDC2-41DD-4B8F-AE79-FDBD604E5066@gmail.com>


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

> 
> Am 22.11.2013 um 05:00 schrieb Rik <amphiboly@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	other threads:[~2013-11-24 12:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-22  4:00 Rik
2013-11-22 17:08 ` Wolfgang Schuster
2013-11-24 12:10   ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68361A20-6184-43E1-933B-6C5E207ABA62@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).