Re: [NTG-context] Fonts not found
Am 2017-03-15 um 08:27 schrieb Henning Hraban Ramm: >> There seem to be serious problems with font detection. >> >> I spent most of yesterday trying to convince ConTeXt to load my font, even >> from the same directory and even proven candidates like Gentium and >> Delicious – I get mostly only TeX Gyre Palladio Math :( >> >> While a simple example works: >> >> \usetypescriptfile[type-fiee] >> \usetypescript[fiee] >> \setupbodyfont[fiee,rm,9.5pt] >> >> \starttext >> \input tufte >> {\ss \input knuth } >> \stoptext >> >> The same code in an environment doesn’t. I tried force-reloading the font >> database several times, deleting the luatex cache, reverting to an older >> version - always the same. I’m out of resources now. > > My log says only: > > ... > open source > level 5, order 6, name 'type-fiee.tex' > close source> level 5, order 6, name 'type-fiee.tex' > fonts > typescripts > unknown library 'default' > ... > mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, > lmroman12-regular.otf, texgyrepagella-math.otf > mkiv lua stats > font engine: otf 3.027, afm 1.512, tfm 1.000, 10 instances, > 3 shared in backend, 0 common vectors, 3 common hashes, load time 0.824 > seconds > ... > mkiv lua stats > luatex banner: this is luatex, version 1.0.3 (tex live > 2017/dev) Ahoi, while I found a workaround for my problem, I still don’t understand the cause: – I defined a family of Gentium and Delicious in a typescript file (as attached in my previous post), – If I load this in a minimal example, as above, all is well. – If I load this in an environment, the fonts are ignored. There are no error messages. – If I change the font size from 9.5pt to any integer size, it works! Does this ring any bells? What’s wrong with decimal font sizes, and why only in a project setup? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Fonts not found
Sorry for hijacking the other thread. While I saw the same error message at some time, I seem to have a different problem. Am 2017-03-15 um 08:17 schrieb Henning Hraban Ramm: > There seem to be serious problems with font detection. > > I spent most of yesterday trying to convince ConTeXt to load my font, even > from the same directory and even proven candidates like Gentium and Delicious > – I get mostly only TeX Gyre Palladio Math :( > > While a simple example works: > > \usetypescriptfile[type-fiee] > \usetypescript[fiee] > \setupbodyfont[fiee,rm,9.5pt] > > \starttext > \input tufte > {\ss \input knuth } > \stoptext > > The same code in an environment doesn’t. I tried force-reloading the font > database several times, deleting the luatex cache, reverting to an older > version - always the same. I’m out of resources now. My log says only: ... open source > level 5, order 6, name 'type-fiee.tex' close source> level 5, order 6, name 'type-fiee.tex' fonts > typescripts > unknown library 'default' ... mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, texgyrepagella-math.otf mkiv lua stats > font engine: otf 3.027, afm 1.512, tfm 1.000, 10 instances, 3 shared in backend, 0 common vectors, 3 common hashes, load time 0.824 seconds ... mkiv lua stats > luatex banner: this is luatex, version 1.0.3 (tex live 2017/dev) I try to attach the typescript file. Greetlings, Hraban type-fiee.tex Description: Binary data ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] fonts not found with newotf
On 07/20/2015 10:47 PM, Wolfgang Schuster wrote: Pablo Rodriguez 20. Juli 2015 17:08 Many thanks for your fix, Hans. It works perfectly fine. The font was an improved conversion from a Type1 font I got from CTAN. Improved in which way? Wolfgang, at least, I added the space character (which is missing in the original font). I don’t remember if I included other improvements. Pablo -- http://www.ousia.tk ___ 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] fonts not found with newotf
On 07/20/2015 12:31 AM, Hans Hagen wrote: On 7/19/2015 1:27 PM, Pablo Rodriguez wrote: [...] The attached newotf-error.log contains the error message. Since both font files were generated with FontForge, I would like to know what they are missing to report upstream to the FontForge developers. there seems to be a cid entry operator seen when populating a private dictionary in the cff section you can add this in line 552 of font-cff: cid = { -- actually an error }, and the font will probably load then, unless there is a fundamental flaw (i don't know where to get that font) Many thanks for your fix, Hans. It works perfectly fine. The font was an improved conversion from a Type1 font I got from CTAN. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] fonts not found with newotf
Pablo Rodriguez mailto:oi...@gmx.es 20. Juli 2015 17:08 Many thanks for your fix, Hans. It works perfectly fine. The font was an improved conversion from a Type1 font I got from CTAN. Improved in which way? 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] fonts not found with newotf
Hans, as reported in a previous message, using beta from 2015.07.16 13:30, enabling the newotf module in the following sample makes the Mechanica fonts not being loaded in the final PDF document: \usemodule[newotf] \definefontfamily [txfont] [tt] [Mechanica] [tf=file:Mechanica.otf, it=features:slanted, sc=file:MechanicaSC.otf] \setupbodyfont[txfont] \starttext \tt Test {\it amfe} {\sc amfe} \stoptext The attached newotf-error.log contains the error message. Since both font files were generated with FontForge, I would like to know what they are missing to report upstream to the FontForge developers. Many thanks for your help, Pablo -- http://www.ousia.tk fontsotf loading loading '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf', hash 'mechanica' otf reader fatal error in file '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf': .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: attempt to index field 'cid' (a nil value) stack traceback: .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1853: in function '__newindex' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:353 [C]: in function 'lpegmatch' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:553: in function 'parseprivates' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1549: in function 'readnoselect' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1677: in function 'cff' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1737: in function 'readdata' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1772: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1755 [C]: in function 'xpcall' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1855: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1884: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:257: in function 'load' .../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:543: in function 'otftotfm' .../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:571: in function 'reader' .../ctxbeta/tex/texmf-context/tex/context/base/font-def.lua:301: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:489: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-def.lua:415: in function 'read' .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1162: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:1049 fontsotf loading loading failed due to read error fontsdefining forced type 'otf' of 'Mechanica' not found fontsdefining font with asked name 'Mechanica' is not found using lookup 'file' fontsdefining unknown font 'Mechanica', loading aborted fontsdefining unable to define 'Mechanica.otf' as 'txfont-12pt-tt-tf-0--0' fontsotf loading loading '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf', hash 'mechanica' otf reader fatal error in file '/home/ousia/ctxbeta/tex/texmf-fonts/ousia-fonts/Mechanica.otf': .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: attempt to index field 'cid' (a nil value) stack traceback: .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1853: in function '__newindex' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:354: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:353 [C]: in function 'lpegmatch' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:553: in function 'parseprivates' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1549: in function 'readnoselect' .../ctxbeta/tex/texmf-context/tex/context/base/font-cff.lua:1677: in function 'cff' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1737: in function 'readdata' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1772: in function .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1755 [C]: in function 'xpcall' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1855: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-otr.lua:1884: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:257: in function 'load' .../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:543: in function 'otftotfm' .../ctxbeta/tex/texmf-context/tex/context/base/font-otl.lua:571: in function 'reader' .../ctxbeta/tex/texmf-context/tex/context/base/font-def.lua:301: in function 'loadfont' .../ctxbeta/tex/texmf-context/tex/context/base/font-ctx.lua:489: in function 'loadfont'
Re: [NTG-context] fonts not found with newotf
On 7/19/2015 1:27 PM, Pablo Rodriguez wrote: Hans, as reported in a previous message, using beta from 2015.07.16 13:30, enabling the newotf module in the following sample makes the Mechanica fonts not being loaded in the final PDF document: \usemodule[newotf] \definefontfamily [txfont] [tt] [Mechanica] [tf=file:Mechanica.otf, it=features:slanted, sc=file:MechanicaSC.otf] \setupbodyfont[txfont] \starttext \tt Test {\it amfe} {\sc amfe} \stoptext The attached newotf-error.log contains the error message. Since both font files were generated with FontForge, I would like to know what they are missing to report upstream to the FontForge developers. there seems to be a cid entry operator seen when populating a private dictionary in the cff section you can add this in line 552 of font-cff: cid = { -- actually an error }, and the font will probably load then, unless there is a fundamental flaw (i don't know where to get that font) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] Fonts not found (was: producing a pdf/X-1a:2001 file)
Am 27.06.10 17:55, schrieb Ciro: I just installed ConTeXt minimals, but my fonts are not found now: define fonts font with name Barnard-Oblique is not found font files are there, but some how context can't see them. I ran context --generate and got lines like this: MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-fonts' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-local' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-linux' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-context and also ran mtxrun --script fonts --reload and got lines like this: MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf MTXrun | fontnames: identifying system font files with suffix TTF MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF MTXrun | fontnames: 639 system files identified, 39 skipped, 39 duplicates, 600 hash entries added what should I do? 1. Change the subject of the thread. 2. Tell us where you put the fonts. 3. Show us a test document and your typescripts. 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] fonts not found
Ok , I changed the subject: I just installed ConTeXt minimals, but my fonts are not found now: define fonts font with name Barnard-Oblique is not found font files are there, but some how context can't see them. I ran context --generate and got lines like this: MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-fonts' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-local' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-linux' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-context and also ran mtxrun --script fonts --reload and got lines like this: MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf MTXrun | fontnames: identifying system font files with suffix TTF MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF MTXrun | fontnames: 639 system files identified, 39 skipped, 39 duplicates, 600 hash entries added My fonts are in $HOME/.fonts (lunix/ubuntu) I don't use typescripts. I use \definefontsynonym [baob] [file:Barnard-Oblique] [features=default] what should I do? thank you Ciro ___ 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] fonts not found
Never mind... Problem solved. I re-installed everything and my fonts are recognized with no problem. thank you Ciro On Sun, Jun 27, 2010 at 12:49 PM, Ciro c...@kavyata.com wrote: Ok , I changed the subject: I just installed ConTeXt minimals, but my fonts are not found now: define fonts font with name Barnard-Oblique is not found font files are there, but some how context can't see them. I ran context --generate and got lines like this: MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-fonts' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-local' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-linux' MTXrun | resolvers: not saving runtime tree 'tree:home/ciro/context/tex/texmf-context and also ran mtxrun --script fonts --reload and got lines like this: MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf MTXrun | fontnames: identifying system font files with suffix TTF MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF MTXrun | fontnames: 639 system files identified, 39 skipped, 39 duplicates, 600 hash entries added My fonts are in $HOME/.fonts (lunix/ubuntu) I don't use typescripts. I use \definefontsynonym [baob] [file:Barnard-Oblique] [features=default] what should I do? thank you Ciro ___ 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 ___