···<date: 2013-08-02, Friday>···<from: Marco Patzer>···

> On 2013–08–02 Philipp Gesang wrote:
> 
> >     https://phi-gamma.net/pdf/copypasta.pdf
> >     https://phi-gamma.net/files/copypasta.txt
> >   
> > I definitely get   from this
> > one.
> 
> Indeed. When I copy from your file I get those private Unicode
> slots. When I run the example code from your OP, I get the correct
> characters. I don't know what's the difference between those two
> files.

The PDF is what Context produces here with that code.

>        The LuaTeX version and ConTeXt version is the same.
> 
> Creator:        ConTeXt - 2013.08.01 01:31
> Producer:       LuaTeX-0.76.0

There appears to be a difference between node and base mode
depending on how the font is defined:

  \pdfcompresslevel0
  
  \setupbodyfont [iwona]
  
  \definefontfeature [proto]    [onum=yes,smcp=yes,script=dflt,lang=dflt]
  \definefontfeature [withbase] [proto] [mode=base]
  \definefontfeature [withnode] [proto] [mode=node]
  
  \definefont [iwonab] [file:Iwona-Regular.otf*withbase]
  \definefont [iwonan] [file:Iwona-Regular.otf*withnode]
  
  \starttext
    \feature[<]
    base mode\par
    {\feature[!][withbase]0123456789abcdefghijklmnopqrstuvwxyz\par}
    {\iwonab 0123456789abcdefghijklmnopqrstuvwxyz}
  
    node mode\par
    {\feature[!][withnode]0123456789abcdefghijklmnopqrstuvwxyz\par}
    {\iwonan 0123456789abcdefghijklmnopqrstuvwxyz}
  \stoptext \endinput

This gets me (through pdftotext):

  base mode
  
  0123456789abcdefghijklmnopqrstuvwxyz
  node mode
  
  

So base mode with \definefont works while node mode or the font
from the typescript doesn’t.

Philipp

Attachment: pgpawqMokIqVP.pgp
Description: PGP signature

___________________________________________________________________________________
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