Re: [NTG-context] Problems with old style figures and particular font

2016-08-12 Thread Martin Oppegaard
On Fri, Aug 12 2016, Wolfgang Schuster wrote:
> 
> 
> Martin Oppegaard
> 11. August 2016 um 21:42
> 
> Hi Wolfgang, thank you for the quick reply.
> 
> 
> Moving \definefontfeature before \setupbodyfont doesn't change
> anything
> for me. Here is the output of running context:
> 
> You need also "script=latn" when you enable oldstyle numerals.
>
> You can use the mtxrun script to list the available features of a font
> where you also see the necessary script:
>
> $ mtxrun --script font --list --info fbbregular
>
> resolvers | trees | analyzing 'home:texmf'
> mtx-fonts |
> mtx-fonts | mapping : fbbregular
> mtx-fonts | fontname : fbbregular
> mtx-fonts | fullname : fbbregular
> mtx-fonts | filename : fbb-Regular.otf
> mtx-fonts | family : fbb
> mtx-fonts | weight : normal
> mtx-fonts | style : normal
> mtx-fonts | width : normal
> mtx-fonts | variant : normal
> mtx-fonts | fweight : conflict: regular
> mtx-fonts |
> ...
> mtx-fonts |
> mtx-fonts | gsub features:
> mtx-fonts |
> mtx-fonts | feature script languages
> mtx-fonts |
> ...
> mtx-fonts | onum grek dflt 
> mtx-fonts | latn dflt 
>
>  begin example
> \starttypescript [serif] [fbb]
> \setups[font:fallback:serif]
> \definefontsynonym [Serif] [file:fbbregular]
> \definefontsynonym [SerifItalic] [file:fbbitalic]
> \definefontsynonym [SerifBold] [file:fbbbold]
> \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic]
> \stoptypescript
>
> \definefontfeature[default][default][script=latn,onum=yes]
>
> \definetypeface [fbb] [rm] [serif] [fbb] [default] [features=default]
> \definetypeface [fbb] [mm] [math] [modern] [default]
>
> \setupbodyfont[fbb]
>
> \starttext
> ABC abc 1234
> \stoptext
>  end example
>
> Wolfgang

Ah that solved it, thank you very much!

Best regards,
Martin Oppegaard
___
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
___

Re: [NTG-context] Problems with old style figures and particular font

2016-08-12 Thread Wolfgang Schuster

Martin Oppegaard 
11. August 2016 um 21:42
Hi Wolfgang, thank you for the quick reply.

Moving \definefontfeature before \setupbodyfont doesn't change anything
for me. Here is the output of running context:

You need also "script=latn" when you enable oldstyle numerals.


You can use the mtxrun script to list the available features of a font
where you also see the necessary script:

$ mtxrun --script font --list --info fbbregular

resolvers   | trees | analyzing 'home:texmf'
mtx-fonts   |
mtx-fonts   | mapping   : fbbregular
mtx-fonts   | fontname  : fbbregular
mtx-fonts   | fullname  : fbbregular
mtx-fonts   | filename  : fbb-Regular.otf
mtx-fonts   | family: fbb
mtx-fonts   | weight: normal
mtx-fonts   | style : normal
mtx-fonts   | width : normal
mtx-fonts   | variant   : normal
mtx-fonts   | fweight   : conflict: regular
mtx-fonts   |
...
mtx-fonts   |
mtx-fonts   | gsub features:
mtx-fonts   |
mtx-fonts   | feature  script   languages
mtx-fonts   |
...
mtx-fonts   | onum grek dflt
mtx-fonts   |  latn dflt



 begin example
\starttypescript [serif] [fbb]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [file:fbbregular]
  \definefontsynonym [SerifItalic] [file:fbbitalic]
  \definefontsynonym [SerifBold]   [file:fbbbold]
  \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic]
\stoptypescript

\definefontfeature[default][default][script=latn,onum=yes]

\definetypeface [fbb] [rm] [serif] [fbb][default] [features=default]
\definetypeface [fbb] [mm] [math]  [modern] [default]

\setupbodyfont[fbb]

\starttext
ABC abc 1234
\stoptext
 end example

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
___

Re: [NTG-context] Problems with old style figures and particular font

2016-08-12 Thread Martin Oppegaard
Hi Wolfgang, thank you for the quick reply.

On Thu, Aug 11 2016, Wolfgang Schuster wrote:
> 
> 
> Martin Oppegaard
> 10. August 2016 um 22:27
> 
> Dear list,
> 
> I'm having problems getting old style figures and ligatures with
> the fbb
> font. I'm using Tex live 2014 on OpenBSD 5.9 and context version
> 2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has
> onum
> and liga, and it works fine with lualatex. I have tried with a
> typescript and simplefont (the fbb font is being used in all three
> cases); see attached examples. Do you have any suggestions?
> 
> % type-fbb.mkiv
> \starttypescript [serif] [fbb] [name]
> \definefontsynonym [Serif] [file:fbb-Regular.otf]
> [features=default]
> \definefontsynonym [SerifItalic] [file:fbb-Italic.otf]
> [features=default]
> \stoptypescript
> 
> \starttypescript [fbb]
> \definetypeface [fbb] [rm] [serif] [fbb] [default]
> \stoptypescript
> 
> 
> % contex-test1.tex
> \usetypescriptfile[type-fbb]
> \usetypescript[fbb]
> \setupbodyfont[fbb,11pt]
> \definefontfeature[default][default][liga=yes,onum=yes]
> 
> Move the \definefontfeature setting before \setupbodyfont because
> changes to the feature set after the font is loaded are ignored.
>
> \definefontfeature[default][default][liga=yes,onum=yes]
> \setupbodyfont[fbb,11pt]
>
> Wolfgang
>

Moving \definefontfeature before \setupbodyfont doesn't change anything
for me.  Here is the output of running context:


open source > 1 > 1 > 
/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.05.21 22:04 MKIV beta  fmt: 2016.2.22  int: english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > 
/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
close source> 2 > 2 > 
/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv
system  > files > jobname 'context-test1', input './context-test1', 
result 'context-test1'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/martin/documents/fbb-test/context-test1.tex
open source > 3 > 4 > type-fbb.mkiv
close source> 3 > 4 > type-fbb.mkiv
fonts   > preloading modern-designsize (math)
fonts   > typescripts > unknown library 'modern-designsize' or 'modern'
fonts   > 'fallback modern-designsize mm 11pt' is loaded
fonts   > preloading modern-designsize (mono)
fonts   > 'fallback modern-designsize tt 11pt' is loaded
backend > xmp > using file 
'/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 4 > /home/martin/documents/fbb-test/context-test1.tex
close source> 1 > 4 > 
/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv

system  > structure > start used structure

used structure  > text: context-test1

system  > structure > stop used structure


system  > files > start used files

used file   >1: filename=cont-yes.mkiv filetype=tex 
foundname=/usr/local/share/texmf-dist/tex/context/base/cont-yes.mkiv 
usedmethod=database
used file   >2: filename=cont-new.mkiv filetype=tex 
foundname=/usr/local/share/texmf-dist/tex/context/base/cont-new.mkiv 
usedmethod=database
used file   >3: filename=lang-us.lua filetype=lua 
foundname=/usr/local/share/texmf-dist/tex/context/patterns/lang-us.lua 
usedmethod=database
used file   >4: 
filename=/home/martin/documents/fbb-test/context-test1.tex 
foundname=/home/martin/documents/fbb-test/context-test1.tex usedmethod=direct
used file   >5: filename=type-fbb.mkiv foundname=type-fbb.mkiv 
usedmethod=direct
used file   >6: filename=fbb-Regular.otf filetype=otf format=otf 
foundname=/usr/local/share/texmf-dist/fonts/opentype/public/fbb/fbb-Regular.otf 
usedmethod=database
used file   >7: filename=lpdf-pdx.xml filetype=tex 
foundname=/usr/local/share/texmf-dist/tex/context/base/lpdf-pdx.xml 
usedmethod=database

system  > files > stop used files


system  > options > start commandline options

used option > currentrun="3"
used option > fulljobname="./context-test1.tex"
used option > input="./context-test1.tex"
used option > kindofrun="2"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system  > options > stop commandline options

system  > options > start commandline files

used file   >1: ./context-test1.tex

system  > options > stop commandline files


mkiv lua stats  > used config file: 
selfautodir:/share/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: 
'/usr/local/share/texmf-var/luatex-cache/context/0399a8df3aef8d154781d0a9c2b8e28d'
 | readable+writable: 
'/home/martin/.texlive2014/texmf-var/luatex-cache/context/0399a8

Re: [NTG-context] Problems with old style figures and particular font

2016-08-10 Thread Wolfgang Schuster

Martin Oppegaard 
10. August 2016 um 22:27
Dear list,

I'm having problems getting old style figures and ligatures with the fbb
font. I'm using Tex live 2014 on OpenBSD 5.9 and context version
2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has onum
and liga, and it works fine with lualatex. I have tried with a
typescript and simplefont (the fbb font is being used in all three
cases); see attached examples. Do you have any suggestions?

% type-fbb.mkiv
\starttypescript [serif] [fbb] [name]
\definefontsynonym [Serif] [file:fbb-Regular.otf] [features=default]
\definefontsynonym [SerifItalic] [file:fbb-Italic.otf] [features=default]
\stoptypescript

\starttypescript [fbb]
\definetypeface [fbb] [rm] [serif] [fbb] [default]
\stoptypescript


% contex-test1.tex
\usetypescriptfile[type-fbb]
\usetypescript[fbb]
\setupbodyfont[fbb,11pt]
\definefontfeature[default][default][liga=yes,onum=yes]
Move the \definefontfeature setting before \setupbodyfont because 
changes to the feature set after the font is loaded are ignored.


\definefontfeature[default][default][liga=yes,onum=yes]
\setupbodyfont[fbb,11pt]

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
___

[NTG-context] Problems with old style figures and particular font

2016-08-10 Thread Martin Oppegaard
Dear list,

I'm having problems getting old style figures and ligatures with the fbb
font. I'm using Tex live 2014 on OpenBSD 5.9 and context version
2014.05.21 22:04. otfinfo -f fbb-Regular.otf reports that it has onum
and liga, and it works fine with lualatex. I have tried with a
typescript and simplefont (the fbb font is being used in all three
cases); see attached examples. Do you have any suggestions?

% type-fbb.mkiv
\starttypescript [serif] [fbb] [name]
\definefontsynonym [Serif]   [file:fbb-Regular.otf] [features=default]
\definefontsynonym [SerifItalic] [file:fbb-Italic.otf] [features=default]
\stoptypescript

\starttypescript [fbb]
  \definetypeface [fbb] [rm] [serif] [fbb] [default]
\stoptypescript


% contex-test1.tex
\usetypescriptfile[type-fbb]
\usetypescript[fbb]
\setupbodyfont[fbb,11pt]
\definefontfeature[default][default][liga=yes,onum=yes]

\starttext
1234567890 ff
\stoptext

% context-test2.tex
\usemodule[simplefonts][size=11pt]
\setmainfont[fbb Regular]
\definefontfeature[default][default][liga=yes,onum=yes]

\starttext
1234567890 ff
\stoptext

% lualatex-test.tex
\documentclass[11pt]{article}
\usepackage{fontspec}

\setmainfont[Numbers=OldStyle,Ligatures=Historic]{fbb Regular}

\begin{document}
1234567890 ff
\end{document}




Best regards,
Martin Oppegaard

___
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
___