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/0399a8df3aef8d154781d0a9c2b8e28d' mkiv lua stats > resource resolver: loadtime 0.092 seconds, 1 scans with scantime 0.000 seconds, 0 shared scans, 7 found files, scanned paths: /home/martin/texmf mkiv lua stats > stored bytecode data: 350 modules (0.280 sec), 69 tables (0.000 sec), 419 chunks (0.280 sec) mkiv lua stats > running in nuts mode: yes mkiv lua stats > cleaned up reserved nodes: 44 nodes, 443 lists of 442 mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list, 2 temp mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 39 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns: en::2, load time: 0.000 mkiv lua stats > jobdata time: 0.001 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks: 144 direct, 195 indirect, 339 total mkiv lua stats > randomizer: resumed with value 0.38142795133471 mkiv lua stats > result saved in file: context-test1.pdf, compresslevel 3, objectcompresslevel 3 mkiv lua stats > loaded fonts: 1 files: fbb-regular.otf mkiv lua stats > fonts load time: 0.032 seconds for 4 fonts, 3 shared in backend, 1 common vectors, 2 common hashes mkiv lua stats > used platform: linux, type: unix, binary subtree: local mkiv lua stats > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014-openbsd_ports) (rev 4971) mkiv lua stats > control sequences: 38119 of 65536 + 100000 mkiv lua stats > lua properties: engine: lua, used memory: 45 MB (ctx: 45 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.421 seconds, 1 processed pages, 1 shipped pages, 2.375 pages/second Best regards, Martin Oppegaard