* Re: Problems with old style figures and particular font
@ 2016-08-12 13:20 Martin Oppegaard
0 siblings, 0 replies; 5+ messages in thread
From: Martin Oppegaard @ 2016-08-12 13:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with old style figures and particular font
2016-08-11 19:42 Martin Oppegaard
@ 2016-08-12 10:08 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2016-08-12 10:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1790 bytes --]
> Martin Oppegaard <mailto:martin.oppegaard@gmail.com>
> 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
[-- Attachment #1.2: Type: text/html, Size: 3441 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with old style figures and particular font
@ 2016-08-11 19:42 Martin Oppegaard
2016-08-12 10:08 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Martin Oppegaard @ 2016-08-11 19:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems with old style figures and particular font
2016-08-10 20:27 Martin Oppegaard
@ 2016-08-11 6:43 ` Wolfgang Schuster
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2016-08-11 6:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1217 bytes --]
> Martin Oppegaard <mailto:martin.oppegaard@gmail.com>
> 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
[-- Attachment #1.2: Type: text/html, Size: 2387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Problems with old style figures and particular font
@ 2016-08-10 20:27 Martin Oppegaard
2016-08-11 6:43 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Martin Oppegaard @ 2016-08-10 20:27 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-08-12 13:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12 13:20 Problems with old style figures and particular font Martin Oppegaard
-- strict thread matches above, loose matches on Subject: below --
2016-08-11 19:42 Martin Oppegaard
2016-08-12 10:08 ` Wolfgang Schuster
2016-08-10 20:27 Martin Oppegaard
2016-08-11 6:43 ` Wolfgang Schuster
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).